Keeping variable value during controller restart

pacijent
✭✭
Hello to all, could you please advise me how to create and use variables in rapid program that will keep its last value even after controller lost power in the meantime, and have been restarted. Thanks.
0
Comments
-
Hi,
you can use persistent instead of variables. They will keep their values.
Example:
TASK PERS num nExample:=1;
/BR
Micky
0 -
Thanks Micky.0
Categories
- All Categories
- 5.6K RobotStudio
- 399 UpFeed
- 20 Tutorials
- 14 RobotApps
- 301 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 338 IRC5
- 67 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 832 RAPID Programming
- 14 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 107 Collaborative Robots
- 5 Job listings