forked from fluisgirardi/fpopen62541
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TestOpcUa1.lfm
279 lines (279 loc) · 6.53 KB
/
TestOpcUa1.lfm
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
object TestOpcUaForm: TTestOpcUaForm
Left = 384
Height = 525
Top = 223
Width = 541
Caption = 'Test OPC UA'
ClientHeight = 525
ClientWidth = 541
OnClose = FormClose
OnCreate = FormCreate
OnDestroy = FormDestroy
LCLVersion = '2.0.10.0'
object Memo1: TMemo
Left = 8
Height = 170
Top = 272
Width = 521
Anchors = [akTop, akLeft, akRight, akBottom]
ScrollBars = ssAutoVertical
TabOrder = 0
end
object Memo2: TMemo
Left = 8
Height = 66
Top = 448
Width = 521
Anchors = [akLeft, akRight, akBottom]
ScrollBars = ssVertical
TabOrder = 1
end
object PageControl1: TPageControl
Left = 8
Height = 256
Top = 8
Width = 525
ActivePage = tabClient
Anchors = [akTop, akLeft, akRight]
TabIndex = 0
TabOrder = 2
object tabClient: TTabSheet
Caption = 'OPC UA Client'
ClientHeight = 230
ClientWidth = 517
object Label1: TLabel
Left = 8
Height = 13
Top = 16
Width = 73
Caption = 'OPC UA Server'
ParentColor = False
end
object cbServer: TComboBox
Left = 96
Height = 21
Top = 12
Width = 324
ItemHeight = 13
Items.Strings = (
'opc.tcp://localhost:53530/OPCUA/SimulationServer'
'opc.tcp://localhost:4840/'
'opc.tcp://192.168.10.10:4840/'
'opc.tcp://opcua.rocks:4840/'
)
TabOrder = 0
end
object btnConnect: TButton
Left = 434
Height = 25
Top = 10
Width = 75
Caption = 'Connect'
OnClick = btnConnectClick
TabOrder = 1
end
object gbVariables: TGroupBox
Left = 4
Height = 176
Top = 48
Width = 513
Caption = 'Variables'
ClientHeight = 158
ClientWidth = 509
TabOrder = 2
object lNamespace: TLabel
Left = 11
Height = 13
Top = 16
Width = 55
Caption = 'Namespace'
ParentColor = False
end
object cbNS: TComboBox
Left = 96
Height = 21
Top = 8
Width = 48
ItemHeight = 13
ItemIndex = 1
Items.Strings = (
'1'
'3'
'4'
'5'
''
)
TabOrder = 0
Text = '3'
end
object lNodeType: TLabel
Left = 11
Height = 13
Top = 40
Width = 65
Caption = 'Node Id Type'
ParentColor = False
end
object cbNodeType: TComboBox
Left = 96
Height = 21
Top = 32
Width = 72
ItemHeight = 13
ItemIndex = 1
Items.Strings = (
'numeric'
'string'
)
Style = csDropDownList
TabOrder = 1
Text = 'string'
end
object lNodeId: TLabel
Left = 11
Height = 13
Top = 68
Width = 38
Caption = 'Node Id'
ParentColor = False
end
object eNodeId: TEdit
Left = 96
Height = 21
Top = 60
Width = 312
TabOrder = 2
end
object btnReadVariable: TButton
Left = 96
Height = 25
Top = 120
Width = 75
Caption = 'Read'
OnClick = btnReadVariableClick
TabOrder = 4
end
object btnWriteVariable: TButton
Left = 208
Height = 25
Top = 120
Width = 75
Caption = 'Write'
OnClick = btnWriteVariableClick
TabOrder = 5
end
object lNodeValue: TLabel
Left = 11
Height = 13
Top = 96
Width = 26
Caption = 'Value'
ParentColor = False
end
object eNodeValue: TEdit
Left = 96
Height = 21
Top = 88
Width = 312
TabOrder = 3
end
end
end
object tabServer: TTabSheet
Caption = 'OPC UA Server'
ClientHeight = 230
ClientWidth = 517
object btnServerStart: TToggleBox
Left = 434
Height = 25
Top = 10
Width = 75
Caption = 'Start'
OnClick = btnServerStartClick
TabOrder = 0
end
object gbServerVariable: TGroupBox
Left = 4
Height = 176
Top = 48
Width = 513
Caption = 'Variable'
ClientHeight = 158
ClientWidth = 509
TabOrder = 1
object lNamespace1: TLabel
Left = 11
Height = 13
Top = 16
Width = 55
Caption = 'Namespace'
ParentColor = False
end
object cbServerNS: TComboBox
Left = 96
Height = 21
Top = 8
Width = 48
ItemHeight = 13
ItemIndex = 0
Items.Strings = (
'1'
'3'
)
TabOrder = 0
Text = '1'
end
object lVariableName: TLabel
Left = 11
Height = 13
Top = 40
Width = 67
Caption = 'Variable name'
ParentColor = False
end
object eServerVariableName: TEdit
Left = 96
Height = 21
Top = 32
Width = 312
TabOrder = 1
Text = 'Variable1'
end
object lNodeValue1: TLabel
Left = 11
Height = 13
Top = 96
Width = 26
Caption = 'Value'
ParentColor = False
end
object eServerVariableValue: TEdit
Left = 96
Height = 21
Top = 88
Width = 312
TabOrder = 3
Text = '123'
end
object btnServerAddVariable: TButton
Left = 96
Height = 25
Top = 56
Width = 75
Caption = 'Add Variable'
OnClick = btnServerAddVariableClick
TabOrder = 2
end
object btnServerWriteVariable: TButton
Left = 95
Height = 25
Top = 112
Width = 75
Caption = 'Write Value'
OnClick = btnServerWriteVariableClick
TabOrder = 4
end
end
end
end
end