From TechnoDocs
Revision as of 11:53, 15 August 2011 by Jbeck (Talk | contribs) (Created page with "A piggyback drill is typically connected to the coolant output. Thus, M7 and M9 commands can be used to switch to the piggyback drill as necessary. === Commands === M7 is used t...")
A piggyback drill is typically connected to the coolant output. Thus, M7 and M9 commands can be used to switch to the piggyback drill as necessary.
Commands
M7 is used to select (extend) the piggyback drill, M9 is used to deselect (retract) the piggyback drill. M3 is used to turn either spindle on. M5 is used to turn either spindle off. When the piggyback drill is retracted, M3 and M5 control on and off for the primary spindle, when the piggyback drill is extended M3 and M5 will turn the piggyback drill on and off.
M7 - Extend piggyback drill, disable primary spindle, enable piggyback drill. M9 - Retract piggyback drill, enable primary spindle, disable piggyback drill. M3 - Turn spindle on M5 - Turn spindle off
Example
This example lowers the piggy back drill, turns on the drill, and drills three holes. Then it raises the drill and turns it off.
G90 M7 M3 G0 X0Y0Z0. G0 X5Y2 G1 Z-0.375 F100. G0 Z0. G0 X6 Y2 G1Z-0.375 G0 Z0. G0 X7 Y2 G1Z-0.375 G0 Z0. M9 M5 M30