disallow non-travel moves while spindle is off?
-
topic covers my question: Is there a way to disallow non-travel moves while the spindle is off in CNC mode?
-
@oliof Not AFAIK so this would need to be added to the firmware wishlist. Is there an existing convention in CNC gcode for this functionality?
-
@t3p3tony said in disallow non-travel moves while spindle is off?:
Is there an existing convention in CNC gcode for this functionality?
There is no fixed convention with CNCs, it's down to how the machine tool builder chooses to make it work via the machine PLC.
It's quite common for CNCs to use an inspection "tool" that is actually a precision measuring probe (eg. Renishaw), which requires feedrate movements without spindle rotation.
eg. like this:
https://www.ebay.co.uk/itm/313573040514Older non-CNC machines generally had separate jog controls, that work regardless, and Feed start/stop, where feed can only be started if the spindle is running.
The only thing that we always include is a feed stop trigger pulse when the spindle stops and any axis movement is in progress. Everything else is down to individual customer / operator preferences.
-
@rjenkinsgb thanks, so this would need to be configurable on a tool by tool basis (which tool change macros could do).
The feed stop trigger would come from a tacho or similar on the spindle or from a spindle off gcode being sent (or both)?
-
@t3p3tony said in disallow non-travel moves while spindle is off?:
so this would need to be configurable on a tool by tool basis (which tool change macros could do).
The feed stop trigger would come from a tacho or similar on the spindle or from a spindle off gcode being sent (or both)?That sounds reasonable. Possible have a dedicated global flag/variable that permits or blocks G1 moves without spindle rotation?
Or, add a "tool type" variable for each tool, that can be used for multiple flag bits.The feed stop at spindle stop could be triggered by M5 or any manual spindle stop control.
Any fault signal from the drive should cause a complete program stop.
Another normal interlock is that feed hold is asserted (or the M Code complete is not set to allow the NC to continue) during an M3/M4, until the spindle has reached its set speed; either by monitoring a drive signal such as "at speed" or "not ramping" , or just a time delay to allow the speed to settle.
That is sometimes also done on an M5, typically for safety at a program end, so everything has stopped before the CNC acknowledges end of program and the operator can intervene.