# How to define parameters from an URCap to the built-in nodes without the sub tree formation?

**URL:** <https://forum.universal-robots.com/t/how-to-define-parameters-from-an-urcap-to-the-built-in-nodes-without-the-sub-tree-formation/4798>\
**Category:** URCap Development\
**Created:** [July 25, 2019, 7:57am UTC](https://forum.universal-robots.com/t/how-to-define-parameters-from-an-urcap-to-the-built-in-nodes-without-the-sub-tree-formation/4798 "2019-07-25T07:57:01Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon71387359](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@anon71387359](https://forum.universal-robots.com/u/anon71387359)\
**Post date:** [July 25, 2019, 7:57am UTC](https://forum.universal-robots.com/t/how-to-define-parameters-from-an-urcap-to-the-built-in-nodes-without-the-sub-tree-formation/4798/1 "2019-07-25T07:57:01Z")

</div>

Hello all,

I am sending parameters from the URCap to the built in program nodes like movej.  
The move nodes also follows the given values while moving.  
I know it is possible to achieve this with the help of parent child relationship.  
How to implement this without making the movej the child of the URCap? (without the sub tree formation, like an independent node).

Thank you, in advance.

---

<div class="post-metadata">

**Author:** ![m.birkholz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/m.birkholz/32/7084_2.png) [@m.birkholz](https://forum.universal-robots.com/u/m.birkholz)\
**Post date:** [July 26, 2019, 11:28am UTC](https://forum.universal-robots.com/t/how-to-define-parameters-from-an-urcap-to-the-built-in-nodes-without-the-sub-tree-formation/4798/2 "2019-07-26T11:28:22Z")

</div>

what you basically need is the object reference of the MoveNode which means you need the RootTree reference of the Robot Program itself which is not intended and not possible through the URCap API as a URCap itself only has the ability to modify any program Nodes that are inserted as a child (and therefore having the object reference).

What is your task? maybe there’s a simpler solution instead outside-of-urcap-manipulation

---

<div class="post-metadata">

**Author:** ![anon71387359](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@anon71387359](https://forum.universal-robots.com/u/anon71387359)\
**Post date:** [July 26, 2019, 11:47am UTC](https://forum.universal-robots.com/t/how-to-define-parameters-from-an-urcap-to-the-built-in-nodes-without-the-sub-tree-formation/4798/3 "2019-07-26T11:47:04Z")

</div>

Thank you for your response.

The task is to enter the parameters in the URCap.  
The move nodes also follows the parameters which are entered in the URCap. The move nodes must be independant. Not as a child node to the URCap.

---

<div class="post-metadata">

**Author:** ![m.birkholz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/m.birkholz/32/7084_2.png) [@m.birkholz](https://forum.universal-robots.com/u/m.birkholz)\
**Post date:** [July 26, 2019, 2:27pm UTC](https://forum.universal-robots.com/t/how-to-define-parameters-from-an-urcap-to-the-built-in-nodes-without-the-sub-tree-formation/4798/4 "2019-07-26T14:27:47Z")

</div>

which parameters do you check while moving to the waypoint which should be independent from your urcap? If you don’t need access to the waypoint parameters (speed, blend, target pose, etc.) it should be working with a thread which you can start from your urcap e.g. a thread that is waiting for an IO and halts the program (pausing doesn’t work inside threads directly, you need a bypass e.g. IO bridge that sets an output which is configured to 'pause program‘)

---

<div class="post-metadata">

**Author:** ![m.birkholz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/m.birkholz/32/7084_2.png) [@m.birkholz](https://forum.universal-robots.com/u/m.birkholz)\
**Post date:** [July 26, 2019, 5:22pm UTC](https://forum.universal-robots.com/t/how-to-define-parameters-from-an-urcap-to-the-built-in-nodes-without-the-sub-tree-formation/4798/6 "2019-07-26T17:22:44Z")

</div>

In what way are the waypoints controlled? Which parameters do you like to change while moving? If its not the pose it should be possible. note that only one (main) thread has the ability to move the robot

---

<div class="post-metadata">

**Author:** ![anon71387359](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@anon71387359](https://forum.universal-robots.com/u/anon71387359)\
**Post date:** [July 26, 2019, 5:30pm UTC](https://forum.universal-robots.com/t/how-to-define-parameters-from-an-urcap-to-the-built-in-nodes-without-the-sub-tree-formation/4798/7 "2019-07-26T17:30:16Z")

</div>

The parameters entered from the URCap are not related to the waypoints at all.  
Is it impossible to access the speed parameter?

---

<div class="post-metadata">

**Author:** ![m.birkholz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/m.birkholz/32/7084_2.png) [@m.birkholz](https://forum.universal-robots.com/u/m.birkholz)\
**Post date:** [July 28, 2019, 1:46pm UTC](https://forum.universal-robots.com/t/how-to-define-parameters-from-an-urcap-to-the-built-in-nodes-without-the-sub-tree-formation/4798/8 "2019-07-28T13:46:04Z")

</div>

Check [This](https://forum.universal-robots.com/t/change-move-speed/4206/4) thread. @ajp‘s answer should adress your issue 🙂

---

<div class="post-metadata">

**Author:** ![anon71387359](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@anon71387359](https://forum.universal-robots.com/u/anon71387359)\
**Post date:** [July 28, 2019, 2:33pm UTC](https://forum.universal-robots.com/t/how-to-define-parameters-from-an-urcap-to-the-built-in-nodes-without-the-sub-tree-formation/4798/9 "2019-07-28T14:33:32Z")

</div>

Thank you so much for your help.  
I will try the thread option to solve my problem.  
I will also check the post related to the move speed.

In addition to that, i was wondering which command to use to set the output to pause the program inside a thread. So far i am using the pop up to stop the program.

---

<div class="post-metadata">

**Author:** ![m.birkholz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/m.birkholz/32/7084_2.png) [@m.birkholz](https://forum.universal-robots.com/u/m.birkholz)\
**Post date:** [July 29, 2019, 6:07am UTC](https://forum.universal-robots.com/t/how-to-define-parameters-from-an-urcap-to-the-built-in-nodes-without-the-sub-tree-formation/4798/10 "2019-07-29T06:07:37Z")

</div>

there is no direct command to pause the program but what you can do is to connect to the dashboard server and send a pause command e.g.

> global sock = socket\_open(“127.0.0.1”,29999)  
> socket\_send\_line(“pause”)

`

---

<div class="post-metadata">

**Author:** ![anon71387359](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@anon71387359](https://forum.universal-robots.com/u/anon71387359)\
**Post date:** [July 29, 2019, 7:10am UTC](https://forum.universal-robots.com/t/how-to-define-parameters-from-an-urcap-to-the-built-in-nodes-without-the-sub-tree-formation/4798/11 "2019-07-29T07:10:35Z")

</div>

Thanks a million.  
Have a good day.
