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