Mlpx - Omron SYSMAC CP Series Instruction & Reference Manual

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

MLPX

Instruction
DATA DECODER
Symbol
Applicable Program Areas
Area
Step program areas
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
7
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)
CP1E CPU Unit Instructions Reference Manual(W483)
Mnemonic
Variations
MLPX
@MLPX
Description
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
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.
2 Instructions
Function
Interrupt tasks
OK
Size
1
1
Variable
2-191
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents