Hello all,
I'm trying to come up with an elegant solution to check an Array of Values to see if they are greater than zero but less than 15
My Array size is 820, so P_AIN[820]
This is what I'm trying to accomplish.
For i = 1 to 820
Anyone have an elegant way to implement this in RSlogix5000 using structured text or otherwise?
I'm trying to come up with an elegant solution to check an Array of Values to see if they are greater than zero but less than 15
My Array size is 820, so P_AIN[820]
This is what I'm trying to accomplish.
For i = 1 to 820
if P_AIN.FAIL.VAL_MinToUnshelve > 0 and P_AIN.FAIL.VAL_MinToUnshelve <=15 THEN
ALARM_SHELVE_EXPIRY_ALARM = TRUE
Exit For
End if
Next i
ALARM_SHELVE_EXPIRY_ALARM = TRUE
Exit For
End if
Next i
Anyone have an elegant way to implement this in RSlogix5000 using structured text or otherwise?