This block generates a relay output yDif = (u_m -
u_s)/r, where u_m is the measurement,
u_s is the setpoint and r is the typical
range of control error.
This block also generates the control output y, and
a boolean relay switch output yOn using the following
procedure.
Step 1: Calculate control error,
reverseActing = true, set the
control error err = (u_s - u_m)/r, else set err
= (u_m - u_s)/r.Step 2: Calculate y and yOn,
err > deaBan and trigger =
true, then y = yHig and yOn =
true,err < -deaBan and trigger =
true, then y = yLow and yOn =
false,y and yOn are kept as the
initial values.where deaBan is a dead band, yHig and
yLow are the higher value and the lower value of the
output y, respectively.
J. Berner (2017). "Automatic Controller Tuning using Relay-based Model Identification." Department of Automatic Control, Lund University.
r to relay
controller.reverseActing