61
9 Function modules
9.8 Bistable function RS
Bistable function (reset priority) with lock
Call
RS<instance> (S, R1);
Inputs
Outputs
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. *)
Parameter Data type Description
<Instance> 01 to xx (specify instance with two digits)
R1 BOOL R1 = TRUE sets Q1 = FALSE
S BOOL S = TRUE sets Q1 = TRUE, if R1 = FALSE
Parameter Data type Query
Q1 BOOL OUT := RS<instance>.Q1;