FB_DALI103ControlDevice

The function block is used for the configuration and operation of a DALI control device that supports Part 103 (control devices).
The application controller can be activated, the operation mode specified and the event Power Cycle Notification enabled.
The existing parameters can be overwritten by changing the properties listed below. All parameters are written to the DALI control device by a positive edge at bInitialize and stored there.
The outputs with the output values of the DALI device only contain valid values if the function block was executed without errors (bError = FALSE). If the output bError = TRUE, the outputs with the output values must not be evaluated.
![]() | The function block cannot be used when using the KL6811. |
Inputs
VAR_INPUT
bInitialize : BOOL := FALSE;
nShortAddress : BYTE := 0;
bGetPowerCycleNotifications : BOOL := TRUE;
nOptions : DWORD := 0;
END_VAR
Name | Type | Description |
---|---|---|
bInitialize | BOOL | The configuration of the DALI control device is started by a positive edge at this input. During this time no DALI commands are processed. |
nShortAddress | BYTE | Short address (0…63) of the DALI control device. |
bGetPowerCycleNotifications | BOOL | A TRUE at this input causes the received Power Cycle Notification to be output at the output. |
nOptions | DWORD | Reserved for future extensions. |
Outputs
VAR_OUTPUT
bError : BOOL;
ipResultMessage : I_TcMessage;
bInitializing : BOOL;
bPowerCycleNotification : BOOL;
nPowerCycleNotificationShortAddress : BYTE;
END_VAR
Name | Type | Description |
---|---|---|
bError | BOOL | This output is switched to TRUE if an error occurs during the execution. Further information about the error can be queried via the variable ipResultMessage. The output is set to FALSE again as soon as bBusy switches to TRUE. |
ipResultMessage | I_TcMessage | Interface pointer (see error evaluation) that can be used to obtain detailed information about the processing of the function block (see runtime messages). The interface pointer is valid after bBusy has changed from TRUE to FALSE. |
bInitializing | BOOL | The output is set as soon as the initialization of the DALI device has been started, and remains active until all DALI commands have been executed. |
bPowerCycleNotification | BOOL | As soon as a Power Cycle Notification Event matches the desired filter criteria, this output is set to TRUE for one PLC cycle. |
nPowerCycleNotificationShortAddress | BYTE | This output contains the short address (0…63) of the DALI control device that sent the Power Cycle Notification Event. |
Properties
All parameters that are written to the DALI control device via bInitialize are available as properties.
Name | Type | Access | Initial value | Description |
---|---|---|---|---|
bEnableApplicationController | BOOL | Get, Set | FALSE | If this property is TRUE, the application controller (see applicationActive) is enabled. |
bEnablePowerCycleNotification | BOOL | Get, Set | FALSE | TRUE at this property enables the Power Cycle Notification event. |
nOperatingMode | BYTE | Get, Set | 0 | Specification of the operation mode (0…255) of the DALI control device (see operatingMode). |
ipDALICommunication | I_DALICommunication | Get, Set | 0 | Interface pointer to the communication block (see Transfer of the reference to the communication block). |
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT from v3.1.4024.11 | Tc3_DALI from v3.5.0.0 |