Writes a boolean value to the target variable while the action is active.
The STORE instruction copies the action's activation state directly to the target boolean variable. When the action is active, the variable is set to TRUE. When the action becomes inactive, the variable is set back to FALSE.
This is the most commonly used instruction in Sequence programs. It is the default behavior for controlling outputs that should follow the step's state: the output turns on when the step is active and turns off when the step deactivates.
Unlike
SET, theSTOREinstruction does not latch the value. The variable returns toFALSEas soon as the action stops.
ActionQualifier enum (default: ActionQualifier.N)ActionInstruction enum (default: ActionInstruction.STORE)Both
ActionQualifier.NandActionInstruction.STOREare defaults and can be omitted.
{GIF:HERE} - Screenshot showing a step named "StepName" with an action on "variable_name" using the default N qualifier and STORE instruction in the visual sequence editor
from automation_machine import Sequence, StepType
class Example(Sequence):
def setup(self):
step = self.add_step(StepType.INITIAL, name="StepName")
step.add_action("variable_name", "Description")