FC_OpcUaSetAccessType - General Information
Type: |
Function |
Available as of: |
V1.56.15.12 |
Inherits from: |
- |
Implements: |
- |
Configure the access type of the OPC UA server.
The access type of the OPC UA server is configured.
The OPC UA server can access variables via different methods. The default access method is IecVarAcc (ET_OpcUaAccessType.IECVARACC). Some variables can be accessed faster via direct memory access (ET_OpcUaAccessType.MEMORYACC). If the access type is set to memory access, the OPC UA server uses memory access where possible.
Input |
Data type |
Description |
---|---|---|
i_etOpcUaAccessType |
OPC UA server configuration |
Data type |
Description |
---|---|
DINT |
0: New access type is set. -1: Invalid access type specified, access type was not changed. |
etNewAccessType : ET_OpcUaAccessType;
diResult : DINT;
etNewAccessType := ET_OpcUaAccessType.MEMORYACC
diResult := Systeminterface.FC_OpcUaSetAccessType(i_etOpcUaAccessType := etNewAccessType);