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

The operation of the logic module is based on a list of programmed rules. The rules allow you to set a flexible logic control circuit for IO lines, relays, and other device firmware modules, depending on changing external conditions.

where:

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.

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: “While”, “If”. The “While” rules react to the state of the input and act constantly. The “If” rules respond to changes in the input state (second position in the rule line). The “While” rule is intended for programming the conditions under which the output is constantly kept in a given state while the condition is fulfilled. When the condition is not satisfied, the output state may be changed by other rules. The “If” rule is intended for programming an instantaneous reaction to a given event, such as a change in the logic level on an IO line or the disappearance of a response during pinger operation. As long as the input of the rule remains unchanged, the "If" rule does not affect the state of its output, even if the condition of the rule is satisfied. "While" rules always take precedence over "If" rules. For example, while one of the "While" rules holds the output off, rules like "If", ​​which include output for a given event, will not work.

4. Input

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

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

NameExplanation

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

IO 1

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

IO 2

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

IO 3

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

IO 4

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

TSTAT 1

Thermo (hygro) stat 1. Before using the thermo (hygro) stat, it must be configured on the "LOGIC" page.

TSTAT 2

Thermo (hygro) stat 1. Before using the thermo (hygro) stat, it must be configured on the "LOGIC" page.

PINGER 1

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

PINGER 2

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

AC PWR220 V power supply availability at an input of a device

5. Condition. The condition under which 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 selected input type and reflects the meaning of the input state:

  • RESETpossible values – «log. 1», «log. 0»;
  • IO 1, IO 2IO 3IO 4 possible values – «log. 1», «log. 0»;
  • TSTAT 1, TSTAT 2 возможные значения – «Below specified T», «Above specified T»;
  • PINGER 1, PINGER 1 возможные значения – «Responding», «No Respond»;
  • AC PWR possible values – «Available», «Not Available»

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», "Flip". These commands trigger at the moment when a condition appears.

For a «While» rules possible values are – «Keep switched on», «Keep switched 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

IO 1

IO line 1. It must be switched to the mode «output of logic» on the page «DISCRETE IO» before using 

IO 2

IO line 2. It must be switched to the mode «output of logic» on the page «DISCRETE IO» before using

IO 3

IO line 3. It must be switched to the mode «output of logic» on the page «DISCRETE IO» before using

IO 4

IO line 4. It must be switched to the mode «output of logic» at the page «DISCRETE IO» before using

RELAY N

It is a relay, built into the body of the device, where N - is a number of the relay channel. The relay must be switched to the mode «Logic» on the page «RELAYS» before using

SNMP 1

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

SNMP 2

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

IR 1

IR command 1. A command must be recorded and saved into the cell 1 before using on the page «IR COMMANDS».

IR 2

IR command 2. A command must be recorded and saved into the cell 2 before using on the page «IR COMMANDS».

IR 3

IR command 3. A command must be recorded and saved into the cell 3 before using on the page «IR COMMANDS». 

IR 4

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

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. 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».