SR (FB)ΒΆ
FUNCTION_BLOCK SR
Realizes a bistable set-dominat latch
(* Example declaration *)
SRInst : SR;
(* Example in ST *)
SRInst(SET1:= VarBOOL1 , RESET:=VarBOOL2 );
VarBOOL3 := SRInst.Q1 ;
- InOut:
Scope
Name
Type
Comment
Input
SET1
BOOL
Rising edge: Set
Q1
toTRUE
(dominant)RESET
BOOL
Rising edge: Reset
Q1
toFALSE
Output
Q1
BOOL
Output value