AustralIan said:Help file should read:
Code:IF ([COLOR="Red"]low[/COLOR] <= high AND (value >= low AND value <= high)) OR ([COLOR="red"]low[/COLOR] > high AND (value <= high OR value >= low)) THEN light_1 := 1; ELSE light_1 := 0; END_IF;
Excellent! You've solved this puzzle.
My thoughts on what they may have accidentally done in the Help were not correct. It's just the best I could get my head around at the time to explain what we were looking at. Having revisited the LIM instruction Help in Logix Designer v30, I read this and it fits in perfectly with what you have presented...
LIM Description:
I also went to the v24 LIM instruction Help, which I had not yet done, and discovered that they had described the ST LIM equivalent correctly, earlier in the Help, but the example later in the Help has the error that was originally presented here and that you have now corrected...
There is still one small but important error in the earlier description, which I've pointed out above. The opening parentheses before the first "LowLimit" instance is missing. For clarity, the two incorrect "value" instances in the example should both be "0".
Thanks and well done!
G.