TCP_Connection (FB)ΒΆ
FUNCTION_BLOCK TCP_Connection EXTENDS CBM.LTrig
The next free connection is determined by handle exchange and set to active. As long as xActive
is
TRUE
the handle of the connection is valid. If xActiveis
FALSE
the handle of the connection is
invalid. hConnection
can be used as input hConnection
for function blocks TCP_Write,
TCP_WriteBuffer, TCP_Read and TCP_ReadBuffer.
- InOut:
Scope
Name
Type
Comment
Inherited from
Input
xEnable
BOOL
TRUE
: Action startsFALSE
: Action stops, outputsxDone
,xBusy
,xError
are resettedLTrig
Output
xDone
BOOL
TRUE
: Action successfully completedLTrig
xBusy
BOOL
TRUE
: Function block activeLTrig
xError
BOOL
TRUE
: Error occurred, function block aborts actionFALSE
: No errorLTrig
Input
hServer
CAA.HANDLE
Output
eError
xActive
BOOL
hConnection
CAA.HANDLE
Properties:
Structure: