Maxing out RMQ message size.
I have a Record that I am trying to send across from my .NET application to the RobotStudio. I progressively added a field and found that it stopped working because I got this error on RobotStudio:
41703: RMQ Error - Data could not be copied
The data type poseRecord exceeds the maximum size supported for the RMQ configured for task T_ROB1.
On the .NET side, my code looks like this:
ABB.Robotics.Controllers.Messaging.IpcQueue robotQueue = controller.Ipc.GetQueue("RMQ_T_ROB1");
byte[] data = System.Text.Encoding.UTF8.GetBytes(formatedMessage);
And data was an array of length 126. When I checked robotQueue.MessageSizeLimit, I found that to be 444. I was able to successfully send the record of length 123.
So I don't understand why this is failing. Also, I see that it is possible to edit the sys.cfg file to increase the limit to 3000. What is the procedure to do this?
I'm running this on RobotStudio 5.60
41703: RMQ Error - Data could not be copied
The data type poseRecord exceeds the maximum size supported for the RMQ configured for task T_ROB1.
On the .NET side, my code looks like this:
ABB.Robotics.Controllers.Messaging.IpcQueue robotQueue = controller.Ipc.GetQueue("RMQ_T_ROB1");
byte[] data = System.Text.Encoding.UTF8.GetBytes(formatedMessage);
ABB.Robotics.Controllers.Messaging.IpcMessage sendMessage = new ABB.Robotics.Controllers.Messaging.IpcMessage();
sendMessage.SetData(data);
sendMessage.Sender = myQueue.QueueId;
robotQueue.Send(sendMessage);
byte[] data = System.Text.Encoding.UTF8.GetBytes(formatedMessage);
And data was an array of length 126. When I checked robotQueue.MessageSizeLimit, I found that to be 444. I was able to successfully send the record of length 123.
So I don't understand why this is failing. Also, I see that it is possible to edit the sys.cfg file to increase the limit to 3000. What is the procedure to do this?
I'm running this on RobotStudio 5.60
Tagged:
0
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)
- 783 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings