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

../_images/0e19a5ce0674cde30a317f343e68d9ba

Example in ST

SRInst(SET1:= VarBOOL1 , RESET:=VarBOOL2 );

VarBOOL3 := SRInst.Q1 ;