Messaging Namespace PC_SDK
Hello,
I was wondering when the eventhandlers for the Messaging Namespace for PC_SDK are released.
Best regards,
F.Roos
Comments
-
Hi,
I wonder what information you are referring to? As far as I know, there has been no intention to add any events to the Messaging namespace. Are you already using IPC messaging?
Best regards,
Ingela Brorsson
Software Engineer
ABB Robotics, Sweden0 -
Hi,
In the controller TASK it is possible to connect a trap routine when a message is received in RMQ. But when you sent messages the other direction. That is from Controller to windows Application. I didn't found a solution with current namespace to handle when a message is received in Queue.
That's where I was referring to. The Eventhandlers when a message is received in Queue.
The .Net system.messaging has eventhandlers when messages is completely received? I can't use these, because then there is a mismatch between ABB.Robotics.controllers.messaging and system.messaging.
Is it possible to create a handler when a new messages from controller is received in Queue?
Best regards,
F. Roos
0 -
Hola,
IPC messaging was released in 5.10.
There isn't an event handler to be notified whenever a message is in the queue. Eventhough, you can create a class which fires an event whenever a message is received: just create a thread which is constantly trying to receive a message:
private static void ServerStart()<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
{
IpcMessage message;
IpcReturnType ret;
try
{
// Assume that _ipcSender is created beforewhile (_ipcSender != null)
{
message = new IpcMessage(Ipc.MaxMessageSize);
// Try to get a messsage, times out after 50mm
ret = _ipcSender.Receive(50, message);
if (ret == IpcReturnType.OK)
{
// Process the message
}}
}
catch (Exception e)
{
MessageBox.Show(e.ToString());
}
}
Saludos/Carlos
Carlos Martinez
ABB0
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