TCP/IP configuration and python examples

The following Python TCP/IP examples are attached.

  1. Dashboard server
  2. Client interfaces - sending single URScript commands (non-blocking)
  3. Client interfaces - sending URScript functions (blocking)
    UR Python programs.zip (2.5 KB)

For more detailed information about this topic, please visit the link below:
Communication Protocol Tutorials — PolyScope 5 Tutorials documentation

Pre-requisites for UR TCP/IP communication:

  • Configure network settings of the PC and UR robot to be on the same network. First 3 numbers of IP address need to be the same (For example: UR: 192.168.1.1, PC: 192.168.1.2).

  • On your PC, open the command prompt and verify the TCP/IP connection to the robot by entering the command “ping 192.168.1.1”. In this example, UR’s IP address is 192.168.1.1.

  • If you are unable to ping the robot IP address, please try the following steps:

    1. Verify that there is a good physical ethernet connection from PC to robot by verifying that the ethernet cable works elsewhere and that it is plugged in correctly to both the PC and UR.
    2. Disable firewalls on your PC as this may be blocking your TCP/IP connection to the robot. Please verify with your IT department that you are allowed to do this.

Pre-requisites on UR robot for remote control operation:

  • Enable “Remote Control” by going to Settings → System → Remote Control.
  • Verify permissions are enabled to connect to UR interfaces by going to Settings → Security → Services.