waitDI- Printable Version +- RoboDK Forum (//m.sinclairbody.com/forum) +-- Forum: RoboDK (EN) (//m.sinclairbody.com/forum/Forum-RoboDK-EN) + - - -论坛:通用RoboDK问题(//m.sinclairbody.com/forum/Forum-General-questions-about-RoboDK) +--- Thread: waitDI (/Thread-waitDI) |
waitDI-Nox-10-29-2018 Hello everyone, I'm wondering what are the values for the WaitDI function can I put a code like this?:
Code:
sensor = robot1.waitDI(1, 1, 1000)
I'm not sure what's the right approach for using this function... Thanks for reading! RE: waitDI-Albert-10-31-2018 Hi Nox, The waitDI instruction blocks the program execution until the specified digital input reaches a specific value. You can optionally pass a timeout parameter. In the following order, you should pass: the DI variable, the value (typically 1 or 0) and the timeout (timeout is optional). More information here: //m.sinclairbody.com/doc/en/PythonAPI/robolink.html#robolink.Item.waitDI |