EasyManuals Logo
Home>Omron>Controller>CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS User Manual

Omron CJ - INSTRUCTIONS
1308 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 #435 background imageLoading...
Page #435 background image
397
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Conversion Instructions
3
DMPX
z 256-to-8 bit conversion
C: Control word
z Operand Specifications
Flags
Function
DMPX(077) can perform 16-to-4 bit or 256-to-8 bit conversions. Set the leftmost digit of C to 0 to specify
16-to-4 bit conversion and set it to 1 to specify 256-to-8 bit conversion.
z 16-to-4 bit Conversion
When the fourth (leftmost) digit of C is 0, DMPX(077) finds the locations of the leftmost or rightmost ON
bits in up to 4 source words and writes these locations to R beginning with the specified digit.
S: First Source Word
S+15 to S: 1st digit of digits to be encoded
S+31 to S+16: 2nd digit of digits to be encoded
R: Result Word
Note The source words must be in the same
data area.
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
S
OK OK OK OK OK OK OK OK OK OK
--- ---
--- OK --- --- --- ---R --- OK
C OK OK
Name Label Operation
Error Flag ER • ON if any of the source words contains 0000 hex (i.e., no bit to encode).
• ON if C is not within the specified ranges.
• OFF in all other cases.
R
8
15
Digit 1 Digit 0
07
The results of encoding of S to S+15, S+16 to
S+31 are stored from the starting digit going
left (returns to digit 0 after digit 1).
C1
Specifies the first digit/byte to receive converted data.
0 or 1 (byte 0 or 1)
Number of digits/bytes to be converted
0 or 1 (1 or 2 bytes)
8
111215
ln
03
47
Bit to encode
0: Leftmost bit (highest bit address)
1: Rightmost bit (lowest bit address)
Conversion process
1: 256-to-8 bits (16-word range to byte)
R
m
C
Leftmost bit
n=2 (Start with digit 2.)
l
=1 (Convert
2 words.)
Finds leftmost bit
(Highest bit address)
16-to-4 bit decoding
(Location of leftmost bit (m)
is written to R.)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals