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
  • Rotate single joint from a given position by user input

Rotate single joint from a given position by user input

This is an example of how to rotate only one joint from a given position by user input.

Last modified on Jan 29, 2025

Examples are valid for:
CB2 Software version: All versions
CB3 Software version: All versions
e-Series Software version: All versions

Note that older or newer software versions may behave differently.

These examples can be used for both CB2, CB3 and e-Series.

Operator wants to rotate only wrist 2 depending on a value inputted by the operator.

How to accomplish this:
jp = is the angular value of Waypoint_1.
rotation = is amount of degrees to rotate, typed in by user.
r = is degrees converted to radians. This code is not avalable in all software version and the calculation: (degree/180)*3.14149262 need to be used.
Finally a movej() script code is used for rotating only a single joint relative to Waypoint_1, in this case it is wrist 2 that is rotated.

Rotate Test

Attached files


RotateSingleJoint.urp
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