![Omron CJ1G-CPUxx Instructions Manual Download Page 463](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491463.webp)
442
Conversion Instructions
Section 3-12
Description
MLPX(076) can perform 4-to-16 bit or 8-to-256 bit conversions. Set the left-
most digit of C to 0 to specify 4-to-16 bit conversion and set it to 1 to specify 8-
to-256 bit conversion.
4-to-16 bit Conversion
When the leftmost digit of C is 0, MLPX(076) takes the value of the specified
digit in S (0 to F) and turns ON the corresponding bit in the result word. All
other bits in the result word will be turned OFF. Up to four digits can be con-
verted.
When two or more digits are being converted, MLPX(076) will read the digits
in S from right to left and will wrap around to the rightmost digit after the left-
most digit, if necessary.
The following diagram shows some example values for C and the 4-to-16 bit
conversions that they produce.
8-to-256 bit Conversion
When the leftmost digit of C is 1, MLPX(076) takes the value of the specified
byte in S (00 to FF) and turns ON the corresponding bit in the range of 16
result words. All other bits in the result words will be turned OFF. Up to two
bytes can be converted.
Index Registers
---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Area
S
C
R
l
=
1 (Convert 2 digits.)
n=2 (Start with third digit.)
4-to-16 bit decoding
(Bit m of R is turned ON.)
C
R
R+1
C: #0010
C: #0030
C: #0031
R
R+1
R
R+1
R+2
R+3
R
R+1
R+2
R+3
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 ...