How to Connect Factory Equipment to the Cloud Without Exposing the Plant’s OT Network

IoT Programming

A manufacturer wants production information from several machines in one place. Management needs to review equipment performance, compare production across facilities, check historical data and identify operating problems without visiting every machine. Connecting factory equipment to a cloud platform can support these goals, but it also raises an important concern: how can the plant share useful data without exposing its industrial control systems to external networks?

The answer is to separate production control from data access. PLCs should continue to manage machine operations locally, while an industrial edge gateway collects selected information and sends it through a controlled network connection to the cloud. Proper network segmentation, restricted communication paths, strong access controls and local data storage help protect the plant while supporting remote monitoring and analysis. A well planned IoT programming project connects existing industrial equipment to modern data services without making direct internet access a requirement for the machines themselves.

The business wants cloud visibility. The plant needs control protection.

Consider a manufacturer operating several production lines across two facilities in Canada. Each site has its own PLCs, sensors, control panels and operator interfaces. Managers want a central dashboard showing machine availability, production counts, energy use and equipment faults. Maintenance teams also want historical information to help identify recurring problems.

A direct connection from every PLC to an internet accessible cloud service may appear to be a simple solution. However, it can create unnecessary communication paths between external systems and equipment responsible for controlling physical processes. A weak remote access configuration, exposed service or compromised account may give an unauthorized person access to more than the production data the business intended to share.

This is not just a theoretical concern for Canadian industrial operators. The Canadian Centre for Cyber Security reported three incidents involving Canadian OT systems in October 2025. These included unauthorized access to a municipal water system, a fuel tank gauging system at an airport and a grain drying silo control system. The reported activity involved internet exposed equipment and insecure remote access methods. These incidents were not evidence that cloud data collection itself caused the compromise; they show the risks of exposing poorly secured industrial systems to external access.

The design objective should therefore be clear: allow approved production information to leave the plant, but do not create an unrestricted route back into the PLC network.

The architecture: Keep control local and move selected data outward

A secure industrial IoT design separates the equipment that controls production from the systems that collect and analyse data. It also defines which devices are allowed to communicate, which information can cross each network boundary and how connections are monitored.

A typical architecture has five main layers.

Layer

Main responsibility

Examples

Machine and control layer

Runs the production process locally

PLCs, sensors, drives, HMIs and controllers

Industrial data collection layer

Reads and organizes selected production information

Industrial edge gateway, protocol gateway and local data collector

OT security boundary

Controls approved communication between networks

Firewall, DMZ, secure broker and network access controls

Cloud data platform

Receives, stores and processes approved information

Cloud ingestion service, databases and analytics tools

Business access layer

Presents approved information to users

Dashboards, reports, maintenance applications and mobile access

The data path can be represented as:

Factory equipment and PLCs → Industrial edge gateway → Controlled OT network boundary → Secure cloud connection → Cloud storage and dashboards.

The exact location of the edge gateway and security components depends on the plant’s network design. In some installations, a local collector operates within an industrial network, while a separate system in the demilitarized zone handles communication with external services. The important requirement is that the gateway must not become an uncontrolled bridge between the plant’s OT network and the internet.

This separation follows guidance from the Canadian Centre for Cyber Security, which recommends isolating industrial control systems from regular corporate networks, restricting access to authorized users and monitoring system activity. Joint international guidance involving Canada’s Cyber Centre also identifies network segmentation and separation of OT from other networks as core security principles.

Why PLCs should continue controlling production locally

A PLC is designed to execute control logic and respond to equipment conditions. It may manage motor operation, conveyor movement, pressure regulation, filling sequences, temperature limits or machine interlocks. These functions often need predictable response times and must continue to operate during interruptions to external networks.

A cloud platform serves a different purpose. It can collect production records, store historical information, present dashboards and support analysis across machines or facilities. It may help maintenance teams identify recurring equipment problems or allow management to compare production trends. However, it should not become a dependency for basic machine operation.

For example, a packaging machine should not stop simply because its internet connection has failed. The local PLC should continue its approved control sequence, maintain the required interlocks and respond to field signals. The cloud may temporarily lose access to current production information, but that loss of remote visibility should not affect the machine’s local control functions.

This distinction is important when designing IoT Programming solutions. Cloud connectivity should normally support monitoring and analysis, not replace the local control system. Any requirement to send a remote command or change a process setpoint needs a separate engineering and cybersecurity assessment, with authorization, local validation and the plant’s safety controls preserved.

What does an industrial edge gateway actually do?

An industrial edge gateway acts as a controlled connection point between factory equipment and higher level data systems. It collects information from supported PLCs, sensors and other devices, then prepares selected values for transfer to another system. Depending on the hardware and software, it may also perform protocol conversion, data filtering, timestamping, local processing and temporary storage.

A factory may have PLCs from several manufacturers, each using different communication protocols and data structures. The edge gateway can help collect the required information through supported interfaces such as OPC UA, Modbus TCP or EtherNet/IP. The exact method depends on the PLC model, software version, available drivers, network configuration and security requirements.

Consider a plant that wants to monitor motor running hours across several production areas. The gateway can read the relevant PLC tags, associate each value with the correct machine identifier and prepare the information for the cloud platform. The business receives a consistent data set without requiring every PLC to communicate directly with an external cloud service.

A well configured gateway can also reduce unnecessary network traffic. Instead of forwarding every controller value at a high update rate, it can collect only the measurements required by the reporting application. It may also aggregate selected information, apply consistent timestamps and filter data that has no business purpose outside the plant.

PRO TIP: Do not install an edge gateway and assume the OT network is now protected. Confirm which interfaces it uses, which devices it can communicate with and which services are enabled. Disable unnecessary forwarding and routing, restrict traffic through the appropriate firewall rules, and verify that the gateway cannot provide an unintended route from the cloud or corporate network to the PLCs.

Network segmentation: Put a controlled boundary between OT and the cloud

Network segmentation separates systems according to their function and security requirements. A manufacturer should not place PLCs, office computers, cloud applications and remote vendor connections on one unrestricted network. Each group should have defined communication paths and access rules.

A common approach uses an OT network for machines and control systems, a separate industrial demilitarized zone (DMZ) for approved intermediary services, and an enterprise or external network for business applications. Firewalls regulate the traffic between these areas. Only the connections required for approved operations should be allowed.

The DMZ can host or protect services such as data brokers, remote access gateways, update services and other approved components. This means cloud applications do not need direct access to PLCs or machine control interfaces. The architecture should also prevent business applications from using the DMZ as an unrestricted route into the production network.

Network area

Systems located there

Access rule

OT control network

PLCs, machine controllers, drives and industrial devices

Restricted to required control and engineering communication

OT data collection area

Industrial edge gateways and approved data collectors

Read selected equipment information through defined interfaces

Industrial DMZ

Secure brokers, controlled access gateways and other intermediary services

Enforce approved traffic between OT and external networks

Enterprise and cloud environment

Business applications, cloud storage and reporting services

Receive approved production data without direct PLC access

The Canadian Centre for Cyber Security recommends isolating industrial control systems from regular corporate functions. Its guidance also calls for individual user accounts, multi factor authentication, encryption and access logging. These measures help prevent a compromised business system or user account from becoming an easy route into industrial controls.

The safest cloud connection should not expose inbound OT ports

One of the most important architecture decisions is how the cloud connection is established. For production data collection, a suitable design often uses a connection initiated from inside the OT environment. The local data collection system establishes an approved outbound session to a secure intermediary or cloud endpoint, rather than allowing external systems to open direct connections into the plant network.

A joint document published in January 2026, Secure Connectivity Principles for Operational Technology, was developed with contributions from the Canadian Centre for Cyber Security and several international cybersecurity agencies. It recommends removing inbound port exposure and initiating OT connections from within the OT environment. It also recommends using a brokered connection through a controlled segment such as a DMZ when external parties need access to OT assets.

This principle is especially useful for cloud telemetry. A data collection gateway can initiate a secured connection using an approved protocol and transmit selected measurements to the cloud. The firewall rules should limit destinations, ports and protocols to the connections required by the design. Encryption protects data in transit, while certificate validation and secure authentication help verify the destination and the identity of the connecting system.

This does not mean that every cloud application or network design must use exactly the same connection method. Some systems use private network links, managed brokers or other controlled services. The security review should establish how each connection is authenticated, monitored and restricted, and how the plant can stop the flow when a security incident requires isolation.

How should factory data reach the cloud?

The data flow should be designed around the information the business actually needs. A manufacturer may want current machine status, production totals, energy readings, downtime records, temperature trends or maintenance measurements. Each data type may have a different update rate, retention period and business purpose.

The first step is to identify the required PLC tags and sensor values. The engineering team should confirm their meaning, engineering units, timestamp source and expected update frequency. Without this work, the cloud database may receive inconsistent machine names, incorrect units or values that cannot be compared reliably across production areas.

The next step is to decide how the data will be transferred. Common approaches include industrial protocol connections, OPC UA interfaces, MQTT messaging and secure web APIs. Each option has different requirements for device support, network configuration, authentication, message structure and cloud compatibility. The best method depends on the equipment and the intended application rather than the popularity of a particular protocol.

For example, a manufacturer may use an edge gateway to read selected PLC tags through OPC UA, then publish approved production measurements through an authenticated MQTT connection to a cloud broker. The cloud application can store those measurements in a database and use them in dashboards or reports. The PLC continues controlling the equipment locally throughout this process.

The project should also define what happens when a value changes, when a device stops responding or when a data record arrives late. Good data handling includes machine identification, timestamps, quality status and clear rules for missing or invalid values. This prevents a remote dashboard from presenting stale or incomplete data as if it were current.

What happens when the internet connection fails?

A cloud connection can fail because of an internet service interruption, a network device fault, a cloud service outage or a planned maintenance activity. The plant should be able to maintain its required local operations during these events. Production control should remain with the local PLCs and approved control systems, not depend on the availability of a cloud dashboard.

An edge gateway can help protect production records through local buffering. Instead of discarding supported data when the central destination becomes unavailable, the gateway stores it temporarily and forwards it after the connection recovers. This approach is often called Store and Forward.

Suppose a manufacturing site loses its internet connection for 30 minutes. The PLCs continue their local control functions, while the edge gateway records selected production values in local storage. When connectivity returns, the gateway forwards the buffered records to the cloud, subject to its configured capacity and forwarding rules.

However, local buffering is not a guarantee against every type of data loss. The gateway needs enough storage for the expected outage period and data volume. The design must also account for power failure, storage limits, duplicate records, time synchronization and the handling of records that cannot be delivered.

Possible interruption

What the system should do

What the plant should verify

Internet connection fails

Local controls continue and supported data is buffered

Gateway storage capacity and local operation

Cloud service becomes unavailable

Data remains queued locally where supported

Retry rules and queue monitoring

Gateway restarts

The system restores its configured services and retained data

Backup, recovery and storage behaviour

Network connection returns

Buffered data is forwarded to the destination

Record timestamps, duplicate handling and missing values

Buffer reaches its limit

The system reports the condition and follows an approved retention policy

Alert thresholds and data loss procedures

PRO TIP: Test a planned internet outage before relying on the system in production. Confirm that the equipment continues to operate locally, the gateway stores the required data and the cloud database receives the buffered records after recovery. Also make sure operators can identify when remote information is delayed.

Remote monitoring is not the same as remote machine control

Manufacturers often use the phrase remote access to describe several different activities. Viewing a production dashboard is not the same as opening an engineering workstation, changing a PLC program or sending a command to a machine. Each activity has different security implications and should receive the level of access it requires.

For routine management reporting, a read only dashboard is usually a better fit than direct access to control equipment. Managers may need production counts, operating hours, energy usage and machine status, but they generally do not need the ability to change machine logic or process settings. The cloud application should receive only the permissions and data required for its purpose.

Remote maintenance needs a separate access process. When a technician or supplier must connect to an industrial system, the connection should pass through an approved broker or secure gateway in the DMZ. Use individual accounts, multi factor authentication, time limited permissions and session logging. Disable access when the approved work is complete, and review dormant vendor accounts regularly.

The Canadian Centre for Cyber Security has specifically warned that attackers have used weak or reused passwords, outdated remote access tools and missing multi factor authentication to access internet connected OT systems in Canada. It recommends careful control of remote access and individual accounts with stronger authentication.

The 2026 international OT connectivity guidance also recommends reducing the time that external connections remain active, using least privilege and logging interactions. These controls help ensure that access is granted only for an approved purpose and that the plant can review what happened during a remote session.

A practical security checklist before connecting factory equipment to the cloud

Before a manufacturer approves an IoT project, the engineering and cybersecurity teams should review the planned data flow together. This review should cover the equipment, the edge gateway, network boundaries, cloud destination, user access and recovery process. A cloud connection should not be released simply because the data appears correctly on a dashboard.

Review area

Questions the project team should answer

Equipment

Which PLCs, sensors and machines will provide data?

Data selection

Which tags are required, and why does the cloud application need them?

Edge gateway

Which protocols and devices does it support? Is local buffering required?

Network separation

Are OT, DMZ, enterprise and cloud connections clearly separated?

Firewall rules

Are only approved destinations, ports and protocols permitted?

Authentication

Are individual accounts, strong credentials and multi factor authentication used?

Permissions

Can users view only the data and functions required for their roles?

Remote access

Is external maintenance brokered, monitored and time limited?

Data protection

Is data encrypted in transit and protected at its destination?

Outage handling

Does local production continue during internet or cloud service interruptions?

Monitoring

Are connection events, access attempts and data flow problems recorded?

Recovery

Are backups, buffer limits, recovery procedures and isolation plans documented?

The project team should also define an isolation procedure. The plant may need to stop external data transmission during a suspected compromise while keeping the local control system available for safe operation. This decision must follow the site’s incident response and business continuity plans. It should be tested and approved before an actual security incident occurs.

What information should remain inside the plant?

Not every PLC value belongs in the cloud. A manufacturer should classify information according to its business purpose, sensitivity and operational importance before deciding what to transfer. A dashboard may need machine availability and daily production totals, while detailed control logic, credentials and sensitive engineering settings may have no reason to leave the OT environment.

A useful data review can divide information into three groups:

Operational reporting data: Production counts, equipment running hours, energy measurements and approved process history. These values can support cloud dashboards and performance analysis when the data flow is secured.

Maintenance and diagnostic data: Fault codes, equipment health measurements, selected sensor trends and maintenance events. This information can help maintenance teams identify recurring issues, but access should be restricted to the people who need it.

Control and security information: PLC logic, passwords, engineering access credentials, safety configurations and commands that affect machine operation. These require stronger protection and should not be copied into general cloud reporting systems without a clear, approved technical reason.

Data location also deserves attention when the manufacturer uses cloud services in Canada. Confirm the provider’s data storage regions, backup locations, access arrangements, retention terms and contractual commitments. These details may matter for customer agreements, industry obligations and internal data governance. Do not assume that selecting a Canadian business account automatically means all information remains in Canada.

How ControlSoft Canada supports IoT programming and cloud connectivity

ControlSoft Canada’s IoT programming service covers connected devices, data collection, IoT application development, analytics, monitoring and integration with existing infrastructure. Its published service information identifies programming technologies including Python, C, C++, Java and JavaScript, along with IoT consulting and system integration capabilities. The right technology depends on the connected hardware, the required data flow and the cloud application involved.

For a manufacturing project, the work should begin by identifying the equipment that needs to share data and the purpose of that connection. The engineering team can review available PLC interfaces, sensors, communication protocols, edge gateway requirements and the destination for the collected information. This helps define the programming, data processing and integration work before the plant connects external services to its industrial environment.

A sound project should also document which functions remain local, which data can leave the OT network and how the connection will be secured. Testing should cover normal data transfer, network interruption, buffer recovery, access permissions and the response to a failed connection. These checks help confirm that the cloud application receives useful information without becoming a dependency for essential production control.

Manufacturers planning a connected equipment project can visit ControlSoft Canada’s IoT Programming and Cloud Services page to learn more about its IoT consulting, programming and integration services.

Frequently Asked Questions

How can manufacturers connect existing PLCs to the cloud?

Manufacturers can use an industrial edge gateway or approved data collection system to read selected information from existing PLCs through supported communication protocols. The gateway prepares the data and sends it through a controlled, authenticated connection to the cloud. This approach can preserve the existing PLC control system while supporting remote monitoring and reporting.

Should PLCs connect directly to cloud platforms?

Direct internet exposure of PLCs is generally not a suitable design for industrial environments. A more controlled architecture uses local data collection, network segmentation and an approved connection through an OT security boundary. The PLC continues to control the process locally, while selected information moves to the cloud through the designated data path.

What is the role of an industrial edge gateway?

An industrial edge gateway collects information from PLCs, sensors and other equipment. Depending on its supported functions, it can convert protocols, filter data, organize tags, process selected values and buffer information during connection interruptions. It provides a controlled point for transferring approved production data to higher level systems.

Can factory equipment continue operating when the cloud connection fails?

Yes, provided the local control architecture has been designed to operate independently of the cloud connection. PLCs should continue their approved machine control functions, while the edge gateway can buffer supported production records for later transfer. The project must test this behaviour and confirm that remote visibility and local operation are handled separately.

How does network segmentation protect industrial control systems?

Network segmentation separates PLCs, industrial devices, data collection systems, business networks and external services into controlled areas. Firewalls and approved communication rules limit which systems can communicate across each boundary. This reduces unnecessary access and helps prevent a compromise in one network area from spreading directly into critical production systems.

Is MQTT suitable for industrial IoT data collection?

MQTT can support the transfer of industrial data through a broker based messaging model. Its suitability depends on the connected devices, gateway capabilities, network design, authentication requirements and cloud platform. The implementation should use secure transport, approved access controls and a data structure that identifies the source and timestamp of each measurement.

How should remote access to industrial equipment be protected?

Remote access should use an approved broker or secure gateway, individual user accounts, multi factor authentication, least privilege and time limited permissions. Access should be logged and monitored, and unused accounts should be disabled. External users should receive only the access required for their approved task, not general access to the full OT network.

Can a cloud platform control industrial machines remotely?

Some architectures can support approved remote commands, but this requires a separate safety and cybersecurity assessment. Critical machine control, interlocks and time sensitive functions should remain within the local control system. Any permitted remote command must pass through authorized controls and local validation rather than bypassing the PLC or machine safety design.

Connect the Factory to the Cloud Without Connecting the Cloud to the Controls

Cloud connectivity can help manufacturers improve production visibility, review equipment performance and bring data from several facilities into one place. However, the value of these capabilities depends on a sound industrial architecture. Direct PLC exposure, weak remote access and unrestricted network paths can introduce risks that outweigh the benefits of better reporting.

A secure IoT Programming project separates machine control from business data access. Local PLCs continue to run production, industrial edge gateways collect approved measurements, and network boundaries control how information reaches the cloud. With proper authentication, monitoring, buffering and recovery planning, manufacturers can build useful data services without making the internet part of their essential control path.

Get a Free Consultation