![Omron CJ1G-CPUxx Instructions Manual Download Page 491](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491491.webp)
470
Conversion Instructions
Section 3-12
C = 0002 (Output Data Range: –999 to 9999 BCD)
C = 0003 (Output Data Range: –1999 to 9999 BCD)
The following table shows the possible signed binary values for each signed
BCD format. An error will occur if the source data is not within the allowed
range for the specified signed BCD format.
Flags
3-12-17 DOUBLE SIGNED BINARY-TO-BCD: BDSL(473)
Purpose
Converts double signed binary data to double signed BCD data.
Ladder Symbol
Setting
Signed binary values
Signed BCD values
C=0000 FC19 to FFFF and 0000 to 03E7
–999 to –1 and 0 to 999
C=0001 E0C1 to FFFF and 0000 to 1F3F
–7999 to –1 and 0 to 7999
C=0002 FC19 to FFFF and 0000 to 270F
–999 to –1 and 0 to 9999
C=0003 F831 to FFFF and 0000 to 270F
–1999 to –1 and 0 to 9999
3 digits BCD, 12 bits
0 to 9: Fourth digit BCD
F: Negative (–)
3 digits BCD, 12 bits
0 to 9: Fourth digit BCD
A: Negative (–1)
F: Negative (–)
Name
Label
Operation
Error Flag
ER
ON if C is not within the specified range of 0000 to 0003.
ON if C=0000 and the source data is not within the allowed
ranges (FC19 to FFFF or 0000 to 03E7).
ON if C=0001 and the source data is not within the allowed
ranges (E0C1 to FFFF or 0000 to 1F3F).
ON if C=0002 and the source data is not within the allowed
ranges (FC19 to FFFF or 0000 to 270F).
ON if C=0003 and the source data is not within the allowed
ranges (F831 to FFFF or 0000 to 270F).
OFF in all other cases.
Equals Flag
=
ON if D is 0000 after execution.
OFF in all other cases.
Negative Flag
N
ON if C=0000 or 0001 and the result’s sign bit is ON after
execution.
ON if C=0002 and the leftmost digit of the result is F.
ON if C=0003 and the leftmost digit of the result is A or F.
OFF in all other cases.
C: Control word
S: First source word
D: First destination word
BDSL(473)
C
S
D
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...