RoboDK Forum
Cant set port connecting to Kuka robot可打印版本

+- RoboDK Forum (//www.sinclairbody.com/forum)
+-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN)
+--- Forum: RoboDK API (//www.sinclairbody.com/forum/Forum-RoboDK-API)
+--- Thread: Cant set port connecting to Kuka robot (/Thread-Cant-set-port-connecting-to-Kuka-robot)



Cant set port connecting to Kuka robot-rshanor-10-15-2022

Hi,

我是able to control my kuka robot in the RoboDK GUI, but I cant figure out how to specify the port over the API. I am trying to use therobot.Connectfunction, which takes an IP address but not a port.

I followed the advice in the link below to set a different rather than 7000 due to conflict with nginx.

//www.sinclairbody.com/doc/en/Robots-KUKA.html#DriverKUKA

Thnaks!


RE: Cant set port connecting to Kuka robot-Albert-10-15-2022

You can use the user interface to change the default settings (select Connect-Connect to robot). If you prefer changing these parameters using the API you can use robot.setParams to set the IP, port and other connection settings.


RE: Cant set port connecting to Kuka robot-rshanor-10-15-2022

I totally missed the robot.setConnectionParams API call last night, thanks Albert!