hey guys,
I am using KRC4, KSS 8.6.8
i have a question regarding timer in KUKA.
i just found out that even if the Timer is started in Robot program, the timer will continue even when the robot program stops.
lets say,
$timer[1]=0
$timer_stop[1]=false
wait for $timer[1]>10000
$timer[1]=0
$timer_stop[1]=true
so if i run this program timer will basically stop after 10000 ms.
but what if the program is somehow forced to stop by mean of external button or some emergency stop before 10000 ms.
the timer will keep on going all the time.
so i was looking for a solution where the timer stops when the robot program stops.
can anyone help me with it?