Can someone give me the 2 minute elevator chat about what macros are, what they can do and how I can prevent myself from saying “holy macro!” when i’ve finally been enlightened?
Macros are little scripts for frequently repeated actions. They can be anything from a simple one-line command ($H) to multi-line proceedures that don’t belong with any specific job.
For example, I have a macro to set the current position as the workspace origin (G10 L20 X0Y0) which js a single line, but would be annoying to type every time I want to do it. Another probes the work piece, prompting me ti attach the touch plate, then it probes the work and sets Z0, then lifts the tool 30mm and prompts me to remove the rouch plate. The 30mm lift is to reattach the dust shoe. These are actions that I use often, but not every job, and so.etimes I dont want to do them with certain jobs. Other macros make a big square above the work piece to ensure free movement of the gantry over the whole table, goto the current work home position at Z10 (works after homing the machkne) a few other functions that are a regular part of my work flow.
Basically if you’ve ever thought “I just want a button that does this” that’s probably a job for a macro.
So when I load a 500 X 250mm slab of ice into the Lowriders I could write a macro to probe the top surface, lift by 5mm, move to the four corners and then the middle (much like the Ender 3 bed levelling setup) so I can manually adjust the slab position from underneath with some building shims (again, much like the bed levelling setup on a 3d printer) before locking the slab in place and starting the job? Currently I either type the coordinates/moves or jog +100/+10 as required to get to “that spot”.
Yes, provided the workpiece was always at the same position.
I have just today been using AI to make a visual ‘Macro Builder’ that allows you to create gcode for your machine and visualise the result. I will update this thread this afternoon when I have something published.
EDIT: Made a post here about the macro tool and also another tool I vibe coded.
You can set a new macro for each corner, or one that does all that. I think you can use a pause in a macro so you could even do it so it pauses at each corner and lets you resume when the height is right.
Did we just gloss over this little bit? I need to see more info on this. ![]()
You should go check out his profile. @macboy uses his LR a bit differently than the rest of us. At least I don’t keep my Lowrider in a big freezer.
Yeah, the ice setup is pretty “COOL” ![]()
I made this macro for you to try out.
First move your bit to the front left surface corner of the ice block. Then start the macro. It will raise the bit 10mm and move to the front right corner and lower to Z0 for you to shim the ice block. Then it will move to the back right to check and shim, then back left, then center and finally back to the front left.
I wasn’t sure how far from the corner you check for level. I have it to be 10mm inside each corner. I’m going off of you setting X0,Y0,Z0 10mm in from the front left corner.
The bit will lower to Z0 after each move. Are there times when the other corners or center are higher than the front left? If so, you will want to adjust Z0 to accomodate for that.
Level-Check.g.zip (740 Bytes)
Amazing. I’ll give this a dry (warm) run today. Or not - Bumble is still in the freezer. I’ll have to suit up and go join it in there.
Your specific use there is one of the reasons I.love the Duet/RepRap Firmware setup. There is a specific gcode to report on that using G30 probes. Ive used it for V carving. (Of course it can also just modify Z to follow the “bed” as well. Or level Z screws.)
Yes, since that is something you probably do often, that would be a good use of a macro.
Sorry, I don’t think we can help with this one…
This, combined with the FluidTouch is going to improve my workflow immensely. It takes a long time to measure, leave the freezer, manually jog, go back in, measure, adjust, leave freezer etc…not to mention the cold loss opening and closing the door so much.
For the “R” cube run I took an iPad into the freezer with me but only because the laptop was connected to the LR32 at the time so I used the iPad to set the job on Bumble. But now, with FluidTouch I can just switch machines right there. Amazing side bonus for those times I’m running more than one machine.
Really appreciate you taking the time to do that. I read through it and it makes absolute sense. I think some time back I was poking around this sort of idea but didn’t have the word “macro” to incorporate into the conversation. This is exactly what I was looking for,