Didn’t find any type of macros listing on the forum, so go ahead and post yours. I’ve got a few that are buttons in UGS to automate jogging around and switching between lasers. I’ll update once I fix the border scan and again once I create my tool length offset probe for toolchange.
Move to XY Job 0
G53 Z-1 G90 G0 X0 Y0
Move to XYZ Job 0
G53 Z-1
G90
G0 X0 Y0
G1 Z1 F1000
Raise Z
G53 G0 Z-1
Move to Home Position
G53 Z-1; G53 X-1 Y-1
Set Bottom Left Zero (when parked at WCS Home)
G53 G0 Z-1; G53 G0 X-800 Y-356
Move to Tool Change Position
G53 Z-1; G53 X-300 Y-200
Scan Border (works on bCNC, not yet on UGS)
G53 z-1; G90; G0 X[xmax] Y[ymax]; G1 X[xmin] F1000; G1 Y[ymin] F1000; G1 X[xmax] F1000; G1 Y[ymax] F1000
Laser Mode On
$32=1
Laser Mode Off
$32=0
Laser Beam .002 seconds (for positioning)
G1F1; M3S10; G4P0.002; M5S0