Hello Guest it is May 08, 2021, 01:08:19 AM

Author Topic: Macro for mach3  (Read 115 times)

0 Members and 1 Guest are viewing this topic.

Macro for mach3
« 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

Offline TPS

  •  2,123 2,123
    • View Profile
Re: Macro for mach3
« Reply #1 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)
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.