If you only have STL, then post exactly how the data is formatted (what addresses). Then I am sure that someone here on the forum (LD maybe ?) can whip up some code for you to paste into you project.
I got help from a workmate,
he did it in SCL..
i havnt the in/outputs here, but this is the code
Code:
// check value
wrong_value := FALSE;
FOR i := 1 TO 10 BY 1 DO
FOR j := 1 TO 10 BY 1 DO
IF test[i].prov[j] >= value_min AND test[i].prov[j] <= value_max THEN
wrong_value := TRUE;
END_IF;
END_FOR;
END_FOR;