Goal and environment
The goal is to get the integrated Web Server of a Siemens S7-1500 PLC working in a useful way, not just to open a diagnostics page. We will protect it with a user, enable secure communication through HTTPS and publish a small View of Things screen designed in TIA Portal.
The test uses a CPU 1515-2 PN simulated with PLCSIM Advanced. The PLC IP address in the lab is 192.168.1.156; 192.168.1.154 is the PLCSIM Advanced adapter address. In a real installation, replace the PLC IP with the physical CPU address.
Siemens documents that S7-1500 CPUs include an integrated web server with interface-specific activation, HTTPS access and authentication through local or central user management. For View of Things, Siemens describes it as an HTML5 web application stored in PLC memory and opened in the browser through the PLC Web Server.
Official references used to check the workflow: S7-1500 Web server, Web Server security, S7-1500 users and roles and View of Things for PLC.
Enable the Web Server
In the CPU properties, open Web server and enable the web server on the Ethernet interface you are going to use. Make sure the enabled interface is the one that owns the IP address you will open from the browser.
Then compile and download the configuration to the PLC or to the PLCSIM Advanced instance. If the Web Server does not respond, check the simple things first: correct IP, correct interface and hardware configuration actually downloaded.
First access from the browser
With the Web Server enabled, open the PLC IP address in the browser. In this lab:
https://192.168.1.156/
At first the browser may mark the page as not secure. That is expected if we have not installed the CA yet or if the PC does not trust the certificate.
Without a user with permissions, access will be limited. To use the Web Server as a real diagnostics and operation tool, we need to configure user management.
Web Server user and permissions
In TIA Portal V19 and newer, with current firmware, management is done from Security settings > Users and roles. The practical flow is: create a user, create a role with Web Server rights, and assign that role to the user.
In this example the user is phs, with a role that includes Web Server permissions. This avoids leaving access open and lets us decide what each user can do.
After downloading the configuration, log in with that user. The Web Server menu now shows more functions and you can view pages such as diagnostics, CPU status, module information or buffers, depending on the assigned rights.
HTTPS and certificates
For the browser connection to be trusted, we need a server certificate and the PC must trust the authority that signed it. With the Certificate Manager in TIA Portal we can generate a certificate for the Web Server and sign it with the project CA.
One important detail: if you access the PLC by IP address, that IP address must be covered by the certificate. If the CPU IP changes, regenerate and download the certificate again.
Generate the certificate for the Web Server and select it in the web server security settings of the CPU.
To make Windows and the browser trust the connection, export both the Web Server certificate and the CA certificate of the project. In this case the CA is the TIA Portal project itself.
Then import the CA into the Windows certificate store under Trusted Root Certification Authorities. Windows will display a warning because we are deciding to trust that CA; if this is our own project and a lab environment, accept it.
Open the PLC URL again and the browser now shows the connection as secure. At this point the Web Server requires a user and the traffic is encrypted over HTTPS.
Validation with Wireshark
To verify that traffic is really encrypted, capture the communication between the PC and the PLCSIM Advanced network adapter. The console shows the IP address used by the simulation interface.
In Wireshark we should no longer see pages, credentials or values in clear text. We should see TLS/HTTPS traffic between the browser and the PLC, which is what we want before considering the Web Server outside a lab.
View of Things as a web screen
View of Things, or VoT, lets us create a small HTML5 web visualization and serve it from the S7-1500 itself. Screens are designed in TIA Portal with the WinCC Unified editor and dynamizations, but the runtime opens from the PLC Web Server.
For a small diagnostics or local control panel, this is very practical: we do not need a full HMI, but we still get a web screen connected to PLC tags.
Tags are generated on the HMI side and linked to DB variables. For small screens, dragging variables from the DB speeds things up because TIA Portal creates the associated HMI tag automatically.
Then configure the VoT start screen. If we want the operation screen to appear when opening the Web Server, instead of the system page, select the View of Things page as the default page.
Load and final test
There are two easy-to-miss points. First, the Web Server and View of Things must be compiled separately when we change the web part. Second, when loading to the PLC, mark the VoT application update; otherwise the PLC will keep serving the previous version.
Open the Web Server again and log in with the user that already has permissions. If VoT is configured as the default page, the browser will take you directly to the control screen after login.
This closes the complete loop: Web Server enabled, user login, HTTPS certificate trusted by the PC, encrypted communication and a View of Things screen loaded in the PLC.
Checklist before using it in a plant
- Enable only the required interface: do not expose the Web Server on networks where it is not needed.
- Always use HTTPS: HTTP access or untrusted certificates are acceptable for quick lab tests, not as the final state.
- Create named users: avoid shared generic users for operation or maintenance.
- Limit rights by role: diagnostics, read-only access, control and administration should not mean the same thing.
- Regenerate certificates if the IP or name changes: the browser validates the certificate against the destination used.
- Compile and load VoT explicitly: if the screen does not change, first check the Web Server compilation and load step.
- Validate with a capture: Wireshark helps confirm that credentials and data are not being sent in clear text.
To review supported functions and View of Things limitations, keep the official Siemens documentation on View of Things installation and functions close by.
- Secure Siemens PLC Communication with HMI and PC/PG
- Siemens S7-1500 OPC UA Server: TIA Portal V20 and PLCSIM
- Secure OPC UA in Siemens S7-1500: certificates, UA Expert and Sign & Encrypt
- OPC UA sniffer in Siemens PLC with UA Expert
- Trace in TIA Portal: how to find a phantom fault
- Simatic S7-1200/1500 Web Server
The practical conclusion is simple: the S7-1500 Web Server is not just a diagnostics page. Properly configured, it can be useful for maintenance and small web screens, as long as it is not left open carelessly. Users, roles, HTTPS and certificates are not decoration; they are the difference between a convenient lab test and a configuration that can be reasonably defended.