RS

RS 1:

The RS function block is bistable and RESET is dominant.

Q1 = RS (SET, RESET1)

I.e.: Q1 = NOT RESET1 AND (Q1 OR SET)

RS 2: Inputs

VAR_INPUT
    SET    : BOOL; 
    RESET1 : BOOL;
END_VAR

Name

Type

Description

SET

BOOL

Set input - Q1 is set to TRUE on a rising edge.

RESET1

BOOL

Reset input (dominant) - Q1 is set to FALSE on rising edge

RS 3: Outputs

VAR_OUTPUT
    Q1 : BOOL; 
END_VAR

Name

Type

Description

Q1

BOOL

Output

Internal implementation of the function block:

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

Requirements

Development environment

Target platform

PLC library to include

TwinCAT v3.0.0

PC or CX (x86)

Tc2_Standard