FB_DALI102EnableDeviceType

FB_DALI102EnableDeviceType 1:

The function block must be called before an application extended command is called. This means that only the DALI control gears belonging to the corresponding device type respond.

It is not necessary to use the function block for device type 0. It is also not required if a function block is called that represents an application extended command in the Tc3_DALI library. The DALI command ENABLE DEVICE TYPE is already executed internally in the corresponding function blocks. There is a corresponding note in the description of the respective function blocks.

FB_DALI102EnableDeviceType 2: Inputs

VAR_INPUT
  bStart            : BOOL;
  eCommandPriority  : E_DALICommandPriority := E_DALICommandPriority.MiddleLow;
  eDeviceType       : E_DALIDeviceType;
END_VAR

Name

Type

Description

bStart

BOOL

Execution of the DALI commands is triggered via a positive edge at this input.

eCommandPriority

E_DALICommandPriority

Priority (low, middle low, middle, middle high, high) with which the DALI commands are sent (see E_DALICommandPriority).

FB_DALI102EnableDeviceType 3:

eCommandPriority has no function with the KL6811. The DALI command priorities are supported by the KL6821 from the firmware version BD.

Name

Type

Description

eDeviceType

E_DALIDeviceType

Selection of the desired device type (see E_DALIDeviceType).

FB_DALI102EnableDeviceType 4: Outputs

VAR_OUTPUT
  bError                  : BOOL;
  ipResultMessage         : I_TcMessage;
  bBusy                   : BOOL;
END_VAR

Name

Type

Description

bError

BOOL

This output is switched to TRUE if an error occurs during the execution. Further information about the error can be queried via the variable ipResultMessage. The output is set to FALSE again as soon as bBusy switches to TRUE.

ipResultMessage

I_TcMessage

Interface pointer (see error evaluation) that can be used to obtain detailed information about the processing of the function block (see runtime messages). The interface pointer is valid after bBusy has changed from TRUE to FALSE.

bBusy

BOOL

The output is set as soon as execution of the DALI commands has commenced. It remains active until all DALI commands have been processed.

FB_DALI102EnableDeviceType 5: Properties

Name

Type

Access

Initial value

Description

ipDALICommunication

I_DALICommunication

Get,Set

0

Interface Pointer to the communication block (see Transfer of the reference to the communication block).

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.11

Tc3_DALI from v3.5.0.0