KELVIN_TO_MIREK

KELVIN_TO_MIREK 1:

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

KELVIN_TO_MIREK 2: Inputs

VAR_INPUT
  fKelvin    : LREAL;
END_VAR

Name

Type

Description

fKelvin

LREAL

Color temperature in Kelvin

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.10

Tc3_DALI from v3.4.0.0