![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268540.webp)
501
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
Содержание SYSMAC CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...