Yaskawa YASNAC PC NC PLC Programming Manual User Manual

Page 111

Advertising
background image

6 - 75

YASNAC PCNC PLC Programming Manual Chapter 6: PLC Instructions

(14)SUBP 031 (Double-word Data Convert) RR after operation:

Ù

(a) Function

The instruction converts the binary data to BCD data and the BCD data to binary data.

(b) Example

(c) Control conditions

Designation of the conversion data address (APSH#XXXX)

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

Both the binary and BCD data use 4 bytes.

The sign of BCD data is set at the most significant bit position.

Therefor, the expression of a numeric value within the range of ± 9999999 is possible.

Designation of the converted data address (APSH#XXXX)

Designate the address where the data result of conversion is stored.

Both the binary and BCD data use 4 bytes.

Designation of the number of bytes (LD#XXXX.X)

LD = 0:

No conversion

= 1: 4bytes, = 0: Skip

Advertising