# DALI commands

In accordance with the DIN EN 60929 standard, addresses and commands are transmitted as numbers with a length of two bytes.

These commands take the form YAAA AAAS xxxx xxxx. Each letter here stands for one bit.

1bin:    group address or collective call

S: selection bit (specifies the significance of the following eight bits):
0bin:    the 8 xxxx xxxx bits contain a value for direct control of the lamp power
1bin:    the 8 xxxx xxxx bits contain a command number.

x: a bit in the lamp power or in the command number

## Direct DALI commands for lamp power

These commands take the form YAAA AAA0 xxxx xxxx.

xxxx xxxx: the value representing the lamp power is transmitted in these 8 bits. It is calculated according to this formula:

253 values from 1dec to 254dec are available for transmission in accordance with this formula.

There are also 2 direct DALI commands with special meanings:

00hex 0dec The DALI device dims using the current fade time down to the parameterised MIN value, and then switches off. -
FFhex 254dec Mask (no change): this value is ignored in what follows, and is therefore not loaded into memory. -

## Indirect DALI commands for lamp power

These commands take the form YAAA AAA1 xxxx xxxx.

xxxx xxxx: These 8 bits transfer the command number. The available command numbers are listed and explained in the following tables in hexadecimal and decimal formats.

00hex 0dez Extinguish the lamp (without fading) -
01hex 1dez Dim up 200 ms using the selected fade rate -
02hex 2dez Dim down 200 ms using the selected fade rate -
03hex 3dez Set the actual arc power level one step higher without fading. If the lamp is off, it will be not ignited. -
04hex 4dez Set the actual arc power level one step lower without fading. If the lamp has already it's minimum value, it is not switched off. -
05hex 5dez Set the actual arc power level to the maximum value. If the lamp is off, it will be ignited. -
06hex 6dez Set the actual arc power level to the minimum value. If the lamp is off, it will be ignited. -
07hex 7dez Set the actual arc power level one step lower without fading. If the lamp has already it's minimum value, it is switched off. -
08hex 8dez Set the actual arc power level one step higher without fading. If the lamp is off, it will be ignited. -
09hex ... 0Fhex 9dez ... 15dez reserved -
1nhex
(n: 0hex ... Fhex)
16dez ... 31dez Set the light level to the value stored for the selected scene (n) -

## Configuration commands

20hex 32dez Reset the parameters to default settings -
21hex 33dez Store the current light level in the DTR (Data Transfer Register) -
22hex ... 29hex 34dez ... 41dez reserved -
2Ahex 42dez Store the value in the DTR as the maximum level -
2Bhex 43dez Store the value in the DTR as the minimum level -
2Chex 44dez Store the value in the DTR as the system failure level -
2Dhex 45dez Store the value in the DTR as the power on level -
2Ehex 46dez Store the value in the DTR as the fade time -
2Fhex 47dez Store the value in the DTR as the fade rate -
30hex ... 3Fhex 48dez ... 63dez reserved -
4nhex
(n: 0hex ... Fhex)
64dez ... 79dez Store the value in the DTR as the selected scene (n) -
5nhex
(n: 0hex ... Fhex)
80dez ... 95dez Remove the selected scene (n) from the DALI slave -
6nhex
(n: 0hex ... Fhex)
96dez ... 111dez Add the DALI slave unit to the selected group (n) -
7nhex
(n: 0hex ... Fhex)
112dez ... 127dez Remove the DALI slave unit from the selected group (n) -
80hex 128dez Store the value in the DTR as a short address -
81hex ... 8Fhex 129dez ... 143dez reserved -
90hex 144dez Returns the status (XX) of the DALI slave XX
91hex 145dez Check if the DALI slave is working yes/no
92hex 146dez Check if there is a lamp failure yes/no
93hex 147dez Check if the lamp is operating yes/no
94hex 148dez Check if the slave has received a level out of limit yes/no
95hex 149dez Check if the DALI slave is in reset state yes/no
96hex 150dez Check if the DALI slave is missing a short address XX
97hex 151dez Returns the version number as XX XX
98hex 152dez Returns the content of the DTR as XX XX
99hex 153dez Returns the device type as XX XX
9Ahex 154dez Returns the physical minimum level as XX XX
9Bhex 155dez Check if the DALI slave is in power failure mode yes/no
9Chex ... 9Fhex 156dez ... 159dez reserved -
A0hex 160dez Returns the current light level as XX XX
A1hex 161dez Returns the maximum allowed light level as XX XX
A2hex 162dez Returns the minimum allowed light level as XX XX
A3hex 163dez Return the power up level as XX XX
A4hex 164dez Returns the system failure level as XX XX
A5hex 165dez Returns the fade time as X and the fade rate as Y XY
A6hex ... AFhex 166dez ... 175dez reserved -
Bnhex
(n: 0hex ... Fhex)
176dez ... 191dez Returns the light level XX for the selected scene (n) XX
C0hex 192dez Returns a bit pattern XX indicating which group (0-7) the DALI slave belongs to XX
C1hex 193dez Returns a bit pattern XX indicating which group (8-15) the DALI slave belongs to XX
C2hex 194dez Returns the high bits of the random address as HH HH
C3hex 195dez Return the middle bit of the random address as MM MM
C4hex 196dez Returns the lower bits of the random address as LL LL
C5hex ... DFhex 197dez ... 223dez reserved -
E0hex ... FFhex 224dez ... 255dez Returns application specific extension commands
 Note Repeat of DALI commands According to IEC 60929, a DALI Master has to repeat several commands within 100 ms, so that DALI-Slaves will execute them. The DALI Master Terminal KL6811 repeats the commands 32dez to 128dez, 258dez and 259dez (bold marked) automatically to make the the double call from the user program unnecessary. The DALI Master Terminal KL6811 repeats also the commands 224dez to 255dez, if you have activated this with Bit 1 of the Control-Byte (CB.1) before.

## Special commands

You may find the special commands and further information in the DIN EN 60929 standard.