TCP_Server (FB)¶
FUNCTION_BLOCK TCP_Server EXTENDS CBM.LTrig IMPLEMENTS ITCPServer
Sets up a server over the ip and port specified in ipAddr and uiPort. A server can handle several
connections. The output handle hServer of these function block can be used to establish a
connection via TCP_Connection.
The output``xDone`` has no meaning.
- InOut:
Scope
Name
Type
Initial
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
ipAddrSTRUCT(sAddr := ‘0.0.0.0’)
uiPortUINTOutput
eErrorhServerCAA.HANDLE