Omron CS1G/H-CPUxxH Instructions Manual page 466

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Conversion Instructions
3-12-9 DATA ENCODER: DMPX(077)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operands
Operand Specifications
FInds the location of the first or last ON bit within the source word (or 16-word
range), and writes that value to the specified digit (or byte) in the result word.
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification
Block program areas
OK
OK
S: First Source Word
There can be anywhere from 1 to 32 source words, depending upon the type
of conversion process and number of digits/bytes being converted. The
source words must be in the same data area.
R: Result Word
The locations of the bits that were ON in the source word(s) are written to the
digits/bytes in R starting with the specified first digit/byte.
C: Control Word
The control word specifies whether DMPX(077) will perform a 16-to-4 bit con-
version or an 256-to-8 bit conversion, whether the leftmost or rightmost ON bit
will be encoded, the number of digits or bytes that will be converted, and the
starting digit or byte where the results will be written.
Digit number: 3 2 1 0
Area
CIO Area
Work Area
DMPX(077)
S
S: First source word
R: Result word
R
C
C: Control word
Step program areas
Subroutines
OK
Specifies the first digit/byte to receive converted data.
16-to-4: 0 to 3 (digit 0 to 3)
256-to-8: 0 or 1 (byte 0 or 1)
Number of digits/bytes to be converted
16-to-4: 0 to 3 (1 to 4 digits)
256-to-8: 0 or 1 (1 or 2 bytes)
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)
1: 256-to-8 bits (16-word range to byte)
S
CIO 0000 to CIO 6143
W000 to W511
Section 3-12
DMPX(077)
@DMPX(077)
Not supported
Interrupt tasks
OK
R
C
445

Advertisement

Table of Contents
loading

Table of Contents