I have just tried to set up backlash compensation and it doesn't work at all it seems.
Code:
[AXIS_X]
MAX_VELOCITY = 3.01702235772
#1.5085117886
MAX_ACCELERATION = 10
MIN_LIMIT = -40.0
MAX_LIMIT = 30.0
BACKLASH = 0.45
Code:
[JOINT_0]
TYPE = LINEAR
HOME = 25.0
MIN_LIMIT = -40.0
MAX_LIMIT = 30.0
MAX_VELOCITY = 3.01702235772
#1.50851117886
MAX_ACCELERATION = 10
STEPGEN_MAXACCEL = 100 <--
#12.5
#8.75
SCALE = 3840
#7680.0
FERROR = 1
MIN_FERROR = .25
HOME_OFFSET = 25.0
Code:
setp stepgen.0.position-scale [JOINT_0]SCALE
setp stepgen.0.steplen 1
setp stepgen.0.stepspace 1
setp stepgen.0.dirhold 35500
setp stepgen.0.dirsetup 35500
setp stepgen.0.maxaccel [JOINT_0]STEPGEN_MAXACCEL
net xpos-cmd joint.0.motor-pos-cmd => stepgen.0.position-cmd
net xpos-fb stepgen.0.position-fb => joint.0.motor-pos-fb
net xstep <= stepgen.0.step
net xdir <= stepgen.0.dir
is there anything I forgot? I'm using the latest linuxcnc git version.