SR
PROGRAM SR_DEMO
VAR
BOOL1,BOOL2,BOOL3: BOOL;
FB:SR;
END_VAR
FB(R:=BOOL2,S1:=BOOL3,Q1=>BOOL1);
END_PROGRAM
The circuit acts as a classical RS flip-flop circuit. If both inputs are true the output is true.
Input | Type | Description | Default value |
---|---|---|---|
S1 | ANY_BOOL | Set | False |
R | ANY_BOOL | Reset | False |
Output | Type | Description |
---|---|---|
Q1 | BOOL | Output of the RS circuit |