Until Contact and Until Signal: set speed and deceleration
In this article you can find a clear and comprehensible table, that shows which joint sizes can be used on which robot on which position. For CB3 and e-Series.
Until Tool Contact stops a movement when the force-torque sensor detects a contact. Until Signal stops it when an input, for example from a vacuum sensor, reaches a set level. The robot keeps moving until it has come to a stop, so speed, deceleration and sensor delay decide how far it travels after the event.
This article explains how to measure the sensor delay, calculate the stopping distance, and balance speed and deceleration.
Applies to: PolyScope 5. Until Tool Contact was introduced in SW 5.4.0 and uses the force-torque sensor built into the tool flange.
The default deceleration of an Until Tool Contact move is 3000 mm/s². This default is no longer an official recommendation: the deceleration a robot can deliver depends strongly on its load, so a fixed value is often incorrect.
Choose the right method
The Until Tool Contact node is intended for occasional dimensional measurements with tools fixed to the robot arm, similar to probing on a CNC machine. For very frequent cycles or for non-rigid payloads, use another method.
| Method | What it does | Notes |
|---|---|---|
| Until Tool Contact | Detects a force spike, measured by the force-torque sensor, while the robot moves in one direction | Intended for occasional dimensional measurements. Example: finding the height of stacked objects. |
| Until Signal (I/O input) | Stops when an input reaches a set level, for example from a vacuum sensor | Typically applied to probing tasks. |
| Force mode | Compliant motion in a chosen feature and direction | Greater accuracy and reduced setup demands than Until Tool Contact. For part insertions, see Tip 6. |
Calculate the stopping distance
From the moment the surface is really detected, the robot travels the following distance, at a fixed deceleration:
distance = v × t + v² / (2 × a)
- v is the speed of the move, in mm/s.
- t is the detection delay of the sensor, in seconds.
- a is the deceleration, in mm/s².
The first term is the distance covered during the detection delay. The second is the stopping distance while the robot decelerates.
Until Signal (vacuum sensor)
- Measure the sensor delay by covering the vacuum pad with a non-porous material, for example plastic.
- Position the sensor as close as possible to the vacuum pad to minimize the delay.
- Account for the vacuum pad cushion when you balance deceleration and speed.
Example. At the default linear speed of 250 mm/s and the default deceleration of 1200 mm/s², with a sensor delay of 0.5 s, the robot travels 250 × 0.5 + 250² / (2 × 1200) = 125 + 26 ≈ 151 mm from the moment the pad is really covered.
Regular maintenance, particularly of the vacuum foam, is essential to prevent damage to the robot and to ensure stable detection.
Until Tool Contact (force sensor)
Until Tool Contact detects force spikes during a directional movement. Results may be unstable when the robot interacts with very rigid surfaces.
- Run zero_ftsensor() in each cycle. This is strongly recommended.
- Balance deceleration and speed. As a general guideline, reduce the default deceleration while balancing it with the speed. An excessively low deceleration may result in equipment damage. The maximum linear contact speed is 100 mm/s.
- Set a force threshold (SW 5.23.0 and newer). The Until Tool Contact node has a Force Threshold parameter: the minimum force required to register a contact event. A suitable threshold can improve contact detection accuracy, especially on soft or compliant surfaces, and it mitigates parasitic friction. It is not intended to manage part insertions. In a script, use tool_contact(direction=[0,0,1,0,0,0], force_threshold=<float>). The default is 0, which gives the same behavior as before.
- Verify during production that no warnings are generated.
For part insertions, see Tip 6 in Recommendations for CNC tending applications.
Example. At the maximum linear contact speed of 100 mm/s and a deceleration of 3000 mm/s², with a detection delay of 0.1 s, the robot travels 100 × 0.1 + 100² / (2 × 3000) = 10 + 1.67 ≈ 11.7 mm from the moment the contact really occurs.
Verify with the position deviation
Measure and monitor the position deviation. It is the primary criterion for verifying the settings. Two script functions help:
| Function | What it does |
|---|---|
| position_deviation_warning(True, 0.2) | Logs a warning when the position deviation exceeds 20%. See Important deployment points. |
| get_rtde_value("joint_position_deviation_ratio") | Reads the joint position deviation ratio. Monitor it in a parallel thread. |
If the robot shows warnings
In some applications with high payloads where a contact move is performed in every cycle, the default settings have triggered a C174 high-torque warning.
- Check the speed, the deceleration and the position deviation as described above.
- If the behavior of the robot seems wrong, save a flight report and send it to UR support.