104BWeb server
11.3 User-defined web pages
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05
493
This process is illustrated below:
1
①
HTML files with embedded AWP commands
11.3.1
Creating HTML pages
You can use the software package of your choice to create your own HTML pages for use
with the Web server. Be sure that your HTML code is compliant to the HTML standards of
the W3C (World Wide Web Consortium). STEP 7 does not perform any verification of your
HTML syntax.
You can use a software package that lets you design in WYSIWYG or design layout mode,
but you need to be able to edit your HTML code in pure HTML form. Most Web authoring
tools provide this type of editing; otherwise, you can always use a simple text editor to edit
the HTML code. Include the following line in your HTML page to set the charset for the page
to UTF-8:
<meta http-equiv="content-type" content="text/html; charset=utf-8">
Also be sure to also save the file from the editor in UTF-8 character encoding:
You use STEP 7 to compile everything in your HTML pages into STEP 7 data blocks. These
data blocks consist of one control data block that directs the display of the Web pages and
one or more fragment data blocks that contain the compiled Web pages. Be aware that
extensive sets of HTML pages, particularly those with lots of images, require a significant
amount of load memory space (Page 510) for the fragment DBs. If the internal load memory
of your CPU is not sufficient for your user-defined Web pages, use a memory card (Page 99)
to provide external load memory.
To program your HTML code to use data from the S7-1200, you include AWP commands
(Page 494) as HTML comments. When finished, save your HTML pages to your PC and
note the folder path where you save them.