![Omron CJ1G-CPU series Programming Manual Download Page 124](http://html1.mh-extra.com/html/omron/cj1g-cpu-series/cj1g-cpu-series_programming-manual_742489124.webp)
103
Conversion Instructions
Section 3-10
ASCII TO HEX
HEX
@HEX
162
Output
Required
COLUMN TO
LINE
LINE
@LINE
063
Output
Required
LINE TO COL-
UMN
COLM
@COLM
064
Output
Required
Instruction
Mnemonic
Code
Symbol/Operand
Function
Location
Execution
condition
S: 1st source
word
Di: Digit
designator
D: Destination
word
HEX(162)
S
Di
D
First byte to convert
Number of digits (n+1)
Right (0)
Left (1)
First digit to write
C: 0021
Di
Converts up to 4 bytes of ASCII data in the source word to their hexadecimal
equivalents and writes these digits in the specified destination word.
S: 1st source
word
N: Bit number
D: Destination
word
LINE(063)
S
N
D
Converts a column of bits from a 16-word range (the same bit number in 16
consecutive words) to the 16 bits of the destination word.
0
0 0 0 1 1 1 1 0 0 0 1 0 0 0 0 1
Bit
15
Bit
00
S
N
1 1 0 1 0 0 1 0 0 1 1 1 0 0 0 1
S+1
0 0 0 1 1 0 1 1 0 0 1 0 0 1 1 1
S+2
.
.
.
.
.
.
. . .
.
.
.
0 1 1 0 0 0 0 1 1 0 0 0 1 0 1 0
S+15
1 0 0 0 0 0 1 1 0 0 0 0 0 1 1 1
S+3
0 1
1
D
1
Bit
15
Bit
00
.
.
.
S: Source word
D: 1st destination
word
N: Bit number
COLM(064)
S
D
N
Converts the 16 bits of the source word to a column of bits in a 16-word range
of destination words (the same bit number in 16 consecutive words).
0
0 0 0 0 1 1 1 0 0 0 1 0 0 0 0 1
Bit
15
Bit
00
D
Bi
1 1 0 1 0 0 1 0 0 1 1 1 0 0 0 1
D+1
0 0 0 1 1 0 1 1 0 0 1 0 0 1 1 1
D+2
.
.
.
.
.
.
.
.
.
.
0 1 1 1 0 0 0 1 1 0 0 0 1 0 1 0
D+15
1 0 0 0 0 0 1 1 0 0 0 0 0 1 1 1
D+3
0 1
1
S
1
Bit
15
Bit
00
.
.
.
.
.
.
.
.
.
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...