Scripting (Interrupt callback methode)


#1

Hello

I program the Dobot M1 with M1Studio using scripting language (python). I already wrote a routine for a pick and place to build a Jenga tower. I am working with several while loops.

Now I would like to start and interrupt the routine with two push buttons that can be used to control digital inputs.

Songs, the polling method doesn’t make much sense to query the inputs, because the input is not checked at all times and I would have to repeat the same line of code x times.
That’s why I wanted to work with the interrupt callback method. But I haven’t found a way to implement it.

Does anyone have a solution to this?

Thanks!


#2

Hi Luca, maybe this table could help you

If you still need help, please feel free to contact us via support@dobot.cc and our team will get back to you ASAP