Macro language reference and conversion of MACH3

This is where you talk about Macros, show examples of your macro scripting and SHARE handy segments of script code as examples.

Macro language reference and conversion of MACH3

Postby CeeBee » Thu Jan 16, 2020 11:49 pm

Hey All

Long time mach user, and considering jumping to uccnc instead of mach4 when i update my machines.

I have several "complex" scripts that handle homing of all 5 axis and probing the tool in one shot, then setting my fixture offsets, and of course all of these are all reliant on several offsets having being programmed by yet again other macros. SO my transition would be creating all new screens with macros in them then converting the whole lot.

I do quite a bit of programming in c#, python in another arena so not to concerned about the transition, but it would be nice if there is any compatibility between the macro languages here and from mach3, from the bit i read it looks a bit closer to c# than vb?

does it have a dll i can drag into VS to use intellisense?
Posts: 2
Joined: Thu Jan 16, 2020 11:39 pm

Re: Macro language reference and conversion of MACH3

Postby eabrust » Fri Jan 17, 2020 2:48 am

Hi CeeBee,

I also transitioned from Mach3 to UCCNC (instead of M4). Based on what you said you do for programming, I think you'll like UCCNC. Both Macros and Plugins can be written in either C# or VB. This makes transitioning old Mach3 cypress/vb code to UCCNC less painful than trying to make it work in Mach4.

If you download and play with UCCNC demo, you'll find plugin templates in both VB and C#. Once you reference UCCNC's 'plugininterface.dll' into a project, you can then use intellisense also (for plugin creation).

Macro writing is a little more hands on (not done in visual studio, no intellisense), however Robertspark has created a notepad++ addon that has most of the functions/codes built into it. Found it:

CraftyCNC: Plugins for UCCNC (and other neat stuff):
Posts: 167
Joined: Fri Sep 16, 2016 2:32 am
Location: Near Shirland IL, USA

Re: Macro language reference and conversion of MACH3

Postby CeeBee » Fri Jan 17, 2020 3:12 am

Thanks downloaded it, found a c# wrapper for uc100 in the API folder. looks interesting. I have a few jobs that need cutting then Ill poke around with the demo.
Thanks for the reply. EDIT: The notepad++ addin is helpful too , TY
Capture.JPG (23.45 KiB) Viewed 1429 times
Posts: 2
Joined: Thu Jan 16, 2020 11:39 pm

Re: Macro language reference and conversion of MACH3

Postby Robertspark » Fri Jan 17, 2020 9:28 am

I probably need to update the notepad++ addin.

There is a macro manual below in my signature, but its in need of a little update :roll: (waiting for the next UCCNC development release as if I do it to the current one, I'll put money the next one will be out shortly after than.... or that is what I keep telling myself).

there is also this Gcode editor which can aide in writing macros (I've not used it .... too use to notepad++... try it one day :lol:
Einstein ― “If you can't explain it to a six year old, you don't understand it yourself”
...working my way through the 1000+ ways things don't work to find the one that does
UC400eth, UC300eth, UCCNC v1.2110, Neuron Lite
UCCNC v1.2110 Macro Manual
Posts: 1667
Joined: Sat Sep 03, 2016 4:27 pm
Location: Nr Liverpool, England

Return to Macros

Who is online

Users browsing this forum: No registered users and 3 guests