SRΒΆ

Provided by Standard Library.

Function block, making bistable function blocks dominant.

Inputs:

SET1 : BOOL;

RESET : BOOL;

Output:

Q1 : BOOL;

Q1 = SR (SET1, RESET) means:

Q1 = (NOT RESET AND Q1) OR SET1

Declaration example:\ \ \ \

SRInst : SR ;

Example in IL:\ \ \ \

../_images/879fae991e8f8534c0a8640e01947982

Example in FBD:\ \ \ \

../_images/c48bf41d1e8f8487c0a8640e01947982

Example in ST:\ \ \ \

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

VarBOOL3 := SRInst.Q1 ;