OPC-UA
OPC-UA
Open Platform Communications Unified Architecture is an open standard for data exchange among OPC-UA compatible devices. Packet Tracer supports a simplified OPC-UA described in the help.
Server
An OPC Server is a device that utilizes the OPC script module and provides data to OPC clients.
Client
An OPC Client is a device that utilizes the OPC script module and requests data from an OPC Server.
Running OPC
Create a topology with devices that support script module programming.
In this topology, the MCU acts as a server while two PCs act as clients.

Create an empty JavaScript program and write OPC server code for the MCU.
In the sample code, the server supports two variables: "my_val1" and "my_val2".

Client sample code that reads values from the server.

JavaScript API
Examples
| Sample File | Description |
|---|---|
hmi-arm-opc.pkt |
Demonstrates how to use OPC in an industrial setting. |
opc-script.pkt |
Provides step-by-step instructions on how to configure OPC in Packet Tracer. |
Current Modeling Limitations
OPC PDUs can be viewed in simulation by enabling the "TCP" filter. The TCP PDUs do not show OPC in detail.