Siemens Industry Online Support
Siemens AG
Entry type: Application example Entry ID: 58862931, Entry date: 09/29/2015

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

  • Entry
  • Associated product(s)
This application shows, how to program web pages, to control your plant.
Modern automation technology increasingly integrates internet technologies which – together with an integrated Ethernet-based communication – enable, for example, direct access to the system via the intranet. During the test and commissioning phase, the commissioning engineer wants to have flexible access to the CPU; individual data are to be visualized during operation for diagnostic purposes: For access mechanisms via the internet or intranet it is reasonable to use already existing standards such as the http technology, standard web browsers and common "languages" such as HTML or JavaScript.

SIMATIC CPUs with PROFINET interface provide the opportunity to access tags of the CPU with the help of web pages provided by the system. The integrated web server of the S7-CPU is accessed via a standard web browser. In this example the tags are saved in a string that should be transferred to the web pages. That reduces the update time.
In addition to the standard mechanisms of the web page such as identification, diagnostic buffer, module status, communication, variable status and data log, individual web pages can be designed and called for your particular application.

This application shows how to create your own user-defined web pages for S7-1200 easily and quickly. Prior knowledge in HTML-programming is not absolutely necessary.

To create your individual web page (user-defined web page), you can use any tools such as Microsoft Frontpage, Notepad, etc.. For designing your web page, you can use all options provided by HTML, CSS and JavaScript. In addition, there is a special command syntax (AW P command) for directed communication with the CPU.

The following figure shows the implemented visualization:

  Documentation (5,6 MB)
 Registrierung notwendig  Project for STEP 7 V11 (1,9 MB)

For STEP 7 V14 we offer a seperate application Example:
Creating and using user-defined web pages on S7-1200 / S7-1500

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.