Operating hours counter
The operating hours counter determines the switch-on time of a group or single device. A group or single device is switched on for the operating hours counter if the brightness value is greater than "0", i. e. when the lamp is lit up. The operating hours counter can either be configured as a second counter or alternatively as an hour counter.
- Second counter
The gateway adds the determined switch-on time for a group or single device to the second. The totalled operating seconds are added in a 4-byte counter and stored permanently in the gateway. The current meter reading can be transmitted cyclically to the KNX by the "Operating hours counter - Counter reading - Status" communication object or when there is a change in an interval value in accordance with DPT 13.100. - Hour counter
The gateway adds up the determined switch-on time for a group or single device to full operating hours to the minute. The totalled operating hours are added in a 2-byte counter and stored permanently in the device. The current meter reading can be transmitted cyclically to the KNX by the "Operating hours counter - Counter reading - Status" communication object or when there is a change in an interval value in accordance with DPT 7.007.

In the delivery state, all values of the gateway are set to "0". If the operating hours counter is not enabled in the configuration of a group or single device, no operating hours or operating seconds are counted. Once the operating hours counter is enabled in the ETS, however, the operating hours or operating seconds will be determined and added up by the ETS immediately after commissioning the gateway. If an operating hours counter is subsequently disabled again in the parameters and the gateway is programmed with this disabling function, all operating hours or seconds previously counted for the group or the single device concerned are deleted. When enabled again, the meter reading of the operating hours counter is always set to "0".
The operating hour values (full hours) or operating seconds stored in the device are not lost in the event of a bus/mains voltage failure or due to an ETS programming operation. On the hour counter: Any summed up operating minutes (full hour not yet reached) will be rejected in this case, however.
After the bus or mains voltage returns or after an ETS programming operation, the gateway updates the communication object "Operating hours counter - Counter reading" for each group and single device and actively transmits the object value to the KNX. The object value can also be read out at any time with the read flag set.
Activating the operating hours counter
- On the parameter page "DALI system... -> Configuration groups -> [x] Group name -> Enabled functions" or "DALI system... -> Configuration single devices -> [x] Device name -> Enabled functions" activate the "operating hours counter" parameter.
- The operating hours counter is activated.
- Deactivate the "operating hours counter".
- The operating hours counter is deactivated.

Setting the counter type
The operating hours counter can optionally be configured as an up-counter or down-counter. Depending on this type of counter, a limit or start value can be set optionally, whereby, for example, the operating time of a lamp can be monitored by restricting the counter range.
Up-counter:
After activating the operating hours counter by enabling in the ETS or by restarting, the operating hours are counted starting at "0". A maximum of 65,535 hours or 2147483647 can be counted (corresponds to approx. 66 years) before the meter stops and signals a meter operation by means of the object "Operating hours counter - Counter elapsed - Status".
A limit value can be optionally set in the ETS or specified via the communication object "Operating hours counter - Signal value". In this case, the counter operation is signalled to the KNX via the "Operating hours counter - Counter reading elapsed - Status" object if the signal value is reached, but the counter continues counting - if it is not restarted - up to the maximum value and then stops. Only a restart initiates a new counting operation.
Down-counter:
After enabling the operating hours counter in the ETS, the counter reading is set to "0" and the gateway signals a counter operation for the group concerned or the single device after the programming operation or after the bus voltage returns via the object "Operating hours counter - Counter reading elapsed - Status". Only after a restart is the down-counter set to the maximum value of 65,535 hours or 2147483647 seconds (corresponds to approx. 66 years) and the counter operation is started.
Optionally, a start value can be set in the ETS or specified by means of the communication object "Start value for operating hours counter". If a start value is set, the down-counter is initialised with this value instead of the maximum value after a restart. The meter then counts the start value downwards by the hour. When the down-counter reaches the value "0", the counter operation is signalled to the KNX via the object "Operating hours counter - Counter reading elapsed - Status" and counting is stopped. Only a restart initiates a new counting operation.
- The operating hours counter must be enabled.
- Set the "Counting direction" parameter on the parameter page "DALI system... -> Configuration groups -> [x] Group name -> Operating hours counter" or "DALI system... -> Configuration single devices -> [x] Device name -> Operating hours counter" to "Forward". Activate the parameter "Specify signal value" if monitoring of a signal value is necessary. Otherwise deactivate the parameter. If signal value monitoring is activated with "preset value", decide whether the signal value is to be specified by parameters or an object. Configure the required signal value if parameters is specified.
- The meter counts the operating hours forwards starting from "0". If signal value monitoring is activated, the gateway transmits an "ON" telegram for the group concerned or the single device via the object "Operating hours counter - Counter reading elapsed - Status" as soon as the specified signal value is reached. Otherwise, the counter operation is first transmitted when the maximum value is reached.
- Set the "Counting direction" parameter to "Backward". Activate the "Specify start value" parameter if it is necessary to specify the start value. Otherwise deactivate the parameter. If start value monitoring is activated with "preset value", decide whether the start value is to be specified by parameters or an object. Configure the required start value if parameters is specified.
- The meter counts the operating hours down to "0" after a restart. With a start value preset, the start value is counted down, otherwise the counting operation starts at the maximum value. The gateway transmits an "ON" telegram for the affected group or the single device via the object "Operating hours counter - Counter reading elapsed - Status" as soon as the value "0" is reached.




Restarting the operating hours counter
The meter reading of the operating hours can be reset at any time by the communication object "Operating hours counter - Reset". The polarity of the reset telegram is predefined: "1" = Restart / "0" = No reaction.
In the up-counter the meter is initialised with the value "0" after a restart and in the down-counter initialised with the start value. If no start value was configured or predefined by the object, the start value is preset to 65535 hours or 2147483647 seconds.
During every counter restart, the initialised meter reading is transmitted actively to the KNX. After a restart, the signal of a counter operation is also reset. At the same time, an "OFF" telegram is transmitted to the KNX via the object "Operating hours counter - Counter reading elapsed - Status". In addition, the signal or start value is initialised.


If specified by parameters:
The meter elapses immediately after a counter restart.
Preset via object:
A counter restart will be ignored to avoid an undesired reset (e. g. after installation of the devices with operating hours already being counted by manual operation). A start value or signal value greater than "0" must be specified in order to perform the restart.
Setting the transmission behaviour
The current value of the operating hours counter is continuously tracked in the communication object "Operating hours counter – Meter reading - Status". The content of the object is transmitted to the KNX when there is a change by the set count interval or cyclically active. The object value can also be read out at any time (set read flag).
- The operating hours counter must be enabled.
- Set the "Transmission behaviour" parameter on the parameter page "DALI system... -> Configuration groups -> [x] Group name -> Operating hours counter" or "DALI system... -> Configuration single devices -> [x] Device name -> Operating hours counter" to "On change by interval value". Configure the parameter "Counting interval" to the desired value.
- The meter reading is transmitted to the KNX as soon as it changes by the specified counting interval.
- Set the parameter "Transmission behaviour" to "cyclical".
- The counter value is transmitted cyclically. The cycle time is defined via the parameter of the same name.

