sdbr Posted May 25, 2020 Report Posted May 25, 2020 I'm using simple function block, one input and one output, like in this example: 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.
Michael Walsh Posted May 26, 2020 Report Posted May 26, 2020 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.
sdbr Posted May 27, 2020 Author Report Posted May 27, 2020 OK, thank you. Then I'll just create two different FBs.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now