Omron CS1G/H-CPUxxH Instructions Manual page 469

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Conversion Instructions
Flags
Precautions
Examples
448
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
DMPX(077) D0000 D0100 #0000
DMPX(077) D0001 D0100 #0001
DMPX(077) D0002 D0100 #0002
DMPX(077) D0003 D0100 #0003
When CIO 000000 is ON in the following example, DMPX(077) will find the
leftmost ON bits in CIO 0100, CIO 0101, and CIO 0102 and write those loca-
tions to 3 digits in R beginning with digit 1 (the second digit), as indicated by C
(#0021).
Digit 0
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
C: #1011
Digit 1
Digit 0

Advertisement

Table of Contents
loading

Table of Contents