FB_DMXGetSlotInfo

FB_DMXGetSlotInfo 1:

This function block queries basic information about the functionality of the DMX512 slots from a DMX device.

VAR_INPUT

bStart                      : BOOL;
wDestinationManufacturerId  : WORD;
dwDestinationDeviceId       : DWORD;
byPortId                    : BYTE;
dwOptions                   : DWORD := 0;

bStart: The command is started by a positive edge at this input.

wDestinationManufacturerId: Unique manufacturer Id of the DMX device.

dwDestinationDeviceId: Unique device Id of the DMX device.

byPortId: Channel within the addressed DMX device. Sub-devices are addressed through the port Id. The root device always has the port Id 0.

dwOptions: Options (currently not used).

VAR_OUTPUT

bBusy             : BOOL;
bError            : BOOL;
udiErrorId        : UDINT;
arrSlotInfos      : ARRAY[0..45] OF ST_DMXSlotInfo;

bBusy: When the block is activated the output is set, and it remains active until execution of the command has been completed.

bError: This output is switched to TRUE as soon as an error occurs during the execution of a command. The command-specific error code is contained in udiErrorId. Only valid if bBusy is FALSE.

udiErrorId: Contains the command-specific error code of the most recently executed command. Only valid if bBusy is FALSE. See Error codes.

arrSlotInfos: If the execution of the command has been completed (bBusy is FALSE), then all relevant information for the DMX512 slots is sent to this output in a array.

VAR_IN_OUT

stCommandBuffer           : ST_DMXCommandBuffer;

stCommandBuffer: A reference to the structure for communication (the buffer) with the FB_EL6851CommunicationEx() block.

Requirements

Development environment

Target system type

PLC libraries to include

TwinCAT 2.11 R3/x64 higher than Build 2256

PC/CX

TcDMX-library higher than V1.3.0