Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 102

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

Instruction
Symbol/Operand
Mnemonic
Code
DATA ENCODER
DMPX(077)
DMPX
@DMPX
077
R
C
S: 1st source
word
R: Result word
C: Control word
ASCII CONVERT
ASC(086)
ASC
@ASC
086
S: Source word
Di: Digit
designator
D: 1st destination
word
CS/CJ/NSJ Series Instructions Reference Manual (W474)
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.
S
16-to-4 bit conversion
Finds leftmost bit
(Highest bit address)
16-to-4 bit decoding
(Location of leftmost
bit (m) is written to R.)
R
256-to-8 bit conversion
l=0 (Convert one 16-word range.)
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.)
R
Converts 4-bit hexadecimal digits in the source word into their 8-bit
ASCII equivalents.
S
Di
D
Number of
digits (n+1)
Left (1)
Function
C
l=1 (Convert
2 words.)
Leftmost bit
Rightmost bit
n=2 (Start with digit 2.)
C
Leftmost bit
n=1 (Start with byte 1.)
Di
First digit to convert
Right (0)
2. Summary of Instructions
Location
Execution
condition
Output
Required
Output
Required
Page
388
2
393
65

Advertisement

Table of Contents
loading

Table of Contents