Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
Could not read/write variable
berrie
✭
If i try to read or write a variable from the controller, I get the following message:
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
I read a string for example in the following way:
value = Controller.GetRapid().GetRapidData(valName).StringValue;
Does anyone know what this could probably cause?
0
Comments
-
What type of project do you have, PC or FlexPendant? WHat version of RAB and RobotWare do you have?
What RAPID data type are you trying to read? Where is it located in the system, i.e. what is the Task, Module, and Variable name?
What exception type is being raised?
Russell Drown0
Categories
- All Categories
- 5.7K RobotStudio
- 402 UpFeed
- 21 Tutorials
- 16 RobotApps
- 307 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 251 ScreenMaker
- 2.9K Robot Controller
- 368 IRC5
- 92 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 859 RAPID Programming
- 43 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings