Articles Download Safety & Security Forum myUR Go to Main Site

Universal Robots A/S
Energivej 51
DK-5260 Odense S

T: +45 8993 8989
sales@universal-robots.com

 
  • Articles
  • Download
  • Safety & Security
  • Forum
  • myUR
  • Go to Main Site
  • Support
  • Articles
  • Examples of Script Commands

Examples of Script Commands

Script Command Examples

Last modified on Oct 16, 2023

Example is valid for:                                             

CB2 Software version: 1.8.16941                        
CB3 Software version: 3.3.4.310                        
Note that older or newer software versions may behave differently.

Note that not all commands are available in all software versions. These samples are based on the commands in Script Manual version 3.4.2.

 

These examples can be used for both CB2 and for CB3.

THE SAMPLES IN THIS ARTICLE ARE BASED ON THE COMMANDS IN SCRIPT MANUAL VERSION 3.4.2.  NOTE THAT NOT ALL COMMANDS ARE AVAILABLE IN ALL SOFTWARE VERSIONS.

STARTING WITH SOFTWARE VERSION 3.5 THIS ARTICLE IS OBSOLETE, EXAMPLES ARE INCLUDED WITH THE DESCRIPTION OF EACH COMMAND IN THE SCRIPT MANUAL.

 

Here is a sample of a Script Code Example:                                        

speedj(qd, a, t)                                                                                   

               This is the equivalent of a joint jog command. Robot moves as directed for time t.   

               Example Command

                                             speedj([0.2,0.3,0.1,0.05,0,0], 0.5, 0.5)

                                             qd -        Joint speeds of – base = 0.2 rad/s, shoulder = 0.3 rad/s,

                                                           elbow = 0.1 rad/s, wrist1=0.05 rad/s, wrist2 and

                                                           wrist 3 = 0 rad/s

                                             a             acceleration of 0.5 rad/s2 of the leading axis

                                                            (shoulder in this case)

                                             t              time of 0.5 s – time before the function returns

 

 

 

 

Attached files


Script command Examples.pdf
logo

Product

  • UR3e Robot
  • UR5e Robot
  • UR10e Robot
  • UR16e Robot
  • UR20 Robot
  • UR+ Products

Company

  • About us
  • Contact us
  • Careers We're hiring
  • UR merchandise

Training / Resources

  • Academy
  • Technical Resources
  • Articles
  • FAQ

Insights

  • Blog
  • Case stories
  • Content library
  • News centre
  • Podcast
  • Webinars & Events

Get in touch

  • Ask an Expert
  • Schedule a no-cost assessment
  • Find a distributor
  • Customer support

Connect with us

  • LinkedIn
  • Facebook
  • Twitter
  • YouTube
  • Instagram
  • Universal Robots A/S
  • Energivej 51
  • DK-5260 Odense S
  • T: +45 89 93 89 89
  • sales@universal-robots.com
  • US Corporate Office
  • 27-43 Wormwood St.
  • 02210 Boston, MA.
  • +1-844-GO-COBOT
  • ur.na@universal-robots.com
  • Copyright @ Universal Robots 2025
  • Cookie policy
  • Privacy policy
  • Universal Robots A/S
  • Energivej 51
  • DK-5260 Odense S
  • T: +45 89 93 89 89
  • sales@universal-robots.com
  • US Corporate Office
  • 27-43 Wormwood St.
  • 02210 Boston, MA.
  • +1-844-GO-COBOT
  • ur.na@universal-robots.com

Copyright © Universal Robots 2025

Cookie policy
Privacy policy