How to assigne varible's name in a loop?
Options
WuYue
✭
in RobotStudio
Hi,
I want to write a loop to assign variable names:
For i FROM 1 to 100 DO
VAR pos Mypos_(i) ! I want to have Mypos_1 all the way until Mypos_100. how to achieve this in RAPID?
END
Thanks!
Tagged:
0
Best Answer
-
Not possible to declare variables in code. Why not use an array??? See example picturePer Svensson
Robotics and Vision Specialist
Consat Engineering6
Categories
- All Categories
- 5.4K RobotStudio
- 383 UpFeed
- 14 Tutorials
- 12 RobotApps
- 291 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 247 ScreenMaker
- 2.7K Robot Controller
- 279 IRC5
- 46 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 733 RAPID Programming
- 15 Wizard Easy Programming
- 105 Collaborative Robots
- 3 Job listings