Question about writing to Rapiddata
Hi,
Just a small question. I'm writing an array of num data to the controller. The question is. Do I have to read every single entry first, before I can write the data, or is there some better method to do this? You can se how I do in the image below.
It actually works this way, I only wonder if there is a better way to do it.
/PerM
Comments
-
Hi,
The ArrayData.FillFromString method is meant to be able to write to a RAPID array in one call - BUT
It has just been discovered that ArrayData.FillFromString is not correctly implemented. This bug exists in previous releases as well. As a workaround the property RapidData.StringValue can be used to read and write small arrays in one call (less than 100 num elements).<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
using (Mastership.Request(m_controller.Rapid))
{ myRapidData.StringValue = "[1.0, 0.5, 0.6, 2.0]"; }Best regards,
Ingela Brorsson
Software Engineer
ABB Robotics, Sweden0
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