It is same "OnStart" script. You can check #<line> parameter to see it it is greater than 0 (start from selected line...) . I've also added other parameters to bheck basic IO state ad position state. For example:
Code:
(print,OnStart script @ Line: #<line,0>)
(print, PosState: X#<posstate_x,3>, Y#<posstate_y,3>, Z#<posstate_z,3>)
O<chk> if [#<line>]
(print, MistState: #<miststate,0>)
(print, FloodState: #<floodstate,0>)
(print, SpindleState: #<spindlestate,0>)
(print, MotorsState: #<motorsstate,0>)
(print, LimitsState: #<limitsstate,0>)
G53 G00 Z#<_probe_safeheigh>
G53 G00 X#<posstate_x> Y#<posstate_y>
G53 G00 Z#<posstate_z>
O<chk> endif
This script will print some values and then traverse to last position on safe height.