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
GEandLEto define a small acceptable range instead.
Syntax
- step: the parent step object (from
self.add_step()) - variable_name: the boolean variable that receives the comparison result
- instruction: must be
ActionInstruction.EQ
Sequence Visual Editor

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
- NE (Not Equal): opposite of EQ
- GT (Greater Than): strict greater than
- LT (Less Than): strict less than
- Action Qualifiers Overview
- Instructions Overview