OPC UA client node error

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 PMnode: PLCmsg : string[25]
"Client node error on: PLC"

9/23/2020, 12:32:27 PMnode: 354de427.6cfe8cns=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

[{"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}]

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

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.

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?

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