FB_TpktServerSettingsClass

FB_TpktServerSettingsClass 1:

The function block FB_TpktServerSettingsClass is used to configure the TPKT communication layer.

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

Inheritance hierarchy

FB_SocketServerSettingsClass -> FB_TpktServerSettingsClass


FUNCTION_BLOCK FB_TpktServerSettingsClass EXTENDS FB_SocketServerSettingsClass IMPLEMENTS I_TpktServerSettingsClass

FB_TpktServerSettingsClass 2: Interfaces

Type

Description

I_TpktServerSettingsClass

Interface for configuring the TPKT communication layer.

FB_TpktServerSettingsClass 3: Methods

Name

Description

Defaults

Resets the configuration settings to the default values.

FB_TpktServerSettingsClass 4: Properties

Name

Type

Access

Definition location

Initial value

Description

bAutoCleanup

BOOL

Get,Set

Inherited from FB_SocketServerSettingsClass

TRUE

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

bEnable

BOOL

Get,Set

-//-

FALSE

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

sSrvNetID

T_AmsNetID

Get,Set

-//-

‘‘

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

nLocalPort

UDINT

Get,Set

-//-

102

TCP/IP port number of the server.

sLocalHost

T_Ipv4Addr

Get,Set

-//-

‘127.0.0.1‘

IPv4 network address of the server.

tAccept

TIME

Get,Set

-//-

T#1s

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

tListen

TIME

Get,Set

-//-

T#1s

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

tAdsTimeout

TIME

Get,Set

-//-

DEFAULT_ADS_TIMEOUT

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

tSocketTimeout

TIME

Get,Set

-//-

T#5s

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

bThrottleMode

BOOL

Get,Set

-//-

TRUE

Enables/disables the receive data throttle polling mode.

throttleTimes

T_ThrottleTimes

Get,Set

-//-

Param_Sockets.cDefaultReceiverThrottleTimes

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

eTraceSocket

E_TraceLevel

Get,Set

-//-

E_TraceLevel.None

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

ipTLS

I_SocketTlsSettingsClass

Get,Set

-//-

0

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

bEvaLinkStatusErr

BOOL

Get,Set

-//-

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.

 

 

 

 

 

 

tTpktTimeout

TIME

Get

I_TpktServerSettingsClass

T#10s

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

Set

Local

eTraceTpkt

E_TraceLevel

Get

I_TpktServerSettingsClass

E_TraceLevel.None

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

Set

Local