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?
CeeBee
 
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: http://www.forum.cncdrive.com/viewtopic.php?f=11&t=101&p=6648&hilit=notepad#p6648

regards
Eric
CraftyCNC: Plugins for UCCNC (and other neat stuff): http://www.craftycnc.com/plugins-for-uccnc/
eabrust
 
Posts: 348
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
Attachments
Capture.JPG
Capture.JPG (23.45 KiB) Viewed 6313 times
CeeBee
 
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:
viewtopic.php?f=14&t=1624&p=12751#p12751
Robertspark
 
Posts: 1892
Joined: Sat Sep 03, 2016 4:27 pm


Return to Macros

Who is online

Users browsing this forum: No registered users and 3 guests