# Can't detache

**URL:** https://tech-community.robotics.abb.com/t/cant-detache/8763
**Category:** RobotStudio
**Tags:** robotstudio
**Created:** [March 28, 2019, 8:40am UTC](https://tech-community.robotics.abb.com/t/cant-detache/8763 "2019-03-28T08:40:35Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Jarniiee](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@Jarniiee](https://tech-community.robotics.abb.com/u/Jarniiee)
#### Post date: [March 28, 2019, 8:40am UTC](https://tech-community.robotics.abb.com/t/cant-detache/8763/1 "2019-03-28T08:40:35Z")

</div>

Hey,

I have to take a hollow tube and put it away as a project.  
I can pick up the tube but it won’t let go.  
The tool is made with smart component and has been tested and works manually.  
Below I put my smart component and my path.

Thank you in advance

 ![smart comp.PNG](https://europe1.discourse-cdn.com/flex005/uploads/robotics1/original/2X/1/164350010b96d8a9f99b647116b6faea404dc860.png)  
 ![opstelling.PNG](https://europe1.discourse-cdn.com/flex005/uploads/robotics1/original/2X/f/ff030799022295c981b02b0bcccb1577320c76ca.png)

---

<div class="post-metadata">

### Author: ![veritas](https://avatars.discourse-cdn.com/v4/letter/v/71c47a/32.png) [@veritas](https://tech-community.robotics.abb.com/u/veritas)
#### Post date: [March 28, 2019, 10:34am UTC](https://tech-community.robotics.abb.com/t/cant-detache/8763/2 "2019-03-28T10:34:12Z")

</div>

Try removing the activation of the LineSensor and go from PoseMover(executed) to a logic gate(AND). Also use the LineSensor(SensorOut) to the same logic gate. From that you go to Attacher(execute). The LineSensor(SensedPart) goes both to Attacher(child) and Detacher(child). LineSensor(Active) will not be used.

---

<div class="post-metadata">

### Author: ![Jarniiee](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@Jarniiee](https://tech-community.robotics.abb.com/u/Jarniiee)
#### Post date: [March 28, 2019, 11:21am UTC](https://tech-community.robotics.abb.com/t/cant-detache/8763/3 "2019-03-28T11:21:51Z")

</div>

> [@](#):
>
> Try removing the activation of the LineSensor and go from PoseMover(executed) to a logic gate(AND). Also use the LineSensor(SensorOut) to the same logic gate. From that you go to Attacher(execute). The LineSensor(SensedPart) goes both to Attacher(child) and Detacher(child). LineSensor(Active) will not be used.

 ![image.png](https://europe1.discourse-cdn.com/flex005/uploads/robotics1/original/2X/e/e015699af0125bacbde3fd99b80f5c0fca90177e.png)

---

<div class="post-metadata">

### Author: ![veritas](https://avatars.discourse-cdn.com/v4/letter/v/71c47a/32.png) [@veritas](https://tech-community.robotics.abb.com/u/veritas)
#### Post date: [March 28, 2019, 2:30pm UTC](https://tech-community.robotics.abb.com/t/cant-detache/8763/4 "2019-03-28T14:30:39Z")

</div>

The logic looks right. Try clicking “Active” so that the LineSensor becomes deactivated and then click it again, while the tube is in the correct position. Sometimes the sensor shows as active, but doesn’t recognize the part you are looking for. I have no idéa why that happens, only that double-clicking it usually helps.

---

<div class="post-metadata">

### Author: ![Jarniiee](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@Jarniiee](https://tech-community.robotics.abb.com/u/Jarniiee)
#### Post date: [March 28, 2019, 3:05pm UTC](https://tech-community.robotics.abb.com/t/cant-detache/8763/5 "2019-03-28T15:05:46Z")

</div>

> [@veritas](#):
>
> The logic looks right. Try clicking “Active” so that the LineSensor becomes deactivated and then click it again, while the tube is in the correct position. Sometimes the sensor shows as active, but doesn’t recognize the part you are looking for. I have no idéa why that happens, only that double-clicking it usually helps.
> 
> I found the problem.  
> I have taken back my basic program.  
> But I have inverted the signal between robot and smart component.  
> And now it works how it should be done.
> 
> Thanks for all your effort
> 
> ![image.png](https://europe1.discourse-cdn.com/flex005/uploads/robotics1/original/2X/9/9c3cd17a92814444ba73ec0fe60cfc62d707c8ba.png)  
> ![image.png](https://europe1.discourse-cdn.com/flex005/uploads/robotics1/original/2X/4/476281d7999e88996e2c5d92264d1c3d185d23d4.png)

---

<div class="post-metadata">

### Author: ![veritas](https://avatars.discourse-cdn.com/v4/letter/v/71c47a/32.png) [@veritas](https://tech-community.robotics.abb.com/u/veritas)
#### Post date: [March 29, 2019, 6:33am UTC](https://tech-community.robotics.abb.com/t/cant-detache/8763/6 "2019-03-29T06:33:13Z")

</div>

Good to hear.
