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
SR
SR parameters
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.
  • TRUE: When SET1 is TRUE.
  • FALSE: When RESET is TRUE.
Dominant bistable example
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 function block diagram example
SR ladder diagram program example
SR ladder diagram program example
SR structured text 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
Results
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal