Table of Contents

RS

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

InputType DescriptionDefault value
S ANY_BOOLSet False
R1 ANY_BOOLReset False

Outputs

OutputTypeDescription
Q1 BOOLOutput of the flip-flop circuit

Application example