Limit Instruction

Prayder

Lifetime Supporting Member
Join Date
Jun 2014
Location
Arkansas
Posts
254
If I am using a LIM instruction and the low limit is 10 and the high limit is 20 and the actual tested value is either 10 or 20 does the limit become true or is it the values BETWEEN 10 and 20?
 
Its Logix Designer actually. We are looking at values and wanting to determine what something is based off the scp instruction we have. So the LIM we use has the lower and upper value and I am trying to find out if those values are included within the window of the Limit instruction.
 
the simple answer to your question:

if your test value is ON THE FENCE (equal to the HIGH value or equal to the LOW value) then the LIM will be TRUE ...

as expected, any value BETWEEN the HIGH and the LOW LIMITS will also be TRUE ...

going further:

suppose that your HIGH LIMIT is 10 ... and the LOW LIMIT is 20 ... (this is what I personally call a "left-handed" LIMIT) ...

in that case the rule for values BETWEEN the HIGH and the LOW LIMITS is "reversed" ... specifically, 15 (between) would be FALSE - and 25 (outside) would be TRUE ...

so - that raises the question: for a "left handed" LIMIT does the "ON THE FENCE" rule get "reversed" too? ... nope ... once again, if your test value is ON THE FENCE (either 10 or 20 in this example) then the LIM instruction will still be evaluated as TRUE ...

going even further:

in some cases a programmer will use VARIABLES for the HIGH and the LOW entries ... that's OK - but you have to be extremely careful ... suppose that the value in the HIGH entry suddenly becomes "shifted" and becomes LOWER than the LOW LIMIT value ... (or vice versa) ... oops! ... suddenly the LIMIT instruction has become "left handed" - and all of the conditions that you intended to be FALSE are now evaluated as TRUE ...

in SOME installations this could be an extremely hazardous situation ...
 
Last edited:
If the low limit is = or > than 10 and the high limit = or < 20 then it's true.

This instruction can be used the other way around having the low limit higher than the high limit.

i.e. low limit 20 and high limit 10, this would then evaluate as low limit >20 and high limit <10 the instruction would be true.

I hope this makes sense, a full explanation can be found in instruction reference manuals.

Steve
 

Similar Topics

I have a CLX L61 and I'm trying to read from and write to a Micrologix 1100. I'm attempting to read 200 REAL elements but I'm receiving an error...
Replies
2
Views
1,461
Guy's I am doing some rs logix 500 programming in a slc 5/04 and i have to use a limit instruction on about 20 rungs. Same instruction and same...
Replies
23
Views
9,037
I know this instuction keeps a varaible within limits. EX. 5psi-35psi. My question is how do you put the valve into the interger. Okay I have a...
Replies
5
Views
2,813
Hello, I have a motor that we are sending a RPM Speed Output from 0-100% to the VFD. However, the Motor HP needs to be limited to 6000 HP and the...
Replies
3
Views
91
Hello, I have a quick question. I have been using scripts to change the color of buttons. The reason, I am usually using multiple hmiruntime.tags...
Replies
1
Views
106
Back
Top Bottom