SR (FB)ΒΆ

FUNCTION_BLOCK SR

Realizes a bistable set-dominat latch

   (* Implementation of SR in ST*)
Q1 := SET1 OR (NOT RESET AND Q1);

(* Example declaration *)
SRInst : SR;

(* Example in ST *)
SRInst(SET1:= VarBOOL1 , RESET:=VarBOOL2 );
VarBOOL3 := SRInst.Q1 ;
InOut:

Scope

Name

Type

Comment

Input

SET1

BOOL

Sets the output Q1 to TRUE (dominant)

RESET

BOOL

Resets the output Q1 to FALSE

Output

Q1

BOOL

Output value