Can we check the contents of an array in Robot Studio ?
hasan
✭
in RobotStudio
Hello,
I have declared a 1d array of 'num' and a 2d array of 'robtarget'.
The idea is to populate the 2d array from PC and move robot to each point in the 2d array.
Is there any way to easily check the contents of these arrays for debugging. I tried doing this in RAPID Watch but it does not recognize arrays. The RAID data editor also does not show any of these arrays. ?
So far I am checking by copying each member of the array to a temporary variable (in a loop)and displaying the temporary variable in Rapid watch.
But of course this is just a work around to debug and I have to break the program flow to check each element.
Thanks ~
I have declared a 1d array of 'num' and a 2d array of 'robtarget'.
The idea is to populate the 2d array from PC and move robot to each point in the 2d array.
Is there any way to easily check the contents of these arrays for debugging. I tried doing this in RAPID Watch but it does not recognize arrays. The RAID data editor also does not show any of these arrays. ?
So far I am checking by copying each member of the array to a temporary variable (in a loop)and displaying the temporary variable in Rapid watch.
But of course this is just a work around to debug and I have to break the program flow to check each element.
Thanks ~
Tagged:
0
Best Answer
-
Try viewing the data in the virtual teach pendant. Or the real pendant if this is not a virtual system.Lee Justice5
Answers
-
Thanks for the suggestion, the data can be viewed this way.
But it takes a while to bring up the data both in virtual and real pendant.
Takes about 10mins for the 1000x80 robtarget array.
So not the most convenient way for checking frequently during debugging.0 -
I see, that is a really big array.Lee Justice0
-
If your array is declared as PERS type and you have assigned initial values (zero would be best if checking the data as you can easily tell if something has been written to that element), then when the array elements are written to the initialized value is updated with the new value.
I have found that the update of the values displayed in RobotStudio was slow - may be better now in RW6.xx.
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