FB_DALI102SetExtendedFadeTime
This function block writes the values eExtendedFadeTimeBase and eExtendedFadeTimeMultiplier to the variables extendedFadeTimeBase and extendedFadeTimeMultiplier.
The Extended Fade Time is calculated from the product of the two variables extendedFadeTimeBase and extendedFadeTimeMultiplier.
The value can be set between 100 ms and 16 min. With a value of 0 s, the lighting output reaches the required value as quickly as possible.
The extendedFadeTime is used in the function blocks FB_DALI102DirectArcPowerControl, FB_DALI102GoToScene and FB_DALI102GoToLastActiveLevel.
The two variables extendedFadeTimeBase and extendedFadeTimeMultiplier are used for the calculation only if fadeTime was set to E_DALIFadeTime.Disabled and, if implemented, fastFadeTime is equal to E_DALIFastFadeTime.Disabled. |
The function block changes the DTR0 of all connected DALI control gears. |
The function block sends the DALI command SET EXTENDED FADE TIME twice, as required by the DALI standard for certain DALI commands. |
Inputs
VAR_INPUT
bStart : BOOL;
nAddress : BYTE;
eAddressType : E_DALIAddressType := E_DALIAddressType.Short;
eCommandPriority : E_DALICommandPriority := E_DALICommandPriority.MiddleLow;
eExtendedFadeTimeBase : E_DALIExtendedFadeTimeBase := E_DALIExtendedFadeTimeBase.Base01;
eExtendedFadeTimeMultiplier : E_DALIExtendedFadeTimeMultiplier := E_DALIExtendedFadeTimeMultiplier.NoFade;
END_VAR
Name | Type | Description |
---|---|---|
bStart | BOOL | Execution of the DALI commands is triggered via a positive edge at this input. |
nAddress | BYTE | Address of a DALI control gear or a DALI group. |
eAddressType | Defines whether the input nAddress contains a short address (0…63) or a group address (0…15). The input nAddress has no meaning if a broadcast or a broadcast to unaddressed devices (BroadcastUnaddr) has been selected. | |
eCommandPriority | Priority (low, middle low, middle, middle high, high) with which the DALI commands are sent. |
eCommandPriority has no function with the KL6811. The DALI command priorities are supported by the KL6821 from the firmware version BD. |
Name | Type | Description |
---|---|---|
eExtendedFadeTimeBase | Basis for calculating the Extended FadeTime. | |
eExtendedFadeTimeMultiplier | Time multiplier for calculating Extended FadeTime. |
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.4024.4 | Tc3_DALI from v3.2.0.0 |