523
Conversion Instructions Section 3-12
3-12-16SIGNED BINARY TO BCD: BCDS(471)
Purpose Converts one word of signed binary data to one word of signed BCD data.
Ladder Symbol
Variations
Applicable Program Areas
Operand C: Control Word
Specifies the signed BCD format. C must be 0000 to 0003.
S: Source Word
Contains the signed binary data to be converted. The content of S must be
within the valid range of the BCD format specified in C.
D: Destination word
Contains the converted signed BCD data. See the description section below
for an explanation of the BCD formats.
Operand Specifications
BCDS(471)
C
S
D
C: Control word
S: Source word
D: Destination word
Variations Executed Each Cycle for ON Condition BCDS(471)
Executed Once for Upward Differentiation @BCDS(471)
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
Setting Allowed values for S
C=0000 FC19 to FFFF or 0000 to 03E7
C=0001 E0C1 to FFFF or 0000 to 1F3F
C=0002 FC19 to FFFF or 0000 to 270F
C=0003 F831 to FFFF or 0000 to 270F
Area C S D
CIO Area CIO 0000 to CIO 6143
Work Area W000 to W511
Holding Bit Area H000 to H511
Auxiliary Bit Area A000 to A959 A448 to A959
Timer Area T0000 to T4095
Counter Area C0000 to C4095
DM Area D00000 to D32767
EM Area without bank E00000 to E32767
EM Area with bank En_00000 to En_32767
(n = 0 to C)