# Position variable has two different positions

**URL:** <https://forum.universal-robots.com/t/position-variable-has-two-different-positions/28615>\
**Category:** Technical Questions\
**Created:** [May 25, 2023, 10:06am UTC](https://forum.universal-robots.com/t/position-variable-has-two-different-positions/28615 "2023-05-25T10:06:21Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![lars.jammer](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@lars.jammer](https://forum.universal-robots.com/u/lars.jammer)\
**Post date:** [May 25, 2023, 10:06am UTC](https://forum.universal-robots.com/t/position-variable-has-two-different-positions/28615/1 "2023-05-25T10:06:21Z")

</div>

Hello all,

we have encountered a problem during programming. We use a pick/place position variable in two different switch cases. The position is in a coordinate system we created.

If we now change the position in one case, this is not taken over in the other case, although it is the same position variable.

I have already set up the two cases again and also created the variables again, so that it results in a link. Both positions have our coordinate system selected.  
The error still exists.

Have you ever encountered something like this or is there already a solution?

Thank you!  
Lars

---

<div class="post-metadata">

**Author:** ![efn](https://avatars.discourse-cdn.com/v4/letter/e/35a633/32.png) [@efn](https://forum.universal-robots.com/u/efn)\
**Post date:** [May 25, 2023, 10:42am UTC](https://forum.universal-robots.com/t/position-variable-has-two-different-positions/28615/2 "2023-05-25T10:42:18Z")

</div>

Can you upload a screenshot of the program? Or maybe the whole program and installation? 🙂

---

<div class="post-metadata">

**Author:** ![lars.jammer](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@lars.jammer](https://forum.universal-robots.com/u/lars.jammer)\
**Post date:** [May 25, 2023, 11:07am UTC](https://forum.universal-robots.com/t/position-variable-has-two-different-positions/28615/3 "2023-05-25T11:07:44Z")

</div>

Thank you for your reply!

As mentioned before, I deleted all the old position variables(which cleared the variable from the list, just to be sure)…then I recreated them already. The position variable is only used in these two cases.

Like said, when I change the position in one case, it isn’t updating the position in the other case right.

 ![Case30](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/e/e20e136fd4e11844c39a7420b20fb4a0fc440a45.png)  
 ![Case35](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/3/366afa0a47653be2e39f62b2c6cfe8c488824f16.png)  
 ![Coordinate_system](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/8/878ce3d3d06580363704964c45f3232384de623a.png)

---

<div class="post-metadata">

**Author:** ![efn](https://avatars.discourse-cdn.com/v4/letter/e/35a633/32.png) [@efn](https://forum.universal-robots.com/u/efn)\
**Post date:** [May 25, 2023, 12:30pm UTC](https://forum.universal-robots.com/t/position-variable-has-two-different-positions/28615/4 "2023-05-25T12:30:17Z")

</div>

I’m not entirely sure, what you mean by position variables and positions in your case.

Is it the Koordinatensystem ICT you change? Or Pre\_PCB\_ICT and PCB\_ICT?

It sounds like you’re editing the frame ICT. But what do you mean by “change the position in one case”?

---

<div class="post-metadata">

**Author:** ![lars.jammer](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@lars.jammer](https://forum.universal-robots.com/u/lars.jammer)\
**Post date:** [May 25, 2023, 1:38pm UTC](https://forum.universal-robots.com/t/position-variable-has-two-different-positions/28615/5 "2023-05-25T13:38:21Z")

</div>

Oh sorry. No with position variables I meant the poses (Pre\_PCB\_ICT and PCB\_ICT).

And I changed the waypoint in one case, but the same waypoint is not getting updated in the other switch-case.

Hope I made it understandable now. 🙂

---

<div class="post-metadata">

**Author:** ![ladislav.hoferek](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@ladislav.hoferek](https://forum.universal-robots.com/u/ladislav.hoferek)\
**Post date:** [May 25, 2023, 3:53pm UTC](https://forum.universal-robots.com/t/position-variable-has-two-different-positions/28615/6 "2023-05-25T15:53:21Z")

</div>

Are the positions Linked? same sign as share/hyperlink here on forum… It is located on the point site on polyscope where you select a name…  
Easiest way to handle this problem is to copy paste the point you want to have → delete 1 and copy paste the other one.

---

<div class="post-metadata">

**Author:** ![efn](https://avatars.discourse-cdn.com/v4/letter/e/35a633/32.png) [@efn](https://forum.universal-robots.com/u/efn)\
**Post date:** [May 26, 2023, 4:53am UTC](https://forum.universal-robots.com/t/position-variable-has-two-different-positions/28615/7 "2023-05-26T04:53:17Z")

</div>

It seems the waypoints are linked. You shouldn’t be able to have two waypoints with the same name in PolyScope 5 without them being linked. 🙂  
I have seen the issue on e-series robots before, if you copy an old program from a CB-series robot to the e-series. Is this the case with your setup?

If not, then maybe it’s an early version of PolyScope 5? You could try updating it to see if that solves the issue.

---

<div class="post-metadata">

**Author:** ![lars.jammer](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@lars.jammer](https://forum.universal-robots.com/u/lars.jammer)\
**Post date:** [May 30, 2023, 5:27am UTC](https://forum.universal-robots.com/t/position-variable-has-two-different-positions/28615/8 "2023-05-30T05:27:02Z")

</div>

The waypoints are linked, right. That is what confuses me.

This program has only been used on one single UR10e.  
Polyscope is almost up to date (5.12), I don’t think updating to 5.13 will change something.

---

<div class="post-metadata">

**Author:** ![lars.jammer](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@lars.jammer](https://forum.universal-robots.com/u/lars.jammer)\
**Post date:** [May 30, 2023, 5:28am UTC](https://forum.universal-robots.com/t/position-variable-has-two-different-positions/28615/9 "2023-05-30T05:28:47Z")

</div>

I already tried a lot. I think there is somehow a problem with the switch cases, they are not updating at all. Since even deleting the cases won’t change anything.

---

<div class="post-metadata">

**Author:** ![tina](https://avatars.discourse-cdn.com/v4/letter/t/48db29/32.png) [@tina](https://forum.universal-robots.com/u/tina)\
**Post date:** [May 31, 2023, 9:00am UTC](https://forum.universal-robots.com/t/position-variable-has-two-different-positions/28615/11 "2023-05-31T09:00:11Z")

</div>

Hi Lars,

when you save the program, open a new one and then reopen your program: are the waypoints positions the same then?

---

<div class="post-metadata">

**Author:** ![lars.jammer](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@lars.jammer](https://forum.universal-robots.com/u/lars.jammer)\
**Post date:** [June 1, 2023, 5:02am UTC](https://forum.universal-robots.com/t/position-variable-has-two-different-positions/28615/12 "2023-06-01T05:02:12Z")

</div>

Hi Made,

I will check that in some days when I am at the UR again, than I will give you a feedback.

Thank you!

---

<div class="post-metadata">

**Author:** ![m.hammerton](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@m.hammerton](https://forum.universal-robots.com/u/m.hammerton)\
**Post date:** [June 2, 2023, 12:55pm UTC](https://forum.universal-robots.com/t/position-variable-has-two-different-positions/28615/13 "2023-06-02T12:55:51Z")

</div>

I had a very similar issue with a variable position  
see Post

> [@Positions don't change after Plane has been re-taught](https://forum.universal-robots.com/t/positions-dont-change-after-plane-has-been-re-taught/23489):
>
> Steps to reproduce: Have a program with linked positions relative to a plane Expected Behavior: When a Plane is re-taught all the linked positions should move relative to the new plane data Actual Behavior: Only the 1st position in the program move to the new relative position Workaround Suggestion: Either re-teach each occurrence of the linked position (Kind of makes linked positions irrelevant) or change the Feature in the move node, unlink the position then er link the position and t…

---

<div class="post-metadata">

**Author:** ![lars.jammer](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@lars.jammer](https://forum.universal-robots.com/u/lars.jammer)\
**Post date:** [June 5, 2023, 4:57am UTC](https://forum.universal-robots.com/t/position-variable-has-two-different-positions/28615/14 "2023-06-05T04:57:02Z")

</div>

Thank you! Looks like they didn’t fix it.

Have you already updated to 5.13? Has the error been fixed?

---

<div class="post-metadata">

**Author:** ![m.hammerton](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@m.hammerton](https://forum.universal-robots.com/u/m.hammerton)\
**Post date:** [June 5, 2023, 6:42am UTC](https://forum.universal-robots.com/t/position-variable-has-two-different-positions/28615/15 "2023-06-05T06:42:47Z")

</div>

I did upgrade it to 5.13. however I didn’t get to test it further as the robot was installed into production.  
an I have left the company.

---

<div class="post-metadata">

**Author:** ![lars.jammer](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@lars.jammer](https://forum.universal-robots.com/u/lars.jammer)\
**Post date:** [June 5, 2023, 8:08am UTC](https://forum.universal-robots.com/t/position-variable-has-two-different-positions/28615/16 "2023-06-05T08:08:25Z")

</div>

Okey thank you!  
Than we will try it out 🙂
