EasyManuals Logo

Omron CJ2 CPU UNIT SOFTWARE User Manual

Omron CJ2 CPU UNIT SOFTWARE
670 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #515 background imageLoading...
Page #515 background image
A-31
Appendices
CJ2 CPU Unit Software User’s Manual
A-1 Instruction Functions
App
A-1-10 Conversion Instructions
DATA
ENCODER
DMPX
@DMPX
077 Output Required
ASCII CON-
VERT
ASC
@ASC
086 Output Required
ASCII TO HEX HEX
@HEX
162 Output Required
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
DMPX(077)
S
R
C
S: 1st source word
R: Result word
C: Control word
C
R
C
R
Finds leftmost bit
(Highest bit address)
Finds leftmost bit
(Highest bit address)
Leftmost bit Rightmost bit
Leftmost bit
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
l
=1 (Convert
2 words.)
16-to-4 bit decoding
(Location of leftmost
bit (m) is writ-ten to R.)
n=2 (Start with digit 2.)
256-to-8 bit conversion
l=0 (Convert one 16-word range.)
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.)
ASC(086)
S
Di
D
S: Source word
Di: Digit
designator
D: 1st destination
word
Di
Right (0)Left (1)
First digit to convert
Converts 4-bit hexadecimal digits in the source word
into their 8-bit ASCII equivalents.
Number of
digits (n+1)
HEX(162)
S
Di
D
S: 1st source word
Di: Digit designator
D: Destination
word
C: 0021
Di
Number of digits (n+1)
Right (0)Left (1)
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.
First byte to convert
First digit to write

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ2 CPU UNIT SOFTWARE and is the answer not in the manual?

Omron CJ2 CPU UNIT SOFTWARE Specifications

General IconGeneral
BrandOmron
ModelCJ2 CPU UNIT SOFTWARE
CategorySoftware
LanguageEnglish

Related product manuals