# PP to Routine to a PROC with arguments

**URL:** <https://tech-community.robotics.abb.com/t/pp-to-routine-to-a-proc-with-arguments/5468>\
**Category:** RobotStudio\
**Created:** [April 18, 2013, 1:31pm UTC](https://tech-community.robotics.abb.com/t/pp-to-routine-to-a-proc-with-arguments/5468 "2013-04-18T13:31:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alyssa\_Wells](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@Alyssa\_Wells](https://tech-community.robotics.abb.com/u/Alyssa_Wells)\
**Post date:** [April 18, 2013, 1:31pm UTC](https://tech-community.robotics.abb.com/t/pp-to-routine-to-a-proc-with-arguments/5468/1 "2013-04-18T13:31:19Z")

</div>

I have a routine with one optional argument that I am unable to use “PP to Routine…” with. The routine doesn’t show up in the list of available routines. Is there any way around this?

---

<div class="post-metadata">

**Author:** ![Anders\_S](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@Anders\_S](https://tech-community.robotics.abb.com/u/Anders_S)\
**Post date:** [April 22, 2013, 7:20am UTC](https://tech-community.robotics.abb.com/t/pp-to-routine-to-a-proc-with-arguments/5468/2 "2013-04-22T07:20:14Z")

</div>

You can’t set PP directly to a routine with optional argument, because then haven’t you defined the argument.

You need to set the PP to the instruction that calls the routine with an optional argument.
