In a recent feature request I proposed adding spindle homing to the
homing sequence.
https://sourceforge.net/p/emc/feature-requests/138/

The use case is mainly for toolchangers, but it might be useful for
lathes with a C-axis capability.

If the spindle.index-enable pin was asserted by default at system
start then the encoder counter would zero as soon as the spindle
started, but it is possible to think of cases where this would not be
soon enough. For example a machine that commands a tool change
immediately after start-up would typically already have an encoder
counts value of zero, and might appear to be aligned despite actually
being in a random orientation.

My proposal is that the homing code would search the INI file for a
[SPINDLE*] stanza (which already exists in many configs) and if it
finds one that contains a homing sequence number it would assert the
spindle-index-enable output and run the spindle at
[SPINDLE]HOME_VELOCITY until the index enable went false. This is a
very abbrieviated sequence, but I think it covers most requirements.

This is not directly related to M19, though it is useful for M19. It
is perfectly acceptable to home the spindle on tool-change-request to
a fixed angle defined in HAL, and configs dating from before m19 was
introduced will probably be doing it this way. Because of this  I
don't think that this homing sequence should be part of M19.

For cases where spindle synch is lost at high speeds perhaps an M19.1
code could be defined that triggers the same simple sequence.


-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

------------------------------------------------------------------------------
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to