GSK218M CNC System Connection and PLC Manual
223
Warning: the tool must not be installed on the spindle when the spindle tool number is 0, otherwise,
there maybe the accidence when the tool change is executed to damage the machine.
4. Macro program statement of GSK218M CNC System matching with turret tool
magazine
Macro program statement of GSK218M CNC System matching with turret tool magazine
O91001; (program name)
G65 H81 P50 Q#1003 R1; (M.S.T and machine are locked, execute N50, end of program )
G69 G50 G15 G80; (cancel the related modes)
M50; (start the tool change and check its conditions of tool change, if
not, the system alarms.)
G65 H81 P40 Q#1001 R1; (spindle tool number=T tool number: not execute the tool
change but N40, end of program)
G65 H81 P20 Q#1000 R1; (spindle tool number=0: the spindle has no tool, execute N20
instead of the retraction tool instruction)
M19 G91 G30 Z0; (spindle positioning, return to the cooridinate position of tool
change)
M21;
(retraction-> tool magazine rotating tool magazine forward
spindle releasing )
N20 M19 G91 G28 Z0; (return to machine’s origin point)
G65 H81 P30 Q#1002 R1; (T code tool number=0: not execute the tool search but N30)
M22; (tool search ->tool magazine rotating tool magazine forward
spindle releasing tool)
G91 G30 Z0; (return to coordinate point of tool change)
N30 M17; (spindle clamping tool)
M24; (tool magazine retraction)
N40 M51; (end of tool change)
N50 M99; (end of program)
Summary of Contents for 218M
Page 3: ...GSK 218M CNC System Connection and PLC Manual...
Page 15: ...GSK218M CNC System Connection and PLC Manual 12 Volume one Programming...
Page 70: ...GSK218M CNC System Connection and PLC Manual 67 Volume Two Function...
Page 140: ...GSK218M CNC System Connection and PLC Manual 137 Volume Three Operation...
Page 160: ...GSK218M CNC System Connection and PLC Manual 157 Volume Four Connection...