INET_NTOA block
Short summary
Name |
|
→POU type |
|
Category |
more system blocks, network blocks, block with internal error diagnostic |
Graphical interface |
|
Available since |
|
Functionality
The block converts the Internet host address, given in a network byte order, into an IPv4 dotted-decimal notation.
Inputs, outputs, return value
|
Identifier |
Description |
|
---|---|---|---|
Inputs: |
|
|
IPv4 address in network byte order |
Outputs: |
|
|
return code of the function call:
|
Return value: |
|
|
returns IPv4 address in dotted format ( |
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 IPv4 address is invalid.
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
The example under "UDP_Open block" does not contain a usage of this block but of other blocks. Please study those in order to get to know how to use this block.