Forum Migration Notice
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
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.7K RobotStudio
- 401 UpFeed
- 21 Tutorials
- 16 RobotApps
- 306 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 251 ScreenMaker
- 2.9K Robot Controller
- 367 IRC5
- 91 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 858 RAPID Programming
- 43 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings