18 binary conversion instruction (bin) – Yaskawa MP900 Series Machine Controller New Ladder Editor User Manual

Page 56

Advertising
background image

1 Ladder Program Instructions

1.2.18 BINARY CONVERSION Instruction (BIN)

1-46

„

Program Example

Integer Type Data

Double-length Integer Type Data

Real Number Type Data

1.2.18 BINARY CONVERSION Instruction (BIN)

„

Outline

The BIN instruction converts a binary coded decimal (BCD) value in the Source and into a
binary value (binary conversion) and the result is stored in the Dest. If the 4-digit BCD
value in the integer is abcd, the output value (Dest) of the BIN instruction can be determined
by the following formula:
Dest

= (a × 1000) + (b × 100) + (c × 10) + d

Although the above formula is applicable even if the value in the Source is not in BCD nota-
tion (e.g. 123FH), correct results are obtained in such cases.

Advertising
This manual is related to the following products: