FB_DMXGetDMX512PersonalityDescription

FB_DMXGetDMX512PersonalityDescription 1:

This function block reads further Personality information from the DMX device. Some DMX devices support so-called Personalities . Changing the Personality can influence certain RDM parameters.

VAR_INPUT

bStart                      : BOOL;
wDestinationManufacturerId  : WORD;
dwDestinationDeviceId       : DWORD;
byPortId                    : BYTE;
byPersonality               : BYTE := 0;
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.

byPersonality: The Personality for which information is queried.

dwOptions: Options (currently not used).

VAR_OUTPUT

bBusy                          : BOOL;
bError                         : BOOL;
udiErrorId                     : UDINT;
stDMX512PersonalityDescription : ST_DMX512PersonalityDescription;

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.

stDMX512PersonalityDescription: Structure with information about the Personality .

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 2251

PC/CX

TcDMX-library higher than V1.2.0