@vitormnm/node-red-simple-opcua 1.5.0 → 1.6.2

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,2851 +1 @@
1
- [
2
- {
3
- "id": "d2b3eae6a1ecc622",
4
- "type": "tab",
5
- "label": "opcua server",
6
- "disabled": false,
7
- "info": "",
8
- "env": []
9
- },
10
- {
11
- "id": "79a6f5fe6f4d465a",
12
- "type": "tab",
13
- "label": "opcua client",
14
- "disabled": false,
15
- "info": "",
16
- "env": []
17
- },
18
- {
19
- "id": "14fe15a9e9d468af",
20
- "type": "tab",
21
- "label": "opcua client browse all tags",
22
- "disabled": false,
23
- "info": "",
24
- "env": []
25
- },
26
- {
27
- "id": "c84194e1716f46ab",
28
- "type": "group",
29
- "z": "d2b3eae6a1ecc622",
30
- "style": {
31
- "stroke": "#999999",
32
- "stroke-opacity": "1",
33
- "fill": "none",
34
- "fill-opacity": "1",
35
- "label": true,
36
- "label-position": "nw",
37
- "color": "#a4a4a4"
38
- },
39
- "nodes": [
40
- "e4edcc77427188f6",
41
- "932e2635730c7a44",
42
- "bfc08132027e72b7",
43
- "6c87b85f99be3616",
44
- "9c09946d8577b52d",
45
- "2676f36ebaab5969",
46
- "1dc6b8aa2257eca3",
47
- "329a2a1a632fd233",
48
- "27e7e959761bf77f",
49
- "fa224a9d8ab1f2c7",
50
- "d19b915e7393b9a7",
51
- "984522736a0656a7",
52
- "a944210da4387a6a"
53
- ],
54
- "x": 74,
55
- "y": 1319,
56
- "w": 872,
57
- "h": 362
58
- },
59
- {
60
- "id": "d8fd16c88ec103e5",
61
- "type": "group",
62
- "z": "d2b3eae6a1ecc622",
63
- "style": {
64
- "stroke": "#999999",
65
- "stroke-opacity": "1",
66
- "fill": "none",
67
- "fill-opacity": "1",
68
- "label": true,
69
- "label-position": "nw",
70
- "color": "#a4a4a4"
71
- },
72
- "nodes": [
73
- "668921cc357bd516",
74
- "f47bc3635ec2a31d",
75
- "9cfc3721152e8357",
76
- "266e174a9f4e200c",
77
- "6ec5659b15d00940",
78
- "0368379e84561696",
79
- "2da39bcbcc3d1109",
80
- "36c054113a954792",
81
- "c03eaa1b388c50f3",
82
- "eed2029c30d5bb5b",
83
- "a5083cedc1237564",
84
- "e91a6b84ebe3556d",
85
- "8e6e2008f8f79caf",
86
- "7f610dc5a13b1356"
87
- ],
88
- "x": 74,
89
- "y": 839,
90
- "w": 902,
91
- "h": 442
92
- },
93
- {
94
- "id": "b1201c21c2d259b8",
95
- "type": "group",
96
- "z": "d2b3eae6a1ecc622",
97
- "style": {
98
- "stroke": "#999999",
99
- "stroke-opacity": "1",
100
- "fill": "none",
101
- "fill-opacity": "1",
102
- "label": true,
103
- "label-position": "nw",
104
- "color": "#a4a4a4"
105
- },
106
- "nodes": [
107
- "65603f52a369839a",
108
- "1d023a68af5918c7",
109
- "55df4c29fedf13c8",
110
- "d28240a9d9ffdd43",
111
- "673ba93006e6550a"
112
- ],
113
- "x": 74,
114
- "y": 479,
115
- "w": 912,
116
- "h": 142
117
- },
118
- {
119
- "id": "23832db12bfa7d80",
120
- "type": "group",
121
- "z": "d2b3eae6a1ecc622",
122
- "style": {
123
- "stroke": "#999999",
124
- "stroke-opacity": "1",
125
- "fill": "none",
126
- "fill-opacity": "1",
127
- "label": true,
128
- "label-position": "nw",
129
- "color": "#a4a4a4"
130
- },
131
- "nodes": [
132
- "3bd3915cb891e8f1",
133
- "397bd99ac2297103",
134
- "7e3dbdbd25da7510",
135
- "b0b8022d4920fc55",
136
- "7d0b6982f5786807",
137
- "08991f3c9d3b47a0",
138
- "d1187abb8f01729a"
139
- ],
140
- "x": 64,
141
- "y": 219,
142
- "w": 812,
143
- "h": 222
144
- },
145
- {
146
- "id": "b2ce35ceb2bdafd8",
147
- "type": "group",
148
- "z": "d2b3eae6a1ecc622",
149
- "style": {
150
- "stroke": "#999999",
151
- "stroke-opacity": "1",
152
- "fill": "none",
153
- "fill-opacity": "1",
154
- "label": true,
155
- "label-position": "nw",
156
- "color": "#a4a4a4"
157
- },
158
- "nodes": [
159
- "662e19d35ced7eaa",
160
- "b174ca5ba476a397",
161
- "2defd51ae95a1d97"
162
- ],
163
- "x": 74,
164
- "y": 659,
165
- "w": 482,
166
- "h": 142
167
- },
168
- {
169
- "id": "36d46609aecf1392",
170
- "type": "group",
171
- "z": "d2b3eae6a1ecc622",
172
- "style": {
173
- "stroke": "#999999",
174
- "stroke-opacity": "1",
175
- "fill": "none",
176
- "fill-opacity": "1",
177
- "label": true,
178
- "label-position": "nw",
179
- "color": "#a4a4a4"
180
- },
181
- "nodes": [
182
- "8b311452217de452",
183
- "34f2a0d0ba7fd911",
184
- "f56f61693a49cdcb",
185
- "06a5925b29d016e7"
186
- ],
187
- "x": 74,
188
- "y": 39,
189
- "w": 752,
190
- "h": 142
191
- },
192
- {
193
- "id": "285c23c3bad0ef27",
194
- "type": "group",
195
- "z": "79a6f5fe6f4d465a",
196
- "style": {
197
- "stroke": "#999999",
198
- "stroke-opacity": "1",
199
- "fill": "none",
200
- "fill-opacity": "1",
201
- "label": true,
202
- "label-position": "nw",
203
- "color": "#a4a4a4"
204
- },
205
- "nodes": [
206
- "ef63988ca2403b46",
207
- "6cad9ec490596a99",
208
- "19bc7a26f39f3ecc",
209
- "1f5deaf79db824cf",
210
- "25d9d97555803451",
211
- "0ff0aaf552ae087e",
212
- "fc2cde946ce08e4e",
213
- "2d6737a48c9bf131",
214
- "e751595f75537eae",
215
- "4ef2369fd3613329",
216
- "a08020e9f79e7270",
217
- "bb13fb80d451245a",
218
- "ebf0bf0b98640c41",
219
- "1deb5211a2ddd488",
220
- "a21aeea307028ae4"
221
- ],
222
- "x": 54,
223
- "y": 19,
224
- "w": 1052,
225
- "h": 482
226
- },
227
- {
228
- "id": "8e096ccb69a8c8f5",
229
- "type": "group",
230
- "z": "79a6f5fe6f4d465a",
231
- "style": {
232
- "stroke": "#999999",
233
- "stroke-opacity": "1",
234
- "fill": "none",
235
- "fill-opacity": "1",
236
- "label": true,
237
- "label-position": "nw",
238
- "color": "#a4a4a4"
239
- },
240
- "nodes": [
241
- "7b40230aee3f3c0f",
242
- "aa5537a918d6776b",
243
- "a894da66d77e8418",
244
- "3b03a088eee38b35",
245
- "df6a3b9bbd0f6243",
246
- "ec71d8a75c78c0ba",
247
- "a9ce0dba53d46bb7",
248
- "2484ca47fc4d911a",
249
- "84232cde9f2231b5",
250
- "48ba7d74504f220a"
251
- ],
252
- "x": 54,
253
- "y": 559,
254
- "w": 792,
255
- "h": 382
256
- },
257
- {
258
- "id": "6680a3f5b18b36a5",
259
- "type": "group",
260
- "z": "79a6f5fe6f4d465a",
261
- "style": {
262
- "stroke": "#999999",
263
- "stroke-opacity": "1",
264
- "fill": "none",
265
- "fill-opacity": "1",
266
- "label": true,
267
- "label-position": "nw",
268
- "color": "#a4a4a4"
269
- },
270
- "nodes": [
271
- "fdddad6dc624d803",
272
- "c26f86f9b102ce3d",
273
- "83a962e6f3eb3652",
274
- "1b8a5cc3d4afab4b",
275
- "609a5416d116f06b",
276
- "b04161e07c2b5f94",
277
- "c2d6012f3fa2bfe1",
278
- "b4a4967137db05e3",
279
- "86c4207a31f2ad3b",
280
- "0fc6a57284b0fdcb",
281
- "dbd0479a43af64a7",
282
- "526eb25bb9a30b5d",
283
- "341cccffb89cf4aa",
284
- "190b600344448c5f",
285
- "bb4bfc533f49d250",
286
- "e056796f7cbc9628",
287
- "c8a39a53b1074acc"
288
- ],
289
- "x": 54,
290
- "y": 959,
291
- "w": 1072,
292
- "h": 442
293
- },
294
- {
295
- "id": "1ec58c5dcc676cd8",
296
- "type": "group",
297
- "z": "79a6f5fe6f4d465a",
298
- "style": {
299
- "stroke": "#999999",
300
- "stroke-opacity": "1",
301
- "fill": "none",
302
- "fill-opacity": "1",
303
- "label": true,
304
- "label-position": "nw",
305
- "color": "#a4a4a4"
306
- },
307
- "nodes": [
308
- "a0e9eefc0d33a27b",
309
- "ed284715a31f9fb0",
310
- "493b430fb6628573",
311
- "cf180f43c9fef5fc"
312
- ],
313
- "x": 54,
314
- "y": 1439,
315
- "w": 702,
316
- "h": 142
317
- },
318
- {
319
- "id": "b77a84882ecb667f",
320
- "type": "group",
321
- "z": "14fe15a9e9d468af",
322
- "style": {
323
- "stroke": "#999999",
324
- "stroke-opacity": "1",
325
- "fill": "none",
326
- "fill-opacity": "1",
327
- "label": true,
328
- "label-position": "nw",
329
- "color": "#a4a4a4"
330
- },
331
- "nodes": [
332
- "8c73fb548e807740",
333
- "df008f3855a3f9a4",
334
- "1444c096a73f4ca6",
335
- "2b21c4370fd02197",
336
- "efe6dcebe2d7f08d",
337
- "f9c6be02a37d97c0",
338
- "49aac6ef852864de",
339
- "f573a31db4ae7c54",
340
- "7f6825ac425c4762",
341
- "d17d2adbbd01cbf6",
342
- "11407ea89fd47c06",
343
- "77168078146d3b2b",
344
- "596e4966920d35cc",
345
- "7f20c7d7a421295e",
346
- "01d2238a6571f70e",
347
- "46b04c28e0c85cc6",
348
- "9d5dd36f42e74286"
349
- ],
350
- "x": 34,
351
- "y": 99,
352
- "w": 1572,
353
- "h": 482
354
- },
355
- {
356
- "id": "67244e1b04fa0130",
357
- "type": "group",
358
- "z": "79a6f5fe6f4d465a",
359
- "style": {
360
- "stroke": "#999999",
361
- "stroke-opacity": "1",
362
- "fill": "none",
363
- "fill-opacity": "1",
364
- "label": true,
365
- "label-position": "nw",
366
- "color": "#a4a4a4"
367
- },
368
- "nodes": [
369
- "793f8368f0a1c1a3",
370
- "8c223050ecd416ef",
371
- "825b3d7170cf5598",
372
- "37278c8895890143",
373
- "6944643a2ea15889",
374
- "4a49bda87a91dd36",
375
- "f458df76db488866",
376
- "05f34bc116cd8ee2"
377
- ],
378
- "x": 54,
379
- "y": 1639,
380
- "w": 912,
381
- "h": 242
382
- },
383
- {
384
- "id": "b09a1570957d3c44",
385
- "type": "opcua-client-config",
386
- "name": "",
387
- "endpoint": "opc.tcp://localhost:5840/",
388
- "securityPolicy": "None",
389
- "securityMode": "None",
390
- "authType": "anonymous"
391
- },
392
- {
393
- "id": "8b311452217de452",
394
- "type": "opc-ua-server",
395
- "z": "d2b3eae6a1ecc622",
396
- "g": "36d46609aecf1392",
397
- "name": "",
398
- "resourcePath": "/",
399
- "serverName": "myServer1",
400
- "allowAnonymous": true,
401
- "port": "5840",
402
- "maxConnections": 10,
403
- "securityPolicy": "None",
404
- "securityMode": "None",
405
- "namespaceUri": "urn:node-red:opc-ua-server",
406
- "tree": "{\n \"objects\": [],\n \"folders\": [\n {\n \"name\": \"myServer1\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [\n {\n \"name\": \"folderMethod\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [],\n \"methods\": [\n {\n \"name\": \"methodSum\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"inputs\": [\n {\n \"name\": \"var1\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n },\n {\n \"name\": \"var2\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n }\n ],\n \"outputs\": [\n {\n \"name\": \"result\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n }\n ]\n },\n {\n \"name\": \"methodMultiplication\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"inputs\": [\n {\n \"name\": \"var1\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n },\n {\n \"name\": \"var2\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n }\n ],\n \"outputs\": [\n {\n \"name\": \"result\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n }\n ]\n }\n ],\n \"objectsTypes\": []\n },\n {\n \"name\": \"folderAlarms\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [\n {\n \"name\": \"levelAlarm1\",\n \"variableNodeId\": \"myServer1.variableLevelAlarm\",\n \"type\": \"levelAlarm\",\n \"enabled\": true,\n \"severity\": 500,\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"highHighLimit\": 90,\n \"highHighMessage\": \"High High alarm\",\n \"highLimit\": 80,\n \"highMessage\": \"High alarm\",\n \"lowLimit\": 20,\n \"lowMessage\": \"Low alarm\",\n \"lowLowLimit\": 10,\n \"lowLowMessage\": \"Low Low alarm\",\n \"normalStateValue\": 0,\n \"digitalMessage\": \"Digital alarm\"\n },\n {\n \"name\": \"digitalAlarm1\",\n \"variableNodeId\": \"myServer1.variableDigitalAlarm\",\n \"type\": \"digitalAlarm\",\n \"enabled\": true,\n \"severity\": 500,\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"highHighLimit\": 100,\n \"highHighMessage\": \"High High alarm\",\n \"highLimit\": 80,\n \"highMessage\": \"High alarm\",\n \"lowLimit\": 20,\n \"lowMessage\": \"Low alarm\",\n \"lowLowLimit\": 0,\n \"lowLowMessage\": \"Low Low alarm\",\n \"normalStateValue\": 0,\n \"digitalMessage\": \"Digital alarm\"\n }\n ],\n \"methods\": [],\n \"objectsTypes\": []\n },\n {\n \"name\": \"folderCustomObjectType\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": [\n {\n \"name\": \"customObjectType1\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"ns=2;s=myServer1.folderCustomObjectType.customObjectType1\",\n \"namespaceId\": 2,\n \"objectsType\": \"customObjectType\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n },\n {\n \"name\": \"customObjectType2\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"ns=2;s=myServer1.folderCustomObjectType.customObjectType2\",\n \"namespaceId\": 2,\n \"objectsType\": \"customObjectType\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n }\n ]\n }\n ],\n \"objects\": [\n {\n \"name\": \"newObject\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [\n {\n \"name\": \"newVariable\",\n \"type\": \"Int32\",\n \"value\": \"\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n },\n {\n \"name\": \"newVariable2\",\n \"type\": \"Float\",\n \"value\": \"123.3\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n }\n ],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n }\n ],\n \"variables\": [\n {\n \"name\": \"variableLevelAlarm\",\n \"type\": \"Int32\",\n \"value\": \"50\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n },\n {\n \"name\": \"variableDigitalAlarm\",\n \"type\": \"Boolean\",\n \"value\": \"0\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n },\n {\n \"name\": \"variableArray\",\n \"type\": \"Int32\",\n \"value\": \"[10,20,30,40]\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n }\n ],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n }\n ],\n \"objectsTypes\": [\n {\n \"name\": \"customObjectType\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"ns=2;s=customObjectType\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [\n {\n \"name\": \"var1\",\n \"type\": \"Int32\",\n \"value\": \"\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"ns=2;s=customObjectType.var1\",\n \"namespaceId\": 2\n },\n {\n \"name\": \"var2\",\n \"type\": \"Int32\",\n \"value\": \"\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"ns=2;s=customObjectType.var2\",\n \"namespaceId\": 2\n }\n ],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n }\n ],\n \"nameSpaces\": [\n {\n \"id\": 2,\n \"name\": \"urn:node-red:opc-ua-server\"\n },\n {\n \"id\": 3,\n \"name\": \"urn:plant2:3\"\n }\n ]\n}",
407
- "x": 730,
408
- "y": 140,
409
- "wires": []
410
- },
411
- {
412
- "id": "3bd3915cb891e8f1",
413
- "type": "opcua-server-io",
414
- "z": "d2b3eae6a1ecc622",
415
- "g": "23832db12bfa7d80",
416
- "name": "",
417
- "serverRef": "myServer1",
418
- "mode": "method-input",
419
- "identifierType": "path",
420
- "tagPath": "",
421
- "tagNodeId": "",
422
- "methodName": "methodSum",
423
- "intervalMs": 500,
424
- "inputs": 0,
425
- "outputs": 1,
426
- "x": 170,
427
- "y": 300,
428
- "wires": [
429
- [
430
- "7e3dbdbd25da7510"
431
- ]
432
- ]
433
- },
434
- {
435
- "id": "397bd99ac2297103",
436
- "type": "opcua-server-io",
437
- "z": "d2b3eae6a1ecc622",
438
- "g": "23832db12bfa7d80",
439
- "name": "",
440
- "serverRef": "myServer1",
441
- "mode": "method-output",
442
- "identifierType": "path",
443
- "tagPath": "",
444
- "tagNodeId": "",
445
- "methodName": "methodSum",
446
- "intervalMs": 500,
447
- "inputs": 1,
448
- "outputs": 0,
449
- "x": 730,
450
- "y": 300,
451
- "wires": []
452
- },
453
- {
454
- "id": "7e3dbdbd25da7510",
455
- "type": "function",
456
- "z": "d2b3eae6a1ecc622",
457
- "g": "23832db12bfa7d80",
458
- "name": "function 2",
459
- "func": "var input1 = msg.payload[0].value\nvar input2 = msg.payload[1].value\n\nmsg.payload = [\n {\n dataType: \"Float\",\n value: input1 + input2\n }\n];\n\nreturn msg;",
460
- "outputs": 1,
461
- "timeout": 0,
462
- "noerr": 0,
463
- "initialize": "",
464
- "finalize": "",
465
- "libs": [],
466
- "x": 520,
467
- "y": 300,
468
- "wires": [
469
- [
470
- "397bd99ac2297103"
471
- ]
472
- ]
473
- },
474
- {
475
- "id": "65603f52a369839a",
476
- "type": "inject",
477
- "z": "d2b3eae6a1ecc622",
478
- "g": "b1201c21c2d259b8",
479
- "name": "",
480
- "props": [
481
- {
482
- "p": "payload"
483
- },
484
- {
485
- "p": "topic",
486
- "vt": "str"
487
- }
488
- ],
489
- "repeat": "",
490
- "crontab": "",
491
- "once": false,
492
- "onceDelay": 0.1,
493
- "topic": "",
494
- "payload": "",
495
- "payloadType": "date",
496
- "x": 220,
497
- "y": 580,
498
- "wires": [
499
- [
500
- "1d023a68af5918c7"
501
- ]
502
- ]
503
- },
504
- {
505
- "id": "1d023a68af5918c7",
506
- "type": "function",
507
- "z": "d2b3eae6a1ecc622",
508
- "g": "b1201c21c2d259b8",
509
- "name": "function 47",
510
- "func": "const min = 30;\nconst max = 40;\nconst randomInt1 = Math.floor(Math.random() * (max - min + 1)) + min;\nconst randomInt2 = Math.floor(Math.random() * (max - min + 1)) + min;\nconst randomInt3 = Math.floor(Math.random() * (max - min + 1)) + min;\n\n\nmsg.payload = [\n {\n \"nodePath\": \"myServer1.newObject\",\n \"severity\": 0,\n \"message\": \"newObject message\"\n },\n {\n \"nodePath\": \"myServer1.newObject\",\n \"severity\": 500,\n \"message\": \"newObject message 2\"\n },\n {\n \"nodePath\": \"myServer1.newObject\",\n \"severity\": 1000,\n \"message\": \"newObject message 3\"\n }\n]\n\n\n\n\n\n\n\n\nreturn msg",
511
- "outputs": 1,
512
- "timeout": 0,
513
- "noerr": 0,
514
- "initialize": "",
515
- "finalize": "",
516
- "libs": [],
517
- "x": 450,
518
- "y": 580,
519
- "wires": [
520
- [
521
- "d28240a9d9ffdd43"
522
- ]
523
- ]
524
- },
525
- {
526
- "id": "55df4c29fedf13c8",
527
- "type": "debug",
528
- "z": "d2b3eae6a1ecc622",
529
- "g": "b1201c21c2d259b8",
530
- "name": "debug 38",
531
- "active": false,
532
- "tosidebar": true,
533
- "console": false,
534
- "tostatus": false,
535
- "complete": "false",
536
- "statusVal": "",
537
- "statusType": "auto",
538
- "x": 880,
539
- "y": 580,
540
- "wires": []
541
- },
542
- {
543
- "id": "d28240a9d9ffdd43",
544
- "type": "opcua-server-io",
545
- "z": "d2b3eae6a1ecc622",
546
- "g": "b1201c21c2d259b8",
547
- "name": "",
548
- "serverRef": "myServer1",
549
- "mode": "event",
550
- "identifierType": "path",
551
- "tagPath": "",
552
- "tagNodeId": "",
553
- "methodName": "",
554
- "intervalMs": 500,
555
- "inputs": 1,
556
- "outputs": 1,
557
- "x": 660,
558
- "y": 580,
559
- "wires": [
560
- [
561
- "55df4c29fedf13c8"
562
- ]
563
- ]
564
- },
565
- {
566
- "id": "673ba93006e6550a",
567
- "type": "comment",
568
- "z": "d2b3eae6a1ecc622",
569
- "g": "b1201c21c2d259b8",
570
- "name": "event",
571
- "info": "",
572
- "x": 170,
573
- "y": 520,
574
- "wires": []
575
- },
576
- {
577
- "id": "34f2a0d0ba7fd911",
578
- "type": "inject",
579
- "z": "d2b3eae6a1ecc622",
580
- "g": "36d46609aecf1392",
581
- "name": "",
582
- "props": [
583
- {
584
- "p": "payload"
585
- },
586
- {
587
- "p": "topic",
588
- "vt": "str"
589
- }
590
- ],
591
- "repeat": "",
592
- "crontab": "",
593
- "once": false,
594
- "onceDelay": 0.1,
595
- "topic": "",
596
- "payload": "",
597
- "payloadType": "date",
598
- "x": 220,
599
- "y": 140,
600
- "wires": [
601
- [
602
- "f56f61693a49cdcb"
603
- ]
604
- ]
605
- },
606
- {
607
- "id": "f56f61693a49cdcb",
608
- "type": "template",
609
- "z": "d2b3eae6a1ecc622",
610
- "g": "36d46609aecf1392",
611
- "name": "original modal",
612
- "field": "payload",
613
- "fieldType": "msg",
614
- "format": "json",
615
- "syntax": "mustache",
616
- "template": "{\n \"objects\": [],\n \"folders\": [\n {\n \"name\": \"myServer1\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [\n {\n \"name\": \"folderMethod\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [],\n \"methods\": [\n {\n \"name\": \"methodSum\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"inputs\": [\n {\n \"name\": \"var1\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n },\n {\n \"name\": \"var2\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n }\n ],\n \"outputs\": [\n {\n \"name\": \"result\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n }\n ]\n },\n {\n \"name\": \"methodMultiplication\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"inputs\": [\n {\n \"name\": \"var1\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n },\n {\n \"name\": \"var2\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n }\n ],\n \"outputs\": [\n {\n \"name\": \"result\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n }\n ]\n }\n ],\n \"objectsTypes\": []\n },\n {\n \"name\": \"folderAlarms\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [\n {\n \"name\": \"levelAlarm1\",\n \"variableNodeId\": \"myServer1.variableLevelAlarm\",\n \"type\": \"levelAlarm\",\n \"enabled\": true,\n \"severity\": 500,\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"highHighLimit\": 90,\n \"highHighMessage\": \"High High alarm\",\n \"highLimit\": 80,\n \"highMessage\": \"High alarm\",\n \"lowLimit\": 20,\n \"lowMessage\": \"Low alarm\",\n \"lowLowLimit\": 10,\n \"lowLowMessage\": \"Low Low alarm\",\n \"normalStateValue\": 0,\n \"digitalMessage\": \"Digital alarm\"\n },\n {\n \"name\": \"digitalAlarm1\",\n \"variableNodeId\": \"myServer1.variableDigitalAlarm\",\n \"type\": \"digitalAlarm\",\n \"enabled\": true,\n \"severity\": 500,\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"highHighLimit\": 100,\n \"highHighMessage\": \"High High alarm\",\n \"highLimit\": 80,\n \"highMessage\": \"High alarm\",\n \"lowLimit\": 20,\n \"lowMessage\": \"Low alarm\",\n \"lowLowLimit\": 0,\n \"lowLowMessage\": \"Low Low alarm\",\n \"normalStateValue\": 0,\n \"digitalMessage\": \"Digital alarm\"\n }\n ],\n \"methods\": [],\n \"objectsTypes\": []\n },\n {\n \"name\": \"folderCustomObjectType\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": [\n {\n \"name\": \"customObjectType1\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"ns=2;s=myServer1.folderCustomObjectType.customObjectType1\",\n \"namespaceId\": 2,\n \"objectsType\": \"customObjectType\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n },\n {\n \"name\": \"customObjectType2\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"ns=2;s=myServer1.folderCustomObjectType.customObjectType2\",\n \"namespaceId\": 2,\n \"objectsType\": \"customObjectType\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n }\n ]\n }\n ],\n \"objects\": [\n {\n \"name\": \"newObject\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [\n {\n \"name\": \"newVariable\",\n \"type\": \"Int32\",\n \"value\": \"\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n },\n {\n \"name\": \"newVariable2\",\n \"type\": \"Float\",\n \"value\": \"123.3\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n }\n ],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n }\n ],\n \"variables\": [\n {\n \"name\": \"variableLevelAlarm\",\n \"type\": \"Int32\",\n \"value\": \"50\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n },\n {\n \"name\": \"variableDigitalAlarm\",\n \"type\": \"Boolean\",\n \"value\": \"0\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n },\n {\n \"name\": \"variableArray\",\n \"type\": \"Int32\",\n \"value\": \"[10,20,30,40]\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n }\n ],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n }\n ],\n \"objectsTypes\": [\n {\n \"name\": \"customObjectType\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"ns=2;s=customObjectType\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [\n {\n \"name\": \"var1\",\n \"type\": \"Int32\",\n \"value\": \"\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"ns=2;s=customObjectType.var1\",\n \"namespaceId\": 2\n },\n {\n \"name\": \"var2\",\n \"type\": \"Int32\",\n \"value\": \"\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"ns=2;s=customObjectType.var2\",\n \"namespaceId\": 2\n }\n ],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n }\n ],\n \"nameSpaces\": [\n {\n \"id\": 2,\n \"name\": \"urn:node-red:opc-ua-server\"\n },\n {\n \"id\": 3,\n \"name\": \"urn:plant2:3\"\n }\n ]\n}",
617
- "output": "json",
618
- "x": 500,
619
- "y": 140,
620
- "wires": [
621
- [
622
- "8b311452217de452"
623
- ]
624
- ]
625
- },
626
- {
627
- "id": "662e19d35ced7eaa",
628
- "type": "opcua-server-io",
629
- "z": "d2b3eae6a1ecc622",
630
- "g": "b2ce35ceb2bdafd8",
631
- "name": "",
632
- "serverRef": "myServer1",
633
- "mode": "events",
634
- "identifierType": "path",
635
- "tagPath": "",
636
- "tagNodeId": "",
637
- "methodName": "",
638
- "intervalMs": "1000",
639
- "inputs": 0,
640
- "outputs": 1,
641
- "x": 180,
642
- "y": 760,
643
- "wires": [
644
- [
645
- "b174ca5ba476a397"
646
- ]
647
- ]
648
- },
649
- {
650
- "id": "b174ca5ba476a397",
651
- "type": "debug",
652
- "z": "d2b3eae6a1ecc622",
653
- "g": "b2ce35ceb2bdafd8",
654
- "name": "debug 1",
655
- "active": false,
656
- "tosidebar": true,
657
- "console": false,
658
- "tostatus": false,
659
- "complete": "false",
660
- "statusVal": "",
661
- "statusType": "auto",
662
- "x": 450,
663
- "y": 760,
664
- "wires": []
665
- },
666
- {
667
- "id": "2defd51ae95a1d97",
668
- "type": "comment",
669
- "z": "d2b3eae6a1ecc622",
670
- "g": "b2ce35ceb2bdafd8",
671
- "name": "events server read and write(clients)",
672
- "info": "",
673
- "x": 240,
674
- "y": 700,
675
- "wires": []
676
- },
677
- {
678
- "id": "668921cc357bd516",
679
- "type": "inject",
680
- "z": "d2b3eae6a1ecc622",
681
- "g": "d8fd16c88ec103e5",
682
- "name": "alarm on",
683
- "props": [
684
- {
685
- "p": "payload"
686
- },
687
- {
688
- "p": "topic",
689
- "vt": "str"
690
- },
691
- {
692
- "p": "payload1",
693
- "v": "92",
694
- "vt": "num"
695
- },
696
- {
697
- "p": "payload2",
698
- "v": "true",
699
- "vt": "bool"
700
- }
701
- ],
702
- "repeat": "",
703
- "crontab": "",
704
- "once": false,
705
- "onceDelay": 0.1,
706
- "topic": "",
707
- "payload": "",
708
- "payloadType": "date",
709
- "x": 180,
710
- "y": 980,
711
- "wires": [
712
- [
713
- "9cfc3721152e8357"
714
- ]
715
- ]
716
- },
717
- {
718
- "id": "f47bc3635ec2a31d",
719
- "type": "opcua-server-io",
720
- "z": "d2b3eae6a1ecc622",
721
- "g": "d8fd16c88ec103e5",
722
- "name": "",
723
- "serverRef": "myServer1",
724
- "mode": "write",
725
- "identifierType": "path",
726
- "tagPath": "",
727
- "tagNodeId": "",
728
- "methodName": "",
729
- "intervalMs": 500,
730
- "inputs": 1,
731
- "outputs": 1,
732
- "x": 640,
733
- "y": 940,
734
- "wires": [
735
- [
736
- "266e174a9f4e200c"
737
- ]
738
- ]
739
- },
740
- {
741
- "id": "9cfc3721152e8357",
742
- "type": "function",
743
- "z": "d2b3eae6a1ecc622",
744
- "g": "d8fd16c88ec103e5",
745
- "name": "function 1",
746
- "func": "msg.payload = [\n {\n \"name\": \"variableLevelAlarm\",\n \"path\": \"myServer1.variableLevelAlarm\",\n \"value\" : msg.payload1\n },\n {\n \"name\": \"variablDigitalAlarm\",\n \"path\": \"myServer1.variableDigitalAlarm\",\n \"value\" : msg.payload2\n }\n]\nreturn msg;",
747
- "outputs": 1,
748
- "timeout": 0,
749
- "noerr": 0,
750
- "initialize": "",
751
- "finalize": "",
752
- "libs": [],
753
- "x": 460,
754
- "y": 940,
755
- "wires": [
756
- [
757
- "f47bc3635ec2a31d"
758
- ]
759
- ]
760
- },
761
- {
762
- "id": "266e174a9f4e200c",
763
- "type": "debug",
764
- "z": "d2b3eae6a1ecc622",
765
- "g": "d8fd16c88ec103e5",
766
- "name": "debug 2",
767
- "active": true,
768
- "tosidebar": true,
769
- "console": false,
770
- "tostatus": false,
771
- "complete": "false",
772
- "statusVal": "",
773
- "statusType": "auto",
774
- "x": 870,
775
- "y": 920,
776
- "wires": []
777
- },
778
- {
779
- "id": "6ec5659b15d00940",
780
- "type": "comment",
781
- "z": "d2b3eae6a1ecc622",
782
- "g": "d8fd16c88ec103e5",
783
- "name": "write",
784
- "info": "",
785
- "x": 150,
786
- "y": 880,
787
- "wires": []
788
- },
789
- {
790
- "id": "e4edcc77427188f6",
791
- "type": "inject",
792
- "z": "d2b3eae6a1ecc622",
793
- "g": "c84194e1716f46ab",
794
- "name": "",
795
- "props": [
796
- {
797
- "p": "payload"
798
- },
799
- {
800
- "p": "topic",
801
- "vt": "str"
802
- }
803
- ],
804
- "repeat": "",
805
- "crontab": "",
806
- "once": false,
807
- "onceDelay": 0.1,
808
- "topic": "",
809
- "payload": "",
810
- "payloadType": "date",
811
- "x": 240,
812
- "y": 1500,
813
- "wires": [
814
- [
815
- "932e2635730c7a44"
816
- ]
817
- ]
818
- },
819
- {
820
- "id": "932e2635730c7a44",
821
- "type": "opcua-server-io",
822
- "z": "d2b3eae6a1ecc622",
823
- "g": "c84194e1716f46ab",
824
- "name": "read direct",
825
- "serverRef": "myServer1",
826
- "mode": "read",
827
- "identifierType": "path",
828
- "tagPath": "myServer1.variableLevelAlarm",
829
- "tagNodeId": "",
830
- "methodName": "",
831
- "intervalMs": 500,
832
- "inputs": 1,
833
- "outputs": 1,
834
- "x": 540,
835
- "y": 1500,
836
- "wires": [
837
- [
838
- "bfc08132027e72b7"
839
- ]
840
- ]
841
- },
842
- {
843
- "id": "bfc08132027e72b7",
844
- "type": "debug",
845
- "z": "d2b3eae6a1ecc622",
846
- "g": "c84194e1716f46ab",
847
- "name": "debug 3",
848
- "active": true,
849
- "tosidebar": true,
850
- "console": false,
851
- "tostatus": false,
852
- "complete": "false",
853
- "statusVal": "",
854
- "statusType": "auto",
855
- "x": 760,
856
- "y": 1500,
857
- "wires": []
858
- },
859
- {
860
- "id": "0368379e84561696",
861
- "type": "inject",
862
- "z": "d2b3eae6a1ecc622",
863
- "g": "d8fd16c88ec103e5",
864
- "name": "alarm off",
865
- "props": [
866
- {
867
- "p": "payload"
868
- },
869
- {
870
- "p": "topic",
871
- "vt": "str"
872
- },
873
- {
874
- "p": "payload1",
875
- "v": "50",
876
- "vt": "num"
877
- },
878
- {
879
- "p": "payload2",
880
- "v": "false",
881
- "vt": "bool"
882
- }
883
- ],
884
- "repeat": "",
885
- "crontab": "",
886
- "once": false,
887
- "onceDelay": 0.1,
888
- "topic": "",
889
- "payload": "",
890
- "payloadType": "date",
891
- "x": 180,
892
- "y": 940,
893
- "wires": [
894
- [
895
- "9cfc3721152e8357"
896
- ]
897
- ]
898
- },
899
- {
900
- "id": "2da39bcbcc3d1109",
901
- "type": "comment",
902
- "z": "d2b3eae6a1ecc622",
903
- "g": "d8fd16c88ec103e5",
904
- "name": "write single",
905
- "info": "",
906
- "x": 200,
907
- "y": 1040,
908
- "wires": []
909
- },
910
- {
911
- "id": "36c054113a954792",
912
- "type": "inject",
913
- "z": "d2b3eae6a1ecc622",
914
- "g": "d8fd16c88ec103e5",
915
- "name": "51",
916
- "props": [
917
- {
918
- "p": "payload"
919
- }
920
- ],
921
- "repeat": "",
922
- "crontab": "",
923
- "once": false,
924
- "onceDelay": 0.1,
925
- "topic": "",
926
- "payload": "51",
927
- "payloadType": "num",
928
- "x": 170,
929
- "y": 1100,
930
- "wires": [
931
- [
932
- "c03eaa1b388c50f3"
933
- ]
934
- ]
935
- },
936
- {
937
- "id": "c03eaa1b388c50f3",
938
- "type": "opcua-server-io",
939
- "z": "d2b3eae6a1ecc622",
940
- "g": "d8fd16c88ec103e5",
941
- "name": "write direct",
942
- "serverRef": "myServer1",
943
- "mode": "write",
944
- "identifierType": "path",
945
- "tagPath": "myServer1.variableLevelAlarm",
946
- "tagNodeId": "",
947
- "methodName": "",
948
- "intervalMs": 500,
949
- "inputs": 1,
950
- "outputs": 1,
951
- "x": 400,
952
- "y": 1100,
953
- "wires": [
954
- [
955
- "eed2029c30d5bb5b"
956
- ]
957
- ]
958
- },
959
- {
960
- "id": "eed2029c30d5bb5b",
961
- "type": "debug",
962
- "z": "d2b3eae6a1ecc622",
963
- "g": "d8fd16c88ec103e5",
964
- "name": "debug 4",
965
- "active": true,
966
- "tosidebar": true,
967
- "console": false,
968
- "tostatus": false,
969
- "complete": "false",
970
- "statusVal": "",
971
- "statusType": "auto",
972
- "x": 640,
973
- "y": 1100,
974
- "wires": []
975
- },
976
- {
977
- "id": "6c87b85f99be3616",
978
- "type": "inject",
979
- "z": "d2b3eae6a1ecc622",
980
- "g": "c84194e1716f46ab",
981
- "name": "",
982
- "props": [
983
- {
984
- "p": "payload"
985
- },
986
- {
987
- "p": "topic",
988
- "vt": "str"
989
- }
990
- ],
991
- "repeat": "",
992
- "crontab": "",
993
- "once": false,
994
- "onceDelay": 0.1,
995
- "topic": "",
996
- "payload": "",
997
- "payloadType": "date",
998
- "x": 220,
999
- "y": 1420,
1000
- "wires": [
1001
- [
1002
- "9c09946d8577b52d"
1003
- ]
1004
- ]
1005
- },
1006
- {
1007
- "id": "9c09946d8577b52d",
1008
- "type": "function",
1009
- "z": "d2b3eae6a1ecc622",
1010
- "g": "c84194e1716f46ab",
1011
- "name": "function 3",
1012
- "func": "msg.payload = [\n {\n \"name\": \"variableLevelAlarm\",\n \"path\": \"myServer1.variableLevelAlarm\",\n \"value\" : msg.payload1\n },\n {\n \"name\": \"variablDigitalAlarm\",\n \"path\": \"myServer1.variableDigitalAlarm\",\n \"value\" : msg.payload2\n }\n]\nreturn msg;",
1013
- "outputs": 1,
1014
- "timeout": 0,
1015
- "noerr": 0,
1016
- "initialize": "",
1017
- "finalize": "",
1018
- "libs": [],
1019
- "x": 440,
1020
- "y": 1420,
1021
- "wires": [
1022
- [
1023
- "2676f36ebaab5969"
1024
- ]
1025
- ]
1026
- },
1027
- {
1028
- "id": "2676f36ebaab5969",
1029
- "type": "opcua-server-io",
1030
- "z": "d2b3eae6a1ecc622",
1031
- "g": "c84194e1716f46ab",
1032
- "name": "",
1033
- "serverRef": "myServer1",
1034
- "mode": "read",
1035
- "identifierType": "path",
1036
- "tagPath": "",
1037
- "tagNodeId": "",
1038
- "methodName": "",
1039
- "intervalMs": 500,
1040
- "inputs": 1,
1041
- "outputs": 1,
1042
- "x": 640,
1043
- "y": 1420,
1044
- "wires": [
1045
- [
1046
- "1dc6b8aa2257eca3"
1047
- ]
1048
- ]
1049
- },
1050
- {
1051
- "id": "1dc6b8aa2257eca3",
1052
- "type": "debug",
1053
- "z": "d2b3eae6a1ecc622",
1054
- "g": "c84194e1716f46ab",
1055
- "name": "debug 5",
1056
- "active": true,
1057
- "tosidebar": true,
1058
- "console": false,
1059
- "tostatus": false,
1060
- "complete": "false",
1061
- "statusVal": "",
1062
- "statusType": "auto",
1063
- "x": 840,
1064
- "y": 1420,
1065
- "wires": []
1066
- },
1067
- {
1068
- "id": "329a2a1a632fd233",
1069
- "type": "comment",
1070
- "z": "d2b3eae6a1ecc622",
1071
- "g": "c84194e1716f46ab",
1072
- "name": "read",
1073
- "info": "",
1074
- "x": 150,
1075
- "y": 1360,
1076
- "wires": []
1077
- },
1078
- {
1079
- "id": "27e7e959761bf77f",
1080
- "type": "comment",
1081
- "z": "d2b3eae6a1ecc622",
1082
- "g": "c84194e1716f46ab",
1083
- "name": "read single",
1084
- "info": "",
1085
- "x": 200,
1086
- "y": 1460,
1087
- "wires": []
1088
- },
1089
- {
1090
- "id": "b0b8022d4920fc55",
1091
- "type": "comment",
1092
- "z": "d2b3eae6a1ecc622",
1093
- "g": "23832db12bfa7d80",
1094
- "name": "methods",
1095
- "info": "",
1096
- "x": 160,
1097
- "y": 260,
1098
- "wires": []
1099
- },
1100
- {
1101
- "id": "7d0b6982f5786807",
1102
- "type": "opcua-server-io",
1103
- "z": "d2b3eae6a1ecc622",
1104
- "g": "23832db12bfa7d80",
1105
- "name": "",
1106
- "serverRef": "myServer1",
1107
- "mode": "method-input",
1108
- "identifierType": "path",
1109
- "tagPath": "",
1110
- "tagNodeId": "",
1111
- "methodName": "methodMultiplication",
1112
- "intervalMs": 500,
1113
- "inputs": 0,
1114
- "outputs": 1,
1115
- "x": 190,
1116
- "y": 400,
1117
- "wires": [
1118
- [
1119
- "d1187abb8f01729a"
1120
- ]
1121
- ]
1122
- },
1123
- {
1124
- "id": "08991f3c9d3b47a0",
1125
- "type": "opcua-server-io",
1126
- "z": "d2b3eae6a1ecc622",
1127
- "g": "23832db12bfa7d80",
1128
- "name": "",
1129
- "serverRef": "myServer1",
1130
- "mode": "method-output",
1131
- "identifierType": "path",
1132
- "tagPath": "",
1133
- "tagNodeId": "",
1134
- "methodName": "methodMultiplication",
1135
- "intervalMs": 500,
1136
- "inputs": 1,
1137
- "outputs": 0,
1138
- "x": 750,
1139
- "y": 400,
1140
- "wires": []
1141
- },
1142
- {
1143
- "id": "d1187abb8f01729a",
1144
- "type": "function",
1145
- "z": "d2b3eae6a1ecc622",
1146
- "g": "23832db12bfa7d80",
1147
- "name": "function 4",
1148
- "func": "var input1 = msg.payload[0].value\nvar input2 = msg.payload[1].value\n\nmsg.payload = [\n {\n dataType: \"Float\",\n value: input1 * input2\n }\n];\n\nreturn msg;",
1149
- "outputs": 1,
1150
- "timeout": 0,
1151
- "noerr": 0,
1152
- "initialize": "",
1153
- "finalize": "",
1154
- "libs": [],
1155
- "x": 520,
1156
- "y": 400,
1157
- "wires": [
1158
- [
1159
- "08991f3c9d3b47a0"
1160
- ]
1161
- ]
1162
- },
1163
- {
1164
- "id": "06a5925b29d016e7",
1165
- "type": "comment",
1166
- "z": "d2b3eae6a1ecc622",
1167
- "g": "36d46609aecf1392",
1168
- "name": "server",
1169
- "info": "",
1170
- "x": 190,
1171
- "y": 80,
1172
- "wires": []
1173
- },
1174
- {
1175
- "id": "fa224a9d8ab1f2c7",
1176
- "type": "inject",
1177
- "z": "d2b3eae6a1ecc622",
1178
- "g": "c84194e1716f46ab",
1179
- "name": "",
1180
- "props": [
1181
- {
1182
- "p": "payload"
1183
- },
1184
- {
1185
- "p": "topic",
1186
- "vt": "str"
1187
- }
1188
- ],
1189
- "repeat": "",
1190
- "crontab": "",
1191
- "once": false,
1192
- "onceDelay": 0.1,
1193
- "topic": "",
1194
- "payload": "",
1195
- "payloadType": "date",
1196
- "x": 240,
1197
- "y": 1640,
1198
- "wires": [
1199
- [
1200
- "d19b915e7393b9a7"
1201
- ]
1202
- ]
1203
- },
1204
- {
1205
- "id": "d19b915e7393b9a7",
1206
- "type": "opcua-server-io",
1207
- "z": "d2b3eae6a1ecc622",
1208
- "g": "c84194e1716f46ab",
1209
- "name": "read direct",
1210
- "serverRef": "myServer1",
1211
- "mode": "read",
1212
- "identifierType": "path",
1213
- "tagPath": "myServer1.variableArray",
1214
- "tagNodeId": "",
1215
- "methodName": "",
1216
- "intervalMs": 500,
1217
- "inputs": 1,
1218
- "outputs": 1,
1219
- "x": 510,
1220
- "y": 1640,
1221
- "wires": [
1222
- [
1223
- "984522736a0656a7"
1224
- ]
1225
- ]
1226
- },
1227
- {
1228
- "id": "984522736a0656a7",
1229
- "type": "debug",
1230
- "z": "d2b3eae6a1ecc622",
1231
- "g": "c84194e1716f46ab",
1232
- "name": "debug 17",
1233
- "active": true,
1234
- "tosidebar": true,
1235
- "console": false,
1236
- "tostatus": false,
1237
- "complete": "false",
1238
- "statusVal": "",
1239
- "statusType": "auto",
1240
- "x": 680,
1241
- "y": 1640,
1242
- "wires": []
1243
- },
1244
- {
1245
- "id": "a944210da4387a6a",
1246
- "type": "comment",
1247
- "z": "d2b3eae6a1ecc622",
1248
- "g": "c84194e1716f46ab",
1249
- "name": "read array",
1250
- "info": "",
1251
- "x": 200,
1252
- "y": 1580,
1253
- "wires": []
1254
- },
1255
- {
1256
- "id": "a5083cedc1237564",
1257
- "type": "comment",
1258
- "z": "d2b3eae6a1ecc622",
1259
- "g": "d8fd16c88ec103e5",
1260
- "name": "write array",
1261
- "info": "",
1262
- "x": 160,
1263
- "y": 1180,
1264
- "wires": []
1265
- },
1266
- {
1267
- "id": "e91a6b84ebe3556d",
1268
- "type": "inject",
1269
- "z": "d2b3eae6a1ecc622",
1270
- "g": "d8fd16c88ec103e5",
1271
- "name": "51",
1272
- "props": [
1273
- {
1274
- "p": "payload"
1275
- }
1276
- ],
1277
- "repeat": "",
1278
- "crontab": "",
1279
- "once": false,
1280
- "onceDelay": 0.1,
1281
- "topic": "",
1282
- "payload": "[11,21,31,41]",
1283
- "payloadType": "str",
1284
- "x": 170,
1285
- "y": 1240,
1286
- "wires": [
1287
- [
1288
- "8e6e2008f8f79caf"
1289
- ]
1290
- ]
1291
- },
1292
- {
1293
- "id": "8e6e2008f8f79caf",
1294
- "type": "opcua-server-io",
1295
- "z": "d2b3eae6a1ecc622",
1296
- "g": "d8fd16c88ec103e5",
1297
- "name": "write direct",
1298
- "serverRef": "myServer1",
1299
- "mode": "write",
1300
- "identifierType": "path",
1301
- "tagPath": "myServer1.variableArray",
1302
- "tagNodeId": "",
1303
- "methodName": "",
1304
- "intervalMs": 500,
1305
- "inputs": 1,
1306
- "outputs": 1,
1307
- "x": 350,
1308
- "y": 1240,
1309
- "wires": [
1310
- [
1311
- "7f610dc5a13b1356"
1312
- ]
1313
- ]
1314
- },
1315
- {
1316
- "id": "7f610dc5a13b1356",
1317
- "type": "debug",
1318
- "z": "d2b3eae6a1ecc622",
1319
- "g": "d8fd16c88ec103e5",
1320
- "name": "debug 18",
1321
- "active": true,
1322
- "tosidebar": true,
1323
- "console": false,
1324
- "tostatus": false,
1325
- "complete": "false",
1326
- "statusVal": "",
1327
- "statusType": "auto",
1328
- "x": 580,
1329
- "y": 1240,
1330
- "wires": []
1331
- },
1332
- {
1333
- "id": "ef63988ca2403b46",
1334
- "type": "opcua-client",
1335
- "z": "79a6f5fe6f4d465a",
1336
- "g": "285c23c3bad0ef27",
1337
- "name": "client read direct",
1338
- "connection": "b09a1570957d3c44",
1339
- "mode": "read",
1340
- "selectedItems": "[\n {\n \"name\": \"variableLevelAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableLevelAlarm\",\n \"type\": \"Int32\",\n \"nodeClass\": \"Variable\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=63\",\n \"browseName\": \"BaseDataVariableType\",\n \"displayName\": \"BaseDataVariableType\"\n },\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n },\n {\n \"name\": \"variableDigitalAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableDigitalAlarm\",\n \"type\": \"Boolean\",\n \"nodeClass\": \"Variable\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=63\",\n \"browseName\": \"BaseDataVariableType\",\n \"displayName\": \"BaseDataVariableType\"\n },\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]",
1341
- "samplingInterval": 250,
1342
- "publishingInterval": 250,
1343
- "x": 440,
1344
- "y": 120,
1345
- "wires": [
1346
- [
1347
- "19bc7a26f39f3ecc"
1348
- ]
1349
- ]
1350
- },
1351
- {
1352
- "id": "6cad9ec490596a99",
1353
- "type": "inject",
1354
- "z": "79a6f5fe6f4d465a",
1355
- "g": "285c23c3bad0ef27",
1356
- "name": "",
1357
- "props": [
1358
- {
1359
- "p": "payload"
1360
- },
1361
- {
1362
- "p": "topic",
1363
- "vt": "str"
1364
- }
1365
- ],
1366
- "repeat": "",
1367
- "crontab": "",
1368
- "once": false,
1369
- "onceDelay": 0.1,
1370
- "topic": "",
1371
- "payload": "",
1372
- "payloadType": "date",
1373
- "x": 200,
1374
- "y": 120,
1375
- "wires": [
1376
- [
1377
- "ef63988ca2403b46"
1378
- ]
1379
- ]
1380
- },
1381
- {
1382
- "id": "19bc7a26f39f3ecc",
1383
- "type": "debug",
1384
- "z": "79a6f5fe6f4d465a",
1385
- "g": "285c23c3bad0ef27",
1386
- "name": "debug 6",
1387
- "active": true,
1388
- "tosidebar": true,
1389
- "console": false,
1390
- "tostatus": false,
1391
- "complete": "false",
1392
- "statusVal": "",
1393
- "statusType": "auto",
1394
- "x": 640,
1395
- "y": 120,
1396
- "wires": []
1397
- },
1398
- {
1399
- "id": "1f5deaf79db824cf",
1400
- "type": "opcua-client",
1401
- "z": "79a6f5fe6f4d465a",
1402
- "g": "285c23c3bad0ef27",
1403
- "name": "client read ",
1404
- "connection": "b09a1570957d3c44",
1405
- "mode": "read",
1406
- "selectedItems": "[]",
1407
- "samplingInterval": 250,
1408
- "publishingInterval": 250,
1409
- "x": 630,
1410
- "y": 240,
1411
- "wires": [
1412
- [
1413
- "0ff0aaf552ae087e"
1414
- ]
1415
- ]
1416
- },
1417
- {
1418
- "id": "25d9d97555803451",
1419
- "type": "inject",
1420
- "z": "79a6f5fe6f4d465a",
1421
- "g": "285c23c3bad0ef27",
1422
- "name": "",
1423
- "props": [
1424
- {
1425
- "p": "payload"
1426
- },
1427
- {
1428
- "p": "topic",
1429
- "vt": "str"
1430
- }
1431
- ],
1432
- "repeat": "",
1433
- "crontab": "",
1434
- "once": false,
1435
- "onceDelay": 0.1,
1436
- "topic": "",
1437
- "payload": "",
1438
- "payloadType": "date",
1439
- "x": 200,
1440
- "y": 240,
1441
- "wires": [
1442
- [
1443
- "fc2cde946ce08e4e"
1444
- ]
1445
- ]
1446
- },
1447
- {
1448
- "id": "0ff0aaf552ae087e",
1449
- "type": "debug",
1450
- "z": "79a6f5fe6f4d465a",
1451
- "g": "285c23c3bad0ef27",
1452
- "name": "debug 7",
1453
- "active": true,
1454
- "tosidebar": true,
1455
- "console": false,
1456
- "tostatus": false,
1457
- "complete": "false",
1458
- "statusVal": "",
1459
- "statusType": "auto",
1460
- "x": 880,
1461
- "y": 240,
1462
- "wires": []
1463
- },
1464
- {
1465
- "id": "fc2cde946ce08e4e",
1466
- "type": "function",
1467
- "z": "79a6f5fe6f4d465a",
1468
- "g": "285c23c3bad0ef27",
1469
- "name": "function 5",
1470
- "func": "msg.payload = [\n {\n \"name\": \"variableLevelAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableLevelAlarm\",\n \"type\": \"Int32\"\n },\n {\n \"name\": \"variableDigitalAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableDigitalAlarm\",\n \"type\": \"Boolean\"\n }\n]\nreturn msg;",
1471
- "outputs": 1,
1472
- "timeout": 0,
1473
- "noerr": 0,
1474
- "initialize": "",
1475
- "finalize": "",
1476
- "libs": [],
1477
- "x": 420,
1478
- "y": 240,
1479
- "wires": [
1480
- [
1481
- "1f5deaf79db824cf"
1482
- ]
1483
- ]
1484
- },
1485
- {
1486
- "id": "2d6737a48c9bf131",
1487
- "type": "opcua-client",
1488
- "z": "79a6f5fe6f4d465a",
1489
- "g": "285c23c3bad0ef27",
1490
- "name": "client read Subscripition",
1491
- "connection": "b09a1570957d3c44",
1492
- "mode": "subscription",
1493
- "selectedItems": "[]",
1494
- "samplingInterval": "500",
1495
- "publishingInterval": "500",
1496
- "x": 670,
1497
- "y": 380,
1498
- "wires": [
1499
- [
1500
- "4ef2369fd3613329"
1501
- ]
1502
- ]
1503
- },
1504
- {
1505
- "id": "e751595f75537eae",
1506
- "type": "inject",
1507
- "z": "79a6f5fe6f4d465a",
1508
- "g": "285c23c3bad0ef27",
1509
- "name": "",
1510
- "props": [
1511
- {
1512
- "p": "payload"
1513
- },
1514
- {
1515
- "p": "topic",
1516
- "vt": "str"
1517
- }
1518
- ],
1519
- "repeat": "",
1520
- "crontab": "",
1521
- "once": false,
1522
- "onceDelay": 0.1,
1523
- "topic": "",
1524
- "payload": "",
1525
- "payloadType": "date",
1526
- "x": 200,
1527
- "y": 380,
1528
- "wires": [
1529
- [
1530
- "a08020e9f79e7270"
1531
- ]
1532
- ]
1533
- },
1534
- {
1535
- "id": "4ef2369fd3613329",
1536
- "type": "debug",
1537
- "z": "79a6f5fe6f4d465a",
1538
- "g": "285c23c3bad0ef27",
1539
- "name": "debug 8",
1540
- "active": true,
1541
- "tosidebar": true,
1542
- "console": false,
1543
- "tostatus": false,
1544
- "complete": "false",
1545
- "statusVal": "",
1546
- "statusType": "auto",
1547
- "x": 1000,
1548
- "y": 380,
1549
- "wires": []
1550
- },
1551
- {
1552
- "id": "a08020e9f79e7270",
1553
- "type": "function",
1554
- "z": "79a6f5fe6f4d465a",
1555
- "g": "285c23c3bad0ef27",
1556
- "name": "function 6",
1557
- "func": "msg.payload = [\n {\n \"name\": \"variableLevelAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableLevelAlarm\",\n \"type\": \"Int32\"\n },\n {\n \"name\": \"variableDigitalAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableDigitalAlarm\",\n \"type\": \"Boolean\"\n }\n]\nreturn msg;",
1558
- "outputs": 1,
1559
- "timeout": 0,
1560
- "noerr": 0,
1561
- "initialize": "",
1562
- "finalize": "",
1563
- "libs": [],
1564
- "x": 420,
1565
- "y": 380,
1566
- "wires": [
1567
- [
1568
- "2d6737a48c9bf131"
1569
- ]
1570
- ]
1571
- },
1572
- {
1573
- "id": "bb13fb80d451245a",
1574
- "type": "opcua-client",
1575
- "z": "79a6f5fe6f4d465a",
1576
- "g": "285c23c3bad0ef27",
1577
- "name": "client read Subscripition direct",
1578
- "connection": "b09a1570957d3c44",
1579
- "mode": "subscription",
1580
- "selectedItems": "[\n {\n \"name\": \"variableLevelAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableLevelAlarm\",\n \"type\": \"Int32\",\n \"nodeClass\": \"Variable\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=63\",\n \"browseName\": \"BaseDataVariableType\",\n \"displayName\": \"BaseDataVariableType\"\n },\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n },\n {\n \"name\": \"variableDigitalAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableDigitalAlarm\",\n \"type\": \"Boolean\",\n \"nodeClass\": \"Variable\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=63\",\n \"browseName\": \"BaseDataVariableType\",\n \"displayName\": \"BaseDataVariableType\"\n },\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]",
1581
- "samplingInterval": "500",
1582
- "publishingInterval": "500",
1583
- "x": 690,
1584
- "y": 460,
1585
- "wires": [
1586
- [
1587
- "1deb5211a2ddd488"
1588
- ]
1589
- ]
1590
- },
1591
- {
1592
- "id": "ebf0bf0b98640c41",
1593
- "type": "inject",
1594
- "z": "79a6f5fe6f4d465a",
1595
- "g": "285c23c3bad0ef27",
1596
- "name": "",
1597
- "props": [
1598
- {
1599
- "p": "payload"
1600
- },
1601
- {
1602
- "p": "topic",
1603
- "vt": "str"
1604
- }
1605
- ],
1606
- "repeat": "",
1607
- "crontab": "",
1608
- "once": false,
1609
- "onceDelay": 0.1,
1610
- "topic": "",
1611
- "payload": "",
1612
- "payloadType": "date",
1613
- "x": 200,
1614
- "y": 460,
1615
- "wires": [
1616
- [
1617
- "bb13fb80d451245a"
1618
- ]
1619
- ]
1620
- },
1621
- {
1622
- "id": "1deb5211a2ddd488",
1623
- "type": "debug",
1624
- "z": "79a6f5fe6f4d465a",
1625
- "g": "285c23c3bad0ef27",
1626
- "name": "debug 9",
1627
- "active": true,
1628
- "tosidebar": true,
1629
- "console": false,
1630
- "tostatus": false,
1631
- "complete": "false",
1632
- "statusVal": "",
1633
- "statusType": "auto",
1634
- "x": 1000,
1635
- "y": 460,
1636
- "wires": []
1637
- },
1638
- {
1639
- "id": "a21aeea307028ae4",
1640
- "type": "comment",
1641
- "z": "79a6f5fe6f4d465a",
1642
- "g": "285c23c3bad0ef27",
1643
- "name": "read",
1644
- "info": "",
1645
- "x": 130,
1646
- "y": 60,
1647
- "wires": []
1648
- },
1649
- {
1650
- "id": "7b40230aee3f3c0f",
1651
- "type": "comment",
1652
- "z": "79a6f5fe6f4d465a",
1653
- "g": "8e096ccb69a8c8f5",
1654
- "name": "write",
1655
- "info": "",
1656
- "x": 130,
1657
- "y": 600,
1658
- "wires": []
1659
- },
1660
- {
1661
- "id": "aa5537a918d6776b",
1662
- "type": "opcua-client",
1663
- "z": "79a6f5fe6f4d465a",
1664
- "g": "8e096ccb69a8c8f5",
1665
- "name": "client write direct",
1666
- "connection": "b09a1570957d3c44",
1667
- "mode": "write",
1668
- "selectedItems": "[\n {\n \"name\": \"variableLevelAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableLevelAlarm\",\n \"type\": \"Int32\",\n \"nodeClass\": \"Variable\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=63\",\n \"browseName\": \"BaseDataVariableType\",\n \"displayName\": \"BaseDataVariableType\"\n },\n \"valueProperty\": \"payload1\",\n \"valuePropertyType\": \"msg\"\n },\n {\n \"name\": \"variableDigitalAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableDigitalAlarm\",\n \"type\": \"Boolean\",\n \"nodeClass\": \"Variable\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=63\",\n \"browseName\": \"BaseDataVariableType\",\n \"displayName\": \"BaseDataVariableType\"\n },\n \"valueProperty\": \"payload2\",\n \"valuePropertyType\": \"msg\"\n }\n]",
1669
- "samplingInterval": 250,
1670
- "publishingInterval": 250,
1671
- "x": 430,
1672
- "y": 680,
1673
- "wires": [
1674
- [
1675
- "a894da66d77e8418"
1676
- ]
1677
- ]
1678
- },
1679
- {
1680
- "id": "a894da66d77e8418",
1681
- "type": "debug",
1682
- "z": "79a6f5fe6f4d465a",
1683
- "g": "8e096ccb69a8c8f5",
1684
- "name": "debug 10",
1685
- "active": false,
1686
- "tosidebar": true,
1687
- "console": false,
1688
- "tostatus": false,
1689
- "complete": "false",
1690
- "statusVal": "",
1691
- "statusType": "auto",
1692
- "x": 620,
1693
- "y": 680,
1694
- "wires": []
1695
- },
1696
- {
1697
- "id": "3b03a088eee38b35",
1698
- "type": "inject",
1699
- "z": "79a6f5fe6f4d465a",
1700
- "g": "8e096ccb69a8c8f5",
1701
- "name": "alarm on",
1702
- "props": [
1703
- {
1704
- "p": "payload"
1705
- },
1706
- {
1707
- "p": "topic",
1708
- "vt": "str"
1709
- },
1710
- {
1711
- "p": "payload1",
1712
- "v": "92",
1713
- "vt": "num"
1714
- },
1715
- {
1716
- "p": "payload2",
1717
- "v": "true",
1718
- "vt": "bool"
1719
- }
1720
- ],
1721
- "repeat": "",
1722
- "crontab": "",
1723
- "once": false,
1724
- "onceDelay": 0.1,
1725
- "topic": "",
1726
- "payload": "",
1727
- "payloadType": "date",
1728
- "x": 160,
1729
- "y": 740,
1730
- "wires": [
1731
- [
1732
- "aa5537a918d6776b"
1733
- ]
1734
- ]
1735
- },
1736
- {
1737
- "id": "df6a3b9bbd0f6243",
1738
- "type": "inject",
1739
- "z": "79a6f5fe6f4d465a",
1740
- "g": "8e096ccb69a8c8f5",
1741
- "name": "alarm off",
1742
- "props": [
1743
- {
1744
- "p": "payload"
1745
- },
1746
- {
1747
- "p": "topic",
1748
- "vt": "str"
1749
- },
1750
- {
1751
- "p": "payload1",
1752
- "v": "50",
1753
- "vt": "num"
1754
- },
1755
- {
1756
- "p": "payload2",
1757
- "v": "false",
1758
- "vt": "bool"
1759
- }
1760
- ],
1761
- "repeat": "",
1762
- "crontab": "",
1763
- "once": false,
1764
- "onceDelay": 0.1,
1765
- "topic": "",
1766
- "payload": "",
1767
- "payloadType": "date",
1768
- "x": 160,
1769
- "y": 680,
1770
- "wires": [
1771
- [
1772
- "aa5537a918d6776b"
1773
- ]
1774
- ]
1775
- },
1776
- {
1777
- "id": "ec71d8a75c78c0ba",
1778
- "type": "opcua-client",
1779
- "z": "79a6f5fe6f4d465a",
1780
- "g": "8e096ccb69a8c8f5",
1781
- "name": "client write ",
1782
- "connection": "b09a1570957d3c44",
1783
- "mode": "write",
1784
- "selectedItems": "[]",
1785
- "samplingInterval": 250,
1786
- "publishingInterval": 250,
1787
- "x": 570,
1788
- "y": 820,
1789
- "wires": [
1790
- [
1791
- "a9ce0dba53d46bb7"
1792
- ]
1793
- ]
1794
- },
1795
- {
1796
- "id": "a9ce0dba53d46bb7",
1797
- "type": "debug",
1798
- "z": "79a6f5fe6f4d465a",
1799
- "g": "8e096ccb69a8c8f5",
1800
- "name": "debug 11",
1801
- "active": true,
1802
- "tosidebar": true,
1803
- "console": false,
1804
- "tostatus": false,
1805
- "complete": "false",
1806
- "statusVal": "",
1807
- "statusType": "auto",
1808
- "x": 740,
1809
- "y": 820,
1810
- "wires": []
1811
- },
1812
- {
1813
- "id": "2484ca47fc4d911a",
1814
- "type": "inject",
1815
- "z": "79a6f5fe6f4d465a",
1816
- "g": "8e096ccb69a8c8f5",
1817
- "name": "alarm on",
1818
- "props": [
1819
- {
1820
- "p": "payload"
1821
- },
1822
- {
1823
- "p": "topic",
1824
- "vt": "str"
1825
- },
1826
- {
1827
- "p": "payload1",
1828
- "v": "92",
1829
- "vt": "num"
1830
- },
1831
- {
1832
- "p": "payload2",
1833
- "v": "true",
1834
- "vt": "bool"
1835
- }
1836
- ],
1837
- "repeat": "",
1838
- "crontab": "",
1839
- "once": false,
1840
- "onceDelay": 0.1,
1841
- "topic": "",
1842
- "payload": "",
1843
- "payloadType": "date",
1844
- "x": 160,
1845
- "y": 900,
1846
- "wires": [
1847
- [
1848
- "48ba7d74504f220a"
1849
- ]
1850
- ]
1851
- },
1852
- {
1853
- "id": "84232cde9f2231b5",
1854
- "type": "inject",
1855
- "z": "79a6f5fe6f4d465a",
1856
- "g": "8e096ccb69a8c8f5",
1857
- "name": "alarm off",
1858
- "props": [
1859
- {
1860
- "p": "payload"
1861
- },
1862
- {
1863
- "p": "topic",
1864
- "vt": "str"
1865
- },
1866
- {
1867
- "p": "payload1",
1868
- "v": "50",
1869
- "vt": "num"
1870
- },
1871
- {
1872
- "p": "payload2",
1873
- "v": "false",
1874
- "vt": "bool"
1875
- }
1876
- ],
1877
- "repeat": "",
1878
- "crontab": "",
1879
- "once": false,
1880
- "onceDelay": 0.1,
1881
- "topic": "",
1882
- "payload": "",
1883
- "payloadType": "date",
1884
- "x": 160,
1885
- "y": 840,
1886
- "wires": [
1887
- [
1888
- "48ba7d74504f220a"
1889
- ]
1890
- ]
1891
- },
1892
- {
1893
- "id": "48ba7d74504f220a",
1894
- "type": "function",
1895
- "z": "79a6f5fe6f4d465a",
1896
- "g": "8e096ccb69a8c8f5",
1897
- "name": "function 7",
1898
- "func": "msg.payload = [\n {\n \"name\": \"variableLevelAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableLevelAlarm\",\n \"type\": \"Int32\",\n \"nodeClass\": \"Variable\",\n \"value\" : msg.payload1\n \n },\n {\n \"name\": \"variableDigitalAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableDigitalAlarm\",\n \"type\": \"Boolean\",\n \"nodeClass\": \"Variable\",\n \"value\" : msg.payload2\n\n }\n]\nreturn msg;",
1899
- "outputs": 1,
1900
- "timeout": 0,
1901
- "noerr": 0,
1902
- "initialize": "",
1903
- "finalize": "",
1904
- "libs": [],
1905
- "x": 400,
1906
- "y": 820,
1907
- "wires": [
1908
- [
1909
- "ec71d8a75c78c0ba"
1910
- ]
1911
- ]
1912
- },
1913
- {
1914
- "id": "fdddad6dc624d803",
1915
- "type": "opcua-client",
1916
- "z": "79a6f5fe6f4d465a",
1917
- "g": "6680a3f5b18b36a5",
1918
- "name": "client method",
1919
- "connection": "b09a1570957d3c44",
1920
- "mode": "method",
1921
- "selectedItems": "[\n {\n \"name\": \"soma\",\n \"nodeID\": \"ns=2;s=teste.soma\",\n \"nodeClass\": \"Method\",\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]",
1922
- "samplingInterval": 250,
1923
- "publishingInterval": 250,
1924
- "x": 830,
1925
- "y": 1100,
1926
- "wires": [
1927
- [
1928
- "83a962e6f3eb3652"
1929
- ]
1930
- ]
1931
- },
1932
- {
1933
- "id": "c26f86f9b102ce3d",
1934
- "type": "inject",
1935
- "z": "79a6f5fe6f4d465a",
1936
- "g": "6680a3f5b18b36a5",
1937
- "name": "",
1938
- "props": [
1939
- {
1940
- "p": "payload"
1941
- },
1942
- {
1943
- "p": "topic",
1944
- "vt": "str"
1945
- }
1946
- ],
1947
- "repeat": "",
1948
- "crontab": "",
1949
- "once": false,
1950
- "onceDelay": 0.1,
1951
- "topic": "",
1952
- "payload": "",
1953
- "payloadType": "date",
1954
- "x": 200,
1955
- "y": 1100,
1956
- "wires": [
1957
- [
1958
- "609a5416d116f06b"
1959
- ]
1960
- ]
1961
- },
1962
- {
1963
- "id": "83a962e6f3eb3652",
1964
- "type": "debug",
1965
- "z": "79a6f5fe6f4d465a",
1966
- "g": "6680a3f5b18b36a5",
1967
- "name": "debug 52",
1968
- "active": true,
1969
- "tosidebar": true,
1970
- "console": false,
1971
- "tostatus": false,
1972
- "complete": "false",
1973
- "statusVal": "",
1974
- "statusType": "auto",
1975
- "x": 1020,
1976
- "y": 1100,
1977
- "wires": []
1978
- },
1979
- {
1980
- "id": "1b8a5cc3d4afab4b",
1981
- "type": "function",
1982
- "z": "79a6f5fe6f4d465a",
1983
- "g": "6680a3f5b18b36a5",
1984
- "name": "method refresh",
1985
- "func": "msg.payload = [\n {\n \"name\": \"metodo1\",\n \"nodeID\": \"ns=0;i=3875\",\n \"inputs\": [\n {\n \"name\": \"i1\",\n \"type\": \"UInt32\",\n \"value\": msg.payload\n },\n ]\n },\n\n \n]\nreturn msg;",
1986
- "outputs": 1,
1987
- "timeout": 0,
1988
- "noerr": 0,
1989
- "initialize": "",
1990
- "finalize": "",
1991
- "libs": [],
1992
- "x": 660,
1993
- "y": 1100,
1994
- "wires": [
1995
- [
1996
- "fdddad6dc624d803"
1997
- ]
1998
- ]
1999
- },
2000
- {
2001
- "id": "609a5416d116f06b",
2002
- "type": "opcua-client",
2003
- "z": "79a6f5fe6f4d465a",
2004
- "g": "6680a3f5b18b36a5",
2005
- "name": "client get id",
2006
- "connection": "b09a1570957d3c44",
2007
- "mode": "getSubscriptionId",
2008
- "selectedItems": "[\n {\n \"name\": \"soma\",\n \"nodeID\": \"ns=2;s=teste.soma\",\n \"nodeClass\": \"Method\",\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]",
2009
- "samplingInterval": 250,
2010
- "publishingInterval": 250,
2011
- "x": 450,
2012
- "y": 1100,
2013
- "wires": [
2014
- [
2015
- "1b8a5cc3d4afab4b"
2016
- ]
2017
- ]
2018
- },
2019
- {
2020
- "id": "b04161e07c2b5f94",
2021
- "type": "comment",
2022
- "z": "79a6f5fe6f4d465a",
2023
- "g": "6680a3f5b18b36a5",
2024
- "name": "method refresh",
2025
- "info": "",
2026
- "x": 160,
2027
- "y": 1000,
2028
- "wires": []
2029
- },
2030
- {
2031
- "id": "a0e9eefc0d33a27b",
2032
- "type": "opcua-client",
2033
- "z": "79a6f5fe6f4d465a",
2034
- "g": "1ec58c5dcc676cd8",
2035
- "name": "client Events",
2036
- "connection": "b09a1570957d3c44",
2037
- "mode": "events",
2038
- "selectedItems": "[\n {\n \"name\": \"Server\",\n \"nodeID\": \"ns=0;i=2253\",\n \"nodeClass\": \"Object\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=2004\",\n \"browseName\": \"ServerType\",\n \"displayName\": \"ServerType\"\n },\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]",
2039
- "samplingInterval": 250,
2040
- "publishingInterval": 250,
2041
- "x": 450,
2042
- "y": 1540,
2043
- "wires": [
2044
- [
2045
- "493b430fb6628573"
2046
- ]
2047
- ]
2048
- },
2049
- {
2050
- "id": "ed284715a31f9fb0",
2051
- "type": "inject",
2052
- "z": "79a6f5fe6f4d465a",
2053
- "g": "1ec58c5dcc676cd8",
2054
- "name": "",
2055
- "props": [
2056
- {
2057
- "p": "payload"
2058
- },
2059
- {
2060
- "p": "topic",
2061
- "vt": "str"
2062
- }
2063
- ],
2064
- "repeat": "",
2065
- "crontab": "",
2066
- "once": false,
2067
- "onceDelay": 0.1,
2068
- "topic": "",
2069
- "payload": "",
2070
- "payloadType": "date",
2071
- "x": 200,
2072
- "y": 1540,
2073
- "wires": [
2074
- [
2075
- "a0e9eefc0d33a27b"
2076
- ]
2077
- ]
2078
- },
2079
- {
2080
- "id": "493b430fb6628573",
2081
- "type": "debug",
2082
- "z": "79a6f5fe6f4d465a",
2083
- "g": "1ec58c5dcc676cd8",
2084
- "name": "debug 12",
2085
- "active": true,
2086
- "tosidebar": true,
2087
- "console": false,
2088
- "tostatus": false,
2089
- "complete": "false",
2090
- "statusVal": "",
2091
- "statusType": "auto",
2092
- "x": 650,
2093
- "y": 1540,
2094
- "wires": []
2095
- },
2096
- {
2097
- "id": "cf180f43c9fef5fc",
2098
- "type": "comment",
2099
- "z": "79a6f5fe6f4d465a",
2100
- "g": "1ec58c5dcc676cd8",
2101
- "name": "events",
2102
- "info": "",
2103
- "x": 130,
2104
- "y": 1480,
2105
- "wires": []
2106
- },
2107
- {
2108
- "id": "c2d6012f3fa2bfe1",
2109
- "type": "inject",
2110
- "z": "79a6f5fe6f4d465a",
2111
- "g": "6680a3f5b18b36a5",
2112
- "name": "",
2113
- "props": [
2114
- {
2115
- "p": "payload"
2116
- },
2117
- {
2118
- "p": "topic",
2119
- "vt": "str"
2120
- }
2121
- ],
2122
- "repeat": "",
2123
- "crontab": "",
2124
- "once": false,
2125
- "onceDelay": 0.1,
2126
- "topic": "",
2127
- "payload": "",
2128
- "payloadType": "date",
2129
- "x": 200,
2130
- "y": 1220,
2131
- "wires": [
2132
- [
2133
- "86c4207a31f2ad3b"
2134
- ]
2135
- ]
2136
- },
2137
- {
2138
- "id": "b4a4967137db05e3",
2139
- "type": "opcua-client",
2140
- "z": "79a6f5fe6f4d465a",
2141
- "g": "6680a3f5b18b36a5",
2142
- "name": "client method",
2143
- "connection": "b09a1570957d3c44",
2144
- "mode": "method",
2145
- "selectedItems": "[\n {\n \"name\": \"soma\",\n \"nodeID\": \"ns=2;s=teste.soma\",\n \"nodeClass\": \"Method\",\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]",
2146
- "samplingInterval": 250,
2147
- "publishingInterval": 250,
2148
- "x": 670,
2149
- "y": 1220,
2150
- "wires": [
2151
- [
2152
- "0fc6a57284b0fdcb"
2153
- ]
2154
- ]
2155
- },
2156
- {
2157
- "id": "86c4207a31f2ad3b",
2158
- "type": "function",
2159
- "z": "79a6f5fe6f4d465a",
2160
- "g": "6680a3f5b18b36a5",
2161
- "name": "method methodSum",
2162
- "func": "msg.payload = [\n {\n \"name\": \"methodSum\",\n \"nodeID\": \"ns=2;s=myServer1.folderMethod.methodSum\",\n \"inputs\": [\n {\n \"name\": \"var1\",\n \"type\": \"Float\",\n \"value\": 5\n },\n {\n \"name\": \"var2\",\n \"type\": \"Float\",\n \"value\": 5\n }\n ]\n }\n]\nreturn msg;",
2163
- "outputs": 1,
2164
- "timeout": 0,
2165
- "noerr": 0,
2166
- "initialize": "",
2167
- "finalize": "",
2168
- "libs": [],
2169
- "x": 460,
2170
- "y": 1220,
2171
- "wires": [
2172
- [
2173
- "b4a4967137db05e3"
2174
- ]
2175
- ]
2176
- },
2177
- {
2178
- "id": "0fc6a57284b0fdcb",
2179
- "type": "debug",
2180
- "z": "79a6f5fe6f4d465a",
2181
- "g": "6680a3f5b18b36a5",
2182
- "name": "debug 13",
2183
- "active": true,
2184
- "tosidebar": true,
2185
- "console": false,
2186
- "tostatus": false,
2187
- "complete": "false",
2188
- "statusVal": "",
2189
- "statusType": "auto",
2190
- "x": 850,
2191
- "y": 1220,
2192
- "wires": []
2193
- },
2194
- {
2195
- "id": "dbd0479a43af64a7",
2196
- "type": "comment",
2197
- "z": "79a6f5fe6f4d465a",
2198
- "g": "6680a3f5b18b36a5",
2199
- "name": "refresh event",
2200
- "info": "",
2201
- "x": 150,
2202
- "y": 1060,
2203
- "wires": []
2204
- },
2205
- {
2206
- "id": "526eb25bb9a30b5d",
2207
- "type": "comment",
2208
- "z": "79a6f5fe6f4d465a",
2209
- "g": "6680a3f5b18b36a5",
2210
- "name": "methodSum",
2211
- "info": "",
2212
- "x": 150,
2213
- "y": 1160,
2214
- "wires": []
2215
- },
2216
- {
2217
- "id": "341cccffb89cf4aa",
2218
- "type": "opcua-client",
2219
- "z": "79a6f5fe6f4d465a",
2220
- "g": "6680a3f5b18b36a5",
2221
- "name": "client method",
2222
- "connection": "b09a1570957d3c44",
2223
- "mode": "method",
2224
- "selectedItems": "[\n {\n \"name\": \"soma\",\n \"nodeID\": \"ns=2;s=teste.soma\",\n \"nodeClass\": \"Method\",\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]",
2225
- "samplingInterval": 250,
2226
- "publishingInterval": 250,
2227
- "x": 830,
2228
- "y": 1360,
2229
- "wires": [
2230
- [
2231
- "e056796f7cbc9628"
2232
- ]
2233
- ]
2234
- },
2235
- {
2236
- "id": "190b600344448c5f",
2237
- "type": "inject",
2238
- "z": "79a6f5fe6f4d465a",
2239
- "g": "6680a3f5b18b36a5",
2240
- "name": "",
2241
- "props": [
2242
- {
2243
- "p": "payload"
2244
- },
2245
- {
2246
- "p": "topic",
2247
- "vt": "str"
2248
- }
2249
- ],
2250
- "repeat": "",
2251
- "crontab": "",
2252
- "once": false,
2253
- "onceDelay": 0.1,
2254
- "topic": "",
2255
- "payload": "",
2256
- "payloadType": "date",
2257
- "x": 200,
2258
- "y": 1360,
2259
- "wires": [
2260
- [
2261
- "bb4bfc533f49d250"
2262
- ]
2263
- ]
2264
- },
2265
- {
2266
- "id": "bb4bfc533f49d250",
2267
- "type": "function",
2268
- "z": "79a6f5fe6f4d465a",
2269
- "g": "6680a3f5b18b36a5",
2270
- "name": "levelAlarm1-Acknowledge",
2271
- "func": "\n\nmsg.payload = [\n {\n \"name\": \"metodo1\",\n \"nodeID\": \"ns=2;s=myServer1.folderAlarms.levelAlarm1-Acknowledge\",\n \"inputs\": [\n {\n \"name\": \"i1\",\n \"type\": \"ByteString\",\n \"value\": \"\"\n },\n {\n \"name\": \"i2\",\n \"type\": \"LocalizedText\",\n \"value\": \"\"\n },\n ]\n },\n\n\n]\nreturn msg;",
2272
- "outputs": 1,
2273
- "timeout": 0,
2274
- "noerr": 0,
2275
- "initialize": "",
2276
- "finalize": "",
2277
- "libs": [],
2278
- "x": 510,
2279
- "y": 1360,
2280
- "wires": [
2281
- [
2282
- "341cccffb89cf4aa"
2283
- ]
2284
- ]
2285
- },
2286
- {
2287
- "id": "e056796f7cbc9628",
2288
- "type": "debug",
2289
- "z": "79a6f5fe6f4d465a",
2290
- "g": "6680a3f5b18b36a5",
2291
- "name": "debug 14",
2292
- "active": true,
2293
- "tosidebar": true,
2294
- "console": false,
2295
- "tostatus": false,
2296
- "complete": "false",
2297
- "statusVal": "",
2298
- "statusType": "auto",
2299
- "x": 990,
2300
- "y": 1360,
2301
- "wires": []
2302
- },
2303
- {
2304
- "id": "c8a39a53b1074acc",
2305
- "type": "comment",
2306
- "z": "79a6f5fe6f4d465a",
2307
- "g": "6680a3f5b18b36a5",
2308
- "name": "method Acknowledge",
2309
- "info": "",
2310
- "x": 180,
2311
- "y": 1300,
2312
- "wires": []
2313
- },
2314
- {
2315
- "id": "793f8368f0a1c1a3",
2316
- "type": "opcua-client",
2317
- "z": "79a6f5fe6f4d465a",
2318
- "g": "67244e1b04fa0130",
2319
- "name": "client browse direct",
2320
- "connection": "b09a1570957d3c44",
2321
- "mode": "browse",
2322
- "selectedItems": "[\n {\n \"name\": \"myServer1\",\n \"nodeID\": \"ns=2;s=myServer1\",\n \"nodeClass\": \"Object\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=61\",\n \"browseName\": \"FolderType\",\n \"displayName\": \"FolderType\"\n },\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n },\n {\n \"name\": \"folderAlarms\",\n \"nodeID\": \"ns=2;s=myServer1.folderAlarms\",\n \"nodeClass\": \"Object\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=61\",\n \"browseName\": \"FolderType\",\n \"displayName\": \"FolderType\"\n },\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]",
2323
- "samplingInterval": 250,
2324
- "publishingInterval": 250,
2325
- "x": 450,
2326
- "y": 1740,
2327
- "wires": [
2328
- [
2329
- "37278c8895890143"
2330
- ]
2331
- ]
2332
- },
2333
- {
2334
- "id": "8c223050ecd416ef",
2335
- "type": "comment",
2336
- "z": "79a6f5fe6f4d465a",
2337
- "g": "67244e1b04fa0130",
2338
- "name": "browse ",
2339
- "info": "",
2340
- "x": 130,
2341
- "y": 1680,
2342
- "wires": []
2343
- },
2344
- {
2345
- "id": "825b3d7170cf5598",
2346
- "type": "inject",
2347
- "z": "79a6f5fe6f4d465a",
2348
- "g": "67244e1b04fa0130",
2349
- "name": "",
2350
- "props": [
2351
- {
2352
- "p": "payload"
2353
- },
2354
- {
2355
- "p": "topic",
2356
- "vt": "str"
2357
- }
2358
- ],
2359
- "repeat": "",
2360
- "crontab": "",
2361
- "once": false,
2362
- "onceDelay": 0.1,
2363
- "topic": "",
2364
- "payload": "",
2365
- "payloadType": "date",
2366
- "x": 200,
2367
- "y": 1740,
2368
- "wires": [
2369
- [
2370
- "793f8368f0a1c1a3"
2371
- ]
2372
- ]
2373
- },
2374
- {
2375
- "id": "37278c8895890143",
2376
- "type": "debug",
2377
- "z": "79a6f5fe6f4d465a",
2378
- "g": "67244e1b04fa0130",
2379
- "name": "debug 15",
2380
- "active": true,
2381
- "tosidebar": true,
2382
- "console": false,
2383
- "tostatus": false,
2384
- "complete": "false",
2385
- "statusVal": "",
2386
- "statusType": "auto",
2387
- "x": 660,
2388
- "y": 1740,
2389
- "wires": []
2390
- },
2391
- {
2392
- "id": "6944643a2ea15889",
2393
- "type": "opcua-client",
2394
- "z": "79a6f5fe6f4d465a",
2395
- "g": "67244e1b04fa0130",
2396
- "name": "client browse ",
2397
- "connection": "b09a1570957d3c44",
2398
- "mode": "browse",
2399
- "selectedItems": "[]",
2400
- "samplingInterval": 250,
2401
- "publishingInterval": 250,
2402
- "x": 630,
2403
- "y": 1840,
2404
- "wires": [
2405
- [
2406
- "f458df76db488866"
2407
- ]
2408
- ]
2409
- },
2410
- {
2411
- "id": "4a49bda87a91dd36",
2412
- "type": "inject",
2413
- "z": "79a6f5fe6f4d465a",
2414
- "g": "67244e1b04fa0130",
2415
- "name": "",
2416
- "props": [
2417
- {
2418
- "p": "payload"
2419
- },
2420
- {
2421
- "p": "topic",
2422
- "vt": "str"
2423
- }
2424
- ],
2425
- "repeat": "",
2426
- "crontab": "",
2427
- "once": false,
2428
- "onceDelay": 0.1,
2429
- "topic": "",
2430
- "payload": "",
2431
- "payloadType": "date",
2432
- "x": 200,
2433
- "y": 1840,
2434
- "wires": [
2435
- [
2436
- "05f34bc116cd8ee2"
2437
- ]
2438
- ]
2439
- },
2440
- {
2441
- "id": "f458df76db488866",
2442
- "type": "debug",
2443
- "z": "79a6f5fe6f4d465a",
2444
- "g": "67244e1b04fa0130",
2445
- "name": "debug 16",
2446
- "active": true,
2447
- "tosidebar": true,
2448
- "console": false,
2449
- "tostatus": false,
2450
- "complete": "false",
2451
- "statusVal": "",
2452
- "statusType": "auto",
2453
- "x": 860,
2454
- "y": 1840,
2455
- "wires": []
2456
- },
2457
- {
2458
- "id": "05f34bc116cd8ee2",
2459
- "type": "function",
2460
- "z": "79a6f5fe6f4d465a",
2461
- "g": "67244e1b04fa0130",
2462
- "name": "browse ",
2463
- "func": "msg.payload = [\n {\n \"name\": \"myServer1\",\n \"nodeID\": \"ns=2;s=myServer1\",\n \n },\n {\n \"name\": \"folderAlarms\",\n \"nodeID\": \"ns=2;s=myServer1.folderAlarms\",\n \n }\n]\nreturn msg;",
2464
- "outputs": 1,
2465
- "timeout": 0,
2466
- "noerr": 0,
2467
- "initialize": "",
2468
- "finalize": "",
2469
- "libs": [],
2470
- "x": 420,
2471
- "y": 1840,
2472
- "wires": [
2473
- [
2474
- "6944643a2ea15889"
2475
- ]
2476
- ]
2477
- },
2478
- {
2479
- "id": "8c73fb548e807740",
2480
- "type": "opcua-client",
2481
- "z": "14fe15a9e9d468af",
2482
- "g": "b77a84882ecb667f",
2483
- "name": "",
2484
- "connection": "b09a1570957d3c44",
2485
- "mode": "browse",
2486
- "selectedItems": "[]",
2487
- "samplingInterval": 250,
2488
- "publishingInterval": 250,
2489
- "x": 590,
2490
- "y": 340,
2491
- "wires": [
2492
- [
2493
- "2b21c4370fd02197",
2494
- "596e4966920d35cc"
2495
- ]
2496
- ]
2497
- },
2498
- {
2499
- "id": "df008f3855a3f9a4",
2500
- "type": "inject",
2501
- "z": "14fe15a9e9d468af",
2502
- "g": "b77a84882ecb667f",
2503
- "name": "",
2504
- "props": [
2505
- {
2506
- "p": "payload"
2507
- },
2508
- {
2509
- "p": "topic",
2510
- "vt": "str"
2511
- }
2512
- ],
2513
- "repeat": "",
2514
- "crontab": "",
2515
- "once": false,
2516
- "onceDelay": 0.1,
2517
- "topic": "",
2518
- "payload": "",
2519
- "payloadType": "date",
2520
- "x": 180,
2521
- "y": 340,
2522
- "wires": [
2523
- [
2524
- "1444c096a73f4ca6",
2525
- "596e4966920d35cc"
2526
- ]
2527
- ]
2528
- },
2529
- {
2530
- "id": "1444c096a73f4ca6",
2531
- "type": "function",
2532
- "z": "14fe15a9e9d468af",
2533
- "g": "b77a84882ecb667f",
2534
- "name": "ns=2;s=myServer1",
2535
- "func": "msg.payload = [{\n \"nodeId\" : \"ns=2;s=myServer1\"\n}]\n\nflow.set(\"variables\", [])\nreturn msg;",
2536
- "outputs": 1,
2537
- "timeout": 0,
2538
- "noerr": 0,
2539
- "initialize": "",
2540
- "finalize": "",
2541
- "libs": [],
2542
- "x": 400,
2543
- "y": 340,
2544
- "wires": [
2545
- [
2546
- "8c73fb548e807740"
2547
- ]
2548
- ]
2549
- },
2550
- {
2551
- "id": "2b21c4370fd02197",
2552
- "type": "change",
2553
- "z": "14fe15a9e9d468af",
2554
- "g": "b77a84882ecb667f",
2555
- "name": "",
2556
- "rules": [
2557
- {
2558
- "t": "set",
2559
- "p": "payload",
2560
- "pt": "msg",
2561
- "to": "payload[0].browse",
2562
- "tot": "msg"
2563
- }
2564
- ],
2565
- "action": "",
2566
- "property": "",
2567
- "from": "",
2568
- "to": "",
2569
- "reg": false,
2570
- "x": 810,
2571
- "y": 340,
2572
- "wires": [
2573
- [
2574
- "efe6dcebe2d7f08d"
2575
- ]
2576
- ]
2577
- },
2578
- {
2579
- "id": "efe6dcebe2d7f08d",
2580
- "type": "split",
2581
- "z": "14fe15a9e9d468af",
2582
- "g": "b77a84882ecb667f",
2583
- "name": "",
2584
- "splt": "\\n",
2585
- "spltType": "str",
2586
- "arraySplt": 1,
2587
- "arraySpltType": "len",
2588
- "stream": false,
2589
- "addname": "",
2590
- "property": "payload",
2591
- "x": 1010,
2592
- "y": 340,
2593
- "wires": [
2594
- [
2595
- "f9c6be02a37d97c0"
2596
- ]
2597
- ]
2598
- },
2599
- {
2600
- "id": "f9c6be02a37d97c0",
2601
- "type": "switch",
2602
- "z": "14fe15a9e9d468af",
2603
- "g": "b77a84882ecb667f",
2604
- "name": "",
2605
- "property": "payload.nodeClass",
2606
- "propertyType": "msg",
2607
- "rules": [
2608
- {
2609
- "t": "eq",
2610
- "v": "Object",
2611
- "vt": "str"
2612
- },
2613
- {
2614
- "t": "eq",
2615
- "v": "Variable",
2616
- "vt": "str"
2617
- }
2618
- ],
2619
- "checkall": "true",
2620
- "repair": false,
2621
- "outputs": 2,
2622
- "x": 1170,
2623
- "y": 340,
2624
- "wires": [
2625
- [
2626
- "49aac6ef852864de"
2627
- ],
2628
- [
2629
- "f573a31db4ae7c54"
2630
- ]
2631
- ]
2632
- },
2633
- {
2634
- "id": "49aac6ef852864de",
2635
- "type": "function",
2636
- "z": "14fe15a9e9d468af",
2637
- "g": "b77a84882ecb667f",
2638
- "name": "function 39",
2639
- "func": "msg.payload = [msg.payload]\nreturn msg;",
2640
- "outputs": 1,
2641
- "timeout": 0,
2642
- "noerr": 0,
2643
- "initialize": "",
2644
- "finalize": "",
2645
- "libs": [],
2646
- "x": 810,
2647
- "y": 140,
2648
- "wires": [
2649
- [
2650
- "8c73fb548e807740"
2651
- ]
2652
- ]
2653
- },
2654
- {
2655
- "id": "f573a31db4ae7c54",
2656
- "type": "function",
2657
- "z": "14fe15a9e9d468af",
2658
- "g": "b77a84882ecb667f",
2659
- "name": "flow.set(\"variables\")",
2660
- "func": "var variables = flow.get(\"variables\")\n\nvariables.push( {\n \"name\": msg.payload.browseName ,\n \"nodeID\": msg.payload.nodeID\n })\n\nflow.set(\"variables\" , variables)\n\nreturn msg;",
2661
- "outputs": 1,
2662
- "timeout": 0,
2663
- "noerr": 0,
2664
- "initialize": "",
2665
- "finalize": "",
2666
- "libs": [],
2667
- "x": 1390,
2668
- "y": 380,
2669
- "wires": [
2670
- [
2671
- "01d2238a6571f70e"
2672
- ]
2673
- ]
2674
- },
2675
- {
2676
- "id": "7f6825ac425c4762",
2677
- "type": "opcua-client",
2678
- "z": "14fe15a9e9d468af",
2679
- "g": "b77a84882ecb667f",
2680
- "name": "Subscription all variables in server",
2681
- "connection": "b09a1570957d3c44",
2682
- "mode": "subscription",
2683
- "selectedItems": "[]",
2684
- "samplingInterval": 250,
2685
- "publishingInterval": 250,
2686
- "x": 640,
2687
- "y": 540,
2688
- "wires": [
2689
- [
2690
- "11407ea89fd47c06"
2691
- ]
2692
- ]
2693
- },
2694
- {
2695
- "id": "d17d2adbbd01cbf6",
2696
- "type": "change",
2697
- "z": "14fe15a9e9d468af",
2698
- "g": "b77a84882ecb667f",
2699
- "name": "",
2700
- "rules": [
2701
- {
2702
- "t": "set",
2703
- "p": "payload",
2704
- "pt": "msg",
2705
- "to": "variables",
2706
- "tot": "flow"
2707
- }
2708
- ],
2709
- "action": "",
2710
- "property": "",
2711
- "from": "",
2712
- "to": "",
2713
- "reg": false,
2714
- "x": 370,
2715
- "y": 540,
2716
- "wires": [
2717
- [
2718
- "7f6825ac425c4762"
2719
- ]
2720
- ]
2721
- },
2722
- {
2723
- "id": "11407ea89fd47c06",
2724
- "type": "debug",
2725
- "z": "14fe15a9e9d468af",
2726
- "g": "b77a84882ecb667f",
2727
- "name": "debug 32",
2728
- "active": false,
2729
- "tosidebar": true,
2730
- "console": false,
2731
- "tostatus": false,
2732
- "complete": "false",
2733
- "statusVal": "",
2734
- "statusType": "auto",
2735
- "x": 900,
2736
- "y": 540,
2737
- "wires": []
2738
- },
2739
- {
2740
- "id": "77168078146d3b2b",
2741
- "type": "trigger",
2742
- "z": "14fe15a9e9d468af",
2743
- "g": "b77a84882ecb667f",
2744
- "name": "",
2745
- "op1": "",
2746
- "op2": "",
2747
- "op1type": "nul",
2748
- "op2type": "payl",
2749
- "duration": "2",
2750
- "extend": false,
2751
- "overrideDelay": false,
2752
- "units": "s",
2753
- "reset": "",
2754
- "bytopic": "all",
2755
- "topic": "topic",
2756
- "outputs": 1,
2757
- "x": 180,
2758
- "y": 540,
2759
- "wires": [
2760
- [
2761
- "d17d2adbbd01cbf6"
2762
- ]
2763
- ]
2764
- },
2765
- {
2766
- "id": "596e4966920d35cc",
2767
- "type": "function",
2768
- "z": "14fe15a9e9d468af",
2769
- "g": "b77a84882ecb667f",
2770
- "name": "reset",
2771
- "func": "msg.reset = 1\nreturn msg;",
2772
- "outputs": 1,
2773
- "timeout": 0,
2774
- "noerr": 0,
2775
- "initialize": "",
2776
- "finalize": "",
2777
- "libs": [],
2778
- "x": 350,
2779
- "y": 420,
2780
- "wires": [
2781
- [
2782
- "9d5dd36f42e74286"
2783
- ]
2784
- ]
2785
- },
2786
- {
2787
- "id": "7f20c7d7a421295e",
2788
- "type": "comment",
2789
- "z": "14fe15a9e9d468af",
2790
- "g": "b77a84882ecb667f",
2791
- "name": "Subscription all variables in server and flow.set",
2792
- "info": "",
2793
- "x": 270,
2794
- "y": 180,
2795
- "wires": []
2796
- },
2797
- {
2798
- "id": "01d2238a6571f70e",
2799
- "type": "link out",
2800
- "z": "14fe15a9e9d468af",
2801
- "g": "b77a84882ecb667f",
2802
- "name": "link out 1",
2803
- "mode": "link",
2804
- "links": [
2805
- "46b04c28e0c85cc6"
2806
- ],
2807
- "x": 1565,
2808
- "y": 380,
2809
- "wires": []
2810
- },
2811
- {
2812
- "id": "46b04c28e0c85cc6",
2813
- "type": "link in",
2814
- "z": "14fe15a9e9d468af",
2815
- "g": "b77a84882ecb667f",
2816
- "name": "link in trigger",
2817
- "links": [
2818
- "01d2238a6571f70e",
2819
- "9d5dd36f42e74286"
2820
- ],
2821
- "x": 85,
2822
- "y": 540,
2823
- "wires": [
2824
- [
2825
- "77168078146d3b2b"
2826
- ]
2827
- ]
2828
- },
2829
- {
2830
- "id": "9d5dd36f42e74286",
2831
- "type": "link out",
2832
- "z": "14fe15a9e9d468af",
2833
- "g": "b77a84882ecb667f",
2834
- "name": "link out 2",
2835
- "mode": "link",
2836
- "links": [
2837
- "46b04c28e0c85cc6"
2838
- ],
2839
- "x": 505,
2840
- "y": 420,
2841
- "wires": []
2842
- },
2843
- {
2844
- "id": "b0378bf4405590d4",
2845
- "type": "global-config",
2846
- "env": [],
2847
- "modules": {
2848
- "@vitormnm/node-red-simple-opcua": "1.3.1"
2849
- }
2850
- }
2851
- ]
1
+ [{"id":"d2b3eae6a1ecc622","type":"tab","label":"opcua server","disabled":false,"info":"","env":[]},{"id":"79a6f5fe6f4d465a","type":"tab","label":"opcua client","disabled":false,"info":"","env":[]},{"id":"14fe15a9e9d468af","type":"tab","label":"opcua client browse all tags","disabled":false,"info":"","env":[]},{"id":"c84194e1716f46ab","type":"group","z":"d2b3eae6a1ecc622","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["e4edcc77427188f6","932e2635730c7a44","bfc08132027e72b7","6c87b85f99be3616","9c09946d8577b52d","2676f36ebaab5969","1dc6b8aa2257eca3","329a2a1a632fd233","27e7e959761bf77f","fa224a9d8ab1f2c7","d19b915e7393b9a7","984522736a0656a7","a944210da4387a6a"],"x":74,"y":1319,"w":872,"h":362},{"id":"d8fd16c88ec103e5","type":"group","z":"d2b3eae6a1ecc622","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["668921cc357bd516","f47bc3635ec2a31d","9cfc3721152e8357","266e174a9f4e200c","6ec5659b15d00940","0368379e84561696","2da39bcbcc3d1109","36c054113a954792","c03eaa1b388c50f3","eed2029c30d5bb5b","a5083cedc1237564","e91a6b84ebe3556d","8e6e2008f8f79caf","7f610dc5a13b1356"],"x":74,"y":839,"w":902,"h":442},{"id":"b1201c21c2d259b8","type":"group","z":"d2b3eae6a1ecc622","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["65603f52a369839a","1d023a68af5918c7","55df4c29fedf13c8","d28240a9d9ffdd43","673ba93006e6550a"],"x":74,"y":479,"w":912,"h":142},{"id":"23832db12bfa7d80","type":"group","z":"d2b3eae6a1ecc622","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["3bd3915cb891e8f1","397bd99ac2297103","7e3dbdbd25da7510","b0b8022d4920fc55","7d0b6982f5786807","08991f3c9d3b47a0","d1187abb8f01729a"],"x":64,"y":219,"w":812,"h":222},{"id":"b2ce35ceb2bdafd8","type":"group","z":"d2b3eae6a1ecc622","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["662e19d35ced7eaa","b174ca5ba476a397","2defd51ae95a1d97"],"x":74,"y":659,"w":482,"h":142},{"id":"36d46609aecf1392","type":"group","z":"d2b3eae6a1ecc622","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["8b311452217de452","34f2a0d0ba7fd911","f56f61693a49cdcb","06a5925b29d016e7"],"x":74,"y":39,"w":752,"h":142},{"id":"285c23c3bad0ef27","type":"group","z":"79a6f5fe6f4d465a","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["ef63988ca2403b46","6cad9ec490596a99","19bc7a26f39f3ecc","1f5deaf79db824cf","25d9d97555803451","0ff0aaf552ae087e","fc2cde946ce08e4e","2d6737a48c9bf131","e751595f75537eae","4ef2369fd3613329","a08020e9f79e7270","bb13fb80d451245a","ebf0bf0b98640c41","1deb5211a2ddd488","a21aeea307028ae4"],"x":54,"y":19,"w":1052,"h":482},{"id":"8e096ccb69a8c8f5","type":"group","z":"79a6f5fe6f4d465a","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["7b40230aee3f3c0f","aa5537a918d6776b","a894da66d77e8418","3b03a088eee38b35","df6a3b9bbd0f6243","ec71d8a75c78c0ba","a9ce0dba53d46bb7","2484ca47fc4d911a","84232cde9f2231b5","48ba7d74504f220a"],"x":54,"y":559,"w":792,"h":382},{"id":"6680a3f5b18b36a5","type":"group","z":"79a6f5fe6f4d465a","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["fdddad6dc624d803","c26f86f9b102ce3d","83a962e6f3eb3652","1b8a5cc3d4afab4b","609a5416d116f06b","b04161e07c2b5f94","c2d6012f3fa2bfe1","b4a4967137db05e3","86c4207a31f2ad3b","0fc6a57284b0fdcb","dbd0479a43af64a7","526eb25bb9a30b5d","341cccffb89cf4aa","190b600344448c5f","bb4bfc533f49d250","e056796f7cbc9628","c8a39a53b1074acc","268d6e811e44af99","f8926e74b84652f9","dc4ea6ac1f3195e1","c88593f3e0725b05"],"x":34,"y":959,"w":1092,"h":522},{"id":"1ec58c5dcc676cd8","type":"group","z":"79a6f5fe6f4d465a","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["a0e9eefc0d33a27b","ed284715a31f9fb0","493b430fb6628573","cf180f43c9fef5fc"],"x":54,"y":1579,"w":832,"h":142},{"id":"b77a84882ecb667f","type":"group","z":"14fe15a9e9d468af","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["8c73fb548e807740","df008f3855a3f9a4","1444c096a73f4ca6","2b21c4370fd02197","efe6dcebe2d7f08d","f9c6be02a37d97c0","49aac6ef852864de","f573a31db4ae7c54","7f6825ac425c4762","d17d2adbbd01cbf6","11407ea89fd47c06","77168078146d3b2b","596e4966920d35cc","7f20c7d7a421295e","01d2238a6571f70e","46b04c28e0c85cc6","9d5dd36f42e74286"],"x":34,"y":99,"w":1572,"h":482},{"id":"67244e1b04fa0130","type":"group","z":"79a6f5fe6f4d465a","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["793f8368f0a1c1a3","8c223050ecd416ef","825b3d7170cf5598","37278c8895890143","6944643a2ea15889","4a49bda87a91dd36","f458df76db488866","05f34bc116cd8ee2"],"x":54,"y":1779,"w":912,"h":242},{"id":"b09a1570957d3c44","type":"opcua-client-config","name":"","endpoint":"opc.tcp://localhost:5840/","securityPolicy":"None","securityMode":"None","authType":"anonymous"},{"id":"8b311452217de452","type":"opc-ua-server","z":"d2b3eae6a1ecc622","g":"36d46609aecf1392","name":"","resourcePath":"/","serverName":"myServer1","allowAnonymous":true,"port":"5840","maxConnections":10,"securityPolicy":"None","securityMode":"None","namespaceUri":"urn:node-red:opc-ua-server","tree":"{\n \"objects\": [],\n \"folders\": [\n {\n \"name\": \"myServer1\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [\n {\n \"name\": \"folderMethod\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [],\n \"methods\": [\n {\n \"name\": \"methodSum\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"inputs\": [\n {\n \"name\": \"var1\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n },\n {\n \"name\": \"var2\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n }\n ],\n \"outputs\": [\n {\n \"name\": \"result\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n }\n ]\n },\n {\n \"name\": \"methodMultiplication\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"inputs\": [\n {\n \"name\": \"var1\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n },\n {\n \"name\": \"var2\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n }\n ],\n \"outputs\": [\n {\n \"name\": \"result\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n }\n ]\n }\n ],\n \"objectsTypes\": []\n },\n {\n \"name\": \"folderAlarms\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [\n {\n \"name\": \"levelAlarm1\",\n \"variableNodeId\": \"myServer1.variableLevelAlarm\",\n \"type\": \"levelAlarm\",\n \"enabled\": true,\n \"severity\": 500,\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"highHighLimit\": 90,\n \"highHighMessage\": \"High High alarm\",\n \"highLimit\": 80,\n \"highMessage\": \"High alarm\",\n \"lowLimit\": 20,\n \"lowMessage\": \"Low alarm\",\n \"lowLowLimit\": 10,\n \"lowLowMessage\": \"Low Low alarm\",\n \"normalStateValue\": 0,\n \"digitalMessage\": \"Digital alarm\"\n },\n {\n \"name\": \"digitalAlarm1\",\n \"variableNodeId\": \"myServer1.variableDigitalAlarm\",\n \"type\": \"digitalAlarm\",\n \"enabled\": true,\n \"severity\": 500,\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"highHighLimit\": 100,\n \"highHighMessage\": \"High High alarm\",\n \"highLimit\": 80,\n \"highMessage\": \"High alarm\",\n \"lowLimit\": 20,\n \"lowMessage\": \"Low alarm\",\n \"lowLowLimit\": 0,\n \"lowLowMessage\": \"Low Low alarm\",\n \"normalStateValue\": 0,\n \"digitalMessage\": \"Digital alarm\"\n }\n ],\n \"methods\": [],\n \"objectsTypes\": []\n },\n {\n \"name\": \"folderCustomObjectType\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": [\n {\n \"name\": \"customObjectType1\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"ns=2;s=myServer1.folderCustomObjectType.customObjectType1\",\n \"namespaceId\": 2,\n \"objectsType\": \"customObjectType\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n },\n {\n \"name\": \"customObjectType2\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"ns=2;s=myServer1.folderCustomObjectType.customObjectType2\",\n \"namespaceId\": 2,\n \"objectsType\": \"customObjectType\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n }\n ]\n }\n ],\n \"objects\": [\n {\n \"name\": \"newObject\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [\n {\n \"name\": \"newVariable\",\n \"type\": \"Int32\",\n \"value\": \"\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n },\n {\n \"name\": \"newVariable2\",\n \"type\": \"Float\",\n \"value\": \"123.3\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n }\n ],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n }\n ],\n \"variables\": [\n {\n \"name\": \"variableLevelAlarm\",\n \"type\": \"Int32\",\n \"value\": \"50\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n },\n {\n \"name\": \"variableDigitalAlarm\",\n \"type\": \"Boolean\",\n \"value\": \"0\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n },\n {\n \"name\": \"variableArray\",\n \"type\": \"Int32\",\n \"value\": \"[10,20,30,40]\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n }\n ],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n }\n ],\n \"objectsTypes\": [\n {\n \"name\": \"customObjectType\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"ns=2;s=customObjectType\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [\n {\n \"name\": \"var1\",\n \"type\": \"Int32\",\n \"value\": \"\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"ns=2;s=customObjectType.var1\",\n \"namespaceId\": 2\n },\n {\n \"name\": \"var2\",\n \"type\": \"Int32\",\n \"value\": \"\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"ns=2;s=customObjectType.var2\",\n \"namespaceId\": 2\n }\n ],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n }\n ],\n \"nameSpaces\": [\n {\n \"id\": 2,\n \"name\": \"urn:node-red:opc-ua-server\"\n },\n {\n \"id\": 3,\n \"name\": \"urn:plant2:3\"\n }\n ]\n}","x":730,"y":140,"wires":[[]]},{"id":"3bd3915cb891e8f1","type":"opcua-server-io","z":"d2b3eae6a1ecc622","g":"23832db12bfa7d80","name":"","serverRef":"myServer1","mode":"method-input","identifierType":"path","tagPath":"","tagNodeId":"","methodName":"methodSum","intervalMs":500,"inputs":0,"outputs":1,"x":170,"y":300,"wires":[["7e3dbdbd25da7510"]]},{"id":"397bd99ac2297103","type":"opcua-server-io","z":"d2b3eae6a1ecc622","g":"23832db12bfa7d80","name":"","serverRef":"myServer1","mode":"method-output","identifierType":"path","tagPath":"","tagNodeId":"","methodName":"methodSum","intervalMs":500,"inputs":1,"outputs":0,"x":730,"y":300,"wires":[]},{"id":"7e3dbdbd25da7510","type":"function","z":"d2b3eae6a1ecc622","g":"23832db12bfa7d80","name":"function 2","func":"var input1 = msg.payload[0].value\nvar input2 = msg.payload[1].value\n\nmsg.payload = [\n {\n dataType: \"Float\",\n value: input1 + input2\n }\n];\n\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":520,"y":300,"wires":[["397bd99ac2297103"]]},{"id":"65603f52a369839a","type":"inject","z":"d2b3eae6a1ecc622","g":"b1201c21c2d259b8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":220,"y":580,"wires":[["1d023a68af5918c7"]]},{"id":"1d023a68af5918c7","type":"function","z":"d2b3eae6a1ecc622","g":"b1201c21c2d259b8","name":"function 47","func":"const min = 30;\nconst max = 40;\nconst randomInt1 = Math.floor(Math.random() * (max - min + 1)) + min;\nconst randomInt2 = Math.floor(Math.random() * (max - min + 1)) + min;\nconst randomInt3 = Math.floor(Math.random() * (max - min + 1)) + min;\n\n\nmsg.payload = [\n {\n \"nodePath\": \"myServer1.newObject\",\n \"severity\": 0,\n \"message\": \"newObject message\"\n },\n {\n \"nodePath\": \"myServer1.newObject\",\n \"severity\": 500,\n \"message\": \"newObject message 2\"\n },\n {\n \"nodePath\": \"myServer1.newObject\",\n \"severity\": 1000,\n \"message\": \"newObject message 3\"\n }\n]\n\n\n\n\n\n\n\n\nreturn msg","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":450,"y":580,"wires":[["d28240a9d9ffdd43"]]},{"id":"55df4c29fedf13c8","type":"debug","z":"d2b3eae6a1ecc622","g":"b1201c21c2d259b8","name":"debug 38","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":880,"y":580,"wires":[]},{"id":"d28240a9d9ffdd43","type":"opcua-server-io","z":"d2b3eae6a1ecc622","g":"b1201c21c2d259b8","name":"","serverRef":"myServer1","mode":"event","identifierType":"path","tagPath":"","tagNodeId":"","methodName":"","intervalMs":500,"inputs":1,"outputs":1,"x":660,"y":580,"wires":[["55df4c29fedf13c8"]]},{"id":"673ba93006e6550a","type":"comment","z":"d2b3eae6a1ecc622","g":"b1201c21c2d259b8","name":"event","info":"","x":170,"y":520,"wires":[]},{"id":"34f2a0d0ba7fd911","type":"inject","z":"d2b3eae6a1ecc622","g":"36d46609aecf1392","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":220,"y":140,"wires":[["f56f61693a49cdcb"]]},{"id":"f56f61693a49cdcb","type":"template","z":"d2b3eae6a1ecc622","g":"36d46609aecf1392","name":"original modal","field":"payload","fieldType":"msg","format":"json","syntax":"mustache","template":"{\n \"objects\": [],\n \"folders\": [\n {\n \"name\": \"myServer1\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [\n {\n \"name\": \"folderMethod\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [],\n \"methods\": [\n {\n \"name\": \"methodSum\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"inputs\": [\n {\n \"name\": \"var1\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n },\n {\n \"name\": \"var2\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n }\n ],\n \"outputs\": [\n {\n \"name\": \"result\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n }\n ]\n },\n {\n \"name\": \"methodMultiplication\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"inputs\": [\n {\n \"name\": \"var1\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n },\n {\n \"name\": \"var2\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n }\n ],\n \"outputs\": [\n {\n \"name\": \"result\",\n \"type\": \"Float\",\n \"displayName\": \"\",\n \"description\": \"\"\n }\n ]\n }\n ],\n \"objectsTypes\": []\n },\n {\n \"name\": \"folderAlarms\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [\n {\n \"name\": \"levelAlarm1\",\n \"variableNodeId\": \"myServer1.variableLevelAlarm\",\n \"type\": \"levelAlarm\",\n \"enabled\": true,\n \"severity\": 500,\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"highHighLimit\": 90,\n \"highHighMessage\": \"High High alarm\",\n \"highLimit\": 80,\n \"highMessage\": \"High alarm\",\n \"lowLimit\": 20,\n \"lowMessage\": \"Low alarm\",\n \"lowLowLimit\": 10,\n \"lowLowMessage\": \"Low Low alarm\",\n \"normalStateValue\": 0,\n \"digitalMessage\": \"Digital alarm\"\n },\n {\n \"name\": \"digitalAlarm1\",\n \"variableNodeId\": \"myServer1.variableDigitalAlarm\",\n \"type\": \"digitalAlarm\",\n \"enabled\": true,\n \"severity\": 500,\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"highHighLimit\": 100,\n \"highHighMessage\": \"High High alarm\",\n \"highLimit\": 80,\n \"highMessage\": \"High alarm\",\n \"lowLimit\": 20,\n \"lowMessage\": \"Low alarm\",\n \"lowLowLimit\": 0,\n \"lowLowMessage\": \"Low Low alarm\",\n \"normalStateValue\": 0,\n \"digitalMessage\": \"Digital alarm\"\n }\n ],\n \"methods\": [],\n \"objectsTypes\": []\n },\n {\n \"name\": \"folderCustomObjectType\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": [\n {\n \"name\": \"customObjectType1\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"ns=2;s=myServer1.folderCustomObjectType.customObjectType1\",\n \"namespaceId\": 2,\n \"objectsType\": \"customObjectType\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n },\n {\n \"name\": \"customObjectType2\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"ns=2;s=myServer1.folderCustomObjectType.customObjectType2\",\n \"namespaceId\": 2,\n \"objectsType\": \"customObjectType\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n }\n ]\n }\n ],\n \"objects\": [\n {\n \"name\": \"newObject\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [\n {\n \"name\": \"newVariable\",\n \"type\": \"Int32\",\n \"value\": \"\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n },\n {\n \"name\": \"newVariable2\",\n \"type\": \"Float\",\n \"value\": \"123.3\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n }\n ],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n }\n ],\n \"variables\": [\n {\n \"name\": \"variableLevelAlarm\",\n \"type\": \"Int32\",\n \"value\": \"50\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n },\n {\n \"name\": \"variableDigitalAlarm\",\n \"type\": \"Boolean\",\n \"value\": \"0\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n },\n {\n \"name\": \"variableArray\",\n \"type\": \"Int32\",\n \"value\": \"[10,20,30,40]\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"\",\n \"namespaceId\": 2\n }\n ],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n }\n ],\n \"objectsTypes\": [\n {\n \"name\": \"customObjectType\",\n \"displayName\": \"\",\n \"description\": \"\",\n \"nodeId\": \"ns=2;s=customObjectType\",\n \"namespaceId\": 2,\n \"objectsType\": \"\",\n \"folders\": [],\n \"objects\": [],\n \"variables\": [\n {\n \"name\": \"var1\",\n \"type\": \"Int32\",\n \"value\": \"\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"ns=2;s=customObjectType.var1\",\n \"namespaceId\": 2\n },\n {\n \"name\": \"var2\",\n \"type\": \"Int32\",\n \"value\": \"\",\n \"access\": \"readwrite\",\n \"description\": \"\",\n \"displayName\": \"\",\n \"nodeId\": \"ns=2;s=customObjectType.var2\",\n \"namespaceId\": 2\n }\n ],\n \"alarms\": [],\n \"methods\": [],\n \"objectsTypes\": []\n }\n ],\n \"nameSpaces\": [\n {\n \"id\": 2,\n \"name\": \"urn:node-red:opc-ua-server\"\n },\n {\n \"id\": 3,\n \"name\": \"urn:plant2:3\"\n }\n ]\n}","output":"json","x":500,"y":140,"wires":[["8b311452217de452"]]},{"id":"662e19d35ced7eaa","type":"opcua-server-io","z":"d2b3eae6a1ecc622","g":"b2ce35ceb2bdafd8","name":"","serverRef":"myServer1","mode":"events","identifierType":"path","tagPath":"","tagNodeId":"","methodName":"","intervalMs":"1000","inputs":0,"outputs":1,"x":180,"y":760,"wires":[["b174ca5ba476a397"]]},{"id":"b174ca5ba476a397","type":"debug","z":"d2b3eae6a1ecc622","g":"b2ce35ceb2bdafd8","name":"debug 1","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":450,"y":760,"wires":[]},{"id":"2defd51ae95a1d97","type":"comment","z":"d2b3eae6a1ecc622","g":"b2ce35ceb2bdafd8","name":"events server read and write(clients)","info":"","x":240,"y":700,"wires":[]},{"id":"668921cc357bd516","type":"inject","z":"d2b3eae6a1ecc622","g":"d8fd16c88ec103e5","name":"alarm on","props":[{"p":"payload"},{"p":"topic","vt":"str"},{"p":"payload1","v":"92","vt":"num"},{"p":"payload2","v":"true","vt":"bool"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":180,"y":980,"wires":[["9cfc3721152e8357"]]},{"id":"f47bc3635ec2a31d","type":"opcua-server-io","z":"d2b3eae6a1ecc622","g":"d8fd16c88ec103e5","name":"","serverRef":"myServer1","mode":"write","identifierType":"path","tagPath":"","tagNodeId":"","methodName":"","intervalMs":500,"inputs":1,"outputs":1,"x":640,"y":940,"wires":[["266e174a9f4e200c"]]},{"id":"9cfc3721152e8357","type":"function","z":"d2b3eae6a1ecc622","g":"d8fd16c88ec103e5","name":"function 1","func":"msg.payload = [\n {\n \"name\": \"variableLevelAlarm\",\n \"path\": \"myServer1.variableLevelAlarm\",\n \"value\" : msg.payload1\n },\n {\n \"name\": \"variablDigitalAlarm\",\n \"path\": \"myServer1.variableDigitalAlarm\",\n \"value\" : msg.payload2\n }\n]\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":460,"y":940,"wires":[["f47bc3635ec2a31d"]]},{"id":"266e174a9f4e200c","type":"debug","z":"d2b3eae6a1ecc622","g":"d8fd16c88ec103e5","name":"debug 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":870,"y":920,"wires":[]},{"id":"6ec5659b15d00940","type":"comment","z":"d2b3eae6a1ecc622","g":"d8fd16c88ec103e5","name":"write","info":"","x":150,"y":880,"wires":[]},{"id":"e4edcc77427188f6","type":"inject","z":"d2b3eae6a1ecc622","g":"c84194e1716f46ab","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":240,"y":1500,"wires":[["932e2635730c7a44"]]},{"id":"932e2635730c7a44","type":"opcua-server-io","z":"d2b3eae6a1ecc622","g":"c84194e1716f46ab","name":"read direct","serverRef":"myServer1","mode":"read","identifierType":"path","tagPath":"myServer1.variableLevelAlarm","tagNodeId":"","methodName":"","intervalMs":500,"inputs":1,"outputs":1,"x":540,"y":1500,"wires":[["bfc08132027e72b7"]]},{"id":"bfc08132027e72b7","type":"debug","z":"d2b3eae6a1ecc622","g":"c84194e1716f46ab","name":"debug 3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":760,"y":1500,"wires":[]},{"id":"0368379e84561696","type":"inject","z":"d2b3eae6a1ecc622","g":"d8fd16c88ec103e5","name":"alarm off","props":[{"p":"payload"},{"p":"topic","vt":"str"},{"p":"payload1","v":"50","vt":"num"},{"p":"payload2","v":"false","vt":"bool"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":180,"y":940,"wires":[["9cfc3721152e8357"]]},{"id":"2da39bcbcc3d1109","type":"comment","z":"d2b3eae6a1ecc622","g":"d8fd16c88ec103e5","name":"write single","info":"","x":200,"y":1040,"wires":[]},{"id":"36c054113a954792","type":"inject","z":"d2b3eae6a1ecc622","g":"d8fd16c88ec103e5","name":"51","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"51","payloadType":"num","x":170,"y":1100,"wires":[["c03eaa1b388c50f3"]]},{"id":"c03eaa1b388c50f3","type":"opcua-server-io","z":"d2b3eae6a1ecc622","g":"d8fd16c88ec103e5","name":"write direct","serverRef":"myServer1","mode":"write","identifierType":"path","tagPath":"myServer1.variableLevelAlarm","tagNodeId":"","methodName":"","intervalMs":500,"inputs":1,"outputs":1,"x":400,"y":1100,"wires":[["eed2029c30d5bb5b"]]},{"id":"eed2029c30d5bb5b","type":"debug","z":"d2b3eae6a1ecc622","g":"d8fd16c88ec103e5","name":"debug 4","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":640,"y":1100,"wires":[]},{"id":"6c87b85f99be3616","type":"inject","z":"d2b3eae6a1ecc622","g":"c84194e1716f46ab","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":220,"y":1420,"wires":[["9c09946d8577b52d"]]},{"id":"9c09946d8577b52d","type":"function","z":"d2b3eae6a1ecc622","g":"c84194e1716f46ab","name":"function 3","func":"msg.payload = [\n {\n \"name\": \"variableLevelAlarm\",\n \"path\": \"myServer1.variableLevelAlarm\",\n \"value\" : msg.payload1\n },\n {\n \"name\": \"variablDigitalAlarm\",\n \"path\": \"myServer1.variableDigitalAlarm\",\n \"value\" : msg.payload2\n }\n]\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":440,"y":1420,"wires":[["2676f36ebaab5969"]]},{"id":"2676f36ebaab5969","type":"opcua-server-io","z":"d2b3eae6a1ecc622","g":"c84194e1716f46ab","name":"","serverRef":"myServer1","mode":"read","identifierType":"path","tagPath":"","tagNodeId":"","methodName":"","intervalMs":500,"inputs":1,"outputs":1,"x":640,"y":1420,"wires":[["1dc6b8aa2257eca3"]]},{"id":"1dc6b8aa2257eca3","type":"debug","z":"d2b3eae6a1ecc622","g":"c84194e1716f46ab","name":"debug 5","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":840,"y":1420,"wires":[]},{"id":"329a2a1a632fd233","type":"comment","z":"d2b3eae6a1ecc622","g":"c84194e1716f46ab","name":"read","info":"","x":150,"y":1360,"wires":[]},{"id":"27e7e959761bf77f","type":"comment","z":"d2b3eae6a1ecc622","g":"c84194e1716f46ab","name":"read single","info":"","x":200,"y":1460,"wires":[]},{"id":"b0b8022d4920fc55","type":"comment","z":"d2b3eae6a1ecc622","g":"23832db12bfa7d80","name":"methods","info":"","x":160,"y":260,"wires":[]},{"id":"7d0b6982f5786807","type":"opcua-server-io","z":"d2b3eae6a1ecc622","g":"23832db12bfa7d80","name":"","serverRef":"myServer1","mode":"method-input","identifierType":"path","tagPath":"","tagNodeId":"","methodName":"methodMultiplication","intervalMs":500,"inputs":0,"outputs":1,"x":190,"y":400,"wires":[["d1187abb8f01729a"]]},{"id":"08991f3c9d3b47a0","type":"opcua-server-io","z":"d2b3eae6a1ecc622","g":"23832db12bfa7d80","name":"","serverRef":"myServer1","mode":"method-output","identifierType":"path","tagPath":"","tagNodeId":"","methodName":"methodMultiplication","intervalMs":500,"inputs":1,"outputs":0,"x":750,"y":400,"wires":[]},{"id":"d1187abb8f01729a","type":"function","z":"d2b3eae6a1ecc622","g":"23832db12bfa7d80","name":"function 4","func":"var input1 = msg.payload[0].value\nvar input2 = msg.payload[1].value\n\nmsg.payload = [\n {\n dataType: \"Float\",\n value: input1 * input2\n }\n];\n\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":520,"y":400,"wires":[["08991f3c9d3b47a0"]]},{"id":"06a5925b29d016e7","type":"comment","z":"d2b3eae6a1ecc622","g":"36d46609aecf1392","name":"server","info":"","x":190,"y":80,"wires":[]},{"id":"fa224a9d8ab1f2c7","type":"inject","z":"d2b3eae6a1ecc622","g":"c84194e1716f46ab","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":240,"y":1640,"wires":[["d19b915e7393b9a7"]]},{"id":"d19b915e7393b9a7","type":"opcua-server-io","z":"d2b3eae6a1ecc622","g":"c84194e1716f46ab","name":"read direct","serverRef":"myServer1","mode":"read","identifierType":"path","tagPath":"myServer1.variableArray","tagNodeId":"","methodName":"","intervalMs":500,"inputs":1,"outputs":1,"x":510,"y":1640,"wires":[["984522736a0656a7"]]},{"id":"984522736a0656a7","type":"debug","z":"d2b3eae6a1ecc622","g":"c84194e1716f46ab","name":"debug 17","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":680,"y":1640,"wires":[]},{"id":"a944210da4387a6a","type":"comment","z":"d2b3eae6a1ecc622","g":"c84194e1716f46ab","name":"read array","info":"","x":200,"y":1580,"wires":[]},{"id":"a5083cedc1237564","type":"comment","z":"d2b3eae6a1ecc622","g":"d8fd16c88ec103e5","name":"write array","info":"","x":160,"y":1180,"wires":[]},{"id":"e91a6b84ebe3556d","type":"inject","z":"d2b3eae6a1ecc622","g":"d8fd16c88ec103e5","name":"51","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[11,21,31,41]","payloadType":"str","x":170,"y":1240,"wires":[["8e6e2008f8f79caf"]]},{"id":"8e6e2008f8f79caf","type":"opcua-server-io","z":"d2b3eae6a1ecc622","g":"d8fd16c88ec103e5","name":"write direct","serverRef":"myServer1","mode":"write","identifierType":"path","tagPath":"myServer1.variableArray","tagNodeId":"","methodName":"","intervalMs":500,"inputs":1,"outputs":1,"x":350,"y":1240,"wires":[["7f610dc5a13b1356"]]},{"id":"7f610dc5a13b1356","type":"debug","z":"d2b3eae6a1ecc622","g":"d8fd16c88ec103e5","name":"debug 18","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":580,"y":1240,"wires":[]},{"id":"ef63988ca2403b46","type":"opcua-client","z":"79a6f5fe6f4d465a","g":"285c23c3bad0ef27","name":"client read direct","connection":"b09a1570957d3c44","mode":"read","selectedItems":"[\n {\n \"name\": \"variableLevelAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableLevelAlarm\",\n \"type\": \"Int32\",\n \"nodeClass\": \"Variable\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=63\",\n \"browseName\": \"BaseDataVariableType\",\n \"displayName\": \"BaseDataVariableType\"\n },\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n },\n {\n \"name\": \"variableDigitalAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableDigitalAlarm\",\n \"type\": \"Boolean\",\n \"nodeClass\": \"Variable\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=63\",\n \"browseName\": \"BaseDataVariableType\",\n \"displayName\": \"BaseDataVariableType\"\n },\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]","samplingInterval":250,"publishingInterval":250,"x":440,"y":120,"wires":[["19bc7a26f39f3ecc"]]},{"id":"6cad9ec490596a99","type":"inject","z":"79a6f5fe6f4d465a","g":"285c23c3bad0ef27","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":120,"wires":[["ef63988ca2403b46"]]},{"id":"19bc7a26f39f3ecc","type":"debug","z":"79a6f5fe6f4d465a","g":"285c23c3bad0ef27","name":"debug 6","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":640,"y":120,"wires":[]},{"id":"1f5deaf79db824cf","type":"opcua-client","z":"79a6f5fe6f4d465a","g":"285c23c3bad0ef27","name":"client read ","connection":"b09a1570957d3c44","mode":"read","selectedItems":"[]","samplingInterval":250,"publishingInterval":250,"x":630,"y":240,"wires":[["0ff0aaf552ae087e"]]},{"id":"25d9d97555803451","type":"inject","z":"79a6f5fe6f4d465a","g":"285c23c3bad0ef27","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":240,"wires":[["fc2cde946ce08e4e"]]},{"id":"0ff0aaf552ae087e","type":"debug","z":"79a6f5fe6f4d465a","g":"285c23c3bad0ef27","name":"debug 7","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":880,"y":240,"wires":[]},{"id":"fc2cde946ce08e4e","type":"function","z":"79a6f5fe6f4d465a","g":"285c23c3bad0ef27","name":"function 5","func":"msg.payload = [\n {\n \"name\": \"variableLevelAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableLevelAlarm\",\n \"type\": \"Int32\"\n },\n {\n \"name\": \"variableDigitalAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableDigitalAlarm\",\n \"type\": \"Boolean\"\n }\n]\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":420,"y":240,"wires":[["1f5deaf79db824cf"]]},{"id":"2d6737a48c9bf131","type":"opcua-client","z":"79a6f5fe6f4d465a","g":"285c23c3bad0ef27","name":"client read Subscripition","connection":"b09a1570957d3c44","mode":"subscription","selectedItems":"[]","samplingInterval":"500","publishingInterval":"500","x":670,"y":380,"wires":[["4ef2369fd3613329"]]},{"id":"e751595f75537eae","type":"inject","z":"79a6f5fe6f4d465a","g":"285c23c3bad0ef27","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":380,"wires":[["a08020e9f79e7270"]]},{"id":"4ef2369fd3613329","type":"debug","z":"79a6f5fe6f4d465a","g":"285c23c3bad0ef27","name":"debug 8","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1000,"y":380,"wires":[]},{"id":"a08020e9f79e7270","type":"function","z":"79a6f5fe6f4d465a","g":"285c23c3bad0ef27","name":"function 6","func":"msg.payload = [\n {\n \"name\": \"variableLevelAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableLevelAlarm\",\n \"type\": \"Int32\"\n },\n {\n \"name\": \"variableDigitalAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableDigitalAlarm\",\n \"type\": \"Boolean\"\n }\n]\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":420,"y":380,"wires":[["2d6737a48c9bf131"]]},{"id":"bb13fb80d451245a","type":"opcua-client","z":"79a6f5fe6f4d465a","g":"285c23c3bad0ef27","name":"client read Subscripition direct","connection":"b09a1570957d3c44","mode":"subscription","selectedItems":"[\n {\n \"name\": \"variableLevelAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableLevelAlarm\",\n \"type\": \"Int32\",\n \"nodeClass\": \"Variable\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=63\",\n \"browseName\": \"BaseDataVariableType\",\n \"displayName\": \"BaseDataVariableType\"\n },\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n },\n {\n \"name\": \"variableDigitalAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableDigitalAlarm\",\n \"type\": \"Boolean\",\n \"nodeClass\": \"Variable\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=63\",\n \"browseName\": \"BaseDataVariableType\",\n \"displayName\": \"BaseDataVariableType\"\n },\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]","samplingInterval":"500","publishingInterval":"500","x":690,"y":460,"wires":[["1deb5211a2ddd488"]]},{"id":"ebf0bf0b98640c41","type":"inject","z":"79a6f5fe6f4d465a","g":"285c23c3bad0ef27","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":460,"wires":[["bb13fb80d451245a"]]},{"id":"1deb5211a2ddd488","type":"debug","z":"79a6f5fe6f4d465a","g":"285c23c3bad0ef27","name":"debug 9","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1000,"y":460,"wires":[]},{"id":"a21aeea307028ae4","type":"comment","z":"79a6f5fe6f4d465a","g":"285c23c3bad0ef27","name":"read","info":"","x":130,"y":60,"wires":[]},{"id":"7b40230aee3f3c0f","type":"comment","z":"79a6f5fe6f4d465a","g":"8e096ccb69a8c8f5","name":"write","info":"","x":130,"y":600,"wires":[]},{"id":"aa5537a918d6776b","type":"opcua-client","z":"79a6f5fe6f4d465a","g":"8e096ccb69a8c8f5","name":"client write direct","connection":"b09a1570957d3c44","mode":"write","selectedItems":"[\n {\n \"name\": \"variableLevelAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableLevelAlarm\",\n \"type\": \"Int32\",\n \"nodeClass\": \"Variable\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=63\",\n \"browseName\": \"BaseDataVariableType\",\n \"displayName\": \"BaseDataVariableType\"\n },\n \"valueProperty\": \"payload1\",\n \"valuePropertyType\": \"msg\"\n },\n {\n \"name\": \"variableDigitalAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableDigitalAlarm\",\n \"type\": \"Boolean\",\n \"nodeClass\": \"Variable\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=63\",\n \"browseName\": \"BaseDataVariableType\",\n \"displayName\": \"BaseDataVariableType\"\n },\n \"valueProperty\": \"payload2\",\n \"valuePropertyType\": \"msg\"\n }\n]","samplingInterval":250,"publishingInterval":250,"x":430,"y":680,"wires":[["a894da66d77e8418"]]},{"id":"a894da66d77e8418","type":"debug","z":"79a6f5fe6f4d465a","g":"8e096ccb69a8c8f5","name":"debug 10","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":620,"y":680,"wires":[]},{"id":"3b03a088eee38b35","type":"inject","z":"79a6f5fe6f4d465a","g":"8e096ccb69a8c8f5","name":"alarm on","props":[{"p":"payload"},{"p":"topic","vt":"str"},{"p":"payload1","v":"92","vt":"num"},{"p":"payload2","v":"true","vt":"bool"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":160,"y":740,"wires":[["aa5537a918d6776b"]]},{"id":"df6a3b9bbd0f6243","type":"inject","z":"79a6f5fe6f4d465a","g":"8e096ccb69a8c8f5","name":"alarm off","props":[{"p":"payload"},{"p":"topic","vt":"str"},{"p":"payload1","v":"50","vt":"num"},{"p":"payload2","v":"false","vt":"bool"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":160,"y":680,"wires":[["aa5537a918d6776b"]]},{"id":"ec71d8a75c78c0ba","type":"opcua-client","z":"79a6f5fe6f4d465a","g":"8e096ccb69a8c8f5","name":"client write ","connection":"b09a1570957d3c44","mode":"write","selectedItems":"[]","samplingInterval":250,"publishingInterval":250,"x":570,"y":820,"wires":[["a9ce0dba53d46bb7"]]},{"id":"a9ce0dba53d46bb7","type":"debug","z":"79a6f5fe6f4d465a","g":"8e096ccb69a8c8f5","name":"debug 11","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":740,"y":820,"wires":[]},{"id":"2484ca47fc4d911a","type":"inject","z":"79a6f5fe6f4d465a","g":"8e096ccb69a8c8f5","name":"alarm on","props":[{"p":"payload"},{"p":"topic","vt":"str"},{"p":"payload1","v":"92","vt":"num"},{"p":"payload2","v":"true","vt":"bool"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":160,"y":900,"wires":[["48ba7d74504f220a"]]},{"id":"84232cde9f2231b5","type":"inject","z":"79a6f5fe6f4d465a","g":"8e096ccb69a8c8f5","name":"alarm off","props":[{"p":"payload"},{"p":"topic","vt":"str"},{"p":"payload1","v":"50","vt":"num"},{"p":"payload2","v":"false","vt":"bool"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":160,"y":840,"wires":[["48ba7d74504f220a"]]},{"id":"48ba7d74504f220a","type":"function","z":"79a6f5fe6f4d465a","g":"8e096ccb69a8c8f5","name":"function 7","func":"msg.payload = [\n {\n \"name\": \"variableLevelAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableLevelAlarm\",\n \"type\": \"Int32\",\n \"nodeClass\": \"Variable\",\n \"value\" : msg.payload1\n \n },\n {\n \"name\": \"variableDigitalAlarm\",\n \"nodeID\": \"ns=2;s=myServer1.variableDigitalAlarm\",\n \"type\": \"Boolean\",\n \"nodeClass\": \"Variable\",\n \"value\" : msg.payload2\n\n }\n]\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":400,"y":820,"wires":[["ec71d8a75c78c0ba"]]},{"id":"fdddad6dc624d803","type":"opcua-client","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"client method","connection":"b09a1570957d3c44","mode":"method","selectedItems":"[\n {\n \"name\": \"soma\",\n \"nodeID\": \"ns=2;s=teste.soma\",\n \"nodeClass\": \"Method\",\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]","samplingInterval":250,"publishingInterval":250,"x":830,"y":1100,"wires":[["83a962e6f3eb3652"]]},{"id":"c26f86f9b102ce3d","type":"inject","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":1100,"wires":[["609a5416d116f06b"]]},{"id":"83a962e6f3eb3652","type":"debug","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"debug 52","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1020,"y":1100,"wires":[]},{"id":"1b8a5cc3d4afab4b","type":"function","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"method refresh","func":"msg.payload = [\n {\n \"name\": \"metodo1\",\n \"nodeID\": \"ns=0;i=3875\",\n \"inputs\": [\n {\n \"name\": \"i1\",\n \"type\": \"UInt32\",\n \"value\": msg.payload\n },\n ]\n },\n\n \n]\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":660,"y":1100,"wires":[["fdddad6dc624d803"]]},{"id":"609a5416d116f06b","type":"opcua-client","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"client get id","connection":"b09a1570957d3c44","mode":"getSubscriptionId","selectedItems":"[\n {\n \"name\": \"soma\",\n \"nodeID\": \"ns=2;s=teste.soma\",\n \"nodeClass\": \"Method\",\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]","samplingInterval":250,"publishingInterval":250,"x":450,"y":1100,"wires":[["1b8a5cc3d4afab4b"]]},{"id":"b04161e07c2b5f94","type":"comment","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"method refresh","info":"","x":160,"y":1000,"wires":[]},{"id":"a0e9eefc0d33a27b","type":"opcua-client","z":"79a6f5fe6f4d465a","g":"1ec58c5dcc676cd8","name":"client Events","connection":"b09a1570957d3c44","mode":"events","selectedItems":"[\n {\n \"name\": \"Server\",\n \"nodeID\": \"ns=0;i=2253\",\n \"nodeClass\": \"Object\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=2004\",\n \"browseName\": \"ServerType\",\n \"displayName\": \"ServerType\"\n },\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]","samplingInterval":250,"publishingInterval":250,"x":450,"y":1680,"wires":[["493b430fb6628573"]]},{"id":"ed284715a31f9fb0","type":"inject","z":"79a6f5fe6f4d465a","g":"1ec58c5dcc676cd8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":1680,"wires":[["a0e9eefc0d33a27b"]]},{"id":"493b430fb6628573","type":"debug","z":"79a6f5fe6f4d465a","g":"1ec58c5dcc676cd8","name":"debug 12","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":780,"y":1680,"wires":[]},{"id":"cf180f43c9fef5fc","type":"comment","z":"79a6f5fe6f4d465a","g":"1ec58c5dcc676cd8","name":"events","info":"","x":130,"y":1620,"wires":[]},{"id":"c2d6012f3fa2bfe1","type":"inject","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":1220,"wires":[["86c4207a31f2ad3b"]]},{"id":"b4a4967137db05e3","type":"opcua-client","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"client method","connection":"b09a1570957d3c44","mode":"method","selectedItems":"[\n {\n \"name\": \"soma\",\n \"nodeID\": \"ns=2;s=teste.soma\",\n \"nodeClass\": \"Method\",\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]","samplingInterval":250,"publishingInterval":250,"x":670,"y":1220,"wires":[["0fc6a57284b0fdcb"]]},{"id":"86c4207a31f2ad3b","type":"function","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"method methodSum","func":"msg.payload = [\n {\n \"name\": \"methodSum\",\n \"nodeID\": \"ns=2;s=myServer1.folderMethod.methodSum\",\n \"inputs\": [\n {\n \"name\": \"var1\",\n \"type\": \"Float\",\n \"value\": 5\n },\n {\n \"name\": \"var2\",\n \"type\": \"Float\",\n \"value\": 5\n }\n ]\n }\n]\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":460,"y":1220,"wires":[["b4a4967137db05e3"]]},{"id":"0fc6a57284b0fdcb","type":"debug","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"debug 13","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":850,"y":1220,"wires":[]},{"id":"dbd0479a43af64a7","type":"comment","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"refresh event","info":"","x":150,"y":1060,"wires":[]},{"id":"526eb25bb9a30b5d","type":"comment","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"methodSum","info":"","x":150,"y":1160,"wires":[]},{"id":"341cccffb89cf4aa","type":"opcua-client","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"client method","connection":"b09a1570957d3c44","mode":"method","selectedItems":"[\n {\n \"name\": \"soma\",\n \"nodeID\": \"ns=2;s=teste.soma\",\n \"nodeClass\": \"Method\",\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]","samplingInterval":250,"publishingInterval":250,"x":830,"y":1360,"wires":[["e056796f7cbc9628"]]},{"id":"190b600344448c5f","type":"inject","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":1360,"wires":[["bb4bfc533f49d250"]]},{"id":"bb4bfc533f49d250","type":"function","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"levelAlarm1-Acknowledge","func":"\n\nmsg.payload = [\n {\n \"name\": \"metodo1\",\n \"nodeID\": \"ns=2;s=myServer1.folderAlarms.levelAlarm1-Acknowledge\",\n \"inputs\": [\n {\n \"name\": \"i1\",\n \"type\": \"ByteString\",\n \"value\": \"\"\n },\n {\n \"name\": \"i2\",\n \"type\": \"LocalizedText\",\n \"value\": \"\"\n },\n ]\n },\n\n\n]\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":510,"y":1360,"wires":[["341cccffb89cf4aa"]]},{"id":"e056796f7cbc9628","type":"debug","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"debug 14","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":990,"y":1360,"wires":[]},{"id":"c8a39a53b1074acc","type":"comment","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"method Acknowledge","info":"","x":180,"y":1300,"wires":[]},{"id":"793f8368f0a1c1a3","type":"opcua-client","z":"79a6f5fe6f4d465a","g":"67244e1b04fa0130","name":"client browse direct","connection":"b09a1570957d3c44","mode":"browse","selectedItems":"[\n {\n \"name\": \"myServer1\",\n \"nodeID\": \"ns=2;s=myServer1\",\n \"nodeClass\": \"Object\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=61\",\n \"browseName\": \"FolderType\",\n \"displayName\": \"FolderType\"\n },\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n },\n {\n \"name\": \"folderAlarms\",\n \"nodeID\": \"ns=2;s=myServer1.folderAlarms\",\n \"nodeClass\": \"Object\",\n \"hasTypeDefinition\": {\n \"nodeID\": \"ns=0;i=61\",\n \"browseName\": \"FolderType\",\n \"displayName\": \"FolderType\"\n },\n \"valueProperty\": \"payload\",\n \"valuePropertyType\": \"msg\"\n }\n]","samplingInterval":250,"publishingInterval":250,"x":450,"y":1880,"wires":[["37278c8895890143"]]},{"id":"8c223050ecd416ef","type":"comment","z":"79a6f5fe6f4d465a","g":"67244e1b04fa0130","name":"browse ","info":"","x":130,"y":1820,"wires":[]},{"id":"825b3d7170cf5598","type":"inject","z":"79a6f5fe6f4d465a","g":"67244e1b04fa0130","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":1880,"wires":[["793f8368f0a1c1a3"]]},{"id":"37278c8895890143","type":"debug","z":"79a6f5fe6f4d465a","g":"67244e1b04fa0130","name":"debug 15","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":660,"y":1880,"wires":[]},{"id":"6944643a2ea15889","type":"opcua-client","z":"79a6f5fe6f4d465a","g":"67244e1b04fa0130","name":"client browse ","connection":"b09a1570957d3c44","mode":"browse","selectedItems":"[]","samplingInterval":250,"publishingInterval":250,"x":630,"y":1980,"wires":[["f458df76db488866"]]},{"id":"4a49bda87a91dd36","type":"inject","z":"79a6f5fe6f4d465a","g":"67244e1b04fa0130","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":1980,"wires":[["05f34bc116cd8ee2"]]},{"id":"f458df76db488866","type":"debug","z":"79a6f5fe6f4d465a","g":"67244e1b04fa0130","name":"debug 16","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":860,"y":1980,"wires":[]},{"id":"05f34bc116cd8ee2","type":"function","z":"79a6f5fe6f4d465a","g":"67244e1b04fa0130","name":"browse ","func":"msg.payload = [\n {\n \"name\": \"myServer1\",\n \"nodeID\": \"ns=2;s=myServer1\",\n \n },\n {\n \"name\": \"folderAlarms\",\n \"nodeID\": \"ns=2;s=myServer1.folderAlarms\",\n \n }\n]\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":420,"y":1980,"wires":[["6944643a2ea15889"]]},{"id":"268d6e811e44af99","type":"function","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"Acknowledge by objectId","func":"msg.payload = [\n {\n \"name\": \"method1\",\n \"objectId\": \"ns=2;s=myServer1.folderAlarms.digitalAlarm1\",\n \"methodID\": \"ns=0;i=9111\",\n \"inputs\": [\n {\n \"name\": \"input1\",\n \"type\": \"ByteString\",\n //Buffer eventID\n \"value\": Buffer.from([246, 112, 20, 156, 78, 102, 23, 227, 22, 239, 112, 224, 54, 197, 229, 157, 0, 0, 0, 5]) \n },\n {\n \"name\": \"input2\",\n \"type\": \"LocalizedText\",\n \"value\": \"Acknowledged by operator\"\n }\n ]\n },\n\n\n]\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":1440,"wires":[["f8926e74b84652f9"]]},{"id":"f8926e74b84652f9","type":"opcua-client","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"client Acknowledge","connection":"b09a1570957d3c44","mode":"method","selectedItems":"[]","samplingInterval":250,"publishingInterval":250,"x":710,"y":1440,"wires":[["c88593f3e0725b05"]]},{"id":"dc4ea6ac1f3195e1","type":"inject","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":180,"y":1440,"wires":[["268d6e811e44af99"]]},{"id":"c88593f3e0725b05","type":"debug","z":"79a6f5fe6f4d465a","g":"6680a3f5b18b36a5","name":"debug 19","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":880,"y":1440,"wires":[]},{"id":"8c73fb548e807740","type":"opcua-client","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"","connection":"b09a1570957d3c44","mode":"browse","selectedItems":"[]","samplingInterval":250,"publishingInterval":250,"x":590,"y":340,"wires":[["2b21c4370fd02197","596e4966920d35cc"]]},{"id":"df008f3855a3f9a4","type":"inject","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":180,"y":340,"wires":[["1444c096a73f4ca6","596e4966920d35cc"]]},{"id":"1444c096a73f4ca6","type":"function","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"ns=2;s=myServer1","func":"msg.payload = [{\n \"nodeId\" : \"ns=2;s=myServer1\"\n}]\n\nflow.set(\"variables\", [])\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":400,"y":340,"wires":[["8c73fb548e807740"]]},{"id":"2b21c4370fd02197","type":"change","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload[0].browse","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":810,"y":340,"wires":[["efe6dcebe2d7f08d"]]},{"id":"efe6dcebe2d7f08d","type":"split","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","property":"payload","x":1010,"y":340,"wires":[["f9c6be02a37d97c0"]]},{"id":"f9c6be02a37d97c0","type":"switch","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"","property":"payload.nodeClass","propertyType":"msg","rules":[{"t":"eq","v":"Object","vt":"str"},{"t":"eq","v":"Variable","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":1170,"y":340,"wires":[["49aac6ef852864de"],["f573a31db4ae7c54"]]},{"id":"49aac6ef852864de","type":"function","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"function 39","func":"msg.payload = [msg.payload]\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":810,"y":140,"wires":[["8c73fb548e807740"]]},{"id":"f573a31db4ae7c54","type":"function","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"flow.set(\"variables\")","func":"var variables = flow.get(\"variables\")\n\nvariables.push( {\n \"name\": msg.payload.browseName ,\n \"nodeID\": msg.payload.nodeID\n })\n\nflow.set(\"variables\" , variables)\n\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1390,"y":380,"wires":[["01d2238a6571f70e"]]},{"id":"7f6825ac425c4762","type":"opcua-client","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"Subscription all variables in server","connection":"b09a1570957d3c44","mode":"subscription","selectedItems":"[]","samplingInterval":250,"publishingInterval":250,"x":640,"y":540,"wires":[["11407ea89fd47c06"]]},{"id":"d17d2adbbd01cbf6","type":"change","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"variables","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":370,"y":540,"wires":[["7f6825ac425c4762"]]},{"id":"11407ea89fd47c06","type":"debug","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"debug 32","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":900,"y":540,"wires":[]},{"id":"77168078146d3b2b","type":"trigger","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"","op1":"","op2":"","op1type":"nul","op2type":"payl","duration":"2","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":180,"y":540,"wires":[["d17d2adbbd01cbf6"]]},{"id":"596e4966920d35cc","type":"function","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"reset","func":"msg.reset = 1\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":350,"y":420,"wires":[["9d5dd36f42e74286"]]},{"id":"7f20c7d7a421295e","type":"comment","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"Subscription all variables in server and flow.set","info":"","x":270,"y":180,"wires":[]},{"id":"01d2238a6571f70e","type":"link out","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"link out 1","mode":"link","links":["46b04c28e0c85cc6"],"x":1565,"y":380,"wires":[]},{"id":"46b04c28e0c85cc6","type":"link in","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"link in trigger","links":["01d2238a6571f70e","9d5dd36f42e74286"],"x":85,"y":540,"wires":[["77168078146d3b2b"]]},{"id":"9d5dd36f42e74286","type":"link out","z":"14fe15a9e9d468af","g":"b77a84882ecb667f","name":"link out 2","mode":"link","links":["46b04c28e0c85cc6"],"x":505,"y":420,"wires":[]},{"id":"28c25955bc6958fb","type":"global-config","env":[],"modules":{"@vitormnm/node-red-simple-opcua":"1.6.1"}}]