Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 568

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Conversion Instructions
Flags
Example
528
C = 0003 (Output Data Range: –1999 9999 to 9999 9999 BCD)
S+1
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.
Setting
Signed binary values
C=0000 FF67 6981 to FFFF FFFF
0000 0000 to 0098 967F
C=0001 FB3B 4C01 to FFFF FFFF
0000 0000 to 04C4 B3FF
C=0002 FF67 6981 to FFFF FFFF
0000 0000 to 05F5 E0FF
C=0003 FECE D301 to FFFF FFFF
0000 0000 to 05F5 E0FF
Name
Label
Error Flag
ER
Equals Flag
=
Negative Flag
N
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.
S
–999 9999 to –1
0 to 999 9999
–7999 9999 to –1
0 to 7999 9999
–999 9999 to –1
0 to 9999 9999
–1999 9999 to –1
0 to 9999 9999
Operation
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.
ON if D is 0000 after execution.
OFF in all other cases.
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
S: D00100
F F 8 B
3 4 4 F
D+1: D00201
D: D00200
4 3 2 1
F 7 6 5
Section 3-12
7 digits BCD, 28 bits
0 to 9: Eighth digit BCD
A: Negative (–1)
F: Negative (–)
Signed BCD values
Double signed binary data
Double signed BCD data
(–7,654,321)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents