# Passing I/O into a procedure

**URL:** <https://tech-community.robotics.abb.com/t/passing-i-o-into-a-procedure/5970>\
**Category:** RobotStudio\
**Created:** [February 19, 2014, 9:14am UTC](https://tech-community.robotics.abb.com/t/passing-i-o-into-a-procedure/5970 "2014-02-19T09:14:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marc](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@Marc](https://tech-community.robotics.abb.com/u/Marc)\
**Post date:** [February 19, 2014, 9:14am UTC](https://tech-community.robotics.abb.com/t/passing-i-o-into-a-procedure/5970/1 "2014-02-19T09:14:39Z")

</div>

Hi, I want to be able to pass I/O into a procedure. The closest I have come is (see below) but “signaldi” is not a value. Is there a way to do this?

PROC ProcIO (signaldi blah1, signaldo blah2)  
SetDO blah2,1;  
WaitDI blah1, 1;  
ENDPROC

---

<div class="post-metadata">

**Author:** ![kioog](https://avatars.discourse-cdn.com/v4/letter/k/e47c2d/32.png) [@kioog](https://tech-community.robotics.abb.com/u/kioog)\
**Post date:** [February 19, 2014, 3:41pm UTC](https://tech-community.robotics.abb.com/t/passing-i-o-into-a-procedure/5970/2 "2014-02-19T15:41:39Z")

</div>

Hello,

If I remember well you need to add VAR to your routine declaration:

PROC ProcIO (VAR signaldi blah1,VAR signaldo blah2)

BR

Peter
