SR

The SR function block is bistable and SET is dominant.
Q1 = SR (SET1, RESET)
I.e.: Q1 = (NOT RESET AND Q1) OR SET1Q1, SET1 and RESET are BOOL variables.
Inputs
VAR_INPUT
SET1 : BOOL;
RESET : BOOL;
END_VARName | Type | Description |
|---|---|---|
SET1 | BOOL | Set input (dominant) - Q1 is set to TRUE on a rising edge |
RESET | BOOL | Reset input - Q1 is set to FALSE on a rising edge |
Internal implementation of the function block:
Q1 := (NOT RESET AND Q1) OR SET1;Requirements
Development environment | Target platform | PLC library to include |
|---|---|---|
TwinCAT v3.0.0 | PC or CX (x86) | Tc2_Standard |
Outputs