Hi
I have Node-RED version 4.0.3 and CPU Siemens 1518F-4 PN/DP with OPC UA server.
After exporting data from PLC to CSV, I want to write one bool in the plc that the export was successful created and then I could delete the data in the plc. The problem occurs when I want to write boolean to true - crash my cmd with node-red.
I created a simple flow where I read the state of the variable from the OPC UA server via inject. That works. When I change the OPC UA configuration to WRITE, Node-RED crashes.
When I do it through another client, both reading and writing the variable work without problems.... Didn't you come across it? Alternatively, where could the problem be?
Thank you
Some additional info:
19 Sep 14:37:58 - [red] Uncaught Exception:
19 Sep 14:37:58 - [error] TypeError: Cannot read properties of undefined (reading 'indexOf')
at module.exports.build_new_dataValue (C:\Users\User.node-red\node_modules\node-red-contrib-opcua\opcua\opcua-basics.js:998:22)
at write_action_input (C:\Users\User.node-red\node_modules\node-red-contrib-opcua\opcua\102-opcuaclient.js:1618:23) at OpcUaClientNode.processInputMsg [as _inputCallback] (C:\Users\User.node-red\node_modules\node-red-contrib-opcua\opcua\102-opcuaclient.js:749:11)
at C:\Users\User\AppData\Roaming\npm\node_modules\node-red\node_modules@node-red\runtime\lib\nodes\Node.js:214:26
at Object.trigger (C:\Users\User\AppData\Roaming\npm\node_modules\node-red\node_modules@node-red\util\lib\hooks.js:166:13)
at Node._emitInput (C:\Users\User\AppData\Roaming\npm\node_modules\node-red\node_modules@node-red\runtime\lib\nodes\Node.js:206:11)
at Node.emit (C:\Users\User\AppData\Roaming\npm\node_modules\node-red\node_modules@node-red\runtime\lib\nodes\Node.js:190:25)
at Node.receive (C:\Users\User\AppData\Roaming\npm\node_modules\node-red\node_modules@node-red\runtime\lib\nodes\Node.js:499:10)
at deliverMessageToDestination (C:\Users\User\AppData\Roaming\npm\node_modules\node-red\node_modules@node-red\runtime\lib\flows\Flow.js:803:40)
at Immediate. (C:\Users\User\AppData\Roaming\npm\node_modules\node-red\node_modules@node-red\runtime\lib\flows\Flow.js:819:21)