read numerical array
Marcel
✭✭
Hi
How can I read a numerical RAPID array like:
PERS num nNumberMax{15}:=[5,1,8,3,4,11,0,0,0,0,0,0,0,0,0];
I am programing with C# and PC SDK 5.9.1.
Thank you for your help.
Best regards
Marcel
0
Comments
-
Its pretty well documented in the User's Guide.
Russell Drown0 -
In the meantime I could read numerical and string arrays with a rank of 1. But I have problems with an array with the dimenstion 15 x 15. I can read a RAPID array:
PERS string stKommentarLos{2,7}:=[["a","b","c","d","e","f","g"],["A","B","C","D","E","F","G"]];
I can not read the RAPID array:
PERS string stKommentarLos{2,8}:=[["a","b","c","d","e","f","g","h"],["A","B","C","D","E","F","G","H"]];
I want to read it with:
ABB.Robotics.Controllers.RapidDomain.RapidData rapStr;
ABB.Robotics.Controllers.RapidDomain.ArrayData ard;
ABB.Robotics.Controllers.RapidDomain.IRapidData val;
try
{
rapStr = this.controller.Rapid.GetRapidData(robTask, robModule, rapVariable);
ard = (ABB.Robotics.Controllers.RapidDomain.ArrayData)rapStr.Value;
val = ard[Pos1, Pos2];
...
How can I do it? Thank you for help.
regards
Marcel0
Categories
- All Categories
- 5.5K RobotStudio
- 394 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 309 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings