![Omron CJ1G-CPU series Programming Manual Download Page 123](http://html1.mh-extra.com/html/omron/cj1g-cpu-series/cj1g-cpu-series_programming-manual_742489123.webp)
102
Conversion Instructions
Section 3-10
DATA ENCODER
DMPX
@DMPX
077
Output
Required
ASCII CONVERT
ASC
@ASC
086
Output
Required
Instruction
Mnemonic
Code
Symbol/Operand
Function
Location
Execution
condition
S: 1st source
word
R: Result word
C: Control word
DMPX(077)
S
R
C
l
=1 (Convert
2 words.)
n=2 (Start with digit 2.)
16-to-4 bit decoding
(Location of left-
most bit (m) is writ-
ten to R.)
FInds leftmost bit
(Highest bit address)
C
R
Leftmost bit
Rightmost bit
l
=0 (Convert one 16-word range.)
n=1 (Start with byte 1.)
256-to-8 bit decoding
(The location of the leftmost bit in the
16-word range (m) is written to R.)
Finds leftmost bit
(Highest bit address)
C
R
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.
16-to-4 bit conversion
256-to-8 bit conversion
Leftmost bit Rightmost bit
S: Source word
Di: Digit
designator
D: 1st destination
word
ASC(086)
S
Di
D
First digit to convert
Number of
digits (n+1)
Right (0)
Left (1)
Di
Converts 4-bit hexadecimal digits in the source word into their 8-bit ASCII
equivalents.
Summary of Contents for CJ1G-CPU series
Page 3: ...iv...
Page 5: ...vi...
Page 21: ...xxii Conformance to EC Directives 6...
Page 169: ...148 Task Control Instructions Section 3 32...
Page 203: ...182 Programming Device Operations for Tasks Section 4 4...
Page 253: ...232 Using File Memory Section 5 3...
Page 337: ...316 Other Functions Section 6 11...
Page 347: ......
Page 369: ......
Page 373: ......
Page 379: ......
Page 381: ...360 Revision History...