PC SDK event log message types
in RobotStudio
I am using the C# version of the PC SDK 5.61.01 and I have a encoutered a problem with the EventLogMessage.Type property.
I have set up a callback function to handle all event log message in our application. While I do indeed get a callback for alle event log messages, their type seems to be wrong. All error message show their type as Warning and all warning messages have type Information. All information messages also have the Information Type. I have seen this both on the simulator and an actual robot.
Our relevant C# code looks like this:
private void EventMessageCallBack(object sender, MessageWrittenEventArgs e)
{
EventLogMessage message = e.Message;
this.log.Trace(string.Format(
"Received {0} message from controller.\nTitle: {1}\nBody: {2}",
message.Type,
message.Title,
message.Body));
//process message
}
To easily test the problem I added the following to our RAPID program:
ErrWrite "Error", "Error message";
ErrWrite \W, "Warning", "Warning message";
ErrWrite \I, "Information", "Information message";
This results in the following entries in our log file:
Received Warning message from controller. Title: Error *snip*
Received Information message from controller. Title: Warning *snip*
Received Information message from controller. Title: Information *snip*
We also see the same shift with event log messages that are generated by the controller itself. For example all corner path failures show Information as their type rather than Warning.
Is this a bug or am I missing something?
Kind Regards,
Jorik
0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings