Sign in to follow this  
Followers 0
sdbr

Function block - execution

3 posts in this topic

I'm using simple function block, one input and one output, like in this example:

Untitled.png.2f6184eab2113ba3849fd994c78

Problem I have is how to call function block and use inverted (NOT) value , ie instead 5.01 I need to use NOT (5.01) .

Of course I could create new symbols that are inverted values of actual inputs but i'm trying to avoid that, number of addresses is significant.

Share this post


Link to post
Share on other sites

Change the function block.  Add a second boolean input that is called Invert.  If it is true, it inverts the input if not, it does not.  Or if it always needs to be inverted, just change the FB to invert it all the time.

Share this post


Link to post
Share on other sites

OK, thank you. Then I'll just create two different FBs.

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