RS (FB)ΒΆ
FUNCTION_BLOCK RS
Realizes a bistable reset-dominat latch
(* Implementation of RS in ST *)
Q1 := (NOT RESET1 AND (SET OR Q1));
(* Example declaration *)
RSInst : RS ;
(* Example in ST *)
RSInst(SET:= VarBOOL1 , RESET1:=VarBOOL2 );
VarBOOL3 := RSInst.Q1 ;
- InOut:
Scope
Name
Type
Comment
Input
SETBOOLSets the output
Q1toTRUERESET1BOOLResets the output
Q1toFALSE(dominant)Output
Q1BOOLOutput value