10 NJ/NX-series Instructions Reference Manual (W502)
OutABit .................................................................................................................... 2-63
Sequence Control Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-65
End .......................................................................................................................... 2-66
RETURN ................................................................................................................. 2-67
MC and MCR ........................................................................................................... 2-68
JMP ......................................................................................................................... 2-80
FOR and NEXT ....................................................................................................... 2-82
BREAK .................................................................................................................... 2-89
Comparison Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-91
EQ (=) ...................................................................................................................... 2-92
NE (<>) .................................................................................................................... 2-94
LT (<), LE (<=), GT (>), and GE (>=) ...................................................................... 2-97
EQascii .................................................................................................................. 2-100
NEascii .................................................................................................................. 2-102
LTascii, LEascii, GTascii, and GEascii .................................................................. 2-104
Cmp ....................................................................................................................... 2-107
ZoneCmp ............................................................................................................... 2-109
TableCmp .............................................................................................................. 2-111
AryCmpEQ and AryCmpNE .................................................................................. 2-114
AryCmpLT, AryCmpLE, AryCmpGT, and AryCmpGE ........................................... 2-116
AryCmpEQV and AryCmpNEV ............................................................................. 2-119
AryCmpLTV, AryCmpLEV, AryCmpGTV, and AryCmpGEV ................................. 2-121
Timer Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-125
TON ....................................................................................................................... 2-126
TOF ....................................................................................................................... 2-132
TP .......................................................................................................................... 2-135
AccumulationTimer ................................................................................................ 2-138
Timer ..................................................................................................................... 2-141
Counter Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-145
CTD ....................................................................................................................... 2-146
CTD_** .................................................................................................................. 2-148
CTU ....................................................................................................................... 2-150
CTU_** .................................................................................................................. 2-152
CTUD .................................................................................................................... 2-155
CTUD_** ................................................................................................................ 2-159
Math Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-165
ADD (+) ................................................................................................................. 2-166
AddOU (+OU) ........................................................................................................ 2-170
SUB (-) .................................................................................................................. 2-174
SubOU (-OU) ......................................................................................................... 2-177
MUL (*) .................................................................................................................. 2-181
MulOU (*OU) ......................................................................................................... 2-185
DIV (/) .................................................................................................................... 2-189
MOD ...................................................................................................................... 2-192
ABS ....................................................................................................................... 2-194
RadToDeg and DegToRad .................................................................................... 2-196
SIN, COS, and TAN .............................................................................................. 2-198
ASIN, ACOS, and ATAN ....................................................................................... 2-201
SQRT .................................................................................................................... 2-204
LN and LOG .......................................................................................................... 2-206
EXP ....................................................................................................................... 2-209
EXPT (**) ............................................................................................................... 2-211
Inc and Dec ........................................................................................................... 2-217
Rand ...................................................................................................................... 2-219
AryAdd ................................................................................................................... 2-221
AryAddV ................................................................................................................ 2-223
ArySub ................................................................................................................... 2-225
ArySubV ................................................................................................................ 2-227