LightOnOff
Applicable to OS V1.7
The LightOnOff component allows for an on/off light control by sending the Off or On and Step Up command(s) in one of three ways: to a single device, a group of devices, or broadcast to all devices.

LightOnOff component
The LightOnOff component has the following slots:
Out: the output value of the component, informs if the command is to switch the light on or switch the light off;
Switch On: receives a signal from a connected monostable switch; on a rising edge switches on the light;
Switch Off: receives a signal from a connected monostable switch; on a rising edge switches off the light.
DALI Extension
The DALI extension enhances the component’s functionality by providing a possibility to work through the DALI protocol. The extension allows to determine the DALI device or group of DALI devices to control. With the use of the extension it is also possible to broadcast DALI commands to all connected devices.
The extension is added from the context menu of the component (Add Extension>DALI Gateway).
To process the DALI command, the component has to be linked to the network point component:
the Channel1 Modbus Address slot should be linked to the Modbus network point’s Address slot,
the Channel1 Modbus Value slot should be linked through the Data Point to the Modbus network point.
The two above values determine the DALI command to send and the address of the DALI device to send the command to.
Channel1 Dali Address: sets the short address of the DALI device or a group DALI devices to be controlled by the component,
Channel1 Dali Address Type: allows to set a proper Modbus address slot for a linked network point depending on a number of DALI devices to be controlled (single/group/all),
Available values:
None: Modbus address is null,
Single: Modbus address is 511,
Group: Modbus address is 521,
All: Modbus address is 531;
Channel1 Modbus Address: the output slot with the Modbus address indicating the destination DALI network point to send the DALI command to;
Channel1 Modbus Value: the 16-bit output value comprised as follows:
upper 8 bits: 15-8:
short address of a single lamp 0-63 for lamp 1 to 64, or
short address of a group of lamps 0-15 for a lamp group 1 to 16;
lower 8 bits: 7-0 represents of a DALI command 0-8.
The Channel1 Modbus Value value is set according to the formula:
Channel1 Modbus Value = (Channel1 Dali Address - 1) * 256 + Component Out Value,
where:
Channel1 Dali Address = short DALI device address or DALI group address;
Component Out Value = value of the output slot in the component which the extension has been added to.
If the rising edge is detected on the Switch On slot, the DALI command On and Step Up will be set to the Channel1 Modbus Value slot.
If the rising edge is detected on the Switch Off slot, the DALI command Off will be set to the Channel1 Modbus Value slot.