Yaskawa YASNAC PC NC PLC Programming Manual User Manual
Page 41

6 - 5
YASNAC PCNC PLC Programming Manual Chapter 6: PLC Instructions
CPI
Compares a numeric value to the content of the register.
—
MVI
Loads a numeric value to the register.
—
ADD
Executes addition between register R1 and register R2 and
stores the result to R2.
—
SUB
Executes subtraction between register R1 and register R2
and stores the result to R2.
—
ANR
Executes AND between register R1 and register R2 and
stores the result to R2.
—
ORR
Executes OR between register R1 and register R2 and
stores the result to R2.
—
XRR
Executes XOR between registers R1 and R2 and stores the
result to R2.
—
CPR
Executes comparison between registers R1 and R2 and
stores the result to RR.
Ù
COR
Executes comparison between registers R1 and R2 and
stores the “coincide” result to RR.
Ù
MOV
Transfers the content of the register R1 to Register R2.
—
DST
Executes AND between a numeric value and the content
of the register R1 and transfers the result to register R2.
—
DIN
Extracts data.
—
ADC
Executes double-length addition.
Ù
ADDW
Executes addition between double-length register (WR2)
and double-length register (WR1) and stores the result to
WR2.
—
SUBW
Subtracts the content of double-length register (WR1)
from the content of double-length register (WR2) and
stores the result to WR2.
—
MULW
Multiplies the content of double-length register (WR1)
and the content of double-length register (WR2) and
stores the result to WR2.
RR is set to
“1” when
overflow
occurs.
DIVW
Divides content of double-length register (WR1) by the
content of double-length register (WR2) and stores the
result to WR2.
—
INRW
Adds “+1” to the content of the double-length register.
—
DCRW
Adds”-1” to the content of the double-length register.
—
CLRW
Clears the content of the double-length register to “0’.
—
CMRW
Inverts the content of the double-length register.
—
CORW
Executes comparison between double-length register R1
and double-length register R2 and stores the “coincide”
result to RR.
Ù