Hello Guest it is March 29, 2024, 01:09:55 AM

Author Topic: Macro for mach3  (Read 590 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
   Sleep(50)
   NotifyPlugins(10201)
Wend 

 
Any help on how and what to do would be appreciated
Thanks

Offline TPS

*
  •  2,501 2,501
    • 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.