# Adding ready .urp subprogram by clicking the button

**URL:** <https://forum.universal-robots.com/t/adding-ready-urp-subprogram-by-clicking-the-button/8015>\
**Category:** URScript\
**Created:** [July 3, 2020, 1:03pm UTC](https://forum.universal-robots.com/t/adding-ready-urp-subprogram-by-clicking-the-button/8015 "2020-07-03T13:03:48Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![je1](https://avatars.discourse-cdn.com/v4/letter/j/8dc957/32.png) [@je1](https://forum.universal-robots.com/u/je1)\
**Post date:** [July 8, 2020, 1:23pm UTC](https://forum.universal-robots.com/t/adding-ready-urp-subprogram-by-clicking-the-button/8015/7 "2020-07-08T13:23:41Z")

</div>

Ok, now I understand what I need to do. Thank you 🙂

I’ll have URscript functions in the installation node and I will create some teachable key\_waypoint variables, like in this post: [Accessing Waypoints/Poses in UR Script - #9 by ajp](https://forum.universal-robots.com/t/accessing-waypoints-poses-in-ur-script/2056/9), which I will pass into the script functions.

My last uncertainty is how should I call the urscript function IN ANY PLACE in the robot program? what syntax should it have? I know I can write write.append(“Program\_Name(variables)”) in the Generate Script, but how to call it in any place I need?

---

_[View the full topic](https://forum.universal-robots.com/t/adding-ready-urp-subprogram-by-clicking-the-button/8015)._
