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.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings