RS

RS 1:

Resetting Bistable Function Blocks

Q1 = RS (SET, RESET1)

means: Q1 = NOT RESET1 AND (Q1 OR SET)

VAR_INPUT

VAR_INPUT
    SET    : BOOL; 
    RESET1 : BOOL;
END_VAR

VAR_OUTPUT

VAR_OUTPUT
    Q1 : BOOL; 
END_VAR

Internal implementation of fb:

Q1: = NOT RESET1 AND (Q1 OR SET);

Requirements

Development environment

Target system type

PLC libraries to be linked

TwinCAT v3.0.0

PC or CX (x86)

Tc2_Standard