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

SET

BOOL

Sets the output Q1 to TRUE

RESET1

BOOL

Resets the output Q1 to FALSE (dominant)

Output

Q1

BOOL

Output value