Table of Contents

SR

Block name

SR

ST call

PROGRAM SR_DEMO
     VAR
     BOOL1,BOOL2,BOOL3: BOOL;
    FB:SR;
 END_VAR
    FB(R:=BOOL2,S1:=BOOL3,Q1=>BOOL1);
END_PROGRAM

Description

The circuit acts as a classical RS flip-flop circuit. If both inputs are true the output is true.

Inputs

InputType DescriptionDefault value
S1 ANY_BOOLSet False
R ANY_BOOLReset False

Outputs

OutputTypeDescription
Q1 BOOLOutput of the RS circuit

Application example