Passing I/O into a procedure

Marc
✭
in RobotStudio
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
PROC ProcIO (signaldi blah1, signaldo blah2)
SetDO blah2,1;
WaitDI blah1, 1;
ENDPROC
0
Comments
-
Hello,
If I remember well you need to add VAR to your routine declaration:
PROC ProcIO (VAR signaldi blah1,VAR signaldo blah2)
BR
Peter
0
Categories
- All Categories
- 5.6K RobotStudio
- 399 UpFeed
- 20 Tutorials
- 14 RobotApps
- 301 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 336 IRC5
- 67 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 829 RAPID Programming
- 13 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 107 Collaborative Robots
- 5 Job listings