Not exactly a macro, but I would like CM to check a directory for an executable file that has the same name as the letters for current Gcode instruction, passing the arguments to the executable.
Once the executable has finished executing, then send the instruction to the machine.
This could be used to contextually run utility programs to do a variety of useful things… such as turn a light on to say it’s okay to change the tool:)
Hasn’t a version of you last point been suggested before where CM could even just flash a warning after comparing the global coordinates versus the work coordinates and project travel extents. A soft warning saying that the file exceeds the work envelope would be a nice feature.
I would like Macros to be usable as variables. List the variables in the beginning of the program or a separate page. #100 = 24 #101=12 and so on.
The program would be edited to look like.
G01 X#100 Y-#101
This would allow for one program to be used for various sizes of the same parts. or to create repeatable patterns by having math functions in the program. G01 X(#100+#103) or building macros #100=#100+10
This can also be used for thicker or thinner stock to add or remove passes.
Maybe not a macro, but I would like temporary offsets (G92) so I could use my laser engraver without having to rezero my WCS.
For macros, I would like one that I can use in conjunction with the above offset to turn laser mode $32 off and on.
I am using cncjs, which has some limitations but I can put gcode in the beginning of my laser nc files to turn laser lode on and add a G92 offset. And then at the end of the file, it cancels the offset. Can CM pass GRBL commands (ie $32=1) to the controller from within an nc file?
We knew it was coming, unfortunately we just don’t know when??? As I flip between tabs on my browser looking at Aliexpress G-Penny spindles and C3D shop/community pages seeing if it’s mentioned anywhere… LOL!!!
I’m not in the know, but a spindle mount is a spindle mount, and the controller is common to all machines, so no reason why the future spindle could not be mounted on a non-Pro machine.
I fully agree with @nwallace and @Julien on pretty much every point they stated (and in the order of importance of their statements.)
Strong +1s all the way round
To add along with Julien’s notes and others, here are some macros I would love:
Probe conductive materials directly
Probe holes in a material and use that as an XY origin
Work offsets will be wonderful!
I fully agree with Julien’s last post, running an air cut of the outside of a job might be helpful in ensuring no issues with clamps.
Depending on fancy you want to get, macros to face material would be nice. Just input the size of the material and the desired WOC and DOC and CPT and off it goes.
I wish so much I could use macro variable programming on my shapeoko! This is an example of a program I wrote for a job at my day job to be able to adjust rpm, chipload and depth of cut for a tool so we could adjust on the fly at the machine. I imagine grbl is far from being able to accomplish this but man does it make it nice! It is a WHILE DO loop that will essentially loop over and over until a condition is met.
What I would love to see is a fully open macro tab listed in the settings that needs to be enabled to show up ( an advanced settings tab with a disclaimer of voided warranty perhaps? ). I know myself and alot of other more seasoned hobby cnc users would like to be able to do full macros from the ground up for custom probing, chip clearing with higher rpm for a full sweep of the build plate, the ability to do hard lockouts for more accurate z facing ectect. While some of this can be done if you want to hack around code, Its 1000x time easier and more user freindly to just be able to write your own macro and let the machine run it. Not being able to run the machines probing the way you want and run 100% custom macros is this machines main weakness in my expirence. Sure we can move over to ugs but ugs in its own has its own quarks to deal with. The only other realistic option we have after that is to controller swap or spend 8x the amount of money on a pcnc440 that is almost never in stock.
Another thought for a quick and easy improvement would be home positions above each of the holes in the threaded table. Like the current rapid move interface but instead of the Cardinal directions it’s just the thread table layout.
As I write this I realize it’s probably not a macro and it’s just a more general feature request…well it’s here already sooo…post.