![Omron CJ1G-CPUxx Instructions Manual Download Page 466](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491466.webp)
445
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.
R: Result Word
The locations of the bits that were ON in the source word(s) are written to the
digits/bytes in R starting with the specified first digit/byte.
C: Control Word
The control word specifies whether DMPX(077) will perform a 16-to-4 bit con-
version or an 256-to-8 bit conversion, whether the leftmost or rightmost ON bit
will be encoded, the number of digits or bytes that will be converted, and the
starting digit or byte where the results will be written.
Operand Specifications
S: First source word
R: Result word
C: Control word
DMPX(077)
S
R
C
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
Specifies the first digit/byte to receive converted data.
16-to-4: 0 to 3 (digit 0 to 3)
256-to-8: 0 or 1 (byte 0 or 1)
Number of digits/bytes to be converted
16-to-4: 0 to 3 (1 to 4 digits)
256-to-8: 0 or 1 (1 or 2 bytes)
Bit to encode
0: Leftmost bit (highest bit address)
1: Rightmost bit (lowest bit address)
Conversion process
0: 16-to-4 bits (word to digit)
1: 256-to-8 bits (16-word range to byte)
Digit number: 3 2 1 0
Area
S
R
C
CIO Area
CIO 0000 to CIO 6143
Work Area
W000 to W511
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...