FB_UDP_Connection
This function block enables to create or terminate a UDP connection.
This function block can only be used as the initial variable of function block |
Syntax
FUNCTION_BLOCK FB_UDP_Connection IMPLEMENTS ICommunication
VAR_OUTPUT
bBusy : BOOL;
bError : BOOL;
bConnected : BOOL;
ipResultMessage : I_TcMessage;
END_VAR
VAR_OUTPUT
bBusy: Is TRUE as long as the asynchronous request is still active. Is FALSE if the request is completed. (More information can be found at section Status indicator)
bError: Is set if an error occurs during execution of the function block. Error details can be found at “Error List” window.
bConnected: Is TRUE as long as a socket is opened without error; is FALSE if socket is closed.
ipResultMessage: Enables error handling with the Tc3_EventLogger
.
METHODS
FB_init: Initialization method
INTERFACE
ICommunication: Defines the interface of communication methods.