Instruction 73- binary conversion – Maple Systems MAPware-7000 User Manual

Page 123

Advertising
background image

115

MAPware-7000 Ladder Logic Guide

1010-1041 rev. 00

Instruction 73- Binary Conversion

Expression:

Space Requirement: 1 line x 5 column Location Requirement: Middle, Right rail

Function:

When the input is ON, this instruction converts the 4 digits of BCD data of A into binary, and
stores in B. If any digit of A contains non-BCD code (other than H0 through H9), the conversion is
not executed and the instruction error flag (ERF = S1010) is set to ON.

Execution Condition:

Input

Operation

Output

ERF

OFF

No execution

OFF

---

ON

Normal Execution

ON

---

BCD data error

OFF

Set

Operand:

Coil or Bit

Register

Constant

Index

Name

X

Y B

S

T.

C.

M

X
W

Y
W

B
W

S
W

T C

D

I

J

K

M
W

A

Source (BCD)

√ √

H0000-

9999

B

Destination

(binary)

√ √

Example:

When B017 is ON, the BCD data of BW28 is converted into binary data, and the result is stored
in D0127.

For example, if BW28 is H1234, the binary data 1234 is stored in D0127.

Note:

If any digit of operand A contains non-BCD data, e.g. H13A6, the conversion is not executed and
the instruction error flag (ERF = S1010) is set to ON.

Advertising