mikakaraila / node-red-contrib-opcua

A Node-RED node to communicate OPC UA. Uses node-opcua library.
Other
214 stars 197 forks source link

Can't write Data in PLC #133

Closed Jelazzaoui closed 4 years ago

Jelazzaoui commented 4 years ago

Hallo maikakraila, I am using node-red-contrib-opcua client to write and read Data from PLC S7-1512. Reading data works with no problems but when i try to write in the PLC i receive this errors: Error at assert (/home/pi/.node-red/node_modules/node-opcua-assert/dist/index.js:6:21) at new NodeId (/home/pi/.node-red/node_modules/node-opcua-nodeid/src/nodeid.js:86:5) at write_action_input (/home/pi/.node-red/node_modules/node-red-contrib-opcua/opcua/102-opcuaclient.js:722:18) at OpcUaClientNode.processInputMsg [as _inputCallback] (/home/pi/.node-red/node_modules/node-red-contrib-opcua/opcua/102-opcuaclient.js:429:11) at OpcUaClientNode.Node._emitInput (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:199:18) at Immediate._onImmediate (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:179:33) at processImmediate (internal/timers.js:439:21)

I wish you could help me to solve this issue. Best regards Jalal Anmerkung 2020-02-11 130701

mikakaraila commented 4 years ago

Please check first with UaExpert that nodeId is correct. Is namespace ns=3 ? Or some other index number?

mikakaraila commented 4 years ago

What is in your flow JSON / string that you inject? If you use browseName it requires namespace index this way: // Parse nodeId string, s=1:PST-007-Alarm-Level@Training?SETPOINT

Jelazzaoui commented 4 years ago

I use OPC Scout V10 to get the the namespace, see the screenshot below: Anmerkung 2020-02-11 142805 Thats what i inject: NodeID;ns=3;s="Baustein_1_DB"."zahl";datatype=Float

mikakaraila commented 4 years ago

It could be something with " characters, just wild idea. Try: ns=3;s=\"Baustein_1_DB\".\"zahl\";datatype=Float

It will need perhaps double \\

Jelazzaoui commented 4 years ago

I tried that, now i dont get errors but i still dont write anything in my PLC

mikakaraila commented 4 years ago

What comes to console? run with option -v node-red -v FLOWFILE.json

mikakaraila commented 4 years ago

Do you inject nodeId as json? Can you change it to item node? Then you inject just numerical value.

image

Jelazzaoui commented 4 years ago

Cosole: 11 Feb 14:51:47 - [info] Flows starten 11 Feb 14:51:47 - [info] Flows gestartet 11 Feb 14:51:47 - [info] Server wird jetzt auf http://127.0.0.1:1880/ ausgeführt. 11 Feb 14:55:16 - [info] Flows stoppen 11 Feb 14:55:16 - [info] Flows gestoppt 11 Feb 14:55:16 - [info] Flows starten 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] No certificate used. 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] [object Object] 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] [object Object] 11 Feb 14:55:16 - [warn] [OpcUa-Client:Write] Write: create Client ... 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] [object Object] 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Client status: create client 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] async series - connecting 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Client status: connecting 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] No certificate used. 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] [object Object] 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] [object Object] 11 Feb 14:55:16 - [warn] [OpcUa-Client:Write] Write: create Client ... 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] [object Object] 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Client status: create client 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] async series - connecting 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Client status: connecting 11 Feb 14:55:16 - [info] Flows gestartet 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] endpoint opc.tcp://192.168.0.1:4840 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Application URI urn:SIMATIC.S7-1500.OPC-UA.Application:PLC_1 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Product URI https://www.siemens.com/s7-1500 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Application Name SIMATIC.S7-1500.OPC-UA.Application:PLC_1 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Security Mode NONE 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] securityPolicyUri http://opcfoundation.org/UA/SecurityPolicy#None 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Type SERVER 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] certificate ... /*endpoint.serverCertificate*/ 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] discoveryUrls opc.tcp://192.168.0.1:4840 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] endpoint opc.tcp://192.168.0.1:4840 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Application URI urn:SIMATIC.S7-1500.OPC-UA.Application:PLC_1 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Product URI https://www.siemens.com/s7-1500 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Application Name SIMATIC.S7-1500.OPC-UA.Application:PLC_1 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Security Mode SIGN 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] securityPolicyUri http://opcfoundation.org/UA/SecurityPolicy#Basic256 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Type SERVER 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] certificate ... /*endpoint.serverCertificate*/ 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] discoveryUrls opc.tcp://192.168.0.1:4840 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] endpoint opc.tcp://192.168.0.1:4840 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Application URI urn:SIMATIC.S7-1500.OPC-UA.Application:PLC_1 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Product URI https://www.siemens.com/s7-1500 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Application Name SIMATIC.S7-1500.OPC-UA.Application:PLC_1 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Security Mode SIGNANDENCRYPT 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] securityPolicyUri http://opcfoundation.org/UA/SecurityPolicy#Basic256 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Type SERVER 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] certificate ... /*endpoint.serverCertificate*/ 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] discoveryUrls opc.tcp://192.168.0.1:4840 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] endpoint opc.tcp://192.168.0.1:4840 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Application URI urn:SIMATIC.S7-1500.OPC-UA.Application:PLC_1 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Product URI https://www.siemens.com/s7-1500 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Application Name SIMATIC.S7-1500.OPC-UA.Application:PLC_1 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Security Mode SIGN 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] securityPolicyUri http://opcfoundation.org/UA/SecurityPolicy#Basic256Sha256 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Type SERVER 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] certificate ... /*endpoint.serverCertificate*/ 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] discoveryUrls opc.tcp://192.168.0.1:4840 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] endpoint opc.tcp://192.168.0.1:4840 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Application URI urn:SIMATIC.S7-1500.OPC-UA.Application:PLC_1 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Product URI https://www.siemens.com/s7-1500 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Application Name SIMATIC.S7-1500.OPC-UA.Application:PLC_1 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Security Mode SIGNANDENCRYPT 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] securityPolicyUri http://opcfoundation.org/UA/SecurityPolicy#Basic256Sha256 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Type SERVER 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] certificate ... /*endpoint.serverCertificate*/ 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] discoveryUrls opc.tcp://192.168.0.1:4840 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Identify Token for : Security Mode= NONE 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] policyId Anonymous 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] tokenType ANONYMOUS 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] issuedTokenType null 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] issuerEndpointUrl null 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] securityPolicyUri null 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Identify Token for : Security Mode= SIGN 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] policyId Anonymous 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] tokenType ANONYMOUS 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] issuedTokenType null 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] issuerEndpointUrl null 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] securityPolicyUri null 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Identify Token for : Security Mode= SIGNANDENCRYPT 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] policyId Anonymous 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] tokenType ANONYMOUS 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] issuedTokenType null 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] issuerEndpointUrl null 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] securityPolicyUri null 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Identify Token for : Security Mode= SIGN 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] policyId Anonymous 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] tokenType ANONYMOUS 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] issuedTokenType null 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] issuerEndpointUrl null 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] securityPolicyUri null 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Identify Token for : Security Mode= SIGNANDENCRYPT 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] policyId Anonymous 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] tokenType ANONYMOUS 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] issuedTokenType null 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] issuerEndpointUrl null 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] securityPolicyUri null 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] async series - create session ... 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] endpoint opc.tcp://192.168.0.1:4840 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Application URI urn:SIMATIC.S7-1500.OPC-UA.Application:PLC_1 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Product URI https://www.siemens.com/s7-1500 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Application Name SIMATIC.S7-1500.OPC-UA.Application:PLC_1 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Security Mode NONE 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] securityPolicyUri http://opcfoundation.org/UA/SecurityPolicy#None 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Type SERVER 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] certificate ... /*endpoint.serverCertificate*/ 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] discoveryUrls opc.tcp://192.168.0.1:4840 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] endpoint opc.tcp://192.168.0.1:4840 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Application URI urn:SIMATIC.S7-1500.OPC-UA.Application:PLC_1 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Product URI https://www.siemens.com/s7-1500 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Application Name SIMATIC.S7-1500.OPC-UA.Application:PLC_1 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Security Mode SIGN 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] securityPolicyUri http://opcfoundation.org/UA/SecurityPolicy#Basic256 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Type SERVER 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] certificate ... /*endpoint.serverCertificate*/ 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] discoveryUrls opc.tcp://192.168.0.1:4840 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] endpoint opc.tcp://192.168.0.1:4840 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Application URI urn:SIMATIC.S7-1500.OPC-UA.Application:PLC_1 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Product URI https://www.siemens.com/s7-1500 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Application Name SIMATIC.S7-1500.OPC-UA.Application:PLC_1 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Security Mode SIGNANDENCRYPT 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] securityPolicyUri http://opcfoundation.org/UA/SecurityPolicy#Basic256 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Type SERVER 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] certificate ... /*endpoint.serverCertificate*/ 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] discoveryUrls opc.tcp://192.168.0.1:4840 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] endpoint opc.tcp://192.168.0.1:4840 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Application URI urn:SIMATIC.S7-1500.OPC-UA.Application:PLC_1 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Product URI https://www.siemens.com/s7-1500 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Application Name SIMATIC.S7-1500.OPC-UA.Application:PLC_1 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Security Mode SIGN 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] securityPolicyUri http://opcfoundation.org/UA/SecurityPolicy#Basic256Sha256 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Type SERVER 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] certificate ... /*endpoint.serverCertificate*/ 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] discoveryUrls opc.tcp://192.168.0.1:4840 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] endpoint opc.tcp://192.168.0.1:4840 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Application URI urn:SIMATIC.S7-1500.OPC-UA.Application:PLC_1 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Product URI https://www.siemens.com/s7-1500 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Application Name SIMATIC.S7-1500.OPC-UA.Application:PLC_1 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Security Mode SIGNANDENCRYPT 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] securityPolicyUri http://opcfoundation.org/UA/SecurityPolicy#Basic256Sha256 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Type SERVER 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] certificate ... /*endpoint.serverCertificate*/ 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] discoveryUrls opc.tcp://192.168.0.1:4840 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Identify Token for : Security Mode= NONE 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] policyId Anonymous 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] tokenType ANONYMOUS 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] issuedTokenType null 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] issuerEndpointUrl null 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] securityPolicyUri null 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Identify Token for : Security Mode= SIGN 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] policyId Anonymous 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] tokenType ANONYMOUS 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] issuedTokenType null 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] issuerEndpointUrl null 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] securityPolicyUri null 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Identify Token for : Security Mode= SIGNANDENCRYPT 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] policyId Anonymous 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] tokenType ANONYMOUS 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] issuedTokenType null 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] issuerEndpointUrl null 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] securityPolicyUri null 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Identify Token for : Security Mode= SIGN 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] policyId Anonymous 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] tokenType ANONYMOUS 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] issuedTokenType null 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] issuerEndpointUrl null 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] securityPolicyUri null 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Identify Token for : Security Mode= SIGNANDENCRYPT 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] policyId Anonymous 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] tokenType ANONYMOUS 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] issuedTokenType null 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] issuerEndpointUrl null 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] securityPolicyUri null 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] async series - create session ... 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] session active 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Client status: session active 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] session active 11 Feb 14:55:16 - [info] [OpcUa-Client:Write] Client status: session active 11 Feb 14:55:17 - [info] [OpcUa-Client:Write] Action on input:write Item from Topic: ns=3;s=\"Baustein_1_DB\".\"zahl\";datatype=Float session Id: ns=1;i=4291172324 11 Feb 14:55:17 - [info] [OpcUa-Client:Write] writing 11 Feb 14:55:17 - [info] [OpcUa-Client:Write] { /*BrowsePath*/ startingNode /* NodeId */: ns=3;s=\"Baustein_1_DB\".\"zahl\";datatype=Float relativePath /* RelativePath */: { elements /* RelativePathElement [] */: [ { /*0*/ referenceTypeId /* NodeId */: ns=0;i=44 isInverse /* Boolean */: false includeSubtypes /* Boolean */: true targetName /* QualifiedName */: <null> } ] } }; 11 Feb 14:55:17 - [info] [OpcUa-Client:Write] msg={"_msgid":"6fdc107.1778ff","topic":"ns=3;s=\\\"Baustein_1_DB\\\".\\\"zahl\\\";datatype=Float","payload":1581429317922,"datatype":"Float"} 11 Feb 14:55:17 - [info] [OpcUa-Client:Write] namespace=3 11 Feb 14:55:17 - [info] [OpcUa-Client:Write] string=\"Baustein_1_DB\".\"zahl\" 11 Feb 14:55:17 - [info] [OpcUa-Client:Write] type=Float 11 Feb 14:55:17 - [info] [OpcUa-Client:Write] value=1581429317922 11 Feb 14:55:17 - [info] [OpcUa-Client:Write] ns=3;s=\"Baustein_1_DB\".\"zahl\" 11 Feb 14:55:17 - [info] [OpcUa-Client:Write] Client status: active writing 11 Feb 14:55:17 - [info] [OpcUa-Client:Write] Value written! 11 Feb 14:55:22 - [info] [OpcUa-Client:Write] Action on input:read Item from Topic: ns=3;s="Baustein_1_DB"."zahl";datatype=Float session Id: ns=1;i=993910840 11 Feb 14:55:22 - [info] [OpcUa-Client:Write] reading 11 Feb 14:55:22 - [info] [OpcUa-Client:Write] {"_msgid":"b6fad0d0.5fa22","topic":"ns=3;s=\"Baustein_1_DB\".\"zahl\"","payload":1581429322191,"datatype":"Float"} 11 Feb 14:55:22 - [info] [OpcUa-Client:Write] Client status: active reading 11 Feb 14:55:22 - [info] [OpcUa-Client:Write] Node : ns=3;s="Baustein_1_DB"."zahl" 11 Feb 14:55:22 - [info] [OpcUa-Client:Write] DataValue: value: Variant(Scalar<Float>, value: 10) statusCode: Good (0x00000) serverTimestamp: null sourceTimestamp: null 11 Feb 14:55:22 - [info] [OpcUa-Client:Write] Value : 10 11 Feb 14:55:22 - [info] [OpcUa-Client:Write] DataType: 10 (Float) 11 Feb 14:55:22 - [info] [OpcUa-Client:Write] Message: ns=3;s="Baustein_1_DB"."zahl" (Float) 11 Feb 14:55:22 - [info] [OpcUa-Client:Write] Status-Code:Good (0x00000) 11 Feb 14:55:23 - [info] [OpcUa-Client:Write] Action on input:read Item from Topic: ns=3;s="Baustein_1_DB"."zahl";datatype=Float session Id: ns=1;i=993910840 11 Feb 14:55:23 - [info] [OpcUa-Client:Write] reading 11 Feb 14:55:23 - [info] [OpcUa-Client:Write] {"_msgid":"ce7298fd.1d2f68","topic":"ns=3;s=\"Baustein_1_DB\".\"zahl\"","payload":1581429323449,"datatype":"Float"} 11 Feb 14:55:23 - [info] [OpcUa-Client:Write] Client status: active reading 11 Feb 14:55:23 - [info] [OpcUa-Client:Write] Node : ns=3;s="Baustein_1_DB"."zahl" 11 Feb 14:55:23 - [info] [OpcUa-Client:Write] DataValue: value: Variant(Scalar<Float>, value: 10) statusCode: Good (0x00000) serverTimestamp: null sourceTimestamp: null 11 Feb 14:55:23 - [info] [OpcUa-Client:Write] Value : 10 11 Feb 14:55:23 - [info] [OpcUa-Client:Write] DataType: 10 (Float) 11 Feb 14:55:23 - [info] [OpcUa-Client:Write] Message: ns=3;s="Baustein_1_DB"."zahl" (Float) 11 Feb 14:55:23 - [info] [OpcUa-Client:Write] Status-Code:Good (0x00000) 11 Feb 14:55:24 - [info] [OpcUa-Client:Write] Action on input:write Item from Topic: ns=3;s=\"Baustein_1_DB\".\"zahl\";datatype=Float session Id: ns=1;i=4291172324 11 Feb 14:55:24 - [info] [OpcUa-Client:Write] writing 11 Feb 14:55:24 - [info] [OpcUa-Client:Write] { /*BrowsePath*/ startingNode /* NodeId */: ns=3;s=\"Baustein_1_DB\".\"zahl\";datatype=Float relativePath /* RelativePath */: { elements /* RelativePathElement [] */: [ { /*0*/ referenceTypeId /* NodeId */: ns=0;i=44 isInverse /* Boolean */: false includeSubtypes /* Boolean */: true targetName /* QualifiedName */: <null> } ] } }; 11 Feb 14:55:24 - [info] [OpcUa-Client:Write] msg={"_msgid":"ce22ee9.c7d331","topic":"ns=3;s=\\\"Baustein_1_DB\\\".\\\"zahl\\\";datatype=Float","payload":1581429324203,"datatype":"Float"} 11 Feb 14:55:24 - [info] [OpcUa-Client:Write] namespace=3 11 Feb 14:55:24 - [info] [OpcUa-Client:Write] string=\"Baustein_1_DB\".\"zahl\" 11 Feb 14:55:24 - [info] [OpcUa-Client:Write] type=Float 11 Feb 14:55:24 - [info] [OpcUa-Client:Write] value=1581429324203 11 Feb 14:55:24 - [info] [OpcUa-Client:Write] ns=3;s=\"Baustein_1_DB\".\"zahl\" 11 Feb 14:55:24 - [info] [OpcUa-Client:Write] Client status: active writing 11 Feb 14:55:24 - [info] [OpcUa-Client:Write] Value written! 11 Feb 14:55:25 - [info] [OpcUa-Client:Write] Action on input:write Item from Topic: ns=3;s=\"Baustein_1_DB\".\"zahl\";datatype=Float session Id: ns=1;i=4291172324 11 Feb 14:55:25 - [info] [OpcUa-Client:Write] writing 11 Feb 14:55:25 - [info] [OpcUa-Client:Write] { /*BrowsePath*/ startingNode /* NodeId */: ns=3;s=\"Baustein_1_DB\".\"zahl\";datatype=Float relativePath /* RelativePath */: { elements /* RelativePathElement [] */: [ { /*0*/ referenceTypeId /* NodeId */: ns=0;i=44 isInverse /* Boolean */: false includeSubtypes /* Boolean */: true targetName /* QualifiedName */: <null> } ] } }; 11 Feb 14:55:25 - [info] [OpcUa-Client:Write] msg={"_msgid":"b596ceee.569c9","topic":"ns=3;s=\\\"Baustein_1_DB\\\".\\\"zahl\\\";datatype=Float","payload":1581429325138,"datatype":"Float"} 11 Feb 14:55:25 - [info] [OpcUa-Client:Write] namespace=3 11 Feb 14:55:25 - [info] [OpcUa-Client:Write] string=\"Baustein_1_DB\".\"zahl\" 11 Feb 14:55:25 - [info] [OpcUa-Client:Write] type=Float 11 Feb 14:55:25 - [info] [OpcUa-Client:Write] value=1581429325138 11 Feb 14:55:25 - [info] [OpcUa-Client:Write] ns=3;s=\"Baustein_1_DB\".\"zahl\" 11 Feb 14:55:25 - [info] [OpcUa-Client:Write] Client status: active writing 11 Feb 14:55:25 - [info] [OpcUa-Client:Write] Value written! 11 Feb 14:55:26 - [info] [OpcUa-Client:Write] Action on input:write Item from Topic: ns=3;s=\"Baustein_1_DB\".\"zahl\";datatype=Float session Id: ns=1;i=4291172324 11 Feb 14:55:26 - [info] [OpcUa-Client:Write] writing 11 Feb 14:55:26 - [info] [OpcUa-Client:Write] { /*BrowsePath*/ startingNode /* NodeId */: ns=3;s=\"Baustein_1_DB\".\"zahl\";datatype=Float relativePath /* RelativePath */: { elements /* RelativePathElement [] */: [ { /*0*/ referenceTypeId /* NodeId */: ns=0;i=44 isInverse /* Boolean */: false includeSubtypes /* Boolean */: true targetName /* QualifiedName */: <null> } ] } }; 11 Feb 14:55:26 - [info] [OpcUa-Client:Write] msg={"_msgid":"a27dc236.707f8","topic":"ns=3;s=\\\"Baustein_1_DB\\\".\\\"zahl\\\";datatype=Float","payload":1581429326089,"datatype":"Float"} 11 Feb 14:55:26 - [info] [OpcUa-Client:Write] namespace=3 11 Feb 14:55:26 - [info] [OpcUa-Client:Write] string=\"Baustein_1_DB\".\"zahl\" 11 Feb 14:55:26 - [info] [OpcUa-Client:Write] type=Float 11 Feb 14:55:26 - [info] [OpcUa-Client:Write] value=1581429326089 11 Feb 14:55:26 - [info] [OpcUa-Client:Write] ns=3;s=\"Baustein_1_DB\".\"zahl\" 11 Feb 14:55:26 - [info] [OpcUa-Client:Write] Client status: active writing 11 Feb 14:55:26 - [info] [OpcUa-Client:Write] Value written! 11 Feb 14:55:31 - [info] [OpcUa-Client:Write] Action on input:write Item from Topic: ns=3;s=\"Baustein_1_DB\".\"zahl\";datatype=Float session Id: ns=1;i=4291172324 11 Feb 14:55:31 - [info] [OpcUa-Client:Write] writing 11 Feb 14:55:31 - [info] [OpcUa-Client:Write] { /*BrowsePath*/ startingNode /* NodeId */: ns=3;s=\"Baustein_1_DB\".\"zahl\";datatype=Float relativePath /* RelativePath */: { elements /* RelativePathElement [] */: [ { /*0*/ referenceTypeId /* NodeId */: ns=0;i=44 isInverse /* Boolean */: false includeSubtypes /* Boolean */: true targetName /* QualifiedName */: <null> } ] } }; 11 Feb 14:55:31 - [info] [OpcUa-Client:Write] msg={"_msgid":"9d045916.41b7c8","topic":"ns=3;s=\\\"Baustein_1_DB\\\".\\\"zahl\\\";datatype=Float","payload":1581429331369,"datatype":"Float"} 11 Feb 14:55:31 - [info] [OpcUa-Client:Write] namespace=3 11 Feb 14:55:31 - [info] [OpcUa-Client:Write] string=\"Baustein_1_DB\".\"zahl\" 11 Feb 14:55:31 - [info] [OpcUa-Client:Write] type=Float 11 Feb 14:55:31 - [info] [OpcUa-Client:Write] value=1581429331369 11 Feb 14:55:31 - [info] [OpcUa-Client:Write] ns=3;s=\"Baustein_1_DB\".\"zahl\" 11 Feb 14:55:31 - [info] [OpcUa-Client:Write] Client status: active writing 11 Feb 14:55:31 - [info] [OpcUa-Client:Write] Value written! Server State = Running Server State = Running

mikakaraila commented 4 years ago

Client says: "Client status: active writing 11 Feb 14:55:17 - [info] [OpcUa-Client:Write] Value written!"

Next question is there other program writing to same DB? At PLC program perhaps?

Or is value really static (constant) even it is RW on OPC UA...

Jelazzaoui commented 4 years ago

It works fine now! I just removed the slaches \ . I have no idea why is it working right now. But anyway thank you so much for your help!

mikakaraila commented 4 years ago

Good, most probably something was wrong in the original flow