You appear to be correct,variables are 100-199. I also found limited google support for "L" parameter technique (though it did function in MACH4) so I re-wrote it using a while loop which seems to be far more common and would then be easier to ask questions about.
The following code works in g-code simulator (Gwizard?) but now it seems Mach doesn't like math on the variables. Or at least the way that GWizard does.
#107 = 0 ; Starting (and Current) Y Position
#101 = 46.5 ; X Max (Static Variable, Object width)
#102 = 34.0 ; Y Max (Static Variable, Object height)
#103 = 0.1 ; Step overlap (Static Variable)
#104 = 1 ; Tool Diameter (Static Variable)
#105 = #104-#103 ; Y Increment <<<======= FAILS HERE - UNKNOWN COMMAND
#106 = -0.010 (Depth of Cut)
G0 G90 G54 G17 G40 G49 G80 ;Safety Line
G0 X0 Y0 Z.2 ; Home
;M03 S18000; Start spindle
G1 Z0.2 F10 ; Get close to surface
G04 P5000 ; Pause 3 seconds for VFD comes to speed
M0 ; Confirm the Cycle Start
G01 Z#106 ; Z to Depth
WHILE [#107 LE #102] DO1 ; Start Loop, run until Y value reached
G01 Y#107 F10. ; move TO Y
G01 X#101 ; Go To X Max
#107=#107+#105 ; Increment Y variable by step over value
G01 Y#107 F10. ; move Y to next step
G01 X0 ; Move to X Min
#107=#107+#105 ;increment Y by step over value
END1 ; End Loop
G0 Z5.0 ; Raise Spindle
M04 ; stop spindle
G0 G90 G54 G17 G40 G49 G80
G0 X0.0 Y0.0 ; Go Home
M30 ; exit routine
This faults on the first #105 whether in brackets or not, this syntax is the only way I have seen it done so far. Whats wrong this time?? Is this a MACH specific thing??
I really would like to get over the gcode hurdle. the basics appear pretty easy to grasp, but the nuances between machine types must be what I am fighting now.