beautypg.com

Yaskawa YASNAC PC NC PLC Programming Manual User Manual

Page 119

background image

6 - 83

YASNAC PCNC PLC Programming Manual Chapter 6: PLC Instructions

= 1: 2 bytes

= 2: 4bytes

2nd digit

= 0: Constant data

= 1: Address data

Execution command (ACT)

ACT = 0: The binary-data addition instruction is executed.

R1 remains unchanged.

ACT = 1: The binary-data addition instruction is not executed.

Error output (OUT)

OUT = 0: Normal

OUT = 1: Error

#2999

Operation status is written

d0 = 1:

0

d1 = 1:

Negative

d5 = 1:

Overflow

(19)SUBP 037 (Binary-data Subtraction) RR after operation:

Ù

a) Function

The instruction executes subtraction of the 1-, 2-, or 4-byte binary data.

The result of operation is set to the registers: the numeric value of operation result
is set to the register designated by the operation result output address and the sign
information to #2999.