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
SET1BOOLSets the output
Q1toTRUE(dominant)RESETBOOLResets the output
Q1toFALSEOutput
Q1BOOLOutput value