Chapter 9
Industrial Communication and Distributed Integration
Bachelor Program in Mechatronics Engineering
Advanced Mechatronics Systems Design
•
Bachelor
Industrial Communication and Distributed Integration
Introduction
Modern mechatronic products are rarely isolated machines. A production cell may contain programmable logic controllers (PLCs), servo drives, robots, machine-vision systems, safety controllers, sensors, supervisory computers, manufacturing-execution systems (MES), and cloud services. Their value depends not only on individual performance but also on their ability to exchange trustworthy information at the right time and with the correct meaning.
Industrial communication is therefore a systems-engineering concern. The designer must select networks, protocols, data models, timing mechanisms, security controls, and integration patterns that satisfy the physical process. A network that is adequate for inventory reporting may be unsuitable for coordinated motion. Conversely, a highly deterministic field network may be inappropriate for long-term analytics or enterprise integration.
This chapter examines industrial networks and protocols, latency and synchronization, interoperability, edge–cloud architectures, and standards-based interfaces for cyber-physical production systems (CPPSs). The emphasis is on engineering judgment: matching communication properties to control and information requirements rather than treating a protocol as universally superior.
Learning Objectives
By the end of this chapter, the reader should be able to:
Distinguish industrial communication layers, network types, and protocol roles.
Analyze communication latency, jitter, bandwidth, and availability in a distributed control system.
Explain clock synchronization and its importance in coordinated sensing and motion.
Compare interoperability approaches, including OPC UA, MQTT, industrial Ethernet, and digital twins.
Design an edge–cloud architecture for a cyber-physical production system.
Apply standards-based interfaces while addressing safety, cybersecurity, governance, and lifecycle constraints.
1. Communication as a Mechatronic Design Function
A communication system transfers information between entities. In a mechatronic system, those entities may be sensors, actuators, controllers, engineering tools, databases, or human operators. Communication must be evaluated against four related requirements:
Time: when must a message arrive, and how much variation is acceptable?
Meaning: do sender and receiver interpret the data identically?
Trust: can the receiver verify origin, integrity, and authorization?
Continuity: what happens when a link, node, or service fails?
The familiar Open Systems Interconnection (OSI) model is useful for organizing responsibilities. Physical and data-link layers transmit frames; network and transport layers provide addressing and delivery services; session and application layers support meaning and interaction. Industrial systems often combine these functions in specialized stacks. For example, an industrial Ethernet protocol may use standard Ethernet hardware while adding cyclic scheduling, device profiles, diagnostics, or synchronization.
A practical architecture commonly contains three communication domains:
Domain
Typical function
Representative technologies
Field/device
Sensors, actuators, drives, I/O
IO-Link, CANopen, Modbus RTU, industrial Ethernet
Control/plant
PLC, robot, motion and supervisory coordination
EtherCAT, PROFINET, Ethernet/IP, OPC UA
Enterprise/cloud
Production records, analytics, planning
OPC UA, MQTT, HTTPS, databases, APIs
The boundaries are not absolute. A modern controller may communicate directly with cloud services, while an intelligent sensor may expose information through an OPC UA server. The important design principle is separation of requirements: real-time control, supervisory coordination, and business analytics should not be assumed to have identical timing or reliability needs.
2. Industrial Network Classes and Protocols
2.1 Fieldbuses and industrial Ethernet
Traditional fieldbuses such as CAN, PROFIBUS, and Modbus RTU were designed for robust industrial operation and relatively modest data rates. Their strengths include predictable wiring practices, mature diagnostics, and broad device availability. Their limitations may include restricted bandwidth, limited native cybersecurity, and difficulty integrating rich information models.
Industrial Ethernet uses Ethernet physical infrastructure but may add mechanisms for deterministic cyclic exchange. Examples include EtherCAT, PROFINET, Ethernet/IP, and Sercos. They differ in scheduling, topology, device profiles, engineering tools, and synchronization methods. Selection should be based on application requirements and the installed ecosystem, not brand preference.
2.2 Message-oriented and service-oriented communication
A cyclic protocol exchanges process data at regular intervals. This is appropriate for control values such as position commands or I/O states. A message-oriented protocol exchanges messages when events occur or when a subscriber requests data. MQTT, for example, uses a broker and publish–subscribe communication, which is convenient for telemetry and loosely coupled systems.
Service-oriented communication exposes operations, data objects, or events through defined interfaces. OPC Unified Architecture (OPC UA) is important because it combines transport options with a structured information model, discovery, security, subscriptions, and methods. OPC UA does not automatically make an application hard real-time; its suitability depends on the selected transport, implementation, scheduling, and system design. OPC UA PubSub and time-sensitive networking (TSN) can support more demanding industrial use cases, but performance must be validated rather than presumed.
2.3 Protocol selection criteria
A protocol decision should consider:
required cycle time and allowable jitter;
payload size and message frequency;
topology, cable length, and electromagnetic environment;
redundancy and fault-recovery behavior;
device and engineering-tool availability;
semantic richness and data modeling;
security mechanisms and patching support;
certification, safety, and regulatory requirements;
maintainability over the expected machine life.
Interoperability has at least three levels:
Connection interoperability: devices can physically and logically exchange frames.
Syntactic interoperability: data are encoded and structured consistently.
Semantic interoperability: both systems agree on what a value means, including units, scale, quality, timestamp, and state.
A temperature value named T is not semantically interoperable unless the systems also know whether it is in degrees Celsius or Kelvin, whether it is measured or estimated, and whether the value is valid.
3. Performance Analysis: Latency, Jitter, and Bandwidth
3.1 End-to-end latency
Communication latency is the elapsed time from the generation of information at the sender to its usable arrival at the receiver. A simplified one-way model is:
Here, L_sensor is sensing and preprocessing delay; L_queue is waiting time; L_serialization is the time required to place the frame on the link; L_propagation is signal travel time; L_switch represents forwarding delays; and L_receiver includes reception and application processing. All terms are measured in seconds. The model assumes a single message path and additive delays; real networks may add retransmissions, protocol stacks, contention, and operating-system scheduling.
For a link, serialization time is approximately:
Lserialization = 8S / R
where S is the frame size in bytes and R is the data rate in bits per second. For a 200-byte frame on a 100 Mbit/s link:
Lserialization = (8 × 200) / 100,000,000 = 16 μs
This calculation excludes Ethernet overhead, inter-frame gaps, queuing, and device processing. It therefore provides a lower-level estimate rather than a guaranteed end-to-end delay.
3.2 Jitter and deadlines
Jitter is variation in latency or periodic message arrival. In control systems, the worst-case delay may be more important than the average. If a control message must arrive within deadline D, a basic feasibility condition is:
Lworst-case ≤ D
where L_worst-case includes all relevant processing, communication, and scheduling delays. A system with 1 ms average latency but occasional 20 ms delays may be unacceptable for a 5 ms deadline.
For periodic traffic with cycle period T, the approximate message rate is:
f = 1 / T
where f is in hertz and T is in seconds. If N devices each transmit S bytes every cycle, the useful payload rate is:
Bpayload = N × S × 8 / T
This is not the total link load because headers, acknowledgements, management traffic, and redundancy add overhead. A design should maintain capacity margin and test behavior under peak conditions.
Worked Example: Cyclic Network Load
Ten drives each transmit 32 bytes of status data and receive 32 bytes of command data every 2 ms. The useful payload per cycle is:
Scycle = 10 × (32 + 32) = 640 bytes
The useful payload rate is:
Bpayload = 640 × 8 / 0.002 = 2.56 Mbit/s
On a 100 Mbit/s link, the nominal payload utilization is 2.56%. However, this does not prove that the system is suitable. Frame overhead, scheduling, switch behavior, synchronization, diagnostics, and worst-case bursts must still be considered. If the application requires deterministic 2 ms updates, a protocol with bounded scheduling behavior may be preferable to a general best-effort network even though both have sufficient average bandwidth.
3.3 Availability and redundancy
Availability is the probability that a system is operational when required. For a simple component with mean time between failures (MTBF) and mean time to repair (MTTR), an approximate steady-state availability is:
A = MTBF / (MTBF + MTTR)
Both MTBF and MTTR use the same time unit. This approximation assumes statistically stable failure and repair behavior and does not fully represent common-cause failures, planned maintenance, or network redundancy. Ring topologies, redundant controllers, dual power supplies, and rapid failover can improve service continuity, but they also increase configuration and verification complexity.
4. Time Synchronization and Distributed Control
Distributed devices need a common notion of time for timestamping, event correlation, coordinated control, and sequence-of-events recording. Local clocks drift because of oscillator tolerances, temperature, aging, and supply variation.
A clock offset is the difference between a device clock and a reference clock. A synchronization protocol estimates this offset and adjusts the local clock. Network Time Protocol (NTP) is widely used for general computing, while Precision Time Protocol (PTP), specified by IEEE 1588, can achieve much tighter synchronization when supported by suitable hardware and network infrastructure. Industrial profiles may define clock roles, message rates, boundary clocks, transparent clocks, and accuracy expectations. TSN standards add mechanisms for scheduled and synchronized Ethernet traffic.
Synchronization accuracy is not the same as communication latency. A system may have precisely synchronized clocks but unpredictable message delivery. Conversely, low-latency communication without synchronized timestamps can make multi-sensor data difficult to correlate.
For two measurements taken at times t₁ and t₂, temporal misalignment is:
∆t = |t₁ − t₂|
If a moving object has speed v, spatial error caused by time misalignment is approximately:
∆x ≈ v × ∆t
where v is in metres per second, ∆t in seconds, and ∆x in metres. At 2 m/s with a 1 ms mismatch, the positional error is approximately 2 mm. This relation assumes approximately constant velocity during the interval and illustrates why synchronization matters in high-speed inspection and coordinated motion.
Clock correction must be designed carefully. Abruptly changing a clock can disrupt timestamp ordering or control algorithms, so systems often use gradual frequency adjustment. Safety-related functions may require independent timing assumptions and certified mechanisms rather than relying solely on ordinary network time.
5. Interoperability and Information Models
Interoperability is more than connecting cables. A robust interface defines identity, units, data types, quality, timestamp, update behavior, alarms, commands, and failure semantics. Standards-based information models reduce the need for custom point-to-point mappings.
OPC UA
OPC UA represents variables, objects, methods, events, and relationships in an address space. It supports certificates, encryption, signing, role-based access, subscriptions, and companion specifications. Its strengths are semantic modeling and integration across vendors. Engineering teams must still define namespaces, naming conventions, ownership, versioning, and lifecycle procedures.
MQTT
MQTT is a lightweight publish–subscribe protocol. A publisher sends a message to a topic through a broker; subscribers receive messages for topics to which they have subscribed. Quality-of-service levels provide different delivery behaviors, but MQTT does not by itself guarantee deterministic control timing. Retained messages, session state, topic design, payload schemas, and broker availability require explicit engineering.
APIs and data contracts
REST or other APIs are suitable for configuration, production orders, reporting, and business integration. A data contract should specify schema, units, permitted ranges, quality codes, timestamp conventions, version compatibility, and error responses. Schema evolution should be backward-compatible where possible, and deprecated fields should have a defined retirement process.
Semantic modeling
A digital twin is a digital representation of a physical asset, process, or system. It may contain geometry, configuration, state, behavior, maintenance history, and relationships. A digital model becomes useful when its identity is linked to trustworthy operational data. It is not necessarily a real-time replica, and the term should not be used to imply accuracy that has not been validated.
6. Edge–Cloud Architectures
An edge–cloud architecture distributes computation according to latency, bandwidth, privacy, resilience, and maintainability requirements.
Figure: Functional separation of field control, edge processing, and cloud or enterprise services.
Time-critical closed-loop control should normally remain in the controller or local edge domain. Edge computing can aggregate data, execute anomaly detection, buffer data during cloud outages, and enforce local policies. Cloud services are valuable for fleet-level comparison, long-term storage, optimization, digital-twin management, and machine-learning model development. Commands travelling from cloud to a machine require strong authorization, validation, rate limits, and safe fallback behavior.
A useful design question is: What is the consequence if the wide-area connection disappears? A resilient machine should continue safe local operation, degrade gracefully, or enter a defined safe state. It should not depend on an uncertain cloud connection for a safety function or an essential millisecond-scale control loop.
7. Cybersecurity, Safety, and Governance
Connecting operational technology (OT) to information technology (IT) increases capability and attack surface. Security should be designed as a lifecycle activity rather than added after commissioning.
Important practices include:
asset inventory and network zoning;
least-privilege accounts and role-based authorization;
certificate and key lifecycle management;
authenticated, encrypted communication where appropriate;
secure boot and signed firmware when supported;
controlled remote access and multi-factor authentication;
backups, recovery tests, and incident-response procedures;
vulnerability management that respects production constraints;
monitoring of anomalous traffic and configuration changes.
Safety and cybersecurity are related but distinct. A security control may reduce unauthorized commands, while a safety system is designed to reduce risk from hazardous energy or malfunction. Functional safety standards such as IEC 61508 and machinery-oriented standards such as ISO 13849 or IEC 62061 may apply depending on the equipment and jurisdiction. Network security cannot replace a properly designed emergency stop, guard interlock, or safety-rated control function.
Relevant industrial cybersecurity guidance includes the IEC 62443 family, which addresses industrial automation and control-system security. Regulatory obligations vary by region and sector. Engineers must preserve traceability: requirements, interface versions, changes, test evidence, access rights, and incident records should be controlled.
Data governance is also important. Production data may reveal proprietary recipes, worker behavior, machine performance, or customer information. Collection should have a defined purpose, retention policy, access model, and deletion or archival procedure. AI models trained on production data must be monitored for drift, bias in inspection data, false alarms, and unsafe recommendations. An AI system should advise or optimize only within a validated control envelope unless it is part of a formally verified and approved control architecture.
8. Design Method for Distributed Integration
A disciplined integration process can be organized as follows.
Step 1: Define operational requirements
Document control cycle, deadline, jitter, availability, data volume, safety integrity, environmental conditions, and required response to communication loss. Separate hard real-time, soft real-time, supervisory, and non-real-time functions.
Step 2: Map assets and information flows
Identify every producer and consumer, message direction, data owner, units, update rate, quality code, and timestamp source. Draw both the physical network and the logical data flows.
Step 3: Select suitable communication mechanisms
Choose fieldbus, industrial Ethernet, OPC UA, MQTT, APIs, or combinations according to requirements. Avoid using a general-purpose protocol merely because it is familiar.
Step 4: Specify data contracts
Define schemas, identifiers, units, ranges, status values, alarms, command acknowledgements, and version rules. A command should have an explicit result, timeout, and failure response.
Step 5: Engineer timing and capacity
Calculate payload load, estimate worst-case latency, allocate bandwidth margin, configure synchronization, and test under peak traffic. Validate actual device behavior, not only nominal protocol claims.
Step 6: Engineer resilience and security
Define redundancy, local fallback, buffering, restart behavior, authentication, authorization, patching, logging, and recovery. Verify that safety functions remain safe during communication failures.
Step 7: Commission and validate
Use conformance tests, interoperability tests, latency and jitter measurements, fault injection, clock-accuracy checks, cybersecurity assessment, and operator acceptance tests. Record firmware, configuration, and interface versions.
9. Illustrative Case: Predictive Maintenance in a Packaging Cell
Background
Consider a fictional packaging cell containing four servo axes, a PLC, a safety controller, a vision camera, a barcode reader, and a plant MES. The cell produces cartons at high speed. The plant wishes to detect bearing degradation before it causes unplanned downtime.
Problem
The existing control network exchanges cyclic motion and I/O data. Engineers initially propose sending all high-frequency vibration samples directly to the cloud. This would increase bandwidth, expose the cell to dependence on a wide-area link, and provide no immediate local response.
Analysis
Motion commands and safety signals have strict timing requirements and must remain on the validated control architecture. Vibration data are less demanding in terms of closed-loop timing but may be high volume. The useful information for maintenance is often a feature such as root-mean-square vibration, crest factor, temperature trend, or spectral-band energy rather than every raw sample.
For a sampled signal x₁, x₂, …, x_N, the root-mean-square value is:
xRMS = √[(1/N) × ∑(xi²)]
where N is the number of samples and all x_i values use the same unit. The expression assumes a defined analysis window and is useful for amplitude characterization, but it does not by itself diagnose every fault.
Approach and solution
A vibration sensor is connected to an edge gateway. The gateway timestamps measurements using a synchronized clock, calculates validated features, stores a short local history, and publishes summary data through an authenticated MQTT connection. The MES receives maintenance events through an OPC UA or API interface. Raw data are retained locally for a limited diagnostic window and uploaded selectively when an engineer requests deeper analysis.
The PLC continues to execute motion and interlocking logic independently. The edge system can issue a maintenance recommendation, but it cannot directly alter motion parameters without an authorized engineering procedure. If the cloud link fails, the gateway buffers summaries and the cell continues production. If the gateway fails, the control system remains operational, while predictive-maintenance visibility is lost and an alarm is generated.
Outcome
The architecture reduces wide-area traffic, preserves control determinism, and provides a traceable maintenance data path. Its success depends on validating sensor placement, feature quality, clock accuracy, model thresholds, and alarm procedures. A false positive can create unnecessary maintenance; a false negative can permit damage. Therefore, model performance must be assessed using representative operating conditions and confirmed by physical inspection.
Learning points
Keep safety and hard real-time control within an appropriate local domain.
Transform high-volume data at the edge when summaries meet the business objective.
Use standard interfaces, but define semantics and ownership explicitly.
Design communication-loss behavior before connecting cloud services.
Treat predictive analytics as a monitored engineering function, not an unquestioned authority.
10. Challenges and Contemporary Developments
Industrial integration remains difficult because equipment has long lifecycles, proprietary extensions, inconsistent naming, and heterogeneous update mechanisms. Legacy devices may lack encryption or modern diagnostics. Upgrading them can interrupt production or invalidate certification. Gateways are useful, but they can become bottlenecks or single points of failure.
Time-sensitive networking is extending standard Ethernet with scheduled traffic, precise synchronization, and bounded performance mechanisms. OPC UA companion specifications are improving semantic interoperability in sectors such as manufacturing, robotics, and process automation. Private 5G and industrial wireless technologies may support mobile assets and flexible layouts, but radio interference, coverage, roaming, and deterministic guarantees require site-specific validation. Digital twins and machine learning are increasingly integrated with asset data, though their value depends on data quality and operational adoption.
The central engineering challenge is coexistence: new services must be introduced without compromising safety, determinism, security, maintainability, or the economic purpose of the production system.
Best-Practice Checklist
Begin with timing, safety, and availability requirements rather than protocol popularity.
Distinguish average from worst-case latency.
Budget overhead and reserve capacity.
Synchronize clocks when timestamps or coordinated actions require it.
Define units, quality, timestamps, identity, and versioning in every important interface.
Keep essential control local and make cloud dependence explicit.
Use defense in depth and maintain an accurate asset inventory.
Test faults, congestion, restarts, and communication loss.
Document configurations and manage interface changes.
Validate AI and analytics against real operating conditions and human decisions.
Chapter Summary
Industrial communication is a core part of mechatronic systems design. Networks must be selected according to timing, bandwidth, reliability, semantics, security, and lifecycle requirements. Field-level cyclic communication supports control, while service-oriented and publish–subscribe protocols support integration, diagnostics, and enterprise data exchange. End-to-end latency consists of sensing, queuing, serialization, propagation, switching, and receiving delays; worst-case delay and jitter are often more important than average performance. Clock synchronization supports accurate timestamps and coordinated distributed functions but does not guarantee low or deterministic latency.
Interoperability requires semantic agreement, not merely physical connectivity. OPC UA, MQTT, APIs, digital twins, and industrial Ethernet each serve different roles. Edge–cloud architectures place time-critical control locally, use edge resources for filtering and resilient analytics, and use cloud services for fleet-scale storage and optimization. Cybersecurity, functional safety, data governance, and AI accountability must be integrated throughout the lifecycle. A standards-based, requirements-driven design process enables robust cyber-physical production systems.
Key Terms
Industrial Ethernet: Ethernet-based communication adapted for industrial environments and control requirements.
Fieldbus: A digital industrial network linking controllers, sensors, and actuators.
Latency: Time between sending or generating information and its usable receipt.
Jitter: Variation in message timing or latency.
Serialization delay: Time required to transmit a frame’s bits onto a link.
Determinism: Ability to bound timing behavior within specified limits.
Bandwidth: Data-carrying capacity of a communication channel.
Availability: Likelihood that a system is operational when required.
PTP: Precision Time Protocol for synchronizing distributed clocks.
TSN: Time-Sensitive Networking mechanisms for scheduled and synchronized Ethernet traffic.
OPC UA: Standards-based architecture for secure, modeled industrial data exchange.
Semantic interoperability: Agreement on the meaning, units, quality, and context of data.
Digital twin: Digital representation of a physical asset, process, or system.
Edge computing: Processing performed near the data source or industrial process.
Cloud computing: On-demand remote computing and storage services.
Data contract: Defined schema and rules governing exchanged data.
OT security: Protection of operational technology, including industrial control systems.
Jitter: Variation in the arrival or processing time of periodic communication.
Cyber-physical production system: Integrated physical production equipment, computation, communication, and control.
Review Questions
Short Answer Questions
Why is semantic interoperability more demanding than physical connectivity?
Define latency and jitter in an industrial network.
What is the principal function of PTP?
Why should hard real-time control usually remain local to the machine?
State two differences between OPC UA and MQTT.
Long Answer Questions
Explain how a designer should select an industrial communication protocol for a distributed motion system.
Describe the components of an end-to-end latency budget and explain why average latency alone is insufficient.
Discuss the role of information models, data contracts, and timestamps in interoperable manufacturing systems.
Compare field, edge, and cloud layers in a cyber-physical production architecture.
Explain how cybersecurity, functional safety, and data governance interact in industrial integration.
Analytical / Application Questions
A cell contains twelve devices, each exchanging 48 bytes of status and 48 bytes of command data every 4 ms. Calculate the useful payload rate and identify additional factors that must be evaluated before selecting the network.
Two inspection cameras observe an object moving at 1.5 m/s, but their timestamps may differ by 4 ms. Estimate the positional mismatch and explain whether synchronization or calibration is required.
Design a communication architecture for a packaging machine that must continue safe operation during cloud disconnection, while sending production and predictive-maintenance data to enterprise systems. Justify protocol, timing, security, and fallback choices.
Multiple Choice Questions with Answers
Question 1
Which characteristic is most directly associated with deterministic industrial communication?
A. Bounded worst-case timing
B. Unlimited cloud storage
C. Anonymous access
D. Maximum image resolution
Correct Answer: A. Bounded worst-case timing
Question 2
For a 200-byte frame transmitted at 100 Mbit/s, the ideal serialization time is approximately:
A. 16 μs
B. 160 μs
C. 1.6 ms
D. 16 ms
Correct Answer: A. 16 μs
Question 3
Which protocol is primarily based on broker-mediated publish–subscribe messaging?
A. MQTT
B. PTP
C. CAN physical layer
D. HTTP-independent safety relay
Correct Answer: A. MQTT
Question 4
What does PTP primarily provide in an industrial network?
A. Clock synchronization
B. Payload encryption only
C. Mechanical vibration isolation
D. Automatic database normalization
Correct Answer: A. Clock synchronization
Question 5
A suitable location for a millisecond-scale closed control loop is generally:
A. A local controller or edge domain
B. A distant cloud service only
C. An enterprise email server
D. A public web browser
Correct Answer: A. A local controller or edge domain
Question 6
Ten devices exchange a combined 64 bytes every 2 ms. What is the useful payload rate?
A. 2.56 Mbit/s
B. 0.256 Mbit/s
C. 25.6 Mbit/s
D. 256 Mbit/s
Correct Answer: A. 2.56 Mbit/s
Question 7
Which feature is essential for semantic interoperability?
A. Agreed meaning, units, and quality of data
B. Identical equipment color
C. A higher motor voltage
D. A larger cable diameter only
Correct Answer: A. Agreed meaning, units, and quality of data
Question 8
If an object moves at 2 m/s and two measurements differ by 1 ms, the approximate spatial mismatch is:
A. 2 mm
B. 0.2 mm
C. 20 mm
D. 2 m
Correct Answer: A. 2 mm
Question 9
Which statement about cybersecurity and functional safety is correct?
A. They are related but distinct engineering concerns
B. Cybersecurity automatically replaces safety design
C. Safety eliminates the need for access control
D. They apply only to cloud systems
Correct Answer: A. They are related but distinct engineering concerns
Question 10
What is a major advantage of edge processing for predictive maintenance?
A. It can filter and analyze data near the machine while reducing cloud dependence
B. It guarantees that every diagnosis is correct
C. It removes the need for sensor validation
D. It makes all control traffic non-deterministic
Correct Answer: A. It can filter and analyze data near the machine while reducing cloud dependence
Advanced Mechatronics Systems Design
Chapter 9
of 15