FB_sACN
This function block enables sending and receiving of sACN data frame. With the help of the function block FB_UDP_Communication
, frames can be sent and received via UDP.
Because |
Syntax
FUNCTION_BLOCK FB_sACN IMPLEMENTS I_sACN
VAR_OUTPUT
bBusy : BOOL;
bError : BOOL;
bCommunicated : BOOL;
ipResultMessage : I_TcMessage;
END_VAR
VAR_OUTPUT
bBusy: Is set if an sACN frame is being sent/received.
bError: Is set if an error occurs. You can find error details included Error ID in the “Error List” window.
bCommunicated: Is set after the first sACN frame is successfully sent or received. More information can be found at section Status indicator.
ipResultMessage: Enables error handling with the Tc3_EventLogger.
METHODS
FB_init: Initialization method.
Send: Sending sACN frames (sACN-2009).
Receive: Receiving sACN frames.
INTERFACE
I_sACN: Defines the interface of send and receive methods.