@opcua/for-node-red 3.10.0 → 3.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,23 +1,70 @@
1
1
  [
2
2
  {
3
- "id": "e2c467f6f712d454",
3
+ "id": "4d0662110a70dfcb",
4
4
  "type": "tab",
5
- "label": "Flow 2",
5
+ "label": "Basic Coffee Machine Example",
6
6
  "disabled": false,
7
7
  "info": "",
8
8
  "env": []
9
9
  },
10
10
  {
11
- "id": "45b050115e22c92a",
11
+ "id": "7bf406833c0a55cd",
12
+ "type": "group",
13
+ "z": "4d0662110a70dfcb",
14
+ "name": "Actions - Method calls",
15
+ "style": {
16
+ "label": true
17
+ },
18
+ "nodes": [
19
+ "da5dfe5add0d7eae",
20
+ "a85a34ab27d500da",
21
+ "f25106cd2f3aaeab",
22
+ "6711bf218b4c99f7",
23
+ "d0a02fbadf14facf"
24
+ ],
25
+ "x": 194,
26
+ "y": 299,
27
+ "w": 392,
28
+ "h": 162
29
+ },
30
+ {
31
+ "id": "55bc07480aecf6e0",
32
+ "type": "group",
33
+ "z": "4d0662110a70dfcb",
34
+ "style": {
35
+ "stroke": "#999999",
36
+ "stroke-opacity": "1",
37
+ "fill": "none",
38
+ "fill-opacity": "1",
39
+ "label": true,
40
+ "label-position": "nw",
41
+ "color": "#a4a4a4"
42
+ },
43
+ "nodes": [
44
+ "ed3618c3cbde4434",
45
+ "0f3f55e5ade17a71",
46
+ "873689bcfaf4cd1c",
47
+ "862669554266d21c",
48
+ "ae44316b28c1977b",
49
+ "9848b2b87c07857a"
50
+ ],
51
+ "x": 194,
52
+ "y": 19,
53
+ "w": 692,
54
+ "h": 262
55
+ },
56
+ {
57
+ "id": "ed3618c3cbde4434",
12
58
  "type": "OpcUa-Client2-Monitor",
13
- "z": "e2c467f6f712d454",
59
+ "z": "4d0662110a70dfcb",
60
+ "g": "55bc07480aecf6e0",
14
61
  "inputs": 0,
15
62
  "output": 4,
16
63
  "name": "Monitor TotalMix",
17
64
  "endpoint": "c22bb208bf9b2236",
18
65
  "subscription": "s0",
19
66
  "startImmediately": true,
20
- "nodeId": "/di:DeviceSet/own:CoffeeMachine.cke:Parameters.cke:TotalMix",
67
+ "nodeId": "/di:DeviceSet/own:CoffeeMachineA.cke:Parameters.cke:TotalMix",
21
68
  "samplingInterval": 1000,
22
69
  "discardOldest": true,
23
70
  "queueSize": 10,
@@ -25,49 +72,52 @@
25
72
  "y": 120,
26
73
  "wires": [
27
74
  [
28
- "80ffd5b08e4b842c"
75
+ "873689bcfaf4cd1c"
29
76
  ]
30
77
  ]
31
78
  },
32
79
  {
33
- "id": "ed0138fb19b768a8",
80
+ "id": "da5dfe5add0d7eae",
34
81
  "type": "OpcUa-Client2-Call",
35
- "z": "e2c467f6f712d454",
82
+ "z": "4d0662110a70dfcb",
83
+ "g": "7bf406833c0a55cd",
36
84
  "inputs": 1,
37
85
  "output": 4,
38
86
  "name": "FillTank() ",
39
87
  "endpoint": "c22bb208bf9b2236",
40
- "methodId": "/di:DeviceSet/own:CoffeeMachine.di:MethodSet.ns3:FillTank",
41
- "objectId": "/di:DeviceSet/own:CoffeeMachine",
88
+ "methodId": "/di:DeviceSet/own:CoffeeMachineA.di:MethodSet.ns3:FillTank",
89
+ "objectId": "/di:DeviceSet/own:CoffeeMachineA",
42
90
  "x": 480,
43
- "y": 300,
91
+ "y": 340,
44
92
  "wires": [
45
93
  [],
46
94
  []
47
95
  ]
48
96
  },
49
97
  {
50
- "id": "d9ebb8819935670b",
98
+ "id": "a85a34ab27d500da",
51
99
  "type": "OpcUa-Client2-Call",
52
- "z": "e2c467f6f712d454",
100
+ "z": "4d0662110a70dfcb",
101
+ "g": "7bf406833c0a55cd",
53
102
  "inputs": 1,
54
103
  "output": 4,
55
104
  "name": "MakeCoffee",
56
105
  "endpoint": "c22bb208bf9b2236",
57
- "methodId": "/di:DeviceSet/own:CoffeeMachine.di:MethodSet.ns3:Start",
58
- "objectId": "/di:DeviceSet/own:CoffeeMachine",
106
+ "methodId": "/di:DeviceSet/own:CoffeeMachineA.di:MethodSet.ns3:Start",
107
+ "objectId": "/di:DeviceSet/own:CoffeeMachineA",
59
108
  "x": 490,
60
- "y": 360,
109
+ "y": 400,
61
110
  "wires": [
62
111
  [],
63
112
  []
64
113
  ]
65
114
  },
66
115
  {
67
- "id": "cd2a38f3b199c836",
116
+ "id": "f25106cd2f3aaeab",
68
117
  "type": "inject",
69
- "z": "e2c467f6f712d454",
70
- "name": "",
118
+ "z": "4d0662110a70dfcb",
119
+ "g": "7bf406833c0a55cd",
120
+ "name": "Americano",
71
121
  "props": [
72
122
  {
73
123
  "p": "payload"
@@ -78,28 +128,25 @@
78
128
  "once": false,
79
129
  "onceDelay": 0.1,
80
130
  "topic": "",
81
- "payload": "{\"CoffeeType\":1}",
131
+ "payload": "{\"CoffeeType\":\"Americano\"}",
82
132
  "payloadType": "json",
83
- "x": 320,
84
- "y": 340,
133
+ "x": 300,
134
+ "y": 380,
85
135
  "wires": [
86
136
  [
87
- "d9ebb8819935670b"
137
+ "a85a34ab27d500da"
88
138
  ]
89
139
  ]
90
140
  },
91
141
  {
92
- "id": "733e1b5f1f748772",
142
+ "id": "6711bf218b4c99f7",
93
143
  "type": "inject",
94
- "z": "e2c467f6f712d454",
95
- "name": "",
144
+ "z": "4d0662110a70dfcb",
145
+ "g": "7bf406833c0a55cd",
146
+ "name": "Mocha",
96
147
  "props": [
97
148
  {
98
149
  "p": "payload"
99
- },
100
- {
101
- "p": "topic",
102
- "vt": "str"
103
150
  }
104
151
  ],
105
152
  "repeat": "",
@@ -107,21 +154,22 @@
107
154
  "once": false,
108
155
  "onceDelay": 0.1,
109
156
  "topic": "",
110
- "payload": "{\"CoffeeType\": 2}",
157
+ "payload": "{\"CoffeeType\": \"Mocha\"}",
111
158
  "payloadType": "json",
112
- "x": 320,
113
- "y": 380,
159
+ "x": 310,
160
+ "y": 420,
114
161
  "wires": [
115
162
  [
116
- "d9ebb8819935670b"
163
+ "a85a34ab27d500da"
117
164
  ]
118
165
  ]
119
166
  },
120
167
  {
121
- "id": "182db6cfc2b7e81e",
168
+ "id": "d0a02fbadf14facf",
122
169
  "type": "inject",
123
- "z": "e2c467f6f712d454",
124
- "name": "Action",
170
+ "z": "4d0662110a70dfcb",
171
+ "g": "7bf406833c0a55cd",
172
+ "name": "FillTank",
125
173
  "props": [],
126
174
  "repeat": "",
127
175
  "crontab": "",
@@ -129,24 +177,25 @@
129
177
  "onceDelay": 0.1,
130
178
  "topic": "",
131
179
  "x": 310,
132
- "y": 280,
180
+ "y": 340,
133
181
  "wires": [
134
182
  [
135
- "ed0138fb19b768a8"
183
+ "da5dfe5add0d7eae"
136
184
  ]
137
185
  ]
138
186
  },
139
187
  {
140
- "id": "266bbc4569282b99",
188
+ "id": "0f3f55e5ade17a71",
141
189
  "type": "OpcUa-Client2-Monitor",
142
- "z": "e2c467f6f712d454",
190
+ "z": "4d0662110a70dfcb",
191
+ "g": "55bc07480aecf6e0",
143
192
  "inputs": 0,
144
193
  "output": 4,
145
194
  "name": "WaterTank Level",
146
195
  "endpoint": "c22bb208bf9b2236",
147
- "subscription": "s2",
196
+ "subscription": "s0",
148
197
  "startImmediately": true,
149
- "nodeId": "/di:DeviceSet/own:CoffeeMachine.cke:Parameters.ns3:WaterTankLevel",
198
+ "nodeId": "/di:DeviceSet/own:CoffeeMachineA.cke:Parameters.ns3:WaterTankLevel",
150
199
  "samplingInterval": 1000,
151
200
  "discardOldest": true,
152
201
  "queueSize": 10,
@@ -154,21 +203,22 @@
154
203
  "y": 180,
155
204
  "wires": [
156
205
  [
157
- "80ffd5b08e4b842c"
206
+ "873689bcfaf4cd1c"
158
207
  ]
159
208
  ]
160
209
  },
161
210
  {
162
- "id": "80ffd5b08e4b842c",
211
+ "id": "873689bcfaf4cd1c",
163
212
  "type": "debug",
164
- "z": "e2c467f6f712d454",
213
+ "z": "4d0662110a70dfcb",
214
+ "g": "55bc07480aecf6e0",
165
215
  "name": "debug 1",
166
216
  "active": true,
167
217
  "tosidebar": true,
168
218
  "console": false,
169
219
  "tostatus": false,
170
- "complete": "{\t \"nodeId\": nodeId,\t \"value\": payload\t}",
171
- "targetType": "jsonata",
220
+ "complete": "payload",
221
+ "targetType": "msg",
172
222
  "statusVal": "",
173
223
  "statusType": "auto",
174
224
  "x": 780,
@@ -176,14 +226,15 @@
176
226
  "wires": []
177
227
  },
178
228
  {
179
- "id": "1c7206622fc789b7",
229
+ "id": "862669554266d21c",
180
230
  "type": "OpcUa-Client2-Monitor",
181
- "z": "e2c467f6f712d454",
231
+ "z": "4d0662110a70dfcb",
232
+ "g": "55bc07480aecf6e0",
182
233
  "inputs": 1,
183
234
  "output": 4,
184
235
  "name": "ServerStatus.State",
185
236
  "endpoint": "c22bb208bf9b2236",
186
- "subscription": "s2",
237
+ "subscription": "s0",
187
238
  "startImmediately": false,
188
239
  "nodeId": "/Server.ServerStatus.State",
189
240
  "samplingInterval": "1001",
@@ -193,21 +244,22 @@
193
244
  "y": 60,
194
245
  "wires": [
195
246
  [
196
- "80ffd5b08e4b842c"
247
+ "873689bcfaf4cd1c"
197
248
  ]
198
249
  ]
199
250
  },
200
251
  {
201
- "id": "40097102575fd1d1",
252
+ "id": "ae44316b28c1977b",
202
253
  "type": "OpcUa-Client2-Monitor",
203
- "z": "e2c467f6f712d454",
254
+ "z": "4d0662110a70dfcb",
255
+ "g": "55bc07480aecf6e0",
204
256
  "inputs": 0,
205
257
  "output": 4,
206
258
  "name": "ServerCoffeeCount",
207
259
  "endpoint": "c22bb208bf9b2236",
208
- "subscription": "s2",
260
+ "subscription": "s0",
209
261
  "startImmediately": true,
210
- "nodeId": "/di:DeviceSet/own:CoffeeMachine.cke:Parameters.ns3:ServedCoffeeCount",
262
+ "nodeId": "/di:DeviceSet/own:CoffeeMachineA.cke:Parameters.ns3:ServedCoffeeCount",
211
263
  "samplingInterval": 1000,
212
264
  "discardOldest": true,
213
265
  "queueSize": 10,
@@ -215,14 +267,15 @@
215
267
  "y": 240,
216
268
  "wires": [
217
269
  [
218
- "80ffd5b08e4b842c"
270
+ "873689bcfaf4cd1c"
219
271
  ]
220
272
  ]
221
273
  },
222
274
  {
223
- "id": "29829ef18eb606cf",
275
+ "id": "9848b2b87c07857a",
224
276
  "type": "inject",
225
- "z": "e2c467f6f712d454",
277
+ "z": "4d0662110a70dfcb",
278
+ "g": "55bc07480aecf6e0",
226
279
  "name": "",
227
280
  "props": [],
228
281
  "repeat": "",
@@ -234,7 +287,7 @@
234
287
  "y": 60,
235
288
  "wires": [
236
289
  [
237
- "1c7206622fc789b7"
290
+ "862669554266d21c"
238
291
  ]
239
292
  ]
240
293
  },
@@ -242,12 +295,12 @@
242
295
  "id": "c22bb208bf9b2236",
243
296
  "type": "OpcUa-Endpoint2",
244
297
  "name": "",
245
- "endpoint": "opc.tcp://opcuademo.sterfive.com:26543/UA/SampleServer",
298
+ "endpoint": "opc.tcp://opcuademo.sterfive.com:26541",
246
299
  "securityMode": "None",
247
300
  "securityPolicy": "None",
248
301
  "userIdentityType": "Anonymous",
249
302
  "pkiName": "",
250
- "useTransport": true,
303
+ "useTransport": false,
251
304
  "maxChunkCount": "1",
252
305
  "maxMessageSize": "8192",
253
306
  "receiveBufferSize": "8192",
@@ -265,32 +318,6 @@
265
318
  "maxNotificationsPerPublish": "0",
266
319
  "priority": "100"
267
320
  }
268
- },
269
- {
270
- "id": "s1",
271
- "name": "Slow Subscription",
272
- "isDefault": true,
273
- "parameters": {
274
- "publishingEnabled": true,
275
- "requestedLifetimeCount": "100",
276
- "requestedMaxKeepAliveCount": "2",
277
- "requestedPublishingInterval": "5000",
278
- "maxNotificationsPerPublish": "100",
279
- "priority": "10"
280
- }
281
- },
282
- {
283
- "id": "s2",
284
- "name": "Fast Subscription",
285
- "isDefault": true,
286
- "parameters": {
287
- "publishingEnabled": true,
288
- "requestedLifetimeCount": "100",
289
- "requestedMaxKeepAliveCount": "10",
290
- "requestedPublishingInterval": "250",
291
- "maxNotificationsPerPublish": "100",
292
- "priority": "200"
293
- }
294
321
  }
295
322
  ],
296
323
  "namespaceAliases": [
@@ -0,0 +1,182 @@
1
+ [
2
+ {
3
+ "id": "f7bedd7b98ba03b1",
4
+ "type": "tab",
5
+ "label": "OPCUA CoffeeMachine Example ",
6
+ "disabled": false,
7
+ "info": "",
8
+ "env": []
9
+ },
10
+ {
11
+ "id": "fa8beb6353889cf4",
12
+ "type": "inject",
13
+ "z": "f7bedd7b98ba03b1",
14
+ "name": "inject path to CoffeeMachine",
15
+ "props": [
16
+ {
17
+ "p": "nodeId",
18
+ "v": "/di:DeviceSet/own:CoffeeMachineA",
19
+ "vt": "str"
20
+ }
21
+ ],
22
+ "repeat": "",
23
+ "crontab": "",
24
+ "once": false,
25
+ "onceDelay": 0.1,
26
+ "topic": "",
27
+ "x": 200,
28
+ "y": 120,
29
+ "wires": [
30
+ [
31
+ "17f4366b5c4476e7"
32
+ ]
33
+ ]
34
+ },
35
+ {
36
+ "id": "17f4366b5c4476e7",
37
+ "type": "OpcUa-Client2-Explore",
38
+ "z": "f7bedd7b98ba03b1",
39
+ "inputs": 1,
40
+ "output": 4,
41
+ "name": "",
42
+ "endpoint": "c22bb208bf9b2236",
43
+ "nodeId": "",
44
+ "outputType": "Value",
45
+ "excludeEmpty": true,
46
+ "followOrganizes": true,
47
+ "x": 440,
48
+ "y": 120,
49
+ "wires": [
50
+ [
51
+ "c5ca5b7775b36081"
52
+ ]
53
+ ]
54
+ },
55
+ {
56
+ "id": "c5ca5b7775b36081",
57
+ "type": "debug",
58
+ "z": "f7bedd7b98ba03b1",
59
+ "name": "debug 6",
60
+ "active": true,
61
+ "tosidebar": true,
62
+ "console": false,
63
+ "tostatus": false,
64
+ "complete": "payload",
65
+ "targetType": "msg",
66
+ "statusVal": "",
67
+ "statusType": "auto",
68
+ "x": 620,
69
+ "y": 120,
70
+ "wires": []
71
+ },
72
+ {
73
+ "id": "d732a68c93b0642d",
74
+ "type": "comment",
75
+ "z": "f7bedd7b98ba03b1",
76
+ "name": "using Explore node with @opcua/for-node-red",
77
+ "info": "",
78
+ "x": 250,
79
+ "y": 60,
80
+ "wires": []
81
+ },
82
+ {
83
+ "id": "c22bb208bf9b2236",
84
+ "type": "OpcUa-Endpoint2",
85
+ "name": "",
86
+ "endpoint": "opc.tcp://opcuademo.sterfive.com:26541",
87
+ "securityMode": "None",
88
+ "securityPolicy": "None",
89
+ "userIdentityType": "Anonymous",
90
+ "pkiName": "",
91
+ "useTransport": false,
92
+ "maxChunkCount": "1",
93
+ "maxMessageSize": "8192",
94
+ "receiveBufferSize": "8192",
95
+ "sendBufferSize": "8192",
96
+ "subscriptions": [
97
+ {
98
+ "id": "s0",
99
+ "name": "Default Subscription",
100
+ "isDefault": true,
101
+ "parameters": {
102
+ "publishingEnabled": true,
103
+ "requestedLifetimeCount": "100",
104
+ "requestedMaxKeepAliveCount": "10",
105
+ "requestedPublishingInterval": "1000",
106
+ "maxNotificationsPerPublish": "0",
107
+ "priority": "100"
108
+ }
109
+ }
110
+ ],
111
+ "namespaceAliases": [
112
+ {
113
+ "namespaceUri": "http://opcfoundation.org/UA/",
114
+ "alias": "ua"
115
+ },
116
+ {
117
+ "namespaceUri": "~urn:.*",
118
+ "alias": "own"
119
+ },
120
+ {
121
+ "namespaceUri": "http://opcfoundation.org/UA/DI/",
122
+ "alias": "di"
123
+ },
124
+ {
125
+ "namespaceUri": "http://opcfoundation.org/UA/ADI/",
126
+ "alias": "adi"
127
+ },
128
+ {
129
+ "namespaceUri": "http://opcfoundation.org/UA/AutoID/",
130
+ "alias": "autoId"
131
+ },
132
+ {
133
+ "namespaceUri": "http://opcfoundation.org/UA/MachineVision",
134
+ "alias": "machineVision"
135
+ },
136
+ {
137
+ "namespaceUri": "http://opcfoundation.org/UA/Robotics/",
138
+ "alias": "robotics"
139
+ },
140
+ {
141
+ "namespaceUri": "http://opcfoundation.org/UA/CommercialKitchenEquipment/",
142
+ "alias": "cke"
143
+ },
144
+ {
145
+ "namespaceUri": "http://opcfoundation.org/UA/ISA95-JOBCONTROL_V2/",
146
+ "alias": "isa95JobControl"
147
+ },
148
+ {
149
+ "namespaceUri": "http://opcfoundation.org/UA/Dictionary/IRDI",
150
+ "alias": "irdi"
151
+ },
152
+ {
153
+ "namespaceUri": "http://opcfoundation.org/UA/IA/",
154
+ "alias": "ia"
155
+ },
156
+ {
157
+ "namespaceUri": "http://opcfoundation.org/UA/Machinery/",
158
+ "alias": "machinery"
159
+ },
160
+ {
161
+ "namespaceUri": "http://opcfoundation.org/UA/Machinery/Jobs/",
162
+ "alias": "machineryJobs"
163
+ },
164
+ {
165
+ "namespaceUri": "http://opcfoundation.org/UA/MachineTool/",
166
+ "alias": "machineTool"
167
+ },
168
+ {
169
+ "namespaceUri": "http://opcfoundation.org/UA/PackML/",
170
+ "alias": "packML"
171
+ },
172
+ {
173
+ "namespaceUri": "urn://node-opcua-simulator",
174
+ "alias": "ns2"
175
+ },
176
+ {
177
+ "namespaceUri": "http://sterfive.com/UA/CoffeeMachine/",
178
+ "alias": "ns3"
179
+ }
180
+ ]
181
+ }
182
+ ]