(A/B Function Block Diagram) Do something only if true

Epy

Lifetime Supporting Member
Join Date
Jul 2012
Location
no
Posts
376
Ironically, I have never done any function block programming in Logix5000 itself, but I have to draw out a program for it.

My question is, what do you use to do something only if true?

I.e. I want to set a value to true if another value is >14, but also it should be set to false if that value is <10. If I simply use a greater than block, my value will get set to false as soon as it drops below 14. How can this be accomplished?

Attached is the equivalent in ladder logic.

Thanks for your help!

Untitled.png
 
Use the LIM comnparison instruction with 14 as the Low Limit and 10 as High Limit, followed by an OTE for B3:0/7.

Also for easier understanding, you could use two comparison instructions in parallel branches: If F8:28 < 10 OR F8:28 > 14 then OTE B3:0/7. This rung logic will turn on B3:0/7 only when F8:28 is less than 10, or f8:28 is greater than 14.
 
Last edited:
Thanks for your reply, but I don't think that's exactly what I want.
Basically:
If input > 14 set bit to true
if input > 10 and input < 14 then keep existing value (do nothing)
If input < 10 set bit to false
 
I think this meets your requirements. It is not a function block, however.

Epy's High Level Program.jpg
 
Last edited:
Thanks very much. I think that works too and I can write that in function block form. Thanks again.
 

Similar Topics

Hi, I have attached herewith one image which our programmer has been used in S7 1500 PLC. Now we need to use the same instructions in S7 1200 PLC...
Replies
4
Views
123
I've been using RSLogix 5000 for some time and have always used the "BNOT" block to inverse a digital signal in FBDs. This can take up a lot of...
Replies
0
Views
2,269
Hi, I want to know if Rologix Version 19 is automatically included Function Block Diagram language except ladder logic. Does it need to buy...
Replies
3
Views
4,109
Hello, I have a Totalizer (TOT) running for some production Data. Every now and then the values are immence I get values like 59999E25. They are...
Replies
5
Views
1,784
while doing Rslogix 5000 project, I suddenly can not edit function block diagram, it says "failed to open the routine, editor is not installed"...
Replies
3
Views
20,557
Back
Top Bottom