FB_DALIV2ProgramShortAddress
All the selected control gears save the nShortAddress (SHORT ADDRESS) value as their short address.
Selected means:
- The RANDOM ADDRESS of the control gear is the same as the SEARCH ADDRESS.
- Physical selection is determined by the control gear, as the lamp has been disconnected from the control gear (after receiving the FB_DALIV2PhysicalSelection() command).
VAR_INPUT
bStart : BOOL;
eCommandPriority : E_DALIV2CommandPriority := eDALIV2CommandPriorityMiddle;
nShortAddress : BYTE;
bStart: The function block is activated by a positive edge at this input.
eCommandPriority: Priority (high, medium or low) with which the command is processed by the library (see E_DALIV2CommandPriority).
nShortAddress: Short address to be assigned to the selected ballasts (0 - 63).
VAR_OUTPUT
bBusy : BOOL;
bError : BOOL;
nErrorId : UDINT;
bBusy: When the function 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 nErrorId. Is reset to FALSE by the execution of a command at the inputs.
nErrorId: Contains the command-specific error code of the most recently executed command. Is reset to 0 by the execution of a command at the inputs. (See error codes)
VAR_IN_OUT
stCommandBuffer : ST_DALIV2CommandBuffer;
stCommandBuffer: Reference to the internal structure for communication with the function block FB_KL6811Communication() (KL6811) or FB_KL6821Communication() (KL6821).
Requirements
Development environment | required PLC library |
---|---|
TwinCAT from v3.1.4020.14 | Tc2_DALI from v3.4.3.0 |