
206
Note
If the content of S exceeds 270F, the converted result would exceed 9999 and
BCD(24) will not be executed. When the instruction is not executed, the content
of R remains unchanged.
Signed Binary Data
BCD(24) cannot be used to convert signed binary data directly to BCD. To con-
vert signed binary data, first determine whether the data is positive or negative. If
it is positive, BCD(24) can be used to convert the data to BCD. If it is negative,
use the 2’s COMPLEMENT – NEG(––) instruction to convert the data to un-
signed binary before executing BCD(24). Refer to page 27 for details on signed
binary data.
Flags
ER:
S is greater than 270F.
Indirectly addressed DM word is non-existent. (Content of
DM word is
not BCD, or the DM area boundary has been exceeded.)
EQ
:
ON when the result is zero.
5-18-4
DOUBLE BINARY-TO-DOUBLE BCD – BCDL(59)
S
: First source word (binary)
IR, SR, AR, DM, HR, LR
R
: First result word
IR, SR, AR, DM, HR, LR
Ladder Symbols
Operand Data Areas
BCDL(59)
S
R
@BCDL(59)
S
R
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.
S and S+1 must be in the same data area as must R and R+1.
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 + 1
S
R + 1
R
BCD
Binary
Signed Binary Data
BCD(24) cannot be used to convert signed binary data directly to BCD. To con-
vert signed binary data, first determine whether the data is positive or negative. If
it is positive, BCD(24) can be used to convert the data to BCD. If it is negative,
use the DOUBLE 2’s COMPLEMENT – NEGL(––) instruction to convert the data
to unsigned binary before executing BCD(24). Refer to page 27 for details on
signed binary data.
Flags
ER:
Content of R and R+1 exceeds 99999999.
Indirectly addressed DM word is non-existent. (Content of
DM word is
not BCD, or the DM area boundary has been exceeded.)
EQ
:
ON when the result is zero.
Data Conversion
Section 5-18
Summary of Contents for SYSMAC C200HE
Page 1: ...Cat No W303 E1 09 OPERATION MANUAL Programmable Controllers C200HX C200HG C200HE ...
Page 2: ......
Page 3: ...C200HX C200HG C200HE Programmable Controllers Operation Manual Revised August 2004 ...
Page 6: ...vi ...
Page 10: ......
Page 12: ......
Page 380: ......
Page 410: ......
Page 438: ......
Page 464: ......
Page 474: ......
Page 522: ......
Page 538: ......
Page 552: ...534 Programmer Program Date Page Word Contents Notes Word Contents Notes Data Storage ...
Page 554: ......
Page 560: ......
Page 584: ......
Page 585: ......
Page 586: ...W303 E1 09 ...