Set - Reset
A simple latch-style logic block that stores a boolean state. Use it when you want a trigger to turn something on and another trigger to turn it off, while keeping the last state between evaluations.
π₯ Inputs
SetSend a TRUE signal to set the latched output.ResetSend a TRUE signal to clear the latched output.
π€ Outputs
CheckCurrent latched boolean value (TRUE when set, FALSE when reset).
πΉοΈ Controls
No interactive controls or widgets. This block only uses its input sockets to change the latched state.
π― Features
Latching behavior that preserves the last output until changed.
Resettakes precedence: whenResetis active the output is cleared regardless ofSet.Stable output suitable for feeding other logic, counters, indicators, or actuators.
π How to use
Connect a momentary or conditional signal to
Setto switch the latch on.Connect a separate signal to
Resetto switch the latch off.Use the
Checkoutput as a persistent enable/flag for subsequent processing or outputs.
π Behavior during run
If
Resetis TRUE the output becomes FALSE.Else if
Setis TRUE the output becomes TRUE.Else the output remains at its previous value.
π‘ Tips and Tricks
Use
Logic Inputfor manual control ofSetandResetduring testing.Pair with
Rising EdgeorEdge Risingwhen your trigger is a momentary pulse so the latch toggles only once per event.Use
Delay Step,ON DelayorOFF Delayto create timed resets or to implement simple debouncing for noisy signals.Combine with
Counterto count occurrences while the latch is active; feed the latch output into the counter enable.Use
And,OrandNotto build more complex set/reset conditions (for example require multiple conditions before setting).Drive a visual indicator using
Led Outputor send the latched state toOutputfor external systems.
π οΈ Troubleshooting
If the latch never changes, verify the upstream block is sending a changing boolean and consider using
Rising Edgeto convert a continuous TRUE into a single trigger.If the latch immediately clears when you try to set it, check whether the
Resetinput is being driven TRUE by another block.For bouncing or repeated triggers, add
Delay Stepor an appropriate edge detector to avoid multiple unintended toggles.
Last updated
Was this helpful?