
4 PROGRAM CODES
4 - 2
NJ/NY-series G code Instructions Reference Manual (O031)
4-1
Calculation and Logic Operation
This operator adds numbers. This is a binary operator and cannot be used as a unary operator.
This operator subtracts numbers, or converts the polarity of a number. It performs subtraction when
used as a binary operator, or conversion when used as a unary operator.
This operator is a binary operator that multiplies numbers.
4-1-1
Operator priority
Priority
Operators
Combination order
High
- (Unary)
!
*, /, %
Left combination
+, -
Left combination
==, !=, <, >, <=, >=
&&
Low
||
4-1-2
Arithmetic operators
Addition (+)
L3=L1+L2 // OK
L2=+L1 // NG
L2=+1 // OK. Just numerical value
Subtraction and positive/negative inversion (-)
L3=L1-L2 // OK
L2=-L1 // OK
L2=-1 // OK. Just numerical value
Multiplication (*)
L3=L1*L2 // OK
Содержание 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: ......