beautypg.com

Yaskawa YASNAC PC NC PLC Programming Manual User Manual

Page 125

background image

6 - 89

YASNAC PCNC PLC Programming Manual Chapter 6: PLC Instructions

(22)SUBP 040 (Binary Constant Definition) RR after operation:

Ù

a) Function

The instruction defines 1-, 2-, or 4-byte data.

Set a constant (decimal) to the constant output address by the specified number
of bytes in the binary number.

(b) Example

(c) Control conditions

Designation of the constant output address (APSH#XXXX)

Designate the address where the data is output in binary format.

Designation of setting data (IPSH#XXXX)

Set the constant in decimal.

Data length must be within the specified byte length. The range of setting
data is ±999999999.

Designation of byte length (IPSH X)

IPSH = 0: 1byte

IPSH = 1: 2 bytes

IPSH = 2: 4bytes