To make a testing device recently, you need to know the maximum and minimum data in an array of any size. If the number of elements in the array is small, you can use the ladder diagram to compare one by one, but if the number of elements is large, this method is more troublesome. , So I developed a standard FB block in SCL language as follows, if you need specific code, you can add me qq584472557
This block is small and has good reuse performance. Please contact me.