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