EasyManua.ls Logo

Omron SYSMAC CV Series - Page 549

Omron SYSMAC CV Series
636 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Appendix AInstruction Set
539
Name, mnemonic, variations,
and symbol
PageOperand data
areas
Function
DATA DECODER
MLPX, jMLPX
(110)
MLPX S Di R
Converts up to four hexadecimal digits in the
source word (S) into decimal values from 0 to
15 and turns ON the corresponding bit(s) in
the result word(s) (R), or converts up to two
8-bit values in the source word (S) into
decimal values from 0 to 256 and turns on the
corresponding bit in sets of 16 result words.
There is one result word or set of 16 result
words for each converted value. Operation is
controlled by Di as follows:
Specifies the first digit to be converted
4-to-16: 0 to 3
8-to-256: 0 or 1
Number of digits to be converted
4-to-16: 0 to 3 (1 to 4 digits)
8-to-256: 0 or 1 (1 or 2 digits)
Process
0: 4-to-16
1: 8-to-256
3 2 1 0 Digit
0
S:
CIO
G
A
T/C
DM
DR
IR
Di:
CIO
G
A
T/C
#
DM
DR
IR
R:
CIO
G
A
DM
226
DATA ENCODER
DMPX, jDMPX
(111)
DMPX SB R Di
Determines the position of the leftmost ON bit
in the source word(s) or set of 16 source
words (starting word: SB) and then turns ON
the corresponding bit(s) in the specified digit of
the result word (R) or outputs the sequential
value of the bit as an 8-bit value to R. One
4-bit or 8-bit value is used for each source
word or set of 16 source words. Operation is
controlled by Di as follows:
Specifies the first digit to receive
converted data
16-to-4: 0 to 3
256-to-8: 0 or 1
Number of digits to be converted
16-to-4: 0 to 3 (1 to 4 digits)
256-to-8: 0 or 1 (1 or 2 digits)
Process
0: 16-to-4
1: 256-to-8
3210 Digit
0
SB:
CIO
G
A
T/C
DM
R:
CIO
G
A
DM
DR
IR
Di:
CIO
G
A
T/C
#
DM
DR
IR
228
7-SEGMENT DECODER
SDEC, jSDEC
(112)
SDEC S Di D
Converts hexadecimal digits from the source
word (S) into 7-segment display data. Results
are placed in consecutive half-words, starting
at the first destination word (D). Di gives digit
and destination details. The rightmost digit
gives the first digit to be converted. The next
digit to the left gives the number of digits to be
converted minus 1. If the third digit is 1, the
first converted data is transferred to left half of
the first destination word. If it is 0, the transfer
is to the right half.
S
D
0 to F
S:
CIO
G
A
T/C
DM
DR
IR
Di:
CIO
G
A
T/C
#
DM
DR
IR
D:
CIO
G
A
DM
231

Table of Contents

Related product manuals