<< Click to Display Table of Contents >> Server library |
![]() ![]() ![]() |
reconnect(Input1,Input2) - used to reconnect to server with name from Input1 to IP address from Input2.
Example:
reconnect("ModbusServer1", "192.168.0.1");
Response:
Reconnect server with name ModbusServer1 to IP address 192.168.0.1.
opcuareadattribute(Input1, Input2, Input3) - used to read attribute of the OPC UA server node. Input1 contains name of the server; Input2 contains name of the tag with defined NodeId; Input3 contains number of the attribute. List of the attributes:
№ |
Attribute |
---|---|
1 |
NodeId |
2 |
NodeClass |
3 |
BrowseName |
4 |
DisplayName |
5 |
Description |
6 |
WriteMask |
7 |
UserWriteMask |
8 |
IsAbstract |
9 |
Symmetric |
10 |
InverseName |
11 |
ContainsNoLoops |
12 |
EventNotifier |
13 |
Value |
14 |
DataType |
15 |
ValueRank |
16 |
ArrayDimensions |
17 |
AccessLevel |
18 |
UserAccessLevel |
19 |
MinimumSamplingInterval |
20 |
Historizing |
21 |
Executable |
22 |
UserExcecutable |
Example:
string description = opcuareadattribute(“OPCUAServer”, “tagname”, 5);
connect(Input1) - used to connect to server with name from Input1.
Example:
connect("ModbusServer1");
disconnect(Input1) - used to disconnect to server with name from Input1.
Example:
disconnect("ModbusServer1");