EasyManua.ls Logo

Inovance H3U Series - Page 230

Inovance H3U Series
737 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...
229
4
4 Instructions 4.6.2 Matrix Comparison
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
S1 X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
S2 X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
n X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
D X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
Note: The elements in gray background are supported.
Function
1) The bit patterns of n data entries from head addresses [S1] and [S2] in matrix format are compared
starting from the ([D]+2)th bit to identify the conforming bit. The number of this bit is stored in [D].
2) The matrix comparison ag M8320 determines the comparison rule. When M8320 = ON, same values
are compared; when M8320 = OFF, different values are compared. When the conforming bit is found,
comparison stops and the matrix bit found ag M8323 is set to ON. After the last bits from [S1] and [S2]
are compared, the matrix search end ag M8321 is set to ON, the current number is stored in [D], and
the instruction ends.
If the conforming bit is the last bit, M8321 and M8323 are set to ON.
3) Searching starts from bit 0 when the next round of comparison is initiated or the matrix search start ag
M8322 is set to ON.
4) The value in [D] ranges from 0 to (16n – 1). If [D] is out of range, the pointer error ag M8324 is set to
ON and the instruction is not executed.
Application
0 1 0 1 0 1 0 1 0 1 0 1 0 0 1 0
0 1 0 1 0 1 0 1 0 1 1 1 0 1 0 1
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
1
bit0
bit47
D102
D101
D100
R102
R101
R100
D200
Initial bit for comparison
The initial value of D200 is set to 1, and comparison starts from the third bit (bit 2).
The following results are returned in sequence when M100 switches from OFF to ON:
D200 = 2, the matrix bit found ag M8323 is set to ON, and the matrix search end ag M8321 is set to OFF.
D200 = 37, the matrix bit found ag M8323 is set to ON, and the matrix search end ag M8321 is set to
OFF.
200 = 47, the matrix bit found ag M8323 is set to OFF, and the matrix search end ag M8321 is set to ON.
D200 = 0, the matrix bit found ag M8323 is set to ON, and the matrix search end ag M8321 is set to OFF.
D200 = 1, the matrix bit found ag M8323 is set to ON, and the matrix search end ag M8321 is set to OFF.

Table of Contents

Other manuals for Inovance H3U Series

Related product manuals