OK this is the first macro that stops the machine and gathers data to return. You may have to modify it to soot your machine and process
***********************************************************
'F13 Feedhold/stop to check torch
DoButton(1) 'Feedhold
While IsMoving 'Wait for movement to stop
Sleep(100)
Wend
DoSpinStop ' Turn OFF torch
Sleep(100)
SetVar(601,Getdro(2)) 'Setvar to Zpos
Sleep(100)
DoButton(3) 'Set Stop
Sleep(100)
DoOemButton(104) 'Move to SafeZ
While IsMoving()
Sleep(100)
Wend
SetVar(602,GetDro(0)) 'Setvar to Xpos
SetVar(603,GetDro(1)) 'SetVar to ypos
SetVar(604,GetDro(18)) 'SetVar to Feedrate
SetVar(605,GetDro(16)) 'SetVar to CurrentLine#
End
This is the second macro that returns the machine to work. You may have to modify it to soot your machine or process
**************************************************************
'F14
DoOemButton(104) 'Go To SafeZ
While IsMoving()
Sleep(100)
Wend
Code"G0 X#602 Y#603" 'Return To Stop Point
While IsMoving()
Sleep(100)
Wend
Code"G28.1 Z0.500" 'ReREF Head to TOM
While Ismoving()
Sleep(100)
Wend
Code"G92 Z0.000" 'Reset Dro
sleep(100)
Code"G0 Z#601" 'Return Z to stop Point
While IsMoving()
Sleep(100)
Wend
SetDro(16,Getvar(605)) 'Reset SET NEXT LINE #
Sleep(100)
SetDro(18,GetVar(604)) 'Reset Feedrate
Sleep(100)
DoOemButton(156) 'Run SET NEXT LINE
Sleep(100)
DOSPINCW 'Refire Torch
Sleep(100)
DoButton(0) 'Resume Program from Stop Point
End
Hope it helps