![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030540.webp)
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
0
1
2
3
4
5
6
7
8
9
15 14 13 12 11
0
3
4
7
8
15
12 11
10
S: 0100
Byte 0
Byte 1
A
1
D
2
C: #
1
1
0
1
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
Summary of Contents for SYSMAC CS Series
Page 2: ......
Page 4: ...iv ...
Page 30: ...xxx ...
Page 186: ...146 List of Instructions by Function Code Section 2 4 ...
Page 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Page 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Page 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Page 1392: ...1352 ASCII Code Table Appendix A ...
Page 1404: ...1364 Revision History ...