-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathopcuaAdapter_mapping.xml
More file actions
493 lines (462 loc) · 15.2 KB
/
opcuaAdapter_mapping.xml
File metadata and controls
493 lines (462 loc) · 15.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
<?xml version="1.0" encoding="UTF-8" ?>
<csa:uamapping xmlns:csa="https://github.com/ChimeraTK/ControlSystemAdapter-OPC-UA-Adapter">
<config rootFolder="llrfCtrl_hzdr" description="Test application for the digital LLRF system at ELBE / HZDR">
<server applicationName="LLRFServer" port="16660" />
<!-- <security unsecure="enable" certificate="../certs/server_cert.der"
privatekey="../certs/server_key.der"
trustlist="../certs/allow"
blocklist="../certs/block"
issuerlist="../certs/issuer"/>-->
<login username="test" password="test123" />
<process_variable_hierarchy>
<unroll pathSep="/">True</unroll>
</process_variable_hierarchy>
<mapping_exceptions>False</mapping_exceptions>
<historizing>
<setup name="fsdf" buffer_length="100" entries_per_response="10" interval="500"/>
<setup name="fdf" buffer_length="100" entries_per_response="10" interval="500"/>
</historizing>
</config>
<!-- (1) Process variable options
Information:
- the path seperator for the destination tag is "/"
- the destination can include a folder hierachy that is created on the flight
- the given name is used without any modifications, e.g. myVars/myVar will result in a
variable with the name myVars/myVar and no folder myVars is created
Error cases:
1. no sourceName attribute
2. sourceName attribute with no corresponding PV
3. source and new PV are the same and copy="True" (see below)
4. sourceName of the PV and new name are different and copy="False"
Default cases:
1. Copy attribute -> copy="False"
2. Description -> description from source PV
3. Unit -> unit from source PV
4. Name -> Use pv name from sourceName attribute (here: varA)
5. Destination -> pv is created in root directory
-->
<!-- D1 [x]-->
<process_variable sourceName="testDoubleArray_10000" history="fsdf">
<destination>A</destination>
<name>testDoubleArray_10000</name>
<description>Test Desc D1</description>
<unit>U1</unit>
</process_variable>
<process_variable sourceName="testDoubleArray_11000">
<destination>B</destination>
<name>testDoubleArray_11000</name>
<description>Test Desc D1.1</description>
<unit>U1.1</unit>
</process_variable>
<!-- D2 [x]-->
<process_variable sourceName="testDoubleArray_12000" copy="false">
<destination>D</destination>
<name>testDoubleArray_12000</name>
<unit>U2</unit>
</process_variable>
<process_variable sourceName="testDoubleArray_13000" copy="false">
<destination>E</destination>
<name>testDoubleArray_13000</name>
<description></description>
<unit>U2.1</unit>
</process_variable>
<!-- D3 [x]-->
<process_variable sourceName="testDoubleArray_14000" copy="false">
<destination>F</destination>
<name>testDoubleArray_14000</name>
<description>update description</description>
</process_variable>
<process_variable sourceName="testDoubleArray_15000" copy="false">
<destination>G</destination>
<name>testDoubleArray_15000</name>
<description>update description</description>
<unit></unit>
</process_variable>
<!-- D4 [x]-->
<process_variable sourceName="testDoubleArray_16000" copy="false">
<destination>A/B</destination>
<description>update description</description>
<unit>new U</unit>
</process_variable>
<process_variable sourceName="testDoubleArray_17000" copy="false">
<destination>A/Dein</destination>
<description>update description</description>
<unit>new U</unit>
</process_variable>
<!-- D5 [x]-->
<process_variable sourceName="testDoubleArray_18000" copy="false">
<name>testDoubleArray_18000</name>
<description>update description</description>
<unit>new U</unit>
</process_variable>
<process_variable sourceName="testDoubleArray_19000" copy="false">
<name>testDoubleArray_19000</name>
<destination></destination>
<description>update description</description>
<unit>new U</unit>
</process_variable>
<process_variable sourceName="testDoubleArray_18000" copy="true">
<name>testDoubleArray_18000_</name>
<description>update description</description>
<unit>new U</unit>
</process_variable>
<process_variable sourceName="testDoubleArray_19000" copy="true">
<name>testDoubleArray_19000_</name>
<destination></destination>
<description>update description</description>
<unit>new U</unit>
</process_variable>
<!-- D6 [x]-->
<process_variable sourceName="testDoubleArray_20000" copy="">
</process_variable>
<process_variable sourceName="testDoubleArray_21000" copy="">
<name></name>
<destination></destination>
<description></description>
<unit></unit>
</process_variable>
<process_variable sourceName="testDoubleArray_21000" copy="true">
<name></name>
<destination></destination>
<description></description>
<unit></unit>
</process_variable>
<!-- E1 [x]-->
<process_variable sourceName="" copy="false">
<destination>A/B</destination>
<name>uint8Array_s10</name>
<unit>K</unit>
<description>newA</description>
</process_variable>
<process_variable copy="false">
<destination>A/B</destination>
<name>uint8Array_s10</name>
<unit>K</unit>
<description>newA</description>
</process_variable>
<!-- E2 [x]-->
<process_variable sourceName="noSourceName" copy="false">
<destination>A/B</destination>
<name>uint8Array_s10</name>
<unit>K</unit>
<description>newA</description>
</process_variable>
<!-- E3 [x]-->
<process_variable sourceName="Dein/Name/ist/uint8Array_s10" copy="true">
<destination>Dein/Name/ist</destination>
<name>uint8Array_s10</name>
<unit>K</unit>
<description>newA</description>
</process_variable>
<!-- E4 [x]-->
<process_variable sourceName="Dein/Name/ist/uint8Array_s10" copy="false">
<destination>Dein/Name/ist</destination>
<name>xx</name>
<unit>K</unit>
<description>newA</description>
</process_variable>
<!-- general test pv mapping -->
<process_variable sourceName="Dein/Name/ist/uint8Array_s10" copy="false">
<destination>folderB/folderC</destination>
<name>uint8Array_s10</name>
<unit>K</unit>
<description>Description of folderB/folderC/uint8Array_s10</description>
</process_variable>
<!-- ref in existing folder -->
<process_variable sourceName="Dein/Name/ist/uint8Array_s10" copy="false">
<destination>A/B</destination>
<name>uint8Array_s10</name>
<unit>K</unit>
<description>newA</description>
</process_variable>
<!-- update existing pv -->
<process_variable sourceName="Dein/Name/ist/uint8Array_s10" copy="false">
<destination>Dein/Name/ist</destination>
<name>uint8Array_s10</name>
<unit>F</unit>
<description>update description</description>
</process_variable>
<process_variable sourceName="Dein/Name/ist/uint8Array_s10" copy="true">
<destination>folderB</destination>
<name>varA</name>
<unit>G</unit>
<description>New deep copy description</description>
</process_variable>
<!-- (2) Additional variable options
Information:
- the path seperator for the destination tag is "/"
- the destination can include a folder hierachy that is created on the fligth
- variable type is ctkAdditionalVariable (UAString)
- value should be assigned directly to the additional variable (no subnode named value)
Error cases:
E1. PV with same name exists
E2. name is missing or is empty
Default cases:
D1. Description -> description empty
D2. Destination -> variable is created in the root folder
D3. Value -> empty string
-->
<!-- D1 [x]-->
<additional_variable>
<name>av_d1</name>
<destination>A</destination>
<value>av_value</value>
</additional_variable>
<additional_variable>
<name>av_d1_1</name>
<destination>A</destination>
<description></description>
<value>av_value</value>
</additional_variable>
<!-- D2 [x]-->
<additional_variable>
<name>av_d2</name>
<value>av_value</value>
<description>Description of AV2</description>
</additional_variable>
<additional_variable>
<name>av_d2_1</name>
<destination></destination>
<value>av_value</value>
<description>Description of AV2.1</description>
</additional_variable>
<!-- D3 [x]-->
<additional_variable>
<name>av_d3</name>
<destination>A</destination>
<description>Description of AV3</description>
</additional_variable>
<additional_variable>
<name>av_d3_1</name>
<destination>A</destination>
<value></value>
<description>Description of AV3.1</description>
</additional_variable>
<!-- D1, D2, D3 [x]-->
<additional_variable>
<name>av_d4</name>
</additional_variable>
<additional_variable>
<name>av_d4_1</name>
<destination></destination>
<description></description>
<value></value>
</additional_variable>
<!-- E1 [x]-->
<additional_variable>
<name>av_d4</name>
</additional_variable>
<!-- E2 [x]-->
<additional_variable>
<destination>A</destination>
<value>av_value</value>
</additional_variable>
<!-- E2.1 [x]-->
<additional_variable>
<name></name>
<destination>A</destination>
<value>av_value</value>
</additional_variable>
<!-- general test additional variable -->
<additional_variable>
<destination>A/B</destination>
<name>av_test</name>
<description>New information of AV</description>
<value>1</value>
</additional_variable>
<!-- (3) Folder without source
Information:
- the path seperator for the destination tag is "/"
- the destination can include a folder hierachy that is created on the fligth
- allows to add a folder with or without a description
- allows to change the description of an existing folder
Error cases:
1. name is missing or is empty
Default cases:
1. Description -> empty description
2. Destination -> folder is created in the root folder
-->
<!-- D1 [x]-->
<folder>
<destination>B</destination>
<name>C</name>
</folder>
<folder>
<destination>B</destination>
<name>D</name>
<description></description>
</folder>
<!-- D2 [x]-->
<folder>
<name>D</name>
<description>Folder D Description</description>
</folder>
<folder>
<name>E</name>
<description>Folder E Description</description>
</folder>
<!-- D3 [x]-->
<folder>
<name>F</name>
</folder>
<folder>
<name>G</name>
<description></description>
<destination></destination>
</folder>
<!-- E1 [x]-->
<folder>
<destination>B</destination>
</folder>
<folder>
<name></name>
<destination>B</destination>
</folder>
<!-- general test folder without source -->
<folder>
<destination>A/B</destination>
<name>C</name>
<description>Folder description of A/B/C</description>
</folder>
<!-- update folder description of created folder 'B' -->
<folder>
<destination>A</destination>
<name>B</name>
<description>Folder Description of A/B</description>
</folder>
<!-- update folder description of created folder 'A' -->
<folder history="fdf">
<name>A</name>
<description>Description of A</description>
</folder>
<!-- (4) Folder with source
Information:
- the path seperator for the destination tag is "/"
- the destination can include a folder hierachy that is created on the flight
- allows to show folder content at another location
- folder content can be copied to the new location (copy="True") or simply linked to the new location
Error cases:
1. name is missing or is empty
2. new folder is equal to the source folder
3. sourceName with no corresponding folder
4. sourceName is empty or missing
Default cases:
1. Description -> empty description
2. Destination -> folder is created in the root folder
3. Copy attribute -> copy="False"
-->
<!-- D1 [x]-->
<folder sourceName="folder/f1" copy="false" history="fdf">
<destination>A</destination>
<name>f1</name>
</folder>
<folder sourceName="folder/f2" copy="false">
<destination>A</destination>
<name>f2</name>
<description></description>
</folder>
<!-- D2 [x]-->
<folder sourceName="folder/f3" copy="false">
<name>f3</name>
<description>Desc f3</description>
</folder>
<folder sourceName="folder/f4" copy="false">
<destination></destination>
<name>f4</name>
<description>Desc f4</description>
</folder>
<!-- D3 [x]-->
<folder sourceName="folder/f5">
<destination>A</destination>
<name>f5</name>
<description>Desc f5</description>
</folder>
<folder sourceName="folder/f6" copy="">
<destination>A</destination>
<name>f6</name>
<description>Desc f6</description>
</folder>
<!-- D1, D2, D3 [x]-->
<folder sourceName="folder/f7">
<name>f7</name>
</folder>
<folder sourceName="folder/f8" copy="">
<destination></destination>
<name>f8</name>
<description></description>
</folder>
<!-- E1 [x]-->
<folder sourceName="folder/f1" copy="false">
<destination>A</destination>
<description>E1</description>
</folder>
<folder sourceName="folder/f1" copy="false">
<destination>A</destination>
<description>E1.1</description>
<name></name>
</folder>
<!-- E2 [x]-->
<folder sourceName="folder/f1" copy="false">
<destination>folder</destination>
<name>E2</name>
<description>E2</description>
</folder>
<!-- E3 [x]-->
<folder sourceName="folder/f0" copy="false">
<destination>folder</destination>
<name>E3</name>
<description>E3</description>
</folder>
<!-- E4 [x]-->
<folder copy="false">
<destination>folder</destination>
<name>E4</name>
<description>E4</description>
</folder>
<!-- (5) Exclude Nodes and Folders
Information:
- All variables used in the Application are connected to the control system. This could
blow uo the address space. Since many variables that are not needed to interact with the application
and overwhelm the user are often present, the user can exclude paths.
-
Default cases:
1. Greedy matching with "*" to check if the exclude string is contained in a folder or process variable
2. Directory matching with "/*" to exclude all children (folders, process variables) in the exclude path
3. Direct matching with one-to-one relation between exclude string and process variable
Error cases:
1. Try to exclude process variable which is used in the process variable mapping (direct match)
-->
<!-- D1 [x]
- PV name includes string dir/test
- If multiple PVs exist (e.g. dir/test1, /dir/test2) all are matched
-->
<exclude sourceName="dir/test*" />
<exclude sourceName="Mein/Name*" />
<!-- D2 [x]
- Directory and all PV in that directory including subdirectories with their PVs would match
-->
<exclude sourceName="dir/test/*" />
<exclude sourceName="Dein/Name/*" />
<!-- D3 [x] -->
<exclude sourceName="dir/test" />
<exclude sourceName="testDoubleArray_57000" />
<!-- E1 [x] -->
<exclude sourceName="testDoubleArray_19000" />
<!-- E2 [x] -->
<process_variable sourceName="Unser/Name/ist_uint8Array_s10" copy="true">
<destination>A</destination>
<name>exclude_map_test</name>
</process_variable>
<exclude sourceName="/Unser*" />
<!-- general test folder with source test -->
<folder sourceName="folder/f9" copy="false">
<destination>A</destination>
<name>f9</name>
<description>Desc F9</description>
</folder>
<folder sourceName="folder/f9" copy="true">
<destination>A</destination>
<name>f10</name>
<description>Desc F10</description>
</folder>
</csa:uamapping>