489
Conversion Instructions Section 3-12
3-12-4 DOUBLE BINARY TO DOUBLE BCD: BCDL(059)
Purpose Converts 8-digit hexadecimal (32-bit binary) data to 8-digit BCD data.
Ladder Symbol
Variations
Applicable Program Areas
Operands S: First Source Word
The content of S+1 and S must be between 0000 0000 and 05F5 E0FF hexa-
decimal (0000 0000 and 9999 9999 decimal).
Operand Specifications
D00100
BIN
BCD
D00101
D00102
D00010
D00011
D00012
NEXT
BCD
,IR0+
FOR
&3
,IR1+
MOVR
D10
IR0
MOVR
D100
IR1
00000
00000
BCD #0200
BCD #0100
BCD #0300
Decimal &200
Decimal &100
Decimal &300
(Hexadecimal #00C8)
(Hexadecimal #0064)
(Hexadecimal #012C)
BCDL(059)
S
R
S: First source word
R: First result word
Variations Executed Each Cycle for ON Condition BCDL(059)
Executed Once for Upward Differentiation @BCDL(059)
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification Not supported
Block program areas Step program areas Subroutines Interrupt tasks
OK OK OK OK
Area S R
CIO Area CIO 0000 to CIO 6142
Work Area W000 to W510
Holding Bit Area H000 to H510
Auxiliary Bit Area A000 to A958 A448 to A958
Timer Area T0000 to T4094
Counter Area C0000 to C4094
DM Area D00000 to D32766