FB_DALI102QueryMissingShortAddress

FB_DALI102QueryMissingShortAddress 1:

The function block checks whether one or more DALI control gears do not have a short address.

This function block can be used to determine whether there are DALI control gears without short address on a DALI line (e.g. new DALI control gears). For this purpose, the function block is called with the parameter eAddressType = E_DALIAddressType.Broadcast. If the outputs bMissingShortAddress = FALSE and bError = FALSE, all DALI control gears have a short address. If the output bMissingShortAddress = TRUE and bError = FALSE, there is one DALI control gear that has no short address. If multiple DALI control gears do not have a short address, a 27 (multiple DALI control gears have responded) is returned to ipResultMessage.nEventId.

FB_DALI102QueryMissingShortAddress 2: Inputs

VAR_INPUT
  bStart            : BOOL;
  nAddress          : BYTE;
  eAddressType      : E_DALIAddressType := E_DALIAddressType.Short;
  eCommandPriority  : E_DALICommandPriority := E_DALICommandPriority.MiddleLow;
END_VAR

Name

Type

Description

bStart

BOOL

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

nAddress

BYTE

Address of a DALI control gear or a DALI group.

eAddressType

E_DALIAddressType

Defines whether the input nAddress contains a short address (0…63) or a group address (0…15). The input nAddress has no meaning if a broadcast or a broadcast to unaddressed devices (BroadcastUnaddr) has been selected.

eCommandPriority

E_DALICommandPriority

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

FB_DALI102QueryMissingShortAddress 3:

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

FB_DALI102QueryMissingShortAddress 4: Outputs

VAR_OUTPUT
  bError                : BOOL;
  ipResultMessage       : I_TcMessage;
  bBusy                 : BOOL;
  bMissingShort Address : 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.

bMissingShortAddress

BOOL

The output is set as soon as the queried DALI control gear does not have a short address.

FB_DALI102QueryMissingShortAddress 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.29

Tc3_DALI from v3.11.0.0