As suction pump is correctly connected to the base of robotic arm, when you set basic pin 5 to mode 0 (meaning that the suction pump is turned ON), there is a chance that myCobot would reboot, resulting in forced exit of currently running programs in the robotic arm
The following code is to turn on the suction pump:
mc = MyCobotSocket(ip,port) # or mc = MyCobot(com_port,baudrate)
time.sleep(1)
mc.set_basic_pin(5,0)
Note that no matter the code (or whatever language/software), as long as you set the basic pin 5 mode to 0, there is a chance to reboot myCobot
As suction pump is correctly connected to the base of robotic arm, when you set basic pin 5 to mode 0 (meaning that the suction pump is turned ON), there is a chance that myCobot would reboot, resulting in forced exit of currently running programs in the robotic arm
The following code is to turn on the suction pump:
Note that no matter the code (or whatever language/software), as long as you set the basic pin 5 mode to 0, there is a chance to reboot myCobot