12-15-2020, 03:02 PM
(This post was last modified: 12-15-2020, 03:06 PM byJensaandenboom.)
(12-14-2020, 04:51 PM)Albert Wrote:Hi,
我们只是添加了中rt for getting Digital Inputs via the API for Omron-Techman robots (on Windows installers).
Important: the digital input function returns the value to the corresponding modbus address. So you should provide the correct modbus address for your digital input.
I recommend you to update to the latest version of RoboDK. Also, make sure to connect to the physical connector that supports Modbus connection on the Omron-Techman controller (I think it is only one of the 3 connectors that supports it).
Albert
Hi Albert,
Thanks for your reply.
I updated to version 5.2 of RoboDK today and triend again. Also i entered the modbus address in my code.
robot.getDI(0000)
Now, this command returns an empty string, as shown in the screenshot. According to the documentation the connection to the robot is not working correctly.
Also I checked if the cable was connected to the correct port on the Omron-Techman controller.
Jens
(12-14-2020, 03:43 PM)Jeremy Wrote:Hi Jensa,
Can you update RoboDK and try again.
If it still doesn't work can you send me the .rdk station and the python code?
I have a TM here with me, I'll test it out.
Jeremy
Hi Jeremy,
I updated RoboDK to version 5.2 today. Also I used the modbus address in the command.
robot.getDI(0000)
Attached are the python software I used to test, and the RoboDK file.