9.8
Bistable function RS
Bistable function (reset priority) with lock
Call
RS<instance> (S, R1);
Inputs
Parameter
<Instance>
R1
S
Outputs
Parameter
Q1
Comment
After resetting with R1, output Q1 remains FALSE until it is set with S.
If R1 and S are set simultaneously (TRUE), output Q1 is reset (FALSE).
Logic function
Example
RS01 (bool_in01, bool_in02);
(* reset with input bool_in02, set with input bool_in01 *)
bool_out02 := RS01.Q1;
(* The status is output via bool_out02. *)
Data type
Description
01 to xx (specify instance with two digits)
BOOL
R1 = TRUE sets Q1 = FALSE
BOOL
S = TRUE sets Q1 = TRUE, if R1 = FALSE
Data type
Query
BOOL
OUT := RS<instance>.Q1;
9 Function modules
61