Omron SYSMAC CV Series Operation Manual page 257

Ladder diagrams
Hide thumbs Also See for SYSMAC CV Series:
Table of Contents

Advertisement

Conversion Instructions
Data Ranges
Precautions
Flags
Example
0000
01
(276)
BCDS
#0003
When C = 0002 (Output Data Range: –999 to 9999 BCD)
When C = 0003 (Output Data Range: –1999 to 9999 BCD)
The range of data that can be input or output is determined by the control word
(0000 to 0003), as shown in the following table.
Data format
0000
0001
0002
0003
First the signed binary data in word S is checked against the data control word
(C). If the check is okay, the signed binary data in word S is converted to BCD
and output to the designated word D. If the check is 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.
Refer to page 115 for general precautions on operand data areas.
ER (A50003):
EQ (A50006)
N (A50008)
When CIO 000001 is ON in the following example, first the signed binary data in
D00300 is checked against data control word "0003" (first operand), and then
the signed binary data in D00300 is converted to signed BCD and output to
D00400.
D00300
D00400
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 (–)
Input range (binary)
FFFF to FC19
0000 to 03E7
FFFF to F0C1
0000 to 1F3F
FFFF to FC19
0000 to 270F
FFFF to F831
0000 to 270F
Data is not within allowable range for data format.
Content of*DM word is not BCD when set for BCD.
Content of the converted data is all zeroes.
Data to be converted is a negative number.
Section 5-17
Output range (BCD)
–999 to 999
–7999 to 7999
–999 to 9999
–1999 to 9999
Address Instruction
Operands
00000
LD
000001
00001
BCDS(276)
D00300
D00400
#0003
245

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cv2000Cvm1Cv500Cv1000

Table of Contents