udpClosePLCopen motion icon

Description

This function closes a socket.

Arguments

Input

En Description Execute the function
  Data type BOOL
  Range [0,1]
  Unit n/a
  Default
sock Description ID of the socket
  Data type DINT
  Range [0,+65535]
  Unit n/a
  Default

Output

OK Description Returns true when the function successfully executes. See Function - General rules.
  Data type BOOL
  Unit n/a

Examples

Structured Text

      udpClose(Socket_Number); //Close socket

Ladder Diagram

Function Block Diagram