SR
Making Bistable Function Blocks Dominant:
Q1 = SR (SET1, RESET)
means: Q1 = (NOT RESET AND Q1) OR SET1Q1, SET1 and RESET are BOOL variables.
VAR_INPUT
VAR_INPUT
SET1 : BOOL;
RESET : BOOL;
END_VAR
VAR_OUTPUT
VAR_OUTPUT
Q1 : BOOL;
END_VAR
Internal implementation of fb:
Q1 := (NOT RESET AND Q1) OR SET1;
Requirements
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 |