(Procedure for Moving back to Tool path)
(Destination point is placed in Parameters #5461...#5466 )
(#5461 - x)(#5462 - y)(#5463 - z)
(#5464 - a)(#5465 - b)(#5466 - c)
(Working cube values are situated in Parameters:)
( 5421 ... 5428) - Minimum point )
( 5431 ... 5438) - Maximum point )
( 7020 - Safe Height )
( 7021 - Creep Speed )

(Z offset between MAchine&Work coordinates)
#33=#5023-#5043

( move tool up to safe position)
N01 G53 G0 Z [ #5433 - 0.5 ]
( move to toolpath XY position )
G90 G0 X #5461 Y#5462

( move to toolpath ABC position )
( G0 A #5464 B #5465 C#5466 )

( move to toolpath A position )
G0 A #5464

( reset unused axes to zero machine & work coordinates )
G90 G10 L70 P0 B0 C0
G90 G10 L70 P1 B0 C0


#10= #5433 - 0.5
#11= #5463 + #7020 +#33

debug #10
debug #11


if [ #11 GE #10 ] 200 ( Top point upper than save position )
G90 G0 Z [ #5463 + #7020 ]
N200


#11= #5463 + #33
debug #11

if [ #11 GE #10 ] 250 ( Top point upper than final Z position )

( final move down to toolpath Z position on creep speed)
G90 G0 Z [ #5463 ] F #7021
N250



M02


