An architecture that integrates PLC, SCADA, MES, WMS, ERP and AI through a shared data hub, with a five-stage implementation roadmap.
@KTECH · K-Tech Automation Solutions Co., Ltd.
Abstract
A smart factory is a data architecture that lets PLCs, SCADA, MES, warehouse management systems (WMS), ERP and AI applications read and write to a consistent data source. This article surveys major reference architectures (ISA-95, RAMI 4.0 and IIRA), the Unified Namespace pattern, and data integration standards including OPC UA, MQTT, Sparkplug and B2MML.
The article proposes a hub-and-spoke architecture for Vietnamese small and midsize manufacturers. It analyzes the roles of WMS and ERP in closed-loop data flows, viable AI applications, IEC 62443 cybersecurity requirements, and a five-stage rollout with clear criteria for moving between stages.
Keywords: smart factory, Industry 4.0, ISA-95, RAMI 4.0, Unified Namespace, OPC UA, MQTT, Sparkplug, IEC 62443, small and midsize enterprises, Vietnam.
1. Context: Industry 4.0 and digital manufacturing in Vietnam
Vietnam is strongly promoting manufacturing digitalization through policy. On 22 December 2024, the Politburo issued Resolution 57-NQ/TW on breakthrough development in science, technology, innovation and national digital transformation [1]. On 14 July 2026, the Prime Minister approved the National Digital Transformation Strategy for 2026–2030, with a vision to 2045, aiming for data- and AI-driven development [2].
Small and midsize enterprises are still far from this objective. A 2024 study of SMEs in Ha Nam found that adoption of Industry 4.0 technology in manufacturing had increased but remained limited to selected stages because of financing and management capacity constraints [3]. A VCCI and JETRO survey of more than 400 businesses in Vietnam also identified high investment costs, underdeveloped IT infrastructure, nonstandard management processes and limited access to digital technology information as major barriers [4].
The World Economic Forum's Global Lighthouse Network included 238 leading manufacturing sites as of July 2026 [5]. In 2019, only 10% of these sites used AI to a significant extent. By 2023, all new members had deployed advanced AI at scale [6]. The author considers a unified data platform a prerequisite for these AI applications.
Many Vietnamese businesses already have software, but their systems cannot communicate. Accounting and warehousing each have a separate system, while production stays on paper. This article focuses on an integration architecture that lets each smaller investment contribute to a shared system.
2. Reference architectures
The four models below answer different questions and can be used together.
ISA-95 / IEC 62264 divides the factory into five functional levels and defines information exchanged between control and enterprise systems [7]. It provides a basis for separating the roles of SCADA, MES and ERP and naming equipment hierarchically.
RAMI 4.0 (DIN SPEC 91345:2016) is a German three-dimensional cube model. It describes each technical asset by architecture layers, the full lifecycle from development to decommissioning, and its position in the organizational hierarchy [8]. RAMI 4.0 helps teams describe digital twins of machines and products.
The Industrial Internet Consortium, now the Industry IoT Consortium, first published IIRA in 2015 [9]. IIRA addresses IIoT architecture from four viewpoints: business, usage, functional and implementation [10]. It helps stakeholders agree on requirements before detailed design.
Unified Namespace (UNS) is an architecture pattern named by Walker Reynolds [11]. Instead of sending data through each tier of the pyramid in turn, UNS organizes contextualized data into a real-time semantic hierarchy through a hub-and-spoke model [12]. The hierarchy commonly follows the ISA-95 equipment tree and is implemented with an MQTT broker [12].
| Model | Type | Question answered | Value for small and midsize enterprises |
|---|---|---|---|
| ISA-95 / IEC 62264 [7] | International standard | Which system does what, and what data does it exchange? | High: equipment hierarchy and MES–ERP boundaries |
| RAMI 4.0 [8] | DIN SPEC specification | How are assets described across their lifecycle? | Medium: useful when digital twins are needed |
| IIRA [10] | Consortium reference architecture | What do stakeholders need from an IIoT system? | Medium: useful when coordinating several parties |
| Unified Namespace [12] | Architecture pattern | Where is the data and how can systems get it? | High: fewer connections and easier module expansion |
The hub-and-spoke benefit is clear from the connection count. Fully connecting six systems point to point (PLC/edge gateway, SCADA, MES, WMS, ERP and AI) requires 15 interfaces. Through a common hub it takes six. Adding a seventh system raises the point-to-point count to 21, whereas the hub needs just one more interface.
The proposed combination uses the ISA-95 equipment hierarchy for names, UNS as the real-time data hub, and ISA-95 to keep functional boundaries between modules.

Each module publishes its own data to the hub and subscribes to the data it needs. A new module requires just one additional connection.
3. Vertical and horizontal data integration
Vertical integration connects sensors and PLCs up to ERP. Horizontal integration connects systems at the same level, such as MES with WMS or one production line with another. The following four open standards cover most needs of a small or midsize plant.
| Standard | What it provides | Role in the architecture |
|---|---|---|
| OPC UA (IEC 62541) [13] | Information model and protocol supporting client–server and publish–subscribe | Acquire data with semantics from newer PLCs and machines |
| MQTT (ISO/IEC 20922) [14] | Lightweight publish–subscribe protocol independent of payload content | Transport data into and out of the UNS hub |
| Sparkplug (ISO/IEC 20237) [15], [16] | MQTT conventions for topic names, payloads and state management | Standardize OT data so SCADA can identify online devices |
| B2MML (MESA) [17], [18] | XML and JSON schemas implementing the ISA-95 data model | Exchange production orders and output reports between MES and ERP |
MQTT does not prescribe payload content [14], so two systems using MQTT may still not understand one another. Sparkplug fills that gap by defining OT-oriented payloads for industrial process variables and the session-state management that real-time SCADA requires [16]. Sparkplug 3.0 became the international standard ISO/IEC 20237 in October 2023 [15].
At the upper layers, B2MML is a full implementation of ISA-95 and can be used royalty-free with attribution to MESA [17]. Version 7 was released in November 2020 [18], and MESA provides JSON schemas for modern web systems [19]. B2MML makes it possible to replace ERP later without rewriting MES.
Use OPC UA or vendor drivers next to PLCs, MQTT with Sparkplug for process data across the hub, and the ISA-95 object model through B2MML or equivalent JSON for business transactions between MES, WMS and ERP.
4. The roles of WMS and ERP in closed-loop data flows
WMS and ERP turn production data into business data: accurate stock levels, costs and delivery dates. In ISA-95, plant inventory management is one of four Level 3 activities, alongside production, quality and maintenance [7]. A plant WMS therefore needs a direct link to MES in addition to accounting.
The closed-loop data flow for one order has six steps.
- ERP receives the order, calculates material demand and issues the production order.
- MES receives the production order, schedules it on a specific machine and requests its materials.
- WMS issues raw materials to the line by lot. Lot codes are scanned and linked to the production order.
- PLCs and SCADA record running time, output, scrap and process parameters. The data flows through the UNS hub to MES.
- MES closes the order with good output, actual consumption and OEE. WMS receives finished goods into stock under a new lot.
- ERP updates stock, calculates actual cost by order, and confirms the delivery date.
The result is an unbroken genealogy. A finished lot can be traced back to raw-material lots, machines, shifts, operators and process parameters.
Two principles make the closed loop work.
- One authoritative source per entity. ERP owns the item catalog and material standards, MES owns order status, and WMS owns warehouse lot locations. The other systems have read-only access.
- Common identifiers. Item, lot, machine and order identifiers must agree across systems. Otherwise every integration requires manual mapping tables.
5. Artificial intelligence in the smart factory
In the proposed architecture, AI is a module that reads data from the UNS hub and publishes results back to it. A failure prediction model can therefore send an alert to MES to create a maintenance order without requiring a separate interface.
Analytical AI still delivers most of the value today. In the Global Lighthouse Network's January 2025 cohort, 77% of the sites' top five use cases were based on analytical AI and only 9% used generative AI [20]. By the September 2025 cohort, AI and generative AI accounted for 50% of the top use cases [21].
| Application | Data needed | Prerequisites | Readiness for small and midsize enterprises |
|---|---|---|---|
| Downtime and fault root-cause analysis | Stop reasons, parameters by lot, inspection results | Several months of clean MES data | High |
| Energy optimization | Energy by machine or area, production output | Granular metering linked to production orders | High |
| Vision quality inspection | Product images labeled good or defective | Cameras, stable lighting and enough defect samples | Medium to high |
| Predictive maintenance | Current, vibration, temperature, running hours, failure history | Long-term historian and additional sensors | Medium |
| Generative AI operations assistant | Technical documents, fault logs, real-time data | RAG, read-only access and safety controls | Medium |
| Production scheduling optimization | Machine capacity, changeover times, orders | MES and ERP already integrated | Low to medium |
Predictive maintenance often comes up first because downtime is expensive. Siemens estimates that unplanned downtime costs the world's 500 largest companies about 11% of revenue [22]. For smaller businesses, however, analyzing downtime causes from existing MES data often brings benefits sooner because it needs no additional sensors.
Major vendors are commercializing generative AI assistants. Siemens Industrial Copilot, for example, helps operators and maintenance engineers understand machine fault codes in natural language [23]. Give such assistants read-only access to equipment data and require every recommendation to cite its source.
6. OT cybersecurity under IEC 62443
Connecting PLCs to MES, ERP and the cloud exposes an attack surface that isolated production networks did not have. Plan security as part of the architecture from the outset.
IEC and the ISA99 committee developed the IEC 62443 series for industrial automation and control system (IACS) security. It covers organizational and technical aspects over the system lifecycle [24]. Five parts apply directly to a smart factory project.
| Part | Applies to | Scope |
|---|---|---|
| IEC 62443-2-1 [24] | Asset owner (plant) | Requirements for the plant security program |
| IEC 62443-2-4 [24] | Integration and maintenance service providers | Security capabilities integrators must provide to the plant |
| IEC 62443-3-2 [24] | System designers | Risk assessment to partition the system into zones and conduits |
| IEC 62443-3-3 [24] | Control systems | Technical requirements by seven foundational requirements and security level |
| IEC 62443-4-1 [24] | Product suppliers | Secure product development process |
The central concepts are zones and conduits. Assets with common security requirements share a zone, and communication between zones must pass through a controlled conduit [25]. Zoning draws on the levels of the Purdue model used by ISA-95 and follows an IEC 62443-3-2 risk assessment [26]. The seven foundational requirements are identification and authentication control, use control, system integrity, data confidentiality, restricted data flow, timely response to events, and resource availability [25].
Applied to the hub-and-spoke architecture, the article proposes the following baseline for small and midsize enterprises.
- ☐ Inventory PLCs, HMIs, edge gateways and servers, including firmware versions.
- ☐ Separate production (OT) from office (IT) networks with firewalls. Never connect PLCs directly to the Internet.
- ☐ Place the UNS MQTT broker in a demilitarized zone (DMZ). Edge gateways initiate outbound connections only, with TLS encryption and authentication.
- ☐ Use VPN access with multifactor authentication and logging for remote connections. Disable shared accounts.
- ☐ Change all device default passwords. Limit PLC write permissions to as few accounts as possible.
- ☐ Back up PLC programs, HMI configurations and databases on a schedule and store the backups outside the production network.
IEC 62443-2-4 is especially relevant to system integrators because it directly specifies the security capabilities expected of integration and maintenance providers.
7. Modular deployment roadmap
The roadmap follows the order of data: machine data first, production data next, business data last, with AI drawing on all of it. A business can stop at any stage depending on budget because each stage delivers value on its own.

Each stage ends when a measurable condition is met, rather than on a preset date.
Three practical considerations apply.
- Be ready to connect from day one. Every module, even a standalone deployment, publishes data to the UNS hub using the ISA-95 equipment hierarchy. Later modules can then be added without redoing the connections.
- ERP is the ultimate destination for the data. Output, consumption and stock eventually reach ERP for costing and planning. ERP does not need to be the first system deployed.
- Pilot analytical AI early. Downtime root-cause analysis can begin just after Stage 2, once MES has several months of clean data. Applications needing business data, such as scheduling optimization, wait until after Stage 4.
8. Conclusion
Small and midsize manufacturers should design the smart factory architecture before selecting software. The proposed combination uses the ISA-95 equipment hierarchy for naming, a Unified Namespace on MQTT and Sparkplug for real-time data sharing, and ISA-95 object models for transactions between MES, WMS and ERP.
The architecture allows budget-based rollout by module: SCADA/IIoT, MES, WMS, ERP and then AI. Each step has a measurable transition criterion. IEC 62443 cybersecurity and common identifiers are requirements throughout the project.
Future research should validate the architecture in Vietnamese plants by measuring deployment time for each stage, integration costs compared with point-to-point connections, and changes in operational metrics.
Reference material
- Politburo of the Communist Party of Vietnam, Resolution No. 57-NQ/TW on breakthroughs in science, technology, innovation and national digital transformation, 22 December 2024.
- Prime Minister of Vietnam, Decision No. 1266/QĐ-TTg approving the National Digital Transformation Strategy for 2026–2030 with a vision to 2045, 14 July 2026.
- Nguyễn Đăng Tuệ, “Factors Affecting Digital Transformation: A Study Applying Technology Acceptance Model for Small and Medium Enterprises in Ha Nam Province”, Journal of Finance–Marketing Research, no. 81, vol. 15, April 2024.
- Ministry of Planning and Investment and USAID LinkSME, Digital Transformation Guide, 2021–2025 Business Digital Transformation Support Program.
- McKinsey & Company, "The continuing evolution of the Global Lighthouse Network", updated 07/2026.
- World Economic Forum, "Smart, sustainable manufacturing: 3 lessons from the Global Lighthouse Network", 09/2025.
- ISA, ISA-95 Series of Standards: Enterprise-Control System Integration.
- DIN, DIN SPEC 91345:2016-04 Reference Architecture Model Industrie 4.0 (RAMI4.0), 2016.
- ARC Advisory Group, "Industrial Internet Consortium Reference Architecture Reinforces IT/OT Convergence".
- Industry IoT Consortium, The Industrial Internet Reference Architecture, version 1.10, 07/11/2022.
- Automation World, "What Is A UNS And How Does It Work?".
- HiveMQ, "Foundations of the Unified Namespace Architecture for IIoT".
- OPC Foundation, OPC 10000-1: OPC Unified Architecture – Part 1: Overview and Concepts.
- ISO/IEC, ISO/IEC 20922:2016 Message Queuing Telemetry Transport (MQTT) v3.1.1, 2016.
- ISO/IEC, ISO/IEC 20237:2023 Information technology – Sparkplug® version 3.0, 10/2023.
- Eclipse Foundation, "The Eclipse Foundation Announces Sparkplug as an International Standard for a 'Plug and Play' Industrial IoT".
- MESA International, B2MML.
- Automation.com, "MESA Announces Version 7 Release of B2MML-BatchML Specifications", 24/11/2020.
- MESA International, B2MML-BatchML (GitHub).
- World Economic Forum, "Global Lighthouse Network 2025: World Economic Forum Recognizes Companies Transforming Manufacturing through Innovation", 14/01/2025.
- World Economic Forum, "Global Lighthouse Network 2025: World Economic Forum Recognizes 12 New Sites Driving Holistic Transformation in Manufacturing", 16/09/2025.
- Siemens, The True Cost of Downtime 2024, 2024.
- Siemens, "Siemens Industrial Copilot expanded, adopted by thyssenkrupp", 12/11/2024.
- IEC, "IEC 62443 Background".
- Trend Micro, "Guidelines related to security in smart factories, Part 2: System design and security level of IEC62443", 2020.
- Cisco, "ISA/IEC-62443-3-3: What is it and how to comply?".
Need direct help from an engineer? Call 0971028833 or send a request.



























































