# How to send float values to registers without interrupting the script in progress

**URL:** <https://forum.universal-robots.com/t/how-to-send-float-values-to-registers-without-interrupting-the-script-in-progress/32331>\
**Category:** URScript\
**Created:** [January 25, 2024, 8:31am UTC](https://forum.universal-robots.com/t/how-to-send-float-values-to-registers-without-interrupting-the-script-in-progress/32331 "2024-01-25T08:31:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dingyanwei](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/dingyanwei/32/2795_2.png) [@dingyanwei](https://forum.universal-robots.com/u/dingyanwei)\
**Post date:** [January 25, 2024, 8:31am UTC](https://forum.universal-robots.com/t/how-to-send-float-values-to-registers-without-interrupting-the-script-in-progress/32331/1 "2024-01-25T08:31:55Z")

</div>

In my application ,the UR Robot is executing a script, which is sent through the **secondary port**.  
I want to write 6 float numbers to a register by the function **write\_output\_float\_register**.  
In order to ensure **not interrupte the ongoing script**.I tried to send script by RTDE port.  
here is the script.  
def writeOutputFloatRegister():  
write\_output\_float\_register(3, 1.1)  
write\_output\_float\_register(4, 2.2)  
write\_output\_float\_register(5, 3.3)  
write\_output\_float\_register(6, 4.4)  
write\_output\_float\_register(7, 5.5)  
end

I sent it with secondary port ,it worked, but RTDE was not.  
What should I do for this?
