Hi krsykes,
UCCNC is more fully capable at macro programming than Mach3. And you also get to choose between using C# or VB as your language.
It might seem daunting at first, but it won't be hard to convert your existing macro for use w/ UCCNC.
As a starting point, I can offer you to take a look at this lathe tool-changer macro here:
http://www.forum.cncdrive.com/viewtopic.php?f=20&t=3299#p24264. It should give you a rough starting point and some of the differences in code calls.
To require the least amount of work, since Mach3 macros are 'VB', I recommend you to keep it in VB. To do so, the first line of your macro should be
- Code: Select all
#VB
From there, if you look at the example, where ever you see code(" gcode here") from your mach3 macro, you'll replace it w/ the UCCNC version of call:
- Code: Select all
exec.code("gcode here")
Mach3's 'while ismoving' becomes 'while exec.ismoving' in UCCNC, etc (you'll start to see a pattern of calling 'exec.' in front of most calls that directly transfer from Mach3, or are close to it.
You will need to handle pulling DRO values (and putting DRO values in) differently, both the DRO numbers are far different, and the calls are different. Take a look in the UCCNC help files for the DRO,button, LED number lists.
Also look at the signature line of the user 'Robertspark' on the forum, he's put together an excellent 'macro guide' that has most anything you need to know.
Start reading some of the reference materials, and making some mods to your macro, and we'll help as we can.
regards
Eric