# SIEMENS OPC UA Server crashes after starting flow in EVENT Mode

**URL:** <https://discourse.nodered.org/t/siemens-opc-ua-server-crashes-after-starting-flow-in-event-mode/46798>\
**Category:** Industrial\
**Created:** [7 June 2021 07:35 UTC](https://discourse.nodered.org/t/siemens-opc-ua-server-crashes-after-starting-flow-in-event-mode/46798 "2021-06-07T07:35:59Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![SRmag](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@SRmag](https://discourse.nodered.org/u/SRmag)\
**Post date:** [7 June 2021 07:35 UTC](https://discourse.nodered.org/t/siemens-opc-ua-server-crashes-after-starting-flow-in-event-mode/46798/1 "2021-06-07T07:35:59Z")

</div>

Hello, I'm trying to get Messages and Alarms of a Siemens OPC UA Server (SINUMERIK 840dsl). I've done this with a EVENT-Node of the "node-red-contrib-opcua" library. If I start my flow everything works well and I get my Messages and Alarms. But after this first start my OPC UA Server Crashes and is no longer reachable. I already tried to fix the Problem with the LocaleIds array in the ActivateSessionRequest Method, to send a ["en-us"] back instead of an empty array. But this also changes nothing.

Has anyone the same issue with the Siemens OPC UA Server or does somebody know how to fix it? Or is there any limitation with events? Because I get about 30 Messages at the beginning.

The whole process works with the UaExpert.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [7 June 2021 07:42 UTC](https://discourse.nodered.org/t/siemens-opc-ua-server-crashes-after-starting-flow-in-event-mode/46798/2 "2021-06-07T07:42:55Z")

</div>

OPC UA server should not crash even if you deliberately send it a bunch of nonsense - its just poor programming. You need to contact the products developers and tell them their software is flaky.

> [@SRmag](#):
>
> or does somebody know how to fix it?

You could use s7 nodes and communicate direct to PLC instead.

---

<div class="post-metadata">

**Author:** ![mikakaraila](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mikakaraila/32/37496_2.png) [@mikakaraila](https://discourse.nodered.org/u/mikakaraila)\
**Post date:** [8 June 2021 10:35 UTC](https://discourse.nodered.org/t/siemens-opc-ua-server-crashes-after-starting-flow-in-event-mode/46798/3 "2021-06-08T10:35:40Z")

</div>

Can you provide flow to study it?

---

<div class="post-metadata">

**Author:** ![SRmag](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@SRmag](https://discourse.nodered.org/u/SRmag)\
**Post date:** [8 June 2021 12:05 UTC](https://discourse.nodered.org/t/siemens-opc-ua-server-crashes-after-starting-flow-in-event-mode/46798/5 "2021-06-08T12:05:10Z")

</div>

```auto
[{"id":"1bf0e4.a45c6f1c","type":"tab","label":"Flow 9","disabled":false,"info":""},{"id":"78d53380.f4600c","type":"OpcUa-Event","z":"1bf0e4.a45c6f1c","root":"ns=2;s=Sinumerik","eventtype":"i=2041","name":"","x":620,"y":300,"wires":[["9e63ba28.b37ba8"]]},{"id":"9e63ba28.b37ba8","type":"OpcUa-Client","z":"1bf0e4.a45c6f1c","endpoint":"838a421e.92118","action":"events","deadbandtype":"a","deadbandvalue":1,"time":"2","timeUnit":"s","certificate":"n","localfile":"","localkeyfile":"","securitymode":"None","securitypolicy":"None","name":"","x":820,"y":300,"wires":[["18271375.b5c46d"]]},{"id":"3c220db5.edccb2","type":"inject","z":"1bf0e4.a45c6f1c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":420,"y":300,"wires":[["78d53380.f4600c"]]},{"id":"18271375.b5c46d","type":"debug","z":"1bf0e4.a45c6f1c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1030,"y":300,"wires":[]},{"id":"838a421e.92118","type":"OpcUa-Endpoint","endpoint":"","secpol":"None","secmode":"NONE","login":false}]

```

The Flow is simple and it works if the Server doesn't crash.

---

<div class="post-metadata">

**Author:** ![mikakaraila](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mikakaraila/32/37496_2.png) [@mikakaraila](https://discourse.nodered.org/u/mikakaraila)\
**Post date:** [9 June 2021 09:27 UTC](https://discourse.nodered.org/t/siemens-opc-ua-server-crashes-after-starting-flow-in-event-mode/46798/6 "2021-06-09T09:27:55Z")

</div>

What comes to console on crash?

---

<div class="post-metadata">

**Author:** ![forgiarini](https://avatars.discourse-cdn.com/v4/letter/f/ac8455/32.png) [@forgiarini](https://discourse.nodered.org/u/forgiarini)\
**Post date:** [5 August 2021 19:16 UTC](https://discourse.nodered.org/t/siemens-opc-ua-server-crashes-after-starting-flow-in-event-mode/46798/7 "2021-08-05T19:16:52Z")

</div>

Hi, I have the same problem both with Siemens 840SL (OPC-UA v2) and with Siemens ONE (OPC-UA v3).  
Could you solve the problem?  
Any suggestion?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [5 August 2021 19:20 UTC](https://discourse.nodered.org/t/siemens-opc-ua-server-crashes-after-starting-flow-in-event-mode/46798/8 "2021-08-05T19:20:09Z")

</div>

Did you read [my post](https://discourse.nodered.org/t/siemens-opc-ua-server-crashes-after-starting-flow-in-event-mode/46798/2)?

---

<div class="post-metadata">

**Author:** ![forgiarini](https://avatars.discourse-cdn.com/v4/letter/f/ac8455/32.png) [@forgiarini](https://discourse.nodered.org/u/forgiarini)\
**Post date:** [5 August 2021 19:47 UTC](https://discourse.nodered.org/t/siemens-opc-ua-server-crashes-after-starting-flow-in-event-mode/46798/9 "2021-08-05T19:47:12Z")

</div>

hi!  
if you mean about reading the plc, it's not what I need.  
I need to get the NC events like alarms, and I cannot get them from the PLC.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [5 August 2021 20:00 UTC](https://discourse.nodered.org/t/siemens-opc-ua-server-crashes-after-starting-flow-in-event-mode/46798/10 "2021-08-05T20:00:04Z")

</div>

More about contacting the developers. Their product shouldn't crash.

---

<div class="post-metadata">

**Author:** ![forgiarini](https://avatars.discourse-cdn.com/v4/letter/f/ac8455/32.png) [@forgiarini](https://discourse.nodered.org/u/forgiarini)\
**Post date:** [5 August 2021 20:22 UTC](https://discourse.nodered.org/t/siemens-opc-ua-server-crashes-after-starting-flow-in-event-mode/46798/11 "2021-08-05T20:22:08Z")

</div>

Yes. I think the same.  
A Siemens numeric control cannot crash, whatever you send it.

Inviato dal mio Galaxy

-------- Messaggio originale --------

---

<div class="post-metadata">

**Author:** ![SRmag](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@SRmag](https://discourse.nodered.org/u/SRmag)\
**Post date:** [6 August 2021 06:55 UTC](https://discourse.nodered.org/t/siemens-opc-ua-server-crashes-after-starting-flow-in-event-mode/46798/12 "2021-08-06T06:55:24Z")

</div>

Hey everybody, sorry for the late response. I contacted SIEMENS and they will fix the problem in the newest Version of the OPC Ua Server.  
They will release the new version in the next weeks.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [5 October 2021 06:55 UTC](https://discourse.nodered.org/t/siemens-opc-ua-server-crashes-after-starting-flow-in-event-mode/46798/13 "2021-10-05T06:55:33Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
