# Calling subprogramm from another subprogramm

**URL:** https://forum.universal-robots.com/t/calling-subprogramm-from-another-subprogramm/218
**Category:** Product Wishlist
**Tags:** welding
**Created:** [September 7, 2016, 1:17pm UTC](https://forum.universal-robots.com/t/calling-subprogramm-from-another-subprogramm/218 "2016-09-07T13:17:51Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![eric.feldmann](https://avatars.discourse-cdn.com/v4/letter/e/94ad74/32.png) [@eric.feldmann](https://forum.universal-robots.com/u/eric.feldmann)
#### Post date: [January 10, 2022, 6:30pm UTC](https://forum.universal-robots.com/t/calling-subprogramm-from-another-subprogramm/218/8 "2022-01-10T18:30:49Z")

</div>

I’ll leave this here, because it is essentially exactly what this request is for:

![image](https://us1.discourse-cdn.com/flex020/uploads/universal_robots/original/2X/6/6d9d494e30c8207c6a298ecc8a6ba6b07d42b5e8.png)

You can simply insert a subprogram without a Call instruction, and execute the subprogram via a script line with the name of the subprogram and (). Using this method, you can call subprograms from other subprograms no problem. See this other reply for another example:

> [@Jump Flag Program Node](https://forum.universal-robots.com/t/jump-flag-program-node/17355/2):
>
> While not an explicit Polyscope Node, you can already achieve this functionality using a combination of Switch/Case and subprogram calls (or script function calls). Let your main program consist entirely of one large switch/case, and let sensors (possibly put in threads) set the switching variable. Each case can contain a single line, a Call Subprogram instruction. The only downside to this method is that subprograms cannot be called from within subprograms. (Not cleanly through Polyscope, anywa…

---

_[View the full topic](https://forum.universal-robots.com/t/calling-subprogramm-from-another-subprogramm/218)._
