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.
Cannot write variable value
jeroen
✭
Hi all,
RapidData rd = this.Controller.Rapid.GetRapidData("TASK", "MODULE", "VARIABLE");
value = (ABB.Robotics.Controllers.RapidDomain.String)rd.Value;Unfortunately I can't get it to write a value the similar way:
rd.Value.FillFromString(value);
I'm trying to change a Rapid program variable's value from an FP C# application.
I can read its value using:
RapidData rd = this.Controller.Rapid.GetRapidData("TASK", "MODULE", "VARIABLE");
value = (ABB.Robotics.Controllers.RapidDomain.String)rd.Value;Unfortunately I can't get it to write a value the similar way:
rd.Value.FillFromString(value);
No error message. Am I missing one final commit instruction?
0
Comments
-
One problem may be that you are passing a Rapid.string into FillFromString instead of a System.string. Here is a snippet that I use for writing to Rapid string data, where "value" is the parameter I pass into my method
RussD2009-02-10 14:59:28
IRapidData iRD = rd.Value;
ABB.Robotics.Controllers.RapidDomain.String iStr = (ABB.Robotics.Controllers.RapidDomain.String)iRD;
iStr.FillFromString(value.ToString());
rd.Value = iStr;
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