KELVIN_TO_MIREK
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 | Target system | Required libraries |
---|---|---|
TwinCAT 2.11 R3/x64 from build 2244 | PC/CX, BX or BC | TcDALIV2 library from V2.10.0 |