Omron CP1E CPU UNIT SOFTWARE User Manual page 377

Cp1e cpu unit software
Table of Contents

Advertisement

Instruction
Mnemonic
DATA
MLPX
DECODER
CP1E CPU Unit Software User's Manual(W480)
Variations
Symbol/Operand
@
MLPX(076)
S
C
R
S: Source word
C: Control word
R: 1st result word
Function
Reads the numerical value in the specified digit (or byte) in the
source word, turns ON the corresponding bit in the result word (or
16-word range), and turns OFF all other bits in the result word (or
16-word range).
4-to-16 bit conversion
C
l=1 (Convert 2 digits.)
n=2 (Start with second digit.)
4-to-16 bit decoding
(Bit m of R is turned ON.)
R
R+1
8-to-256 bit conversion
C
l=1 (Convert 2 bytes.)
n=1 (Start with first byte.)
8-to-256 bit decoding
(Bit m of R to R+15 is turned ON.)
R+1
R+14
R+15
R+16
R+17
Two 16-word ranges
are used when l
specifies 2 bytes.
R+30
R+31
C: Control Word
• 4-to-16 bit decoder
15
12
11
8
7
4
3
C
0
l
Number of digits/bytes to be converted
0 to 3 (1 to 4 digits)
Always 0.
Conversion process
0: 4-to-16 bits (digit to word)
• 8-to-256 bit conversion
15
12
11
8
7
4
3
C
1
l
Number of digits/bytes to be converted
0 or 1 (1 or 2 bytes)
Always 0.
Conversion process
1: 8-to-256 bits (byte to 16-word range)
Appendices
0
n
Specifies the first digit/byte
to be converted
0 to 3 (digit 0 to 3)
0
n
Specifies the first digit/byte
to be converted
0 or 1 (byte 0 or 1)
A-23

Advertisement

Table of Contents
loading

Table of Contents