EasyManua.ls Logo

Omron SYSMAC CV Series - Page 255

Omron SYSMAC CV Series
636 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
(275)
BINS #0000 D00100 D00200
0000
00
243
When C = 0002 (Input Data Range: –999 to 9999 BCD)
3 digits BCD, 12 bits
0 to 9: Fourth digit BCD
F: Negative (–)
A to E: Error
When C = 0003 (Input Data Range: –1999 to 9999 BCD)
3 digits BCD, 12 bits
0 to 9: Fourth digit BCD
A: Negative (–1)
F: Negative (–)
B to E: Error
First the signed BCD data format and range in word S are checked against the
data control word (C). If the check is okay, the signed BCD data in word S is con-
verted to binary and output to the designated word D. If the format and range are
not okay, the Error Flag (A50003) will turn ON and the instruction will not be
executed.
In signed BCD data, –0 is treated as +0. When the data to be converted is a neg-
ative number, it will be output as 2’s complement and the Negative Flag
(A50008) will turn ON. In order to convert a 2’s complement to the true value, it is
necessary to subtract it from 0.
Refer to page 115 for general precautions on operand data areas.
Flags ER (A50003): Data format is 0002, and leftmost digit is A to E.
Data format is 0003, and the leftmost is B to E.
Data to be converted is not BCD.
Content of *DM word is not BCD when set for BCD.
EQ (A50006) Content of the converted data is all zeroes.
N (A50008) Converted number is negative.
Example 1 When CIO 000000 is ON in the following example, first the signed BCD data for-
mat and range in D00100 are checked against data control word “0000” (first
operand). If the check is okay, the signed BCD data in D00100 is converted to
binary and output to D00200.
Address Instruction Operands
00000 LD 000000
00001 BINS(275)
#0000
D00100
D00200
Signed BCD data (–123)
S: D00100
1 1 2 3
Signed binary data
D: D00200
F F 8 5
Precautions
Conversion Instructions Section 5-17

Table of Contents

Related product manuals