beautypg.com

Yaskawa YASNAC PC NC PLC Programming Manual User Manual

Page 120

background image

6 - 84

YASNAC PCNC PLC Programming Manual Chapter 6: PLC Instructions

(b) Example

(c) Control conditions

Designation of the minuend data address (APSH#XXXX)

Designate the address where the minuend data is stored.

Designation of the subtrahend data address (APSH/IPSH#XXXX)

Designate the address where the subtrahend data is stored.

It is also possible to subtract the designated data.

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 minuend/subtrahend.

1st digit

= 0: 1byte

= 1: 2 bytes

= 2: 4bytes

2nd digit

= 0: Constant data

= 1: Address data