Documentation

RS FlipFlop (IEC 61131)

Block name

RS

ST call

PROGRAM RS_DEMO
VAR
BOOL1,BOOL2,BOOL3: BOOL;
FB:RS;
END_VAR
FB(R1:=BOOL2,S:=BOOL3,Q1=>BOOL1);
END_PROGRAM

Description

Classical RS Flip-Flop circuit. If both inputs are true, the output is false.

Inputs

Input Type Description Default value
S ANY_BOOL Set False
R1 ANY_BOOL Reset False

Outputs

Output Type Description
Q1 BOOL Output of the flip-flop circuit

Application example