[ENG] 14.2. [DKSF 70/71.6 IU] How to Use the Module «Logic»?

The operation of the logic module is based on the list of programmed rules. The rules allow setting a flexible logic scheme of controlling IO lines, relays and other firmware modules of a device depending on changing external conditions.

Logic rules of a UniPing server solution v3SMS device

where:

1. Rule number. The smaller is a line number, the higher is a rule priority. If two rules produce a contradictory output command (i.e. switch on and switch off the output simultaneously), a rule with a higher priority will work. If rules do not conflict, i.e. they control different outputs or produce conflict-free commands, the relationship of their priorities does not influence their work;

2. Checkbox for activating the rule. A rule can be deactivated by unchecking a checkbox. Inactive rules are displayed in gray;

3. Rule type (rule operation mode). Possible values are: «While», «If». «While» rules react to the input status and work constantly. «If» rules react to the changing in the input status (the second position in a line of a rule). A «While» rule is designed to program conditions, within which an output is constantly kept in a specified status while a condition is fulfilled. When a condition is not fulfilled, an output status can be changed by other rules. An «If» rule is designed for programming a momentary reaction to a specified event, such as changing a logic level on an IO line or disappearing o a response while pinger works. While a rule input is in the same condition, an «If» rule does not influence the status of its output, even if a condition of a rule is fulfilled. «While» rules always have a higher priority then «If» rules. For example, while one of «While» rules keeps an output in a switched off status, rules of «If» types that switch on an output on a specified event, will not work.

4. Input. An input is an information source for the operation of a rule. Its possible values are represented in a table below:

Name

Description

RESET

A signal that is active 5 seconds after the start of the module «Logic» or restart of the module «Logic» by a «Reset» button on a web page. It is used for initial hardware initialization. For example, it is possible to program a 5-second pulse on a relay at a logic start or issue an IR command of switching a device off.

IO 1

IO line 1. Before using, it must be switched to the mode «input» or «output» on the page «DISCRETE IO».

IO 2

IO line 2. Before using, it must be switched to the mode «input» or «output» on the page «DISCRETE IO».

IO 3

IO line 3. Before using, it must be switched to the mode «input» or «output» on the page «DISCRETE IO».

IO 4

IO line 4. Before using, it must be switched to the mode «input» or «output» on the page «DISCRETE IO».

TSTAT 1

Thermo (hygro) stat 1. Before using, a thermo (hygro) stat must be configured on the page «LOGIC».

TSTAT 2

Thermo (hygro) stat 2. Before using, a thermo (hygro) stat must be configured on the page «LOGIC».

PINGER 1

Pinger 1. Before using, a pinger must be configured on the page «LOGIC».

PINGER 2

Pinger 2. Before using, a pinger must be configured on the page «LOGIC».

C.S. ALARM

An alarm signal of an analog smoke sensor (current sensor). A signal «C.S.ALARM» triggers when parameters of a sensor leave the configured conditions «Alert» on the page «ANLG SMOKE SENSOR» of a device web interface.

C.S. FAIL

An alarm signal of an analog smoke sensor (current sensor). A signal «C.S. FAIL» triggers when parameters of a sensor leave the configured conditions «Open loop» and «Short Circuit in a loop» on the page «ANLG SMOKE SENSOR» of a device web interface.

C.S. NORMA signal of a normal operation of an analog smoke sensor (current sensor). A signal «C.S. NORM» triggers when parameters of a sensor satisfy the conditions «Alert», «Open loop», «Short Circuit in a loop» specified on the page «ANLG SMOKE SENSOR» of a device web interface.
SMOKE 11-Wire smoke sensor on the channel 1. Before using, it must be configured on the page «1W SMOKE SENSORS».
SMOKE 21-Wire smoke sensor on the channel 2. Before using, it must be configured on the page «1W SMOKE SENSORS».
SMOKE 31-Wire smoke sensor on the channel 3. Before using, it must be configured on the page «1W SMOKE SENSORS».
SMOKE 41-Wire smoke sensor on the channel 4. Before using, it must be configured on the page «1W SMOKE SENSORS».

5. Condition. A condition, within which a rule is applied and a command that changes a status of an output is issued. An available set of conditions is changed depending on the chosen type of an output and represents a sense of an input status:

  • RESET possible values are «logic 1», «logic 0»;
  • IO 1, IO 2IO 3IO 4 possible values are «logic 1», «logic 0»;
  • TSTAT 1, TSTAT 2 possible values are «Below threshold», «Above threshold»;
  • PINGER 1, PINGER 1 possible values are «Silent», «Responds»;
  • C.S. ALARMC.S. FAILC.S. NORM possible values are «logic 1» (presence of alert, open loop, short circuit, normal status), «logic 0» (absence of alert, open loop, short circuit, normal status);
  • SMOKE 1, SMOKE 2SMOKE 3, SMOKE 4 possible values are «Normal», «Alert», «Switched Off», «Failed»

A rule of «If» type works only in the moment of fulfilling the condition. A rule of «While» type works all the time while the condition is fulfilled.

6. Command. A command that is executed when a rule triggers (a condition is satisfied). For an «If» rule possible values are «On», «Off», «Switch». These commands trigger in the moment of satisfying a condition. For a «While» rule possible values are «Keep On», «Keep Off». These commands work all the time while a condition is satisfied.

7. Output. An output that is controlled by a rule. Possible values are represented in the table:

Name

Description

IO 1

IO line 1. Before using, it must be switched to the mode «logic output» on the page «DISCRETE IO».

IO 2

IO line 2. Before using, it must be switched to the mode «logic output» on the page «DISCRETE IO».

IO 3

IO line 3. Before using, it must be switched to the mode «logic output» on the page «DISCRETE IO».

IO 4

IO line 4. Before using, it must be switched to the mode «logic output» on the page «DISCRETE IO».

RELAY 1

A relay, built into the body of a device. Before using, a relay must be switched to the mode «Logic» on the page «RELAY MANAGEMENT».

SNMP 1

SNMP Setter 1. Before using, it must be configured on the page «LOGIC».

SNMP 2

SNMP Setter 2. Before using, it must be configured on the page «LOGIC».

IR 1

IR command 1. Before using, it must be recorded and saved to the cell 1 on the page «IR COMMANDS».

IR 2

IR command 2. Before using, it must be recorded and saved to the cell 2 on the page «IR COMMANDS».

IR 3

IR command 3. Before using, it must be recorded and saved to the cell 3 on the page «IR COMMANDS».

IR 4

IR command 4. Before using, it must be recorded and saved to the cell 4 on the page «IR COMMANDS».

C.S. PWR

Before using the output C.S. PWR, there is a need to switch a loop power to the mode «Controlled by logic» on the page «ANLG SMOKE SENSOR».

SMOKE RSTReset activation for all connected 1-Wire smoke sensors.

8. Buttons «Move up»/«Move down». The buttons are designed for changing a position of a rule in a list and thus changing a rule priority. If rules produce conflicting commands for the output, then a rule that is higher in a list, will work. However, «While» rules always have a higher priority compared to «If» rules regardless their mutual position in the list.

9. Control buttons. Control buttons work immediately after clicking them. The buttons «Start» and «Stop» control the start and the stop of the operation of rules. This status is kept when a device is switched off. If rules are stopped, a warning line of a logic status appears (10). The button «Reset» switches the outputs, controlled by the logic module to the specified initial status «0» (off),  and initiates a reset signal. Rules, which have the reset signal «RESET» as an input, can switch outputs to another required initial status. There is a need to note that if rules are not stopped before clicking the button «Reset», a status of outputs can be changed immediately and a reset command will not have an external effect;

10. Status line. If the operation of the rules is stopped, then a warning line appears;

11. Apply changes. The button «Apply changes» saves programmed logic rules in a memory of a device.