EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 439

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
406
Conversion Instructions Section 3-11
256-to-8 bit Conversion
When the fourth (leftmost) digit of C is 1, DMPX(077) finds the locations of the
leftmost (highest bit address) or rightmost (lowest bit address) ON bits in one
or two 16-word ranges of source words. The locations of these bits are written
to R beginning with the specified byte. (Set the third digit of C to 0 to find the
leftmost ON bits or 1 to find the rightmost ON bits.)
When two bytes are being converted, DMPX(077) will write the values to the
bytes in R from right to left and will wrap around to the rightmost byte if the
leftmost byte (byte 1) has been specified as the starting byte.
C: #0032
C: #0011 C: #0030 C: #0013
R
R
R
R
Digit 1Digit 3
Digit 1Digit 3
Digit 1Digit 3
Digit 1Digit 3
Digit 2 Digit 0
Digit 2 Digit 0
Digit 2 Digit 0
Digit 2 Digit 0
R
C
Leftmost
bit
Rightmost
bit
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.)
n=1 (Start with byte 1.)

Table of Contents

Related product manuals