Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 440

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Conversion Instructions
Flags
Precautions
Examples
0.00
S
R
C
The following diagram shows some example values for C and the 256-to-8 bit
conversions that they produce.
C: #1010
Digit 1
Name
Error Flag
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) D0
DMPX(077) D0
DMPX(077) D1
DMPX(077) D2
DMPX(077) D3
When CIO 0.00 is ON in the following example, DMPX(077) will find the left-
most ON bits in CIO 200 to C202 and write those locations to 3 digits in R
beginning with the second digit, as indicated by C (#0021).
200
D1000
C: #
DMPX(077) finds the
leftmost ON bits.
S: CIO 200
CIO 201
CIO 202
Digits
R: D10000
Digit 0
Label
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.
D100
#0300
D100
#0000
D100
#0001
D100
#0002
D100
#0003
Section 3-11
C: #1011
Digit 1
Digit 0
Operation
Starting digit
(Digit 1)
407

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents