Instruction 74- bcd conversion – Maple Systems MAPware-7000 User Manual
Page 124

MAPware-7000 Ladder Logic Guide
116
1010-1041 rev. 00
Instruction 74- BCD Conversion
Expression:
Space Requirement: 1 line x 5 column Location Requirement: Middle, Right rail
Function:
When the input is ON, this instruction converts the binary data of A into BCD, and stores in B. If
the data of A is not in the range of 0 to 9999, 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
(binary)
√
√
√
√
√ √
√
√
√
√
0-9999
B
Destination
(BCD)
√
√
√
√ √
√
√
√
√
Example:
When B019 is ON, the data of D0211 is converted into 4-digit BCD, and the result is stored in
BW22.
For example, if D0211 is 5432, the BCD data H5432 is stored in BW22.
Note:
If the data of A is smaller than 0 or greater than 9999, the conversion is not executed and the
instruction error flag (ERF = S1010) is set to ON.