Hi All,
I experienced some homing problem on a home switch + encoder index
configuration.
The install was simple. After the initial timing issues and a subsequent
motherboard change the machine runs fine and quite stable, timing is good,
except emc does not reset the axis position at the index signal. After the
home switch release the .index-enable goes on. When the encoder index "Z"
signal is "on" instead of resetting the internal position counter to
HOME_OFFSET (0.0) value and move to HOME (0.0) the axis travels back at
rapid speed to the original axis "zero" position and the axis is "homed".
This "zero" position is exactly the same position, where emc was first
turned on. Homing is sequential XYZ all do the same way. Polarity and index
is properly connected at least I think so. Phase-Z is traceable on the
HALscope for encoder.n, axis.n, and parport.n.pin.
HAL config (only for X Index section)
net X-index encoder.0.index-enable axis.0.index-enable
newsig X-phaseZ bit
linksp X-phaseZ <= parport.1.pin-08-in-not
linksp X-phaseZ => encoder.0.phase-Z
net Xhome parport.1.pin-13-in-not axis.0.home-sw-in
Home switch is stable proximity switch and works fine.
Encoder is counting the same way as stepgen so all pins should be correct.
The homing section of the ini:
HOME_USE_INDEX = YES
HOME_OFFSET = 0.0
HOME_SEARCH_VEL = -5.0
HOME_LATCH_VEL = 1.50000
#HOME_FINAL_VEL = 5.0
HOME_SEQUENCE = 0
HOME_IGNORE_LIMITS = NO
EMC2 2.2.2 and 2.2.5 versions were tested with same result on the 2.2.2
the HOME_FINAL_VEL was commented.
Any idea?
Regards,
Yahnis
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users