[ENG] 10.2. [DKSF 52/202.10 IU] How to Use the Module «Logic»?

Rules allow to set a flexible logic scheme of controlling IO lines and relays of a device depending on changing external conditions.

1. Rule Number

The less is a line number, the higher is a rule priority. If two rules form a controversial outgoing command (switch on and switch off an output simultaneously), then a rule with a higher priority will work. If rules do not conflict as they manage different outputs or form non-conflict commands – then a correlation of their priorities does not influence the work.

Rules of «While» type always have a higher priority in relation to the rules of «If» type regardless their mutual location in the list.

A rule priority (position in the list) can be changed using the buttons 8 («Move up» and «Move down») at the end of the line.

2. Checkbox for Activating a Rule

A rule can be activated by checking a checkbox. Inactive rules are displayed in gray.

3. A Type of a Rule (an Operation Mode of a Rule)

Possible values are: «While», «If». «While» rules react to an input status and work constantly. «If» rules react to the changing of an 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 held 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 to program a momentary reaction to the specified event, such as changing a logic level of an IO line or losing a response when Pinger works. An «If» rule does not influence a status of its output until a rule input is in the same status, even if a condition of a rule is fulfilled.

«While» rules always have a higher priority, than «If» rules.

For example, when one of «While» rules keeps an output switched off, rules of «If» type, which switch an output on at a specified event, will not work.

4. Input

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

 

Name

Explanation

RESET

It is a signal, which is active 5 seconds after the module «Logic» starts or the module «Logic» is rebooted by the button «Reset» at the web page. It is used for an initial hardware initialization. For example, it is possible to program a 5-second pulse to a relay when a logic starts or issue an IR command to switch a device off

IO1

IO line 1. It must be switched to the mode «input» at the page «INPUT-OUTPUT» before using

IO2

IO line 2. It must be switched to the mode «input» at the page «INPUT-OUTPUT» before using

IO3

IO line 3. It must be switched to the mode «input» at the page «INPUT-OUTPUT» before using

IO4

IO line 4. It must be switched to the mode «input» at the page «INPUT-OUTPUT» before using

TSTAT1

Thermostat 1. A thermostat must be configured at the page «LOGIC» before using

TSTAT2

Thermostat 2. A thermostat must be configured at the page «LOGIC» before using

PINGER1

Pinger 1. A pinger must be configured at the page «LOGIC» before using

PINGER2

Pinger 2. A pinger must be configured at the page «LOGIC» before using

C.S. ALARM

It is an alarm signal of a smoke sensor (current sensor). The signal «C.S.ALARM» triggers when parameters of a sensor leave configured conditions «Alarm» at the page «SMOKE SENSOR» of a device web interface

C.S. FAIL

It is a signal of a smoke sensor (current sensor) failure. The signal «C.S. FAIL» triggers when parameters of a sensor leave configured conditions «Loop break» and «Loop short circuit» at the page «SMOKE SENSOR» of a device web interface

C.S. NORMIt is a signal of a normal operation of a smoke sensor (current sensor). A signal «C.S. NORM» triggers when parameters of a sensor fulfill configured conditions «Alarm», «Loop break», «Loop short circuit» at the page «SMOKE SENSOR» of a device web interface
AC PWR220 V power supply availability at an input of a device

5. Condition

It is a condition, within which a rule is changed and a command which changes an output status is issued. An available set of conditions is changed depending on a chosen type of a task. Conditions represent the essence of an input status. Possible values for a pinger are – «Silent», «Responds». For an IO line, possible values are – «logic 1», «logic 0». For a thermostat possible values are – «Below specified Т», «Above specified Т».

A rule of an «If» type works only in the moment of fulfilling a condition.

A rule of a «While» type works all the time while a condition is fulfilled.

6. Command

It is a command, which is fulfilled when a rule triggered (a condition is satisfied).

For an «If» rules possible values are – «Switch on», «Switch off». These commands trigger at the moment when a condition appears.

For a «While» rules possible values are – «Keep On», «Keep Off». These commands work all the time when a condition is fulfilled.

7.  Output

It is an output managed by a rule. Its possible values are represented in the table:

 

Name

Explanation

IO1

IO line 1. It must be switched to the mode «logic output» at the page «INPUT-OUTPUT» before using

IO2

IO line 2. It must be switched to the mode «logic output» at the page «INPUT-OUTPUT» before using

IO3

IO line 3. It must be switched to the mode «logic output» at the page «INPUT-OUTPUT» before using

IO4

IO line 4. It must be switched to the mode «logic output» at the page «INPUT-OUTPUT» before using

RELAY1

It is a relay, built into a body of a device. A relay must be switched to the mode «Logic» at the page «DISCRETE IO» before using

RELAY2It is a relay, built into a body of a device. A relay must be switched to the mode «Logic» at the page «DISCRETE IO» before using

SNMP1

SNMP Setter 1. It must be configured at the page «LOGIC» before using

SNMP2

SNMP Setter 1. It must be configured at the page «LOGIC» before using

IR1

IR command 1. A command must be recorded and saved into the cell 1 before using

IR2

IR command 2. A command must be recorded and saved into the cell 2 before using

IR3

IR command 3. A command must be recorded and saved into the cell 3 before using

IR4

IR command 4. A command must be recorded and saved into the cell 4 before using

C.S. PWR

There is a need to switch a power supply of a loop into the mode «Managed by logic» at the page «SMOKE» before using C.S. PWR output

8. Buttons Move Up/Move Down

Buttons are designed to change a position of a rule in the list thus changing a rule priority. If rules form conflicting commands for an output, the a rule that is located higher in the list will work. However, «While» вrules always have a higher priority towards «If» rules, regardless their mutual location in the list.

9. Control Buttons

Control buttons work directly when clicking them. There is no need to click the button «Apply changes» additionally.

The buttons «Start» and «Stop» control starting and stopping of the rules operation. This status is kept when switching a device off. If rules are stopped, then a warning line of a logic status will appear «10».

«Reset» button switches outputs controlled by a logic module, into the specified initial status «0» (off), and initiates a reset signal. Rules that have a reset signal RESET as an input can switch outputs to another required initial status. There is a need to take into account that if rules are not stopped before clicking the button «Reset», then a status of outputs can be immediately changed and a reset command will have no external effect.

10. Status Line

If rules operation is stopped, a warning line appears.

11. Apply Changes Button

After setting all necessary settings, click the button «Apply changes». 

Limitations

The logic module of the device NetPing 2/PWR-220 v3/ETH does not support the next «inputs» of the rules:

  • C.S. ALARM;
  • C.S. FAIL;
  • C.S. NORM;
  • SMOKE 1;
  • SMOKE 2;
  • SMOKE 3;
  • SMOKE 4;
  • AC PWR

The logic module of the device NetPing 2/PWR-220 v3/ETH does not support the next «outputs» of the rule:

  • C.S. PWR;
  • SMOKE RST

The logic module of the device NetPing 2/PWR-220 v2/SMS does not support the next «inputs» of the rules:

  • C.S. ALARM;
  • C.S. FAIL;
  • C.S. NORM;
  • SMOKE 1;
  • SMOKE 2;
  • SMOKE 3;
  • SMOKE 4;

The logic module of the device NetPing 2/PWR-220 v2/SMS does not support the next «outputs» of the rules:

  • C.S. PWR;
  • SMOKE RST