AutomationView Documentation

EQ (Equal)

Compares two values and outputs TRUE if they are equal.


Description

The EQ instruction performs an equality comparison. It evaluates whether two values are exactly equal and writes the boolean result to the target variable.

This is commonly used for checking if a counter has reached a specific value, if a process variable matches a setpoint, or if a mode selector is in a particular position.

When comparing floating-point values, exact equality may not work as expected due to rounding. Consider using GE and LE to define a small acceptable range instead.


Syntax

Sequence Visual Editor

Action at_target with the EQ instruction comparing position and target
The BOOL action variable is TRUE while both operands are equal.

Python

from automation_machine import ActionInstruction

step.add_action("variable_name", "Description", instruction=ActionInstruction.EQ)

See Also