used in a G00 movement. Never use this movement to cut, the speed of this movement is determined via the "motor tuning" function in Mach3.
(eg) G00 x0y0z0 (this will rapid the axis's to the program coordinates home position)
Mach3 uses a Fanuc style Gcode system, this is a list of a basic explanation of the most common codes.
Summary of G-codes
G00 Rapid Positioning - This is used to program a "rapid" movement, this is to be only used to move the axis in non cutting movement. A feed rate cannot be used in a G00 movement. Never use this movement to cut, the speed of this movement is determined via the "motor tuning" function in Mach3.
(eg) G00 x0y0z0 (this will rapid the axis's to the program coordinates home position)
G01 Linear Interpolation - This is one of the most commonly used movements, this is a linear cutting movement. This movement has to have a feed rate designated.
(eg) G01 x1.0 f10
(this will move the X axis 1 inch or 1 mm in a linear movement @ 10 inches per min, or 10mm per min depending on whether you are using a G20 or G21)
G02 Clockwise Circular/Helical Interpolation - This is used to cut a circular movement with a programmed feed rate, the center of the circle can be determined via I, J, K or R radius value can be entered.
(eg) G2 x10 y15 r20 z5 or G2 x10 y16 i3 j4 z9
G03 Counterclockwise Circular/Helical Interpolation - This is used to cut a circular movement with a programmed feed rate, the center of the circle can be determined via I, J, K or R radius value can be entered.
(eg) G03 x10 y15 r20 z5 or G03 x10 y16 i3 j4 z9
G4 Dwell - This is a dwell code, this code can be very useful to you. This code can allow time for your spindle to speed up before it enters your material, I personally use it all the time with the Syil machines. You must use a "p" after the code then the amount of seconds required.
(eg)
m03 s3000 "turn on spindle to 3000 rpm"
G04 p8 "8 second pause"
G10 Coordinate System Origin Setting
G12 Clockwise Circular Pocket
G13 Counterclockwise Circular Pocket
G15/G16 Polar Coordinate Moves in G0 and G1
G17 XY Plane select - Used to select the working plane, this must match what your CAM software posts.
G18 XZ Plane Select
G19 YZ Plane Select
G20/G21 Inch/Millimetre Unit - Used in a program to select inches or millimeters, this will apply to the movement of the axis as well as the programmed feed rate.
G28 Return Home - To return to home position by way of the programmed home switch position. All axis words are optional.
(eg) G28 X0 Y0 Z0 A0 or G28
G28.1 Reference Axis
G30 Return Home
G31 Straight Probe
G40 Cancel Cutter Radius Compensation - This is a modal code, meaning if you have turned cutter comp on, it will never be turned off until this code is read. This is a easy way to mess up a program. I always make sure to have this as part of my safety line of code.
G41/G42 Start Cutter Radius Compensation Left/Right - Used to turn on cutter comp, left or right. This is only to be turned on when your cutter is out of the work material or it will mess up your part. Some people like to use this function, I personally use "center line programing". Meaning I take into consideration the diameter of my cutter. (eg) if I am using a 1/4 cutter I know to set my CAM software to offset the cutter by .125" to the line I want to cut, rather then mechanically shifting my cutter by .125"
G43 Apply Tool Length Offset (Plus) - This is used to apply a different cutter length, this is also a modal code and can only be cancelled via a G49.
G49 Cancel Tool Length Offset - This is also important to have in your safety line at the start of your program.
G50 Reset All Scale Factors to 1.0
G51 Set Axis Data Input Scale Factors
G52 Temporary Coordinate System Offsets
G53 Move in Absolute Machine Coordinate System
G54 Use Fixture Offset 1 - The offset system codes are imperative to setting up a program, this allows to define the "datum" or zero point for your program. Alot of people use the bottom left corner of their material for this location, this is done because then all of your coordinates will be in a plus or minus situation. This is based on the cartesian coordinate system. Your G54 location must match your location programmed in your CAM software.
G55 Use Fixture Offset 2 - This allows for a multiple different offset locations, (ie) multiple vices, multiple fixtures.
G56 Use Fixture Offset 3
G57 Use Fixture Offset 4
G58 Use Fixture Offset 5
G59 Use Fixture Offset 6 / Use General Fixture Number
G61/G64 Exact Stop/Constant Velocity Mode
G68/G69 Rotate Program Coordinate System
G70/G71 Inch/Millimetre Unit
G73 Canned Cycle - Peck Drilling
G80 Cancel Motion Mode (Including Canned Cycles)
G81 Canned Cycle - Drilling
G90 G81 X4 Y5 Z1.5 R2.8 F4.0
This will drill a hole @ x4.0 and 5.0 to a depth of - 1.5" and will retract to 2.8" when the hole is done @ 4imp.
G82 Canned Cycle - Drilling with Dwell
G90 G82 X4 Y5 Z1.5 R2.8 P 2.0 F4.0
This will drill a hole @ x4.0 and 5.0 to a depth of - 1.5" and will retract to 2.8" when the hole is done, with a down hole pause of 2 seconds @ 4imp.
G83 Canned Cycle - Peck Drilling
G90 G83 X4 Y5 Z1.5 R2.8 Q .125 F4.0
This will drill a hole @ x4.0 and 5.0 to a depth of - 1.5" and will retract to 2.8" when the hole is done, will peck in increments of .125" to a total depth of -1.5" @ 4imp.
G84 Canned Cycle - Right Hand Rigid Tapping
G85/G86/G 88/G89 Canned Cycle - Boring
G90 Absolute Distance Mode - This is one of the most common distant modes used by new users, this mode tells the machine that the distant mode is absolute. (eg) to go to 1" in x (G00 x1.0) then to go to 2" you would just enter (G00 x2.0).
G91 Incremental Distance Mode
(eg) to go to 1" in x (G00 x1.0) then to go to 2" you would just enter (G00 x1.0) each time.
G92 Offset Coordinates and Set Parameters
G92.x Cancel G92 etc.
G93 Inverse Time Feed Mode
G94 Feed Per Minute Mode
G95 Feed Per Rev Mode
G98 Initial Level Return After Canned Cycles
G99 R-point Level Return After Canned Cycles
(copyright) Syil Canada 2009
Do not use with out permission
Syil North America
Your North American Distributor of Syil CNC Machines, Software, and Resources
Gcode and Gcode Magic