6-77
BIN(P),DBIN(P)
1
2
3
4
4
6
7
8
6.3 Data conversion instructions
6.3.2 Conversion from BCD 4-digit and 8-digit data to BIN data (BIN(P),DBIN(P))
(2) The following program converts the BCD data at X10 to X37 to BIN when X8 is ON, and stores it
at D0 and D1.
(Addition of the BIN data converted from BCD at X20 to X37 and the BIN data converted
from BCD at X10 to X1F)
[Ladder Mode] [List Mode]
If the data set at X10 to X37 is a BCD value which exceeds 2147483647, the value at D0
and D1 will be a negative value, because it exceeds the range of numerical values that can
be handled by a 32-bit device.
Programmable Controller Output Module
Input power supply
BCD digital switch
X13 to X10X17 to X14X1B to X18X1F to X1CX23 to X20X27 to X24X2B to X28X2F to X2CX33 to X30X37 to X34
Step
Instruction
Device