110 likes | 218 Views
CNC Drill Exercise * 1 *. Modal: G code will remain in effect for all blocks unless replaced by another modal G code G0 G1 G20, G54, M03, M07, M40 Non modal: The G code will only affect the block in which it appears G28 M01,M02, M30, M06.
E N D
Modal: G code will remain in effect for all blocks unless replaced by another modal G code G0 G1 G20, G54, M03, M07, M40 Non modal: The G code will only affect the block in which it appears G28 M01,M02, M30, M06 G & M code Fall into one of two major categories:
Work piece coordinates G30 G28
Heading • O _ _ _ _ G0 G40 G80 G90 • ( Rapid positioning, Cutter compensation cancel, fixed cycle cancel, absolute command) • G91 G30 Y0 ( G30 second Zero return) • M6 • G90 G54 G43 X_ _ _ Y _ _ _ Z3. H _ _ S_ _ _ M3 • (G54 work coordinate system 1 selection)
Main body • G28 Z3. M9 ( G28 zero return, M9 coolant off) • G91 G30 Y0 • G90 • M1 (optional stop) • N _ _ _ _ T _ _ • M6 (tool change) • G54 G43 X _ _ . _ _ _ Y _ _ . _ _ _ Z3. H _ _ S _ _ _ M3 • (x , y , z position data) • M8
End of Program • G28 Z3. M9 (MAY BE G 80 or G40) • G91 G30 Y0 (G90 incremental command) • G90 M33 ( return tool in the spindle to magazine) • M30 (end of program)
2 6 5 1 3 4
PREPARATORY FUNCTION • 4 peck drill;Table moves to selected location. Peck drill cycle initiated upon arrival at location. Cycle time set by timer on console. • 5 DRILL:Table moves to selected location. Spindle moves down rapidly to preset feed point, proceeds at set feed rate to final depth and retracts rapidly. • 6 MILL:Spindle moves down rapidly to set feed point, proceeds at set feed rate to final depth and then at set mill feed rate to selected location.