Delta AH500 Programming Manual page 430

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH 5 00 Pr ogr am m ing Ma n ua l
Example:
1.
When X0.0 is ON, the values in D10~D19 are compared with the value in D0, and the
comparison results are stored in D50~D54. When the equal value does not exist, the values in
D50~D52 are 0.
2.
The data number of the minimum value is stored in D53, and the data number of the maximum
value is stored in D54. If there is more than one minimum value or maximum value, the data
number which is bigger is stored.
S
Value
1
D10
88
D11 100
D12 110
D13 150
n
D14 100
D15 300
D16 100
D17
5
D18 100
D19 500
Additional remark:
1.
If S
+n-1 or D+4 exceeds the device range, the instruction is not executed, SM0 is ON, and the
1
error code in SR0 is 16#2003.
2.
If the operand n used in the 16-bit instruction is less than 1 or larger than 256, the instruction is
not executed, SM0 is ON, and the error code in SR0 is 16#200B.
3.
If the operand n used in the 32-bit instruction is less than 1 or larger than 128, the instruction is
not executed, SM0 is ON, and the error code in SR0 is 16#200B.
4.
If the operand D used during the execution of the 16-bit instruction is declared in ISPSoft, the
data type will be ARRAY [5] of WORD/INT.
5.
If the operand D used during the execution of the 32-bit instruction is declared in ISPSoft, the
data type will be ARRAY [5] of DWORD/DINT.
6 - 2 6 2
Compared
Data
Result
data
number
0
1
Equal
2
3
S
2
D0=100
4
Equal
5
6
Equal
7
Minimum
8
Equal
9
Maximum
D
Value
Description
D50
4
Number of equal values
Data number of the first
D51
1
equal value
Data number of the last
D52
8
equal value
Data number of the
D53
7
minimum value
Data number of the
D54
9
maximum value

Advertisement

Table of Contents
loading

Table of Contents