M-Series Operator’s Manual 4/9/15 11-1
Chapter 11
CNC Program Codes
General
The next three chapters contain a description of the CNC program codes and parameters supported by the M-Series
Control. The M-Series Control has some G codes and parameters that are modal, and some that are "one shots."
The G codes and parameters that are modal will stay in effect until a new G code or parameter is issued. One shots
are effective for the current line only. For example, a movement command of G1, which is modal, will remain in
effect until a different movement command is issued, such as G0, G2, G3, etc.
Miscellaneous CNC Program Symbols
D - Tool Diameter Offset Number
D is used to select the Tool Diameter Offset from the offset library. The D code values are stored in the Offset
Library. Tool Diameter Offsets can be specified anytime before Cutter Comp is turned on (G41 or G42). Once
specified, the offset amount is stored and will only be changed when another D code is entered therefore, D is
modal. The Tool Diameter Offset (D) can be placed on a line by itself or on a line with other G-codes.
Example:
X0Y0F10 ;
G41 D2 ; Enables cutter comp left with diameter D2.
G1X0Y0 ;
X1Y1.25 ; Cutter compensated moves
X2Y1.4 ;
G40 ; Cutter compensation off
G42 ; Enables cutter comp. right (still using D2)
E - Select Work Coordinate System
E1 through E18 select among the 18 work coordinate systems. For more information on work coordinate systems
see chapter 4.
F - Feedrate
The F command is used to set the cutting feedrate. The feedrate is expressed in units/minute. The programmed
feedrate may be modified by the feedrate override knob (2 - 200% for DC systems and 2 – 100% for AC systems).
The default feedrate is 3.0 units/minute. Units may be inches or millimeters.
Example:
G90 G1 X1.0 F50 ; linear mill to X1 at 50 units/minute