Prerequisites
Licensing
When installing WinCC, the SIEMENS OPC option must be installed and licensed on the WinCC PC station.
Enable OPC UA Server
In the TIA Portal, under the Project tree drill into the HMI device / WinCC RT Advanced PC station then Runtime Settings, Services. Check the boxes for:
Operate as OPC Server
OPC UA Server / OPC Unified Architecture Server
Server Settings
Server parameters are set up in the TIA Portal under Runtime Settings for the HMI device / WinCC RT Advanced PC station.
Configure the port number and security settings here. It is not recommended to set security to None unless you are testing or performing diagnostics.
The default port number is 4890.
Once set, compile, download and start Runtime.