Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 428

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

Sample program
16-to-4 bit Conversion
When CIO 0.00 is ON in the following example, DMPX(077) will find the leftmost ON bits in CIO 100,
CIO 101, and CIO 102 and write those locations to 3 digits in R beginning with digit 1 (the second digit),
as indicated by C (#0021).
0.00
S
R
C
Example of multi-digit decoding
• Example of 16-to-4 bit decoding
C: #0011
R
Digit 3
Digit 2
C: #0032
R
Digit 3
Digit 2
CS/CJ/NSJ Series Instructions Reference Manual (W474)
100
D100
C: #
DMPX(077) finds the
leftmost ON bits.
S: 100
101
102
Digits
R: D100
Digit 1
Digit 0
R
Digit 3
Digit 1
Digit 0
C: #0030
Digit 2
Digit 1
Digit 0
3. Instructions
Starting digit
(Digit 1)
C: #0013
R
Digit 3
Digit 2
Digit 1
Digit 0
3
391

Advertisement

Table of Contents
loading

Table of Contents