beautypg.com

Mlpx, Applicable program areas operands, 2 instructions – Omron SYSMAC CP CP1E-N@@D@-@ User Manual

Page 227: To-16 bit decoder c: control word, S: source word r: first result word

background image

2-191

2 Instructions

CP1E CPU Unit Instructions Reference Manual(W483)

Con

v

e

rs

ion I

n

stru

ctio

ns

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

11

12

15

Digit 1

Digit 0

0

3

4

7

Digits from the starting digit going left are
decoded
(Returns to digit 3 after digit 0)

C

0

8

11

12

15

l

n

0

3

4

7

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)

This manual is related to the following products: