![background image](http://html.mh-extra.com/html/omron/sysmac-cp-series/sysmac-cp-series_user-manual_742262486.webp)
Appendices
A-26
CP2E CPU Unit Software User’s Manual(W614)
DATA
ENCODER
DMPX
@
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.
C: Control Word
•
16-to-4 bit conversion
•
256-to-
8
bit conversion
Instruction
Mnemonic
Variations
Symbol/Operand
Function
DMPX(077)
S
R
C
S
: 1st source word
R
: Result word
C
: Control word
C
R
C
R
FInds leftmost bit
(Highest bit address)
Finds leftmost bit
(Highest bit address)
Leftmost bit
Rightmost bit
Leftmost bit
16-to-4 bit conversion
l
=1 (Convert
2 words.)
16-to-4 bit decoding
(Location of leftmost
bit (m) is writ-ten to R.)
n=2 (Start with digit 2.)
256-to-
8
bit conversion
l
=0 (Convert one 16-word range.)
256-to-
8
bit decoding
(The location of the leftmost bit in the
16-word range (m) is written to R.)
n=1 (Start with byte 1.)
C
0
8
11
12
15
l
n
0
3
4
7
Conversion process
0: 16-to-4 bits (word to digit)
Bit to encode
0: Leftmost bit (highest bit address)
1: Rightmost bit (lowest bit address)
Number of digits/bytes to be converted
0 to 3 (1 to 4 digits)
Specifies the first digit/byte
to receive converted data.
0 to 3 (digit 0 to 3)
C
1
Specifies the first digit/byte
to receive converted data.
0 or 1 (byte 0 or 1)
Number of digits/bytes to be converted
0 or 1 (1 or 2bytes)
8
11
12
15
l
n
0
3
4
7
Bit to encode
0: Leftmost bit (highest bit address)
1: Rightmost bit (lowest bit address)
Conversion process
1: 256-to-
8
bits (16-word range to byte)
Содержание SYSMAC CP Series
Страница 1: ...USER S MANUAL Cat No W614 E1 01 SYSMAC CP Series CP2E E D CP2E S D CP2E N D CP2E CPU Unit Software ...
Страница 3: ......
Страница 32: ...1 Overview 1 4 CP2E CPU Unit Software User s Manual W614 ...
Страница 44: ...3 CPU Unit Operation 3 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 116: ...6 I O Allocation 6 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 144: ...7 PLC Setup 7 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 170: ...10 Interrupts 10 14 CP2E CPU Unit Software User s Manual W614 ...
Страница 200: ...11 High speed Counters 11 30 CP2E CPU Unit Software User s Manual W614 ...
Страница 272: ...12 Pulse Outputs 12 72 CP2E CPU Unit Software User s Manual W614 ...
Страница 278: ...13 PWM Outputs 13 6 CP2E CPU Unit Software User s Manual W614 ...
Страница 460: ...18 Programming Device Operations 18 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 576: ...Revision 2 CP2E CPU Unit Software User s Manual W614 ...
Страница 577: ......