SintefManufacturing / python-urx

Python library to control a robot from 'Universal Robots' http://www.universal-robots.com/
GNU Lesser General Public License v3.0
530 stars 275 forks source link

Issue in getting the status of digital inputs and digital outputs. #107

Open derrelldv opened 2 years ago

derrelldv commented 2 years ago

I am using polyscope 5.10. for UR5 Robot. I am having a problem in retrieving the status of digital input and output pins. When I run robot.get_digital_out(4,wait = True), it gives me a 0 even if it is 1. Same goes with digital input.

Also robot.secmon.get_digital_out_bits() gives a 0.

Thanks

haphm commented 1 year ago

Hi, Did you find out the solution for this problem yet? I am having the same issue with command rob.get_digital_in(9) and it always returned value '0' even it was 'On' from the teach pendant. But when I changed the command to rob.get_digital_in_bits() it returned value of '131072'. If you have found a solution for this problem, please share it with me. It is also appreciated if anyone can help! Thanks in advance!