Dmpx - Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual

Table of Contents

Advertisement

3. Instructions

DMPX

Instruction
DATA ENCODER
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
S
First source word
R
Result word
C
Control word
16-to-4 bit conversion
S: First Source Word
S: 1st digit of digits to be encoded
S+1: 2nd digit of digits to be encoded
S+2: 3rd digit of digits to be encoded
S+3: 4th digit of digits to be encoded
C: Control Word
15
12
11
8
C
0
Bit to encode
0: Leftmost bit (highest bit address)
1: Rightmost bit (lowest bit address)
Conversion process
0: 16-to-4 bits (word to digit)
394
Mnemonic
Variations
DMPX
@DMPX
Block program areas
Step program areas
OK
OK
Description
7
4
3
0
l
n
Specifies the first digit/byte to receive converted data.
0 to 3 (digit 0 to 3)
Number of digits/bytes to be converted
0 to 3 (1 to 4 digits)
Function
code
FInds the location of the first or last ON bit within
the source word with 16-to-4 conversion (or 256-
077
to-8 conversion), and writes that value to the spec-
ified digit (or byte) in the result word.
DMPX
DMPX(077)
S: First source word
S
R: Result word
R
C: Control word
C
Subroutines
Interrupt tasks
OK
Data type
UINT
UINT
UINT
R: Result Word
15
12
11
R
Digit 3
Digit 2
The results of encoding of S to S+3 are
stored from the starting digit going left
(returns to digit 0 after digit 3).
Note The source words must be in the same data
area.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SFC action or
transition programs
OK
OK
Size
Variable
1
1
8
7
4
3
0
Digit 1
Digit 0

Advertisement

Table of Contents
loading

Table of Contents