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

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

Advertisement

3. Instructions
8-to-256 bit conversion
S: Source Word
15
8
S
Digit 1
Digits from the starting digit going left are
decoded
(Returns to digit 0 after digit 1)
C: Control Word
15
12
11
8
C
1
Always 0.
Conversion process
1: 8-to-256 bits (byte to 16-word range)
Operand Specifications
Word addresses
Area
CIO
WR
HR
S
C
OK
OK
OK
R
Flags
Name
Error Flag
Function
MLPX(076) can perform 4-to-16 bit or 8-to-256 bit conversions. Set the leftmost digit of C to 0 to specify 4-to-16
bit conversion and set it to 1 to specify 8-to-256 bit conversion.
4-to-16 bit Conversion
When the leftmost digit of C is 0, MLPX(076)
takes the value of the specified digit in S (0 to F)
and turns ON the corresponding bit in the result
word. All other bits in the result word will be
turned OFF. Up to four digits can be converted.
384
R: First Result Word
7
0
Digit 0
7
4
3
0
l
n
Specifies the first digit/byte to be converted
0 or 1 (byte 0 or 1)
Number of digits/bytes to be converted
0 or 1 (1 or 2 bytes)
Indirect DM/EM
@DM
AR
T
C
DM
EM
@EM
OK
OK
OK
OK
OK
OK
Label
ER
• ON if C is not within the specified ranges.
• OFF in all other cases.
D+15 to D: Decoding result of 1st digit of decoded digits
D+31 to D+16:
Decoding result of 2nd digit of decoded digits
Note The result words must be in the same data area.
Registers
addresses
Con-
stants
*DM
DR
*EM
---
OK
OK
OK
---
---
Operation
C
l =1 (Convert 2 digits.)
4-to-16 bit decoding
(Bit m of R is turned ON.)
R
R+1
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
---
n=2 (Start with third digit.)
TR
bits
---

Advertisement

Table of Contents
loading

Table of Contents