# Move the robot in a direcction until contact

**URL:** <https://forum.universal-robots.com/t/move-the-robot-in-a-direcction-until-contact/20485>\
**Category:** Technical Questions\
**Created:** [April 8, 2022, 1:37pm UTC](https://forum.universal-robots.com/t/move-the-robot-in-a-direcction-until-contact/20485 "2022-04-08T13:37:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon24758380](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@anon24758380](https://forum.universal-robots.com/u/anon24758380)\
**Post date:** [April 8, 2022, 1:37pm UTC](https://forum.universal-robots.com/t/move-the-robot-in-a-direcction-until-contact/20485/1 "2022-04-08T13:37:39Z")

</div>

When in the program add the instrucction direct until contact, in the program appear the fault C271A1, in the inside the instrucción add a accion the sync() for to try improve it, but the problem persist.  
Thanks for the information.

---

<div class="post-metadata">

**Author:** ![anon24758380](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@anon24758380](https://forum.universal-robots.com/u/anon24758380)\
**Post date:** [April 11, 2022, 6:52am UTC](https://forum.universal-robots.com/t/move-the-robot-in-a-direcction-until-contact/20485/2 "2022-04-11T06:52:14Z")

</div>

This problem is solved, the program had a instruction Thread, when in this part the program add a sync(), all correct, but the alarm only appear in the moment that program add the instruction direct until contact, otherwise the program function very well
