Login  •  Register


Event Monitoring Siemens Sinumerik 840D sl

Questions regarding the use of the .NET SDK 2.0 for Server or Client development or integration into customer products ...

Event Monitoring Siemens Sinumerik 840D sl

Postby JanKapp » 11 Mar 2019, 11:09

Hello

I am having the following issue:

I am trying to monitor the alarms of the OPC UA Server on the Siemens Sinumerik 840D sl. If I create the "Sinumerik; NS=2" as event monitored item the server is shutting down and has to be restarted. The monitoring of data variables is working. Both times I am doing it with the following steps:


- create Session --> successful
- create Subscription --> successful
- create data monitored item --> successful


- create Session --> successful
- create Subscription --> successful
- create event monitored item --> server is shutting down


I have found a link which describes this problem. The solution however is for a JavaScript Client. Iam using the .NET SDK and I am not able to solve this problem.
https://github.com/node-opcua/node-opcua/issues/541

The Event Monitoring with UaExpert is working successfully.

This is the code which shuts down the server:

Code: Select all
NodeId nodeId;
nodeId = new NodeId("Sinumerik", 2);
EventMonitoredItem monitoredItem = new EventMonitoredItem(nodeId);
var monitoredItems = new List<MonitoredItem> { monitoredItem };
List<StatusCode> results = subscription.CreateMonitoredItems(monitoredItems, new RequestSettings() { OperationTimeout = 10000 });




Thank you in advance

Best regards,

Jan Senftleben
JanKapp
Newbie
Newbie
 
Posts: 2
Joined: 11 Mar 2019, 10:44

Re: Event Monitoring Siemens Sinumerik 840D sl

Postby JanKapp » 12 Mar 2019, 12:47

Hello,

I found the solution by myself.

To prevent the Server from crashing it is neccessary to add the language of the alarm messages.

This has to be done when creating the new session.

Code: Select all
 session = new Session();
 session.PreferredLocales = new List<string> { "[en-US]" };


The technical support from Siemens said that it only appears in Version 2.1. Version 2.2 fixed this problem.

Best regards,
Jan
JanKapp
Newbie
Newbie
 
Posts: 2
Joined: 11 Mar 2019, 10:44


Return to .NET based OPC UA SDK

Who is online

Users browsing this forum: No registered users and 3 guests