MIREK_TO_KELVIN

MIREK_TO_KELVIN 1:

Conversion of the color temperature from Mirek to Kelvin.

Mirek is the unit that is used with most DALI commands. The return value is limited and lies within the range from approx. 15.259 ... 1000001 (see table).

Mirek = 1,000,000 / (color temperature in Kelvin).

Mirek

Kelvin

0

1000001

1

1000000

100

10000

1000

1000

10000

100

65534

15.259

65535

15.259

MIREK_TO_KELVIN 2: Inputs

VAR_INPUT
  nMirek  : UINT;
END_VAR

Name

Type

Description

nMirek

UINT

Color temperature in Mirek

Requirements

Development Environment

PLC library to include

TwinCAT from v3.1.4020.14

Tc2_DALI from v3.4.3.0