TCP_Server (FB)ΒΆ
FUNCTION_BLOCK PUBLIC FINAL TCP_Server EXTENDS LConC IMPLEMENTS IServer, IServer_Internal, IOptionConsumer
Sets up a server over the ip and port specified in itfIPAddress
and uiPort
. A server can handle several
connections. The output itfServer
of these function block can be used to establish a
connection via TCP_Connection.
- InOut:
Scope
Name
Type
Initial
Comment
Inherited from
Input
xEnable
BOOL
TRUE
: Activates the defined operationFALSE
: Aborts/resets the defined operationLConC
Output
xBusy
BOOL
TRUE
: Operation is runningLConC
xError
BOOL
TRUE
: Error condition reachedLConC
eErrorID
LConC
Input
udiMaxConnections
UDINT
5
Maximum number of connections queued in TCP Stack
itfAsyncProperty
itfTLSContext
itfTSNContext
itfIPAddress
uiPort
UINT
Output
xActive
BOOL
itfServer
Methods:
Structure: