Is it possible to trigger saving PERS values from RAPID?
I am new to RAPID programming and am struggling with the safe storing of PERS-values - especially robtargets.
In my application the values are initialized by declaring the robtargets with values
in a module which is used to store all positions that the operator may have to teach during operation.
The teaching process also is based on assigning new values to those PERS-values from rapid code.
The code works fine, but when reading the handbook I stumbled across a passage that states that
the assignment of new values to persistants only takes place in memory while the program is being executed.
As far as I understand, the new values are only saved back to the program on disk when the following happens:
-module is saved to disk
-program is saved
-program is edited
Since none of these events is supposed to be done by the operator, I now am wondering if the values, that are assigned to the persistants during operation (new positions) will be lost in case of a controller reboot/ power loss.
Is there any possibility to trigger the store-procedure for the persistants from RAPID-code?
Is there a best practice to make sure PERS-values are written back to the disk after being manipulated?
I tried the "save"-"startload" instruction for saving the module and loading it back at startup, but since the program is already running when the load is called and the PERS are already loaded, I get an error-message.
Since the program loads the module automatically, I also cannot unload it before using startload.
Thank you so much for your help.
- 10.2K All Categories
- 5.2K RobotStudio
- 334 UpFeed
- 12 Tutorials
- 1 RobotApps
- 280 PowerPacs
- 403 RobotStudio S4
- 1.7K Developer Tools
- 233 ScreenMaker
- 2.6K Robot Controller
- 214 IRC5
- 31 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 662 RAPID Programming
- 14 Wizard Easy Programming
- 99 Collaborative Robots
- 3 Job listings