Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

GetDI command not functioning

#4
(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.


Attached Files
.rdk input output test.rdk(Size: 796.69 KB / Downloads: 281)
.py input_test.py(Size: 744 bytes / Downloads: 344)


Messages In This Thread
GetDI command not functioning - byJensaandenboom- 12-14-2020, 02:55 PM
RE: GetDI command not functioning - byJeremy- 12-14-2020, 03:43 PM
RE: GetDI command not functioning - byAlbert- 12-14-2020, 04:51 PM
RE: GetDI command not functioning - byJensaandenboom- 12-15-2020, 03:02 PM
RE: GetDI command not functioning - byJeremy- 12-15-2020, 05:50 PM
RE: GetDI command not functioning - byJeremy- 12-16-2020, 07:12 PM



Users browsing this thread:
1 Guest(s)