KELVIN_TO_MIREK

Conversion of the color temperature from Kelvin to Mirek.
Mirek is a color temperature unit used by most DALI commands. The return value of the function is limited to the value range 0…65535 (see table).
Mirek = 1000000 / (color temperature in Kelvin).
Kelvin | Mirek |
---|---|
0.0 | 65535 |
15.0 | 65535 |
16.0 | 62500 |
1000.0 | 1000 |
10000.0 | 100 |
1000000.0 | 1 |
1000001.0 | 0 |
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT from v3.1.4024.10 | Tc3_DALI from v3.4.0.0 |