UDP_Open block
Short summary
Name |
|
→POU type |
|
Category |
more system blocks, network blocks, block with internal error diagnostic |
Graphical interface |
|
Available since |
|
Functionality
The block releases the reserved address and port previously reserved by the block UDP_Open
.
Inputs, outputs, return value
|
Identifier |
Description |
|
---|---|---|---|
Inputs: |
|
|
IP address to reserve (in network byte order) Example: The IP address
Use the |
|
|
IP port to reserve (in host byte order) |
|
Outputs: |
|
|
status of the UDP operation:
|
Return value: |
|
|
returns the handle of the reserved address and port |
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:
-
Too many system resources are reserved.
-
The system resources could not be reserved.
-
The address and port could not be reserved.
In such an error case, the output ENO
of the block is set to value FALSE
(or an equivalent). Moreover, the output rc
returns the appropriate code (see the above table).
Example for usage within ST-editor
Program with calls of UDP blocks |
---|
|
When creating your application within the ST-editor, enter a call of a block by typing the text as requested by the syntax or use Content Assist.