Hello Guest it is December 07, 2024, 07:26:30 PM

Author Topic: Output on one condition off if not  (Read 7847 times)

0 Members and 1 Guest are viewing this topic.

Output on one condition off if not
« on: January 19, 2023, 06:34:34 PM »
Hello im trying to write a brain to activate an output  when a encoder dro and axis dro are the same.  This was simple, but the output then stays active.  I need it to switch off once the encoder dro and axis dro are no longer.  This is my first time using brains, and this has stumped me.  Attached is my sad non working attempt.  Can anyone help me out?

Thanks

Offline TPS

*
  •  2,536 2,536
Re: Output on one condition off if not
« Reply #1 on: January 22, 2023, 06:10:10 AM »
think it is enough if the output is connected directly after the compare, without the And and OR behind it.
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: Output on one condition off if not
« Reply #2 on: January 22, 2023, 09:04:48 AM »
Thats how i originally had it, but the output stays active once the compare is true, and stays active after the compare becomes untrue. 

Offline TPS

*
  •  2,536 2,536
Re: Output on one condition off if not
« Reply #3 on: January 22, 2023, 10:18:56 AM »
I need it to switch off once the encoder dro and axis dro are no longer. 

the encoder dro and axis dro are no longer, not longer what?

for the moment i can not get your off condition, so what should switch off the output exactly?
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: Output on one condition off if not
« Reply #4 on: January 22, 2023, 10:31:32 AM »
When they are no longer equal.  Once the compare A equals B becomes untrue, i need output to turn back off. 

Offline TPS

*
  •  2,536 2,536
Re: Output on one condition off if not
« Reply #5 on: January 22, 2023, 11:30:29 AM »
OK, as mentoined, this should be enough
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: Output on one condition off if not
« Reply #6 on: January 22, 2023, 11:34:24 AM »
That is how i first wrote the brain, and the output is stuck on after  A equals B becomes untrue.   

Offline TPS

*
  •  2,536 2,536
Re: Output on one condition off if not
« Reply #7 on: January 22, 2023, 11:36:04 AM »
this must work, something else maybe doing something with output5 ? macropump or some othe script?
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.

Offline TPS

*
  •  2,536 2,536
Re: Output on one condition off if not
« Reply #8 on: January 22, 2023, 11:37:27 AM »
try an other output, witch is defently not used just for test
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: Output on one condition off if not
« Reply #9 on: January 22, 2023, 11:38:29 AM »
Ill give that a shot.