Logical Blocks > Condition function block

Condition function block execution

Expressions are structured text that is in a specific syntax. You write expressions using the Expression Editor. An expression is made up of operands, operators, functions, constants, and keywords.

When the expression in the Condition function block is evaluated True (1) for longer than the configured TIME_DURATION, the OUT_D output and the PRE_OUT_D parameter are set. When the expression is True but changes to False (0) before the TIME_DURATION is reached, the timer is reset until the expression evaluates True again. An expression that evaluates to zero resets OUT_D and PRE_OUT_D.

The DISABLE parameter is used to bypass the block logic. When DISABLE is True, the OUT_D parameter is not set, regardless of the expression evaluation. However, the PRE_OUT_D parameter is set and can be used elsewhere.