E_SocketConnectionState

TCP/IP Socket Connection Status (eSOCKET_SUSPENDED == the status changes e.g. from eSOCKET_CONNECTED => eSOCKET_DISCONNECTED).

Syntax

TYPE E_SocketConnectionState:
(
    eSOCKET_DISCONNECTED,
    eSOCKET_CONNECTED,
    eSOCKET_SUSPENDED
);
END_TYPE

Values

Name

Description

eSOCKET_DISCONNECTED

The connection is interrupted.

eSOCKET_CONNECTED

The connection exists.

eSOCKET_SUSPENDED

The status of the connection changes from disconnected to connected or from connected to disconnected.

Requirements

Development environment

Target system type

PLC libraries to include (category group)

TwinCAT v3.1.0

PC, or CX (x86, X64, ARM)

Tc2_TcpIp (communication)