Chapter 6 Applied Instructions 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-248 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 D54 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