ur5_setup
ur5_setup copied to clipboard
Complete and simple guide on setting up the interface between a UR5 and a PC
UR5 Complete Setup Guide
Author: Long Qian
Date: 2016-09-05
Overview
This tutorial demonstrates how to setup the interface between UR5 robot and a PC, so that the PC can control the UR5. I found the tutorials online are overwhelming complicated, and not well organized. The steps should be as easy and clear as this one.
Hardware
You need a UR5 robot, a PC, and an ethernet cable.
Software
- On UR5 side, PolyScope provides the interface to transfer data through TCP/IP, and to control the robot.
- On PC side, any program runs TCP/IP service is fine. Matlab is used in this guide.
Steps
-
Unpack the UR5 and mount it properly. Please refer to UR5 manual.
-
Plug in the power, and initialize the robot according to the instructions displayed on screen, also see the manual.
-
Setup UR5 network:
- Navigate to
Setup Robot / Setup Network - Check
Static Address - Input a reasonable IP address, e.g.
172.22.22.2 - Input Netmask as
255.255.255.0, Gateway and DNS server as0.0.0.0
- Navigate to
-
Install Matlab on PC, including Instrument Control Toolbox, which provides simple TCP/IP interface
-
Setup PC network:
- Choose static IP address, e.g
172.22.22.1 - Input Netmask as
255.255.255.0, Gateway and DNS server as0.0.0.0. On Ubuntu, the setting looks like this.
- Choose static IP address, e.g
-
Connect the UR5 and PC using an Ethernet cable
-
Upload PolyScope client program
- Prepare a USB stick
- Download UR Magic file that uploads PolyScope programs on your USB stick to the UR5 controller: urmagic_upload_programs.sh. You can also find a copy of it in
urmagic/urmagic_upload_programs.sh - Copy the
polyscopefolder to the USB stick - Plug the USB stick into the teach pendant of UR5, follow the instructions
-
Launch Matlab and navigate to
examplefolder. -
Run
ur5_setup_example.m. You can try out different joint configuration. -
Done!
Notes
- If your PC has only one Ethernet port, and you would like to connect to UR5 and Internet at same time, then you have several choices:
- Purchase an Ethernet-to-USB adapter, and plug one of the Etherent cable in the USB slot.
- Purchase a network switch, and connect both UR5 and PC to the switch.
- Purchase and install another Ethernet card on your PC.
- This setup is mainly used for educational purposes.
- Thanks to Noah Cowan and Fereshteh Aalamifar for their initial work.