Stop a movement process


#1

Ich programmed a movement process that turns the magician arm from the home position to the left… picks sth up with the grapper and goes back to the home position.

The Code looks sth like this:

`dType.SetJOGCmd(api, 1, 5)
time.sleep(0.4)
dType.SetJOGCmd(api, 1, 0)      

dType.SetEndEffectorGripper(api, 1, 1)
time.sleep(1)

dType.SetJOGCmd(api, 1, 6)
time.sleep(0.4)
dType.SetJOGCmd(api, 1, 0)   

and so on …

Is there any way to set an cancellation criterion that ends/stops this process? The idea behind this is, that if a sensor recognise that the temperature is at a certain point the process stops.

Thanks!
`


#2

Try to issue a stop command: