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.
IRapidData Interface
ReneK
✭
Hello there,
it seems that in RAB5.06, it is not necessary to use the IRapidData Interface anymore. The following code is working:
ABB.Robotics.Controllers.RapidDomain.Num myNum = (ABB.Robotics.Controllers.RapidDomain.Num) myRapidData.Value;
While in RAB5.05 it was necessary to use the IRapidData Interface like this:
ABB.Robotics.Controllers.RapidDomain.IRapidData MyIRapid = MyRapidData.Value;
ABB.Robotics.Controllers.RapidDomain.Num MyNum = (ABB.Robotics.Controllers.RapidDomain.Num) MyIRapid;
Is the "new" way now possible for all Rapid Datatypes? The RAB5.06 manual shows both examples, so for me it is not clear what should be used ?!
BR
Ren?
0
Comments
-
You are now able to use the datatypes directly when the datatype is available for the corresponding rapid data type in CAPI.
It is more complex to use the interface style and in the product documentation etc will change towards the typed way.
Note that you should use the following way to "cast" myRapidData.Value instead of the C-style though.Then myNum is null if wrong type instead of an exception.
ABB.Robotics.Controllers.RapidDomain.Num myNum = myRapidData.Value as ABB.Robotics.Controllers.RapidDomain.Num;0
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