one gvl - two pou's - silly noob problem

djtaotao
2019-03-20
2019-03-22
  • djtaotao - 2019-03-20

    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]

     
  • dFx

    dFx - 2019-03-21

    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.

     
  • djtaotao - 2019-03-21

    Yeah, I know that I could be confusing. I need to use 2 POU's.

     
  • Anonymous - 2019-03-21

    Originally created by: ph0010421

    You need a separate BOOL in each POU and then OR them. Any other way is wrong.

     
  • djtaotao - 2019-03-22

    Thanks!
    I will use additional vars and a XOR, eventually...

     

Log in to post a comment.