Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Digital Input Wait Method Broken
#1
In my code I use the command, "robot.waitDI(1,1)" to pause the program until the robot receives a high signal on digital input 1, but the robot never actually waits when the program is run regardless of what the input value is. The robot I am trying to run the program on is a UR10 which has a digital input "ON region" of 11V-30V according to the manual. I have confirmed that digital input 1 is receiving 0V using a digital multimeter and have even tried running the command with all of the digital inputs completely disconnected from any possible voltage source but the program still skips right over this instruction. The strangest part is that the input wait method worked exactly as expected when I replicated my Python program using the "Set or Wait I/O Instruction" button in the RoboDK graphical interface. After realizing this, I generated a UR script from both the UI program and Python program I created and they were identical, so I can only assume that this behavior is due to some kind of software error. I have attached my Python code as well as the UR scripts generated from both the UI and Python versions of my program. Any help getting this method to work would be greatly appreciated as it is essential to my project.


Attached Files
.txt IOwaitMalfunctionPythonCode.txt(Size: 526 bytes / Downloads: 507)
.txt IOwaitURscriptPython.txt(Size: 922 bytes / Downloads: 484)
.txt IOwaitURscriptUIversion.txt(Size: 728 bytes / Downloads: 448)


Messages In This Thread
Python Digital Input Wait Method Broken - byMichaelw46- 03-21-2019, 11:27 PM



Users browsing this thread:
1 Guest(s)