391
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Conversion Instructions
3
MLPX
MLPX
Applicable Program Areas
Operands
z 4-to-16 bit decoder
C: Control Word
Instruction Mnemonic Variations
Function
code
Function
DATA DECODER MLPX @MLPX 076
Reads the numerical value in the specified digit (or
byte) in the source word with 4-to 16 conversion
(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.
Symbol
MLPX
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or
transition programs
Usage OK OK OK OK OK OK
Operand Description Data type Size
S Source word UINT 1
C Control word UINT 1
R First result word UINT Variable
S: Source Word R: First Result Word
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.
S: Source word
C: Control word
R: First result word
MLPX(076)
S
C
R
S Digit 3 Digit 2
8
111215
Digit 1 Digit 0
03
47
Digits from the starting digit going left are
decoded
(Returns to digit 3 after digit 0)
C0
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)
8
111215
ln
03
47
Always 0.
Conversion process
0: 4-to-16 bits (digit to word)