Commit 420c1f9f authored by Fabrice Salvaire's avatar Fabrice Salvaire

added Fanuc, Heidenhain, Linux CNC G-codes

parent b1521227
This diff is collapsed.
F:
meaning: set feed rate
G00:
meaning: Rapid traverse
G01:
meaning: Linear interpolation
G02:
meaning: Circular interpolation CW
G03:
meaning: Circular interpolation CCW
G04:
meaning: Dwell
G09:
meaning: Exact stop
G10:
meaning: Programmable data input
G20:
meaning: Input in inch
G21:
meaning: Input in mm
G22:
meaning: Stored stroke check function ON
G23:
meaning: Stored stroke check function OFF
G27:
meaning: Reference position return check
G28:
meaning: Return to reference position
G32:
meaning: Thread cutting
G40:
meaning: Tool nose radius compensation cancel
G41:
meaning: Tool nose radius compensation left
G42:
meaning: Tool nose radius compensation right
G70:
meaning: Finish machining cycle
G71:
meaning: Turning cycle
G72:
meaning: Facing cycle
G73:
meaning: Pattern repeating cycle
G74:
meaning: Peck drilling cycle
G75:
meaning: Grooving cycle
G76:
meaning: Threading cycle
G92:
meaning: Coordinate system setting or max. spindle speed setting
G94:
meaning: Feed per minute
G95:
meaning: Feed per revolution
G96:
meaning: Constant surface speed control
G97:
meaning: Constant surface speed control cancel
M00:
meaning: Program stop
M01:
meaning: Optional program stop
M02:
meaning: End of program
M03:
meaning: Spindle start forward CW
M04:
meaning: Spindle start reverse CCW
M05:
meaning: Spindle stop
M08:
meaning: Coolant ON
M09:
meaning: Coolant OFF
M29:
meaning: Rigid tap mode
M30:
meaning: End of program reset
M40:
meaning: Spindle gear at middle
M41:
meaning: Low gear select
M42:
meaning: High gear select
M68:
meaning: Hydraulic chuck close
M69:
meaning: Hydraulic chuck open
M78:
meaning: Tailstock advancing
M79:
meaning: Tailstock reversing
M94:
meaning: Cancel mirror image
M95:
meaning: Mirror image of X axis
M98:
meaning: Subprogram call
M99:
meaning: End of subprogram
S:
meaning: set spindle speed
T:
meaning: select tool
F:
meaning: set feed rate
G00:
meaning: Rapid traverse
G01:
meaning: Linear interpolation
G02:
meaning: Circular interpolation CW
G03:
meaning: Circular interpolation CCW
G04:
meaning: Dwell
G17:
meaning: X Y plane selection
G18:
meaning: Z X plane selection
G19:
meaning: Y Z plane selection
G28:
meaning: Return to reference position
G30:
meaning: 2nd, 3rd and 4th reference position return
G40:
meaning: Cutter compensation cancel
G41:
meaning: Cutter compensation left
G42:
meaning: Cutter compensation right
G43:
meaning: Tool length compensation + direction
G44:
meaning: Tool length compensation - direction
G49:
meaning: Tool length compensation cancel
G53:
meaning: Machine coordinate system selection
G54:
meaning: Workpiece coordinate system 1 selection
G55:
meaning: Workpiece coordinate system 2 selection
G56:
meaning: Workpiece coordinate system 3 selection
G57:
meaning: Workpiece coordinate system 4 selection
G58:
meaning: Workpiece coordinate system 5 selection
G59:
meaning: Workpiece coordinate system 6 selection
G68:
meaning: Coordinate rotation
G69:
meaning: Coordinate rotation cancel
G73:
meaning: Peck drilling cycle
G74:
meaning: Left-spiral cutting circle
G76:
meaning: Fine boring cycle
G80:
meaning: Canned cycle cancel
G81:
meaning: Drilling cycle, spot boring cycle
G82:
meaning: Drilling cycle or counter boring cycle
G83:
meaning: Peck drilling cycle
G84:
meaning: Tapping cycle
G85:
meaning: Boring cycle
G86:
meaning: Boring cycle
G87:
meaning: Back boring cycle
G88:
meaning: Boring cycle
G89:
meaning: Boring cycle
G90:
meaning: Absolute command
G91:
meaning: Increment command
G92:
meaning: Setting for work coordinate system or clamp at maximum spindle speed
G98:
meaning: Return to initial point in canned cycle
G99:
meaning: Return to R point in canned cycle
M00:
meaning: Program stop
M01:
meaning: Optional program stop
M02:
meaning: End of program
M03:
meaning: Spindle start forward CW
M04:
meaning: Spindle start reverse CCW
M05:
meaning: Spindle stop
M06:
meaning: Tool change
M07:
meaning: Coolant ON – Mist coolant/Coolant thru spindle
M08:
meaning: Coolant ON – Flood coolant
M09:
meaning: Coolant OFF
M19:
meaning: Spindle orientation
M28:
meaning: Return to origin
M29:
meaning: Rigid tap mode
M30:
meaning: End of program (Reset)
M41:
meaning: Low gear select
M42:
meaning: High gear select
M94:
meaning: Cancel mirror image
M95:
meaning: Mirror image of X axis
M96:
meaning: Mirror image of Y axis
M98:
meaning: Subprogram call
M99:
meaning: End of subprogram
S:
meaning: set spindle speed
T:
meaning: select tool
This diff is collapsed.
M0:
meaning: Program stop
M1:
meaning: Optional stop (program stop only with opt. stop)
M2:
meaning: Program end
M3:
meaning: Spindle ON clockwise
M4:
meaning: Spindle ON counterclockwise
M5:
meaning: Spindle Stop
M6:
meaning: Tool change
M8:
meaning: Coolant ON
M9:
meaning: Coolant OFF
M10:
meaning: Dividing head, clamping ON
M11:
meaning: Dividing head, clamping OFF
M17:
meaning: End of subprogram
M25:
meaning: Open clamp/ machine vice
M26:
meaning: Close clamp/ machine vice
M27:
meaning: Swivel dividing head
M30:
meaning: Main program end
M71:
meaning: Puff blowing device ON
M72:
meaning: Puff blowing device OFF
M99:
meaning: Cycle call
This diff is collapsed.
# cf. http://linuxcnc.org/docs/2.7/html/gcode.html
F:
meaning: Set feed rate
# Motion (X Y Z A B C U V W apply to all motions)
G0:
meaning: Rapid Move
G1:
meaning: Linear Move
G23:
meaning: Arc Move
parameters: I J K or R, P
G3:
meaning: Arc Move
parameters: I J K or R, P
G4:
meaning: Dwell
parameters: P
G5:
meaning: Cubic Spline
parameters: I J P Q
G5.1:
meaning: Quadratic Spline
parameters: I J
G5.2:
meaning: NURBS
parameters: P L
G38.2:
meaning: Straight Probe
G38.3:
meaning: Straight Probe
G38.4:
meaning: Straight Probe
G38.5:
meaning: Straight Probe
G33:
meaning: Spindle Synchronized Motion
parameters: K
G33.1:
meaning: Rigid Tapping
parameters: K
G80:
meaning: Cancel Canned Cycle
# Canned cycles (X Y Z or U V W apply to canned cycles, depending on active plane)
G81:
meaning: Drilling Cycle
parameters: R L (P)
G82:
meaning: Drilling Cycle, Dwell
parameters: R L (P)
G83:
meaning: Drilling Cycle, Peck
parameters: R L Q
G73:
meaning: Drilling Cycle, Chip Breaking
parameters: R L Q
G85:
meaning: Boring Cycle, Feed Out
parameters: R L (P)
G89:
meaning: Boring Cycle, Dwell, Feed Out
parameters: R L (P)
G76:
meaning: Threading Cycle
parameters: P Z I J R K Q H L E
# Distance Mode
G90:
meaning: Distance Mode
G91:
meaning: Distance Mode
G90.1:
meaning: Arc Distance Mode
G91.1:
meaning: Arc Distance Mode
G7:
meaning: Lathe Diameter Mode
G8:
meaning: Lathe Radius Mode
# Feed Rate Mode
G93:
meaning: Feed Rate Mode
G94:
meaning: Feed Rate Mode
G95:
meaning: Feed Rate Mode
# Spindle Control
M3:
meaning: Spindle Control
parameters: S
M4:
meaning: Spindle Control
parameters: S
M5:
meaning: Spindle Control
parameters: S
M19:
meaning: Orient Spindle
G96:
meaning: Spindle Control Mode
parameters: S D
G97:
meaning: Spindle Control Mode
parameters: S D
# Coolant
M7:
meaning: Coolant Control
M8:
meaning: Coolant Control
M9:
meaning: Coolant Control
# Tool Length Offset
G43:
meaning: Tool Length Offset
parameters: H
G43.1:
meaning: Dynamic Tool Length Offset
G43.2:
meaning: Apply additional Tool Length Offset
parameters: H
G49:
meaning: Cancel Tool Length Compensation
# Stopping
M0:
meaning: Program Pause
M1:
meaning: Program Pause
M2:
meaning: Program End
M30:
meaning: Program End
M60:
meaning: Pallet Change Pause
# Units
G20:
meaning: Units (inch, mm)
G21:
meaning: Units (inch, mm)
# Plane Selection: (affects G2, G3, G81…G89, G40…G42)
G17:
meaning: Plane Select
G17.1:
meaning: Plane Select
G18:
meaning: Plane Select
G18.1:
meaning: Plane Select
G19:
meaning: Plane Select
G19.1:
meaning: Plane Select
# Cutter Radius Compensation
G40:
meaning: Compensation Off
G41:
meaning: Cutter Compensation
parameters: D
G42:
meaning: Cutter Compensation
parameters: D
G41.1:
meaning: Dynamic Cutter Compensation
parameters: D L
G42.1:
meaning: Dynamic Cutter Compensation
parameters: D L
# Path Control Mode
G61.1:
meaning: Exact Path Mode
G61.1:
meaning: Exact Path Mode
G64:
meaning: Path Blending
parameters: P Q
# Return Mode in Canned Cycles
G98:
meaning: Canned Cycle Return Level
G99:
meaning: Canned Cycle Return Level
# Other Modal Codes
F:
meaning: Set Feed Rate
S:
meaning: Set Spindle Speed
T:
meaning: Select Tool)
M48, M49:
meaning: Speed and Feed Override Control
M50:
meaning: Feed Override Control
parameters: P0 (off) or P1 (on)
M51:
meaning: Spindle Speed Override Control
parameters: P0 (off) or P1 (on)
M52:
meaning: Adaptive Feed Control
parameters: P0 (off) or P1 (on)
M53:
meaning: Feed Stop Control
parameters: P0 (off) or P1 (on)
G54-G59.3:
meaning: Select Coordinate System
# Flow-control Codes
## o sub:
## meaning: Subroutines, sub/endsub call
## o while:
## meaning: Looping, while/endwhile do/while
## o if:
## meaning: Conditional, if/else/endif
## o repeat:
## meaning: Repeat a loop of code
## '[]':
## meaning: Indirection
## o call:
## meaning: Call named file
M70:
meaning: Save modal state
M71:
meaning: Invalidate stored state
M72:
meaning: Restore modal state
M73:
meaning: Save and Auto-restore modal state
# Input/Output Codes
M62:
meaning: Digital Output Control
M63:
meaning: Digital Output Control
M64:
meaning: Digital Output Control
M65:
meaning: Digital Output Control
parameters: P
M66:
meaning: Wait on Input
parameters: P E L Q
M67:
meaning: Analog Output,Synchronized
parameters: T
M68:
meaning: Analog Output, Immediate
parameters: T
# Non-modal Codes
M6:
meaning: Tool Change
parameters: T
M61:
meaning: Set Current Too
l # Q
G10 L1:
meaning: Set Tool Table
parameters: P Q R
G10 L10:
meaning: Set Tool Table
parameters: P
G10 L11:
meaning: Set Tool Table
parameters: P
G10 L2:
meaning: Set Coordinate System
parameters: P R
G10 L20:
meaning: Set Coordinate System
parameters: P
G28:
meaning: Go/Set Predefined Position
G28.1:
meaning: Go/Set Predefined Position
G30:
meaning: Go/Set Predefined Position
G30.1:
meaning: Go/Set Predefined Position
G53:
meaning: Move in Machine Coordinates
G92:
meaning: Coordinate System Offset
G92.1:
meaning: Reset G92 Offsets
G92.2:
meaning: Reset G92 Offsets
G92.3:
meaning: Restore G92 Offsets
M101 - M199: # Don't expand !
meaning: User Defined Commands
parameters: P Q
S:
meaning: Set spindle speed
T:
meaning: Select tool
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment