Table of contents
S7-1200 Programmable controller
12
System Manual, 11/2011, A5E02486680-05
11
Web server ............................................................................................................................................ 473
11.1
Enabling the Web server........................................................................................................... 474
11.2
Standard web pages ................................................................................................................. 474
11.2.1 Accessing the standard Web pages from the PC ..................................................................... 474
11.2.2 Layout of the standard Web pages ........................................................................................... 476
11.2.3 Introduction ............................................................................................................................... 478
11.2.4 Start........................................................................................................................................... 479
11.2.5 Identification .............................................................................................................................. 480
11.2.6 Diagnostic Buffer....................................................................................................................... 480
11.2.7 Module Information ................................................................................................................... 481
11.2.8 Communication ......................................................................................................................... 483
11.2.9 Variable Status.......................................................................................................................... 484
11.2.10 Data Logs.................................................................................................................................. 486
11.2.11 Constraints ................................................................................................................................ 488
11.2.11.1 Features restricted when JavaScript is disabled ................................................................. 489
11.2.11.2 Features restricted when cookies are not allowed............................................................... 490
11.2.11.3 Importing the Siemens security certificate ........................................................................... 490
11.2.11.4 Importing CSV format data logs to non-USA/UK versions of Microsoft Excel..................... 491
11.3
User-defined web pages ........................................................................................................... 492
11.3.1 Creating HTML pages............................................................................................................... 493
11.3.2 AWP commands supported by the S7-1200 Web server ......................................................... 494
11.3.2.1 Reading variables ..................................................................................................................... 495
11.3.2.2 Writing variables........................................................................................................................ 496
11.3.2.3 Reading special variables ......................................................................................................... 497
11.3.2.4 Writing special variables ........................................................................................................... 499
11.3.2.5 Using an alias for a variable reference ..................................................................................... 500
11.3.2.6 Defining enum types ................................................................................................................. 501
11.3.2.7 Referencing CPU variables with an enum type ........................................................................ 501
11.3.2.8 Creating fragments.................................................................................................................... 503
11.3.2.9 Importing fragments .................................................................................................................. 504
11.3.2.10 Combining definitions........................................................................................................... 504
11.3.2.11 Handling tag names that contain special characters ........................................................... 505
11.3.3 Configuring use of user-defined Web pages............................................................................. 507
11.3.4 Programming the WWW instruction for user-defined web pages............................................. 508
11.3.5 Downloading the program blocks to the CPU........................................................................... 509
11.3.6 Accessing the user-defined web pages from the PC................................................................ 510
11.3.7 Constraints specific to user-defined Web pages ...................................................................... 510
11.3.8 Example of a user-defined web page ....................................................................................... 511
11.3.8.1 Web page for monitoring and controlling a wind turbine........................................................... 511
11.3.8.2 Reading and displaying controller data..................................................................................... 513
11.3.8.3 Using an enum type .................................................................................................................. 514
11.3.8.4 Writing user input to the controller ............................................................................................ 515
11.3.8.5 Writing a special variable .......................................................................................................... 516
11.3.8.6 Reference: HTML listing of remote wind turbine monitor Web page ........................................ 516
11.3.8.7 Configuration in STEP 7 of the example Web page ................................................................. 520
11.3.9 Setting up user-defined Web pages in multiple languages....................................................... 522
11.3.9.1 Creating the folder structure ..................................................................................................... 522
11.3.9.2 Programming the language switch............................................................................................ 523
11.3.9.3 Configuring STEP 7 to use a multi-language page structure.................................................... 525
11.3.10 Advanced user-defined Web page control................................................................................ 526