Hello Guest it is March 29, 2024, 11:46:04 AM

Author Topic: how to trigger action by reading g function  (Read 4514 times)

0 Members and 1 Guest are viewing this topic.

how to trigger action by reading g function
« 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

Offline TPS

*
  •  2,501 2,501
    • View Profile
Re: how to trigger action by reading g function
« Reply #1 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.
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: how to trigger action by reading g function
« Reply #2 on: January 07, 2015, 04:39:14 PM »
pls explain more that i need to learn
Re: how to trigger action by reading g function
« Reply #3 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

Offline TPS

*
  •  2,501 2,501
    • View Profile
Re: how to trigger action by reading g function
« Reply #4 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
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: how to trigger action by reading g function
« Reply #5 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

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: how to trigger action by reading g function
« Reply #6 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. 
Re: how to trigger action by reading g function
« Reply #7 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

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: how to trigger action by reading g function
« Reply #8 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