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

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

Advertisement

MLPX
Instruction
DATA DECODER
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
S
Source word
C
Control word
R
First result word
4-to-16 bit decoder
S: Source Word
15
12
11
8
S
Digit 3
Digit 2
Digits from the starting digit going left are
decoded
(Returns to digit 3 after digit 0)
C: Control Word
15
12
11
8
C
0
Always 0.
Conversion process
0: 4-to-16 bits (digit to word)
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
MLPX
@MLPX
Block program areas
Step program areas
OK
OK
Description
R: First Result Word
7
4
3
0
Digit 1
Digit 0
7
4
3
0
l
n
Specifies the first digit/byte to be converted
0 to 3 (digit 0 to 3)
Number of digits/bytes to be converted
0 to 3 (1 to 4 digits)
Function
code
Reads the numerical value in the specified digit (or
byte) in the source word with 4-to 16 conversion
076
(or 8-to-256 conversion), turns ON the corre-
sponding bit in the result word, and turns OFF all
other bits in the result word.
MLPX
MLPX(076)
S: Source word
S
C: Control word
C
R: First result word
R
Subroutines
OK
Data type
UINT
UINT
UINT
D: Decoding result of 1st digit of decoded digits
D+1: Decoding result of 2nd digit of decoded digits
D+2: Decoding result of 3rd digit of decoded digits
D+3: Decoding result of 4th digit of decoded digits
Note The result words must be in the same data area.
3. Instructions
Function
SFC action or
Interrupt tasks
transition programs
OK
OK
Size
1
1
Variable
3
383

Advertisement

Table of Contents
loading

Table of Contents