G-code
Macro programming
Supported operations on expressions
3 min
unary operations true 165,100 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type binary operations true 165,100 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type example this example drills holes at a circle with a radius of 10, each 30 degrees the code that performs this is put in a subroutine, which can be called as many times as needed in the main program sub do circle holes \#100=0 g0 z1 x0 y0 while \[#100 <> 360] \#102 = \[10 sin\[#100]] \#103 = \[10 cos\[#100]] g0 x\[#103] y\[#102] g1 z 1 g1 z1 \#100 = \[#100 + 30] if \[#100 == 360] msg "done" else msg "processing at angle "#100 endif endwhile endsub gosub do circle holes m30