Machsupport Forum

Mach Discussion => Brains Development => Topic started by: Bodini on October 29, 2007, 03:33:51 PM

Title: Need brain condition
Post by: Bodini on October 29, 2007, 03:33:51 PM
I want a brain to:

if gcode is running then -> output5

I tried:

LED804->greater than 0-> output5

but that doesnt work.

Is that how you get the signal from an led, like in VB? (0 for off, 1 for on?)

Basically, the condition I'm looking for is: if gcode is running, then do it... if you're jogging by hand, dont do it.... which is why i didnt just link it to blended velocity, which did work as a test.

thanks,

Nick

Title: Re: Need brain condition
Post by: Bodini on October 29, 2007, 04:45:33 PM
Dont need the greater than zero part... set it to 'no operation'.

Title: Re: Need brain condition
Post by: Hood on October 29, 2007, 04:45:50 PM
All you do is choose to do nothing, ie pass through the signal and it should work.
Hood
Title: Re: Need brain condition
Post by: Bodini on October 29, 2007, 04:47:59 PM
yup, bout 20 seconds ahead of ya. ha!  :P  thanks hood.
Title: Re: Need brain condition
Post by: Hood on October 29, 2007, 04:48:29 PM
:)