Professional Documents
Culture Documents
CODES
FANUC G code of lathe
FANUC G code of miller
FANUC M operation code
SIEMENS G code of miller
SIEMENS802S/CM canned cycle
SIEMENS802DM/810/840DM canned cycle
SIEMENS G code of lathe
SIEMENS 801 、 802S/CT 、 802SeT canned cycle
SIEMENS 802D 、 810D/840D canned cycle
HNC G code of lathe
HNC G code of miller
HNC M command
KND100 G code of miller
KND100 G code of lathe
KND100 M command
GSK980 G code of lathe
GSK980T M command
GSK928 TC/TE G code
GSK928 TC/TE M command
GSK990M G code
GSK990M G code
GSK928MA G code
GSK928MA M command
Mitsubishi E60 G code of miller
DASEN 3I G code of miller
DASEN 3I G code of lathe
WA G code of lathe
WA M command
WA G code of miller
WA M command
RENHE 32T G code
RENHE 32T M command
SKY 2003N G code
SKY 2003N M command
Page
1
ALL CNC “G & M”
CODES
Page
2
ALL CNC “G & M”
CODES
Page
3
ALL CNC “G & M”
CODES
Support macro programming
G2 Circular interpolation CW
G3 Circular interpolation CCW
CIP Circular interpolation via intermediate point
G33 Thread cutting with constant pitch
G331 Thread interpolation
G332 Thread interpolation – retraction
CT Transitional circular interpolation with tangent
G4 Rapid moving
G63 Rapid moving
G74 Reference point approach
G75 Fixed-point approach
G25 Lower spindle speed limitation
G26 Upper spindle speed limitation
G110 Pole specification, relative to the last programmed set position
G110 Pole specification, relative to the origin of the current workpiece coordinate system
G120 Pole specification, relative to the POLElast valid
G17* X/Y plane
Page
4
ALL CNC “G & M”
G18
CODES
Z/X plane
G19 Y/Z plane
G40 Tool radius compensation OFF
G41 Tool radius compensation left of the contour
G42 Tool radius compensation right of the contour
G500 Settable work offset OFF
G54 1st settable work offset
G55 2st settable work offset
G56 3st settable work offset
G57 4st settable work offset
G58 5st settable work offset
G59 6st settable work offset
G53 Non-modal skipping of the settable work offset
G60* Exact stop
G70 Inch dimension input
G71* Metric dimension data input
G700 Inch dimension data input; also for feedrate F
G710 Metric dimension data input; also for feedrate F
G90* Absolute dimension data input
G91 Incremental dimension data input
G94* Feed F in mm/min
G95 Feedrate F in mm/spindle revolutions
G901 Feed offset “on” in arc
G900 Feed offset “off”
G450 Transition circle
G451 Intersection
I Interpolation parameters
J Interpolation parameters
K Interpolation parameters
I1 Intermediate point for circular interpolation
J1 Intermediate point for circular interpolation
K1 Intermediate point for circular interpolation
L Subroutine; name and call
M Miscellaneous function
M0 Programmed stop
M1 Optional stop
M2 End of program
M3 CW rotation of spindle
M4 CCW rotation of spindle
M5 Spindle stop
M6 Tool change
N Block number of an auxiliary block
: Block number of a main block
P Number of subroutine passes
RET End of subroutine
S Spindle speed, Dwell time in block with G4
T Tool number
X Axis
Y Axis
Z Axis
CALL Indirect cycle call
CHF Chamfer; general use
CHR Chamfer; in the contour definition
CR Radius for circular interpolation
GOTOB GoBack instruction
GOTOF GoForward instruction
RND Rounding
Page
5
ALL CNC “G & M”
CODES
Support parameter programming
CYCLE86 Boring
CYCLE88 Drilling with Stop
CYCLE71 Endface milling
LONGHOLE Long hole
POCKET4 Circular pocket
POCKET3 Square pocket
SLOT1 Milling a slot
SLOT2 Milling a circumferential slot
Page
6
ALL CNC “G & M”
G53
CODES
Non-modal skipping of the settable work offset
G70 Inch dimension input
G71* Metric dimension data input
G90* Absolute dimension data input
G91 Incremental dimension data input
G94* Feed F in mm/min
G95 Feedrate F in mm/spindle revolutions
I Interpolation parameters
I1 Intermediate
K1 Intermediate
L Subroutine; name and call
M Miscellaneous function
M0 Programmed stop
M1 Optional stop
M2 End of program
M30
M17
M3 CW rotation of spindle
M4 CCW rotation of spindle
M5 Spindle stop
M6 Tool change
N Block number of an auxiliary block
: Block numbe
P of a main
block
Number of subroutine passes
LCYC93 Groove
LCYC95 Cutting with relief cut
LCYC97 Thread cutting
Page
7
ALL CNC “G & M”
CODES
SIEMENS 802D、810D/840D canned cycle
Cycle Explanation
1
CYCLE
Face milling
CYCLE82 Drilling, counterboring
YCLE83 Deep-hole drilling
CYCLE84 Rigid tapping
CYCLE85 Reaming
CYCLE86 Boring
CYCLE88 Boring with stop
CYCLE93 Groove
CYCLE94 Undercut DIN76 (forms E and F), finishing
CYCLE95 Cutting with relief cut
CYCLE97 Thread cutting
Page
8
ALL CNC “G & M”
G code Group
CODES Explanation
*G00 Positioning(rapid moveing)
G01 Linear interpolation
01
G02 Circular interpolation/Helical interpolation CW
G03 Circular interpolation/Helical interpolation CCW
G04 00 Dwell
G07 16 Imaginary axis appointing
G09 00 Stop checkout
*G17 XpYp plane assignment
G18 02 XpZp plane assignment
G19 YpZp plane assignment
G20 Input in inch
*G21 08 Input in mm
G22 Pulse equivalent
G24 Mirrorimage open
03
*G25 Mirrorimage close
G28 Return to reference position
00
G29 Return from reference position
*G40 Cutter compensation cancel
G41 07 Cutter compensation left
G42 Cutter compensation right
G43 Tool length compensation + direction
G44 08 Tool length compensation – direction
*G49 Tool length compensation cancel
*G50 Zoom off
04
G51 Zoom on
G52 Local coordinate system setting
00
G53 Machine coordinate system selection
*G54 Workpiece coordinate system 1 selection
G55 Workpiece coordinate system 2 selection
G56 Workpiece coordinate system 3 selection
14
G57 Workpiece coordinate system 4 selection
G58 Workpiece coordinate system 5 selection
G59 Workpiece coordinate system 6 selection
G60 00 Uni-directional positioning
*G61 Exact stop
12
G64 Continuous mode
G68 Rotation
05
*G69 Rotation cancel
G73 Peck drilling cycle
G74 Left-spiral cutting circle
G76 Fine boring cycle
*G80 Canned cycle cancel
G81 Drilling cycle, spot boring cycle
G82 Counter boring cycle
G83 09 Deep-hole drilling cycle
G84 Right spin cutting cycle
G85 Boring cycle
G86 Boring cycle
G87 Counter-boring cycle
G88 Boring cycle
G89 Boring cycle
*G90 Absolute command
03
G91 Increment command
G92 00 Setting for work coordinate system
*G94 Feeding per minute
14
G95 Feeding per round
Page
9
ALL CNC “G & M”
*G98
CODES
Return to initial point in canned cycle
10
G99 Return to R point in canned cycle
Support parameter and macro programming
HNC M commands
M code Explanation
M00 Program stop
M01 Optional stop
M02 End of program
M03 Spindle on CW
M04 Spindle on CCW
M05 Spindle stop
M06 Tool change
M07 Coolant on
M09 Coolant off
M98 Subprogram call
M99 Subprogram end
Page
10
ALL CNC “G & M”
G91
CODES
Increment command
G92 00 Setting for work coordinate system
*G98 Return to initial point in canned cycle
10
*G99 Return to R point in canned cycle
KND100 M command
M code Explanation
M00 Program stop
M01 Optional stop
M02 End of program
M03 Spindle on clockwise(CW)
M04 Spindle on counterclockwise(CCW)
M05 Spindle stop
M06 Tool change
M08 Coolant on
M09 Coolant off
M10 clamp
M11 unclamp
M32 Lubrication on
Page
11
ALL CNC “G & M”
M33
CODES
Lubrication off
M98 Subprogram call
M99 Subprogram end
GSK980T M command
M code Explanation
M03 Spingdle on CW
M04 Spingdle on CCW
M05 Spingdle stop
M08 Coolant on
M09 Coolant off(no output signal)
M32 Lubrication on
M33 Lubrication off(no output signal)
M10 Standby
M11 Standby tip(no output signal)
M00 Program stop
M30 program end and reset
Page
12
ALL CNC “G & M”
CODES
G92 Thread cutting cycle
G94 External and internal cone face cycle
G22 Local loop start
G80 Local loop end
*G98 Feeding per minute
G99 Feeding per round
G50 Set absolute coordinate system of workpiece
G26 X、Z axis return to reference point
G27 X axis return to reference po
G29nt
Z axis return to reference point
GSK990M G code
G code Group Explanation
G00 Positioning(rapid moveing)
G01 Linear interpolation
01
G02 Circular interpolation/Helical interpolation CW
G03 Circular interpolation/Helical interpolation CCW
G04 00 Dwell
G17 XY plane assignment
G18 02 XZ plane assignment
G19 YZ plane assignment
G28 Return to orgin
00
G29 Return from reference point
*G40 Cutter compensation cancel
G41 07 Cutter compensation left
G42 Cutter compensation right
*G43 Tool length compensation + direction
*G44 08 Tool length compensation – direction
G49 Tool length compensation cancel
*G53 Machine coordinate system selection
G54 Workpiece coordinate system 1 selection
G55 Workpiece coordinate system 2 selection
G56 14 Workpiece coordinate system 3 selection
G57 Workpiece coordinate system 4 selection
G58 Workpiece coordinate system 5 selection
G59 Workpiece coordinate system 6 selection
G73 09 Peck drilling cycle
G74 Left-spiral cutting circle
G76 Fine boring cycle
*G80 Canned cycle cancel
Page
13
ALL CNC “G & M”
G81
CODES
Drilling cycle, spot boring cycle
G82 Drilling cycle
G83 Peck drilling cycle
G84 Tapping cycle
G85 Boring cycle
G86 drilling cycle
G87 Counter bring cycle
G88 Boring cycle
G89 Boring cycle
*G90 Absolute command
03
G91 Increment command
G92 00 Setting for work coordinate system
*G98 Return to initial point in canned cycle
10
*G99 Return to R point in canned cycle
GSK990M M command
xplanation
M code
GSK928MA G code
G code Explanation
G00 Positioning(rapid moveing)
G1 Linear interpolation
G02 Circular interpolation/Helical interpolation CW
G03 Circular interpolation/Helical
G04nterpolatio
n CCW
Time delay
Page
14
ALL CNC “G & M”
G54
CODES
Workpiece coordinate system 1 selection
G55 Workpiece coordinate system 2 selection
G56 Workpiece coordinate system 3 selection
G57 Workpiece coordinate system 4 selection
G58 Workpiece coordinate system 5 selection
G59 Workpiece coordinate system 6 selection
G73 Peck drilling cycle
G74 Left-spiral cutting circle
G80 Canned cycle cancel
G81 Peck drilling cycle
G82 Drilling cycle
G83 Peck drilling cycle
G84 Right-spiral tapping circle
G85 Broing cycle
G86 Dring cycle
G89 Broing cycle
*G90 Absolute command
G91 Increment command
G92 Setting for work coordinate system
*G98 Return to initial point in canned cycle
*G99 Return to R point in canned cycle
G10 G11 Groove inner-rough mill for groove of circle
G12 G13 Full circle inner-finish mill
G14 G15 Excircle finish mill
G22 System parameter operation(mode)
G23 Parameter values jumping judgement
G27 Mechanical zero detection
G28 Rapid fixing to program via mesial point
G31 Rapid returning to R reference face
G34 G35 Rectangle groove inner- finish milling
G38 G39 Rectangle outside- finish milling
GSK928MA M command
M
Explanation
code
Program stop. spindle stop , coolant off and point to next segment after finish other commands. Stop doing
M0 more procession and wait to press RUN to continue the program running.
Stop doing more procession and wait to press RUN to continue the program running.
End of program. spindle stop, coolant off, cancel G93 coordinate offset and cutter offset, then return to start
M2
program
M3 Spindle on CW
M4 Spindle on CCW
M5 Spindle stop
M8 Cooling pump on
Page
15
ALL CNC “G & M”
CODES
M33 Lubrication off;
Page
16
ALL CNC “G & M”
*G64
CODES
Cutting mode
G73 09 Canned cycle(stepping cycle)
G74 Canned cycle(reverse taping)
G76 Canned cycle(finish boring)
*G80 Canned cycle cancel
G81 Canned cycle(drill/lead hole)
G82 Canned cycle(drill / counting boring)
G83 Canned cycle(gun drilling)
G84 Canned cycle(taping)
G85 Canned cycle(boring)
G86 Canned cycle(boring)
G87 Canned cycle(counter boring)
G88 Canned cycle(boring)
G89 Canned cycle(boring)
*G90 03 Absolute value instruction
*G91 Incremental value instruction
G92 00 Machine coordinate system setting
G93 05 Feed CCW
*G94 Un-synchronization cutting (feed per minute)
*G95 synchronization cutting(feed per round)
*G96 17 Round speed control on
*G97 Round speed control off
*G98 10 Canned cycle initial point revert
G99 Canned cycle R point revert
Support parameter and macro programming
Page
17
ALL CNC “G & M”
G44
CODES
Cutter length offset(-)
*G49 Cutter length offset cancel
G52 Local coordinate system setting
00
G53 Machine coordinate system selection
*G54 12 Workpiece coordinate system 1 selection
G55 12 Workpiece coordinate system 2 selection
G56 Workpiece coordinate system 3 selection
G57 Workpiece coordinate system 4 selection
G58 Workpiece coordinate system 5 selection
G59 Workpiece coordinate system 6 selection
G60 00 Position fixing in single direction
G61 13 Exact stop check mode
G62 Auto adjusting for corner feed
G63 Taping mode
*G64 Cutting mode
G73 09 Canned cycle(stepping cycle)
G74 Canned cycle(reverse taping)
G76 Canned cycle(finish boring)
*G80 Canned cycle cancel
G81 Canned cycle(drill/lead hole)
G82 Canned cycle(drill / counting boring)
G83 Canned cycle(gun drilling)
G84 Canned cycle(taping)
G85 Canned cycle(boring)
G86 Canned cycle(boring)
G87 Canned cycle(counter boring)
G88 Canned cycle(boring)
G89 Canned cycle(boring)
*G90 03 Absolute value instruction
*G91 Incremental value instruction
G92 00 Machine coordinate system setting
G93 05 Feed CCW
*G94 Un-synchronization cutting(feed per minute)
*G95 Synchronization cutting(feed per round)
*G96 17 Round speed control on
*G97 Round speed control off
*G98 10 Canned cycle initial point revert
G99 Canned cycle R point revert
Support parameter and macro programming
Page
18
ALL CNC “G & M”
G27
CODES
Reference point revert check
G28 Automatic reference point revert
G29 Revert from reference point
G30 2nd,3nd,4nd reference poin
00
G31
revert
umping motivation
Page
19
ALL CNC “G & M”
※G94
CODES
Un-synchronization cutting (feed per minute)
05
※G95 Synchronization cutting(feed per round)
※G96 Round speed control on
17
※G97 Round speed control off
*G98 Canned cycle initial point revert
10
G99 Canned cycle R point revert
Support parameter and macro programming
WA lathe G code
G code Explanation
G00 Rapid positioning
G01 Linear interpolation
G02 Circular interpolation/Helical interpolation CW
G03 Circular interpolation/Helical interpolation CCW
G04 Time delay
G09 Feed exact stop
G20 Independency subprogram call
G22 Independency subprogram defining
G24 Independency subprogram defining end, return called program
G25 Jumping machining
G26 Block calls subprogram in machining program
G27 Endless loop
G30 Multiplying power off
G31 Multiplying power defining
G47 Short space rate automatic transition
G48 Cancel
G54~G59 Workpiece coordinate system selection
G71 Inside and outside diameter cutting compound cycle
G72
G73ace cutting
compound
cycle Close shape compound cycle
WA lathe M instruction
M command Explanation
M01 Conditional stop
M02 Program end and stop
M03 Spindle on CW
Page
20
ALL CNC “G & M”
M04
CODES
Spindle on CCW
M05 Spindle stop
M06 Coolant on
M07 Coolant off
M08 Clamp
M09 Unclamp
M10 appointed relay on
M11 appointed relay off
M20 Tool compensation number setting
M21 Program end and return to start of program
M71~M85 Relay pulse output
WA miller G code
G code Explanation
G01 Linear interpolation
G02 Circular interpolation/Helical in
G03erpolation
CW
Circular interpolation/Helical interpolation CCW
G3
multiplying power defining
G40 Cutter radius compensation cancel
G41 Cutter radius compensation(+) (left)
G42 Cutter radius compensation(-) (right)
G43 Cutter length compensation founding
G44 Cutter length compensation cancel
G47 Short space
G48ate
automatic
transition cancel
Page
21
ALL CNC “G & M”
cycle with
CODES
pause
WA miller M instruction
M command Explanation
M00 Program halt
M01 L××(K××)
M02 Program end and stop
M03 Spindle on CW
M04 Spindle on CCW
M05 Spindle stop
M08 Coolant on
M09 Coolant off
M10 Clamp
M11 Unclamp
M20 K××relay
M21 K××close ××relay
M30 Program end and return to start of program
M71~M85 Relay pulse output
Page
22
ALL CNC “G & M”
M02
CODES Program end
M30 Spindle stop and program end
M20 Autocycle
M03 Spindle on CW
M04 Spindle on CCW
M05 Spindle stop
M06 Waiting for answer after send message
M26 Send message
M21 Waiting for answer after send message
M97 Program jumping
M98 subroutine call instruction
M99 subroutine return instruction
G17 04 1 XY Pl
G18ne selection
1 ZX Plane selection
G57system 3 selection
Workpiece coordinate system 4 selection
Page
23
ALL CNC “G & M”
G85/G86
CODES Boring cycle
G87 Counter b
G88/G89ring cycle
Boring cycle
Page
24