Detects a falling edge (TRUE-to-FALSE transition) and produces a single-cycle pulse.
The F_TRIG instruction monitors its input for a falling edge - the moment the signal transitions from TRUE to FALSE. When this transition occurs, the output produces a single-cycle pulse (TRUE for exactly one scan cycle), then returns to FALSE.
This is useful when you need to react to a signal turning off, such as detecting when a button is released or when a sensor loses its target.
Typical uses include:
ActionQualifier enum (default: ActionQualifier.N)ActionInstruction.F_TRIG{GIF:HERE} - Screenshot showing a step named "StepName" with an action on "variable_name" using the F_TRIG (falling edge detection) instruction in the visual sequence editor
from automation_machine import Sequence, StepType, ActionInstruction
class Example(Sequence):
def setup(self):
step = self.add_step(StepType.INITIAL, name="StepName")
step.add_action("variable_name", "Description", instruction=ActionInstruction.F_TRIG)