G-Code for lathe machine
G-Code
|
Description
|
G00
|
Rapid traverse
|
G01
|
Linear interpolation
|
G02
|
Circular interpolation CW
|
G03
|
Circular interpolation
CCW
|
G04
|
Dwell
|
Go9
|
Exact stop
|
G10
|
Programmable data input
|
G20
|
input inch
|
G21
|
Input mm
|
G22
|
Stored store
check function on
|
G23
|
Stored store check function of
|
G27
|
Reference
position return check
|
G28
|
Return to reference position
|
G32
|
Thread cutting
|
G40
|
Tool nose radius compensation cancel
|
G41
|
Tool nose
radius compensation left
|
G42
|
Tool nose radius compensation right
|
G50
|
Reference position
|
G70
|
Finish machining cycle
|
G71
|
Turning cycle
|
G72
|
Facing cycle
|
G73
|
Pattern
repeating cycle
|
G74
|
Pack drilling cycle
|
G75
|
Grooving cycle
|
G76
|
Threading cycle
|
G92
|
Coordinate system setting or max. spindle speed setting
|
G94
|
Feed per minute
|
G95
|
Feed per revolution
|
G96
|
Constant surface speed control
|
G97
|
Constant surface speed cancel
|
M-Code for lathe mahcine
M-Code
|
Description
|
M00
|
Program stop
|
M01
|
Optional
program stop
|
M02
|
End of program
|
Mo3
|
Spindle start
forward CW
|
M04
|
Spindle start reverse CCW
|
M05
|
Spindle stop
|
M08
|
Coolant on
|
M09
|
Coolant off
|
M29
|
Rigid tap mode
|
M30
|
End program
reset
|
M40
|
Spindle gear at middle
|
M41
|
Low gear select
|
M42
|
High gear select
|
M68
|
Hydraulic chuck
close
|
M69
|
Hydraulic chuck open
|
M78
|
Tail stock
advancing
|
M79
|
Tail stock reversing
|
M98
|
Sub program
call
|
M99
|
End of sub program
|
G-Code for milling machin
G-Code
|
Description
|
G00
|
Rapid traverse
|
G01
|
Linear
interpolation
|
G02
|
Circular interpolation CW
|
G03
|
Circular
interpolation CCW
|
G04
|
Dwell
|
G17
|
X Y Plane
selection
|
G18
|
Z X Plane selection
|
G19
|
Y Z 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
|
Work piece
coordinate system 1 selection
|
G55
|
Work piece coordinate system 2 selection
|
G56
|
Work piece
coordinate system 3 selection
|
G57
|
Work piece coordinate system 4 selection
|
G58
|
Work piece
coordinate system 5 selection
|
G59
|
Work piece coordinate system 6 selection
|
G68
|
Coordinate
rotation
|
G69
|
Coordinate rotation cancel
|
G73
|
Peck
drilling cycle
|
G74
|
Left- spiral cutting circle
|
G76
|
Find boring
cycle
|
G80
|
Canned cycle cancel
|
G81
|
Drilling
cycle, spot boring cycle
|
G82
|
Drilling cycle or counter boring cycle
|
G83
|
Peck
drilling cycle
|
G84
|
Tapping cycle
|
G85
|
Boring
cycle
|
G86
|
Boring cycle
|
G87
|
Back boring
cycle
|
G88
|
Boring cycle
|
G89
|
Boring
cycle
|
G90
|
Absolute command
|
G91
|
Increment
command
|
G92
|
Setting for work coordinate system or clamp at maximum
spindle speed
|
G98
|
Return to
initial point in canned cycle
|
G99
|
Return to R point in canned cycle
|
No comments:
Post a Comment