Professional Documents
Culture Documents
~.A Wi!
The Engineering
~ Resource For
~ AdvancingMobility 400 COMMONWEALTH DRIVE WARRENDALE,PA 15096
MO~
~#
850174
International Congress
& Exposition
Detroit, Michigan
February 25 - March 1, 1985
Downloaded from SAE International by University of New South Wales, Saturday, August 25, 2018
The appearance of the code at the bottom of the first page of this paper indicates
SAE's consent that copies of the paper may be made for persona! or internt:1 use, or
for the personal or inlernal use of specific clients. This consent is given on the con~
dition, however, that the copier pay the stated per article copy fee through the
Copyright Clearance Center, Inc., Operations Center, P.O. Box 765, Schenectady,
N.Y. 12301, for copying beyond that permitted by Sections 107 or 108 of the U.S.
Copyright Law. This consent does not extend to other kinds of copying such as
copying for general distribution, for advertising or promotional purposes, for
creating new collective works, or for resale.
Papers published prior to 1978 may also be copied at a per paper fee of $2.50
under the above stated conditions.
SAE routinely stocks printed papers for a period of three years following date of
publication. Direct your orders to SAE Order Department.
ISSNOI48-7191
Copyright © 1985 Society of Automotive Engineers,lnc.
This paper is subject to revision. Statements and opinions ad· Persons wishing to submit papers to be considered' for pre·
vanced in papcrs or discussion arc the author's and are his sentation or publication through SAl:: should send the manu·
responsibility. not SAE's; however. the paper has been edited script or'a 300 word abstract of a proposed manuscript to:
by SAE for uniform styling and format. Discussion will be Secretary. En!c!inecring Activity Board, SAE.
printed with the paper if it is published in SAl:: Transactions.
ror pennL~sion to publish this paper in full or in part, contact Printed in U.S.A.
the SAl: Publications Division.
Downloaded from SAE International by University of New South Wales, Saturday, August 25, 2018
850174
- a IJP sample rate FIGURE 1 DIESEL ENGINE DIGITAL SPEED CONTROL SYSTEM,
- a control algorithm
- a precision speed sensor MICROPROCESSOR SAMPLE RATE SELECTION - A
- a ,uP computation method measure of the performance of an analog control system is
- a particular J,tP given by mspection of the open loop transfer function
This paper presents a sample rate selection criteria and Gis) • His) (1)
describes the design of a J.tP based PIO control algorithm
which yields rapid transient response and satisfies the steady to obtain measures of crossover frequency (Fa) and phase
state requirements of precision speed control with a minimum margin (0). In a high performance regulator loop, a phase
fuel rack motion. The requirements of the speed sensor margin of
0148,7191/85/0225,0174$02.50
Copyright 1985 Society of Automotive Engineers, Inc.
Downloaded from SAE International by University of New South Wales, Saturday, August 25, 2018
2 850174
o • 30 (degrees) Let
ilF
is desirable at a high open loop crossover frequency (Fa). a •
Values of phase margin much less than 30 degrees are F"
undesireable and cause stability problems in the control
system. A 0 degree phase margin demonstrates instability. the phase shift at crossover frequency is given by
180 F- (1-al
C(.) ilB • (Degreel (51
F
10
0
0 2 4 6 8 10 12 14 16 18 20 a".3
Fa . F" (1 - ~)
F-
(41
AO = 5°
850174 3
L = 15.625 t - L :; ~ (8)
F' y
and from Figure 4, the phase margin is reduced by 12" at a = O. with engine acceleration coefficient
This is a major reduction in phase margin and yields a ringing
type of response.
y
In a large bore, low speed marine propulsion engine
0.2 " F' " 0.6 Hertz The engine developed torque is proportional to fuel rack
position but is delayed by engine dead time
and is a function of the engine speed range. With F/F- = 36
then t :; z e~T,S (91
21.74 " F " 7.25 Hertz The engine dead time is characterized by
for a,uP sample rate on a low speed marine engine.
to minimize control system loss in phase margin or reduction in The position of the fuel rack is proportional to the applied
crossover frequency. Figure 5 depicts a plot of the required current but delayed by the electrohydraulic actuator time
digital control samplfng frequency (F) versus control loop constant (T~)
crossover frequency (F*) satisfying the above constraint. __
1_ (101
z = T,s+1
ENGINE
-+- ~ 15 POWER
I ,0
100%~\
ISO[HRONOU~
/I \ ./ DROOP
50%
~-----!---\--
! \,
2S%~ I \
Y-+-+-+-t-l-+-+-+-.J--+.,. N
, ••.• 0."". • , • • 0 fO'
ENGINE SPEED 1,0 I +P
F' CONTROL LOOP CROSSOVER FREQUENCY (HERTZ)
4 850174
SPEED SENSOR - A magnetic pickup or proximity The measured value of the speed must be scaled to the
sensor is commonly used to obtain a measure of engine speed. accuracy of the computational algorithm
The magnetic pickup output is a sine wave at a frequency
proportional to engine speed. This frequency is distorted by Bo = 2M - N 0 B 1141
engine torsional oscillations at crankshaft speed and firing
frequency. A frequency to voltage converter with an analog to
digital convertor provides a digital measurement of speed. The CONTROL ALGORITHM SELECTION - The ~P control
measurement accuracy of a digital speed sensor is proportional algorithm selected follows the format of an analog PI or ?:D
to the operating speed range of the engine and the digital word controller. This algorithm was selected because of its familiarity,
leng~h. The output of an ideal digital speed sensor is given by applicability to the majority of industrial control problems and
.813 oS Ko oS 10. for 12 bits CURRENT DRIVER - The performance of the digital to analog
convertor and current driver is given by
and
850174 5
6 850174
51T 1 to 32 16 0
fliT 1 to 256 44 64
P .008 .008
R 12 12
M 16 16
IAmax/ARI 2 2
(I)PI = 76 at N 12
and
and must lie within the constraints
Ill pl = 307 at N = 14
The gain of the digital speed sensor for the PIO algorithms is
The digital algorithm deviation equations for a 1 bit change in then given by
measured speed are obtained from Figure 7. The computational
control algorithm yields for a 1 bit error
di = A max
A
R
0(_1_)
2R
Integer (~)
2M-R
1271 KO = 2.3 at N = 14
and
Solving the above equation with values from Table 2, for the
PID algorithm di = .053
850174 7
TABLE 3; Digital PID Control System Parameters for a Small High Speed Engine
..Ill 1 1 1 1
I 6. 26. 12. 50
KD 10 2.3 5. 1.2
fJ/T 44 44 18 18
OfT 16 16 8 8
To increase the operational speed range of the PID Both of these values are less than the minimum allowable per
algorithm, the ,uP sample time can be increased to T = .016 unit values of speed sensor gain. This result demonstrates that
second with some reduction in system transient response. the measurement accuracy requirement on speed cannot be
This allows the digital integrator gain to be increased for both met. Selecting the minimum allowable speed sensor gain to
the 12 and 14 bit speed sensors, satisfy the accuracy requirement for both the 12 and 14 bit
sensors
I = 12 at 12 bits
KO = .813
and
The PI algorithm then requires
I = 50 at 14 bits
KO = 5.0 at 12 bits
I = 20
and
KO = 1.2 at 14 bits The resulting fuel rack motion due to a 1 bit error is given by
Equations (261 and (27),
Table 3 presents a summary of the digital PIG algorithm
at 12 bits
parameters for two different speed sensors and two different
sample periods. As the number of bits in the digital speed
..Illg = 40
.sensor increases or as the sample period T increases in the PID
algorithm, the gain of the digital integrator increases and
minimizes the per unit gain of the digital speed sensor.
..Ii = .0015
Employing a similar analysis for the PI algorithm, the gain
of the digital speed sensor is given by and at 14 bits
lK A 0 IAI
Ill p !
..Illg = 10
..Ii = .0005
.21 at N 12
and
A summary of the digital PI algorithm parameters for two
.05 at N 14 different speed sensors is presented in Table 4.
Downloaded from SAE International by University of New South Wales, Saturday, August 25, 2018
8 850174
o
•"«w lllHHI<i r
COMPUTER SIMULATION STUDY - A computer •Z 1l1l11llf. L
simulation of the mathematical model depicted in Figure 7 was i1-
performed to evaluate both the transient and the steady state
"«
w
I. 'IHII,,4
,
" l.llllfll12 ~
performance of the two control algorithms. The simulation
subroutine describing the PIO algorithm is described in
I
, I· ,"
Appendix 1. Figure B presents simulation results for a start to
rated speed and addition of 100% load, with the PIO control
• ~J"J:I,lC t.-----.
, J
I
algorithm, a 12 bit speed sensor and T = .008 seconds. The • ,.<!~.~,[. ~-
I n I = 2.5 X 10-5
I I I .005
at 1 Hertz. Figures 10 to 12 show similar transient results with
different speed sensors and sample times. When the control
algorithm is changed to PI with a 12 bit speed sensor and
T::: .008 seconds, the transient response of Figure 13 is
obtained. The results are summarized in Table 5 below.
_'~-'!
,.<
1. :.
I, nI
'~'; .~ __.__
1.<'
L~ ._J!"
-- I,
I
FIGURE' TRANSIENT RESPONSE OF A DIGITAL PIO CONTROL WITH A 12 BIT SPEED FlGURE 11) TRANSIENT RESPONSE OF A DIGITAL 1'10 CONTROL WITH A 14 OIT SPEED
BENSOR ANO T'.OO3 SECOND. SENSOR AND T".ooo SECOND.
Downloaded from SAE International by University of New South Wales, Saturday, August 25, 2018
850174 9
::l
a: . 'J' TABLE 5: Digital Control Transient Response
~ .<:
_;·~~,r.~J~J~~~-~~
".1
~. <. PID 12 ,016 ,044 ,20
PID 14 .016 .044 ,83
PI 12 .008 ,076 1.23
.. .~ l 1.5 2 ,,~ J ... 5 " '4." :. ~.~ (; b.~ 7
Tn£: S(CO«IJS
ntHWIl DltSel 4-71 eo 1(leEll'1f'tl ,",10 24 nIT tNTCGl:R f<% DROOP
T';i-.l:lIC, A/IHI? BIn...~a--1.10HI.-IVI?DlTt..-eTCeeftfl)HOV 50..
srnnq!, COl'll' ' £t lGAlt'-Fl<:: PIP DYNFI11CS f"F;:{)C INT SAE:4 lJCC
FIOURE 11 TRANSIEKT REllPONSE OF It. OIGITAl- PIC COHTllOL wmt II. 12 BIT $PE£D ENGINE TEST RESULTS - A real time simulation of the
SENSOR AND T',015 SECOND.
digital diesel governor has been developed using an HP 9836
computer and a HP 8940B multipr09rammer for AID and D/A
conversions. The real time model allows a rapid test of different
control algorithms and concepts before hardware is designed.
....
I . ~.
n
Control algorithms similar to Appendix 1 were implemented in
PASCAL and tested with an electrohydraulicfuel rack actuator
on a Detroit Diesel 4-71 engine generator set. The engine is
w
w
Z
.,
1.1,-
rated at 1800 RPM and 125 Kw,
0
~
w
w
.c'
~
~
z .,.,
"w , :'
~
,··1., , .•
~
,., I
.OJ 7 VOLT
, , I
, -'/*H~----.l._··--- ---
, ,....-7;~,....T'''.';"_;l_,,· o VOLT
" ,, -'T'~;f:"S~~:, l\ (.!:,
ltt'£. r....T WDS
DtTPOtl nrtSCl 4~71 e Ille8l'<f'H PIli 24 IJlT INTCr.t:k 0:' flRn)P +5%
TS-.~l& II-"U(14 lltn..Jc-l.lSJD-f1(12BlT"-BTr.ceDfl'NOV 7 IH
STfHI~IO ((IIiI' " [l IGflIl~'SO PIO D\1*'tlICS PI'tt1G INT $(£5 ICC
. -'-'-·1-5%
·~~"-·~'··~-·-~~"~~
..-~.~.""';;:;!..,~1 SECOND
PIO ANALOG CONTROL.
:±JmB7VOLT
o VOLT
+5%
-s%
1 SECOND
10 850174
A simple digital speed governor was developed using an 8 n engine speed per unit
bit pP, an 8 millisecond sample time and a 12 bit digital speed ~n incremental speed measurement accuracy per unit
sensor. Figure 14 depicts a comparison of the transient and
steady state response between an analog PID control and the n, minimum engine speed per unit
digital control on a diesel engine. On each chart the upper n2 maximum engine speed per unit
trace depicts voltage applied to an actuator which positions the T sample period of digital control
fuel rack and the lower trace measures engine speed. The
digital governor was set with I = 4, WT =25, OfT = 16. The t engine developed torque per unit
maximum speed deviations were 4.2 percent for the analog Z-1 sample period delay of digital control
control and 4.6 percent for the digital control. The transient z fuel rack position per unit
response and the steady state response of the two controls
compare favorably. i engine acceleration coefficient per unit
CONCLUSIONS - A ,uP sample rate selection criteria 71 engine dead time seconds
has been presented and the theoretical performance of two 72 actuator time constant seconds
digital control algorithms for diesel engine governing has been
described. The effect of a 12 bit and a 14 bit digital speed .uP microprocessor abbreviation
sensor upon the operating range and steady state performance {j digital contrallead compensation time constant
of each algorithm has been shown. A high performance digital [3 digital control lead compensation time constant
PIO algorithm provides rapid transient response with minimum
fuel rack motion at steady state but imposes constraints on the
digital speed sensor operational range, The speed sensor
range can be increased by increasing the number of bits (N) in
the speed sensor and the sample period T. For a small high REFERENCES
speed engine, minimum PlD algorithm requirements are a 12
bit speed sensor, a .008 second sample period and 0.1 per unit 1) Ragazzini, J.R. and G.F. Franklin, "Sampled-Date
speed range. A 14 bit speed sensor would allow the per unit Control Systems", McGraw Hill Book Company, New
speed range to be increased to .83 at .016 second sample York, New York, 1958, pp 123-125.
period.
The digital PI algorithm does not provide the rapid 2) DeBolt, R.R. and B.E. Powell, "A Natural 3-Mode
transient response of the PIO algorithm but does yield minimum Controller Algorithm for DOC", ISA Journal, Sept, 1966.
fuel rack motion with a wide digital speed sensor range for both
the 12 and 14 bit sensors. 3) Franklin, G.F. and J.D. Poweil, "Digital Control of
Dynamic Systems", Addison-Weley Publishing, Reading,
MA,1960.
NOMENCLATURE