KELVIN_TO_MIREK

KELVIN_TO_MIREK 1:

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 ... 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

KELVIN_TO_MIREK 2: Inputs

VAR_INPUT
  fKelvin : LREAL;
END_VAR

Name

Type

Description

fKelvin

LREAL

Color temperature in Kelvin

Requirements

Development Environment

PLC library to include

TwinCAT from v3.1.4020.14

Tc2_DALI from v3.4.3.0