Sub-Programs in same file

jolbas

Jolbas
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
 

masso-support

MASSO Support
Staff member
it puts a lot of load on the controller to scan multiple programs in one file, for this reason all the sub programs have to be in separate files.
 

jolbas

Jolbas
Ok. I understand.

I can try this myself but I'm not in the workshop so I just ask and hope someone knows: Is it possible to have the sub-programs on a different usb flash drive connected to a hub?
 
Top