Seek using force - 16117

Using force to detect an object

Examples are valid for:
CB2 Software version: 1.8.16941
CB3 Software version: 3.1.17779
Note that older or newer software versions may behave differently.

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


For robots (produced after 25/7 2012) typical tolerances are:

  • Force precision: ± 10N
  • Torque precision: ± 5Nm
  • Position precision: ± 5mm
  • Orientation precision: ± 0.5°

Robots produced before 25/7 2012, they may be less accurate in force-mode.

Force control is only available for UR5 and UR10 with software 1.6 or later.

The examble shows how to use the force() to detect and object and move 5mm back in the Z direction.

It is important to tick "Check expression continuously" in order to use the force detection in it's full travle.


When the object is detected we use a relatice waypoint to move 5mm back in the Z direction.

5Mm Back


Here is a small drawing showing how it works.


Attached files

Want to get notified about updates?

You are welcome to sign up for notifications about new relevant information and articles that could be interesting for you.

Universal Robots A/S needs the contact information you provide to us to contact you about our products and services. You may unsubscribe from these communications at anytime. For information on how to unsubscribe, as well as our privacy practices and commitment to protecting your privacy, check out our Privacy Policy.

Need help?

Did you find what you needed on this site? For additional information please contact one of our distributors.