
4 - 7
4 PROGRAM CODES
NJ/NY-series G code Instructions Reference Manual (O031)
4-3 Us
er
V
ariab
les
4
4-
3-1 Lo
cal V
ariables
(“L”
)
4-3
User Variables
These variables can be shared by the same subprograms. They are 64-bit floating point arrays inde-
pendent in each subprogram. The user can use from L0 to L255, but cannot use L256 and subsequent
variables.
These variables can be shared by the same CNC coordinate systems. They are 64-bit floating point
arrays independent in each CNC coordinate system. The user can use from Q0 to Q4095, but cannot
use Q4096 and subsequent variables.
They are the sole 64-bit floating point arrays that can be shared inside the Controller. The user can use
from P0 to P32767, but cannot use P32768 and subsequent variables.
Indirection of variables that are used for parameters is available. It must be written in the form of Vari-
able prefix [Variable name].
The indirection cannot be used in the program code.
4-3-1
Local Variables (“L”)
4-3-2
Coordinate System Global Variables (“Q”)
4-3-3
Global Variables (“P”)
4-3-4
Variable Indirection
N01 G17 G64 G91 F300
N02 M03 S300
N03 L12=10 Q34=20 L56=30
// Substitution of values
N04 G01 X[L12] Y[Q34] Z[L56]// Set in the target
position for linear interpolation.
N05 M05
N06 M30
P[P++]
// Disabled
P[P0]=P1
// Disabled
P0=P[P1]
// Disabled
if(Q[L0]==1){M99}
// Disabled
Содержание NJ501-5300
Страница 13: ...11 CONTENTS NJ NY series G code Instructions Reference Manual O031...
Страница 28: ...Revision History 26 NJ NY series G code Instructions Reference Manual O031...
Страница 38: ...1 Basic Information on NC Programming 1 10 NJ NY series G code Instructions Reference Manual O031...
Страница 40: ...2 G Code 2 2 NJ NY series G code Instructions Reference Manual O031...
Страница 53: ...2 15 NJ NY series G code Instructions Reference Manual O031 2 Dwell Instruction Name Page G04 Dwell P 2 16...
Страница 72: ...2 G Code 2 34 NJ NY series G code Instructions Reference Manual O031...
Страница 108: ...3 M Code 3 2 NJ NY series G code Instructions Reference Manual O031...
Страница 112: ...3 M Code 3 6 NJ NY series G code Instructions Reference Manual O031...
Страница 124: ...3 M Code 3 18 NJ NY series G code Instructions Reference Manual O031...
Страница 128: ...3 M Code 3 22 NJ NY series G code Instructions Reference Manual O031...
Страница 136: ...4 PROGRAM CODES 4 8 NJ NY series G code Instructions Reference Manual O031...
Страница 141: ......