Compares two values and outputs TRUE if they are equal.
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.
{GIF:HERE} - [Screenshot showing the EQ (Equal) instruction configuration in the visual editor, with the action set on a step and instruction type set to EQ for a boolean comparison variable]
from automation_machine import ActionInstruction
step.add_action("variable_name", "Description", instruction=ActionInstruction.EQ)
self.add_step())ActionInstruction.EQ