Omron CP1E-E@@D@-@ Computer Hardware User Manual


 
2-191
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Conversion Instructions
2
MLPX
MLPX
Applicable Program Areas
Operands
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 Step program areas Subroutines Interrupt tasks
Usage 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
8111215
ln
03
47
Conversion process
0: 4-to-16 bits (digit to word)
Always 0.
Number of digits/bytes to be converted
0 to 3 (1 to 4 digits)
Specifies the first digit/byte to be converted
0 to 3 (digit 0 to 3)