Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: Imio on March 29, 2016, 06:37:25 AM

Title: Macro for extension G-code
Post by: Imio on March 29, 2016, 06:37:25 AM
Hi,
There are some Gcode commands that Mach3 can't understand, eg: G68, G69, G72. I have to write a software to translate it to M-codes that Mach3 can understand by Macro (writen by me)
Is there any macro/plugin method for Mach3 to directly understand those Gcodes (G68, G69...)?
(I'm sorry for my bad English)
thanks.
Title: Re: Macro for extension G-code
Post by: Tweakie.CNC on March 29, 2016, 10:28:51 AM
I don't know about G72 but Mach3 understands the Gcodes G68 & G69 just fine.

Tweakie.
Title: Re: Macro for extension G-code
Post by: Imio on March 29, 2016, 11:34:26 AM
I mean that how we can define some Gcodes that aren't known by Mach3 (not Mcode)
Title: Re: Macro for extension G-code
Post by: Tweakie.CNC on March 29, 2016, 11:45:35 AM
It may be helpful if you could explain the reason why you need to do this.

For example, why would you want Mach3 to understand G72 ?

Tweakie.
Title: Re: Macro for extension G-code
Post by: Imio on March 29, 2016, 12:11:16 PM
I'm using Mach3 to control an old CNC turret puch. There are some Gcode commands for turret puch in .tap file that Mach3 cannot understand (eg: G66I115.J180.P-20.Q-20.D0T256C315) . So I had to write a software to translate these commands to a series of base code (eg: G0 x y, M500) and save to another .tap file. The translated file then can run by mach3
Title: Re: Macro for extension G-code
Post by: RICH on March 29, 2016, 07:09:46 PM
Different software controllers have similar but not exactly the same, some additional codes and some less gcode codes, AND like a language the dillect can be slightly different for commands. Mach is Mach and others are others. So it was done and so it is. That's just the way things are!

RICH