![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030568.webp)
528
Conversion Instructions
Section 3-12
C = 0003 (Output Data Range: –1999 9999 to 9999 9999 BCD)
The following table shows the possible double 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
Example
When CIO 000000 is ON in the following example, the double signed binary
data in D00101 and D00100 are checked against the format specified in the
control word (0003). The source data is correct, so the double signed binary
data in D00101 and D00100 is converted to double signed BCD and output to
D00201 and D00200.
Setting
Signed binary values
Signed BCD values
C=0000 FF67 6981 to FFFF FFFF
–999 9999 to –1
0000 0000 to 0098 967F
0 to 999 9999
C=0001 FB3B 4C01 to FFFF FFFF
–7999 9999 to –1
0000 0000 to 04C4 B3FF
0 to 7999 9999
C=0002 FF67 6981 to FFFF FFFF
–999 9999 to –1
0000 0000 to 05F5 E0FF
0 to 9999 9999
C=0003 FECE D301 to FFFF FFFF
–1999 9999 to –1
0000 0000 to 05F5 E0FF
0 to 9999 9999
S+1
S
0 to 9: Eighth digit BCD
A: Negative (–1)
F: Negative (–)
7 digits BCD, 28 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 range:
FF67 6981 to FFFF FFFF or 0000 0000 to 0098 967F.
ON if C=0001 and the source data is not within the range:
FB3B 4C01 to FFFF FFFF or 0000 0000 to 04C4 B3FF.
ON if C=0002 and the source data is not within the range:
FF67 6981 to FFFF FFFF or 0000 0000 to 05F5 E0FF.
ON if C=0003 and the source data is not within the range:
FECE D301 to FFFF FFFF or 0000 0000 to 05F5 E0FF.
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.
S+1: D00101
F F 8 B
D+1: D00201
F 7 6 5
S: D00100
3 4 4 F
D: D00200
4 3 2 1
Double signed binary data
Double signed BCD data
(–7,654,321)
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...