TCP_Close block
Short summary
Name |
|
→POU type |
|
Category |
more system blocks, network blocks, block with internal error diagnostic |
|
|
Graphical interface |
|
Available since |
version 3.2.2 (for library |
Functionality
The block releases the reserved address and port previously, e.g. reserved by the block TCP_Connect
.
Inputs, return value
|
Identifier |
Description |
|
---|---|---|---|
Inputs: |
|
|
→TCP handle |
Return value: |
|
|
returns the status of the TCP operation:
|
Input EN
and output ENO
are available when →calling the block. See "Execution control: EN, ENO" for information on input EN
and output ENO
.
See:
-
"Blocks for safe logic" whether this block is supported for developing safety-relevant applications.
-
"Highlighting safe logic in the FBD-editor" for the effects when using the block as a block for safe logic.
Internal error diagnostic for block
The block checks the following error cases:
-
The handle is invalid.
In such an error case, the output ENO
of the block is set to value FALSE
(or an equivalent). Moreover, the block returns the appropriate code (see the above table).
Example for usage within ST-editor
At present, there is no example for this TCP block. An example with calls of other TCP blocks is provided under "TCP_Connect block" und "TCP_ServerOpen block".