UDP_Close block

Short summary

Name

UDP_Close

→POU type

→function

Category

more system blocks, network blocks, block with internal error diagnostic

Graphical interface

Available since

  • version 1.105.0 (for Neuron Power Engineer) and version 3.15.0 of Neuron RTS max
    (warning) This block is supported for these →target systems or platforms:

  • version 1.109.0 (for Neuron Power Engineer) and version 3.19.0 of Neuron RTS max
    (warning) This block is supported for these target systems or platforms:

    • Raspberry Pi,  Revolution Pi

    • platform WindowsX86 (incl. the built-in PLC under Windows)

    • platform LinuxX86 

Functionality

The block releases the reserved address and port previously reserved by the block UDP_Open.

Inputs, outputs

 

Identifier

→Data type

Description

Inputs:

handle

DINT

→UDP handle 

Outputs:

rc

UDINT

status of the UDP operation:

16#00000000: The operation is successful.

16#81000002: The handle is invalid.

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:

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 output rc returns the appropriate code (see the above table).

Example for usage within ST-editor

See "UDP_Open block".