Omron CPM1 - PROGRAMING MANUAL 02-2001 Programming Manual page 462

Hide thumbs Also See for CPM1 - PROGRAMING MANUAL 02-2001:
Table of Contents

Advertisement

Conversion Instructions
7-20-6 16-TO-4 ENCODER – DMPX(77)
Limitations
Description
Digit Designator
444
Ladder Symbols
DMPX(77)
@DMPX(77)
SB
R
Di
The rightmost two digits of Di must each be between 0 and 3.
All source words must be in the same data area.
DM 6144 to DM 6655 cannot be used for SB, R, or Di.
When the execution condition is OFF, DMPX(77) is not executed. When the
execution condition is ON, DMPX(77) determines the position of the highest ON
bit in S, encodes it into single-digit hexadecimal value corresponding to the bit
number of the highest ON bit number, then transfers the hexadecimal value to
the specified digit in R. The digits to receive the results are specified in Di, which
also specifies the number of digits to be encoded.
The following is an example of a one-digit encode operation to digit number 1 of
R, i.e., here Di would be 0001.
0
0
0
Result word
Up to four digits from four consecutive source words starting with S may be en-
coded 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 beginning 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.
Digit numbers: 3 2 1 0
IR, SR, AR, DM, HR, TC, LR
SB
R
Di
IR, SR, AR, DM, HR, TC, LR, #
First source word
1
0
0
0
1
0
0
0
C transferred to indicate bit number 12 as
the highest ON bit.
C
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.
Section
7-20
Operand Data Areas
SB: First source word
R: Result word
IR, SR, AR, DM, HR, LR
Di: Digit designator
1
0
1
1
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents