Get Started
Control
On this page
  1. Add
  2. Condition Operator
  3. Condition Option
  4. Priority
  5. Common Settings and Management

Control

A control is the basic execution unit of algorithm blocks, consisting of a condition area and an action area. When the condition area is met, the actions execute in order, and after all actions complete, the condition area is evaluated again. When one logic holds several controls, they run in order from the top, and once the last one finishes execution returns to the first.

Diagram of a control: when the condition area (condition 1, condition 2) is met, action 1 and action 2 in the action area run in order and flow returns to the condition area
The execution loop of a control. When the condition area is met, the actions in the action area run in order, and then the condition area is evaluated again.

The condition area can contain conditions and condition groups; the action area can contain actions, action groups, and controls. Nested structures are supported, so you can build configurations that branch into different actions depending on the situation after a condition is met.

Diagram showing that a control's condition area holds conditions and condition groups while its action area holds actions, action groups, and controls
Blocks allowed in each area. Conditions and condition groups go in the condition area; actions, action groups, and controls go in the action area.
Diagram of a nested structure: condition 1 OR condition group 1 (condition 2 AND condition group 2 (condition 3 OR condition 4)) leads to action 1, action group 1, and control 2 in sequence
An example of a nested structure. Condition groups are nested several levels deep in the condition area, and action groups and controls in the action area split the execution flow.
Example of controls nested inside a control
Nested controls. When a person is detected (outer control), different actions run depending on the posture evaluation (inner controls).

Add

  • When the logic is empty, select Control from + Add in the upper right.
  • When the inside of a control group or a control's action area is empty, select Control from the add button shown in that place.
  • Where blocks already exist directly under the logic, inside a control group, or in an action area, use the + button above or below a block.

Condition Operator

The operator that combines multiple conditions or condition groups in the condition area.

  • AND: Actions execute only when every condition and condition group in the condition area is met.
  • OR: Actions execute when at least one condition or condition group is met.

When the condition area holds only one condition, leave the default (AND).

Diagram of a control with condition operator AND where condition 1, condition 2, and the condition group are all shown as met
AND. Condition 1, condition 2, and the condition group in the condition area must all be met for the actions to run.
Diagram of a control with condition operator OR where only condition 2 is shown as met
OR. The actions run when condition 2 alone is met.

Condition Option

An option applied to how the condition area is evaluated.

  • None: The condition is met when true and not met when false.
  • Invert: The condition is met when false and not met when true.
  • Rising Edge: Met only at the moment the condition changes from false to true. Example: the moment a push button is pressed.
  • Falling Edge: Met only at the moment the condition changes from true to false. Example: the moment a pressed push button is released.
  • Hold Time: Met once when the condition stays true for the specified hold time. The hold time resets to zero when the condition is met or becomes false during the hold period. Example: holding a push button for 3 seconds.
  • True Count: The count increases by one each time the condition changes from false to true, and the condition is met once when the count reaches the specified value. The count resets to zero when met, or when the timeout expires. Example: pressing a push button 3 times.

With True Count selected, you also set the count, the timeout, and the Timeout Mode. Interval Time requires the interval between the moments the condition becomes true to stay within the timeout (e.g. pressing 3 times with intervals shorter than 1 second). Total Time requires the total time from the first true moment until the full count to stay within the timeout (e.g. 3 presses within 5 seconds of the first press).

Depending on the selected condition option, the following fields are also shown.

FieldShown whenDefault
Hold DurationCondition Option is Hold Time5 seconds
CountCondition Option is True Count3 (1 to 65535)
TimeoutCondition Option is True Count1 second
Timeout ModeCondition Option is True CountInterval Time
Note Sensor readings can flip between true and false in a short time. Without an option, the actions may run repeatedly each time; the Hold Time option is a recommended way to stabilize the evaluation.

Priority

Enter the priority to apply when the control belongs to a control group whose priority mode is Priority. If not applicable, leave the default of 1. The range is -32768 to 32767, and lower numbers mean higher priority.

Common Settings and Management

Enabled, Name, and Reverse Execution behave the same as for logic. A disabled control does not execute, and any name can be used. Move controls by drag and drop, and edit, duplicate, copy, cut, or delete them from the right-click menu. Deleting a control also deletes all blocks it contains, and they cannot be recovered. See Common Block Operations for details.