[ENG] 10.2. [DKSF 48.5 IU] How Can I Use the "LOGIC" Module?

IMPORTANT. In the updated module "LOGIC" (beginning with  the DKSF 48.5 firmware version), all the rules are identical to the rules of the "If" type in previous versions of the logic (the logic of the module has become non-blocking or the so-called anarchic). They work at the moment when the condition of the rule becomes true and have no priorities. All sources of controlling the output of rules are simultaneously active and equal (for example, for relays or IO lines).

The operation of the logic module is based on a list of programmed rules.


1.  The buttons of controling the "LOGIC" module:

  • Enable Logic» —  a checkbox that enables and disables the operation of logic. After changing the state of the checkbox, you need to save the current settings with the button "Apply Changes"
  • «Reset» —  initiates the reset of logic (the signal «Reset and Restart Logic»).
  • «Apply changes» saves the current settings.

2. Check box RULES Enable — check box of activation the rule logic. Inactive rules are displayed in gray colour.

3. Input - the source of information for work of a rule. Possible values are presented in the table below.

4. Condition — the condition when the rule is applied and a command is issued that changes the state of the output. The available set of conditions varies depending on the type of a selected input, and reflects the meaning of the input state. Below you can see possible values depending on the type or input. 

Input of the ruleDecodingPossible conditions (events) Condition decoding
 Reset and Restart Logic

A signal that is active at the start (restart) of the firmware or after you press the “Reset” button (1) on the "LOGIC" page, before all other logical rules 

For more details look here  — [ENG] 10.6. [DKSF 48.5 IU] Reset Signal and Initial Output States

has begun

 The rule is triggered in 5 seconds after the reset.

has finished 

The rule is triggered in 10 seconds after the reset.

IO-line 1..8 Current logic level of IO line= log. 0

The logic level of the selected IO line has switched to 0 or 1.

= log. 1
Termo 1..8

 Readings of temperature sensor 1-Wire

below [N]The temperature sensor readings dropped below or rose above the threshold N, where N is the set temperature threshold. It is allowed to set the threshold with a floating point, up to decimal, for example, 5.3. 
above [N]

failed The sensor failed

Humidity Sensor 1..4

Reading of a relative humidity sensor with a built-in temperature sensort below [N]The temperature readings of the humidity sensor dropped below or rose above threshold N, where N is the set temperature threshold. It is allowed to set the threshold with a floating point, up to decimal, for example, 5.3.
t above [N]
relative humidity above [N] Relative humidity rose above N, where N is the specified humidity threshold.
relative humidity below [N] Relative humidity dropped below N, where N is the specified humidity threshold. 

failedThe sensor failed
Pinger 1..2 Verifying the remote host using ping  (ICMP Echo requests)fell silent

The response from the host verified by the pinger has disappeared or appeared. About setting up the pinger itself  — [ENG] 10.4. [DKSF 48.5 IU] How Can I Configure The Pinger in the Logic Module?

Relay  The status of a built-in relay (outlet)= onA built-in relay (outlet) turned on or off.
= off
Timer / Counter 1..4Program Timer / Counterreached [N]

The internal timer / counter has become> = the set threshold [N].

 The timer / counter value is any number (> 0) controlled by the “add 1” and “decrease 1” commands (counter functions), or the period of time from the “start from 0” command in seconds with a resolution of 0.1 second (timer functions) .

it is not recommended to mix the functions of timer and counter.

Smoke 1..4

1-Wire smoke sensorin normal stateThe sensor is operating normally
alarmThe sensor detected smoke.
offThe current in loop connected to the sensor is deactivated.
failedThe sensor is failed

5. Output —  The element of the device that is controlled by the rule

6. Action — possible actions of the output of the rule

Possible outputs of the rules and actions for them are presented in the table:

Output of the ruleDecodingPossible actionAction decoding
Smoke 1..4

The control of 1-Wire-smoke sensor

on powerPower on the current loop
off powerPower off the current loop
switch powerSwitch power of the current loop
resetReset the sensor (on/off power)
Relay 1...8

The control of the built-in relay (outlet)

offTurn off the relay
onTurn on the relay
switchSwitch the relay to the opposite state 
Signal 1...4Activation of a signal to send a custom notification  — [ENG] 13. [DKSF 48.5 IU] Device Support for Custom Notificationsactivate

Send a signal. For a custom notification on the "NOTIFICATIONS" page, start sending it using a logic rule.

Timer/Counter 1...4

The control of a built-in timer/counter

it is not recommended to mix the functions of timer and counter.

 set from 0 (the timer function)Start the timer from 0. The countdown is carried out in seconds with a resolution of 0 ... 1sec.
reset to 0Stop and reset the timer. Reset counter.
add 1 (the counter function) Add 1 (increment) to the current counter value.
decrease 1 (th counter function)Decrease 1 (decrement) from the current counter value. The counter value does not decrease below zero.
IO line 1...4

The control of IO line

off (log.0)Set the line to log.0 state.  
on (log.1) Set the line to log.1 state.
switch Switch log. state of the line 
impulse To send an impulse to the line. Duration is set in the settings of the IO line.
IR 1...4Send an IR command with a specified numbersend a command Play the command with the specified number recorded in the memory of the IRC-TR v2 module

SNMP Setter 1...2

The sending of SNMP SET commands to the other devices off Record the value corresponding to “off”  to the specified OID  in Setter’s settings.
onRecord the value corresponding to “on”  to the specified OID  in Setter’s settings.

7.  The buttons “above” / “below”. The buttons are used to change the position of a rule in the list. Starting with DKSF software version 48.5.3, the order of the rules does not affect the priority of the rules.

You should avoid conflicting rules  if they can lead to an attempt to control the same output simultaneously .

8.  Apply the changes. The "Apply Changes" button saves the programmed logic rules in the device memory.