I would appreciate some help I want to 'reset' x & y values and Regenerate the toolpath via a macro (I have moved the cutter to a new position ready to cut the next block but I need to reset x &y and regenerate the toolpath before I can continue.
I have created 3 macros and called them M126 M127 M160
for instance:-
M126 macro held in the macros folder of Mach3 (as all three are)
'Define OEM Codes for Reset X
Const OEMButtonResetX=1008
DoOEMButton(OEMButtonResetx)
Sleep(1000)
End Sub
All 3 follow the same situation ie. nothing changes, I have checked both M126 and M127 using VB Editor and the code does for instance reset x and y but when the M126 etc are added to the gcode nothing happens can anyone throw some light on this situation please. When I step through the gcode for my cutting program which includes M126 M127 M16 nothing happens i.e x&Y do not reset just remain containing the value displayed.
Thanks again