Siemens Industry Online Support
Siemens AG
Entry type: Application example Entry ID: 68011496, Entry date: 04/07/2020

Creating and using user-defined web pages on S7-1200 / S7-1500

  • Entry
  • Associated product(s)
How to program web pages, to control your plant

Web pages offer an intuitive way by using a standard Web browser, or a mobile communication device, to access all variants of information inside your S7 PLC. Specific security mechanisms are at your disposal.

You can flexibly access diagnostic data and variables during the test phase, which are already projected. During the regular business, you have the possibility of serving and watching your automation plant process.

Use the standard and free of charge web server of the SIMATIC S7-1200 / S7-1500 CPUs and access your data in the CPU using web pages available in the system.

In addition to the standard mechanisms of the web page, such as start page, identification, diagnostic buffer, module status, messages, communication, topology and file browser, individual web pages can be designed and called for your particular application.

The application on hand shows you how to simply and quickly create your own web pages for S7-1200 / S7-1500. Previous knowledge in HTML programming is not necessary here.

The application example was implemented with three different solution possibilities (examples):

  • Web page standard: HTML without JavaScript
  • Web page optimized: HTML with JavaScript
  • Web API (only S7-1500): HTML with Web API and JavaScript

In addition examples are supplied to extend or improve your application.

Short film on the function principle
How can you provide production data online?

Advantages and Benefits

  • No additional hardware and software
    The web server is contained in any S7-1200 / S7-1500 CPU as a standard. Additional HW or SW is not required; a standard text editor is sufficient.
  • Integrated web server
    The standard web pages for simple display of services and diagnostic information are quickly activated with a click.
    Additionally, individually created, user-defined web pages can be generated.
  • Location-independent
    The access to your controller is possible world-wide via a standard Internet browser as well as via mobile communication devices, such as tablet PC, smart phone, etc.
  • Security
    For access protection you use security standard mechanisms, such as VPN tunnel, etc. Access protection via password protection is also possible.
  • Application example
    Universal usage of this application for all S7-1200 / S7-1500 controllers. Save time in planning and implementing your automation solution through simple adaptation of the application on hand to your requirements

For individual familiarization with the topic, the following documents of varying information depths are available:

Further information
System Diagnostics with S7-1500 and TIA Portal

Last modification
Extension of the basic example for TIA Portal V16

Additional keywords
AJAX, language switch 

Security information
In order to protect technical infrastructures, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art IT security concept. Siemens’ products and solutions constitute one element of such a concept. For more information about cyber security, please visit
Rate entry
no rating
Requests and feedback
What do you want to do?
Note: The feedback always relates to the current entry / product. Your message will be forwarded to our technical editors working in the Online Support. In a few days, you will receive a response if your feedback requires one. If we have no further questions, you will not hear from us.