Dynomotion

Group: DynoMotion Message: 11793 From: embraced338 Date: 6/26/2015
Subject: Coolant on while in G01

Hi all,


I'm trying to get my head around how I could control various IO when running Gcode.


My primary application is to only have coolant running while the machine is in G01 mode (as so not waste coolant - I'm using alcohol and it's expensive!), and also only have one coolant nozzle (there are 4, opposed by 90 degrees) on at a time - i.e. if the machine is going in the +X direction, coolant nozzle 1 would be active.


How should one achieve something like this?

To my knowledge, the coordinated motion and other programs are run in different threads (I don't really know whether or not this is of concern at all).



Thanks,



Lindsay

Group: DynoMotion Message: 11795 From: Hardy Family Date: 6/27/2015
Subject: Re: Coolant on while in G01

You could run a thread which monitors the current xy move velocity, and use that to determine which of the four ios to turn on. There is some sample c code which shows how to look at the current move direction. Basically, you look at the difference on the channel position field from one iteration to the next. Then, you also need to look at a switch set somewhere, like in a persist var, which gets turned on and off by m8/m9.

Regards,
Sjh

On Jun 26, 2015 11:43 PM, "embraced338@... [DynoMotion]" <DynoMotion@yahoogroups.com> wrote:
 

Hi all,


I'm trying to get my head around how I could control various IO when running Gcode.


My primary application is to only have coolant running while the machine is in G01 mode (as so not waste coolant - I'm using alcohol and it's expensive!), and also only have one coolant nozzle (there are 4, opposed by 90 degrees) on at a time - i.e. if the machine is going in the +X direction, coolant nozzle 1 would be active.


How should one achieve something like this?

To my knowledge, the coordinated motion and other programs are run in different threads (I don't really know whether or not this is of concern at all).



Thanks,



Lindsay