11
G-Code, CAD, and CAM discussions / Re: Conditional programming
« on: March 20, 2018, 11:09:38 PM »
Ah ok. So the subroutine is still within the same file.test.nc.
So I don’t need to put anything in the mach3/subroutine folder? Doing this works on ncplot with the looping z increment but in Mach 3 it doesn’t alter the z increment.
Code now is:
Test.nc
————
#100=10.0. (Z)
G0X0Y0Z0
F2000.0
G1X100.0 Y0 Z#100
G1X100.0 Y100.0
G1X0 Y100.0
G1X0 Y0
M98 P02 L5
M30
O02
G1X200.0Y0Z#100
G1X200.0Y200.0
G1X0Y200.0
G1X0Y0
#100=[#100+10.0]
M99
————prog finish———-
Am I missing anything else?
So what’s the subroutine folder for then?
So I don’t need to put anything in the mach3/subroutine folder? Doing this works on ncplot with the looping z increment but in Mach 3 it doesn’t alter the z increment.
Code now is:
Test.nc
————
#100=10.0. (Z)
G0X0Y0Z0
F2000.0
G1X100.0 Y0 Z#100
G1X100.0 Y100.0
G1X0 Y100.0
G1X0 Y0
M98 P02 L5
M30
O02
G1X200.0Y0Z#100
G1X200.0Y200.0
G1X0Y200.0
G1X0Y0
#100=[#100+10.0]
M99
————prog finish———-
Am I missing anything else?
So what’s the subroutine folder for then?