G-Code Sprint Back to site
Tag

#Macro

Posts tagged Macro from the G-Code Sprint team.

Practice

CNC Turning Macro Programming Examples (Macro B)

Macro programming adds variables, loops, and logic to turning G-code. Two worked examples: a parametric grooving loop and a parts counter, plus the syntax map.

Lawrence Arya··4 min
Code reference

G-Code Variables: #100 vs #500 Series Differences

Macro variables differ by lifespan: #100-series commons clear at power-off, #500-series survive it, and locals #1-#33 live only inside a call. Here is the map.

Lawrence Arya··4 min