Chapter 6 - Hardware Components For Automation & Control
Chapter 6 - Hardware Components For Automation & Control
Hardware Components
for Automation and
Process Control
CHAPTER CONTENTS
6.1 Sensors
6.2 Actuators
6.2.1 Electric Motors
6.2.2 Other Types of Actuators
6.3 Analog–Digital Conversions
6.3.1 Analog-to-Digital Converters
6.3.2 Digital-to-Analog Converters
6.4 Input/Output Devices for Discrete Data
6.4.1 Contact Input/Output Interfaces
6.4.2 Pulse Counters and Generators
To implement automation and process control, the control computer must collect data
from and transmit signals to the process. In Section 5.1.2, process variables and param-
eters were classified as continuous or discrete, with several subcategories in the discrete
class. The digital computer operates on digital (binary) data, whereas at least some of
the data from the physical process are continuous and analog. Accommodations for this
difference must be made in the computer–process interface. The components required to
implement this interface are the following:
1. Sensors to measure continuous and discrete process variables.
2. Actuators to drive continuous and discrete process parameters.
3. Devices to convert continuous analog signals into digital data and digital data into
analog signals.
4. Input/output devices for discrete data.
121
122 Chap. 6 / Hardware Components for Automation and Process Control
Analog
Act Act Discrete actuators Discrete sensors Sens Sens Analog sensors
actuators
Figure 6.1 The computer process control system, showing the various types of components required
to interface the process with the computer.
Figure 6.1 shows the overall configuration of the process control system and how
these four categories are used to interface the process with the computer. This model rep-
resents the general arrangement of the control systems in CNC machine tools, industrial
robots, and PLC systems described in Chapters 7 through 9, as well as most of the mate-
rial handling systems and manufacturing systems described in Chapters 10 through 19.
The present chapter is organized around the four component categories.
6.1 SENSORS
A wide variety of sensors are available for collecting data from the manufacturing process
for use in feedback control. A sensor is a transducer, which is a device that converts a phys-
ical variable of one form into another form that is more useful for the given application. In
particular, a sensor is a device that converts a physical stimulus or variable of interest (such
as temperature, force, pressure, or displacement) into a more convenient form (usually an
electrical quantity such as voltage) for the purpose of measuring the stimulus. The conver-
sion process quantifies the variable, so that it can be interpreted as a numerical value.
Sensors can be classified in various ways, the most relevant of which for this discus-
sion is by the category of stimulus or physical variable measured, as presented in Table 6.1.
For each category, there may be multiple variables that can be measured, as indicated in
the right-hand column. These variables are typical of those found in industrial processes.
In addition to the type of stimulus, sensors are also classified as analog or discrete,
consistent with the classification of process variables in Chapter 5. An analog sensor
produces a continuous analog signal such as electrical voltage, whose value varies in an
analogous manner with the variable being measured. Examples are thermocouples, strain
gages, and potentiometers. The output signal from an analog measuring device must be
converted to digital data by an analog-to-digital converter (Section 6.3.1) in order to be
used by a digital computer.
A discrete sensor produces an output that can have only certain values. Discrete
sensors are often divided into two categories: binary and digital. A binary sensor pro-
duces an on/off signal. The most common devices operate by closing an electrical contact
from a normally open position. Limit switches operate in this manner. Other binary sen-
sors include photoelectric sensors and proximity switches. A digital sensor produces a
Sec. 6.1 / Sensors 123
digital output signal, either in the form of a set of parallel status bits (e.g., a photoelectric
sensor array) or as a series of pulses that can be counted (e.g., an optical encoder). In
either case, the digital signal represents the quantity that is measured. Digital transducers
are becoming increasingly common because they are easy to read when used as stand-
alone measuring instruments and because they are compatible with digital computer
systems. Many of the common sensors and measuring devices used in industrial control
systems are listed alphabetically in Table 6.2. A significant trend in sensor technology has
been the development of very small sensors. The term microsensor refers to measuring
devices whose physical features have dimensions in the micron range, where 1 micron
11 mm2 = 10-6 m. Microsensors are usually fabricated out of silicon using processing
techniques associated with integrated circuit manufacture.
Sensors are distinguished as active or passive. An active sensor responds to the stimu-
lus without the need for any external power. An example is a thermocouple, which re-
sponds to an increase in temperature by generating a small voltage (millivolt range) that
is functionally related to temperature (in the ideal, its voltage is directly proportional to
temperature). A passive sensor requires an external source of power in order to operate. A
thermistor illustrates this case. It also measures temperature, but its operation requires an
electric current to be passed through it. As the temperature increases, the thermistor’s elec-
trical resistance is altered. The resistance can be measured and related back to temperature.
For each sensor, there is a transfer function, which is the relationship between the
value of the physical stimulus and the value of the signal produced by the sensor in re-
sponse to the stimulus. The transfer function is the input/output relationship. The stimu-
lus is the input, and the signal generated by the device is the output. The transfer function
can be expressed simply as:
S = f1s2 (6.1)
where S = the output signal, usually voltage; s = the stimulus; and f1s2 is the functional
relationship between them.
Limit switches and other binary sensors have functional relationships that are
binary, defined by the following expressions:
S = 1 if s 7 0 and S = 0 if s … 0 (6.2)
The ideal functional form for an analog measuring device is a simple proportional
relationship, such as
S = C + ms (6.3)
124 Chap. 6 / Hardware Components for Automation and Process Control
(continued)
Sec. 6.1 / Sensors 125
where C is the output value at a stimulus value of zero, and m is the constant of
proportionality between s and S. The constant m can be thought of as the sensitivity of
the sensor. It is a measure of how much the output or response of the sensor is affected
by the stimulus. For example, the sensitivity of a standard chromel/alumel thermocouple
generates 40.6 microvolts 1mV2 per degree Celsius (°C). Other transfer functions have
more complex mathematical forms, including differential equations that include time
dynamics, which means that there is a time delay between when the stimulus occurs and
when the output signal accurately indicates the value of the stimulus.
Before using any measuring device, the operator must calibrate it to determine
the transfer function, or the inverse of the transfer function, which converts the output
S into the value of the stimulus or measured variable s. The ease with which the calibra-
tion procedure can be accomplished is one criterion by which a measuring device can
be evaluated. A list of desirable features of sensors for process control is presented in
Table 6.3. Few sensors achieve perfect scores in all of these criteria, and the control sys-
tem engineer must decide which features are the most important in selecting among the
variety of available sensors and transducers for a given application.
126 Chap. 6 / Hardware Components for Automation and Process Control
TABLE 6.3 Desirable Features for Selecting Sensors Used in Automated Systems
6.2 ACTUATORS
An electric motor converts electrical power into mechanical power. Most electric motors are
rotational. They are available in many different styles and sizes, one of which is depicted in
Figure 6.2(a). Their operation can be explained with reference to Figure 6.2(b). The motor
consists of two basic components, a stator and a rotor. The stator is the ring-shaped station-
ary component, and the rotor is the cylindrical part that rotates inside the stator. The rotor is
assembled around a shaft that is supported by bearings, and the shaft can be coupled to ma-
chinery components such as gears, pulleys, leadscrews, or spindles. Electric current supplied
to the motor generates a continuously switching magnetic field that causes the rotor to de-
velop torque and rotate in its attempt to align its poles with the opposite poles of the stator.
The details relating to type of current (alternating or direct), how the continuously switching
magnetic field is created, and other aspects of the motor’s construction give rise to a great
variety of electric motors. The simplest and most common classification is between direct
current (DC) motors and alternating current (AC) motors. Within each category, there are
several subcategories. Four types that are used in automation and industrial control are dis-
cussed here: (1) DC motors, (2) AC motors, (3) stepper motors, and (4) linear motors.
DC Motors. DC motors are powered by a constant current and voltage. The con-
tinuously switching magnetic field is achieved by means of a rotary switching device,
called a commutator, which rotates with the rotor and picks up current from a set of
carbon brushes that are components of the stator assembly. Its function is to continually
change the relative polarity between the rotor and the stator, so that the magnetic field
produces a torque to continuously turn the rotor. Use of a commutator is the traditional
construction of a DC motor. This is a disadvantage because it results in arcing, worn
brushes, and maintenance problems. A special type of DC motor avoids the use of the
commutator and brushes. Called a brushless DC motor, it uses solid-state circuitry to re-
place the brushes and commutator components. Elimination of these parts has the added
benefit of reducing the inertia of the rotor assembly, allowing higher speed operation.
N
Stator
Motor
Air gap
Shaft S
Rotor
N
Motor shaft
S
Power cable
(a) (b)
DC motors are widely used for two reasons. The first is the convenience of using
direct current as the power source. For example, the small electric motors in automo-
biles are DC because the car’s battery supplies direct current. The second reason for the
popularity of DC motors is that their torque–speed relationships are attractive in many
applications compared to AC motors.
DC servomotors are a common type of DC motor used in mechanized and automated
systems, and it will be used to represent this class of electric motors. The term servomotor
simply means that a feedback loop is used to regulate speed. In a DC servomotor, the sta-
tor typically consists of two permanent magnets on opposite sides of the rotor. The rotor,
called the armature in a DC motor, consists of copper wire windings around a ferrous metal
core. Input current is provided to the windings through the commutator and interacts with
the magnetic field of the stator to produce the torque that drives the rotor. The magnitude
of the rotor torque is a function of the current passing through the windings, and the rela-
tionship can be modeled by the following equation:
T = KtIa (6.4)
where T = motor torque, N-m; Ia = current flowing through the armature, A; and
Kt = the motor’s torque constant, N-m/A. When current is first applied to the motor,
torque is at its maximum value. This is called the stall torque, and the corresponding
current is also a maximum value. As the armature begins to rotate, both torque and
current decrease because rotating the armature in the magnetic field of the stator pro-
duces a voltage across the armature terminals, called the back-emf. In effect, the motor
acts like a generator, and the back-emf increases with rotational speed as follows:
Eb = Kvv (6.5)
where Eb = back@emf, V; v = angular velocity, rad/sec; and Kv = the voltage constant
of the motor, V/(rad/sec). The effect of the back-emf is to reduce the current flowing
through the armature windings. The angular velocity in rad/sec can be converted to the
more familiar rotational speed as follows:
60v
N = (6.6)
2p
where N = rotational speed, rev/min.
Given the resistance of the armature Ra and an input voltage Vin supplied to the
motor terminals, the starting armature current is given by the following:
Vin
Ia = (6.7)
Ra
This starting current produces a starting torque as given by Equation (6.4). But as the
armature begins to rotate, it generates the back-emf Eb, which reduces the available
voltage. Thus, the actual armature current depends on the rotational speed of the rotor,
Vin - Eb Vin - Kvv
Ia = = (6.8)
Ra Ra
where all of the terms are defined earlier. Combining Equations (6.4) and (6.8), the
torque produced by the DC servomotor at a speed v is
Vin - Kvv
T = Kt a b (6.9)
Ra
Sec. 6.2 / Actuators 129
The mechanical power delivered by the motor is the product of torque and velocity,
as defined in the following equation:
P = Tv (6.10)
where P = power in N-m/sec (Watts); T = motor torque, N-m; and v = angular veloc-
ity, rad/sec. The corresponding horsepower is given by
Tv
HP = (6.11)
745.7
TL = KLv (6.12)
where TL = load torque, N-m; and KL = the constant of proportionality between torque
and angular velocity, N-m/(rad/sec). The functionality between KL and TL may be other
than proportional, such that KL itself depends on the angular velocity. For example, the
torque required to drive a fan increases approximately as the square of the rotational
speed, that is, TL ∝ v2.
The torque developed by the motor and the torque required by the load must be
balanced. That is, T = TL in steady-state operation and this torque is called the operat-
ing point. The motor torque relationship with angular velocity can be plotted as shown
in Figure 6.3, called the torque–speed curve. Also shown in the figure is the load torque
relationship. The intersection of the two plots is the operating point, which is defined by
the values of torque and angular velocity.
Torque T
Starting torque
Motor
Load
Operating point
No-load speed
Speed w
The preceding model of DC servomotor operation neglects certain losses and inef-
ficiencies that occur in these motors (similar losses occur in all electric motors). These
losses include brush contact losses at the commutator, armature losses, windage (air drag
Sec. 6.2 / Actuators 131
losses at high rotational speeds of the rotor), and mechanical friction losses at the bear-
ings. The model also neglects the dynamics of motor operation. In fact, the inertial char-
acteristics of the motor itself and the load that is driven by it, as well as any transmission
mechanisms (e.g., gearbox), would play an important role in determining how the motor
operates as a function of time. Despite their limitations, the equations do illustrate one
of the significant advantages of a DC servomotor: its ability to deliver a very high torque
at a starting velocity of zero. In addition, it is a variable-speed motor, and its direction of
rotation can be readily reversed. These are important considerations in many automation
applications where the motor is called upon to frequently start and stop its rotation or to
reverse direction.
AC Motors. Although DC motors have several attractive features, they have two
important disadvantages: (1) the commutator and brushes used to conduct current from
the stator assembly to the rotor result in maintenance problems with these motors,1 and
(2) the most common electrical power source in industry is alternating current, not direct
current. In order to use AC power to drive a DC motor, a rectifier must be added to con-
vert the alternating current to direct current. For these reasons, AC motors are widely
used in many industrial applications. They do not use brushes, and they are compatible
with the predominant type of electrical power.
Alternating current motors operate by generating a rotating magnetic field in the
stator, and the rotational speed of the rotor depends on the frequency of the input electri-
cal power. The rotor is forced to turn at a speed that depends on the rotating magnetic
field. AC motors can be classified into two broad categories: synchronous motors and
induction motors.
Synchronous motors operate by energizing the rotor with alternating current, which
generates a magnetic field in the gap separating the rotor and the stator. This magnetic
field creates a torque that turns the rotor at the same rotational speed as the magnetic
forces in the stator. The term synchronous derives from the fact that the rotor rotation
is synchronized with the AC frequency in steady-state operation. Synchronous motors
cannot start by themselves from zero speed; they require a device, sometimes called an
exciter, to initiate rotation of the rotor when power is first supplied to the motor. The ex-
citer, which may be an electric motor itself, accelerates the rotational speed of the rotor
so that it can be synchronized with that of the stator’s rotating magnetic field.
Induction motors are probably the most widely used motors in the world, due to
their relatively simple construction and low manufacturing cost. In the operation of this
motor type, a magnetic field is induced (hence the term induction) in the rotor from the
stator. Because of this feature, the rotor in most induction motors does not need electrical
current from an external power supply. Thus, no brushes or other means of connection
are required for the rotating component of an induction motor. Unlike synchronous mo-
tors, induction motors operate at speeds that are slower than the synchronous speed. The
steady-state rotational speed depends on the load that the motor is driving. In fact, if the
rotor speed were equal to the synchronous speed of the stator magnetic field, then no
induced voltage and no torque would be generated in the rotor. By the same reasoning,
when AC power is first applied to an induction motor, the induced magnetic field and
torque are maximum, so no exciter is needed to start the motor turning.
1
This disadvantage is eliminated by the use of brushless DC motors.
132 Chap. 6 / Hardware Components for Automation and Process Control
Both synchronous motors and induction motors operate at constant speeds. Most
of their applications are those in which running at a fixed speed is required. This is a
disadvantage in many automation applications because frequent speed changes are often
necessary with much starting and stopping. The speed issue is sometimes addressed by
using adjustable-frequency drives (called inverters) that control the cycle rate of the AC
power to the motor. Motor speed is proportional to frequency, so changing the frequency
changes the motor speed. Advances in solid-state electronics have also improved speed
control for AC motors, and they are now competitive in some applications traditionally
reserved for DC motors.
Stepper Motors. Also called step motors and stepping motors, this motor type
provides rotation in the form of discrete angular displacements, called step angles. Each
angular step is actuated by a discrete electrical pulse. The total angular rotation is con-
trolled by the number of pulses received by the motor, and rotational speed is controlled
by the frequency of the pulses. The step angle is related to the number of steps for the
motor according to the relationship
360
a = (6.13)
ns
where a = the step angle, degrees, °; and ns = the number of steps for the stepper
motor, which must be an integer value. Typical values for the step angle in commercially
available stepper motors are 7.5°, 3.6°, and 1.8°, corresponding to 48, 100, and 200 steps
(pulses) per revolution of the motor. The total angle through which the motor rotates Am
is given by
Am = npa (6.14)
where Am is measured in degrees, °; np = the number of pulses received by the motor;
and a = the step angle. The angular velocity v (rad/sec) and speed of rotation N (rev/
min) are given by the expressions
2pfp
v = (6.15)
ns
60fp
N = (6.16)
ns
where fp = pulse frequency, pulses/sec or Hz; and ns = the number of steps in the motor,
steps/rev or pulses/rev.
The typical torque–speed relationships for a stepper motor are shown in Figure 6.4.
As in the DC servomotor, torque decreases with increased rotational speeds. And because
rotational speed is related to pulse frequency in the stepper motor, torque is lower at higher
pulse rates. As indicated in the figure, there are two operating modes, locked-step and
slewing. In the locked-step mode, each pulse received by the motor causes a discrete an-
gular step to be taken; the motor starts and stops (at least approximately) with each pulse.
In this mode the motor can be started and stopped, and its direction of rotation can be re-
versed. In the slewing mode, usually associated with higher speeds, the motor’s rotation is
more or less continuous and does not allow for stopping or reversing with each subsequent
step. Nevertheless, the rotor does respond to each individual pulse; that is, the relationship
between rotating speed and pulse frequency is retained in the slewing mode.
Sec. 6.2 / Actuators 133
Torque T
Slewing
mode
Locked-step
mode
Speed w
Stepper motors are used in open-loop control systems for applications in which
torque and power requirements are low to modest. They are widely used in machine tools
and other production machines, industrial robots, x–y plotters, medical and scientific in-
struments, and computer peripherals. Probably the most common application is to drive
the hands of analog quartz watches.
Rotary-to-Linear Motion Conversion. The motor types discussed above all pro-
duce rotary motion and apply torque. Many actuator applications require linear motion
and the application of force. A rotating motor can be used in these applications by con-
verting its rotary motion into linear or translational motion. The following are some of
the common conversion mechanisms used for this purpose:
Leadscrews and ball screws. The motor shaft is connected to a leadscrew or ball
screw, which have helical threads throughout their lengths. A lead nut or ball nut is
threaded onto the screw and prevented from rotating when the screw rotates; thus,
the nut is moved linearly along the screw. Direction of linear motion depends on the
direction of rotation of the screw.
Pulley systems. The motor shaft is connected to the driver wheel in a pulley system,
around which a belt, chain, or other flexible material forms a loop with an idler
wheel. As the motor shaft rotates, the flexible material is pulled linearly between
the pulley wheels.
Rack and pinion. The motor shaft is connected to a pinion gear that is mated with
a rack, which is a straight gear with tooth spacings that match those of the gear. As
the gear is rotated, the rack is moved linearly.
These arrangements are depicted in Figure 6.5. Of the three categories, the use of
leadscrews and ball screws is most common in machine tools, industrial robots, and other
automation applications. A gear reduction box is often inserted between the motor shaft
and the screw to reduce speed and increase torque and precision. Ball screws are to lead-
screws as ball bearings are to conventional sliding bearings. The use of screws is discussed
in the context of numerical control positioning systems in Section 7.4. Pulley systems are
common in material transport equipment such as belt and chain conveyors and hoists.
134 Chap. 6 / Hardware Components for Automation and Process Control
Worktable
Motor
Leadscrew or
ball screw
Nut
(a)
Worktable
Belt
(b)
Pinion gear
Rack
(c)
Belt-driven pulley systems can also be used for positioning. Rack-and-pinion mechanisms
are found in gear systems, for example, rack-and-pinion steering in automobiles.
Linear Motors. A linear electric motor provides a linear motion directly; it does
not require a rotary-to-linear conversion. Its operation is similar to that of rotary elec-
tric motors, except that the ring-shaped stator and cylindrical-shaped rotor are straight
rather than circular. The rotor, known as the forcer in linear motor terminology, consists
of wire windings encased in a non-conducting material such as epoxy, and the magnetic
field that drives the forcer consists of a series of magnets contained in a straight track,
which corresponds to the stator. Just as a rotary motor requires bearings to align the
rotor inside the stator, creating a small air gap between them, a linear motor requires
straight guideways that support the forcer and maintain a gap between it and the mag-
netic track. Linear encoders can be used to indicate the position and speed of the forcer
along the track, just as rotary encoders are used to determine angular position and speed
of a rotary motor.
Unlike a rotary motor, in which the rotor rotates inside a stationary stator, a linear
motor can be designed so that either the forcer or the track moves. The usual application in
positioning systems is for the forcer to move relative to a stationary track, because the mass
Sec. 6.2 / Actuators 135
Track v
Cable
v
Cable
Figure 6.6 Three styles of linear motor: (a) flat, (b) U-channel, and
(c) cylindrical.
of the forcer is less than the mass of the track. The disadvantage of this arrangement is that
a flexible cable apparatus must be connected to the moving forcer. This flexible cable ap-
paratus is not required in linear motors that move the track relative to a fixed forcer.
Linear motors are available in three styles [13]: flat, U-channel, and cylindrical, pic-
tured in Figure 6.6. The flat style consists of a straight, flat track, along which the forcer
moves. The U-channel design has a track whose cross section consists of two parallel rails
connected at the base to form a “U.” The forcer moves inside the two rails and is sup-
ported mechanically by two straight ways at the top of the rails. In the cylindrical style,
the forcer is a round shaft that moves linearly inside a housing containing the magnets.
The housing serves the purpose of the track in this design.
Applications of linear motors include mechanical and electronic assembly, metrol-
ogy, and laser positioning. They are sometimes used as alternatives to rotary motors with
linear motion converters, where they often compare favorably in terms of accuracy, re-
peatability, acceleration, speed, and ease of installation [14]. One limitation is that they
should not be used where vertical lifting is required, because if power to the motor is lost,
gravity would cause any load that had been lifted to fall.
There are other types of electrical actuators in addition to motors. These include sole-
noids and relays, which are electromagnetic devices like electric motors, but they operate
differently. There are also actuators that operate using hydraulic and pneumatic power.
Spring (return)
but it opens and closes circuits that carry high currents and/or voltages. Thus, relays are a
safe way to remotely switch on and off equipment that requires high electrical power.
Fluid port
Spring (return)
Piston Piston
Cylinder Cylinder
(a) (b)
fluid is incompressible, and the speed and force of the piston depend on the fluid flow
rate and pressure inside the cylinder, respectively, as given by the expressions
Q
v = (6.17)
A
F = pA (6.18)
where v = velocity of the piston, m/sec (in/sec); Q = volumetric flow rate, m3/sec (in3/
sec); A = area of the cylinder cross section, m2 (in2); F = applied force, N (lbf); and
p = fluid pressure, N>m2 or Pa 1lb>in2 2. It should be noted that in a double-acting cylin-
der, the area is different in the two directions due to the presence of the piston rod. When
the piston is retracted into the cylinder, the cross-sectional area of the piston rod must
be subtracted from the cylinder area. This means that the piston speed will be slightly
greater and the applied force will be slightly less when the piston is retracting (reverse
stroke) than when it is extending (forward stroke).
Fluid-powered rotary motors are also available to provide a continuous rotational
motion. Hydraulic motors are noted for developing high torques, and pneumatic mo-
tors can be used for high-speed applications. There are several different mechanisms by
which these motors operate, including the use of pistons, vanes, and turbine blades. The
performance characteristics of the air-driven rotary motors are more difficult to analyze,
just like the operation of the pneumatic cylinder. On the other hand, hydraulic motors
have well-behaved characteristics. In general, the rotation speed of a hydraulic motor is
directly proportional to the fluid flow rate, as defined in the equation
v = KQ (6.19)
where v = angular velocity, rad/sec; Q = volumetric fluid flow rate, m3 >sec 1in3 >sec2;
and K is a constant of proportionality with units of rad>m3 1rad>in3 2. Angular velocity
(rad/sec) can be converted to revolutions per minute (rev/min) by multiplying by 60>2p.
138 Chap. 6 / Hardware Components for Automation and Process Control
Continuous analog signals from a process must be converted into digital values to be used by
the computer, and digital data generated by the computer must be converted to analog signals
to be used by analog actuators. The two conversion procedures are discussed in this section.
The procedure for converting an analog signal from the process into digital form typically
consists of the following steps and hardware devices, as illustrated in Figure 6.9:
1. Sensor and transducer. This is the measuring device that generates the analog signal
(Section 6.1).
2. Signal conditioning. The continuous analog signal from the transducer may require
conditioning to render it into more suitable form. Common signal conditioning
steps include (1) filtering to remove random noise and (2) conversion from one
signal form to another, for example, converting a current into a voltage.
3. Multiplexer. The multiplexer is a switching device connected in series with each input
channel from the process; it is used to time-share the analog-to-digital converter
(ADC) among the input channels. The alternative is to have a separate ADC for
each input channel, which would be costly for a large application with many input
channels. Because the process variables need only be sampled periodically, using a
multiplexer provides a cost-effective alternative to dedicated ADCs for each channel.
4. Amplifier. Amplifiers are used to scale the incoming signal up or down to be com-
patible with the range of the analog-to-digital converter.
5. Analog-to-digital converter. As its name indicates, the function of the ADC is to
convert the incoming analog signal into its digital counterpart.
Consider the operation of the ADC, which is the heart of the conversion process.
Analog-to-digital conversion occurs in three steps: (1) sampling, (2) quantization, and (3)
encoding. Sampling consists of converting the continuous signal into a series of discrete
analog signals at periodic intervals, as shown in Figure 6.10. In quantization, each discrete
analog signal is assigned to one of a finite number of previously defined amplitude levels.
The amplitude levels are discrete values of voltage ranging over the full scale of the ADC.
Process
(1) Sensor and
transducer
(5) ADC
Digital (2) Signal
input to conditioning
computer
(4) Amplifier Other signals
(3) Multiplexer
Analog signal
Variable
Discrete
sampled signal
Time
In the encoding step, the discrete amplitude levels obtained during quantization are con-
verted into digital code, representing the amplitude level as a sequence of binary digits.
In selecting an analog-to-digital converter for a given application, the following fac-
tors are relevant: (1) sampling rate, (2) conversion time, (3) resolution, and (4) conversion
method.
The sampling rate is the rate at which the continuous analog signals are sampled or
polled. A higher sampling rate means that the continuous waveform of the analog signal
can be more closely approximated. When the incoming signals are multiplexed, the maxi-
mum possible sampling rate for each signal is the maximum sampling rate of the ADC
divided by the number of channels that are processed through the multiplexer. For exam-
ple, if the maximum sampling rate of the ADC is 1,000 samples/sec, and there are 10 input
channels through the multiplexer, then the maximum sampling rate for each input line is
1,000>10 = 100 sample>sec. (This ignores time losses due to multiplexer switching.)
The maximum possible sampling rate of an ADC is limited by the ADC conver-
sion time. Conversion time of an ADC is the time interval between the application of
an incoming signal and the determination of the digital value by the quantization and
encoding steps of the conversion procedure. Conversion time depends on (1) the type of
conversion procedure used by the ADC and (2) the number of bits n used to define the
converted digital value. As n is increased, conversion time increases (bad news), but reso-
lution of the ADC improves (good news).
The resolution of an ADC is the precision with which the analog signal is evaluated.
Because the signal is represented in binary form, precision is determined by the number
of quantization levels, which in turn is determined by the bit capacity of the ADC and the
computer. The number of quantization levels is defined as
Nq = 2n (6.20)
where Nq = number of quantization levels; and n = number of bits. Resolution can be
defined in equation form as
L L
RADC = = n (6.21)
Nq - 1 2 - 1
where RADC = resolution of the ADC, also called the quantization-level spacing, which
is the length of each quantization level; L = full@scale range of the ADC, usually 0–10 V
(the incoming signal must typically be amplified, either up or down, to this range); and
Nq = the number of quantization levels, defined in Equation (6.20).
Quantization generates an error, because the quantized digital value is likely to
be different from the true value of the analog signal. The maximum possible error oc-
curs when the true value of the analog signal is on the borderline between two adjacent
140 Chap. 6 / Hardware Components for Automation and Process Control
quantization levels; in this case, the error is one-half the quantization-level spacing. By
this reasoning, the quantization error is defined
1
Quantization error = { RADC (6.22)
2
Various conversion methods are available by which to encode an analog signal into
its digital equivalent. The most commonly used technique, called the successive approxi-
mation method, is discussed here. In this method, a series of known trial voltages are
successively compared to the input signal whose value is unknown. The number of trial
voltages corresponds to the number of bits used to encode the signal. The first trial volt-
age is half the full-scale range of the ADC, and each successive trial voltage is half the
preceding value. Comparing the remainder of the input voltage with each trial voltage
yields a bit value of “1” if the input exceeds the trial value and “0” if the input is less than
the trial voltage. The successive bit values, multiplied by their corresponding trial voltage
values, provide the encoded value of the input signal.
Input
voltage
8
6.8 V
6
4
For six digit precision,
the resulting binary
2 1.8 V
digital value is 101011,
0.55 0.238 which is interpreted as:
1 × 5.0 V
0.312 0.156 0 × 2.5 V
0.625
1.25 1 × 1.25 V
0 × 0.625 V
2.5 V
1 × 0.312 V
1 × 0.156 V
Trial Total = 6.718 V
voltage 5V
Digital 1 0 1 0 1 1
output
The process performed by a digital-to-analog converter (DAC) is the reverse of the ADC
process. The DAC transforms the digital output of the computer into a continuous signal
to drive an analog actuator or other analog device. Digital-to-analog conversion consists
of two steps: (1) decoding, in which the digital output of the computer is converted into
a series of analog values at discrete moments in time, and (2) data holding, in which each
successive value is changed into a continuous signal (usually electrical voltage) used to
drive the analog actuator during the sampling interval.
Decoding is accomplished by transferring the digital value from the computer to a
binary register that controls a reference voltage source. Each successive bit in the regis-
ter controls half the voltage of the preceding bit, so that the level of the output voltage is
determined by the status of the bits in the register. Thus, the output voltage is given by
Eo = Eref 50.5B1 + 0.25B2 + 0.125B3 + g + 12n 2 -1 Bn 6 (6.23)
where Eo = output voltage of the decoding step, V; Eref = reference voltage, V;
B1, B2, p , Bn = status of successive bits in the register, 0 or 1; and n = number of bits
in the binary register.
The objective in the data holding step is to approximate the envelope formed by
the data series, as illustrated in Figure 6.12. Data holding devices are classified according
to the order of the extrapolation calculation used to determine the voltage output during
sampling intervals. The most common extrapolator is a zero-order hold, in which the out-
put voltage is a sequence of step signals, as in Figure 6.12(a). The voltage function during
the sampling interval is constant and can be expressed simply as
E1t2 = Eo (6.24)
where E1t2 = voltage as a function of time t during the sampling interval, V; and
Eo = voltage output from the decoding step, Equation (6.23).
The first-order data hold is less common than the zero-order hold, but it usually
approximates the envelope of the sampled data values more closely. With the first-order
hold, the voltage function E(t) during the sampling interval changes with a constant slope
determined by the two preceding Eo values. Expressing this mathematically,
E1t2 = Eo + at (6.25)
0 0
Time Time
(a) (b)
Figure 6.12 Data holding step using (a) zero-order hold and
(b) first-order hold.
142 Chap. 6 / Hardware Components for Automation and Process Control
where a = rate of change of E(t); Eo = output voltage from Equation (6.24) at the start
of the sampling interval, V; and t = time, sec. The value of a is computed each sampling
interval as
Eo - Eo 1 -t2
a = (6.26)
t
where Eo = output voltage from Equation (6.23) at the start of the sampling interval,
V; t = time interval between sampling instants, sec; and Eo 1 -t2 = value of Eo from
Equation (6.23) from the preceding sampling instant (removed backward in time by t), V.
The result of the first-order hold is illustrated in Figure 6.12(b).
Determine (a) the decoder output values for the three sampling instants, (b)
the voltage signals between instants 2 and 3 for a zero-order hold, and (c) the
voltage signals between instants 2 and 3 for a first-order hold.
Solution: (a) The decoder output values for the three sampling instants are computed
according to Equation (6.23) as follows:
(b) The zero-order hold between sampling instants 2 and 3 is a constant volt-
age E1t2 = 65.63 V according to Equation (6.24).
(c) The first-order hold yields a steadily increasing voltage. The slope a is given
by Equation (6.26):
65.63 - 62.5
a = = 6.25
0.5
Sec. 6.4 / Input/Output Devices for Discrete Data 143
and from Equation (6.25), the voltage function between instants 2 and 3 is
E1t2 = 65.63 + 6.25t
These values and functions are plotted in Figure 6.13. Note that the first-order
hold more accurately anticipates the value of Eo at sampling instant 3 than
does the zero-order hold.
Voltage
70.31
70
65.63
65 First-order hold
62.50 Zero-order hold
60
Time
Discrete data can be processed by a digital computer without the kinds of conversion
procedures required for continuous analog signals. As indicated earlier, discrete data
divide into three categories: (a) binary data, (b) discrete data other than binary, and
(c) pulse data.
Contact interfaces are of two types, input and output. These interfaces read binary data
from the process into the computer and send binary signals from the computer to the pro-
cess, respectively. The terms input and output are relative to the computer.
A contact input interface is a device by which binary data are read into the com-
puter from some external source (e.g., a process). It consists of a series of simple con-
tacts that can be either closed or open (on or off) to indicate the status of binary devices
connected to the process such as limit switches (contact or no contact), valves (open or
closed), or motor pushbuttons (on or off). The computer periodically scans the actual
status of the contacts to update the values stored in memory.
The contact input interface can also be used to enter discrete data other than binary.
This type of data is generated by devices such as a photoelectric sensor array (Table 6.2)
144 Chap. 6 / Hardware Components for Automation and Process Control
and can be stored in a binary register consisting of multiple bits. The individual bit values
(0 or 1) can be entered through the contact input interface. In effect, a certain number of
contacts in the input interface are assigned to the binary register, the number of contacts
being equal to the number of bits in the register. The binary number can be converted to
a conventional base 10 number as needed in the application.
The contact output interface is a device that communicates on/off signals from the
computer to the process. The contact positions are set either on or off. These positions are
maintained until changed by the computer, perhaps in response to events in the process.
In computer process-control applications, hardware controlled by the contact output in-
terface include alarms, indicator lights (on control panels), solenoids, and constant-speed
motors. The computer controls the sequence of on/off activities in a work cycle through
this contact output interface.
The contact output interface can be used to transmit a discrete data value other
than binary by assigning an array of contacts in the interface for that purpose. The 0 and 1
values of the contacts in the array are evaluated as a group to determine the correspond-
ing discrete number. In effect, this procedure is the reverse of that used by the contact
input interface for discrete data other than binary.
Discrete data can also exist in the form of a series of pulses. Such data is generated by
digital transducers such as optical encoders. Pulse data are also used to control certain
devices such as stepper motors.
A pulse counter is a device that converts a series of pulses (pulse train, as shown
in Figure 5.1) into a digital value. The value is then entered into the computer through
its input channel. The most common type of pulse counter is one that counts electrical
pulses. It is constructed using sequential logic gates, called flip-flops, which are electronic
devices that possess memory capability and that can be used to store the results of the
counting procedure.
Pulse counters can be used for both counting and measurement applications. A
typical counting application might add up the number of packages moving past a photo-
electric sensor along a conveyor in a distribution center. A typical measurement applica-
tion might indicate the rotational speed of a shaft. One possible method to accomplish
the measurement is to connect the shaft to a rotary encoder (Table 6.2), which generates
a certain number of electrical pulses for each rotation. To determine rotational speed,
the pulse counter measures the number of pulses received during a certain time period
and divides this by the duration of the time period and by the number of pulses in each
revolution of the encoder. Counters are discussed in the context of digital control in
Section 9.1.2.
A pulse generator is a device that produces a series of electrical pulses whose
total number and frequency are determined and sent by the control computer. The total
number of pulses might be used to drive a stepper motor in a positioning system. The
frequency of the pulse train, or pulse rate, could be used to control the rotational speed
of a stepper motor. A pulse generator operates by repeatedly closing and opening an
electrical contact, thus producing a sequence of discrete electrical pulses. The ampli-
tude (voltage level) and frequency are designed to be compatible with the device being
controlled.
Review Questions 145
REFERENCES
REVIEW QUESTIONS
PROBLEMS
calibration procedure must be performed for each combination of tool material and work
metal. In the combination of interest here, the calibration curve (inverse transfer func-
tion) for a particular grade of cemented carbide tool when used to turn C1040 steel is the
following: T = 48.94Etc - 53, where T = temperature, °C; and Etc = the emf output of
the thermocouple, mV. (a) Revise the temperature equation so that it is in the form of
a transfer function similar to that given in Equation (6.3). What is the sensitivity of this
tool-chip thermocouple? (b) During a straight turning operation, the emf output of the
thermocouple was 9.25 mV. What was the corresponding cutting temperature?
Actuators
6.6 (A) A DC servomotor has a torque constant of 0.075 N-m/A and a voltage constant of
0.12 V/(rad/sec). The armature resistance is 2.5 Ω. A terminal voltage of 24 V is used to
operate the motor. Determine (a) the starting torque generated by the motor just as the
voltage is applied, (b) the maximum speed at a torque of zero, and (c) the operating point
of the motor when it is connected to a load whose torque characteristic is proportional to
speed with a constant of proportionality = 0.0125 N@m>(rad>sec).
6.7 In the previous problem, what is the power delivered by the motor at the operating point in
units of (a) Watts and (b) horsepower?
6.8 A DC servomotor is used to actuate one of the axes of an x–y positioner. The motor has
a torque constant of 10.0 in-lb/A and a voltage constant of 12.0 V/(1,000 rev/min). The
armature resistance is 3.0 Ω. At a given moment, the positioning table is not moving and
a voltage of 48 V is applied to the motor terminals. Determine the torque (a) immediately
after the voltage is applied and (b) at a rotational speed of 500 rev/min. (c) What is the
maximum theoretical speed of the motor?
6.9 A DC servomotor generates 50 W of mechanical power in an application in which the
constant of proportionality between the load and angular velocity = 0.022 N@m>(rad>sec).
The motor has a torque constant of 0.10 N-m/A and a voltage constant of 0.15 V/(rad/sec).
A voltage of 36 V is applied to the motor terminals. Determine the armature resistance of
the motor.
6.10 A voltage of 24 V is applied to a DC motor whose torque constant = 0.115 N@m>A and
voltage constant = 0.097 V>(rad>sec). Armature resistance = 1.9 Ω. The motor is di-
rectly coupled to a blower shaft for an industrial process. (a) What is the stall torque of
the motor? (b) Determine the operating point of the motor if the torque–speed charac-
teristic of the blower is given by the following equation: TL = KL1v + KL2v2, where
TL = load torque, N-m; v = angular velocity, rad/sec; KL1 = 0.005 N@m>(rad>sec), and
KL2 = 0.00033 N@m>(rad>sec)2. (c) What horsepower is being generated by the motor at
the operating point?
6.11 The input voltage to a DC motor is 12 V. The motor rotates at 2,200 rev/min at no load
(maximum speed). Stall torque is 0.44 N-m, and the corresponding current is 9.0 A.
Operating at 1,600 rev/min, the torque is 0.12 N-m, and the current is 2.7 A. Based on these
values, determine (a) the torque constant, (b) voltage constant, and (c) armature resistance
of the motor. (d) How much current does the motor draw operating at 1,600 rev/min?
6.12 The step angle of a stepper motor = 1.8°. The motor shaft is to rotate through 15 complete
revolutions at an angular velocity of 7.5 rad/sec. Determine (a) the required number of
pulses and (b) the pulse frequency to achieve the specified rotation. (c) How much time is
required to complete the 15 revolutions?
6.13 (A) A stepper motor has a step angle = 3.6°. (a) How many pulses are required for the
motor to rotate through five complete revolutions? (b) What pulse frequency is required
for the motor to rotate at a speed of 180 rev/min?
148 Chap. 6 / Hardware Components for Automation and Process Control
6.14 The shaft of a stepper motor is directly connected to a leadscrew that drives a worktable
in an x–y positioning system. The motor has a step angle = 5°. The pitch of the leadscrew
is 6 mm, which means that the worktable moves in the direction of the leadscrew axis by
a distance of 6 mm for each complete revolution of the screw. It is desired to move the
worktable a distance of 275 mm at a top speed of 20 mm/sec. Determine (a) the number of
pulses and (b) the pulse frequency required to achieve this movement. (c) How much time
is required to move the table the desired distance at the desired speed, assuming there are
no delays due to inertia?
6.15 A single-acting hydraulic cylinder with spring return has an inside diameter of 95 mm. Its
application is to push pallets off of a conveyor into a storage area. The hydraulic power
source can generate up to 2.5 MPa of pressure at a flow rate of 100,000 mm3/sec to drive
the piston. Determine (a) the maximum possible velocity of the piston and (b) the maxi-
mum force that can be applied by the apparatus. (c) Is this a good application for a hydrau-
lic cylinder, or would a pneumatic cylinder be better?
6.16 (A) A double-acting hydraulic cylinder has an inside diameter of 80 mm. The piston rod
has a diameter of 15 mm. The hydraulic power source can generate up to 4.0 MPa of pres-
sure at a flow rate of 125,000 mm3/sec to drive the piston. (a) What are the maximum
possible velocity of the piston and the maximum force that can be applied in the forward
stroke? (b) What are the maximum possible velocity of the piston and the maximum force
that can be applied in the reverse stroke?
6.17 A double-acting hydraulic cylinder is used to actuate a linear joint of an industrial robot.
The inside diameter of the cylinder is 3.5 in. The piston rod has a diameter of 0.5 in. The hy-
draulic power source can generate up to 500 lb/in2 of pressure at a flow rate of 1,200 in3/min
to drive the piston. (a) Determine the maximum velocity of the piston and the maximum
force that can be applied in the forward stroke. (b) Determine the maximum velocity of the
piston and the maximum force that can be applied in the reverse stroke.
Analog–Digital Conversion
6.18 (A) A continuous voltage signal is to be converted into its digital counterpart using an
analog-to-digital converter. The maximum voltage range is {30 V. The ADC has a 12-bit
capacity. Determine (a) number of quantization levels, (b) resolution, and (c) the quanti-
zation error for this ADC.
6.19 A voltage signal with a range of 0 to 115 V is to be converted by means of an ADC.
Determine the minimum number of bits required to obtain a quantization error of
(a) {5 V maximum, (b) {1 V maximum, (c) { 0.1 V maximum.
6.20 A digital-to-analog converter uses a reference voltage of 120 V DC and has eight
binary digit precision. In one of the sampling instants, the data contained in the
binary register = 01010101. If a zero-order hold is used to generate the output signal,
determine the voltage level of that signal.
6.21 A DAC uses a reference voltage of 80 V and has 6-bit precision. In four successive sam-
pling periods, each 1 sec long, the binary data contained in the output register were 100000,
011111, 011101, and 011010. Determine the equation for the voltage as a function of time
between sampling instants 3 and 4 using (a) a zero-order hold and (b) a first-order hold.
6.22 In the previous problem, suppose that a second-order hold were to be used to gen-
erate the output signal. The equation for the second-order hold is the following:
E(t) = E0 + at + bt 2, where E0 = starting voltage at the beginning of the time interval.
(a) For the binary data given in the previous problem, determine the values of a and b
that would be used in the equation for the time interval between sampling instants 3 and 4.
(b) Compare the first-order and second-order holds in anticipating the voltage at the 4th
instant.