Back to FBD reference

Memory

RS

Reset-dominant latch

The RS block stores Q between scans. Input S sets the state, while input R resets it with priority.

Typical FBD symbol

R
S
RS
Q
Typical FBD symbol for RS

Inputs

NameTypeRequiredDescription
RBOOLYesReset for Q. This input has priority over set.
SBOOLYesSet for Q when reset is not active.

Outputs

NameTypeRequiredDescription
QBOOLYesThe retained boolean state.

Stateful

Yes, the block keeps internal state between scans.

Behavior rule

Q = (previousQ OR S) AND NOT R

Practical use

  • start seal-in logic with reset or stop priority;

What to watch

  • If R and S are TRUE at the same time, reset has priority, so Q = FALSE.
  • Do not confuse it with SR: SR gives priority to set when S and R are both TRUE.

Related blocks