RS
PROGRAM RS_DEMO VAR BOOL1,BOOL2,BOOL3: BOOL; FB:RS; END_VAR FB(R1:=BOOL2,S:=BOOL3,Q1=>BOOL1); END_PROGRAM
Classical RS Flip-Flop circuit. If both inputs are true, the output is false.
| Input | Type | Description | Default value |
| S | ANY_BOOL | Set | False |
| R1 | ANY_BOOL | Reset | False |
| Output | Type | Description |
| Q1 | BOOL | Output of the flip-flop circuit |