Chapter 13
Control, Automation and Mechatronic Integration
Bachelors Program in Mechnical Engineering
Basic Electrical & Electronics Engineering
•
Bachelor
Control, Automation and Mechatronic Integration
Introduction and Context
Modern mechanical systems rarely operate as purely mechanical devices. A machine tool, packaging line, autonomous vehicle, pump station, or robotic cell combines mechanical structures with electrical power conversion, sensors, embedded computation, actuators, communication networks, and human interfaces. This integrated discipline is mechatronics. Control engineering supplies the methods by which the system measures its condition, compares it with a desired condition, and applies corrective action.
Automation is the organized use of control systems to perform a process with limited direct human intervention. Automation may be fixed, programmable, or flexible. Fixed automation is optimized for high-volume production of a stable product. Programmable automation permits product changes through software or recipes. Flexible automation combines reprogrammability with relatively rapid changeover.
This chapter develops the basic models needed to analyze open-loop and closed-loop systems, introduces transfer functions and feedback, explains stability and PID control, and shows how sensors, actuators, motors, programmable logic controllers (PLCs), and human–machine interfaces (HMIs) are integrated into safe automated machinery.
Learning Objectives
After studying this chapter, you should be able to:
Distinguish open-loop, closed-loop, sequential, and supervisory control.
Construct simple block diagrams and derive closed-loop transfer functions.
Interpret poles, zeros, time constants, gain, and steady-state error.
Explain stability and identify common causes of unstable or poorly damped response.
Select and interpret proportional, integral, and derivative control action.
Explain the roles and limitations of sensors, actuators, motors, PLCs, and HMIs.
Propose a safe and maintainable mechatronic control architecture.
1. Control-System Foundations
A control system regulates a variable called the controlled variable. The desired value is the set point, and the measured value is the process variable. Their difference is the error:
e(t) = r(t) − ym(t)
Here, r(t) is the reference or set point, ym(t) is the measured output, and e(t) is the error. All three must represent compatible quantities and units.
In an open-loop system, the controller does not use the output measurement to correct its action. For example, a basic timed toaster applies power for a preset interval regardless of the actual toast temperature. Open-loop control is inexpensive and simple, but disturbances, component variation, and changes in load can produce unacceptable output errors.
In a closed-loop system, a sensor measures the output and feedback is used to modify the control signal. A speed-controlled motor is a typical example: an encoder measures speed, the controller compares it with the reference, and the drive changes motor voltage or current.
A control loop generally contains:
reference or command generator;
comparator or error calculation;
controller;
power interface or actuator;
plant or process;
sensor and signal-conditioning circuit;
feedback path.
Feedback is not automatically beneficial. Negative feedback can reduce sensitivity to plant disturbances and parameter variation, but it may reduce overall gain, introduce measurement noise, and create instability if loop delay and phase lag are excessive.
Block-Diagram Representation
Negative feedback control loop with reference, controller, plant and sensor
Figure: Negative feedback control loop with reference, controller, plant and sensor
Figure: Standard negative-feedback loop. The sensor converts the output into a feedback signal that is subtracted from the reference.
2. Mathematical Models and Transfer Functions
A mathematical model describes how an input produces an output. For linear time-invariant systems, the Laplace transform is useful because differentiation becomes multiplication by the complex variable s, subject to specified initial conditions. The transfer function is defined as
G(s) = Y(s) / U(s)
where U(s) and Y(s) are the Laplace transforms of input and output, respectively, with zero initial conditions. The transfer function is applicable to linear time-invariant models; it is not a complete description of nonlinear saturation, backlash, friction discontinuities, or changing operating points.
For a first-order system,
G(s) = K / (τs + 1)
K is the static gain and τ is the time constant in seconds. For a unit-step input, the output is
y(t) = K(1 − e^(−t/τ)), t ≥ 0
The output reaches approximately 63.2% of its final value at t = τ, about 95% at 3τ, and more than 99% at approximately 5τ.
A mechanical mass–damper system illustrates model formation:
m d²x/dt² + b dx/dt = F(t)
where m is mass in kilograms, b is viscous damping in newton-seconds per metre, x is displacement in metres, and F is force in newtons. With zero initial conditions,
X(s)/F(s) = 1/(ms² + bs) = 1/[s(ms + b)]
The model assumes linear viscous damping and neglects Coulomb friction, structural flexibility, and actuator dynamics.
Closed-Loop Transfer Function
Let the forward-path transfer function be G(s) and the feedback-path transfer function be H(s). For negative feedback,
T(s) = Y(s)/R(s) = G(s)/[1 + G(s)H(s)]
The characteristic equation is
1 + G(s)H(s) = 0
Its roots are the closed-loop poles. For unity feedback, H(s) = 1, so T(s) = G(s)/(1 + G(s)). Positive feedback changes the denominator to 1 − G(s)H(s) and is used selectively in oscillators and regenerative systems, not normally for regulation.
Worked Example 1: Closed-Loop Position System
Suppose a position plant is approximated by G(s) = 10/(s(s + 2)), with unity feedback. Then
The characteristic polynomial is s² + 2s + 10. Comparing it with the standard second-order form
s² + 2ζωn s + ωn²
gives ωn = √10 ≈ 3.16 rad/s and 2ζωn = 2, hence ζ = 1/√10 ≈ 0.316. The system is stable but underdamped, so a step command will produce overshoot and oscillatory settling. This conclusion is based on the ideal linear model; actuator saturation and sampling could alter the actual response.
3. Stability, Performance, and Error
A continuous-time linear system is asymptotically stable when all closed-loop poles have negative real parts. A pole on the imaginary axis can produce sustained oscillation in special ideal cases, while a pole in the right half of the s-plane indicates instability. Stability is a prerequisite for useful control, but a stable system can still be too slow, noisy, inaccurate, or energy-intensive.
For a standard second-order denominator,
s² + 2ζωn s + ωn²
ωn is the undamped natural frequency and ζ is the damping ratio. Values of ζ < 1 indicate underdamping, ζ = 1 critical damping, and ζ > 1 overdamping. These classifications apply to a second-order model with positive ωn.
Important response measures include rise time, peak time, percentage overshoot, settling time, and steady-state error. For a lightly underdamped second-order step response, the approximate percentage overshoot is
Mp(%) = 100 exp[−πζ/√(1 − ζ²)]
This expression applies for 0 < ζ < 1 and a normalized second-order response. It should not be applied blindly to higher-order systems with influential additional poles.
The final-value theorem can determine steady-state value when all poles of sY(s) lie in the left half-plane or satisfy the theorem’s stability conditions:
lim(t→∞) y(t) = lim(s→0) sY(s)
System type, meaning the number of pure integrators in the forward path, strongly influences tracking error. An integrator can eliminate steady-state error to a constant reference, but it also adds phase lag and can contribute to instability.
Practical stability analysis may use pole locations, the Routh–Hurwitz criterion, root locus, frequency-response plots, gain margin, and phase margin. In industrial work, stability margins are especially important because model parameters, delays, loads, and sampling times vary.
4. PID Control
The ideal continuous-time PID controller is
u(t) = Kp e(t) + Ki ∫e(t)dt + Kd de(t)/dt
where u(t) is controller output, Kp is proportional gain, Ki is integral gain, and Kd is derivative gain. Equivalently,
C(s) = Kp + Ki/s + Kd s
for an ideal model and zero initial conditions. Units depend on the controlled and manipulated variables; gains must be selected so each term contributes a compatible actuator command.
Proportional action produces an output proportional to present error. Increasing Kp usually reduces error and speeds response, but excessive gain can cause oscillation or saturation. Integral action accumulates error and can remove steady-state error caused by constant disturbances. It may produce slow oscillation and integral windup when the actuator saturates. Derivative action responds to the rate of error change and can improve damping, but it amplifies high-frequency measurement noise.
Industrial PID implementations therefore use derivative filtering, output limits, bumpless transfer, and anti-windup. A practical derivative term may be represented as
Kd s/(1 + Tf s)
where Tf is a small filter time constant in seconds. Digital controllers approximate integration and differentiation using sampled measurements. The sampling period must be sufficiently short relative to the dominant process dynamics, and the sample-and-hold, computation delay, quantization, and communication delay must be considered.
Tuning and Selection
There is no universally best tuning method. Model-based methods use a process model and desired bandwidth or damping. Experimental methods apply a controlled test and adjust gains. Common approaches include step-response tuning, frequency-response tuning, and relay-feedback testing. A tuning that works for one load, speed, or temperature may be unsuitable elsewhere.
A sensible commissioning sequence is:
Verify wiring, scaling, direction of action, limits, and emergency stops.
Operate in manual mode at safe low energy.
Begin with proportional control and a low gain.
Add integral action gradually to remove persistent offset.
Add filtered derivative action only when measurement quality and dynamics justify it.
Test disturbances, set-point changes, saturation, restart, and sensor failure.
5. Sensors, Signal Conditioning, and Actuators
A sensor converts a physical variable into a usable signal. Selection criteria include range, sensitivity, resolution, accuracy, repeatability, linearity, hysteresis, bandwidth, environmental rating, response time, calibration stability, and failure behavior.
Typical sensors include thermocouples and resistance temperature detectors for temperature; strain gauges and load cells for force; inductive and photoelectric proximity sensors for presence; encoders and resolvers for position; tachometers for speed; pressure transducers; accelerometers; and machine-vision cameras.
Signal conditioning may provide amplification, filtering, isolation, linearization, excitation, and analogue-to-digital conversion. A 0–10 V signal is vulnerable to voltage drop and ground potential differences; a 4–20 mA current loop is often more robust over industrial distances and can indicate a broken wire when the current falls below the normal live-zero range. Digital fieldbuses can transmit scaled values, status, diagnostics, and configuration, but depend on correct addressing and network design.
An actuator converts a control command into physical action. Examples are solenoid valves, pneumatic cylinders, hydraulic valves, electric motors, heaters, relays, and servo drives. Actuator selection must consider force or torque, speed, stroke, duty cycle, efficiency, controllability, fail position, braking, thermal limits, and stored energy.
For a rotating actuator, mechanical power is
P = Tω
where P is power in watts, T is torque in newton-metres, and ω is angular speed in radians per second. Unit consistency is essential. If speed is given in revolutions per minute, convert it using ω = 2πn/60, where n is revolutions per minute.
6. Motors and Drives in Automated Machinery
Induction motors are robust and economical, particularly with variable-frequency drives (VFDs). A VFD rectifies incoming power, creates a controlled DC link, and uses an inverter to synthesize variable-frequency motor voltage. Scalar volts-per-hertz control is simple; vector and direct-torque methods provide improved torque and dynamic performance.
Permanent-magnet synchronous motors and brushless DC motors offer high efficiency and power density but require electronic commutation and suitable position information. Servo systems combine a motor, drive, position feedback, and controller. They are used where positioning accuracy, rapid acceleration, and disturbance rejection are important.
Motor-control design must include overload protection, short-circuit protection, braking strategy, electromagnetic compatibility, grounding, cable shielding, and thermal management. A control command must never be treated as a substitute for an energy-isolating safety function.
7. PLCs, Sequence Control, and HMIs
A PLC repeatedly performs a scan cycle: it reads inputs, executes the user program, updates outputs, and performs diagnostics and communication. The exact order and timing depend on the PLC architecture. PLC languages commonly include ladder diagram, function block diagram, structured text, and sequential function chart.
PLCs are especially effective for discrete and sequential tasks: interlocking, counting, timing, product selection, valve sequencing, fault handling, and communication with drives. A robust sequence program separates modes such as stopped, manual, automatic, setup, fault, and emergency state. Each transition should have explicit conditions.
An interlock prevents an unsafe or invalid action. For example, a motor-start command may require a closed guard, acceptable pressure, released emergency stop, no active fault, and a valid operating mode. Interlocks should be designed so that loss of power, broken wiring, or loss of communication leads to a defined safe state where practicable.
An HMI displays process values, alarms, trends, modes, and operator commands. Good HMI design uses consistent symbols, clear units, meaningful alarm priorities, and confirmation for consequential actions. It should not hide safety functions behind a screen. Operators need information about what happened, why it happened, and what action is authorized.
8. Mechatronic Integration Architecture
Integration begins with requirements rather than component selection. The designer defines performance, operating environment, hazards, maintainability, diagnostics, cost, and lifecycle constraints. A functional architecture then maps sensing, computation, actuation, power, communication, and human interaction.
A typical architecture contains a field layer of sensors and actuators; a control layer containing PLCs, motion controllers, and drives; and a supervisory layer containing HMI, historian, manufacturing-execution, or enterprise interfaces. Separation of safety-related control from ordinary control is essential. A safety PLC, safety relay, guard switch, light curtain, or emergency-stop circuit may be required according to the risk assessment and applicable regulations.
Control data should be scaled, timestamped where necessary, and checked for plausibility. A sensor value outside its physical range, frozen value, implausible rate of change, or disagreement with a redundant sensor should generate a diagnostic response. Cybersecurity is also part of engineering reliability: use least privilege, controlled access, network segmentation, secure backups, patch procedures, and change management.
Consider an illustrative case in which a conveyor transports machined components to a vision-inspection station. A pneumatic stopper positions each component, a camera checks two dimensional features, and a servo-driven diverter sends accepted and rejected parts to separate bins.
Problem
The original cell used a timer to stop the conveyor and a manually adjusted air valve. Part spacing varied with load, rejected parts were sometimes diverted late, and operators could not easily distinguish a sensor fault from a mechanical jam.
Analysis
The timing-only strategy was open loop with respect to component position. The principal disturbances were conveyor speed variation, variable component spacing, pneumatic delay, and occasional sensor contamination. The requirements were repeatable positioning, traceable decisions, safe access, and rapid fault diagnosis.
Approach and Solution
An incremental encoder measures conveyor position. A photoelectric sensor detects component arrival, while a second sensor confirms stopper position. The PLC uses the encoder count to create a position window for image capture and diversion. The camera communicates a pass/fail result with a part identifier. A servo drive controls the diverter position, and a pneumatic actuator is retained for the stopper because its simple fail-safe function is appropriate.
The control sequence is divided into initialization, ready, running, inspection, diversion, fault, and safe-stop states. The HMI shows conveyor speed, encoder count, inspection result, air pressure, active state, and alarm history. A guard switch inhibits hazardous motion, and the safety circuit removes drive enable independently of the standard PLC program.
A simple position-error loop for the servo can be represented by
e_θ(t) = θref(t) − θm(t)
where θref is commanded angular position and θm is measured angular position, both in radians. The drive’s internal current, velocity, and position loops may be nested; the cell PLC normally commands a trajectory rather than directly regulating motor current.
Outcome
The integrated design removes dependence on a fixed timer, detects missing or late parts, and associates each inspection result with a physical position. Maintenance staff can identify whether a fault originates in sensing, air supply, communication, motion, or mechanics. The example does not claim a particular numerical productivity improvement; actual outcomes require measured commissioning data.
Learning Points
The case demonstrates that automation quality depends on coordinated mechanics, sensing, control logic, communication, safety, and operator information. Replacing a timer with a more sophisticated controller would not solve poor alignment, contaminated sensors, or inadequate guarding. System-level engineering is therefore more important than isolated component sophistication.
9. Challenges, Limitations, and Professional Practice
Models are approximations. Friction, backlash, dead zones, saturation, compliance, thermal effects, sampling, delay, and nonlinear geometry can make a linear transfer function misleading. Validation should compare predicted and measured responses over the operating range.
Common implementation failures include reversed feedback polarity, incorrect sensor scaling, inadequate grounding, unhandled actuator saturation, integral windup, noisy derivative action, race conditions in PLC logic, unclear mode transitions, and alarms that operators routinely ignore. Formal testing should include normal operation, abnormal operation, power loss, restart, communication loss, sensor disconnection, overload, and emergency stop.
Safety engineering should follow a risk-based process: identify hazards, estimate risk, reduce risk by inherently safer design where possible, apply guarding and protective devices, and provide information and training. Applicable national laws and standards vary by jurisdiction; designers must consult current machinery-safety, electrical-safety, functional-safety, and electromagnetic-compatibility requirements rather than relying on a textbook summary.
Artificial intelligence and machine learning can assist visual inspection, predictive maintenance, anomaly detection, and energy optimization. They should be introduced only when data quality, explainability, cybersecurity, validation, and fallback behavior are adequate. A machine-learning classifier should not silently override a safety function, and its performance must be monitored when products, lighting, tools, or operating conditions change.
Best practice is to maintain version-controlled software, electrical drawings, I/O lists, network maps, calibration records, risk assessments, test protocols, and spare-parts information. Operators and maintenance personnel should participate in design reviews because usability and maintainability strongly affect real-world availability.
Chapter Summary
Control engineering provides a framework for regulating physical processes through measurement, comparison, computation, and actuation. Open-loop systems are simple but cannot correct output disturbances; closed-loop systems use feedback but require careful attention to polarity, delay, noise, and stability. Transfer functions model linear time-invariant dynamics under zero initial conditions, while poles and characteristic equations provide essential stability information.
PID control combines proportional, integral, and derivative action. Proportional action improves responsiveness, integral action removes persistent offset, and derivative action can add damping, although saturation and noise require practical safeguards. Sensors, signal conditioning, actuators, motors, drives, PLCs, HMIs, communication networks, and safety devices must be designed as one mechatronic system. Professional automation requires validation, diagnostics, cybersecurity, maintainability, and risk-based safety—not merely a functioning control algorithm.
Key Terms
Control system: A system that regulates a process or variable.
Open-loop control: Control without measurement-based correction of the output.
Closed-loop control: Control using feedback from the measured output.
Set point: Desired value of the controlled variable.
Process variable: Actual variable being regulated.
Error: Difference between reference and measured feedback signal.
Feedback: Return of measured output information to the controller.
Transfer function: Ratio of output to input transforms for a linear time-invariant system with zero initial conditions.
Pole: A value of s that makes a transfer-function denominator zero.
Zero: A value of s that makes a transfer-function numerator zero.
Stability: Ability of a system to maintain bounded, convergent behavior under specified conditions.
Time constant: Parameter describing the speed of a first-order response.
PID controller: Controller using proportional, integral, and derivative actions.
Actuator: Device that converts a control signal into physical action.
PLC: Industrial computer designed for reliable control and sequencing.
HMI: Interface through which people monitor and operate a machine.
Interlock: Condition that prevents an invalid or unsafe operation.
Servo system: Feedback-controlled motion system using a motor, drive, and position or speed measurement.
Mechatronics: Integrated engineering of mechanical, electrical, control, and computational systems.
Review Questions
Short Answer Questions
What is the principal difference between open-loop and closed-loop control?
State the closed-loop transfer function for negative feedback with forward path G(s) and feedback path H(s)?
What physical meaning does the time constant have in a first-order system?
What is integral windup, and why is anti-windup used?
Name four functions commonly performed by a PLC.
Long Answer Questions
Explain the operation of a negative-feedback control loop and discuss two benefits and two disadvantages of feedback.
Derive the transfer function of a mass–damper system described by m d²x/dt² + b dx/dt = F(t), stating the modeling assumptions.
Compare proportional, integral, and derivative control action, including their effects on error, stability, noise, and actuator saturation.
Describe a complete architecture for an automated machine containing sensors, a PLC, a motor drive, actuators, an HMI, and safety devices.
Explain why a transfer-function model may fail to predict the response of a real machine and describe a suitable validation procedure.
Analytical / Application Questions
A unity-feedback plant has G(s) = 8/[s(s + 4). Derive the closed-loop transfer function and determine whether the ideal linear model is stable.
Design a control and safety concept for a conveyor that detects products, inspects them, and diverts rejected products. Identify sensors, actuators, PLC states, interlocks, HMI information, and likely failure modes.
A motor speed loop oscillates after the load is reduced. Analyze possible causes involving gain, damping, feedback polarity, sampling delay, sensor noise, and saturation, and propose a structured commissioning plan.
Multiple Choice Questions with Answers
Question 1
Which expression represents the closed-loop transfer function for a negative-feedback system with forward path G(s) and feedback path H(s)?
A. G(s)H(s)
B. G(s)/(1 + G(s)H(s))
C. G(s)/(1 − G(s)H(s))
D. H(s)/(1 + G(s))
Correct Answer: B. G(s)/(1 + G(s)H(s))
Question 2
For the first-order system G(s) = K/(τs + 1), the output reaches approximately what percentage of its final step value at t = τ?
A. 25.0%
B. 50.0%
C. 63.2%
D. 95.0%
Correct Answer: C. 63.2%
Question 3
For a continuous-time linear system, which pole pattern indicates asymptotic stability?
A. At least one pole has a positive real part
B. All poles have negative real parts
C. All poles lie on the positive real axis
D. At least one pole is repeated at the origin
Correct Answer: B. All poles have negative real parts
Question 4
Which PID action is primarily used to eliminate steady-state error caused by a constant disturbance?
A. Proportional action
B. Integral action
C. Derivative action
D. Feedforward filtering only
Correct Answer: B. Integral action
Question 5
What is a principal disadvantage of ideal derivative action?
A. It cannot respond to changing error
B. It always creates steady-state offset
C. It amplifies high-frequency measurement noise
D. It prevents any improvement in damping
Correct Answer: C. It amplifies high-frequency measurement noise
Question 6
A rotating shaft delivers torque T = 20 N·m at ω = 10 rad/s. What is the mechanical power?
A. 2 W
B. 30 W
C. 200 W
D. 2,000 W
Correct Answer: C. 200 W
Question 7
Which device is primarily intended to execute industrial sequence logic, read inputs, and update outputs?
A. PLC
B. Thermocouple
C. Induction motor
D. Strain gauge
Correct Answer: A. PLC
Question 8
What is the main purpose of a machine interlock?
A. To increase sensor resolution
B. To prevent an invalid or unsafe operation
C. To replace all physical guarding
D. To increase motor frequency automatically
Correct Answer: B. To prevent an invalid or unsafe operation
Question 9
In a 4–20 mA industrial signal, the 4 mA lower value is commonly called what?
A. Neutral zero
B. Live zero
C. Peak clamp
D. Digital zero
Correct Answer: B. Live zero
Question 10
For the standard second-order form s² + 2ζωn s + ωn², which condition describes an underdamped response?
A. ζ = 0 only
B. ζ < 1 with positive ζ
C. ζ > 2 only
D. ωn < 0
Correct Answer: B. ζ < 1 with positive ζ
Basic Electrical & Electronics Engineering
Chapter 13
of 15