Hello again. I am sorry for the late reply.
I have caused the system to not break down.
when I run the code with T0101m6 I only get activated (output 9).
I've tried to change
(If Not IsActive (Input22) Then
NewTool = 1)
to
(If IsActive (Input22) Then
NewTool = 1)
It should be right in my case.
But nothing happens spindel just keep rotating
