FB_SocketServerSettingsClass

FB_SocketServerSettingsClass 1:

The function block FB_SocketServerSettingsClass is used to configure the TCP/IP communication layer.

Namespace: Tc3_Sockets
Library: Tc3_Sockets (Tc3_Sockets.compiled-library)

Inheritance hierarchy

FB_SocketServerSettingsClass

FUNCTION_BLOCK FB_SocketServerSettingsClass IMPLEMENTS I_SocketServerSettingsClass

FB_SocketServerSettingsClass 2: Interfaces

Type

Description

I_SocketServerSettingsClass

Interface for configuring the TCP/IP communication layer.

FB_SocketServerSettingsClass 3: Methods

Name

Description

Defaults

Resets the configuration settings to the default values.

FB_SocketServerSettingsClass 4: Properties

Name

Type

Access

Definition location

Initial value

Description

bAutoCleanup

BOOL

Get

I_SocketServerSettingsClass

TRUE

Enables/disables the automatic clean-up/closure of the unused sockets (e.g. after program download or PLC reset).

Set

Local

bEnable

BOOL

Get

I_SocketServerSettingsClass

FALSE

Enables/disables establishing the server connections. "TRUE" enables the Listen command (listening and incoming connections are accepted) and "FALSE" disables it.

Set

Local

sSrvNetID

T_AmsNetID

Get

I_SocketServerSettingsClass

‘‘

TwinCAT network address of the TwinCAT TCP/IP server (TF6310). With the empty string, the network address of the local TwinCAT system is used.

Set

Local

nLocalPort

UDINT

Get

I_SocketServerSettingsClass

102

TCP/IP port number of the server.

Set

Local

sLocalHost

T_Ipv4Addr

Get

I_SocketServerSettingsClass

‘127.0.0.1‘

IPv4 network address of the server.

Set

Local

tAccept

TIME

Get

I_SocketServerSettingsClass

T#1s

Retry cycle time for the internal TCP/IP socket Accept commands.

Set

Local

tListen

TIME

Get

I_SocketServerSettingsClass

T#1s

Retry cycle time for the internal TCP/IP socket Listen command.

Set

Local

tAdsTimeout

TIME

Get

I_SocketServerSettingsClass

DEFAULT_ADS_TIMEOUT

Maximum timeout time for ADS services that may not be exceeded.

Set

Local

tSocketTimeout

TIME

Get

I_SocketServerSettingsClass

T#5s

Maximum timeout time during the execution of the confirmed services that may not be exceeded.

Set

Local

bThrottleMode

BOOL

Get

I_SocketServerSettingsClass

TRUE

Enables/disables the receive data throttle polling mode.

Set

Local

throttleTimes

T_ThrottleTimes

Get

I_SocketServerSettingsClass

Param_Sockets.cDefaultReceiverThrottleTimes

Configuration of the cycle times for the receive data throttle polling mode.

Set

Local

eTraceSocket

E_TraceLevel

Get

I_SocketServerSettingsClass

E_TraceLevel.None

Configures the priority level for the logging of the error messages and log messages.

Set

Local

ipTLS

I_SocketTlsSettingsClass

Get

I_SocketTlsSettingsClass

0

Configuration parameters of the TLS (Transport Layer Security) protocol layer. Value null = not configured.

Set

Local

bEvaLinkStatusErr

BOOL

Get

I_SocketServerSettingsClass

FALSE

Configures the evaluation mode for the link status error of the network adapter. If "FALSE" then disabled, short connection interruptions are bridged. If "TRUE" is enabled, the connection is terminated when a connection error is detected.

Set

Local