udpCreate
Function - Creates a UDP socket.
Inputs
|
Input |
Data Type See Data Types. |
Range |
Unit |
Default |
Description |
|---|---|---|---|---|---|
|
En |
BOOL |
0 to 1 |
N/A |
No default |
Execute the function. |
|
port |
DINT |
0 to 65535 |
N/A |
No default |
UDP port number attached to the server socket or |
Outputs
|
Output |
Data Type See Data Types. |
Range |
Unit |
Description |
|---|---|---|---|---|
|
OK |
BOOL |
FALSE, TRUE |
N/A |
|
|
sock |
DINT |
0 to 65535 |
N/A |
ID of the socket. |
FBD Language Example
FFLD Language Example
IL Language Example
Not available.
ST Language Example
Socket_Number := udpCreate(Client_Port); //create a socket





