VAR, PERS,and CONST
Options
Dear all,
I've been informed that PERS data can be stored unless the controller is shut down, but, in my case, the data using PERS is gone after I turn off the controller. Can anyone know what is the conclusions to make data is kept store unless the controller is shutdown, even if I load a new program?
Thank you
BR,
indah carmila
0
Comments
-
Try to create your variable, pers, const in different module.
and ensure that before starting new program. r u saving the current program properly.
If any errors, please try to save each module separately.
Lingaa0 -
Dear Lin,
OK, I will try it. So, when I restore my system, I only load the module that contain my datas. Is it right?
BR,
indah carmila0 -
Hi Carmila.Have you init your PERS with a Value?PERS Num Name:=0;BR KlausBest Regards
Klaus Soenderhegn
www.cadalysator.dk0 -
Dear Klaus,I only write:PERS num name;only that. Is any differences with and without a value ( PERS num name : 0)?Thank youBR,indah carmila0
-
Dear Klaus,I only write:PERS num name;only that. Is there any differences with / without a value? ( PERS num name :=0)Thank youBR,indah carmila0
-
Hi Carmila,
Persistent variables must have an initial value. When u change ur variable value, initialisation value of that persistent updated. So when u load module again controller creates persistent with last initialisation value and that keeps it unchanged.
Erdem Karaçeper0 -
Hi Camaile.That's why it don't work. PERS without init value will do the same as a VAR and not remember the value. Even PP to main will delete the valueBR KlausBest Regards
Klaus Soenderhegn
www.cadalysator.dk0 -
Dear Klaus and Charon,
Thank you for your information.A?
I will change it.A?
BR,
indah carmila0
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