ST_UASessionConnectInfo

Syntax

TYPE ST_UASessionConnectInfo:
STRUCT
    sApplicationName     : STRING(MAX_STRING_LENGTH);

    eSecurityMode        : E_UASecurityMsgMode;
    eSecurityPolicyUri   : E_UASecurityPolicy;
    eTransportProfileUri : E_UATransportProfile;

    tSessionTimeout      : TIME;
    tConnectTimeout      : TIME;
END_STRUCT
END_TYPE

Values

Name

Description

sApplicationUri (obsolete)

Application Uri maximum string length 255.
From TcUAClient 2.0.0.14 or higher this is automatically specified by the certificate, as defined in the PLCOpen specification. Therefore no longer used in current library versions.

sApplicationName

Application name with a maximum string length of 255.

eSecurityMode

Security message mode. For available modes see E_UASecurityMsgMode.

eSecurityPolicyUri

Security policy Uri. For available security policy Uri see E_UASecurityPolicy.

eTransportProfileUri

Transport profile Uri. For available transport profile Uri see E_UATransportProfile;

stUserIdentTokenType

Structure with authentication data for logging on to the OPC UA Server. Full description under ST_UAUserIdentityTokenType.

tSessionTimeout

Session timeout value.

tConnectTimeout

Value for the connection timeout. This must be set at the UA_Connect function block to match the ADS timeout. The rule of thumb is: ADS Timeout > 2 * ConnectionTimeout.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT 3.1

Win32, Win64, CE-X86, CE-Arm®

Tc3_PLCopen_OpcUa