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
xEnableBOOLTRUE: Action startsFALSE: Action stops, outputsxDone,xBusy,xErrorare resettedLTrig
Output
xDoneBOOLTRUE: Action successfully completedLTrig
xBusyBOOLTRUE: Function block activeLTrig
xErrorBOOLTRUE: Error occurred, function block aborts actionFALSE: No errorLTrig
Input
hServerCAA.HANDLEOutput
eErrorxActiveBOOLhConnectionCAA.HANDLE
Properties:
Structure: