Introduction

IEC 62386-302 describes DALI control devices that are defined as absolute input device.

DALI control devices according to IEC 62386-302 correspond to instance type 2. The type of an instance can be queried with the function block FB_DALI103QueryInstanceType.

Input value

The current state (inputValue) of the absolute encoder can be queried via the function block FB_DALI103QueryInputValue.

The variable can assume different values:

inputValue

Slide resistor

Analog input

Switch or binary input

0

Minimum position

Lower limit value

Opened

1, 2resolution -2

Linear position display between the minimum and maximum position (with a resolution >2)

Linear display of the value within the upper and lower limits.

Closed

2resolution -1

Maximum position

Upper limit value

Closed

Depending on the connected DALI control device, the inputValue can assume values that depend on the resolution (see Samples).

Timer

IEC 62386-302 defines specific timers with which the sending of the different events can be influenced.

The respective time is calculated from

Introduction 1:

Time

Multiplier

Preset value of the multiplier

Tincr Incremental value

Tdefault Default value

Tmin lowest possible set value

Tmax highest possible set value

Tdeadtime

tDeadtime

2

50 ms

100 ms

0 s

12.75 s

Treport

tReport

0

1 s

Vendor-specific

1 s

4 min 15 s

Introduction 2:

Set the times so that as few events as possible are sent. If too many events are sent, this can have a negative effect on the behavior of the application.

Event filter

DALI control devices are capable of sending different events. The event filter consists of an 8-bit value, where each individual bit defines whether an event is blocked or released. The event is released if the corresponding bit is set, otherwise it is blocked.

The function block FB_DALI103QueryEventFilter can be used to read the value of the event filter; the function block FB_DALI103SetEventFilter can be used to write to it.

The event filter (see eventFilter) must be configured accordingly in order to trigger time-controlled events.

Bit

Event

Description

0

Position Report

inputValue has changed or the Report Timer has expired.

1

-

Reserved

2

-

Reserved

3

-

Reserved

4

-

Reserved

5

-

Reserved

6

-

Reserved

7

-

Reserved

Input Notification event

With instance type 2 there is the possibility to release the event with the help of the event filter. The event is sent from the DALI control device by a Input Notification and can be received with FB_DALIGetInputNotification.

The following table lists the event.

Event Name

Event Information

Description

Position Report

position

If the resolution is less than or equal to 10, this event contains the current position (10 bits). If the resolution is greater than 10, the 10 MSB are transmitted with this event.

Deadtime timer

Several events may not be sent from an instance at the same time. To avoid this a dead time (Tdeadtime) can be activated (see tDeadtime).

If the Deadtime Timer is active, an instance should not send any further events until the timer Tdeadtime has expired. The timer is restarted after the sending of an event.

If a new event occurs before the current event is sent, then the new event replaces the existing one. This can happen if the bus is not available or if the timer Tdeadtime is in use.

If Treport < Tdeadtime, then Treport = Tdeadtime, regardless of which value Treport had before.