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

I recently did a program conversion from logix 500 to studio 5000 and when machine runs it depends on two ton instructions to keep the machine in...
Replies
17
Views
567
Hello, I am trying to read a barcode scanner input using a cognex dataman 280 barcode reader, store it another string, the compare with another...
Replies
1
Views
106
Hello. Why is my RSLogix 5000 start in grace period mode, even though I have a valid license? I also think I have a decently recent FT Activation...
Replies
3
Views
194
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
207
Back
Top Bottom