SR

SR 1:

Making Bistable Function Blocks Dominant

Q1 = SR (SET1, RESET)

means: Q1 = (NOT RESET AND Q1) OR SET1Q1, SET1 and RESET are BOOL variables.

VAR_INPUT

VAR_INPUT
    SET1  : BOOL; 
    RESET : BOOL;
END_VAR

VAR_OUTPUT

VAR_OUTPUT
    Q1 : BOOL;
END_VAR

Internal implementation of fb:

Q1 := (NOT RESET AND Q1) OR SET1;

Requirements

Development environment

Target system type

PLC libraries to be linked

TwinCAT v3.0.0

PC or CX (x86)

Tc2_Standard