Latch reset contact. Activates when state is 1 or greater (set), allowing the latch to be reset. Paired with RECURSE_MODIFIED to flip the state back to 0. Complementary to LATCH_SET for reversible state toggles.
PLCInvertible
Ladder Diagram
Fields
Field
Data Type
Size
Side
Description
state
NUMERIC
1-4 B
Conditions
Current latch state: 0 = unset, ≥ 1 = set
delay_blocks
NUMERIC
1-4 B
Conditions
Optional delay parameter (block count) for reset timing
Public key folded into Merkle leaf via merkle_pub_key (PubkeyCountForBlock = 1). No key field in conditions.
Two NUMERIC fields (state and delay_blocks) are required.
This latch is in the set state (1) with a 144-block delay parameter. A spend authorized by the resetter key with RECURSE_MODIFIED will flip state back to 0.
Use Cases
Reset Authorization
A separate key holder can reset a latch that was previously set, returning the covenant to its original state. Useful for multi-party workflows where set and reset are controlled by different parties.
Feature Deactivation
Paired with LATCH_SET, this creates a toggle system. Features activated by setting the latch can be deactivated by resetting it, enabling on/off governance controls within covenant chains.
Reversible State Toggle
LATCH_SET and LATCH_RESET together model a full SR (set-reset) flip-flop in ladder logic. The covenant can cycle between states indefinitely, with different keys controlling each transition.