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
- 398 UpFeed
- 20 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 328 IRC5
- 65 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 821 RAPID Programming
- 8 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings