Reactions Workspace

Reactions are located under Applications > Logics > Reactions in the Application View of System Browser. They may be further organized into subfolders under the main Reactions folder.

Reaction Editor

In Engineering mode, when you select an existing reaction in System Browser, or select a folder to start configuring a new one, the Reaction Editor tab displays.

To correctly create and enable a new reaction you must configure at least one Action output instruction and one input trigger (Time and Organization Mode, Events, or Values and States).

 

General Settings of a Reaction

When you configure a reaction, the General Settings expander lets you enter comments or remarks for a reaction.

 

Input Triggers of a Reaction

As the input of the reaction, you can configure different types of triggers defining when, in what circumstances, and for what combination of field conditions (events, or changes in value/state) a reaction will execute its output instructions.

When you configure a reaction, the Triggers expander lets you set the following:

You can also configure the Boolean logic between the triggers:

 

Technical Notes

 

Output Instructions of a Reaction

When you configure a reaction, the Output expander lets you define a set of instructions that specify the sequence of commands you want to execute when:

Configuring the Else Action is optional.

Inside the Action or Else Action expander, you specify the output instructions you want to execute. Each instruction occupies one row and defines a command that will be issued when that instruction is executed.

You configure these instructions in the same way as you do for macros. For details, see Macros Workspace.

With each instruction you can:

(Optional) If required, you can also choose to convert the Else or Else Action instructions into a separate macro:

  1. In the Output expander, depending on which output instructions you want to convert, open the Action or Else Action expander.
  2. Click Save As.
  3. When a message asks if you want to replace the output instructions with a new macro, click one of the following:
    • Yes. The current output instructions will be saved as a new macro in the Macros folder. And the current output will be changed so that it contains just one instruction, invoking this newly created macro.
    • No. The current output instructions will be saved as a new macro in the Macros folder. However, the current reaction output will not be changed (the list of instructions will not be replaced by a call to the newly created macro).

 

Technical Notes

Reaction Editor Toolbar Controls

 

Selection in System Browser

[Engineering mode]

Reaction object

Reaction folder or subfolder

Delete

Delete the currently selected reaction.

Delete the currently selected reactions folder and any reactions contained inside it. (You cannot delete the main Reactions folder.)

Save

Save the changes made to the current reaction.

n.a.

Save As

Save the currently selected reaction with a different name. You can use this to create a new reaction from an existing one.

Create a new reaction object. You must define at least one input trigger and one output instruction before you can save.

New

n.a.

Create a new subfolder under the currently selected one.

 

info

If you try to save a reaction whose configuration is invalid, a message box informs you of what errors you need to correct, and where they are located.