Yes, the macro needs to have at least three lines in it.
- one line for setting $32 to 1
- one line for setting $10 to 0
- one line for adjusting G10 L2 P1 coordinates
Here’s a copy/paste of the text in my “Configure for laser” macro. I have one extra line for setting $20 to 0, which disables soft limits: in my setup I was getting errors when soft limits were enabled, so I added that line, it won’t necessarily be required for you)
$32=1; enable laser mode
$10=0 ; to get positions displayed as positive numbers
$20=0 ; disable soft limits
G10 L2 P1 X-459 Y-415 ; deal with inverted coordinates
Here’s how it should look:
Similarly, I named the other macro “Restore CNC config”, it restores the original values, and in my case looks like this: