Logix 5000 Limit help

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:
LGX_DSGR_V30_LIM_Table.bmp


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...

LGXD5K_LIM_ST_Examples.bmp


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.
 
What?? Rockwell need to get rid of the LIM instruction and pretend it never happened.

When HighLimit = LowLimit in your new screenshot, the logic is always true.

For an instruction that you cannot be sure what it does without reading the documentation...
 
A balls Rockwell. You really stuffed this one up alright!

Yes I see it now. I was concentrating on your "low" instead of "value" correction and I didn't notice they still left the "=" comparison in the second parenthesized expressions in the Help...

Should be just "greater than" like this...

AustralIan said:
Code:
IF (low <= high AND (value >= low AND value <= high)) OR
    (low [COLOR="Red"]>[/COLOR] high AND (value <= high OR value >= low)) THEN
    light_1 := 1;
ELSE
    light_1 := 0;
END_IF;

Not "greater than or equal to" like this...

LGXD5K_LIM_ST_Examples_01.bmp


Bless your eyes!

G.
 
Now I'm going blind...another error I see...but who is correct?...

AustralIan said:
Code:
IF (low <= high AND (value >= low AND value <= high)) OR
    (low > high AND (value <= [COLOR="Red"]high[/COLOR] OR value >= [COLOR="Red"]low[/COLOR])) THEN
    light_1 := 1;
ELSE
    light_1 := 0;
END_IF;

...or...

LGXD5K_LIM_ST_Examples_02.bmp


Going for lunch!
 
Last edited:

Similar Topics

Hi folks, in the alarm manager of Rslogix 5000, the tag-based alarm has been created. But when I tried to change the condition, it was found the...
Replies
2
Views
157
I am completely stuck on building a ladder program that requires a start button to be pressed 3 times to turn on motor 1. Then motor 2 starts...
Replies
20
Views
583
Is there a way to use the FAL instruction to do +=2 instead of +=1? I have an array that is organized with alternating "data" and "flag" values...
Replies
5
Views
127
I have an AOI with revision notes. Someone entered the last note into the description instead of the notes. I cannot just click into the revision...
Replies
4
Views
152
Back
Top Bottom