![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268565.webp)
526
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 (–)
0 to 9: Fourth digit BCD
A: Negative (–1)
F: Negative (–)
3 digits BCD, 12 bits
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.
BDSL(473)
C
S
D
C
: Control word
S
: First source word
D
: First destination word
Содержание SYSMAC CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...