You are on page 1of 24

ALL CNC “G & M”

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

FANUC G code of lathe


G code Explanation
G00 Positioning
G01 Linear interpolation
G02 Circular interpolation/Helical interpolation CW
G03 Circular interpolation/Helical interpolation CCW
G04 Dwell
G09 Exact stop
G20 Input in inch
G21 Input in mm
G22 Stored stroke check function on
G23 Stored stroke check function off
G27 Check reference point return
G28 Automatic return to reference position
G29 Automatic return from reference position
G30 2nd reference position return
G32 Thread cutting
G40 Cutter compensation cancel
G41 Cutter compensation left
G42 Cutter compensation right
G50 Scaling cancel
G52 Local coordinate system setting
G53 Machine coordinate system selection
G70 Finish maching cycle
G71 Inside and outside diameter rough cutting cycle
G72 Step rough cutting cycle
G73 Pattern repeating
G74 Peck dring cycle-Z axis
G75 Grooving in X axis
G76 Thread cutting cycle
G80 Canned cycle cancel
G83 Peck drilling cycle
G84 Tapping cycle
G85 Boring cycle
G87 Back drilling cycle
G88 Back tapping cycle
G89 Back boring cycle
G90 Cutting cycle ‘A'
G92 Thread cutting cycle
G94 (step)cutting cycle
G96 Constant surface speed control
G97 Constant surface speed control cancel
G98 Feed per minute
G99 Feed per rotation
Support macro programming

Page
2
ALL CNC “G & M”
CODES

FANUC G code of mille


G code Explanation
G00 Positioning(rapid moveing)
G01 Linear interpolation
G02 Circular interpolation/Helical interpolation CW
G03 Circular interpolation/Helical interpolation CCW
G04 Dwell
G15/G16 Polar coordinates command
G17 XpYp plane selection
G18 ZpXp plane selection
G19 YpZp plane selection
G28 Return to reference position
G30 2nd, 3rd and 4th reference position return
*G40 Cutter compensation cancel
G41 Cutter compensation left
G42 Cutter compensation right
*G43 Tool length compensation + direction
*G44 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 Workpiece coordinate system 3 selection
G57 Workpiece coordinate system 4 selection
G58 Workpiece coordinate system 5 selection
G59 Workpiece coordinate system 6 selection
G73 Rapid deep drilling cycle
G74 Left-spiral cutting circle
G76 Fine boring cycle
*G80 Canned cycle cancel
G81 Drilling cycle, spot boring
G82 Counter boring cycle
G83 Deep hole drilling cycle
G84 Right Helical cutting cycle
G85 Boring cycle
G86 Boring cycle
G87 Counter boring cycle
G88 Boring cycle
G89 Boring 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
G50
Zoom
G51
G68
Coordinate rotation
G69

Page
3
ALL CNC “G & M”
CODES
Support macro programming

FANUC M operation code


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
M08 Coolant on
M09 Coolant off
M30 Program end and reset
M48 Cancel M49
M49 Bypass Override
M94 Mirror image cancel
M95 Mirrorimage of X axis
M96 Mirrorimage of Y axis
M98 Subprogram call
M99 Subprogram end

SIEMENS G code of miller


Address Explanation
D Tool offset number
F Feedrate(Dwell time block with G4)
G G function (preparatory function)
G0 Linear interpolation at rapid trav
G1 rse rate
Linear interpolation

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

SIEMENS802S/CM canned cycle


Cycle Explanation
LCYC82 Drilling, counterbore machining
LCYC83 Deep-hole drilling
LCYC840 Thread cutting with compensate clamp
LCYC84 Thread cutting without compensate clamp
LCYC85 Boring
LCYC60 Linearity holes permutation
LCYC61 Arc holes permutation
LCYC75 Rectangular channel,keyway,rotundity groove milling

SIEMENS802DM/810/840DM canned cycle


Cycle Explanation
CYCLE82 Drilling, counterboring
CYCLE83 Deep-hole drilling
CYCLE84 Rigid tapping
CYCLE85
Reaming1 (boring-out 1)

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

SIEMENS G code of lathe


Address Explanation
D Tool offset number
F
F Feedrate(Dwell time block with G4)
G G function (preparatory function)
G0 Rapid traverse
G1 Linear interpolation
G2 Circular interpolation CW
G3 Circular interpolation CCW
G33 Thread cutting with constant pitch
G4 Rapid moving
G63 Rapid moving
G74 Reference point approach
G75 Fixed-point approach
G17 (when center-drilling, TRANSMIT milling required)
G18* Z/X 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

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

RET End of subroutine


S Spindle speed, Dwell time in block with G4
T Tool number
X Axis
Y Axis
Z Axis
AR Aperture angle for circular interpolation
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
Support parameter programming

SIEMENS 801、802S/CT、 802SeT canned cycle


Cycle Explanation
LCYC82 Drilling, counterboring
LCYC83 Deep-hole drilling
LCYC840 Tapping with compensating chuck
LCYC84 Tapping with
LCYC85 ut compensating
chuck
Boring

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

HNC G code of lathe


G code Explanation
G00 Positioning
G01 Linear interpolation
G02 Circular interpolation/Helical interpolation CW
G03 Circular interpolation/Helical interpolation CCW
G04 Dwell
G09 Exact stop
G20 Input in inch
G21 Input in mm
G22 Stored stroke check function on
G23 Stored stroke check function off
G27 Reference position return check
G28 Return to reference position
G29 Return from reference position
G30 2nd reference position return
G32 Thread cutting
G36 Diameter programming
G37 Radius programming
G40 Cutter compensation cancel
G41 Cutter compensation left
G42 Cutter compensation right
G53 Machine coordinate system selection
G54—G59 Coordinate system selection
G71 Inside and outside diameter rough cutting cycle
G72 Step rough cutting cycle
G73 Pattern repeating
G76 Thread cutting cycle
G80 Inside and outside diameter cutting cycle
G81 Face cutting canned cycle
G82 Thread cutting canned cycle
G90 Absolute command
G91 Increment command
G92 Setting for work coordinate system
G96 Constant surface speed control
G97 Constant surface speed control cancel
G94 Feeding rate per minute
G95 Feeding rate per round
Support parameter and macro programming

HNC G code of miller

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

KND100 G code of miller


G code Group Explanation
G00 Positioning (rapid moving)
G01 Linear interpolation
01
G02 Circular interpolation/Helical interpolation CW
G03 Circular interpolation/Helical interpolation CCW
G04 00 Dwell
G17 XpYp plane selection
G18 02 ZpXp plane selection
G19 YpZp plane selection
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
*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 Peck drilling cycle
G74 Left-spiral cutting circle
G76 Fine boring cycle
*G80 Canned cycle cancel
G81 Drilling cycle, spot boring cycle
G82 Drilling cycle
G83 09 Peck drilling cycle
G84 Tapping cycle
G85 Boring cycle
G86 Drilling cycle
G87 Counter boring cycle
G88 Boring cycle
G89 Boring cycle
*G90 03 Absolute command

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 G code of lathe


G code Group Explanation
G00 Positioning
G01 Linear interpolation
01
G02 Circular interpolation/Helical interpolation CW
G03 Circular interpolation/Helical interpolation CCW
G04 Dwell
00
G10 Deviant setting
G20 Input in inch
06
G21 Input in mm
G27 Reference position return check
G28 Return to reference position
00
G29 Return from reference position
G31 Jumping feature
G32 01 Thread cutting
G36 Automatic work offset measurement of X axis
G37 Automatic work offset measurement of Z axis
G40 Cutter compensation cancel
G41 07 Cutter compensation left
G42 Cutter compensation right
G50 Coordinate system setting
G54 00 Workpiece coordinate system
G55---G59 Workpiece coordinate system
G70 Finish maching cycle
G71 Inside and outside diameter rough cutting cycle
G72 Step rough cutting cycle
G73 00 Pattern repeating
G74 Peck dring cycle-Z axis
G75 Inside and outside circle cutting cycle
G76 Thread cutting cycle
G90 Inside and outside diameter cutting cycle
G92 01 Thread cutting cycle
G94 Step cutting cycle
G96 Constant surface speed control
12
G97 Constant surface speed control cancel
G98 Feed per minute
05
G99 Feed per rotation

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

GSK980 G code of lathe


G code Group Function
G00 Positioning(rapid moveing)
*G01 Linear interpolation
01
G02 Circular interpolation/Helical interpolation CW
G03 Circular interpolation/Helical interpolation CCW
G04 Dwell, Exact stop
00
G28 Return to reference position
G32 01 Thread cutting
G50 00 Coordinate system setting
G65 00 Macroprogram command
G70 Finish machining cycle
G71 Excircle rough turn cycle
G72 Endface rough turn cycle
00
G73 Occlude cutting cycle
G74 Endface deep hole processing cycle
G75 Excircle, inner circle nicking cycle
G90 Excircle, inner circle turning cycle
G92 01 Thread cutting cycle
G94 Endface cutting cycle
G96 Constant line speed on
02
G97 Constant line speed off
*G98 Feeding per minute
03
G99 Feeding per round
Support parameter and macro programming

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

GSK928 TC/TE G code


G code Function
G00 Positioning(rapid moveing)
*G01 Linear interpolation
G02 Circular interpolation/Helical interpolation CW
G03 Circular interpolation/Helical interpolation CCW
G32 Tapping cycle
G33 Thread cutting
G71 Excircle rough turn cycle
G72 Endface rough turn cycle
G74 Endface deep hole processing cycle
G75 Excircle, inner circle nicking cycle
G90 Excircle, inner circle turning cycle

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

Support parameter and macro programming

GSK928 TC/TE M command


M code Explanation
M03 Spindle on CW
M04 Spindle on CCW
M05 Spindle 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

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

M00 Program stop


M01 Optional stop
M02 End of program
M03 Spindle on CW
M04 Spindle on CCW
M05 Spindle stop
M06 Tool change
M08 Coolant on
M09 Coolant off
M10 Clamp
M11 Unclamp
M32 Lubrication on
M33 Lubrication off
M98 Subprogram call
M99 Subprogram end

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

G17 XY plane assignment


G18 XZ plane assignment
G19 YZ plane assignment
G28 Return to orgin
G29 Return from reference point
*G40 Cutter compensation cancel
G41 Cutter compensation left
G42 Cutter compensation right
*G43 Tool length compensation + direction
*G44 Tool length compensation – direction
G49 Tool length compensation cancel
*G53 Machine coordinate system selection

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

M9 Cooling pump off

M12 Dwell : continue running till press “run”

M30 Program end

M32 Lubrication on;

Page
15
ALL CNC “G & M”
CODES
M33 Lubrication off;

M98 Subprogram call

M99 Subprogram end

Mitsubishi E60 miller G code


G code Group Explanation
※G00 Positioning(rapid moveing)
*G01 Line
G02r
interpolatio
01
n Circular interpolation/Helical interpolation CW

G03 Circular interpolation/Helical interpolation CCW


G04 Dwell, Exact stop
G05 High-speed processing mode
G09 Exact stop check
G10 00 Program parameter input /repair input
G11 Program parameter input cancel
G12 Circle cutting CW
G13 Circle cutting CCW
*G17 Plane selection X-Y
※G18 02 Plane selection Z-X
G19 Plane selection Y-Z
※G20 Inch instruction
06
G21 Metric instruction
G27 Reference origin check
G28 Reference origin revert
G29 00 Initial point revert
G30 2nd~4nd reference origin revert
G31 Jumping motivation
G33 01 Thread cutting
G37 Tool length automatic mensuration
G38 00 Positive value of cutter radius compensation appointing
G39 Tool diameter offset and corner arc offset
*G40 Cutter radius compensation cancel
G41 07 Cutter radius positive compensation left
G42 Cutter radius positive compensation right
G43 Positive quantity of cutter length compensation(+)
G44 08 Positive quantity of cutter length compensation(-)
*G49 Positive quantity of cutter length compensation cancel
G52 00 Local coordinate system setting
G53 Machine coordinate system selection
*G54 12 Workpiece coordinate system 1 selection
G code Group Explanation
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

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

DASEN 3I miller 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 Dwell
G05 High-speed processing mode
G09 Exact stop check
G10 00 Program parameter input /repair input
G11 Program parameter input cancel
G12 Circle cutting CW
G13 Circle cutting CCW
*G17 Plane selection X-Y
※G18 02 Plane selection Z-X
G19 Plane selection Y-Z
※G20 Inch instruction
06
G21 Metric instruction
G27 Reference origin check
G28 Reference origin revert
G29 00 Initial point revert
G30 2nd~4nd reference origin revert
G31 Jumping motivation
G33 01 Thread cutting
G37 Tool length automatic mensuration
G38 00 Cutter radius compensation appointting
G39 Cutter radius offset and corner arc offset
*G40 Cutter radius offset cancel
G41 07 Cutter radius offset left
G42 Cutter radius offset right
G43 08 Cutter length offset(+)

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

DASEN 3I lathe G code


G code Group Explanation
※G00 Positioning(rapid moveing)
※G01 Linear interpolation
G02
01
Circular interpolation/Helical interpolation CW

G03 Circular interpolation (CCW)


G04 Dwell
G09 Exact stop check
00
G10 Program parameter input /repair input
G11 Program parameter input /repair input cancel
※G17 X-Y Plane selection
※G18 02 Z-X Plane selection
※G19 Y-Z Plane selection
※G20 Inch instruction
06
※G21 Metric instruction

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

G33 Thread cutting


01
G34 Changeable thread cutting
G37 00 Tool length automatic mensuration
*G40 Cutter radius compensation cancel
G41 Cutter radius compensation left
07
G42 Cutter radius compensation right
G46 Cutter radius compensation(automatic direction selection)ON
G52 Local coordinate system selection
00
G53 Machine coordinate system selection
※G54 Workpiece coordinate system selection 1
G55 Workpiece coordinate system selection 2
G56 Work
G57iece
coordinat
e system
12
selection Workpiece coordinate system selection 4
3

G58 Workpiece coordinate system selection 5


G59 Workpiece coordinate system selection 6
G61 Exact stop check mode
G62 Auto adjusting for corner feed
13
G63 Taping mode
*G64 Cutting mode
G70 Finish cutting cycle
G71 Straight turning rough machining cycle
G72 Face rough cutting cycle
G73 Spindle mesa moving in rough machining cycle
G74 Face cutting cycle
G75 Straight turning cycle
G76 Thread cuttin
G77
double-
cycle Appurtenant cutting cycle
09

G78 Tooth turning canned cycle


G79 Face cutting canned cycle
*G80 Hole machining cycle instruction cancel
G83 Gun drilling cycle(Z axis)
G84 Taping cycle(Z axis)
G85 Boring cycle(Z axis)
G Deep hole drilling cycle(X axis)
G88 Taping cycle(X axis)
G89 Boring cycle(X axis)
※G90 Absolute value instruction
03
※G91 Incremental value instruction
G92 00 Machine coordinate system setting

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

G74 Return to reference point


G75 Return to presetting point
G76 Return to start point
G77 Recover current coordinate system
G81 Excircle machining cycle
G82 Face machining cycle
G85 Inch rigid tapping cycle
G86 Metric thread machining cycle
G87 Inch screw thread machining cycle
G90 Absolute value programming
G91 Incremental value programming
G92 Set zero point of program
G96 Constant surface speed control
G97 Constant surface speed control cancel
G98 Feed per round cancel
G99 Feed per round setting
P= parameter variable assignment

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

G04 Time delay


G09 Feed exact stop
G11 Block mirror image along Y axis
G12 Block mirror image along X axis
G13 Block mirror machining according to origin
G17 Plane selection X-Y
G18 Plane selection Z-X
G19 Plane selection Y-Z
G20 Subprogram call
G22 Subprogram defining
G24 Subprogram defining end, return called program
G25 Jumping machining
G26 Transfer machining
G27 Endless loop
G30 multiplying power off

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

G54~G59 Workpiece coordinate system selection


G73 Rapid deep hole machining cycle
G74 Return to reference point
G75 Return to presetting point
G76 Return to start point
G78 Finish boring cycle
G81 Centre
G82drilling Centre drilling cycle with pause

Page
21
ALL CNC “G & M”
cycle with
CODES
pause

G83 Deep hole processing cycle


G84 Metric rigid tapping cycle
G85 Inch rigid tapping cycle
G86 Boring cycle(selfrecovery)
G87 Counter boring cycle
G88 Boring cycle(manual return)
G89
Boring cycle with pause

G90 Absolute value programming


G91 Incremental value programming
G92 Workpiece coordinate system setting
P= parameter variable assignment

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

RENHE 32TG code


G code Explanation
G00 Rapid positioning
G01 Linear interpolation
G02、G03 Arc interpolation
G04 Time delay
G26、G27、G28、G29 Return to initial point
G22、G80 program loop
G23 Rectangle cycle
G37、G38、G39、G36 Return to rigid r
G82、G83 ference
point
Thread cutting cycle

G46,G47,G48,G49 Return soft reference point


G96,G97 Constant liner speed cutting

RENHE 32T M command


n
M command Explanati

M00 program halt

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

SKY 2003N M G codes


G code Group Type Function
G00 01 1 Rapid positioning )
G01 Linear interpolation
G02 Circular interpolation CW
G03 Circular interpolation CCW
G02+Z Helical interpolation right
G03+Z Helical interpolation l
G04ft
02 2 Dwell

G17 04 1 XY Pl
G18ne selection
1 ZX Plane selection

G19 YZ Plane selection


G40 07 1 Cutter radius compensation cancel
G41 Cutter radius compensation(+) (left)
G42 Cutter radius compensation(-) (right)
G43 08 Cutter length compensation(+)
G44 Cutter length compensation(-)
G49 Cutter length compensation cancel
G50 11 Zoom、mirrorimage off
G51 11 Zoom、mirrorimage on
G54 14 Workpiece coordinate system 1 selection
G55 Workpiece coordinate system 2 s
G56lection
Workpiece coordinate

G57system 3 selection
Workpiece coordinate system 4 selection

G58 Workpiece coordinate system 5 selection


G59 Workpiece coordinate system 6 selection
G68 03 Coordinate rotating
G69 03 Coordinate rotating cancel
G73 15 Stepping cycle
G74 counter tapping cycle(machining center)
G76 Finish boring cycle(machining center)
G80 Canned cycle cancel
G81 Drilling、spot-facing cycle
G82 Drilling、reverse boring cycle
G83 Depth drill cycle
G84 Taping cycle

Page
23
ALL CNC “G & M”
G85/G86
CODES Boring cycle
G87 Counter b
G88/G89ring cycle
Boring cycle

G90 00 Absolute value programming


G91 Incremental value programming
G92 05 Coordinate system setting
G98 16 Return to initial plane
G99 Return to R point plane

SKY 2003N M M command


Group M code Function
A M00,M01,M02 Program stop, program optional stop, program end
B M03,M04,M05 Spindle on CW, spindle on CCW, spindle stop
C M06 Automatic tool changing
D M08,M09 Coolant on, coolant off
E M98,M99 Subprogram call, subprogram return

Page
24

You might also like