I want to trigger a unique boolean GVL "DO_1" using two programs: POU_1 or POU_2, with two different buttons in a visualization Visu_1.
When I press BUTTON_1 I want DO_1 to be TRUE, when I press BUTTON_2 I want DO_1 to be TRUE as well.
The condition is to not use any additional variables, I need DO_1 to be unique.
I want to know if is possible to disable or deactivate POU_2 when I press BUTTON_1 and viceversa, when pressing BUTTON_2 to deactivate POU_1, or something like that.
Actually your explanations are pretty confuse. Isn't that can't be achive with an IF block in the same POU ?
You could either just call or not the desired POU, but it seems to be a total overkill.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello to everyone!
Please help me with the attached project!
I want to trigger a unique boolean GVL "DO_1" using two programs: POU_1 or POU_2, with two different buttons in a visualization Visu_1.
When I press BUTTON_1 I want DO_1 to be TRUE, when I press BUTTON_2 I want DO_1 to be TRUE as well.
The condition is to not use any additional variables, I need DO_1 to be unique.
I want to know if is possible to disable or deactivate POU_2 when I press BUTTON_1 and viceversa, when pressing BUTTON_2 to deactivate POU_1, or something like that.
Thanks!
test.zip [182.25 KiB]
Actually your explanations are pretty confuse. Isn't that can't be achive with an IF block in the same POU ?
You could either just call or not the desired POU, but it seems to be a total overkill.
Yeah, I know that I could be confusing. I need to use 2 POU's.
Originally created by: ph0010421
You need a separate BOOL in each POU and then OR them. Any other way is wrong.
Thanks!
I will use additional vars and a XOR, eventually...