Changeset 870 for branches/gui/eml/controllers/pi.mso
- Timestamp:
- Oct 29, 2009, 11:02:01 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/eml/controllers/pi.mso
r686 r870 9 9 PARAMETERS 10 10 Kp as Real (Brief="Controller gain", Default=0.5); 11 Ki 11 Ki as Real (Brief="Integral time constant", Unit='s'); 12 12 bias as Real (Brief="Previous scaled bias",Default=0.5); 13 13 … … 16 16 17 17 VARIABLES 18 in Input as control_signal (Brief="Previous scaled input signal", Default=0.5, PosX=0, PosY=0.5); 19 out Output as control_signal (Brief="Scaled output signal", Default=0, PosX=0.54, PosY=1); 20 SetPoint as Real (Brief="Scaled setPoint", Lower=0, Upper=1, Default=0.5); 18 in Input as control_signal (Brief="Previous scaled input signal", Default=0.5, PosX=0, PosY=0.5, Protected=true); 19 out Output as control_signal (Brief="Scaled output signal", Default=0, PosX=0.54, PosY=1, Protected=true); 21 20 22 input 23 setPoint 21 input as Real (Brief="Scaled input variable", Hidden=true); 22 setPoint as Real (Brief="Scaled set point", Hidden=true); 24 23 intTerm as Real (Brief="Integral term", Default=0, Protected=true); 25 outps 24 outps as Real (Brief="Variable outp scaled between 0 and 1", Hidden=true); 26 25 26 SetPoint as Real (Brief="Scaled setPoint", Lower=0, Upper=1, Default=0.5); 27 27 28 EQUATIONS 28 29 … … 46 47 end 47 48 48 49 INITIAL 49 50 intTerm = 0; 51 50 52 end 51 53
Note: See TracChangeset
for help on using the changeset viewer.