# Installation node values as not retain able after power cycle the robot

**URL:** <https://forum.universal-robots.com/t/installation-node-values-as-not-retain-able-after-power-cycle-the-robot/4456>\
**Category:** URCaps SDK\
**Created:** [June 5, 2019, 5:30pm UTC](https://forum.universal-robots.com/t/installation-node-values-as-not-retain-able-after-power-cycle-the-robot/4456 "2019-06-05T17:30:16Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon94763411](https://avatars.discourse-cdn.com/v4/letter/a/3e96dc/32.png) [@anon94763411](https://forum.universal-robots.com/u/anon94763411)\
**Post date:** [June 5, 2019, 5:30pm UTC](https://forum.universal-robots.com/t/installation-node-values-as-not-retain-able-after-power-cycle-the-robot/4456/1 "2019-06-05T17:30:16Z")

</div>

I am working on URCAP project. We are defining the pose variables in installation node and calling in program node using getinstallation() .  
When we shutdown the robot and start again the values are not getting stored in installation node. We need to reteach all the poses again.  
Is there any way that we can store the variable and it will be retrievable

---

<div class="post-metadata">

**Author:** ![anon82878149](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@anon82878149](https://forum.universal-robots.com/u/anon82878149)\
**Post date:** [June 5, 2019, 6:07pm UTC](https://forum.universal-robots.com/t/installation-node-values-as-not-retain-able-after-power-cycle-the-robot/4456/2 "2019-06-05T18:07:19Z")

</div>

I believe if properly saved, everything should come back.

I’ve seen users not realize they need to “save installation” or use an alternate installation. Values are saved to a specific installation. After we spoke with them they realized it was their mistake.

---

<div class="post-metadata">

**Author:** ![prichlin](https://avatars.discourse-cdn.com/v4/letter/p/b3f665/32.png) [@prichlin](https://forum.universal-robots.com/u/prichlin)\
**Post date:** [June 7, 2019, 1:01pm UTC](https://forum.universal-robots.com/t/installation-node-values-as-not-retain-able-after-power-cycle-the-robot/4456/3 "2019-06-07T13:01:05Z")

</div>

Are the installation variables held through power cycles using a battery on the motherboard?

---

<div class="post-metadata">

**Author:** ![anon94763411](https://avatars.discourse-cdn.com/v4/letter/a/3e96dc/32.png) [@anon94763411](https://forum.universal-robots.com/u/anon94763411)\
**Post date:** [June 10, 2019, 5:21am UTC](https://forum.universal-robots.com/t/installation-node-values-as-not-retain-able-after-power-cycle-the-robot/4456/4 "2019-06-10T05:21:37Z")

</div>

thanks rculhane and prichlin.  
@prichlin - I am not sure how to check and do it. Can you please explain me in detail, so I will follow your instructions.  
@anon82878149 - Yes I have properly saved the variables in installation node. Which will be the alternate way to do it

---

<div class="post-metadata">

**Author:** ![roman.reiner](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/roman.reiner/32/1294_2.png) [@roman.reiner](https://forum.universal-robots.com/u/roman.reiner)\
**Post date:** [June 10, 2019, 2:54pm UTC](https://forum.universal-robots.com/t/installation-node-values-as-not-retain-able-after-power-cycle-the-robot/4456/5 "2019-06-10T14:54:43Z")

</div>

You can create global variables inside the program node section of a urcap and make it a persistedVariable (see api reference). Inside the URCap SDK is a file titled “Working with variables” which explains how you would go about creating a global persisted variable that saves to the installation file and can be loaded/saved on robot shutdown/power up.  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/1/15d0799dce671e2b1d6ed3d382a507b6671e3504.png)  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/0/09dddff3b2019eab362bdcc4a4347866db83d327.png)

---

<div class="post-metadata">

**Author:** ![anon44688573](https://avatars.discourse-cdn.com/v4/letter/a/7993a0/32.png) [@anon44688573](https://forum.universal-robots.com/u/anon44688573)\
**Post date:** [February 10, 2020, 6:52am UTC](https://forum.universal-robots.com/t/installation-node-values-as-not-retain-able-after-power-cycle-the-robot/4456/6 "2020-02-10T06:52:36Z")

</div>

Hello @anon94763411,  
did you manage to find a way to use retentive variables ? I mean did you find a way how to keep the values in variables after powering off the controller of robot ?  
It would mean a lot if you can share your findings on this topic.  
Thanks.

---

<div class="post-metadata">

**Author:** ![anon81989367](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@anon81989367](https://forum.universal-robots.com/u/anon81989367)\
**Post date:** [February 10, 2020, 8:28am UTC](https://forum.universal-robots.com/t/installation-node-values-as-not-retain-able-after-power-cycle-the-robot/4456/7 "2020-02-10T08:28:17Z")

</div>

You can use a xml file for storing data. There are libraries in java for the import/of the data from a such file and you can use these library, but you also must handle  
appropriately when data are stored and retrieved from this file.

---

<div class="post-metadata">

**Author:** ![anon44688573](https://avatars.discourse-cdn.com/v4/letter/a/7993a0/32.png) [@anon44688573](https://forum.universal-robots.com/u/anon44688573)\
**Post date:** [February 10, 2020, 9:30am UTC](https://forum.universal-robots.com/t/installation-node-values-as-not-retain-able-after-power-cycle-the-robot/4456/8 "2020-02-10T09:30:04Z")

</div>

Thank you for the suggestion @anon81989367.

Does the UR offer the possibility to do it inside of a program without using URCap ?

Let’s say when declaring a variable to define it as retentive like in a PLC e.g.

Thanks.
