FB_DALI103Initialise

The function block prepares the addressing of the DALI control devices.
This function block is required if addressing of the DALI control devices is to be implemented in the PLC. The function block FB_DALI103Addressing can be used to assign the addresses from the PLC.
nParameter is used to define which DALI control devices are taken into account for addressing:
Value (binary) | Description |
---|---|
2#0111_1111 | DALI control devices without a short address respond. |
2#00AA_AAAA | DALI control devices with the address 2#00AA_AAAA respond. |
2#1111_1111 | All DALI control devices respond. |
![]() | The function block sends the DALI command INITIALIZE twice, as required by the DALI standard for certain DALI commands. |
![]() | The function block cannot be used when using the KL6811. |
Inputs
VAR_INPUT
bStart : BOOL;
eCommandPriority : E_DALICommandPriority := E_DALICommandPriority.Middle;
nParameter : BYTE := 2#0111 1111;
END_VAR
Name | Type | Description |
---|---|---|
bStart | BOOL | Execution of the DALI commands is triggered via a positive edge at this input. |
eCommandPriority | Priority (low, middle low, middle, middle high, high) with which the DALI commands are sent. |
![]() | The command priorities are supported by the KL6821 from the firmware version BD. |
Name | Type | Description |
---|---|---|
nParameter | BYTE | Specifies which control devices are to respond to this command (see table above). |
Outputs
VAR_OUTPUT
bError : BOOL;
ipResultMessage : I_TcMessage;
bBusy : BOOL;
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. |
bBusy | BOOL | The output is set as soon as execution of the DALI commands has commenced. It remains active until all DALI commands have been processed. |
Properties
Name | Type | Access | Initial value | Description |
---|---|---|---|---|
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.4022.29 | Tc3_DALI from v3.1.4.0 |