BiancoRoyal / node-red-contrib-iiot-opcua

deprecated - very new developed by PLUS for Node-RED - https://plus4nodered.com
https://www.npmjs.com/package/node-red-contrib-iiot-opcua
BSD 3-Clause "New" or "Revised" License
34 stars 8 forks source link

Node did not write and needs types to work #46

Closed biancode closed 6 years ago

biancode commented 6 years ago

By the other hand, the OPCUA IIoT Node component doesn't work properly since I updated it. I pass screenshoot because the inject component with the same configuration is working but the node component isn't when it was working on the old version, maybe i don't have a good configuration? take a look:

Inject and Node debug:

image

You can see the Write-Node configuration in the old message from this post.

I paste you a part of flow with this last problem:

[{"id":"f2e10c21.f5d3a","type":"inject","z":"85a15ec8.2bc6e","name":"timestamp","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":"","x":2180,"y":720,"wires":[["2d640885.81d6d8","3e284b63.e69bbc"]]},{"id":"b19d5c24.c162a","type":"inject","z":"85a15ec8.2bc6e","name":"timestamp","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":"","x":2180,"y":780,"wires":[["97b93793.528d68"]]},{"id":"5e9dd080.c6102","type":"inject","z":"85a15ec8.2bc6e","name":"timestamp","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":"","x":2180,"y":840,"wires":[["acfd0ca5.cca5a"]]},{"id":"acfd0ca5.cca5a","type":"OPCUA-IIoT-Node","z":"85a15ec8.2bc6e","nodeId":"ns=2;s=Channel1.PLC01.Global.GESTRUCK_EST","datatype":"Int16","value":"3","usingListener":false,"name":"GESTRUCK_EST Error 3","x":2450,"y":840,"wires":[["836f6f11.ef4b78","389b9759.08bb08"]]},{"id":"97b93793.528d68","type":"OPCUA-IIoT-Node","z":"85a15ec8.2bc6e","nodeId":"ns=2;s=Channel1.PLC01.Global.GESTRUCK_EST","datatype":"Int16","value":"2","usingListener":false,"name":"GESTRUCK_EST Error 2","topic":"","x":2450,"y":780,"wires":[["ed8e7ff4.66836","389b9759.08bb08"]]},{"id":"3e284b63.e69bbc","type":"OPCUA-IIoT-Node","z":"85a15ec8.2bc6e","nodeId":"ns=2;s=Channel1.PLC01.Global.GESTRUCK_EST","datatype":"Int16","value":"1","usingListener":false,"name":"GESTRUCK_EST Error 1","topic":"","x":2450,"y":720,"wires":[["4b937e23.3a8b9c","389b9759.08bb08"]]},{"id":"2d640885.81d6d8","type":"debug","z":"85a15ec8.2bc6e","name":"","active":true,"console":"false","complete":"true","x":2330,"y":660,"wires":[]},{"id":"4b937e23.3a8b9c","type":"debug","z":"85a15ec8.2bc6e","name":"","active":true,"console":"false","complete":"true","x":2790,"y":700,"wires":[]},{"id":"ed8e7ff4.66836","type":"debug","z":"85a15ec8.2bc6e","name":"","active":true,"console":"false","complete":"true","x":2790,"y":760,"wires":[]},{"id":"836f6f11.ef4b78","type":"debug","z":"85a15ec8.2bc6e","name":"","active":true,"console":"false","complete":"true","x":2794.31982421875,"y":837.8499755859375,"wires":[]},{"id":"2b1a053f.795e9a","type":"OPCUA-IIoT-Inject","z":"85a15ec8.2bc6e","injectType":"write","payload":"1","payloadType":"num","topic":"","repeat":"","crontab":"","once":false,"startDelay":"","name":"NODE_RED_GESTRUCK Error 1","addressSpaceItems":[{"name":"GESTRUCK_EST Error 1","nodeId":"ns=2;s=Channel1.PLC01.Global.GESTRUCK_EST","datatypeName":"Int16"}],"x":2400,"y":520,"wires":[["389b9759.08bb08","937bd26b.e66aa"]]},{"id":"937bd26b.e66aa","type":"debug","z":"85a15ec8.2bc6e","name":"","active":true,"console":"false","complete":"true","x":2630,"y":400,"wires":[]},{"id":"389b9759.08bb08","type":"OPCUA-IIoT-Write","z":"85a15ec8.2bc6e","connector":"f55a3722.1d7d18","name":"WRITE ERROR","justValue":false,"showStatusActivities":true,"showErrors":true,"x":2986.000099182129,"y":330.0000591278076,"wires":[["f9510e58.0ddcd","31ec2f77.18e28"]]},{"id":"31ec2f77.18e28","type":"OPCUA-IIoT-Response","z":"85a15ec8.2bc6e","name":"","showStatusActivities":false,"showErrors":false,"x":3217.9999389648438,"y":329.9999942779541,"wires":[["cefd5dff.48f0c"]]},{"id":"f9510e58.0ddcd","type":"debug","z":"85a15ec8.2bc6e","name":"","active":false,"console":"false","complete":"true","x":3210,"y":380,"wires":[]},{"id":"cefd5dff.48f0c","type":"debug","z":"85a15ec8.2bc6e","name":"","active":true,"console":"false","complete":"true","x":3387.9999389648438,"y":329.9999942779541,"wires":[]},{"id":"f55a3722.1d7d18","type":"OPCUA-IIoT-Connector","z":"","discoveryUrl":"","endpoint":"opc.tcp://192.168.9.1:49320/","keepSessionAlive":true,"loginEnabled":false,"securityPolicy":"None","securityMode":"NONE","name":"Harinalia","showErrors":false,"publicCertificateFile":"","privateKeyFile":"","defaultSecureTokenLifetime":"60000","endpointMustExist":false,"autoSelectRightEndpoint":false}]

biancode commented 6 years ago

@davids1802 new issue

biancode commented 6 years ago

image

biancode commented 6 years ago

image

biancode commented 6 years ago

coming soon v2.5.x

[ { "id": "3b0ed978.ef7ed6", "type": "tab", "label": "Your Truck Flow", "disabled": false, "info": "" }, { "id": "bbbb1d86.df762", "type": "inject", "z": "3b0ed978.ef7ed6", "name": "Error 1", "topic": "", "payload": "1", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": "", "x": 270, "y": 380, "wires": [ [ "fb5adf75.6395c" ] ] }, { "id": "dbf29452.8a89b8", "type": "inject", "z": "3b0ed978.ef7ed6", "name": "Error 2", "topic": "", "payload": "2", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": "", "x": 270, "y": 420, "wires": [ [ "fb5adf75.6395c" ] ] }, { "id": "e0f96d7c.720c4", "type": "inject", "z": "3b0ed978.ef7ed6", "name": "Error 3", "topic": "", "payload": "3", "payloadType": "num", "repeat": "", "crontab": "", "once": false, "onceDelay": "", "x": 270, "y": 460, "wires": [ [ "fb5adf75.6395c" ] ] }, { "id": "fb5adf75.6395c", "type": "OPCUA-IIoT-Node", "z": "3b0ed978.ef7ed6", "injectType": "write", "nodeId": "ns=5;s=GESTRUCKEST", "datatype": "Int16", "value": "", "name": "GESTRUCK_EST", "topic": "", "showErrors": false, "x": 450, "y": 420, "wires": [ [ "dd967b5a.0af178", "21d257f1.b4e678" ] ] }, { "id": "dd967b5a.0af178", "type": "debug", "z": "3b0ed978.ef7ed6", "name": "", "active": true, "console": "false", "complete": "true", "x": 650, "y": 420, "wires": [] }, { "id": "e6b41139.bbe0b", "type": "OPCUA-IIoT-Inject", "z": "3b0ed978.ef7ed6", "injectType": "write", "payload": "1", "payloadType": "num", "topic": "", "repeat": "", "crontab": "", "once": false, "startDelay": "", "name": "NODE_RED_GESTRUCK Error 1", "addressSpaceItems": [ { "name": "GESTRUCK EST", "nodeId": "ns=5;s=GESTRUCKEST", "datatypeName": "Int16" } ], "x": 350, "y": 220, "wires": [ [ "21d257f1.b4e678" ] ] }, { "id": "b92bc329.211c", "type": "OPCUA-IIoT-Inject", "z": "3b0ed978.ef7ed6", "injectType": "write", "payload": "2", "payloadType": "num", "topic": "", "repeat": "", "crontab": "", "once": false, "startDelay": "", "name": "NODE_RED_GESTRUCK Error 2", "addressSpaceItems": [ { "name": "GESTRUCK EST", "nodeId": "ns=5;s=GESTRUCKEST", "datatypeName": "Int16" } ], "x": 350, "y": 260, "wires": [ [ "21d257f1.b4e678" ] ] }, { "id": "89e79072.e3272", "type": "OPCUA-IIoT-Inject", "z": "3b0ed978.ef7ed6", "injectType": "write", "payload": "3", "payloadType": "num", "topic": "", "repeat": "", "crontab": "", "once": false, "startDelay": "", "name": "NODE_RED_GESTRUCK Error 3", "addressSpaceItems": [ { "name": "GESTRUCK EST", "nodeId": "ns=5;s=GESTRUCKEST", "datatypeName": "Int16" } ], "x": 350, "y": 300, "wires": [ [ "21d257f1.b4e678" ] ] }, { "id": "21d257f1.b4e678", "type": "OPCUA-IIoT-Write", "z": "3b0ed978.ef7ed6", "connector": "d35ceb8e.d06aa8", "name": "WRITE ERROR", "justValue": false, "showStatusActivities": true, "showErrors": true, "x": 680, "y": 260, "wires": [ [ "79fcbb4a.9f6534", "38247259.77f3ce" ] ] }, { "id": "38247259.77f3ce", "type": "OPCUA-IIoT-Response", "z": "3b0ed978.ef7ed6", "name": "", "showStatusActivities": false, "showErrors": false, "x": 860, "y": 260, "wires": [ [ "e591409c.95328" ] ] }, { "id": "79fcbb4a.9f6534", "type": "debug", "z": "3b0ed978.ef7ed6", "name": "", "active": false, "console": "false", "complete": "true", "x": 850, "y": 220, "wires": [] }, { "id": "e591409c.95328", "type": "debug", "z": "3b0ed978.ef7ed6", "name": "", "active": true, "console": "false", "complete": "true", "x": 1010, "y": 260, "wires": [] }, { "id": "d35ceb8e.d06aa8", "type": "OPCUA-IIoT-Connector", "z": "", "discoveryUrl": "opc.tcp://innoreactor.local:4840", "endpoint": "opc.tcp://innoreactor.local:55388/UA/NodeREDIIoTServer", "keepSessionAlive": true, "loginEnabled": true, "securityPolicy": "Basic256", "securityMode": "SIGNANDENCRYPT", "name": "LOCAL DEMO SERVER", "showErrors": true, "publicCertificateFile": "", "privateKeyFile": "", "defaultSecureTokenLifetime": "60000", "endpointMustExist": true, "autoSelectRightEndpoint": true } ]