Hello Guest it is December 05, 2024, 11:48:12 AM

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

0 Members and 1 Guest are viewing this topic.

Offline Graham Waterworth

*
  • *
  •  2,746 2,746
  • Yorkshire Dales, England
Re: Output on one condition off if not
« Reply #10 on: January 22, 2023, 07:50:34 PM »
Outputs are latched under normal control so I would have thought Brains did the same.  I could be wrong as I do not use Brains much.
Without engineers the world stops
Re: Output on one condition off if not
« Reply #11 on: January 22, 2023, 07:59:09 PM »
I take it latched means once turned on, it also needs turned off, because that seems fo be the issue i have ?

Offline Graham Waterworth

*
  • *
  •  2,746 2,746
  • Yorkshire Dales, England
Re: Output on one condition off if not
« Reply #12 on: January 23, 2023, 05:26:24 PM »
Latched is locked into a fixed state until forced to change.  So my guess is you need to toggle the state in the brain or force a state to make sure you have the state you need.

Without engineers the world stops
Re: Output on one condition off if not
« Reply #13 on: January 23, 2023, 05:29:50 PM »
Thats what i figured, and also what im having a hard time doing.  I will keep working at it.  I wrote some that i thought would work but they did not 🤔. 

Offline Graham Waterworth

*
  • *
  •  2,746 2,746
  • Yorkshire Dales, England
Re: Output on one condition off if not
« Reply #14 on: January 23, 2023, 05:52:11 PM »
I am not an expert at Brains, not needed to use them much but this is what I think should work.

« Last Edit: January 23, 2023, 06:23:52 PM by Graham Waterworth »
Without engineers the world stops
Re: Output on one condition off if not
« Reply #15 on: January 23, 2023, 07:11:52 PM »
I tried one similar and it seemed to only use the greater than or less than condition, but ill give it another shot and see what happens, thanks for the suggestion.
Re: Output on one condition off if not
« Reply #16 on: January 29, 2023, 04:26:18 PM »
I gave that a try, still no luck.  I would think such a small task would be simple.  Not sure what im missing. 

Offline Graham Waterworth

*
  • *
  •  2,746 2,746
  • Yorkshire Dales, England
Re: Output on one condition off if not
« Reply #17 on: January 29, 2023, 09:03:18 PM »
It works for me, try my file.

Without engineers the world stops
Re: Output on one condition off if not
« Reply #18 on: January 30, 2023, 11:26:39 AM »
i tried yours, but you used 143 encoder count 3.  I used 170 encoder count 0 I believe.
That was the dro input number I found to correspond with the z axis DRO in the mach 3 settings tab.   The brain I built is identical to yours other than that.  The less than or greater than statements work fine as i toggle the DRO above or below the Z position, but when the encoder count, and z position match, I do not get the Encoder Count = Z position to work.  Where in mach 3 does 143 encoder count 3 correspond to?