Beckhoff Knowledge Base: sACN

FB_sACNMaster

FB_sACNMaster 1:

This function block sends sACN telegrams via UDP.

VAR_INPUT

bEnable           : BOOL;
sSrvNetId         : T_AmsNetId;
sLocalHost        : STRING(15);
udiLocalPort      : UDINT;
sRemoteHost       : STRING(15);
udiRemotePort     : UDINT;
sSourceName       : STRING(64);
byPriority        : BYTE;
uiUniverse        : UINT;
pData             : POINTER TO ARRAY [1..512] OF BYTE;

bEnable: The block starts processing if a positive edge is encountered at this input. A negative edge terminates processing.

sSrvNetId: String containing the network address of the TwinCAT TCP/IP Connection Server. For the local computer (default) an empty string may be specified.

sLocalHost: The local IP address (IPv4) of the UDP client/server socket as a string (e.g. '192.168.0.5'). An empty string may be specified for the default network adapter.

udiLocalPort: The local IP port number of the UDP client/server socket (e.g. 200).

sRemoteHost: The remote IP address (IPv4) of the UDP client/server socket as a string (e.g. '192.168.0.6').

udiRemotePort: The remote IP port number of the UDP client/server socket (e.g. 5586).

sSourceName: Sender of sACN telegram.

byPriority: Priority of the sACN telegram (0 to 200).

uiUniverse: DMX universe for which the data are intended (1 to 63999).

pData: Pointer to a structure with the data to be sent.

VAR_OUTPUT

bBusy              : BOOL;
bError             : BOOL;
udiErrorId         : UDINT;

bBusy: Is set, if a valid sACN telegram is sent.

bError: Is set, if an error occurs during execution of the function block. The error code is contained in udiErrorId.

udiErrorId: Contains the error code of the last executed step. See Error codes.