beautypg.com

Yaskawa YASNAC PC NC PLC Programming Manual User Manual

Page 97

background image

6 - 61

YASNAC PCNC PLC Programming Manual Chapter 6: PLC Instructions

(c) Control conditions

Designation of the conversion data address (APSHXXXX)

Designate the address where the data to be converted are stored.

If “BYT = 1”, continuous two bytes are used.

Designation of the converted data address

Designate the address where the result of conversion is stored.

If “BYT = 1”, continuous two bytes are used.

Designation of the number of bytes (BYT)

BYT = 0: The data to be processed are 1-byte data.

BYT = 1: The data to be processed are 2-byte data.

Designation of the conversion type (CNV)

CNV = 0: Conversion of binary data to BCD data.

CNV = 1: Conversion of BCD data to binary data.

Reset (RST)

RST = 0: Error output R1 is not reset.

RST = 1: Error output R1 is reset.

Execution command (ACT)

ACT = 0: The DCNV instruction is not executed.

ACT = 1: The DCNV instruction is executed.

Error output (R1)

R1 = 0:

Normal

R1 = 1:

Error

(An attempt is made to convert the binary data when “CNV = 1”, or the byte
length is exceeded when “CNV = 0”.)