Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 543

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Conversion Instructions
Flags
Precautions
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.)
l =0 (Convert one 16-word range.)
R
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.
The following diagram shows some example values for C and the 256-to-8 bit
conversions that they produce.
C: #1010
Digit 1
Name
Label
Error Flag
ER
If the conversion data contains 0000 hex, but other data is to be encoded,
separate the conversion by using more than one DMPX(077) instructions.
DMPX(077) D0000 D0100 #0300
C
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.)
Digit 0
Digit 1
Operation
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.
Section 3-12
Rightmost
bit
C: #1011
Digit 0
503

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents