G代码及对应APT语言
= TMARK/--
N SEQNO/--
G00 RAPID, GOTO/-- , Motion Commands
G01 GOTO/--, Linear motion commands
G02 ARCMOV/--, Circular motion commands CLW
G03 ARCMOV/--, Circular motion commands CCLW
G04 DELAY/--
G17 XY circular motion; CUTCOM/--,XYPLAN
G18 ZX circular motions; CUTCOM/--,ZXPLAN
G19 YZ circular motions; CUTCOM/--,YZPLAN
G40 CUTCOM/OFF
G41 CUTCOM/LEFT
G42 CUTCOM/RIGHT
G80 CYCLE/OFF
G81 CYCLE/DRILL,--
G82 CYCLE/FACE,--
G83 CYCLE/DEEP,--
G84 CYCLE/TAP,--
G85 CYCLE/BORE,--
G86 CYCLE/MILL,--
G87 CYCLE/THRU,--
G88 CYCLE/REAM,--
G90 MODE/90, MODE/INCR,OFF
G91 MODE/91. MODE/INCR
G92 SET/START--
G93 MODE/INVERS,ON
G94 FEDRAT/--,IPM
XYZ GOTO/--, Motion commands
ABC GOTO/--, Motion commands
IJK ARCMOV/--, Circular motion
F FEDRAT/--
S SPINDL/--
T LOADTL/--;SELECTL/--
B ROTABL/--
D CUTCOM/--
H LOADTL/--;SELECT/--;CUTCOM/ZAXIS,--
M00 STOP
M01 OPSTOP
M02 END
M03 SPINDL/--,CLW
M04 SPINDL/--,CCLW
M05 SPINDL/OFF
M06 LOADTL/--
M07 COOLNT/MIST
M08 COOLNT/FLOOD
M09 COOLNT/OFF
M19 SPINDL/LOCK
M30 REWIND/--
M41 SPINDL/--,RANGE,1
M42 SPINDL/--,RANGE,2
M43 SPINDL/--,RANGE,3
M50 FEDRAT/LOCK,OFF
M51 FEDRAT/LOCK,ON
/ OPSKIP/--, Block delete
>>>> LEADER/--, Spaces |