OK let's try,
first of all let's get a resadble code:
Sub main
'Domed Winding check
'0.5614 fixture diameter
'0.2804 fixture radius
'0.725 Raw NickelBlank Dia
DoOEMButton(1001)
code "(Mount back cut tool)"
systemWaitFor(restart)
DoOEMButton(1001)
Code "(Jog to Fixture surface)"
systemWaitFor(restart)
' Set Z to Fixture Radius
setDro(0,0.2807)
DoOEMButton(1001)
code "(Mount Front Cut Tool, position to back edge of mounted nickel)"
systemWaitFor(restart)
setDro(2,0.000)
' set spindle speed to 400
DoOEMButton(1001)
Code "(Turn Spindle on to 400RPM)"
code "m3 S400"
systemWaitFor(restart)
code "g01 f2 x0.285"
code "g0 x0.3625"
code "M5"
DoOEMButton(1001)
code "(stop spindle)"
systemWaitFor(restart)
End Sub
main
ok let's do some documentaion's to the code
Sub main
'Domed Winding check
'0.5614 fixture diameter
'0.2804 fixture radius
'0.725 Raw NickelBlank Dia
DoOEMButton(1001)
code "(Mount back cut tool)" 'what does this code mean ??

systemWaitFor(restart) 'where/or what is restart

DoOEMButton(1001)
Code "(Jog to Fixture surface)" 'what does this code mean ??

systemWaitFor(restart) 'where/or what is restart

' Set Z to Fixture Radius
setDro(0,0.2807)
DoOEMButton(1001)
code "(Mount Front Cut Tool, position to back edge of mounted nickel)" 'what does this code mean ??

systemWaitFor(restart) 'where/or what is restart

setDro(2,0.000)
' set spindle speed to 400
DoOEMButton(1001)
Code "(Turn Spindle on to 400RPM)" 'what does this code mean ??

code "m3 S400"
systemWaitFor(restart) 'where/or what is restart

code "g01 f2 x0.285"
code "g0 x0.3625"
code "M5"
DoOEMButton(1001)
code "(stop spindle)" 'what does this code mean ??

systemWaitFor(restart) 'where/or what is restart

End Sub
main
i am just talkin like MACH3 processor.
Thomas
if you try to get an answer post the real code.