1. Trang chủ
  2. » Kỹ Thuật - Công Nghệ

Handbook of Industrial Automation - Richard L. Shell and Ernest L. Hall Part 4 potx

37 367 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 37
Dung lượng 557,47 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

1.5 DIGITAL-TO-ANALOG CONVERTERSDigital-to-analog D/A converters, or DACs, providereconstruction of discrete-time digital signals into con-tinuous-time analog signals for computer interf

Trang 1

144 Garrett

Figure 4 Butterworth lowpass ®lter design example

Table 5 Filter Passband Errors

Frequency Amplitude response A… f † Average ®lter error "filter%FS

1.0000.9980.9880.9720.9510.9240.8910.8520.8080.7600.707

1.0001.0001.0001.0000.9980.9920.9770.9460.8900.8080.707

0%

0.30.91.93.34.76.38.09.711.513.3

0%

0.20.71.42.33.34.66.07.79.511.1

0%00000.20.71.42.64.46.9

Trang 2

factor n 1=2for n identical signal conditioning channels

combined Note that Vdiff and Vcm may be present in

any combination of dc or rms voltage magnitudes

External interference entering low-level

instrumen-tation circuits frequently is substantial, especially in

industrial environments, and techniques for its

attenuation or elimination are essential Noise coupled

to signal cables and input power buses, the primary

channels of external interference, has as its cause

local electric and magnetic ®eld sources For example,

unshielded signal cables will couple 1 mV of

interfer-ence per kilowatt of 60 Hz load for each lineal foot of

cable run on a 1 ft spacing from adjacent power cables

Most interference results from near-®eld sources,

pri-marily electric ®elds, whereby the effective attenuation

mechanism is re¯ection by a nonmagnetic material

such as copper or aluminum shielding Both

copper-foil and braided-shield twinax signal cables offer

attenuation on the order of 90 voltage dB to 60 Hz

interference However, this attenuation decreases by

20 dB per decade of increasing frequency

For magnetic ®elds, absorption is the effective

attenuation mechanism, and steel or mu-metal

shield-ing is required Magnetic-®eld interference is more

dif-®cult to shield against than electric-®eld interference,

and shielding effectiveness for a given thickness

diminishes with decreasing frequency For example,

steel at 60 Hz provides interference attenuation on

the order of 30 voltage dB per 100 mils of thickness

Magnetic shielding of applications is usually

imple-mented by the installation of signal cables in steel

con-duit of the necessary wall thickness Additional

magnetic-®eld cancellation can be achieved by periodictransposition of a twisted-pair cable, provided that thesignal return current is on one conductor of the pairand not on the shield Mutual coupling between cir-cuits of a computer input system, resulting from ®nitesignal-path and power-supply impedances, is an addi-tional source of interference This coupling is mini-mized by separating analog signal grounds fromnoisier digital and chassis grounds using separateground returns, all terminated at a single star-pointchassis ground

Single-point grounds are required below 1 MHz toprevent circulating currents induced by couplingeffects A sensor and its signal cable shield are usuallygrounded at a single point, either at the sensor or thesource of greatest intereference, where provision of thelowest impedance ground is most bene®cial This alsoprovides the input bias current required by all instru-mentation ampli®ers except isolation types, which fur-nish their own bias current For applications where thesensor is ¯oating, a bias-restoration path must be pro-vided for conventional ampli®ers This is achieved withbalanced differential Rbiasresistors of at least 103timesthe source resistance Rs to minimize sensor loading.between the ampli®er input and the single-pointground as shown in Fig 5

Consider the following application example.Resistance-thermometer devices (RTDs) offer com-platinum RTD For a 0±1008C measurement range the

Figure 5 Signal-conditioning channel

Trang 3

stant-current excitation of 0.26 mA converts this

resis-tance to a voltage signal which may be differentially

sensed as Vdiff from 0 to 10 mV, following a 26 mV

ampli®er offset adjustment whose output is scaled 0±

10 V by an AD624 instrumentation ampli®er

differen-tial gain of 1000 A three-pole Butterworth lowpass

bandlimiting ®lter is also provided having a 3 Hz cutoff

frequency This signal-conditioning channel is

evalu-ated for RSS measurement error considering an input

Vcm of up to 10 V rms random and 60 Hz coherent

interference The following results are obtained:

"RTDˆtolerance ‡ nonlinearity  FS

ˆ0:18C ‡ 0:0028

8C8C 1008C

ˆ 0:48%FS

An RTD sensor error of 0.38%FS is determined for

this measurement range Also considered is a 1.5 Hz

signal bandwidth that does not exceed one-half of the

®lter passband, providing an average ®lter error

con-tribution of 0.2%FS fromTable 5 The representative

error of 0.22%FS fromTable 3for the AD624

instru-mentation ampli®er is employed for this evaluation,

and the output signal quality for coherent and random

input interference from Eqs (5) and (6), respectively, is

1:25  10 5%FS and 1:41  10 3%FS The

acquisi-tion of low-level analog signals in the presence of

appreciable intereference is a frequent requirement indata acquisition systems Measurement error of 0.5%

or less is shown to be readily available under thesecircumstances

1.5 DIGITAL-TO-ANALOG CONVERTERSDigital-to-analog (D/A) converters, or DACs, providereconstruction of discrete-time digital signals into con-tinuous-time analog signals for computer interfacingoutput data recovery purposes such as actuators, dis-plays, and signal synthesizers These converters areconsidered prior to analog-to-digital (A/D) convertersbecause some A/D circuits require DACs in theirimplementation A D/A converter may be considered

a digitally controlled potentiometer that provides anoutput voltage or current normalized to a full-scalereference value A descriptive way of indicating therelationship between analog and digital conversionquantities is a graphical representation Figure 6describes a 3-bit D/A converter transfer relationshiphaving eight analog output levels ranging betweenzero and seven-eighths of full scale Notice that aDAC full-scale digital input code produces an analogoutput equivalent to FS 1 LSB The basic structure

of a conventional D/A converter incudes a network ofswitched current sources having MSB to LSB valuesaccording to the resolution to be represented Eachswitch closure adds a binary-weighted current incre-ment to the output bus These current contributionsare then summed by a current-to-voltage converter

Figure 6 Three-bit D/A converter relationships

Trang 4

ampli®er in a manner appropriate to scale the output

signal Figure 7 illustrates such a structure for a 3-bit

DAC with unipolar straight binary coding

correspond-ing to the representation ofFig 6

In practice, the realization of the transfer

character-istic of a D/A converter is nonideal With reference to

Fig 6, the zero output may be nonzero because of

ampli®er offset errors, the total output range from

zero to FS 1 LSB may have an overall increasing or

decreasing departure from the true encoded values

resulting from gain error, and differences in the height

of the output bars may exhibit a curvature owing to

converter nonlinearity Gain and offset errors may be

compensated for leaving the residual temperature-drift

variations shown in Table 6, where gain temperature

coef®cient represents the converter voltage reference

error A voltage reference is necessary to establish a

basis for the DAC absolute output voltage The

major-ity of voltage references utilize the bandgap principle,

whereby the Vbe of a silicon transistor has a negative

temperature coef®cient of 2:5 mV=8C that can be

extrapolated to approximately 1.2 V at absolute zero

(the bandgap voltage of silicon)

Converter nonlinearity is minimized through

preci-sion components, because it is essentially distributed

throughout the converter network and cannot be

elimi-nated by adjustment as with gain and offset error

Differential nonlinearity and its variation with

tem-perature are prominent in data converters in that

they describe the difference between the true and actual

outputs for each of the 1-LSB code changes A DAC

with a 2-LSB output change for a 1-LSB input code

change exhibits 1 LSB of differential nonlinearity as

shown Nonlinearities greater than 1 LSB make theconverter output no longer single valued, in whichcase it is said to be nonmonotonic and to have missingcodes

1.6 ANALOG-TO-DIGITAL CONVERTERSThe conversion of continuous-time analog signals todiscrete-time digital signals is fundamental to obtain-ing a representative set of numbers which can be used

by a digital computer The three functions of sampling,quantizing, and encoding are involved in this processand implemented by all A/D converters as illustrated

byFig 8 We are concerned here with A/D converterdevices and their functional operations as we were withthe previously described complementary D/A conver-ter devices In practice one conversion is performedeach period T, the inverse of sample rate fs, whereby

a numerical value derived from the converter ing levels is translated to an appropriate output code.The graph of Fig 9 describes A/D converter input±output relationships and quantization error for pre-vailing uniform quantization, where each of the levels

quantiz-q is of spacing 2 n…1 LSB† for a converter having ann-bit binary output wordlength Note that the maxi-mum output code does not correspond to a full-scaleinput value, but instead to …1 2 n†FS because thereexist only …2n 1† coding points as shown in Fig 9.Quantization of a sampled analog waveforminvolves the assignment of a ®nite number of ampli-tude levels corresponding to discrete values of inputsignal Vi between 0 and VFS The uniformly spacedquantization intervals 2 n represent the resolutionlimit for an n-bit converter, which may also beexpressed as the quantizing interval q equal to

VFS=…2n 1†V These relationships are described by

Table 7 It is useful to match A/D converter length in bits to a required analog input signal span

word-to be represented digitally For example, a 10 mV-word-to-

mV-to-10 V span (0.1%±mV-to-100%) requires a minimum converterwordlength n of 10 bits It will be shown that addi-tional considerations are involved in the conversion

Figure 7 Three-bit D/A converter circuit

Table 6 Representative 12-Bit D/A ErrorsDifferential nonlinearity (1/2 LSB)

Linearity temp coeff (2 ppm/8C)(208C)Gain temp coeff (20 ppm/8C)(208C)Offset temp coeff (5 ppm/8C)(208C)

0:012%0:0040:0400:010

Trang 5

resulting from incomplete dielectric repolarization.Polycarbonate capacitors exhibit 50 ppm dielectricabsorption, polystyrene 20 ppm, and Te¯on 10 ppm.Hold-jump error is attributable to that fraction ofthe logic signal transferred by the capacitance of theswitch at turnoff Feedthrough is speci®ed for the holdmode as the percentage of an input sinusoidal signalthat appears at the output.

1.7 SIGNAL SAMPLING ANDRECONSTRUCTIONThe provisions of discrete-time systems include theexistence of a minimum sample rate for which theore-tically exact signal reconstruction is possible from asampled sequence This provision is signi®cant inthat signal sampling and recovery are considered

Figure 11 Successive-approximation A/D conversion

Table 8 Representative 12-Bit A/D Errors

12-bit successive approximationDifferential nonlinearity (1/2 LSB)

Quantizing uncertainty (1/2 LSB)

Linearity temp coeff (2 ppm/8C)(208C)

Gain temp coeff (20 ppm/8C)(208C)

12-bit dual slopeDifferential nonlinearity (1/2 LSB)

Trang 6

simultaneously, correctly implying that the design of

real-time data conversion and recovery systems should

also be considered jointly The following interpolation

formula analytically describes this approximation ^x…t†

of a continuous time signal x…t† with a ®nite number ofsamples from the sequence x…nT† as illustrated byFig

13:

^x…t† ˆ F 1f f ‰x…nT†Š  H… f †g …8†

ˆ Xxnˆ xT

Table 9 Representative Sample/Hold Errors

Trang 7

ing in a time-domain sinc amplitude response owing to

the rectangular characteristic of H… f † Due to the

orthogonal behavior of Eq (8), however, only one

nonzero term is provided at each sampling instant by

a summation of weighted samples Contributions of

samples other than the ones in the immediate

neigh-borhood of a speci®c sample, therefore, diminish

rapidly because the amplitude response of H… f † tends

to decrease Consequently, the interpolation formula

provides a useful relationship for describing recovered

bandlimited sampled-data signals of bandwidth BW

with the sampling period T chosen suf®ciently small

to prevent signal aliasing where sampling frequency

fsˆ 1=T

It is important to note that an ideal interpolation

function H… f † utilizes both phase and amplitude

infor-mation in reconstructing the recovered signal ^x…t†, and

is therefore more ef®cient than conventional

band-limiting functions However, this ideal interpolation

function cannot be physically realized because its

impulse response is noncausal, requiring an output

that anticipates its input As a result, practical

inter-polators for signal recovery utilize amplitude

informa-tion that can be made ef®cient, although not optimum,

by achieving appropriate weighting of the

recon-structed signal

Of key interest is to what accuracy can an original

continuous signal be reconstructed from its sampled

values

It can be appreciated that the determination of

sam-ple rate in discrete-time systems and the accuracy with

which digitized signals may be recovered requires the

simultaneous consideration of data conversion and

reconstruction parameters to achieve an ef®cient

allo-cation of system resources Signal to

mean-squared-error relationships accordingly represent sampled and

recovered data intersample error for practical

interpo-lar functions inTable 10 Consequently, an

intersam-ple error of interest may be achieved by substitution of

a selected interpolator function and solving for the

sampling frequency fs by iteration, where asymptotic

convergence to the performance provided by ideal

interpolation is obtained with higher-order practical

interpolators

The recovery of a continuous analog signal from a

discrete signal is required in many applications

Providing output signals for actuators in digital

con-trol systems, signal recovery for sensor acquisition

sys-tems, and reconstructing data in imaging systems are

but a few examples Signal recovery may be viewed

from either time-domain or frequency-domain

perspec-tives In time-domain terms, recovery is similar to

interpolation procedures in numerical analysis withthe criterion being the generation of a locus that recon-structs the true signal by some method of connectingthe discrete data samples In the frequency domain,signal recovery involves bandlimiting by a linear ®lter

to attenuate the repetitive sampled-data spectra abovebaseband in achieving an accurate replica of the truesignal

A common signal recovery technique is to follow aD/A converter by an active lowpass ®lter to achieve anoutput signal quality of interest, accountable by theconvergence of the sampled data and its true signalrepresentation Many signal power spectra have longtime-average properties such that linear ®lters are espe-cially effective in minimizing intersample error.Sampled-data signals may also be applied to controlactuator elements whose intrinsic bandlimited ampli-tude response assist with signal reconstruction Theseterminating elements often may be characterized by asingle-pole RC response as illustrated in the followingsection

An independent consideration associated with thesampling operation is the attenuation impressed uponthe signal spectrum owing to the duration of thesampled-signal representation x…nT† A useful criterion

is to consider the average baseband amplitude errorbetween dc and the full signal bandwidth BWexpressed as a percentage of departure from full-scaleresponse This average sinc amplitude error isexpressed by

A data-conversion system example is provided by asimpli®ed three-digit digital dc voltmeter (Fig 14) Adual-slope A/D conversion period T of 16 2/3 msprovides a null to potential 60 Hz interference,which is essential for industrial and ®eld use, owing

to sinc nulls occurring at multiples of the integrationperiod T A 12-bit converter is employed to achieve anominal data converter error, while only 10 bits arerequired for display excitation considering 3.33 binarybits per decimal digit The sampled-signal error eva-luation considers an input-signal rate of change up to

an equivalent bandwidth of 0.01 Hz, corresponding to

an fs=BW of 6000, and an intersample error mined by zero-order-hold (ZOH) data, where Vsequals VFS:

Trang 8

as de®ned in Table 11 The constant 0.35 de®nes the

ratio of 2.2 time constants, required for the response to

rise between 10% and 90% of the ®nal value, to 2

radians for normalization to frequency in Hertz

Validity for digital control loops is achieved by

acquir-ing tr from a discrete-time plot of the

controlled-vari-able amplitude response Tcontrolled-vari-able 11 also de®nes the

bandwidth for a second-order process which is

calcu-lated directly with knowledge of the natural frequency,

sampling period, and damping ratio

In the interest of minimizing sensor-to-actuator

variability in control systems the error of a controlled

variable of interest is divisible into an analog

measure-ment function and digital conversion and interpolation

functions Instrumentation error models provide a

uni-®ed basis for combining contributions from individual

devices The previous temperature measurement signal

conditioning associated withFig 5 is included in this

temperature control loop, shown by Fig 16, with the

averaging of two identical 0.48%FS error

measure-ment channels to effectively reduce that error by

n 1=2 or 2 1=2, from Eq (7), yielding 0.34%FS This

provides repeatable temperature measurements to

within an uncertainty of 0.348C, and a resolution of0.0248C provided by the 12-bit digital data buswordlength

The closed-loop bandwidth is evaluated at vative gain and sampling period values of K ˆ 1 and

conser-T ˆ 0:1 sec …fsˆ 10 Hz†, respectively, for unit-stepexcitation at r…t† The rise time of the controlled vari-able is evaluated from a discrete-time plot of C…n† to be1.1 sec Accordingly, the closed-loop bandwidth isfound from Table 11 to be 0.318 Hz The intersampleerror of the controlled variable is then determined to

be 0.143%FS with substitution of this bandwidth valueand the sampling period T…T ˆ 1=fs† into the one-poleprocess-equivalent interpolation function obtainedfromTable 10 These functions include provisions forscaling signal amplitudes of less than full scale, but aretaken as VS equalling VFS for this example.Intersample error is therefore found to be directlyproportional to process closed-loop bandwidth andinversely proportional to sampling rate

The calculations are as follows:

3 7 5

3 7 5

2

1 ‡ 10 Hz ‡ 0:318 Hz0:318 Hz

2 6 6 6 6 6 6 6 6

3 7 7 7 7 7 7 7 7 1=2

 100%

ˆ 0:143%FS

" controlled variable ˆ …"measurement 21:2†2‡ "2S=H‡ "2A=D

‡" 2 D=A ‡ " 2 sinc ‡ " 2 intersample

ˆ 0:39%FS

Figure 15 Elementary digital control loop

Table 11 Process Closed-Loop Bandwidth

Trang 9

Chapter 2.2

Fundamentals of Digital Motion Control

Ernest L Hall, Krishnamohan Kola, and Ming Cao

University of Cincinnati, Cincinnati, Ohio

2.1 INTRODUCTION

Control theory is a foundation for many ®elds,

includ-ing industrial automation The concept of control

the-ory is so broad that it can be used in studying the

economy, human behavior, and spacecraft design as

well as the design of industrial robots and automated

guided vehicles Motion control systems often play a

vital part of product manufacturing, assembly, and

distribution Implementing a new system or upgrading

an existing motion control system may require

mechanical, electrical, computer, and industrial

engi-neering skills and expertise Multiple skills are required

to understand the tradeoffs for a systems approach to

the problem, including needs analysis, speci®cations,

component source selection, and subsystems

integra-tion Once a speci®c technology is selected, the

suppli-er's application engineers may act as members of the

design team to help ensure a successful implementation

that satis®es the production and cost requirements,

quality control, and safety

Motion control is de®ned [1] by the American

Institute of Motion Engineers as: ``The broad

applica-tion of various technologies to apply a controlled force

to achieve useful motion in ¯uid or solid

electromecha-nical systems.''

The ®eld of motion control can also be considered

as mechatronics [1]: ``Mechatronics is the synergistic

combination of mechanical and electrical engineering,

computer science, and information technology, which

includes control systems as well as numerical methodsused to design products with built-in intelligence.''Motion control applications include the industrialrobot [2] and automated guided vehicles [3±6].Because of the introductory nature of this chapter,

we will focus on digital position control; force controlwill not be discussed

2.2 MOTION CONTROL ARCHITECTURESMotion control systems may operate in an open loop,closed-loop nonservo, or closed-loop servo, as shown

in Fig 1, or a hybrid design The open-loopapproach, shown in Fig 1(a), has input and outputbut no measurement of the output for comparisonwith the desired response A nonservo, on±off, orbang±bang control approach is shown in Fig 1(b)

In this system, the input signal turns the system on,and when the output reaches a certain level, it closes

a switch that turns the system off A proportion, orservo, control approach is shown in Fig 1(c) In thiscase, a measurement is made of the actual outputsignal, which is fed back and compared to the desiredresponse The closed-loop servo control system will bestudied in this chapter

The components of a typical servo-controlledmotion control system may include an operator inter-face, motion control computer, control compensator,electronic drive ampli®ers, actuator, sensors and trans-ducers, and the necessary interconnections The actua-157

Trang 10

equation for pendulum motion can be developed by

balancing the forces in the tangential direction:

X

This gives the following equation:

The tangential acceleration is given in terms of the rate

of change of velocity or arc length by the equation

Note that the unit of each term is force In imperial

units, W is in lbf, g is in ft/sec2, D is in lb sec, L is in

feet,  is in radians, d=dt is in rad/sec and d2=dt2is in

rad/sec2 In SI units, M is in kg, g is in m/sec2, D is in

kg m/sec, L is in meters,  is in radians, d=dt is in rad/

sec, and d2=dt2 is in rad/sec2

This may be rewritten as

This equation may be said to describe a system While

there are many types of systems, systems with no

out-put are dif®cult to observe, and systems with no inout-put

are dif®cult to control To emphasize the importance

of position, we can describe a kinematic system, such as

y ˆ T…x† To emphasize time, we can describe a

dynamic system, such as g ˆ h… f …t†† Equation (7)

describes a dynamic response The differential

equa-tion is nonlinear because of the sin  term

For a linear system, y ˆ T…x†, two conditions must

be satis®ed:

1 If a constant, a, is multiplied by the input, x,

such that ax is applied as the input, then the

output must be multiplied by the same constant:

2 If the sum of two inputs is applied, the output

must be the sum of the individual outputs and

the principal of superposition must hold asdemonstrated by the following equations:

Invariance is an important concept for systems In

an optical system, such as reading glasses, positioninvariance is desired, whereas, for a dynamic systemtime invariance is very important

Since an arbitrary input function, f …t† may beexpressed as a weighted sum of impulse functionsusing the Dirac delta function, …t † This sum can

be expressed as

f …t† ˆ

…1 1

f …† …t † d

24

Therefore, the response of the linear system is terized by the response to an impulse function Thisleads to the de®nition of the impulse response, h…t; †,as

Since the system response may vary with the timethe input is applied, the general computational formfor the output of a linear system is the superpositionintegral called the Fredholm integral equation [7,8]:

Trang 11

g…t† ˆ

…

The limits of integration are important in determining

the form of the computation Without any

assump-tions about the input or system, the computation

must extend over an in®nite interval

An important condition of realizability for a

con-tinuous system is that the response be nonanticipatory,

or casual, such that no output is produced before an

The reason that linear systems are so important is

that they are widely applicable and that a systematic

method of solution has been developed for them The

relationship between the input and output of a linear,

time-invariant system is known to be a convolution

relation Furthermore, transformational techniques,

such as the Laplace transform, can be used to convert

the convolution into an equivalent product in the

trans-form domain The Laplace transtrans-form F…s† of f …t† is

F…s† ˆ

…1 0

and

H…s† ˆ

…1 0

(Note that this theorem shows how to compute theconvolution with only multiplication and transformoperations.) The transform, H…s†, of the system func-tion, h…t†, is called the system transfer function Forany input, f …t†, its transform, F…s†, can be computed.Then multiplying by H…s† yields the transform G…s†.The inverse Laplace transform of G…s† gives the outputtime response, g…t†

This transform relationship may also be used todevelop block diagram representations and algebrafor linear systems, which is very useful to simplifythe study of complicated systems

2.3.1.1 Linear-Approach ModelingReturning to the pendulum example, the solution tothis nonlinear equation with D 6ˆ 0 involves the ellip-tical function (The solutions of this nonlinear systemwill be investigated later using Simulink.1) Using theapproximation sin  ˆ  in Eq (7) gives the linearapproximation

no forcing function is applied

Remembering that the Laplace transform of thederivative is

Trang 12

(Note that the initial conditions act as a forcing

func-tion for the system to start it moving.) It is more

com-mon to apply a step function to start a system The

unit step function is de®ned as

u…t† ˆ 10 for t 5 0for t < 0



…33†

(Note that the unit step function is the integral of the

delta function.) It may also be shown that the Laplace

transform of the delta function is 1, and that the

Laplace transform of the unit step function is 1=s

To use Matlab to solve the transfer function for

…t†, we must tell Matlab that this is the output of

some system Since G…s† ˆ H…s† F…s†, we can let H…s†

ˆ 1 and F…s† ˆ …s† Then the output will be

G…s† ˆ …s†, and the impulse function can be used

directly If Matlab does not have an impulse response

but it does have a step response, then a slight

manip-ulation is required [Note that the impulse response of

system G…s† is the same as the step response of system

s …G…s††.]

The transform function with numerical values

sub-stituted is

…s† ˆs2‡ 0:0268s ‡ 10:7345…s 0:0268† …34†

Note that …0† ˆ 458 and d…0†=dt ˆ 0 We can de®ne

T0 ˆ …0† for ease of typing, and express the

numera-tor and denominanumera-tor polynomials by their coef®cients

as shown by the num and den vectors below

To develop a Matlab m-®le script using the step

function, de®ne the parameters from the problem

statement:

T0=45D=0.1M=40/32.2L=3G=32.3num=[T0,D*T0/(M*L),0];

den=[1,D/(M*L),G/L];

t=0:0.1:10;

step(num,den,t);

grid ontitle (`Time response of the pendulumlinearapproximation')

This m-®le or script may be run using Matlab andshould produce an oscillatory output The angle starts

at 458 at time 0 and goes in the negative direction ®rst,then oscillates to some positive angle and dampens out.The period,

T ˆ 2



Lg

s

…35†

in seconds (or frequency, f ˆ 1=T in cycles/second orhertz) of the response can be compared to the theore-tical solution for an undamped pendulum given in Eq.(35) [9] This is shown in Fig 3

2.3.1.2 Nonlinear-Approach Modeling

To solve the nonlinear system, we can use Simulink todevelop a graphical model of the system and plot thetime response This requires developing a block dia-gram solution for the differential equation and thenconstructing the system using the graphical building

Figure 3 Pendulum response with linear approximation,

…0‡† ˆ 458

Trang 13

blocks of Simulink From this block diagram, a

simu-lation can be run to determine a solution

To develop a block diagram, write the differential

equation in the following form:

d2…t†

dt2 ˆMLD ddt Lg sin …t† …36†

Note that this can be drawn as a summing junction

with two inputs and one output Then note that 

can be derived from d2=dt2 by integrating twice The

output of the ®rst integrator gives d=dt An initial

velocity condition could be put at this integration A

pick-off point could also be put here to be used for

velocity feedback The output of the second integrator

gives  The initial position condition can be applied

here This output position may also be fed back for the

position feedback term The constants can be

imple-mented using gain terms on ampli®ers since an

ampli-®er multiplies its input by a gain term The sine

function can be represented using a nonlinear function

The motion is started by the initial condition,

…0‡† ˆ 458, which was entered as the integration

con-stant on the integrator which changes d=dt to  Note

that the sine function expects an angle in radians, not

degrees Therefore, the angle must be converted before

computing the sine In addition, the output of the sine

function must be converted back to degrees A block

diagram of this nonlinear model is shown in Fig 4

The mathematical model to analyze such a nonlinear

system is complicated However, a solution is easily

obtained with the sophisticated software of Simulink

The response of this nonlinear system is shown inFig

5 Note that it is very similar to the response of thelinear system with an amplitude swinging between

‡458 and 458, and a period slightly less than 2 sec,indicating that the linear system approximation is notbad Upon close inspection, one would see that thefrequency of the nonlinear solution is not, in fact, con-stant

2.3.2 Rigid-Link PendulumConsider a related problem, the dynamic response forthe mechanical system model of the human leg shown

inFig 6 The transfer function relates the output lar position about the hip joint to the input torquesupplied by the leg muscle The model assumes aninput torque, T…t†, viscous damping, D at the hipjoint, and inertia, J, around the hip joint Also, a com-ponent of the weight of the leg, W ˆ Mg, where M isthe mass of the leg and g is the acceleration of gravity,creates a nonlinear torque Assume that the leg is ofuniform density so that the weight can be applied atthe centroid at L=2 where L is the length of the leg Forde®niteness let D ˆ 0:01 lb sec, J ˆ 4:27 ft lb sec2,

angu-W ˆ Mg ˆ 40 lb, L ˆ 3 ft angu-We will use a torque tude of T…t† ˆ 75 ft lb

ampli-The pendulum gives us a good model for a robotarm with a single degree of freedom With a rigid link,

it is natural to drive the rotation by a torque applied tothe pinned end and to represent the mass at the center

of mass of the link Other physical variations lead todifferent robot designs For example, if we mount therigid link horizontally and then articulate it, we reduce

Figure 4 Block diagram entered into Simulink to solve the nonlinear system

Trang 14

We can also develop a Matlab m-®le solution to this

linear differential equation:

When one runs this program using Matlab, it produces

the result shown in Fig 7

One can also use Simulink to develop a graphical

model and solve the nonlinear system To develop the

block diagram recall that T…t† is the input and  is the

output We can manipulate the differential equation

and develop the block diagram Various forms of the

block diagram may be developed depending on how

one solves the equation One form is shown inFig 8

When the torque step input is T…0‡† ˆ 75, the time

response is as shown inFig 9 Rather than oscillating,

the angle output appears to be going to in®nity This

corresponds to the rigid link rotating continuously

about its axis

2.3.2.1 Representation with State VariablesOne can also determine the differential equation forthe rigid-link pendulum by applying a torque balancearound the pinned end for a vertically articulatedrobot pointed upward using a state variable represen-tation [10]

State variables are a basic approach to modern trol theory Mathematically, it is a method for solving

con-an nth-order differential equation using con-an equivalentset of n, simultaneous, ®rst-order differential equa-tions Numerically, it is easier to compute solutions

to ®rst-order differential equations than for order differential equations Practically, it is a way touse digital computers and algorithms based on matrixequations to solve linear or nonlinear systems A sys-tem is described in terms of its state variables, whichare the smallest set of linearly independent variablesthat describe the system, its dynamic state variable,the derivative of the state variable, its input, and itsoutput Since state variables are not unique, many dif-ferent forms may be chosen for solving a particularproblem One particular set which is useful in the solu-tion of nth-order single variable differential equations

higher-is the set of phase variables These are de®ned in terms

of the variable and its derivatives of the variable of thenth-order equation For example, in the second-orderdifferential equation in  which we are working with,

we can de®ne a vector state variable with components,

x1ˆ …t† and x2ˆ d…t†=dt Two state variables arerequired because we have a second-order differentialequation We would need N for an Nth-order differ-ential equation The state vector may be written as thetranspose of the row vector: ‰x1; x2ŠT We normally usecolumn vectors, not row vectors, for points The stateequations for a linear system always consist of twoequations that are usually written as

is a n  1 constant matrix called the control matrix; C

is a 1  n constant matrix called the output matrix; and

D is called the direct feedforward matrix For the SISOsystem, D is a 1  1 matrix containing a scalar con-stant

Using the phase variables as state variables,

Figure 7 Solution to nonlinear system computed with

Simulink

Trang 15

It is possible to use either the state space or the transfer

function representation of a system For example, the

transfer function of the linearized rigid link pendulum

is developed as described in the next few pages

Taking the Laplace transform assuming zero initial

…54†

The nonlinear differential equation of the rigid link

pendulum can also be put in the ``rigid robot'' form

that is often used to study the dynamics of robots

M… q† q ‡ V… _q; q† ‡ G…q† ˆ T…t† …55†

where M is an inertia matrix, q is a generalized

coor-dinate vector, V represents the velocity dependent

torque, G represents the gravity dependent torque

and T represents the input control torque vector

2.3.3 Motorized Robot Arm

As previously mentioned, a rigid-link model is in factthe basic structure of a robot arm with a single degree

of freedom Now let us add a motor to such a robotarm

A DC motor with armature control and a ®xed ®eld

is assumed The electrical model of such a DC motor isshown in Fig 10 The armature voltage, ea…t† is thevoltage supplied by an ampli®er to control themotor The motor has a resistance Ra, inductance La,and back electromotive force (emf) constant, Kb Theback emf voltage, vb…t† is induced by the rotation of thearmature windings in the ®xed magnetic ®eld Thecounter emf is proportional to the speed of themotor with the ®eld strength ®xed That is,

This torque moves the armature and load

Balancing the torques at the motor shaft gives thetorque relation to the angle that may be expressed asfollows:

T…t† ˆ Jd2m

where mis the motor shaft angle position, J representsall inertia connected to the motor shaft, and D allfriction (air friction, bearing friction, etc.) connected

to the motor shaft

Taking the Laplace transform gives

Tm…s† ˆ Js2m…s† ‡ Dsm…s† …63†Solving Eq (63) for the shaft angle, we get

m…s† ˆ Tm…s†

Figure 10 Fixed ®eld DC motor: (a) circuit diagram; (b)

block diagram (from Nise, 1995)

Trang 16

If there is a gear train between the motor and load,

then the angle moved by the load is different from the

angle moved by the motor The angles are related by

the gear ratio relationship, which may be derived by

noting that an equal arc length, S, is traveled by two

meshing gears This can also be described by the

fol-lowing equation:

The gear circumference of the motor's gear is 2Rm,

which has Nm teeth, and the gear circumference of the

load's gear is 2RL, which has NLteeth, so the ratio of

circumferences is equal to the ratio of radii and the

ratio of number of teeth so that

The gear ratio may also be used to re¯ect quantities on

the load side of a gear train back to the motor side so

that a torque balance can be done at the motor side

Assuming a lossless gear train, it can be shown by

equating mechanical, T!1, and electrical, EI, power

that the quantities such as inertia, J, viscous damping

D, and torsional springs with constants K may be

re¯ected back to the motor side of a gear by dividing

by the gear ratio squared This can also be described

with the equations below:

Using these relationships, the equivalent load

quanti-ties for J and D may be used in the previous block

diagram From Eqs (59), (60), (61), (64), and (67) we

can get the block diagram of the armature-controlled

DC motor as shown in Fig 11

By simplifying the block diagram shown in Fig 11,

we can get the armature-controlled motor transferfunction as

a DC motor is used to drive a robot arm horizontally asshown inFig 12 The link has a mass, M ˆ 5 kg, length

L ˆ 1 m, and viscous damping factor D ˆ 0:1: Assumethe system input is a voltage signal with a range of 0±

10 V This signal is used to provide the control voltageand current to the motor The motor parameters aregiven below The goal is to design a compensation strat-egy so that a voltage of 0 to 10 V corresponds linearly of

an angle of 08 to an angle of 908 The required responseshould have an overshoot below 10%, a settling timebelow 0.2 sec and a steady state error of zero Themotor parameters are given below:

1 The inertia of the rigid link as de®ned before is

Figure 11 Armature-controlled DC motor block diagram

Trang 17

The step response can be determined with the

After position feedback, the steady response tends to

be stable as shown in Fig 15 However, the system

response is too slow; to make it have faster response

speed, further compensation is needed The following

example outlines the building of a compensator for

feedback control system

2.3.4 Digital Motion Control

2.3.4.1 Digital Controller

With the many computer applications in control

sys-tems, digital control systems have become more

impor-tant A digital system usually employs a computerized

controller to control continuous components of a

closed-loop system The block diagram of the digital

system is shown in Fig 16 The digital system ®rst

samples the continuous difference data ", and then,with an A/D converter, changes the sample impulsesinto digital signals and transfers them into the compu-ter controller The computer will process these digitralsignals with prede®ned control rules At last, throughthe digital-to-analog (D/A) converter, the computingresults are converted into an analog signal, m…t†, tocontrol those continuous components The samplingswitch closes every T0 sec Each time it closes for atime span of h with h < T0 The sampling frequency,

fs, is the reciprocal of T0, fsˆ 1=T0, and !sˆ 2=T0 iscalled the sampling angular frequency The digital con-troller provides the system with great ¯exibility It can

Figure 14 Position and velocity feedback model of the motorized rigid link

Figure 15 Step response of the motorized robot arm

Trang 18

2.3.5 Digital Motion Control System Design

Example

Selecting the right parameters for the position,

inte-gral, derivative (PID) controller is the most dif®cult

step for any motion control system The motion

con-trol system of the automatic guided vehicle (AGV)

helps maneuver it to negotiate curves and drive around

obstacles on the course Designing a PID controller for

the drive motor feedback system of Bearcat II robot,

the autonomous unmanned vehicle, was therefore

con-sidered one important step for its success

The wheels of the vehicle are driven independently

by two Electrocraft brush-type DC servomotors

Encoders provide position feedback for the system

The two drive motor systems are operated in current

loops in parallel using Galil MSA 12-80 ampli®ers The

main controller card is the Galil DMC 1030 motion

control board and is controlled through a computer

2.3.5.1 System Modeling

The position-controlled system comprises a position

servo motor (Electrocraft brush-type DC motor) with

an encoder, a PID controller (Galil DMC 1030 motion

control board), and an ampli®er (Galil MSA 12-80)

The ampli®er model can be con®gured in three

modes, namely, voltage loop, current loop, and

velo-city loop The transfer function relating the input

vol-tage V to the motor position P depends upon thecon®guration mode of the system

Voltage Loop In this mode, the ampli®er acts as avoltage source to the motor The gain of the ampli®erwill be Kv, and the transfer function of the motor withrespect to the voltage will be

P

Kv

‰Kts…sm‡ 1†…se‡ 1†Š …75†where

mˆRJ

K2

t …s† and eˆLR…s†

The motor parameters and the units are:

Kt: torque constant (N m/A),R: armature resistance (ohms),J: combined inertia of the motor and load (kg m2),L: armature inductance (Henries)

Current Loop In this mode the ampli®er acts as acurrent source for the motor The corresponding trans-fer function will be as follows:

Figure 17 Two representations of digital control systems: (a) digital control system; (b) digital controller

... solu-tion of nth-order single variable differential equations

higher-is the set of phase variables These are de®ned in terms

of the variable and its derivatives of the variable of. ..

con-an nth-order differential equation using con-an equivalentset of n, simultaneous, ®rst-order differential equa-tions Numerically, it is easier to compute solutions

to ®rst-order... damping, D at the hipjoint, and inertia, J, around the hip joint Also, a com-ponent of the weight of the leg, W ˆ Mg, where M isthe mass of the leg and g is the acceleration of gravity,creates a nonlinear

Ngày đăng: 10/08/2014, 04:21

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

🧩 Sản phẩm bạn có thể quan tâm