SRΒΆ
Provided by standard.lib.
Making Bistable Function Blocks Dominant:
Q1 = SR (SET1, RESET) means:
Q1 = (NOT RESET AND Q1) OR SET1
The input variables SET1 and RESET as well as the output variable Q1 are type BOOL.
Declaration example
SRInst : SR ;
Example in IL
CAL SRInst(SET1 := VarBOOL1, RESET := VarBOOL2)
LD SRInst.Q1 ST VarBOOL3
Example in FBD
Example in ST
SRInst(SET1:= VarBOOL1 , RESET:=VarBOOL2 );
VarBOOL3 := SRInst.Q1 ;