293
Conversion Instructions
Section 5-20
5-20-3 DOUBLE BCD-TO-DOUBLE BINARY – BINL(58)
Limitations
DM 6143 to DM 6655 cannot be used for R.
Precautions
When the execution condition is OFF, BINL(58) is not executed. When the
execution condition is ON, BINL(58) converts an eight-digit number in S and
S+1 into 32-bit binary data, and outputs the converted data to R and R+1.
Flags
ER:
The contents of S and/or S+1 words are not BCD.
Indirectly addressed EM/DM word is non-existent.
(Content of
*
EM/
*
DM word is not BCD, or the EM/DM area boundary
has been exceeded.)
EQ:
ON when the result is zero.
5-20-4 DOUBLE BINARY-TO-DOUBLE BCD – BCDL(59)
Limitations
If the content of S exceeds 05F5E0FF, the converted result would exceed
99999999 and BCDL(59) will not be executed. When the instruction is not
executed, the content of R and R+1 remain unchanged.
DM 6143 to DM 6655 cannot be used for R.
Description
BCDL(59) converts the 32-bit binary content of S and S+1 into eight digits of
BCD data, and outputs the converted data to R and R+1.
S
:
First source word (BCD)
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
R
: First result word
IR, SR, AR, DM, EM, HR, LR
Ladder Symbols
Operand Data Areas
BINL(58)
S
R
@BINL(58)
S
R
S + 1
S
R + 1
R
BCD
Binary
S
:
First source word (binary)
IR, SR, AR, DM, EM, HR, LR
R
:
First result word
IR, SR, AR, DM, EM, HR, LR
Ladder Symbols
Operand Data Areas
BCDL(59)
S
R
@BCDL(59)
S
R
S + 1
S
R + 1
R
BCD
Binary