SR (set/reset)
The SR instruction sets a dominant bistable.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the Micro810, L20E, L50E, and L70E controllers.
SR

Parameter | Parameter Type | Data Type | Description |
---|---|---|---|
SET1 | Input | BOOL | TRUE: Sets Q1 to TRUE (dominant: highest priority when determining instruction behavior). |
RESET | Input | BOOL | TRUE: Resets Q1 to FALSE. |
Q1 | Output | BOOL | Boolean memory state.
|
Set1 | Reset | Q1 | Result Q1 |
---|---|---|---|
0 | 0 | 0 | 0 |
0 | 0 | 1 | 1 |
0 | 1 | 0 | 0 |
0 | 1 | 1 | 0 |
1 | 0 | 0 | 1 |
1 | 0 | 1 | 1 |
1 | 1 | 0 | 1 |
1 | 1 | 1 | 1 |
SR examples
SR function block diagram example

SR ladder diagram program example

SR structured text example

(* ST Equivalence: SR1 is an instance of a SR block *) SR1((auto_mode & start_cmd), stop_cmd); command := SR1.Q1;
Results

Provide Feedback