Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: makcnc on January 07, 2015, 02:39:07 PM

Title: how to trigger action by reading g function
Post by: makcnc on January 07, 2015, 02:39:07 PM
hi all
i hope to find an answer but may be the question is wrong , i would like to keep the spindle on while the last g function is g1 and turn it off while the last g function is g0 is it possible to make mach3 to read the g-code and identify the functions in it and trigger actions by it????????
please help
 :o
Title: Re: how to trigger action by reading g function
Post by: TPS on January 07, 2015, 03:49:35 PM
hi,
hi all
i hope to find an answer but may be the question is wrong , i would like to keep the spindle on while the last g function is g1 and turn it off while the last g function is g0 is it possible to make mach3 to read the g-code and identify the functions in it and trigger actions by it????????
please help
 :o

put a M5 between the last G1 and the first  G0, done.
Title: Re: how to trigger action by reading g function
Post by: makcnc on January 07, 2015, 04:39:14 PM
pls explain more that i need to learn
Title: Re: how to trigger action by reading g function
Post by: makcnc on January 07, 2015, 04:41:34 PM
and how to do it by adding a button or macro
that i need to do it so many times and not to do it manually
Title: Re: how to trigger action by reading g function
Post by: TPS on January 08, 2015, 07:24:56 AM
normaly your cam software is doing that for you.
for the moment i do not understand for what you
want to use this.

Thomas
Title: Re: how to trigger action by reading g function
Post by: makcnc on January 08, 2015, 01:22:45 PM
i;m warking on a new application acts like plasma so tourch on when cutting the drawing and tourch off while getting safe z up/dowen and jug movement .
if you please refer to a cam softwaer that makes this ( i;m warking with artcam if it makes that please refer )
and it's important to do this by mach3 user's interface
Title: Re: how to trigger action by reading g function
Post by: BR549 on January 08, 2015, 02:41:36 PM
That is basically HOW Torchmate operates. In G0 mode it is torch OFF and everything else is Torch ON.  No real advantage over doing it with M3/5 through the CAM. Does make it harder to read the code from the operators perspective.

What you are looking to do would HAVE to be done through a plugin or internal to Mach3.

To do it from CAM . ALL cams tend to operate that way. 
Title: Re: how to trigger action by reading g function
Post by: makcnc on January 08, 2015, 02:45:43 PM
could it be made by macro and pls refer to the plug in thead if it exists
Title: Re: how to trigger action by reading g function
Post by: BR549 on January 08, 2015, 03:06:26 PM
You would have to create a new PLugin to do it this way as there are NO current plugins to do this.

(;-) TP