Omron SYSMAC C2000H Operation Manual page 157

Hide thumbs Also See for SYSMAC C2000H:
Table of Contents

Advertisement

Data Conversion
Digit Designator
Flags
value is then turned ON in a result word. If more than one digit is specified,
then one bit will be turned ON in each of consecutive words beginning with R.
(See examples, below.)
The following is an example of a one-digit decode operation from digit num-
ber 1 of S, i.e., here Di would be 0001.
Source word
C
Bit C (i.e., bit number 12) turned ON.
First result word
0
0
0
1
0
0
The first digit and the number of digits to be converted are designated in Di. If
more digits are designated than remain in S (counting from the designated
first digit), the remaining digits will be taken starting back at the beginning of
S. The final word required to store the converted result (R plus the number of
digits to be converted) must be in the same data area as R, e.g., if two digits
are converted, the last word address in a data area cannot be designated; if
three digits are converted, the last two words in a data area cannot be desig-
nated.
The digits of Di are set as shown below.
Digit number: 3 2 1 0
Some example Di values and the digit-to-word conversions that they produce
are shown below.
Di: 0010
S
R
0
R + 1
1
2
3
Di: 0031
S
R
0
R + 1
1
R + 2
2
R + 3
3
ER:
Undefined digit designator, or R plus number of digits exceeds a data
area.
Indirectly addressed DM word is non-existent. (Content of *DM word
is not BCD, or the DM area boundary has been exceeded.)
0
0
0
0
0
0
0
0
Specifies the first digit to be converted (0 to 3)
Number of digits to be converted (0 to 3)
0: 1 digit
1: 2 digits
2: 3 digits
3: 4 digits
Not used
Di: 0030
S
0
1
2
3
Di: 0023
S
0
1
2
3
Section 5-16
0
0
R
R + 1
R + 2
R + 3
R
R + 1
R + 2
151

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac c1000h

Table of Contents