I've created 14 G-code files containing text to be engraved, each text string starting at a 0,0 origin. The text will be engraved in arrays (labels for tool holes in a storage box), so a subroutine looked like being the best way to handle them.
I named the text code files 10.nc, 15.nc, 20.nc, etc, and tried to perform the following (snippets):
#10 = 10 (first text file)
G0 X17 Y10 (move to first legend start location)
M98 P2 L5 (first five legends)
G92.1 (cancel coordinate offsets)
.
.
O2 (subroutine)
G92 X0 Y0 (make this the new origin)
M98 (#10.nc)
#10 = [#10 + 5]
G0 X20.667 Y0
M99 (return)
But Mach3 refuses to load this program! It goes through the motions, but finishes with
no code displayed, though
no error message!
I've tried square brackets around the parameter:
M98 ([#10].nc)
but still the same failure. (I've tested with
M98 (10.nc)
and this works OK, but of course I get the same text for each five labels!)
Does anyone know how I can implement 'variable' file names, or am I doomed to having to write 14 M98 calls to my text files?

Daniel