Connect Kuka Robots With RoboDK
Connect Kuka Robots With RoboDK
Connect Kuka Robots With RoboDK
A connection between RoboDK and the robot can be accomplished to move the robot automatically
from RoboDK. The connection can be established through Ethernet (TCP/IP).
We must follow these steps to prepare the communication between a Kuka robot and RoboDK. This
method works with a KRC4 KUKA controller. The KRC4 robot controller runs the Microsoft
Windows 7 operating system. The teach pendant shows an “HMI” which is a program that KUKA
developed to run on Windows and it is the interface that the robot user has to manipulate the robot.
We can use a USB flash drive to exchange the robot files (it is much faster to plug the USB drive on
the robot controller than the teach pendant).
The KUKAVARPROXY server is now ready. It is not unsafe to leave this program running all the
time. This server allows exchanging global variables from the KUKA controller to the remote PC.
We must now setup the main program that will handle the robot movements:
We can now manually start the MainCom.src program to move the robot with RoboDK (or from
command line, see section 2). If this program is not running RoboDK will still be able to read the
robot joints anytime as long as the KUKAVARPROXY program is running in the robot controller.
We can right click our robot in RoboDK and select “Connect to robot...”. A new nested window will
open, as shown in the next image. We can enter the IP address or the COM port. The robot port is not
needed for Motoman communication. We can then select “Connect”, we should read “Ready” in
green if the communication works. Then we can test getting the current robot joints by pressing “Get
current joints” or move the robot to a specific position the we preselected in the simulator by pressing
“Move to current joints”. In the RoboDK simulator we should see the exact same position as the real
robot every time we press one of these two buttons.
Continue reading and follow next steps if any problems happened during the connection.
The connection for each robot is managed by an executable that works as a driver. This driver can be
tested in console mode. The drivers of each robot can be found in the folder “C:/RoboDK/api/robot/”.
The IP address of the robot must be known (or the COM port for serial connections). Follow these
steps to verify the communication between a robot and a computer (Ethernet connection only).
The goal is to be able to easily move the robot and read the current position of the robot inside
RoboDK (step 3). If step 3 does not work we should go back to steps 1 and 2 to troubleshoot the
communication problems.
change
If there is no communication we should verify that the IP of the robot and the PC are in the same local
area network (LAN). We may have to deactivate the Windows Firewall or add a rule to allow the
communication.
To make sure the laser tracker and the PC are in the same local area network we must set the IP of the
computer to be the same as the robot except for the last number (such as 192.168.125.123). We can
leave the subnet mask at 255.255.255.0. To change the IP of the computer we must follow these steps: