# Clearing read\_input\_float\_register

**URL:** <https://forum.universal-robots.com/t/clearing-read-input-float-register/23564>\
**Category:** Robot Communication\
**Created:** [September 1, 2022, 1:02am UTC](https://forum.universal-robots.com/t/clearing-read-input-float-register/23564 "2022-09-01T01:02:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon37526837](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@anon37526837](https://forum.universal-robots.com/u/anon37526837)\
**Post date:** [September 1, 2022, 1:02am UTC](https://forum.universal-robots.com/t/clearing-read-input-float-register/23564/1 "2022-09-01T01:02:35Z")

</div>

Hi Team,

I am reading input registers from an external RTDE python program and moving the robot based on the values.  
My challenge is when i start the controller program from robot side, the read\_input\_float\_register are having some values , may be from previous program. How to clean them from the control program ?

I wrote the below subprog to clear them added it to the beginning of the before start . But no luck.  
My understanding is it is just reading the register memory. Not removing the data from the memory.  
Is there a way to reset the registers except restarting the robot?

tmp:=p[1,1,1,1,1,1]  
loop tmp!=p[0,0,0,0,0,0]  
tmp[0] = read\_input\_float\_register[24]  
tmp[1] = read\_input\_float\_register[25]  
tmp[2] = read\_input\_float\_register[26]  
tmp[3] = read\_input\_float\_register[27]  
tmp[4] = read\_input\_float\_register[28]  
tmp[5] = read\_input\_float\_register[29]

---

<div class="post-metadata">

**Author:** ![anon13845994](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@anon13845994](https://forum.universal-robots.com/u/anon13845994)\
**Post date:** [November 10, 2022, 12:38am UTC](https://forum.universal-robots.com/t/clearing-read-input-float-register/23564/2 "2022-11-10T00:38:00Z")

</div>

Seconded here. I’m still working on this and will update if I find a solution. Anyone else able to figure this out?
