KELVIN_TO_MIREK
![KELVIN_TO_MIREK 1:](Images/gif/1012603147__Web.gif)
Conversion of the color temperature from Kelvin to Mirek.
Mirek is the unit that is used with most DALI commands. The return value is limited and lies within the range from 0 to 65535 (see table).
Mirek = 1,000,000 / (color temperature in Kelvin).
Kelvin | Mirek |
---|---|
0 | 65535 |
15 | 65535 |
16 | 62500 |
1000 | 1000 |
10000 | 100 |
1000000 | 1 |
1000001 | 0 |
VAR_INPUT
fKelvin : LREAL;
fKelvin: Color temperature in Kelvin.
Requirements
Development environment | required PLC library |
---|---|
TwinCAT from v3.1.4020.14 | Tc2_DALI from v3.4.3.0 |