Sign in to follow this  
Followers 0
slcman

BR bit

2 posts in this topic

Hi all, what is the purpose of BR bit in status bit. I have program who using SAVE instruction. I see in help file SAVE instruction put RLO in BR (bit register). How do you use it in your code? thanks

Share this post


Link to post
Share on other sites
Using it very simple indeed. 1. When writing a Function (FC) or FunctionBlock (FB) SAVE instruction at the end of the block, for example: A #Some_Variable // copy Some_Variable value to a BR bit SAVE 2. When calling this FC or FB, do it in FBD language. You will see ENO output of this block. This is the signal, containing your saved BR You can feed this output to any other BOOL input (another FC or FB, memory, etc.) Best Regards!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0