Yaskawa YASNAC PC NC PLC Programming Manual User Manual

Page 122

Advertising
background image

6 - 86

YASNAC PCNC PLC Programming Manual Chapter 6: PLC Instructions

(c) Control conditions

Designation of the multiplicand data address (APSH#XXXX)

Designate the address where the multiplicand data is stored.

Designation of the multiplier data address (APSH/IPSHD#XXXX)

Designate the address where the multiplier data is stored.

Designation of the operation result output address (APSH#XXXX)

Designate the address where the result of operation is output.

The address is stored as 4-byte data.

Designation of the type of operation (IPSH X).

Designate the data length and the data type of multiplicand/multiplier.

1st digit

= 0: 1byte

= 1: 2 bytes

= 2: 4bytes

2nd digit

= 0: Constant data

= 1: Address data

Execution command (ACT)

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

R1 remains unchanged.

ACT = 1: The binary-data multiplication 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

Advertising