SR

The function block SR 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_VAR
Name | Type | Description |
---|---|---|
SET1 | BOOL | Set input |
RESET | BOOL | Reset input |
Outputs
VAR_OUTPUT
Q1 : BOOL;
END_VAR
Internal implementation of the function block:
Q1 := (NOT RESET AND Q1) OR SET1;
Name | Type | Description |
---|---|---|
Q1 | BOOL | The output is set. |
Requirements
Development environment | Target platform | PLC library to include |
---|---|---|
TwinCAT v3.0.0 | PC or CX (x86) | Tc2_Standard |