Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: topcat58 on January 28, 2021, 01:09:01 PM

Title: Macro for mach3
Post by: topcat58 on January 28, 2021, 01:09:01 PM
Hi I have a lathe running mach3
Using uc400eth motion controller
There is a rigid tapping plugin download for Mach3 for this controller from all that sell
This controller so I’ve downloaded it,but how do I install it or run it ,sorry if I sound thick
But I am baffled how all the download is text :_

'Rigid tapping macro to UC400ETH

SetUserDRO(1200, Param1())   'P parameter = Z end
SetUserDRO(1201, Param2())   'Q parameter = pitch
NotifyPlugins(10200)      'Load parameter
SetUserDRO(1202, 0)         'Start Rigid tapping
While(GetUserDRO(1202) = 0)   'Wait for finish rigid tapping

Any help on how and what to do would be appreciated
Title: Re: Macro for mach3
Post by: TPS on January 29, 2021, 01:06:34 AM
you have to put this code into a macrofile, let's say M300.M1s
this fil Needs to be in C:\Mach3\macros\your Profile Name

usage would be:
M300 P20 Q1.5

where P20 is the length of your thread and Q1.5 the pitch (all in mm)