| G-code |
Description |
| G0 |
Rapid motion |
| G1 |
Linear motion |
| G2 |
Circular CW motion |
| G3 |
Circular CCW motion |
| G4 |
Dwell |
| G5 |
Non Modal Rapid |
| G8 |
Acceleration - No Feed Ramps |
| G9 |
Deceleration - Feed Ramps |
| G10 |
Programmable Data Input |
| G15 |
YZ Circular Interpolation with A Axis |
| G17 |
XY Plane |
| G17.1 |
B Axis Substitution for A Axis |
| G17.2 |
Cancels B Axis Substitution for A Axis |
| G18 |
ZX Plane |
| G19 |
YZ Plane |
| G20 |
Inch units |
| G21 |
Millimetre units |
| G24 |
Turn Cycle - Lathe |
| G28 |
Return to Reference Point |
| G28.1 |
Cancel Jog Away |
| G29 |
Return from Reference Point |
| G31 |
Probe Touch Function |
| G31.1 |
Probe No Touch Function |
| G40 |
Cancel Cutter Compensation |
| G41 |
Cutter Compensation Left |
| G42 |
Cutter Compensation Right |
| G43 |
Length Compensation Positive |
| G44 |
Length Compensation Negative |
| G45 |
Tool Offset Single Expansion |
| G46 |
Tool Offset Single Reduction |
| G46 |
Tool Offset Double Reduction |
| G49 |
Cancel Tool Length Compensation |
| G50 |
Ramp Control Cancel |
| G50.1 |
Cancel Mirroring |
| G51 |
Ramp Control |
| G51.1 |
Mirroring |
| G51.2 |
Tool Load Compensation |
| G51.3 |
Axis Scaling |
| G52 |
Local Coordinate System |
| G54 |
Work Offset 1 |
| G55 |
Work Offset 2 |
| G56 |
Work Offset 3 |
| G57 |
Work Offset 4 |
| G58 |
Work Offset 5 |
| G59 |
Work Offset 6 |
| G67 |
Cancel Modal Macro Call |
| G68 |
Rotation |
| G69 |
Cancel Rotation |
| G70 |
Inch units |
| G71 |
Millimetre units |
| G71 |
Turn Cycle - Lathe |
| G73 |
Hole Cycle - Peck Drilling |
| G74 |
Hole Cycle - Left Hand Tapping |
| G75 |
Hole Cycle - Left Hand Rigid Tapping |
| G76 |
Hole Cycle - Fine Boring |
| G80 |
Cancel Canned Cycle |
| G81 |
Hole Cycle - Spot Drilling |
| G82 |
Hole Cycle - Counter Boring |
| G83 |
Hole Cycle - Deep Hole Drilling |
| G84 |
Hole Cycle - Right Hand Tapping |
| G84.1 |
Hole Cycle - Right Hand Rigid Tapping |
| G85 |
Hole Cycle - Bore In and Bore Out |
| G86 |
Hole Cycle - Bore In, Spindle Off, Orient and Rapid Out |
| G87 |
Hole Cycle - Bore In and Bore Out |
| G88 |
Hole Cycle |
| G89 |
Hole Cycle - Bore In, Dwell and Bore Out |
| G90 |
Absolute mode |
| G91 |
Incremental mode |
| G91.1 |
High Speed Execution mode |
| G91.2 |
Cancel High Speed Execution mode |
| G92 |
Absolute Zero |
| G93 |
Inverse Time Feed |
| G94 |
Feed per Minute |
| G98 |
Retract to Initial Plane |
| M-code |
Description |
| M0 |
Program Stop |
| M1 |
Optional Program Stop |
| M2 |
Program End |
| M3 |
Spindle CW |
| M3.1 |
Sub-Spindle On, Ignore Magnet |
| M3.2 |
Acknowledge Spindle Magnet |
| M4 |
Spindle CCW |
| M4.1 |
Sub-Spindle On, Ignore Magnet |
| M4.2 |
Acknowledge Spindle Magnet |
| M5 |
Spindle Stop |
| M6 |
Load Tool |
| M7 |
Coolant One On |
| M7.1 |
Programmable Coolant On |
| M8 |
Coolant Two On |
| M8.1 |
Programmable Coolant On |
| M9 |
Coolant Off |
| M10 |
Cancel Reciprocation |
| M11 |
X Axis Reciprocation |
| M12 |
Y Axis Reciprocation |
| M13 |
Z Axis Reciprocation |
| M14 |
B Axis Reciprocation |
| M15 |
A Axis Reciprocation |
| M17 |
Subroutine End |
| M18 |
Air Ratcheting Indexer |
| M19 |
Spindle Stope and Orient |
| M20 |
General Purpose Indexer |
| M30 |
Program End |
| M31 |
Exchange Pallets |
| M32 |
Load and Store Pallet A |
| M32.1 |
Load Pallet A and Verify Pallet A |
| M33 |
Load and Store Pallet B |
| M33.1 |
Load Pallet B and Verify Pallet B |
| M41 |
Belt Drive Range 150 - 2700 |
| M42 |
Belt Drive Range 150 - 5200 |
| M43 |
Belt Drive Range 300 - 10000 |
| M45 |
Execute Fixed Cycle |
| M46 |
Positive Approach |
| M47 |
Cancel Positive Approach |
| M48 |
Potentiometer Controls In |
| M48.1 |
Enable Servo Coolant Potentiometer |
| M48.2 |
Enable Pallet A Potentiometer |
| M48.3 |
Enable Pallet B Potentiometer |
| M49 |
Potentiometer Controls Out |
| M49.1 |
Disable Servo Coolant Potentiometer |
| M49.2 |
Disable Pallet A Potentiometer |
| M49.3 |
Disable Pallet B Potentiometer |
| M60 |
A Axis Brake On |
| M61 |
A Axis Brake Off |
| M62 |
B Axis Brake On |
| M63 |
B Axis Brake Off |
| M64 |
Activate MP8 or MP11 Probe |
| M65 |
Activate TS-20 or TS-27 Touch Probe |
| M66 |
Activate MP12 Probe |
| M67 |
Activate Laser Probe |
| M68 |
User Attached Relay |
| M69 |
User Attached Relay |
| M80 |
Open Automatic Doors |
| M81 |
Close Automatic Doors |
| M90 |
Default Gain Setting |
| M91 |
Normal Gain Setting |
| M92 |
Intermediate Gain Setting |
| M93 |
High Gain Setting |
| M94 |
Feed Forward Function |
| M94.1 |
Feed Forward by Feed Rade Modification |
| M94.2 |
Advanced Feed Forward |
| M95 |
Cancel Feed Forward |
| M95.1 |
Cancel Feed Forward by Feed Rade Modification |
| M95.2 |
Cancel Advanced Feed Forward |
| M96 |
Cancel Intersectional Cutter Compensation, Round Corners |
| M97 |
Intersectional Cutter Compensation, Extend Corners |
| M98 |
Sub Program Call |
| M99 |
Sub Program Return |
| Macro |
Description |
| ' |
Comment |
| # |
Macro Line |
| AA, AB, AC, AX, AY and AZ |
Axis Position Variables |
| CC, CP and CR |
Clock Variables |
| D1 - D99 |
Diameter and Radius Offset Variables |
| FA1 - FA48 |
A Axis Fixture Offset Variables |
| FB1 - FB48 |
B Axis Fixture Offset Variables |
| FC1 - FC48 |
C Axis Fixture Offset Variables |
| FX1 - FX48 |
X Axis Fixture Offset Variables |
| FY1 - FY48 |
Y Axis Fixture Offset Variables |
| FZ1 - FZ48 |
Z Axis Fixture Offset Variables |
| H1 - H99 |
Tool Length Offset Variables |
| TL |
Tool Offset Table Current Index |
| V1 - V99 |
Variables |
| VF |
Fixture Offset Table Current Index |
| + |
Addition |
| - |
Subtraction |
| * |
Multiplication |
| / |
Division |
| OR |
Or boolean |
| AND |
And boolean |
| ABS |
Absolute function |
| ATN |
Arctangent function |
| COS |
Cosine function |
| INT |
Integer function |
| RND |
Round function |
| SGN |
Return the Sign |
| SIN |
Sine function |
| SQR |
Square Root |
| ( |
Left Parenthesis |
| ) |
Right Parenthesis |
| = |
Equal condition |
| <> |
Not Equal condition |
| > |
Greater Than condition |
| < |
Less Than condition |
| >= |
Greater than or Equal condition |
| <= |
Less than or Equal condition |
| IF |
IF funtion |
| WH or WHILE |
While function |
| DO |
Do loop function |
| END |
End loop function |
| GOTO |
Goto jump function |
| POPEN |
Opens the RS232 port |
| DPRNT |
Data print out the RS232 port |
| PCLOS |
Closes the RS232 port |