9 Function modules
60
9.7 Bistable function SR
Bistable function (set priority) with lock
Call
SR<instance> (S1, R);
Inputs
Outputs
Comment
Output Q1 remains TRUE after being set by S1 until it is reset with R.
If S1 and R are set simultaneously (TRUE), output Q1 is also set (TRUE).
Logic function
Example
SR01 (bool_in01, bool_in02);
(* set with input bool_in01, reset with input bool_in02 *)
bool_out01 := SR01.Q1;
(* The status is output via bool_out01. *)
Parameter Data type Description
<Instance> 01 to xx (specify instance with two digits)
S1 BOOL S1 = TRUE sets Q1 = TRUE
R BOOL R = TRUE sets Q1 = FALSE, if S1 = FALSE
Parameter Data type Query
Q1 BOOL OUT := SR<instance>.Q1;