
1 - 7
1 Basic Information on NC Programming
NJ/NY-series G code Instructions Reference Manual (O031)
G Cod
e Descrip
tion
s
1
G Code Descriptions
The program format generally called the G code is defined by ISO 6983 (JIS B 6315).
A combination of characters such as G, M and X, and digits is called a word, and a line consisting of two
or more words are called a block. G codes are executed sequentially in units of a block. When execu-
tion of the current block is completed, the next block is executed in principle. A line feed code indicates
the end of block. The length of one block must be 1020 bytes or less. These restrictions apply to blocks
after program parsing. Refer to
Program Parsing by CNC Operator
on page A-2 for program parsing.
The influential range varies depending on the word. A word that only has an effect in the block where it
is written is called non-modal, and one that continues to have an effect when omitted in subsequent
blocks is called modal. In the modal, a few words produce their effects exclusively. This is called a
modal group.
Comments can be entered by using “//” before the comment, which is valid to the end of the block. This
specification is not defined by ISO 6983.
The spindle operations, F, and M30 need to be described. M30 can be written as M02.
* G61 and G64 are in the same modal group and if another one is written, the subsequent modal
changes.
Effect range of G64
Effect range of G61
Word
Block
N02 M03 S1000
N03 G64
N04 X20
N05 Y10
N06 G61
N07 X-20
N08 Y-10
N09 M30
// End of Program
N01 G17 G91 G01 ta1000 td1000 F1000
Writing comments
(Multiple line comments can be written.)
/*There are two ways of commenting multiple lines.*/
Summary of Contents for NJ501-5300
Page 13: ...11 CONTENTS NJ NY series G code Instructions Reference Manual O031...
Page 28: ...Revision History 26 NJ NY series G code Instructions Reference Manual O031...
Page 40: ...2 G Code 2 2 NJ NY series G code Instructions Reference Manual O031...
Page 72: ...2 G Code 2 34 NJ NY series G code Instructions Reference Manual O031...
Page 108: ...3 M Code 3 2 NJ NY series G code Instructions Reference Manual O031...
Page 112: ...3 M Code 3 6 NJ NY series G code Instructions Reference Manual O031...
Page 124: ...3 M Code 3 18 NJ NY series G code Instructions Reference Manual O031...
Page 128: ...3 M Code 3 22 NJ NY series G code Instructions Reference Manual O031...
Page 136: ...4 PROGRAM CODES 4 8 NJ NY series G code Instructions Reference Manual O031...
Page 141: ......