Hello
I like the Sub program feature but it would be nice to be able to make calls to subroutines in the same file so that you don't need to make sure the right sub-program files are present on the flash drive. This would make it possible to let the preprocessor add necessary sub-programs to the g-code.
To be compatible with current approach, first look for sub-programs in same file. If not found look for the external file e.g. 3.nc
Example:
G0 X10 Y10
M98 P3 (Run the torch start routine)
M667
G1 Y20
M666
M5
G0 X0 Y0
M30
(Sub-program in the same file)
O3 (Routine 3: Start torch)
G38.2 Z0 F500
G92 Z0
G0 Z3.8
M3
G4 P400
G0 Z1.5
M99
(I haven't actually tested if this already works, but it's not in the documentation)
/Bj rn Jadelius
I like the Sub program feature but it would be nice to be able to make calls to subroutines in the same file so that you don't need to make sure the right sub-program files are present on the flash drive. This would make it possible to let the preprocessor add necessary sub-programs to the g-code.
To be compatible with current approach, first look for sub-programs in same file. If not found look for the external file e.g. 3.nc
Example:
G0 X10 Y10
M98 P3 (Run the torch start routine)
M667
G1 Y20
M666
M5
G0 X0 Y0
M30
(Sub-program in the same file)
O3 (Routine 3: Start torch)
G38.2 Z0 F500
G92 Z0
G0 Z3.8
M3
G4 P400
G0 Z1.5
M99
(I haven't actually tested if this already works, but it's not in the documentation)
/Bj rn Jadelius