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.6K RobotStudio
- 398 UpFeed
- 20 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 328 IRC5
- 66 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 822 RAPID Programming
- 9 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings