Omron CJ2 - 02-2010 User Manual page 507

Cj2 cpu unit software
Table of Contents

Advertisement

Instruction
Mnemonic
Code
DATA
DMPX
077
ENCODER
@DMPX
ASCII CON-
ASC
086
VERT
@ASC
ASCII TO HEX
HEX
162
@HEX
CJ2 CPU Unit Software User's Manual
Symbol/Operand
Finds the location of the first or last ON bit within the source
DMPX(077)
word (or 16-word range), and writes that value to the
specified digit (or byte) in the result word.
S
R
16-to-4 bit conversion
C
S: 1st source word
R: Result word
C: Control word
16-to-4 bit decoding
(Location of leftmost
bit (m) is writ-ten to R.)
256-to-8 bit conversion
R
Converts 4-bit hexadecimal digits in the source word
ASC(086)
into their 8-bit ASCII equivalents.
S
Di
D
S: Source word
Di: Digit
designator
Number of
D: 1st destination
digits (n+1)
word
Left (1)
Converts up to 4 bytes of ASCII data in the source word to
HEX(162)
their hexadecimal equivalents and writes these digits in the
S
specified destination word.
Di
D
S: 1st source word
Di: Digit designator
D: Destination
word
Function
C
Finds leftmost bit
(Highest bit address)
l=1 (Convert
2 words.)
Leftmost bit
Rightmost bit
n=2 (Start with digit 2.)
R
C
l=0 (Convert one 16-word range.)
Leftmost bit
Finds leftmost bit
(Highest bit address)
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.)
Di
First digit to convert
Right (0)
C: 0021
Di
First byte to convert
Left (1)
Right (0)
Number of digits (n+1)
First digit to write
Appendices
Execution
Location
condition
Output
Required
Output
Required
Output
Required
A-31

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents