Machsupport Forum
Mach Discussion => Brains Development => Topic started by: podunk on May 28, 2009, 06:23:44 PM
-
Hi All,
I am trying to learn more about scripting and programing but have a long way to go.
My problem is this.
I need to be able to trigger an output for chip vac when my spindle is triggered but still be able to turn it off via a button.
By watching the Brains video I was quickly able to figure out how to make the chip vac come on when my spindle was active. Problem is I can't shut it off via a button while the spindle is going.
I know to most of you guys this is probably remedial level stuff but I am "Brainless" when it comes to this stuff.
Any help would be appreciated.
Thanks
-
Podunk,
You will net to add an AND condition to be able to turn the output OFF with a button.
[Sipindle ON]------[No Op]--------|AND|__________[Output#4]
[Input#5]----------[No Op]--------| |
Something like that, the output 4 will only be active when both spindle and output are active, if you turn either input off, Output 4 will turn off.
Hope that makes sense.
Regards
Fernando