"switch" optional parameters
RobTech
✭
hello everyone, i am looking for someone to help me with a Rapid program i'm working on. I am using a switch datatype which allows for optional parameter to be on or off. but in my case i'm having trouble with making it work. it says that my proc is an invalid entrypoint saying the reason is because its either local or has parameters but i understand that it has parameters. i am needing these parameters to make my program run the way that I'm needing. is if someone could help it would be most appreciated.
0
Comments
-
Hello RobTech
Did you try to make another procc (without parameters) the entry point and then call your procc with parameters?
The entry point is the first thing that will run on startup, so there is nothing before that can set its parameters.
Example:MODULE PROGPERS num parameter;PROC main() !EntrypointproccWithParams parameter;ENDPROCPROC proccWithParams(num parameter)ENDPROCENDMODULE
/Pavel0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 799 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings