153
The following is an example of a one-digit encode operation to digit number 1
of R, i.e., here Di would be 0001.
Result word
First source word
C
0
0
0
1
0
0
0
1
0
0
0
1
0
1
1
0
C transferred to indicate bit number 12 as
the highest ON bit.
Up to four digits from four consecutive source words starting with S may be
encoded and the digits written to R in order from the designated first digit. If
more digits are designated than remain in R (counting from the designated
first digit), the remaining digits will be placed at digits starting back at the be-
ginning of R.
The final word to be converted (S plus the number of digits to be converted)
must be in the same data area as SB.
The digits of Di are set as shown below.
Specifies the first digit to receive converted data (0 to 3).
Number of words to be converted (0 to 3)
0: 1 word
1: 2 words
2: 3 words
3: 4 words
Not used.
Digit numbers: 3 2 1 0
Some example Di values and the word-to-digit conversions that they produce
are shown below.
0
1
2
3
R
Di: 0011
S
S + 1
0
1
2
3
S
S + 1
S + 2
S + 3
Di: 0030
R
S
S + 1
S + 2
S + 3
0
1
2
3
Di: 0032
R
Di: 0013
0
1
2
3
S
S + 1
R
ER:
Undefined digit designator, or S plus number of digits exceeds a data
area.
Content of a source word is 0.
Indirectly addressed DM word is non-existent. (Content of
*
DM word
is not BCD, or the DM area boundary has been exceeded.)
When 00000 is ON, the following diagram encodes IR words 010 and 011 to
the first two digits of HR 20 and then encodes LR 10 and 11 to the last two
Digit Designator
Flags
Example
Data Conversion
Section 5-16
Содержание SYSMAC C1000H
Страница 1: ...Cat No W140 E1 04 Programmable Controllers SYSMAC C1000H C2000H...
Страница 2: ...C1000H C2000H Programmable Controllers Operation Manual Revised May 2003...
Страница 3: ...iv...
Страница 5: ...vi...
Страница 395: ...Cat No W140 E1 04 Note Specifications subject to change without notice Printed in Japan Authorized Distributor...
Страница 396: ...Cat No W140 E1 04 SYSMAC C1000H C2000H Programmable Controllers OPERATION MANUAL...