Hi, relatively new to all this but starting to move from cad/cam and MDI commands to writing simple gcode. Have mastered subroutines that make things more modular and structured, but now want to have a conditional loop ( do while or if then).
Am I right in my understanding that to do this I must dive into macros and all that C# offers? Also is it better practise to write a small macro to evaluate a condition and then return to my gcode file....or having made the leap, wrap the gcode into the macro and then you can simply call the macro rather than open and run s gcode file?
Background:
I am cutting different size tenons with a single gcode file. I use a spreadsheet currently to calculate the required variable values and then edit them into the gcode file before running. However I would now like to to simplify the data entry by doing more calculations and looping inside the gcode.....moving to macros seem a big step.