Hi veronicav
when $in[1] triggered program jump to "check_home()". when Finnish "check_home()" program will return to loop program "subprogram 1()" any point after interrupt exit.
i would like exit program function any times when have interrupt signal. and restart program and endloop.
now i use this method below but it have
if exitprogram=true then
goto endprogram
endif
many many line in program function.
;***********************************************
DEF SET_ESTOP()
interrupt off 1
exitprogram=true
brake
wait for $in[1] ;start signal
interrupt on 1
end
;**********************************************
DEF subprogram 1()
1 PTP
2 if exitprogram=true then
3 goto endprogram
. endif
10 PTP
11 PTP
. if exitprogram=true then
. goto endprogram
. endif
. .
. PTP .
. PTP .
. .
. .
. endprogram:
98 PTP XHOME
99
100 exitprogram=false
END
;**************************************