500
Conversion Instructions Section 3-12
3-12-9 DATA ENCODER: DMPX(077)
Purpose FInds the location of the first or last ON bit within the source word (or 16-word
range), and writes that value to the specified digit (or byte) in the result word.
Ladder Symbol
Variations
Applicable Program Areas
Operands S: First Source Word
There can be anywhere from 1 to 32 source words, depending upon the type
of conversion process and number of digits/bytes being converted. The
source words must be in the same data area.
Bits 0 to 3: Starting byte (Byte 1)
Bits 4 to 7: Number of bytes (2 bytes)
Byte 1 contains 2D, so bit 13 (D)
of R+2 is turned ON.
Byte 0 contains 1A, so bit 10 (A)
of R+1 is turned ON.
MLPX
0100
#1011
D00100
000000
S
K
D
1
D: D00100
D00101
D00102
D00103
D00115
D00116
D00117
D00118
D00131
012345678915 141312 11
0347815 12 11
10
S: 0100
Byte 0Byte 1
A1D2
C: #
1101
1
DMPX(077)
S
R
C
S: First source word
R: Result word
C: Control word
Variations Executed Each Cycle for ON Condition DMPX(077)
Executed Once for Upward Differentiation @DMPX(077)
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification Not supported
Block program areas Step program areas Subroutines Interrupt tasks
OK OK OK OK