# OPC UA client node error

**URL:** <https://discourse.nodered.org/t/opc-ua-client-node-error/33222>\
**Category:** Industrial\
**Created:** [23 September 2020 10:38 UTC](https://discourse.nodered.org/t/opc-ua-client-node-error/33222 "2020-09-23T10:38:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Barry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/john_barry/32/28987_2.png) [@John\_Barry](https://discourse.nodered.org/u/John_Barry)\
**Post date:** [23 September 2020 10:38 UTC](https://discourse.nodered.org/t/opc-ua-client-node-error/33222/1 "2020-09-23T10:38:25Z")

</div>

Hi,  
I have a working flow reading values from a PLC using OPC UA.  
The debug node returns the correct value but is followed by an error message "Client node error on: PLC"  
Any ideas why this error is there?

9/23/2020, 12:32:27 PM[node: PLC](http://10.0.0.105:1880/#)msg : string[25]  
"Client node error on: PLC"

9/23/2020, 12:32:27 PM[node: 354de427.6cfe8c](http://10.0.0.105:1880/#)ns=4;s=Arp.Plc.Eclr/Curing1\_Humidity : msg : Object  
object  
\_msgid: "8a9a6674.888bd8"  
topic: "ns=4;s=Arp.Plc.Eclr/Curing1\_Humidity"  
datatype: "Real"  
payload: 65.76667022705078  
statusCode: object

```auto
[{"id":"a76730ee.dd86e","type":"inject","z":"cbd7a6f3.2501a8","name":"Curing1_Humidity","props":[{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"ns=4;s=Arp.Plc.Eclr/Curing1_Humidity;datatype=Real","payloadType":"str","x":690,"y":200,"wires":[["29b65a21.548346"]]},{"id":"29b65a21.548346","type":"OpcUa-Client","z":"cbd7a6f3.2501a8","endpoint":"2dc95988.0b8d76","action":"read","deadbandtype":"a","deadbandvalue":1,"time":10,"timeUnit":"s","certificate":"n","localfile":"","securitymode":"None","securitypolicy":"None","name":"PLC","x":890,"y":200,"wires":[["ac3b13e9.1af5d","354de427.6cfe8c"]]},{"id":"7dc9bdab.a6fcb4","type":"debug","z":"cbd7a6f3.2501a8","name":"","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":1190,"y":200,"wires":[]},{"id":"ac3b13e9.1af5d","type":"function","z":"cbd7a6f3.2501a8","name":"Fix decimal","func":"msg.payload = parseFloat(msg.payload.toFixed(1))\nreturn msg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1030,"y":200,"wires":[["7dc9bdab.a6fcb4"]]},{"id":"354de427.6cfe8c","type":"debug","z":"cbd7a6f3.2501a8","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1060,"y":260,"wires":[]},{"id":"2dc95988.0b8d76","type":"OpcUa-Endpoint","z":"","endpoint":"opc.tcp://10.0.0.99:4840","secpol":"None","secmode":"NONE","login":false}]

```

---

<div class="post-metadata">

**Author:** ![binflo13](https://avatars.discourse-cdn.com/v4/letter/b/a88e57/32.png) [@binflo13](https://discourse.nodered.org/u/binflo13)\
**Post date:** [29 September 2020 14:22 UTC](https://discourse.nodered.org/t/opc-ua-client-node-error/33222/2 "2020-09-29T14:22:15Z")

</div>

Hello John,

I have the same error when reading the variables from a Siemens s7-s1500 PLC. Have you been able to solve the problem?

Regards,

Binflo

---

<div class="post-metadata">

**Author:** ![binflo13](https://avatars.discourse-cdn.com/v4/letter/b/a88e57/32.png) [@binflo13](https://discourse.nodered.org/u/binflo13)\
**Post date:** [30 September 2020 13:09 UTC](https://discourse.nodered.org/t/opc-ua-client-node-error/33222/3 "2020-09-30T13:09:35Z")

</div>

In my case, it seems the error was I was choosing the wrong datatype. The OpcUA item might help you choose the right datatype. I solved most of the readings that way, but I still have the error with a Float32Array.

---

<div class="post-metadata">

**Author:** ![John\_Barry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/john_barry/32/28987_2.png) [@John\_Barry](https://discourse.nodered.org/u/John_Barry)\
**Post date:** [16 October 2020 06:23 UTC](https://discourse.nodered.org/t/opc-ua-client-node-error/33222/4 "2020-10-16T06:23:18Z")

</div>

Hi binflo,

Unfortunately I haven't been able to solve this but when I do I will update this thread. If anyone else has had some success please share your fix?

---

<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:** [15 December 2020 06:23 UTC](https://discourse.nodered.org/t/opc-ua-client-node-error/33222/5 "2020-12-15T06:23:26Z")

</div>

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