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.6K RobotStudio
- 401 UpFeed
- 21 Tutorials
- 15 RobotApps
- 306 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.9K Robot Controller
- 363 IRC5
- 80 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 853 RAPID Programming
- 30 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 110 Collaborative Robots
- 5 Job listings
