M-Series Operator’s Manual 4/9/15 11-2
H - Tool Length Offset Number
H is used to select the Tool Length Offset Number. The H code offset amounts are stored in the file Offset Library.
Tool Length Offsets can be specified anytime before a G43 or G44 is issued. Once specified the offset amount is
stored and will only be changed when another H code is entered therefore, H is modal. The Tool Length Offset (H)
can be placed on a line by itself or on a line with other G-codes. H00 is always a 0.0 length offset.
Example:
H1 ; Selects offset corresponding to H1.
G43 Z3 ; Moves to Z3 using H1 offset.
G1X0Y1 ;
H3 ; Selects offset corresponding to H3.
X1Y1.25 ;
G0H5 ; Selects offset corresponding to H5.
* NOTE: For editing instruction for the offset library see chapter 5. For information on length compensation
functions see G43 and G44 in Chapter 12.
N - Block Number
Block numbers are used to identify CNC program lines. Block numbers are optional, but can be used as the
destinations of GOTO statements (see Advanced Macros in this chapter) and targets of the Search Function (See
Main Screen Search option in Chapter 3). Block numbers also can make reading the NC files easier.
Example:
N1 G90 G17 M25
N2 G0 X0 Y0 Z0
O - Program Number
The O program number allows you to identify your program with a certain number. However, if the specified
program number is 9100-9999, the G codes from the O number through the next M99 will be extracted (but not
executed) and placed in a separate subprogram/macro file named Oxxxx.cnc, where xxxx is the specified program
number. This separate file can later be called with M98 or G65.
Example:
O1521
N1 G90 G17 M25
N2 G0 X0 Y0 Z0
P - Parameter
P can correspond to Dwell Time, subprogram number, or a general parameter in canned cycles. This is used as a
variable for any of those values in the NC file.
Examples:
G4 P1.32 ; Pause execution for 1.32 seconds
G10 P73 R.1 ; Set parameter #73 (G73 retract) to .1 inches