EasyManua.ls Logo

Delta AH500 - Chapter 10 DeviceNet Communication Module AH10 DNET

Delta AH500
749 pages
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...
Chapter 6 Applied Instructions
6-195
Before the instruction
is executed
After the instruction
i
s executed
1 1 1 1 1 1 1 1 1 1
0 0 0 0
1 1
1 1 1 1 1 1 1 1 1 1
0 0 0 0
1 1
b0
b15
Y0
Y1
Y2
1 1 1 1 1 1 1 1 1 1
0 0 0 0
1 1
Y10
Y11
Y12
0 0 0 1 0 0 1 0 0 0
1 1 0 1
0 0
0 0 0 1 0 0 1 0 0 0
1 1 0 1
0 0
b0
b15
0 0 0 1 0 0 1 0 0 0
1 1 0 1
0 0
S1
S2
Y20
Y21
Y22
0 0 0 1 0 0 1 0 0 0
0 0 0 0
0 0
0 0 0 1 0 0 1 0 0 0
0 0 0 0
0 0
b0
b15
0 0 0 1 0 0 1 0 0 0
0 0 0 0
0 0
D
Additional remark:
1. If S
1
+n-1, S
2
+n-1, or D+n-1 exceeds the device range, the instruction is not executed, SM0 is
ON, and the error code in SR0 is 16#2003.
2. If n is less than 1, or if n is larger than 256, the instruction is not executed, SM0 is ON, and the
error code in SR0 is 16#200B.
3. Explanation of matrix instructions:
A matrix is composed of more than one 16-bit register. The number of registers in a
matrix is the length of the array n. There are 16×n bits in a matrix, and the matrix
operation is performed on one bit at a time.
The matrix instruction takes the 16×n bits in a matrix as a string of bits, rather than takes
them as values. The matrix operation is performed on one specified bit.
The matrix instruction mainly processes the one-to-many status or the many-to-many
status, such as the moving, the copying, the comparing, and the searching. It is a handy
and important applied instruction.
When the matrix instruction is executed, users need a 16-bit register to specify a certain
bit among the 16n bits in the matrix for the operation. The 16-bit register is called the
pointer, and is specified by users. The value in the register is within the range between 0
and 16n-1, and corresponds to the bit within the range between b0 and b16n-1.
The shift of the specified data, or the rotation of the specified data can be involved in the
matrix operation. Besides, the bit number decreases from the left to the right, as
illustrated below.
1 1 1 1 1 1 1 1 1 1
0 0 0 0
1 1
1 1 1 1 1 1 1 1 1 1
0 0 0 0
1 1
1 1
0
1
0 0 0 0 0 00 0
1 1
0 0
1 1
0
1
0 0 0 0 0 00 0
1 1
0 0
b0
b16
b32
b31
b15
b47
Width: 16 bits
Left
Right
Length: n
Y0
Y1
Y2
Mn-1 b16n-1
1 1 1 1 1 1 1 1 1 1
0 0 0 0
1 1
The width of the matrix (C) is 16 bits.
Pr represents the pointer. When the value in Pr is 15, b15 is specified.
Example: The following matrix is composed of the three 16-bit devices Y0, Y1, and Y2.
The data in Y0 is 16#AAAA, the data in Y1 is 16#5555, and the data in Y2 is
16#AAFF.

Table of Contents

Other manuals for Delta AH500

Related product manuals