I’m writing a post processor for Sheetcam with custom parameters to make use of existing WinCNC macro files such as M61 torchON.

Question: In the gcode that's produce, can I use a ‘define=var,value’ stmt format to set either unique or internally defined variables before invoking such macros as M61 ? Internally defined vars such as THQ and others in the Internally Defined Variables list on page 132+ of WinCNC V3.1 manual.

If not, then how are such Internally Defined Variables set in gcode prior to invoking a macro command, other than from the WinCNC Operator Console via pre-defined material / cut params selection ?

I’m writing this pp for a mutual client, I don’t have access to a WinCNC physical controller otherwise. I tried downloading their demo version of WinCNC but the download is blocked by an errant php web form. I have an email into WinCNC support desk so perhaps an answer on Monday unless someone here as done this already.