Creating User- Defined Web Pages S7-1500

2y ago
103 Views
5 Downloads
1.68 MB
34 Pages
Last View : 24d ago
Last Download : 3m ago
Upload by : Maxine Vice
Transcription

Creating Userdefined Web Pageson S7-1200 /S7-1500SIMATIC STEP 7 (TIA Portal V14), S7-1200 / en/view/68011496SiemensIndustryOnlineSupport

Warranty and LiabilityWarranty and Liability Siemens AG 2017 All rights reservedNoteThe Application Examples are not binding and do not claim to be completeregarding the circuits shown, equipping and any eventuality. The ApplicationExamples do not represent customer-specific solutions. They are only intendedto provide support for typical applications. You are responsible for ensuring thatthe described products are used correctly. These Application Examples do notrelieve you of the responsibility to use safe practices in application, installation,operation and maintenance. When using these Application Examples, yourecognize that we cannot be made liable for any damage/claims beyond theliability clause described. We reserve the right to make changes to theseApplication Examples at any time without prior notice.If there are any deviations between the recommendations provided in theseApplication Examples and other Siemens publications – e.g. Catalogs – thecontents of the other documents have priority.We do not accept any liability for the information contained in this document.Any claims against us – based on whatever legal reason – resulting from the use ofthe examples, information, programs, engineering and performance data etc.,described in this Application Example shall be excluded. Such an exclusion shallnot apply in the case of mandatory liability, e.g. under the German Product LiabilityAct (“Produkthaftungsgesetz”), in case of intent, gross negligence, or injury of life,body or health, guarantee for the quality of a product, fraudulent concealment of adeficiency or breach of a condition which goes to the root of the contract(“wesentliche Vertragspflichten”). The damages for a breach of a substantialcontractual obligation are, however, limited to the foreseeable damage, typical forthe type of contract, except in the event of intent or gross negligence or injury tolife, body or health. The above provisions do not imply a change of the burden ofproof to your detriment.Any form of duplication or distribution of these Application Examples or excerptshereof is prohibited without the expressed consent of the Siemens AG.SecurityinformationSiemens provides products and solutions with industrial security functions thatsupport the secure operation of plants, systems, machines and networks.In order to protect plants, systems, machines and networks against cyberthreats, it is necessary to implement – and continuously maintain – a holistic,state-of-the-art industrial security concept. Siemens’ products and solutions onlyform one element of such a concept.Customer is responsible to prevent unauthorized access to its plants, systems,machines and networks. Systems, machines and components should only beconnected to the enterprise network or the internet if and to the extent necessaryand with appropriate security measures (e.g. use of firewalls and networksegmentation) in place.Additionally, Siemens’ guidance on appropriate security measures should betaken into account. For more information about industrial security, please mens’ products and solutions undergo continuous development to make themmore secure. Siemens strongly recommends to apply product updates as soonas available and to always use the latest product versions. Use of productversions that are no longer supported, and failure to apply latest updates mayincrease customer’s exposure to cyber threats.To stay informed about product updates, subscribe to the Siemens IndustrialSecurity RSS Feed under http://www.siemens.com/industrialsecurity.Creating User-defined Web Pages on S7-1200 / S7-1500Entry ID: 68011496, V2.2, 04/20172

Table of ContentsTable of ContentsWarranty and Liability . 21Preface . 42Automation Task . 53Automation Solution . 6 Siemens AG 2017 All rights reserved3.13.23.33.43.5General solution overview . 6Advantages and application options of web server applications. 7Creating user-defined web pages . 8Structure of the application. 9Hardware and software components . 104Principles of Standard Web Pages . 125Functional Mechanisms of this Application . onfiguration and Settings. 196.16.26.36.46.56.67Functional principle of the S7 program . 13Startup (OB100) . 14Main (OB1) . 14TankSimu (FB1) . 15Functional principle of the HTML file . 16AWP commands . 16Outputting CPU variables . 17Outputting texts via enumerations . 17Setting variables in the CPU with value and button . 17Setting variables in the CPU via button only . 18Procedure for creating a web page . 19Configuring the hardware . 20Creating the variables in the variable table or DB . 23Creating the HTML files. 23Web server settings and generating of the data blocks . 24Creating, compiling and loading of the S7 program . 26Installation . 287.17.2Hardware and software installation . 28Installation of the application example . 298Operating the Application . 309Related Literature . 339.110Internet link specifications . 33History. 34Creating User-defined Web Pages on S7-1200 / S7-1500Entry ID: 68011496, V2.2, 04/20173

1 Preface1PrefaceObjective of the applicationThe application on hand shows you how to simply and quickly create your ownuser-defined web pages for S7-1500.Main topics of this applicationThe following main points will be discussed in this application: Principles of user-defined web pages. Creating user-defined web pages. Configuring the web server with user-defined web pages. Integrated web serverThe standard web pages for simple display of services and diagnosticinformation are activated with a click. Additionally, individually created, userdefined web pages can be generated. Location-independentThe web page can be called up world-wide via a standard internet browser. Application exampleUniversal usage of the application for all controllers No additional hardware and software required. The access to the web server is possible across large distances via mobilecommunication devices such as tablet PC, smart phone, etc. Reduced working hours through simple activation of the web server. Time saving in planning and implementing your automation solution throughsimple adaptation of the application on hand. Siemens AG 2017 All rights reservedAdvantagesBenefitsNoteThe application example as well as the web server should not and cannotreplace an HMI system.Creating User-defined Web Pages on S7-1200 / S7-1500Entry ID: 68011496, V2.2, 04/20174

2 Automation Task2Automation TaskOverview of the automation taskModern automation technology increasingly integrates internet technologies which– together with an integrated Ethernet-based communication – enable, forexample, direct access to the system via the intranet.During the test and commissioning phase, the commissioning engineer wants tohave flexible access to the CPU; individual data is to be visualized during operationfor diagnostic purposes.For access mechanisms via the internet or intranet it is reasonable to use alreadyexisting standards, such as, for example, http technology, standard web browsersand common "languages" such as HTML (Hypertext Markup Language) orJavaScript.Figure 2-1 Overview of the automation problemLaptopSmartphoneTablet Siemens AG 2017 All rights reservedRemote accessWeb page 1Web page 2Web page 3 html html html PROFINETIndustrial EthernetController 2Controller 1Controller 3Requirements for the automation task Access the CPU with standard hardware and standard mechanisms viaIndustrial Ethernet. You do not require any additional hardware andsoftware. Access the CPU individually related to the system and also visualized, ifrequired. Each CPU has its own individual web page. Operating personnel without any automation knowledge is also providedsimple access to the CPU.Creating User-defined Web Pages on S7-1200 / S7-1500Entry ID: 68011496, V2.2, 04/20175

3 Automation Solution3Automation Solution3.1General solution overviewSchematic layoutSIMATIC CPUs with PROFINET interfaces provide the opportunity to access CPUvariables with the help of web pages provided by the system.Access the integrated web server of the CPU via a web browser.The web server contains standard web pages, such as start page, identification,diagnostic buffer, module status, messages, communication, topology and filebrowser.In addition to the standard web pages, you can also design and call the web pagesindividually for your application case.To create your web page (user-defined web page), you can use any tools such asMicrosoft Expression Web, Notepad , etc.For designing your web page, you can use all options provided to you by HTML,CSS (Cascading Style Sheets) and JavaScript.In addition, there are Automation Web Programming (AWP) commands for directedcommunication with the CPU. Siemens AG 2017 All rights reservedThe following figure gives an overview of the implemented solution.Figure 3-1 Overview of the overall solutionClient siteS7-Program-blocks- STEP7(TIA-Portal)HTML-fileCPU 1511-1 PNas webserverHTML-Editor- HTML-DateiIn this application example, the CPU simulates a tank which can be controlledthrough the website.Creating User-defined Web Pages on S7-1200 / S7-1500Entry ID: 68011496, V2.2, 04/20176

3 Automation Solution3.2Advantages and application options of web serverapplicationsBy having access options through various web browsers, control data can bedisplayed and to a limited degree controlled, by any computer or web-enableddevices without additional software installation.Another advantage is the use of the entire network infrastructure of a plant withoutany additional hardware components. I.e., each place of the plant where a networkaccess is provided, can access the respective controllers.Evaluating, diagnosing and controlling the controllers can therefore also beperformed over large distances or mobile communication devices such as tabletPC, smartphone, etc. However, this also requires you to take correspondingprecautions to protect your system. Please observe our security notes in thechapter “Warranty and Liability” in this context.No safety-relevant functions should be realized via the web serverfunctionality due to the missing time deterministic of web applications! Siemens AG 2017 All rights reservedWARNINGCreating User-defined Web Pages on S7-1200 / S7-1500Entry ID: 68011496, V2.2, 04/20177

3 Automation Solution3.3Creating user-defined web pagesBelow it is shown the procedure for creating user-defined web pages. Siemens AG 2017 All rights reservedFigure 3-2 Procedure at a glanceTable 3-1No.Instruction1.With an HTML editor, you create the HTML file for the user-defined web page.2.The web application can consist of various source files, e.g.: *.html, *.gif, *.js, 3.The HTML files with images etc. are stored in data blocks with SIMATIC STEP 7V12. Call the WWW instruction in the S7 program.4.Transfer all blocks to the CPU.5.Open the web page of the CPU via a web browser. Accessing the web server ofthe CPU can be irrespective of the configuration computer. Every output devicewith access to the PN interface of the CPU can display the web page.Detailed explanations of the creation of a web page and programming in STEP 7can be found from Chapter 6 on.Creating User-defined Web Pages on S7-1200 / S7-1500Entry ID: 68011496, V2.2, 04/20178

3 Automation SolutionDelimitationThis application is an introduction to user-defined web pages for beginners. Shownare simple methods for accessing the web page of a CPU with HTML and SIMATICSTEP 7 V12.This application does not include a complete description of HTML. To gain deeperknowledge of HTML and JavaScript, please refer to the literature and internetpages specified in Chapter 9.3.4Structure of the applicationThis application was implemented with a CPU 1516-3 PN and aCPU 1214C DC/DC/DC. A PC is connected via the PROFINET interface. The PCserves for the creation of the S7 program and the HTML file, as well as fordisplaying the web page in a web browser.Shown are all steps necessary to create a web page and to subsequently call it viathe CPU.Content of the example application Siemens AG 2017 All rights reservedThe example application provides the following detailed contents: Configuration of the web server for a CPU with PN interface Creation of a user-defined web page for the CPU with the following functions: –Displaying CPU variables.–Graphic display of CPU variables.–Setting of CPU variables.–Displaying of texts which are linked with CPU variables.–Displaying of pictures which are linked with CPU variables.–Going to web pages with links in the navigation bar.–Cyclic refreshing of the web page with HTML.Particularities in the S7 program creation:–Providing variables for the web page.–Further processing of variables from the web page in the S7 program.Creating User-defined Web Pages on S7-1200 / S7-1500Entry ID: 68011496, V2.2, 04/20179

3 Automation Solution3.5Hardware and software componentsThis application was created with the following components.Hardware componentsNoteFor this application, you require the current firmware version of the CPU.Depending on the CPU type, the following entries contain links to thecorresponding downloads: S7-1500: 6926947/133200S7-1200: 04546617/133200Table 3-2 Siemens AG 2017 All rights reservedComponentNo.CPU 1516-3 PNorCPU 1214CDC/DC/DC1Optional by usingS7-1500: CP 1543-1Order numberNote6ES7511-1AK01-0AB0FW 2.0.56ES7214-1AG40-0XB0FW 4.216GK7 543-1AX00-0XE0PROFINET CP withfirewall functionality forprotection againstunauthorized networkaccessPG/PC with Ethernetinterface1--IE FC TP STANDARDCABLE16XV1840-2AH10Connecting cable IE;minimum order quantity20mRJ45 connector26GK1901-1BB10-2AA0Can be assembledCreating User-defined Web Pages on S7-1200 / S7-1500Entry ID: 68011496, V2.2, 04/201710

3 Automation SolutionSoftware componentsTable 3-3ComponentNo.Order numberNoteSIMATIC STEP 7Professional V1416ES7822-1AA04-0YE5V14.0 (Update 2)Software tool forcreating HTML files,e.g. Frontpage,Notepad , 1--Web browser, e. g.Internet Explorer,1)Mozilla Firefox1-Application optimizedforInternet Explorer 11.0.1)The following web browsers were explicitly tested for communication with theCPU: Siemens AG 2017 All rights reservedNote Internet Explorer (version 11) Mozilla Firefox (version 50.0)The application is optimized for the Internet Explorer and Firefox.For the use of other browsers, adjustments may have to be made.Sample files and projectsThe following list includes all files and projects that are used in this example.Table 3-4ComponentComments68011496 S7-1200 S7-1500 Webserver CODE v22.zipThe zip file contains theSTEP 7 project with therelated HTML file.The HTML file with theassociated files, arelocated in the \htmldirectory.68011496 S7-1200 S7-1500 Webserver DOC v22 en.pdfThis document.Creating User-defined Web Pages on S7-1200 / S7-1500Entry ID: 68011496, V2.2, 04/201711

4 Principles of Standard Web Pages4Principles of Standard Web PagesRequirementsIn STEP 7, the following settings are required in the properties of the PLC: The web server must be activated. If you require safe access to the standard web pages, enable the "Permitaccess only with HTTPS" checkbox. Automatic refreshing of the standard web pages is enabled. The refreshinterval is preset to 10 s and can lie in the range of between 1 to 999.Access via HTTP or HTTPSWith the URL "http://ww.xx.yy.zz" or "https://ww.xx.yy.zz" you get access to thestandard web pages. "ww.xx.yy.zz" corresponds to the IP address of the S7-1500CPU.HTTPS is used for the encryption and authentication of the communicationbetween browser and web server. When the "Permit access only with HTTPS"checkbox is enabled, calling the web pages of S7-1500 CPU is only possible viaHTTPS. Siemens AG 2017 All rights reservedLog inThe user with the name "Anybody" is the default setting in the user list. This user isgiven administrative rights, so there is no need for logging in at the webpages.HinweisFurther information about the user handling and the integration of the LogInwindow in the unser defined webpages are described in the „Simple examples ofthe webserver for SIMATIC S7-1200/S7-1500”.These examples can be downloaded at the same website like this application.Standard web pages of SIMATIC S7-1500The web server of the S7-1500 already offers plenty of information regarding therespective CPU via integrated standard web pages.A detailed description of the setup of the standard web pages is available in theapplication description 59193560.Creating User-defined Web Pages on S7-1200 / S7-1500Entry ID: 68011496, V2.2, 04/201712

5 Functional Mechanisms of this Application5Functional Mechanisms of this Application5.1Functional principle of the S7 programThe S7 program of this application only serves for representing individual functionalprinciples of STEP 7 by way of example.The call structure in the S7 program looks as follows:Figure 5-1 Call structure of the S7-programMain [OB1]CycliccallWWW [FC99]DB333 TankSim u [FB1]ResetData [FC3]TimeToString [FC2]CopyData [FC1]Startup [OB100] Siemens AG 2017 All rights reservedThe following symbols and variables are used in the “ Web2Plc ” data block:Figure 5-2 Tag tableCreating User-defined Web Pages on S7-1200 / S7-1500Entry ID: 68011496, V2.2, 04/201713

5 Functional Mechanisms of this Application5.1.1Startup (OB100)In the “Startup” (OB100) OB, a start valu

Creating User-defined Web Pages on S7-1200 / S7-1500 Entry ID: 68011496, V2.2, 04/2017 8 G 7 d 3.3 Creating user-defined web pages Below it is shown the procedure for creating user-defined web pages. Figure 3-2 Procedure at a glance Table 3-1 No. Instruction 1. With an HTML editor, you create the HTM

Related Documents:

contents page 2 fuel consumption pages 3-6 fiat 500 pages 7-10 fiat 500c pages 11-13 fiat 500 dolcevita pages 14-16 fiat 500 120th anniversary pages 17-21 fiat 500x pages 22-24 fiat 500x 120th anniversary pages 25-27 fiat 500x s-design pages 28-31 fiat 500l pages 32-35 fiat 500l 120th anniversary pages 36-39 tipo hatchback pages 40-43 tipo station wagon pages 44-47 tipo s-design

Pipe Fittings. pages 32-37. Unpolished Fittings. pages 74-80. Polished Fittings. pages 64-73. European Fittings. pages 81-85. Filters / Strainers. pages 111-117. Custom Fabrications. pages 109. Swivels. pages 140-141. Instrumentation. pages 118-133. Air Fittings. pages 162-170. High Press. Quick Disc. pages 171-179. Check Valves. pages 214-222 .

Blood Typing Lab pages 23-29 binder pages 4-6 Fingerprinting Lab pages 30-31 binder page 7 Blood Spatter Lab pages 32-43 binder pages 8-13 Shoe Impressions pages 44- 45 binder page 14 Pathology pages 46-48 binder pages 15-18 ****DNA pages 49-50 binder pages *****must be done last

Cognos - User-Defined Prompts and Maps Page 1 of 24 Updated - January 2013 COGNOS User-Defined Prompts and Maps User Guide Introduction This user guide will walk you through the steps of creating a user-defined prompt and maps in Cognos. The package we are using for this user guide is not open to the public, but is a genuine example of

Objectives: To impart the skills needed for web programming, web administration, and web site development. After studying this course student can develop; static web pages; dynamic web pages; data Processing on web pages. S. No. Description 1. Internet Fundamentals: Introduction to Internet, Web browser, web page, website, homepage, hyperlinks,

History of Bushton Manufacturing and Hawk Tools page 3 Clamping pages 20-23 Bishop CLAMP pages 20-21 BushtonCLAMP page 23 VerticalCLAMP page 22 OrthoCLAMP page 23 RouterSHOP pages 11-13 PanelMASTER pages 24-26 Freeborn Cutters pages 27-30 MultiFUNCTION Planer pages 31-32 Parts pages 33-34 JointABILITY pages 14-15 Router Bits Pages 16-17

Common Microsoft FrontPage tasks Work with and manage Web pages F8 Run the accessibility checker. CTRL N Create a new Web page. CTRL O Open a Web page. CTRL F4 Close a Web page. CTRL S Save a Web page. CTRL P Print a Web page. F5 Refresh a Web page; refresh the Folder List. CTRL TAB Switch between open Web pages. CTRL SHIFT B Preview a Web page .

American National Standards Institute (ANSI) A300 (Part 6) – 2012 Transplanting for Tree Care Operations – Tree, Shrub, and other Woody Plant Maintenance Standard Practices (Transplanting) Drip line The hole should be 1.5-2 times the width of the root ball. EX: a 32” root ball should have a minimum wide 48” hole