@sakibcoolz/core 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/README.md +67 -7
  2. package/dist/acquisition.d.ts +29 -0
  3. package/dist/acquisition.d.ts.map +1 -0
  4. package/dist/acquisition.js +30 -0
  5. package/dist/acquisition.js.map +1 -0
  6. package/dist/assembly.d.ts +5 -2
  7. package/dist/assembly.d.ts.map +1 -1
  8. package/dist/assembly.js +7 -4
  9. package/dist/assembly.js.map +1 -1
  10. package/dist/attach.d.ts +4 -2
  11. package/dist/attach.d.ts.map +1 -1
  12. package/dist/attach.js +5 -3
  13. package/dist/attach.js.map +1 -1
  14. package/dist/clipboard.d.ts +6 -4
  15. package/dist/clipboard.d.ts.map +1 -1
  16. package/dist/clipboard.js +25 -4
  17. package/dist/clipboard.js.map +1 -1
  18. package/dist/collision.d.ts +2 -2
  19. package/dist/collision.js.map +1 -1
  20. package/dist/digest.d.ts +9 -0
  21. package/dist/digest.d.ts.map +1 -0
  22. package/dist/digest.js +68 -0
  23. package/dist/digest.js.map +1 -0
  24. package/dist/flow.d.ts +3 -2
  25. package/dist/flow.d.ts.map +1 -1
  26. package/dist/flow.js.map +1 -1
  27. package/dist/graph.d.ts +67 -7
  28. package/dist/graph.d.ts.map +1 -1
  29. package/dist/graph.js +195 -10
  30. package/dist/graph.js.map +1 -1
  31. package/dist/index.d.ts +13 -6
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/index.js +7 -3
  34. package/dist/index.js.map +1 -1
  35. package/dist/observation.d.ts +1 -1
  36. package/dist/observation.d.ts.map +1 -1
  37. package/dist/observation.js +4 -1
  38. package/dist/observation.js.map +1 -1
  39. package/dist/routing.d.ts +6 -3
  40. package/dist/routing.d.ts.map +1 -1
  41. package/dist/routing.js +12 -2
  42. package/dist/routing.js.map +1 -1
  43. package/dist/scene.d.ts +245 -5
  44. package/dist/scene.d.ts.map +1 -1
  45. package/dist/scene.js +94 -3
  46. package/dist/scene.js.map +1 -1
  47. package/dist/serialization.d.ts +7 -7
  48. package/dist/serialization.d.ts.map +1 -1
  49. package/dist/serialization.js +120 -8
  50. package/dist/serialization.js.map +1 -1
  51. package/dist/snapping.d.ts +2 -2
  52. package/dist/snapping.d.ts.map +1 -1
  53. package/dist/snapping.js +10 -7
  54. package/dist/snapping.js.map +1 -1
  55. package/dist/status.d.ts +56 -0
  56. package/dist/status.d.ts.map +1 -0
  57. package/dist/status.js +114 -0
  58. package/dist/status.js.map +1 -0
  59. package/dist/tags.d.ts +52 -0
  60. package/dist/tags.d.ts.map +1 -0
  61. package/dist/tags.js +103 -0
  62. package/dist/tags.js.map +1 -0
  63. package/dist/telemetry.d.ts +42 -4
  64. package/dist/telemetry.d.ts.map +1 -1
  65. package/dist/telemetry.js +84 -8
  66. package/dist/telemetry.js.map +1 -1
  67. package/dist/touching.d.ts +2 -2
  68. package/dist/touching.d.ts.map +1 -1
  69. package/dist/touching.js +7 -4
  70. package/dist/touching.js.map +1 -1
  71. package/dist/units.js +1 -1
  72. package/dist/units.js.map +1 -1
  73. package/dist/upgrade.d.ts +2 -2
  74. package/dist/upgrade.js.map +1 -1
  75. package/dist/validation.d.ts +33 -6
  76. package/dist/validation.d.ts.map +1 -1
  77. package/dist/validation.js +806 -39
  78. package/dist/validation.js.map +1 -1
  79. package/package.json +4 -2
  80. package/schema/fixtures/invalid/association-without-relationship.scene.json +69 -0
  81. package/schema/fixtures/invalid/binding-kind.scene.json +14 -0
  82. package/schema/fixtures/invalid/command-zero-step.scene.json +105 -0
  83. package/schema/fixtures/invalid/empty-name.scene.json +30 -0
  84. package/schema/fixtures/invalid/expected.json +70 -0
  85. package/schema/fixtures/invalid/extension-not-namespaced.scene.json +10 -0
  86. package/schema/fixtures/invalid/extension-prototype-key.scene.json +12 -0
  87. package/schema/fixtures/invalid/missing-document-type.scene.json +6 -0
  88. package/schema/fixtures/invalid/non-string-label.scene.json +32 -0
  89. package/schema/fixtures/invalid/underlay-opacity.scene.json +17 -0
  90. package/schema/fixtures/invalid/unknown-component-kind.scene.json +29 -0
  91. package/schema/fixtures/invalid/unknown-relationship.scene.json +63 -0
  92. package/schema/fixtures/invalid/unknown-root-field.scene.json +8 -0
  93. package/schema/fixtures/invalid/unsupported-version.scene.json +7 -0
  94. package/schema/fixtures/invalid/view-rotation.scene.json +139 -0
  95. package/schema/fixtures/invalid/writable-string.scene.json +93 -0
  96. package/schema/fixtures/invalid/writable-without-limits.scene.json +100 -0
  97. package/schema/fixtures/invalid/zero-scale.scene.json +29 -0
  98. package/schema/fixtures/migration/README.md +18 -0
  99. package/schema/fixtures/migration/v1-demo.scene.json +160 -0
  100. package/schema/fixtures/migration/v1-demo.v4.json +198 -0
  101. package/schema/fixtures/migration/v2-demo.scene.json +244 -0
  102. package/schema/fixtures/migration/v2-demo.v4.json +245 -0
  103. package/schema/fixtures/migration/v2-generated-12.scene.json +473 -0
  104. package/schema/fixtures/migration/v2-generated-12.v4.json +474 -0
  105. package/schema/fixtures/migration/v3-demo.scene.json +244 -0
  106. package/schema/fixtures/migration/v3-demo.v4.json +245 -0
  107. package/schema/fixtures/migration/v3-generated-12.scene.json +473 -0
  108. package/schema/fixtures/migration/v3-generated-12.v4.json +474 -0
  109. package/schema/fixtures/migration/v3-mostly-connected-plant.scene.json +386 -0
  110. package/schema/fixtures/migration/v3-mostly-connected-plant.v4.json +387 -0
  111. package/schema/fixtures/migration/v3-open-joints-plant.scene.json +288 -0
  112. package/schema/fixtures/migration/v3-open-joints-plant.v4.json +289 -0
  113. package/schema/fixtures/migration/v3-unconnected-plant.scene.json +14 -0
  114. package/schema/fixtures/migration/v3-unconnected-plant.v4.json +276 -0
  115. package/schema/fixtures/projection/acquisition.plan.json +50 -0
  116. package/schema/fixtures/projection/control-line.plan.json +86 -0
  117. package/schema/fixtures/valid/acquisition.scene.json +117 -0
  118. package/schema/fixtures/valid/associations.scene.json +79 -0
  119. package/schema/fixtures/valid/commands.scene.json +155 -0
  120. package/schema/fixtures/valid/control-line.scene.json +210 -0
  121. package/schema/fixtures/valid/empty.scene.json +7 -0
  122. package/schema/fixtures/valid/identity-and-extensions.scene.json +96 -0
  123. package/schema/fixtures/valid/tank-valve-line.scene.json +89 -0
  124. package/schema/fixtures/valid/views.scene.json +139 -0
  125. package/schema/fixtures/validator-only/association-id-reuses-connection.scene.json +70 -0
  126. package/schema/fixtures/validator-only/association-unknown-component.scene.json +70 -0
  127. package/schema/fixtures/validator-only/command-max-below-min.scene.json +104 -0
  128. package/schema/fixtures/validator-only/command-out-of-type-range.scene.json +97 -0
  129. package/schema/fixtures/validator-only/connection-domain-mismatch.scene.json +63 -0
  130. package/schema/fixtures/validator-only/credential-in-connection.scene.json +66 -0
  131. package/schema/fixtures/validator-only/credential-in-extension.scene.json +14 -0
  132. package/schema/fixtures/validator-only/credential-label.scene.json +32 -0
  133. package/schema/fixtures/validator-only/duplicate-component-id.scene.json +50 -0
  134. package/schema/fixtures/validator-only/endpoint-with-credentials.scene.json +74 -0
  135. package/schema/fixtures/validator-only/expected.json +66 -0
  136. package/schema/fixtures/validator-only/modbus-coil-float.scene.json +100 -0
  137. package/schema/fixtures/validator-only/non-unit-rotation.scene.json +29 -0
  138. package/schema/fixtures/validator-only/unknown-data-source.scene.json +100 -0
  139. package/schema/fixtures/validator-only/unknown-port.scene.json +62 -0
  140. package/schema/fixtures/validator-only/unregistered-host-type.scene.json +29 -0
  141. package/schema/fixtures/validator-only/view-unknown-component.scene.json +143 -0
  142. package/schema/industrial-scene.v4.schema.json +365 -0
@@ -0,0 +1,86 @@
1
+ {
2
+ "sourceRevision": "3",
3
+ "dataSources": [
4
+ {
5
+ "id": "ds-drive",
6
+ "name": "Drive bus",
7
+ "protocol": "modbus-rtu",
8
+ "endpointRef": "host:serial/com3"
9
+ },
10
+ {
11
+ "id": "ds-plc",
12
+ "protocol": "modbus-tcp",
13
+ "endpointRef": "host:gateway-1/plc-02"
14
+ },
15
+ {
16
+ "id": "ds-host",
17
+ "protocol": "host"
18
+ }
19
+ ],
20
+ "variables": [
21
+ {
22
+ "tagId": "LT-201.PV",
23
+ "dataSourceId": "ds-plc",
24
+ "dataType": "int16",
25
+ "unit": "%",
26
+ "address": {
27
+ "address": 10,
28
+ "area": "input",
29
+ "unitId": 1
30
+ },
31
+ "scaling": {
32
+ "kind": "linear",
33
+ "rawMin": 0,
34
+ "rawMax": 27648,
35
+ "min": 0,
36
+ "max": 100
37
+ },
38
+ "access": "read"
39
+ },
40
+ {
41
+ "tagId": "P-201.RUNNING",
42
+ "dataSourceId": "ds-plc",
43
+ "dataType": "bool",
44
+ "address": {
45
+ "address": 3,
46
+ "area": "coil",
47
+ "unitId": 1
48
+ },
49
+ "access": "read"
50
+ },
51
+ {
52
+ "tagId": "P-201.SPEED",
53
+ "dataSourceId": "ds-drive",
54
+ "dataType": "float32",
55
+ "unit": "rpm",
56
+ "variable": "ActualSpeed",
57
+ "address": {
58
+ "address": 100,
59
+ "area": "holding",
60
+ "byteOrder": "big",
61
+ "unitId": 7,
62
+ "wordOrder": "low-first"
63
+ },
64
+ "access": "read"
65
+ },
66
+ {
67
+ "tagId": "XV-201.OPEN",
68
+ "dataSourceId": "ds-plc",
69
+ "dataType": "bool",
70
+ "address": {
71
+ "address": 20,
72
+ "area": "holding",
73
+ "bit": 4,
74
+ "unitId": 1
75
+ },
76
+ "access": "read"
77
+ },
78
+ {
79
+ "tagId": "TK-201.BATCH",
80
+ "dataSourceId": "ds-host",
81
+ "dataType": "string",
82
+ "variable": "mes/batch/current",
83
+ "access": "read"
84
+ }
85
+ ]
86
+ }
@@ -0,0 +1,117 @@
1
+ {
2
+ "schemaVersion": 4,
3
+ "documentType": "industrial.scene",
4
+ "units": "m",
5
+ "components": [
6
+ {
7
+ "id": "T1",
8
+ "type": "tank",
9
+ "position": {
10
+ "x": 0,
11
+ "y": 0.5,
12
+ "z": 0
13
+ },
14
+ "rotation": {
15
+ "x": 0,
16
+ "y": 0,
17
+ "z": 0,
18
+ "w": 1
19
+ },
20
+ "scale": {
21
+ "x": 1,
22
+ "y": 1,
23
+ "z": 1
24
+ },
25
+ "properties": {}
26
+ },
27
+ {
28
+ "id": "V1",
29
+ "type": "valve",
30
+ "position": {
31
+ "x": 2,
32
+ "y": 0.5,
33
+ "z": 0
34
+ },
35
+ "rotation": {
36
+ "x": 0,
37
+ "y": 0,
38
+ "z": 0,
39
+ "w": 1
40
+ },
41
+ "scale": {
42
+ "x": 1,
43
+ "y": 1,
44
+ "z": 1
45
+ },
46
+ "properties": {}
47
+ }
48
+ ],
49
+ "connections": [
50
+ {
51
+ "id": "c",
52
+ "from": {
53
+ "instanceId": "T1",
54
+ "portId": "outlet"
55
+ },
56
+ "to": {
57
+ "instanceId": "V1",
58
+ "portId": "in"
59
+ }
60
+ }
61
+ ],
62
+ "dataSources": [
63
+ {
64
+ "id": "ds-plc",
65
+ "name": "Line PLC",
66
+ "protocol": "modbus-tcp",
67
+ "endpointRef": "host:gateway-3/plc-01",
68
+ "properties": {
69
+ "pollMs": 500
70
+ }
71
+ },
72
+ {
73
+ "id": "ds-ua",
74
+ "protocol": "opcua",
75
+ "endpointRef": "host:opc/line-2"
76
+ }
77
+ ],
78
+ "runtimeVariables": [
79
+ {
80
+ "id": "LT-101",
81
+ "name": "Tank level",
82
+ "componentId": "T1",
83
+ "dataType": "float32",
84
+ "unit": "%",
85
+ "access": "read",
86
+ "source": {
87
+ "dataSourceId": "ds-plc",
88
+ "address": {
89
+ "address": 40,
90
+ "area": "holding",
91
+ "byteOrder": "big",
92
+ "unitId": 1,
93
+ "wordOrder": "high-first"
94
+ }
95
+ },
96
+ "scaling": {
97
+ "kind": "linear",
98
+ "rawMin": 0,
99
+ "rawMax": 27648,
100
+ "min": 0,
101
+ "max": 100
102
+ }
103
+ },
104
+ {
105
+ "id": "XV-101.OPEN",
106
+ "componentId": "V1",
107
+ "dataType": "bool",
108
+ "access": "read",
109
+ "source": {
110
+ "dataSourceId": "ds-ua",
111
+ "address": {
112
+ "nodeId": "ns=2;s=Line2.XV101.Open"
113
+ }
114
+ }
115
+ }
116
+ ]
117
+ }
@@ -0,0 +1,79 @@
1
+ {
2
+ "schemaVersion": 4,
3
+ "documentType": "industrial.scene",
4
+ "units": "m",
5
+ "components": [
6
+ {
7
+ "id": "T1",
8
+ "type": "tank",
9
+ "position": {
10
+ "x": 0,
11
+ "y": 0.5,
12
+ "z": 0
13
+ },
14
+ "rotation": {
15
+ "x": 0,
16
+ "y": 0,
17
+ "z": 0,
18
+ "w": 1
19
+ },
20
+ "scale": {
21
+ "x": 1,
22
+ "y": 1,
23
+ "z": 1
24
+ },
25
+ "properties": {}
26
+ },
27
+ {
28
+ "id": "V1",
29
+ "type": "valve",
30
+ "position": {
31
+ "x": 2,
32
+ "y": 0.5,
33
+ "z": 0
34
+ },
35
+ "rotation": {
36
+ "x": 0,
37
+ "y": 0,
38
+ "z": 0,
39
+ "w": 1
40
+ },
41
+ "scale": {
42
+ "x": 1,
43
+ "y": 1,
44
+ "z": 1
45
+ },
46
+ "properties": {}
47
+ }
48
+ ],
49
+ "connections": [
50
+ {
51
+ "id": "c",
52
+ "from": {
53
+ "instanceId": "T1",
54
+ "portId": "outlet"
55
+ },
56
+ "to": {
57
+ "instanceId": "V1",
58
+ "portId": "in"
59
+ }
60
+ }
61
+ ],
62
+ "associations": [
63
+ {
64
+ "id": "a1",
65
+ "relationship": "feeds",
66
+ "from": "T1",
67
+ "to": "V1",
68
+ "properties": {
69
+ "note": "gravity feed"
70
+ }
71
+ },
72
+ {
73
+ "id": "a2",
74
+ "relationship": "com.example.supervises",
75
+ "from": "V1",
76
+ "to": "T1"
77
+ }
78
+ ]
79
+ }
@@ -0,0 +1,155 @@
1
+ {
2
+ "schemaVersion": 4,
3
+ "documentType": "industrial.scene",
4
+ "units": "m",
5
+ "components": [
6
+ {
7
+ "id": "T1",
8
+ "type": "tank",
9
+ "position": {
10
+ "x": 0,
11
+ "y": 0.5,
12
+ "z": 0
13
+ },
14
+ "rotation": {
15
+ "x": 0,
16
+ "y": 0,
17
+ "z": 0,
18
+ "w": 1
19
+ },
20
+ "scale": {
21
+ "x": 1,
22
+ "y": 1,
23
+ "z": 1
24
+ },
25
+ "properties": {}
26
+ },
27
+ {
28
+ "id": "V1",
29
+ "type": "valve",
30
+ "position": {
31
+ "x": 2,
32
+ "y": 0.5,
33
+ "z": 0
34
+ },
35
+ "rotation": {
36
+ "x": 0,
37
+ "y": 0,
38
+ "z": 0,
39
+ "w": 1
40
+ },
41
+ "scale": {
42
+ "x": 1,
43
+ "y": 1,
44
+ "z": 1
45
+ },
46
+ "properties": {}
47
+ }
48
+ ],
49
+ "connections": [
50
+ {
51
+ "id": "c",
52
+ "from": {
53
+ "instanceId": "T1",
54
+ "portId": "outlet"
55
+ },
56
+ "to": {
57
+ "instanceId": "V1",
58
+ "portId": "in"
59
+ }
60
+ }
61
+ ],
62
+ "dataSources": [
63
+ {
64
+ "id": "ds-plc",
65
+ "name": "Line PLC",
66
+ "protocol": "modbus-tcp",
67
+ "endpointRef": "host:gateway-3/plc-01",
68
+ "properties": {
69
+ "pollMs": 500
70
+ }
71
+ },
72
+ {
73
+ "id": "ds-ua",
74
+ "protocol": "opcua",
75
+ "endpointRef": "host:opc/line-2"
76
+ }
77
+ ],
78
+ "runtimeVariables": [
79
+ {
80
+ "id": "LT-101",
81
+ "name": "Tank level",
82
+ "componentId": "T1",
83
+ "dataType": "float32",
84
+ "unit": "%",
85
+ "access": "read",
86
+ "source": {
87
+ "dataSourceId": "ds-plc",
88
+ "address": {
89
+ "address": 40,
90
+ "area": "holding",
91
+ "byteOrder": "big",
92
+ "unitId": 1,
93
+ "wordOrder": "high-first"
94
+ }
95
+ },
96
+ "scaling": {
97
+ "kind": "linear",
98
+ "rawMin": 0,
99
+ "rawMax": 27648,
100
+ "min": 0,
101
+ "max": 100
102
+ }
103
+ },
104
+ {
105
+ "id": "XV-101.OPEN",
106
+ "componentId": "V1",
107
+ "dataType": "bool",
108
+ "access": "read",
109
+ "source": {
110
+ "dataSourceId": "ds-ua",
111
+ "address": {
112
+ "nodeId": "ns=2;s=Line2.XV101.Open"
113
+ }
114
+ }
115
+ },
116
+ {
117
+ "id": "LIC-101.SP",
118
+ "name": "Level setpoint",
119
+ "componentId": "T1",
120
+ "dataType": "float32",
121
+ "unit": "%",
122
+ "access": "readWrite",
123
+ "source": {
124
+ "dataSourceId": "ds-plc",
125
+ "address": {
126
+ "address": 60,
127
+ "area": "holding",
128
+ "byteOrder": "big",
129
+ "unitId": 1,
130
+ "wordOrder": "high-first"
131
+ }
132
+ },
133
+ "command": {
134
+ "min": 10,
135
+ "max": 90,
136
+ "step": 0.5
137
+ }
138
+ },
139
+ {
140
+ "id": "XV-101.CMD",
141
+ "componentId": "V1",
142
+ "dataType": "bool",
143
+ "access": "readWrite",
144
+ "source": {
145
+ "dataSourceId": "ds-ua",
146
+ "address": {
147
+ "nodeId": "ns=2;s=Line2.XV101.Cmd"
148
+ }
149
+ },
150
+ "command": {
151
+ "confirm": "Closing the outlet stops flow to the line."
152
+ }
153
+ }
154
+ ]
155
+ }
@@ -0,0 +1,210 @@
1
+ {
2
+ "schemaVersion": 4,
3
+ "documentType": "industrial.scene",
4
+ "units": "m",
5
+ "project": {
6
+ "name": "Control line",
7
+ "revision": "3"
8
+ },
9
+ "components": [
10
+ {
11
+ "id": "TK-201",
12
+ "type": "tank",
13
+ "position": {
14
+ "x": 0,
15
+ "y": 0.5,
16
+ "z": 0
17
+ },
18
+ "rotation": {
19
+ "x": 0,
20
+ "y": 0,
21
+ "z": 0,
22
+ "w": 1
23
+ },
24
+ "scale": {
25
+ "x": 1,
26
+ "y": 1,
27
+ "z": 1
28
+ },
29
+ "properties": {}
30
+ },
31
+ {
32
+ "id": "P-201",
33
+ "type": "pump",
34
+ "position": {
35
+ "x": 2,
36
+ "y": 0.5,
37
+ "z": 0
38
+ },
39
+ "rotation": {
40
+ "x": 0,
41
+ "y": 0,
42
+ "z": 0,
43
+ "w": 1
44
+ },
45
+ "scale": {
46
+ "x": 1,
47
+ "y": 1,
48
+ "z": 1
49
+ },
50
+ "properties": {}
51
+ },
52
+ {
53
+ "id": "LT-201",
54
+ "type": "sensor",
55
+ "position": {
56
+ "x": -1,
57
+ "y": 0.5,
58
+ "z": 0
59
+ },
60
+ "rotation": {
61
+ "x": 0,
62
+ "y": 0,
63
+ "z": 0,
64
+ "w": 1
65
+ },
66
+ "scale": {
67
+ "x": 1,
68
+ "y": 1,
69
+ "z": 1
70
+ },
71
+ "properties": {}
72
+ },
73
+ {
74
+ "id": "XV-201",
75
+ "type": "valve",
76
+ "position": {
77
+ "x": 4,
78
+ "y": 0.5,
79
+ "z": 0
80
+ },
81
+ "rotation": {
82
+ "x": 0,
83
+ "y": 0,
84
+ "z": 0,
85
+ "w": 1
86
+ },
87
+ "scale": {
88
+ "x": 1,
89
+ "y": 1,
90
+ "z": 1
91
+ },
92
+ "properties": {}
93
+ }
94
+ ],
95
+ "connections": [],
96
+ "dataSources": [
97
+ {
98
+ "id": "ds-drive",
99
+ "name": "Drive bus",
100
+ "protocol": "modbus-rtu",
101
+ "endpointRef": "host:serial/com3"
102
+ },
103
+ {
104
+ "id": "ds-plc",
105
+ "protocol": "modbus-tcp",
106
+ "endpointRef": "host:gateway-1/plc-02"
107
+ },
108
+ {
109
+ "id": "ds-host",
110
+ "protocol": "host"
111
+ }
112
+ ],
113
+ "runtimeVariables": [
114
+ {
115
+ "id": "LT-201.PV",
116
+ "name": "Tank level",
117
+ "componentId": "LT-201",
118
+ "dataType": "int16",
119
+ "unit": "%",
120
+ "access": "read",
121
+ "source": {
122
+ "dataSourceId": "ds-plc",
123
+ "address": {
124
+ "address": 10,
125
+ "area": "input",
126
+ "unitId": 1
127
+ }
128
+ },
129
+ "scaling": {
130
+ "kind": "linear",
131
+ "rawMin": 0,
132
+ "rawMax": 27648,
133
+ "min": 0,
134
+ "max": 100
135
+ }
136
+ },
137
+ {
138
+ "id": "P-201.RUNNING",
139
+ "componentId": "P-201",
140
+ "dataType": "bool",
141
+ "access": "read",
142
+ "source": {
143
+ "dataSourceId": "ds-plc",
144
+ "address": {
145
+ "address": 3,
146
+ "area": "coil",
147
+ "unitId": 1
148
+ }
149
+ }
150
+ },
151
+ {
152
+ "id": "P-201.SPEED",
153
+ "componentId": "P-201",
154
+ "dataType": "float32",
155
+ "unit": "rpm",
156
+ "access": "read",
157
+ "source": {
158
+ "dataSourceId": "ds-drive",
159
+ "variable": "ActualSpeed",
160
+ "address": {
161
+ "address": 100,
162
+ "area": "holding",
163
+ "byteOrder": "big",
164
+ "unitId": 7,
165
+ "wordOrder": "low-first"
166
+ }
167
+ }
168
+ },
169
+ {
170
+ "id": "XV-201.OPEN",
171
+ "componentId": "XV-201",
172
+ "dataType": "bool",
173
+ "access": "read",
174
+ "source": {
175
+ "dataSourceId": "ds-plc",
176
+ "address": {
177
+ "address": 20,
178
+ "area": "holding",
179
+ "bit": 4,
180
+ "unitId": 1
181
+ }
182
+ }
183
+ },
184
+ {
185
+ "id": "TK-201.BATCH",
186
+ "componentId": "TK-201",
187
+ "dataType": "string",
188
+ "access": "read",
189
+ "source": {
190
+ "dataSourceId": "ds-host",
191
+ "variable": "mes/batch/current"
192
+ }
193
+ },
194
+ {
195
+ "id": "TK-201.NOTE",
196
+ "componentId": "TK-201",
197
+ "dataType": "string",
198
+ "access": "read"
199
+ }
200
+ ],
201
+ "tagBindings": [
202
+ {
203
+ "id": "b-level",
204
+ "tagId": "LT-201.PV",
205
+ "kind": "property",
206
+ "instanceId": "TK-201",
207
+ "property": "level"
208
+ }
209
+ ]
210
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "schemaVersion": 4,
3
+ "documentType": "industrial.scene",
4
+ "units": "m",
5
+ "components": [],
6
+ "connections": []
7
+ }