Hi to everyone.
I hope you are well.
I wish to know some pros and cons of having lines of code written in a macro.
Is this something obvious to do? Should one avoid it and if yes why?
Some where I ve read that one should keep macros as short as possible, if yes why?
Should one make time delays when editing macro files, or are delays likely to cause problems?
I am more concerned on editing the M3 macro file. Is it true that the M3,4 and 5 have higher priorities in mach 3 and work somewhat different as in if seen at a low level?
Can someone point me some general guidelines when macros are edited.
Thank you all in advance.
Dim
Mach 3 macros help
-
- 4.5 Star Elite Contributing Member
- Posts: 1824
- Joined: Mon Jun 12, 2017 6:43 pm
Re: Mach 3 macros help
what do you want to do?
macros (miscellaneous / m-codes) are just a way that CNC works
some m codes have special functions and tasks.
M3 CW spindle, M4 CCW spindle, M5 spindle off
some macros are required before other macros work
M3 before M11 (in mach3)..... M3 before M10 / m63 in uccnc / mach4
mach3 is just 1 of many CNC motion control softwares..... suggest you look about before shelling out 175usd on something which is no longer developed or supported by the developer.... YMMV
macros (miscellaneous / m-codes) are just a way that CNC works
some m codes have special functions and tasks.
M3 CW spindle, M4 CCW spindle, M5 spindle off
some macros are required before other macros work
M3 before M11 (in mach3)..... M3 before M10 / m63 in uccnc / mach4
mach3 is just 1 of many CNC motion control softwares..... suggest you look about before shelling out 175usd on something which is no longer developed or supported by the developer.... YMMV
-
- 1.5 Star Member
- Posts: 37
- Joined: Wed Jul 29, 2020 10:42 am
Re: Mach 3 macros help
Hi,
Thanks for your reply.
I already have a system running. And for long time I have been using the M3 macro as a dirty way of running G31, set my piece height, turn my torch on and set my cut height, just made procedure that works for me (and yes, I have no idea how to edit or even understand the post processor).
I ve had this setup for years... but I still have a issue that
keeps haunting me, that sometimes (at super random), the torch does not respect the cut height and goes 40 or 50mm more.
I just wanted to dig a bit deeper into what actually happens when you include lines of code into a marco file... especially the M3 file.
Regards
Dim
Thanks for your reply.
I already have a system running. And for long time I have been using the M3 macro as a dirty way of running G31, set my piece height, turn my torch on and set my cut height, just made procedure that works for me (and yes, I have no idea how to edit or even understand the post processor).
I ve had this setup for years... but I still have a issue that
keeps haunting me, that sometimes (at super random), the torch does not respect the cut height and goes 40 or 50mm more.
I just wanted to dig a bit deeper into what actually happens when you include lines of code into a marco file... especially the M3 file.
Regards
Dim
-
- 4.5 Star Elite Contributing Member
- Posts: 1824
- Joined: Mon Jun 12, 2017 6:43 pm
Re: Mach 3 macros help
they will just get executed in sequential order unless you have conditional statements within the macro
what exactly do you want to do as someone may be able to help and write the code for you
what exactly do you want to do as someone may be able to help and write the code for you
-
- 1.5 Star Member
- Posts: 37
- Joined: Wed Jul 29, 2020 10:42 am
Re: Mach 3 macros help
Hi Robert,
I thank you very much for the help. I was more fishing for some knowledge for all you guru people...
Regards
Dim
I thank you very much for the help. I was more fishing for some knowledge for all you guru people...
Regards
Dim
-
- 4.5 Star Elite Contributing Member
- Posts: 1824
- Joined: Mon Jun 12, 2017 6:43 pm
Re: Mach 3 macros help
Mach3 macros work on a variant of basic (Cypress)
Below are some links to the manuals + info to create all manor of macros for Mach3.
https://www.machsupport.com/wp-content/ ... og_Ref.pdf
https://www.machsupport.com/wp-content/ ... mmands.pdf
http://www.machsupport.com/forum/index. ... tach=27839
Below are some links to the manuals + info to create all manor of macros for Mach3.
https://www.machsupport.com/wp-content/ ... og_Ref.pdf
https://www.machsupport.com/wp-content/ ... mmands.pdf
http://www.machsupport.com/forum/index. ... tach=27839