Reading large arrays with PCSDK
bryce268
✭
Hi,
I am trying to read a large, but not super large, array from the robot controller with PC SDK. I always get the following error when I try to access the data in the array:
ABB.Robotics.GenericControllerException: The amount of data is to large to fulfill the request.
For a num array, the limit seems to be somewhere between 60 and 120 elements.
Any ideas?
Thanks
I am trying to read a large, but not super large, array from the robot controller with PC SDK. I always get the following error when I try to access the data in the array:
ABB.Robotics.GenericControllerException: The amount of data is to large to fulfill the request.
For a num array, the limit seems to be somewhere between 60 and 120 elements.
Any ideas?
Thanks
0
Comments
-
Hi.I have same problem with target array. Cant read larger than TargetArray{10}Best Regards
Klaus Soenderhegn
www.cadalysator.dk0 -
this is a known limitation that is mentioned in the 5.11 release notes:"It is now possible to read/write a RAPID array of 100 num as one operation, in previous versions the limit was 97 elements. If the array has more than 100 num elements the array must be read and written element by element. Reading/writing an array of 100 elements takes 15 to 200 milliseconds, depending on available resources on the robot controller and the PC. To write one element of an array will also take 15 to 200 milliseconds.?__It sounds like the general workaround is to get the length of the array and just read the contents into a local structure through a FOR loop.Russell Drown0
-
How do you read a single array element at a time? When I try to run the get_item(x) procedure or when I try to get an enumerator I get the same error about the amount of data being too big.
0 -
Never mind, I figured it out. I was working with the Value object instead of the RapidData object.
0 -
It seems to work now, thanks for the tip from the release notes.
0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 798 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings