Delta AH500 — 6.13.2 Explanation of Data Processing Instructions

Chapter 6 Applied Instructions 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. n Additional remark: 1. If S 1 + n -1 or D +4 exceeds the device range, the instruction is not executed, SM0 is ON, and the 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-263 Compared Data Result D S 1 Value Value Description data number D10 88 S 2 D0=100 0 D50 4 Number of equal values D11 100 1 Equal D51 1 Data number of the first equal value D12 110 2 D52 8 Data number of the last equal value D13 150 3 D53 7 Data number of the minimum value D14 100 4 Equal Data number of the D54 9 maximum value 9 Data number of the maximum value D15 300 5 D16 100 6 Equal D17 5 7 Minimum D18 100 8 Equal D19 500 9 Maximum