Page 1
___________________ Web server Preface ___________________ Documentation guide ___________________ General information SIMATIC ___________________ Websites S7-1500 Web server Function Manual 01/2013 A5E03484625-01...
Page 2
Note the following: WARNING Siemens products may only be used for the applications described in the catalog and in the relevant technical documentation. If products and components from other manufacturers are used, these must be recommended or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and maintenance are required to ensure that the products operate safely and without any problems.
Additional support ● The range of technical documentation for the individual SIMATIC products and SIMATIC systems is available on the Internet (http://www.siemens.com/simatic-tech-doku-portal). ● The online catalog and the ordering system are available on the Internet (http://mall.automation.siemens.com). Web server...
Page 4
Preface Web server Function Manual, 01/2013, A5E03484625-01...
Table of contents Preface ..............................3 Documentation guide..........................7 General information ........................... 9 Properties of the Web server ......................9 Configuring the Web server ......................11 Language settings........................16 Updating and storing information ....................18 Websites..............................19 Start page with general CPU information ..................19 Identification ..........................22 Diagnostic buffer ..........................23 Module information ........................24...
Page 6
Table of contents Glossary ..............................69 Index................................ 73 Web server Function Manual, 01/2013, A5E03484625-01...
Interrupts/diagnostic alarms CPU 1516-3 PN/DP Technical specifications (http://support.automation.siemens.com/WW/vi Dimensional drawings ew/en/59191914) SIMATIC manuals All current manuals for SIMATIC products are available for download free of charge on the Internet (http://support.automation.siemens.com). Web server Function Manual, 01/2013, A5E03484625-01...
Page 8
Documentation guide Web server Function Manual, 01/2013, A5E03484625-01...
General information Properties of the Web server Benefits of the Web server The Web server gives you the option to monitor your CPU across a network. This permits evaluation and diagnostics over long distances. Monitoring and evaluation is possible without STEP 7;...
Page 10
General information 2.1 Properties of the Web server Reading out information You can read out the following information from the CPU with the Web server: ● Start page with general CPU information (Page 19) ● Identification information (Page 22) ● Content of the diagnostic buffer (Page 23) ●...
General information 2.2 Configuring the Web server Configuring the Web server Requirements You have opened the properties dialog of the CPU in the STEP 7 project view. Procedure Figure 2-1 Web server settings in STEP 7 To use the full range of functions offered by the Web server, you need to make the following listed settings in STEP 7: ●...
Page 12
General information 2.2 Configuring the Web server Note When projects from deliveries are applied in which the Web server was already activated and configured on the module, this security notice is not shown. ● ② Permit access only with HTTPS The websites are transmitted by default via insecure connection and are not protected from attacks by third parties.
Page 13
General information 2.2 Configuring the Web server ● Setting the language for the web Activate the project languages you want to use and then select up to two languages for the web. Assign one of the activated project languages to each of the languages for the web.
Page 14
General information 2.2 Configuring the Web server The available rights can be available for selection as follows in STEP 7: Figure 2-4 Assignment of user rights in STEP 7 If you have not configured an additional user, access as user "Everybody" is set by default.
Page 15
General information 2.2 Configuring the Web server ● User pages In the "User pages" area you can download your own websites to the CPU and make available your own web applications by means of the web browser. You can find additional information, in chapter User pages (Page 44). It also includes references for creating user pages for the Web servers of the S7-300 or S7-1200 CPUs.
General information 2.3 Language settings Language settings Introduction The Web server provides messages and diagnostic information in the following languages: ● German (Germany) ● English (U.S.) ● French (France) ● Italian (Italy) ● Spanish (traditional sorting) ● Chinese (Simplified) ● Japanese The two Asian languages can be combined as follows: ●...
Page 17
General information 2.3 Language settings Setting the language for the web Once you have activated the Web server on your module, set up to two languages for the Web server and assign them a project language each from the drop-down list. Figure 2-6 Language settings for the Web server in STEP 7 You can assign all relevant languages the same project language:...
General information 2.4 Updating and storing information Updating and storing information Update status of the screen content Automatic updating is activated in the basic setting. The preset update time is 10s. You update the web pages manually using either the function key <F5> or the button Disabling automatic updates for an individual website Select the button to temporarily deactivate automatic updating of a website.
Websites Start page with general CPU information Connecting to the Web server Set up a connection to the Web server by entering the IP address of the configured CPU in the address bar of the web browser, for example, http://192.168.3.141 or https://192.168.3.141.
Page 20
Websites 3.1 Start page with general CPU information Start page Before the log in, the Start page offers information as shown in the figure below. The CPU image with LEDs returns the actual CPU status at the time of the data request. CPU 1516/SIMATIC S7 CPU 1516 PN/DP 16:41:07 15.11.2012...
Page 21
Websites 3.1 Start page with general CPU information CPU 1516/SIMATIC S7 CPU 1516 PN/DP 16:43:22 15.11.2012 English SIMATIC S7 CPU 1516 PN/DP Admin Log out General: Start page Station name: CPU 1516 Module name: SIMATIC S7 CPU 1516 Module type: CPU 1516-3 PN/DP Status: Introduction...
Websites 3.2 Identification Identification Characteristics The CPU characteristics are available on the "Identification" website. CPU 1516/SIMATIC S7 CPU 1516 PN/DP 16:43:22 15.11.2012 English Admin Identification Log out Start page Identification: Identification Plant designation: User_DP Location identifier: User_LI Diagnostic Buffer Serial number: S C-V7B771082007 Module information Order number:...
Websites 3.3 Diagnostic buffer Diagnostic buffer Diagnostic buffer The browser displays the content of the diagnostic buffer on the "Diagnostic buffer" website. CPU 1516/SIMATIC S7 CPU 1516 PN/DP 16:43:22 15.11.2012 English Admin Diagnostic Buffer Log out Diagnostic buffer entries 1-50 Number Time Date...
Websites 3.4 Module information Module information Requirements ● You have made the following settings in the project view, "Properties" tab: – Web server activated – Assigned a project language to the language in the Web server ● You have compiled and downloaded the project with STEP 7. Module information The state of a station is indicated by means of symbols and comments on the "Module information"...
Page 25
Websites 3.4 Module information Meaning of the symbols in the "Symbol" column Table 3- 1 Meaning of symbols Symbol Symbol Meaning color green Component is OK gray Deactivated PROFIBUS slaves or PROFINET devices. black State cannot be determined The "Status cannot be determined" is displayed during system diagnostics ...
Page 26
Websites 3.4 Module information Navigation to further module levels The status of individual components/modules/submodules is displayed when you navigate to the further module levels: ● To the next higher module level using the links in the display of the module levels ●...
Page 27
Websites 3.4 Module information ③ "Filter" You can search in the table by selecting specific criteria: 1. Select a parameter from the drop-down list: – Slot – Name – Order number – I-address – O-address – Comment 2. Enter the value of the selected parameter. 3.
Page 28
Websites 3.4 Module information ⑨ "Statistics" tab The tab is only displayed for PROFINET IO devices and includes the following information on communication statistics of the selected IO device: ● "Overall statistics - Data packets sent" The quality of the data transfer on the send line can be determined from the key data in this info box.
Page 29
Websites 3.4 Module information Example: Module information - module CPU 1516/SIMATIC S7 CPU 1516 PN/DP 16:43:22 15.11.2012 English Admin Filter Module information Slot Log out CPU1516 - Ethernet(1): PROFINET-IOSystem (100) - IM155-5PNST Slot Status Name Order number I address I address Comment Start page IM155-5PNST...
Alarms Requirements The message texts were configured in the user-specific languages. For information about configuring message texts refer to STEP 7 and to the Service&Support pages (http://www.siemens.com/automation/service&support). ① "Filter" You can filter the table based on specific criteria. 1. Select a parameter from the drop-down list.
Page 31
Websites 3.5 Alarms ② "Alarms" ② CPU alarms are displayed in chronological order in info box , including date and time. The message text parameter is an entry which contains the message texts configured for the corresponding fault definitions. Sorting You can also view the individual parameters in ascending or descending order.
Websites 3.6 Communication Communication Overview The "Communication" website provides more information about the following tabs: ● Parameters ● Resources ① "Parameters" tab A summary of the information on the PROFINET interfaces of the selected CPU is available in the "Parameters" tab. CPU 1516/SIMATIC S7 CPU 1516 PN/DP 16:43:22 15.11.2012...
Page 33
Websites 3.6 Communication ④ "Physical properties" In a communication window there is additional information on the interface layout in the field "Physical properties". It includes information on: ● Port number ● Link status ● Settings ● Mode ● Connection medium ①...
Websites 3.7 Topology Topology 3.7.1 Introduction Topology of the PROFINET devices The "Topology" website provides information on the topological configuration and status of the PROFINET devices on your PROFINET IO system. There are three tabs for the following views: ● Graphical view (target and actual topology) ●...
Websites 3.7 Topology 3.7.2 Graphical view Requirements For error-free operation of the topology, the following conditions must be met: ● You completed the Language settings (Page 16). ● In the Topology Editor of STEP 7, you configured the topological interconnection of ports (requirement for display of the target topology and the corresponding topological target connections).
Page 36
Websites 3.7 Topology Meaning of the colored connections in the target/actual topology: Table 3- 2 Meaning of the colored connections in the target/actual topology Connection Meaning Target topology Actual topology green The current actual connection matches the configured target Connections detected connection.
Page 37
Websites 3.7 Topology ⑤ PROFINET devices of a different PROFINET IO subsystem ● In the target topology: A PROFINET device of a different PROFINET IO subsystem is indicated by means of a green link (or red link for interchanged ports) if it is available on the bus and directly ①...
Websites 3.7 Topology 3.7.3 Tabular view Topology - tabular view The "Tabular view" always shows the "Actual topology". CPU 1516/SIMATIC S7 CPU 1516 PN/DP 16:43:22 15.11.2011 English Topology Admin Log out Graphic view Table view Status overview Start page Port Partner port Status Name...
Page 39
Websites 3.7 Topology ② Meaning of the symbols relating to the module status of the PROFINET devices Table 3- 4 Meaning of the symbols relating to the module status of the PROFINET devices Symbol Color Meaning green Component is OK. gray Deactivated PROFIBUS slaves or PROFINET devices black...
Websites 3.7 Topology 3.7.4 Status overview Topology - status overview The "Status overview" provides a clear presentation of all PROFINET IO devices/PROFINET devices (without connection relations) on one page. A quick error diagnostics is possible based on the symbols that show the module statuses. The overview also provides a link of the modules to the "Module information (Page 24)"...
Websites 3.7 Topology 3.7.5 Examples for graphical topology views Exemplary information on the different topology views is included in the paragraphs that follow. "Target topology" is OK Here you see the connections as they were configured in the topology editor by STEP 7. Set topology Actual topology Graphic view...
Page 42
Websites 3.7 Topology "Target topology" with failed device If a device has failed in the meantime, this device remains in the same place in the " Target topology" view. The failed device is displayed with a red border around the device header and the icon Set topology Actual topology...
Page 43
Websites 3.7 Topology "Target topology" with interchanged ports If a port was interchanged for a configured, directly adjacent PROFINET device, this device remains in the same place in the "Target topology" view. The interchanged connection is indicated by a red line. The yellow line shows that a connection cannot be clearly determined: ●...
Websites 3.8 User pages User pages User pages In the "User pages" area of the Web server you can upload HTML pages you have created yourself for reading out data of the target system. CPU 1516/SIMATIC S7 CPU 1516 PN/DP 16:43:22 15.11.2012 English...
Page 45
Websites 3.8 User pages Requirements ● You have assigned symbolic names to the tags you want to use on your website in STEP 7 . ● In the Inspector window under "Properties > General > Web server", you have at least –...
The description of a user page is available in the chapter Example of a user page (Page 58). Additional help for visualization with user-defined websites is available in the application examples on the Internet: ● S7-1200 and STEP 7 V11 (http://support.automation.siemens.com/WW/view/en/58862931) ● S7-300 / S7-400 and STEP 7 as of V5.5 (http://support.automation.siemens.com/WW/view/en/44212999) 3.8.1...
Page 47
Websites 3.8 User pages General syntax All AWP commands, except for the command for reading a PLC tag, have this structure: <!-- AWP_< command name and parameter> --> Files including AWP commands: ● must be UTF-8 encoded. To define UTF-8 as character set of the page, add the following line to your HTML code: <meta http-equiv="content-type"...
Websites 3.8 User pages 3.8.1.1 PLC tags PLC tags User pages can read PLC tags from the CPU and write data to the CPU. To do so, PLC tags must: ● be enclosed by double quotation marks ("..."). ● also be enclosed by single quotation marks ('" ... "') or with quotation marks masked with a backslash ("\"...
Page 49
Websites 3.8 User pages Writing PLC tags These in-tags (input direction as seen from the controller) are set on the browser page. This can take place in a form on your HTML page, for example, with text input or list selection boxes that correspond to the tags that can be written.
Websites 3.8 User pages 3.8.1.2 Special tags Special tags Special tags are mainly the HTTP tags specified in the definitions of the World Wide Web Consortium (W3C). Special tags are also used for cookies and server tags. Reading special tags The Web server can read PLC tags and transfer them to special tags in the HTTP response header.
Page 51
Websites 3.8 User pages Writing special tags The Web server gives you the option to write values of special tags written in the HTTP header in the CPU. You can, for example, save information on the cookie of a user page or on the user that accesses a site in STEP 7.
Websites 3.8 User pages 3.8.1.3 Enum types Enumeration types (enum types) Enum types convert numerical values from the PLC program into texts or vice versa. The numerical values may also be assigned for use with several languages. Define enum types You can define enum types in your user pages and assign the values in an AWP command.
Websites 3.8 User pages Example for use when writing a tag <!-- AWP_Enum_Def Name='AlarmEnum' Values='0:"No alarms", 1:"Container is full", 2:"Container is empty"' --> <!-- AWP_In_Variable_Name='"Alarm"' --> <!-- AWP_Enum_Ref Name='"Alarm"' Enum="AlarmEnum" --> <form method="post"> <p><input type="hidden" name ='"Alarm"' value='Container is full' /></p>...
Page 54
Websites 3.8 User pages ● <Id> You can specify a numerical ID for the fragment. If no ID is assigned, the fragment is automatically assigned an ID. For manual pages (<Type>=manual), the fragment can be addressed with this ID in the user program of the CPU. Note ID assignment Set the ID as low as possible because the highest ID influences the size of the Web...
Websites 3.8 User pages 3.8.2 Configuring user pages Configuring user pages Figure 3-23 Configuring user pages in STEP 7 Proceed as follows to configure the user pages in STEP 7: ● Select the CPU in the device configuration. ● Open the settings in the Inspector window of the CPU under "Properties > General > Web server".
Websites 3.8 User pages ● In the network view, select the CPU you want to download and select the command "Download to device" in the "Online" menu to download the blocks. The compilation of the blocks is implicitly triggered before the download. If errors are signaled during this process, they must be remedied before you can download the configuration.
Page 57
Websites 3.8 User pages RET_VAL parameter Table 3- 8 RET_VAL Error code (W#16#...) Explanation 0000 No error has occurred. There are no pending website requests that must be released by the user program. 00xy x: indicates if an error occurred during initialization of the Web control DB (CTRL_DB): x=0: no errors.
Websites 3.8 User pages 3.8.4 Example of a user page 3.8.4.1 Website for monitoring and controlling a wind turbine Example of a user page Here you see a user page for monitoring and controlling a wind turbine: Figure 3-24 Overview of user page wind turbine The user page was created in English in this example, but you can select any language you wish when you create your own user page.
Page 59
Websites 3.8 User pages Files used Three files are used in the application example: ● Wind_turbine.html: The user page in the figure shown above. The control data is accessed by AWP commands. ● Wind_turbine.css: The Cascading Style Sheet which includes the formatting specifications of the user page.
Websites 3.8 User pages ① Header of the website with number and location of the wind turbine. ② Atmospheric conditions at the turbine, wind speed, wind direction and current temperature are displayed. ③ Read-out power output. ④ Manual override: Activates manual override of the turbine. To make manual settings for speed, orientation and angle of attack, the STEP 7 user program requires that manual override has been activated.
Websites 3.8 User pages 3.8.4.3 Using enum types Definition of enum types The described user page uses enum types in three locations. "On" or "Off" is displayed for a Boolean value at these locations. The enum type for "On" results in a value of 1; the enum type for "Off" results in a value of 0. The following excerpts from the HTML code of the user page show the declaration of an enum type with the name "OverrideStatus"...
Websites 3.8 User pages 3.8.4.4 Writing user inputs into the controller Setting options The user page "Remote Wind Turbine Monitor" includes different AWP commands for writing data into the controller. A user with the corresponding access permissions can control the wind turbine manually, activate the override for the turbine speed and the turbine orientation as well as the angle of attack of the rotor blades with the declaration of different "AWP_In_Variable"...
Websites 3.8 User pages 3.8.4.6 HTML code of the user page "Remote Wind Turbine Monitor" The complete HTML code of the example user page "Remote Wind Turbine Monitor" as well as the used Cascading Style Sheet (CSS) is listed below. Wind_turbine.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"...
Websites 3.9 File browser File browser Requirements For error-free operation, the following conditions must be met: ● The SIMATIC memory card is inserted into the CPU. ● Execute permissions must be assigned for the user in the user administration. File browser The browser displays the content of the SIMATIC memory card on the "File browser"...
Websites 3.10 Reading out service data 3.10 Reading out service data The Web server gives you the option to save service data. In addition to the content of the diagnostic buffer, they include additional information on the internal status of the CPU. If you should encounter a problem with the CPU that cannot be resolved otherwise, you therefore have the option to submit the service data to the Service&Support team.
Glossary Automation system An automation system is a programmable logic controller that consists of at least one CPU, various input and output modules, as well as operating and monitoring devices. Automation Web Programming AWP commands Special command syntax for data exchange between CPU and HTML file. Configuration Systematic arrangement of individual modules (design).
Page 70
Glossary HTTPS Hypertext Transfer Protocol Secure (HTTPS). Protocol for tap-proof transmission of sensitive data across a network. Identification data Identification data is stored on a module, and contains information which supports the user in ● Checking the system configuration ● Locating hardware changes in a system ●...
Page 71
Glossary PROFINET component A PROFINET component includes the entire data of the hardware configuration, the parameters of the modules, and the corresponding user program. The PROFINET component is made up as follows: ● Technological Function The (optional) technological (software) function includes the interface to other PROFINET components in the form of interconnectable inputs and outputs.
Page 72
Glossary Web browser Web browsers are visualization programs for websites and can communicate with Web servers. Typical web browsers are, for example: ● Microsoft Internet Explorer ● Mozilla Firefox Web server Function Manual, 01/2013, A5E03484625-01...
Index Module information, 24 Access restriction, 15 Activating the Web server, 11 Alarms, 30 Asian languages, 16 Properties of the Web server, 9 Automatic updating, 12 AWP commands, 46 Enumeration types, 52 Fragments, 53 Reading out information, 10 PLC tags, 48 Reading out service data, 68 Special tags, 50 Safety functions, 9...
Page 74
Index Web access Via HMI devices and mobile terminal devices, 10 Via PG/PC, 10 Web browser, 9 Web server language, 13 Web server Function Manual, 01/2013, A5E03484625-01...