top of page

Securing and Optimising OPC UA: From PLC to SCADA and Cloud

Modern industrial automation relies heavily on Open Platform Communications Unified Architecture (OPC UA). Unlike legacy OPC Classic, which was bound to Microsoft DCOM technology, OPC UA is platform-independent, highly scalable, and secure by design. It serves as the primary bridge connecting Programmable Logic Controllers (PLCs) on the factory floor to Supervisory Control and Data Acquisition (SCADA) systems, and ultimately to cloud-based enterprise platforms.


Implementing a robust OPC UA architecture requires careful attention to server configuration, cryptographic security, data mapping, and bandwidth management.


Step-by-Step Guide to Setting Up an OPC UA Server


  • Activate the Firmware Server License: Access your hardware configuration software (e.g., TIA Portal or Studio 5000) and enable the embedded OPC UA server capability within the CPU properties.

  • Define the Network Endpoint: Configure the specific IP address and network interface the server will use. Set the standard OPC UA port (typically opc.tcp://[IP_Address]:4840).

  • Select Security Policies: Disable the "None" security policy for production environments. Enable modern, secure endpoints such as Basic256Sha256 or Aes128_Sha256_RsaOaep, and set the message mode to SignAndEncrypt

  • Expose the Tag Namespace: Selectively flag PLC data blocks, tags, and User Defined Types (UDTs) as "Accessible from OPC UA." Avoid exposing raw internal memory tags to minimize the attack surface.

  • Compile and Download: Download the updated hardware configuration and data structures directly to the physical PLC


Certificate-Based Authentication Between PLC and SCADA


Username and password authentication alone cannot protect critical infrastructure from sophisticated man-in-the-middle (MitM) attacks. OPC UA addresses this by enforcing asymmetric cryptography via X.509 digital certificates to establish a mutual trust relationship between the SCADA client and the PLC server.


When a SCADA client attempts to connect to the PLC for the first time, an asymmetric handshake occurs. The SCADA client presents its public certificate to the PLC. Because this certificate is not yet recognized by the controller, the PLC automatically rejects the connection attempt and places the certificate into an "Untrusted" or "Rejected" holding queue.


To establish trust, an automation engineer must log into the PLC’s diagnostic server or engineering software, review the rejected certificate's unique cryptographic thumbprint, and manually move it into the PLC’s "Trusted Clients" store. Simultaneously, the engineer must export the PLC's own server certificate and import it into the SCADA client’s "Trusted Servers" folder. Once mutual trust is established, the devices use their private keys to sign and encrypt all subsequent data traffic.


Mapping PLC Data Tags to Cloud Databases


To unlock the benefits of Industrial IoT (IIoT), predictive analytics, and enterprise resource planning, local PLC tags must flow securely into cloud environments like AWS, Microsoft Azure, or private SQL/NoSQL databases


Direct cloud database writing from an on-premises OPC UA namespace requires an intermediate edge gateway or an IoT-enabled OPC UA client. The edge software browses the PLC’s hierarchical information model, tracking specific data nodes. It maps these binary or structured PLC elements into standard developer-friendly data formats, most commonly JSON (JavaScript Object Notation).


For example, a raw temperature register is transformed into a structured telemetry payload containing a specific asset ID, a precise ISO timestamp, the engineering unit, and the numeric value. This JSON payload is then securely pushed upstream to cloud ingestion hubs using transport layer security.


Bandwidth Optimization Strategies for Remote Telemetry


Transmitting hundreds of thousands of factory tags over cellular networks, satellite links, or constrained wide-area networks (WANs) can lead to data loss and high operational costs. To optimize remote telemetry bandwidth, engineers employ three main strategies:


  • Report-by-Exception (Rbe) / Monitored Items: Instead of forcing the SCADA system or cloud client to continuously poll the PLC at fixed intervals (e.g., every 100 milliseconds), configure tags as "Monitored Items." The PLC server will only transmit data over the network when a value actually changes.


  • Deadband Tuning: For analog signals that fluctuate constantly due to process noise (such as a pressure transmitter hovering between 4.12 and 4.14 bar), apply an absolute or percentage deadband. The OPC UA server ignores minor fluctuations and only sends an update when the value crosses the defined threshold.


  • OPC UA PubSub via MQTT: For massive scale, migrate from the traditional client-server architecture to the newer OPC UA PubSub (Publish-Subscribe) model over MQTT. This wraps structured OPC UA data into highly compact, lightweight binary wrappers, significantly reducing network overhead.



 
 
 

Recent Posts

See All
Key Roles of EEPROM in a PLC

EEPROM (Electrically Erasable Programmable Read-Only Memory) is critical in a PLC because it provides reliable, non-volatile storage that permanently retains the control program and machine settings e

 
 
 

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating

© 2025 by MEICA Consulting Engineers Ltd. All rights reserved.

NISO
Chartered Institute Of Building Service Engineers
  • MEICA Consulting Engineers Ltd
  • Whatsapp
  • Linkedin
  • X
bottom of page