Hello Guest it is December 14, 2019, 09:15:27 PM

Author Topic: Free G76 Macro Helping program for Mach3 Turn  (Read 27903 times)

0 Members and 1 Guest are viewing this topic.

Free G76 Macro Helping program for Mach3 Turn
« on: July 02, 2015, 04:00:20 PM »
Hello,

I just have released a beta version of my Mach3 Threading Helper. To actually cut a thread with Mach3 and the G76 macro, you need a couple of parameters, the numer of passes etc. For metrical threads, Mach3 comes with the G76_thread.exe. My application is far more sophisticated: i lets you select a thread from several standards or let you create your own size. The important feature is, that the tolerances are calculated given to standard and size, that it fits. Then you can simulate the cut - means you can try some number of passes to get the increment you need. Finally, the program generates the GCode which you can copy & paste in your file. So far, my threads had a perfect fit. And it's Open Source.

The supported Threading standards in version 0.10:
  • M - Metric in medium (6g/6H) and fine tolerance (4g/4H)
  • G - Withworth Pipe
  • R/Rc - Tapered Withworth Pipe
  • BSW & BSW Withworth
  • UNC, UNF, UNEF
  • M keg - tapered Metric

When supported, you can cut threads with multiple starts, too.

I've also made a throughly improvement of the G76, G77 and G78 macros and fixed the bugs there as far as possible.

The Sourceforge page:
www.sourceforge.net/p/mach3threadinghelper

Try it out and report if you find any bugs ...

Offline derek

*
  •  201 201
    • View Profile
Re: Free G76 Macro Helping program for Mach3 Turn
« Reply #1 on: July 03, 2015, 06:39:19 AM »
With all the crap going on with sourceforge injecting malware into downloads you may want to use a different repository.
Re: Free G76 Macro Helping program for Mach3 Turn
« Reply #2 on: July 03, 2015, 07:03:50 AM »
Thank you for the advice ... but until now I never had any issues with Sourceforge, and I just checked the download with a MAC and it's exactly the one I've uploaded - it hasn't been tampered with.

Offline derek

*
  •  201 201
    • View Profile
Re: Free G76 Macro Helping program for Mach3 Turn
« Reply #3 on: July 03, 2015, 07:46:42 AM »
I would imagine they are targeting more popular downloads. Can't be too careful though.
Re: Free G76 Macro Helping program for Mach3 Turn
« Reply #4 on: July 03, 2015, 09:27:12 AM »
So, just for information:

My application is fully portable, it doesn't need an installer. The *.zip contains the G76 Macro Helper.exe, which needs only the settings.ini in the same folder to run and looks there for the two Help files (EN and DE). So, it's as small and transparent as it gets - most of the 300kb of the archive are the images. And, if I get 100 downloads, that would be a lot. So, there's nothing really to tamper with. And, contrary to the FileZilla project, I never expect to get any money from my project and so I surely doesn't agree to any Adware.

Offline Rimmel

*
  •  161 161
    • View Profile
Re: Free G76 Macro Helping program for Mach3 Turn
« Reply #5 on: August 31, 2015, 10:07:06 AM »
With all the crap going on with sourceforge injecting malware into downloads you may want to use a different repository.
Hello,

I just have released a beta version of my Mach3 Threading Helper. To actually cut a thread with Mach3 and the G76 macro, you need a couple of parameters, the numer of passes etc. For metrical threads, Mach3 comes with the G76_thread.exe. My application is far more sophisticated: i lets you select a thread from several standards or let you create your own size. The important feature is, that the tolerances are calculated given to standard and size, that it fits. Then you can simulate the cut - means you can try some number of passes to get the increment you need. Finally, the program generates the GCode which you can copy & paste in your file. So far, my threads had a perfect fit. And it's Open Source.

The supported Threading standards in version 0.10:
  • M - Metric in medium (6g/6H) and fine tolerance (4g/4H)
  • G - Withworth Pipe
  • R/Rc - Tapered Withworth Pipe
  • BSW & BSW Withworth
  • UNC, UNF, UNEF
  • M keg - tapered Metric

When supported, you can cut threads with multiple starts, too.

I've also made a throughly improvement of the G76, G77 and G78 macros and fixed the bugs there as far as possible.

The Sourceforge page:
www.sourceforge.net/p/mach3threadinghelper

Try it out and report if you find any bugs ...


I am using mach3 turn R3.043.063 and I don't have a m1076 to replace. Also can't make head nor tail of the program - can't get a simple M10x0.75mm thread working :-(

Offline Rimmel

*
  •  161 161
    • View Profile
Re: Free G76 Macro Helping program for Mach3 Turn
« Reply #6 on: August 31, 2015, 10:30:40 AM »
Seems to assume radius mode - when some people work in Diameter mode.
Re: Free G76 Macro Helping program for Mach3 Turn
« Reply #7 on: August 31, 2015, 12:25:23 PM »
Answer to your questions:

I work with version 043.066, where the M1076.m1s file is in the root folder (not in /macros !! )

There is in the menu under Options/Parameter the X-Axis mode switchable between Radius and Diameter mode. (Documentated in the help file)

As for the G-Code header, take what you normally prefer for your work. For example, on my lathe with my tooltable the M10x0,75 program will look like (in radius mode):

Code: [Select]
g18 g21 g40 g90 g94 g80
t0404
s700
f85
m3
G77 r5 x4.953 k0.0 z-20.0
m5
s120
m0
f40
m3
G76 p0.75 r4.953 x4.396 h0.2273 i29.5 k-1.631 z-20.0 l360 q0
m5
m30

This will first bring the diameter down from 10 to 9.9 mm with a normal cutter, then request a tool change, and then cut the M10x0,75 with 6 passes (the first is 0.22 mm deep, which is okay even for a small HSS 60° cutter with a sharp edge. With some other tool you can probably cut it in only two passes ...). But the surrounding lines of code are very different for everyone, depending on the setup of the machine. The purpose of my software is in finding the initial dia (9.9 mm in this case), the depth based on the tolerance (0.2273 mm in radius), and to check the number of passes needed, which gives the depth of the first cut.

In Diameter mode, the two lines will change properly to G77 rXX x9.906 ... and G76 p0.75 r9.906 x8.792 h0.4546 ... that looks okay.

I found a bug, too - the steps for five passes aren't displayed properly, but that doesn't change the output.
Re: Free G76 Macro Helping program for Mach3 Turn
« Reply #8 on: January 03, 2016, 09:58:57 AM »
Because I had to make all the testing alone and I didn't cut that much threads, there were some bugs in v0.10 to fix. If you look closely at the code I've posted above, in the G76 line both the k and z values were negative. But the k value should be positive to have a run-up. That was the biggest bug to fix. Unfortunately, the version 0.11 then wasn't extractable from the zip-file, but that was due to an windows7 bug (if you copy & replace something in win7 into a zip-file, the file gets corrupted). Today, I've uploaded v0.12, and that one should work properly. I've made an M5x1.5 p2 and a M14x1 and in both cases bolt and nut matched perfectly at the first try - awesome.
« Last Edit: January 03, 2016, 10:01:27 AM by stephanbrunker »

Offline RICH

*
  • *
  •  7,380 7,380
    • View Profile
Re: Free G76 Macro Helping program for Mach3 Turn
« Reply #9 on: January 04, 2016, 06:42:03 AM »
Be nice if it was also for imperial units. Some just don't use Metric.

RICH