I'm setting up an X2 mill for the first time, starting with getting the Z axis limit / home switch working correctly. I am using the limit switch as both home and limit.
It seems to be working correctly. However, after homing, Axis shows the
'Relative
position' as 1.000. and the 'Machine position', as 0.000. Shouldn't they both
be zero?
Z axis config in my-mill.ini:
[AXIS_2]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 1.0
MAX_ACCELERATION = 30.0
STEPGEN_MAXACCEL = 37.5
SCALE = -20000.0
FERROR = 0.05
MIN_FERROR = 0.01
# Min will be -10.x later. Set to -1.525 to make testing faster.
MIN_LIMIT = -1.525
MAX_LIMIT = 0.10
HOME_OFFSET = 0.50000
HOME_SEARCH_VEL = 0.050000
HOME_LATCH_VEL = 0.025000
HOME_IGNORE_LIMITS = YES
Z axis settings in my-mill.hal:
setp stepgen.2.position-scale [AXIS_2]SCALE
setp stepgen.2.steplen 1
setp stepgen.2.stepspace 0
setp stepgen.2.dirhold 5548
setp stepgen.2.dirsetup 5548
setp stepgen.2.maxaccel [AXIS_2]STEPGEN_MAXACCEL
net zpos-cmd axis.2.motor-pos-cmd => stepgen.2.position-cmd
net zpos-fb stepgen.2.position-fb => axis.2.motor-pos-fb
net zstep <= stepgen.2.step
net zdir <= stepgen.2.dir
net zenable axis.2.amp-enable-out => stepgen.2.enable
net max-home-z => axis.2.home-sw-in
net max-home-z => axis.2.pos-lim-sw-in
Thanks,
Andy
<<attachment: andy.vcf>>
------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
