Simulation of RS flip-flop
When implementing relay protection algorithms, RS flip-flops are often used. A RS flip-flops is a nonlinear element whose output signal can be in one of two stable states depending on the input signals. The most commonly used RS flip-flop has 2 inputs: S – set (to set the output value) and R – reset (to reset the output value).