TwinCAT PLC Library: Standard

FUNCTION_BLOCK RS

RS

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);
Development environment Target system type PLC libraries to include
TwinCAT Version >= 2.6.0 PC or CX (x86) Standard.Lib
TwinCAT Version >= 2.6.0 BC (165) Standard.Lb6
TwinCAT Version >= 2.9.0 BCxx50 or BX Standard.lbx
TwinCAT Version >= 2.10.0 Build >= 1301 CX (ARM) Standard.lib