12.7.3
Configuring use of user-defined Web pages
To configure user-defined Web pages from STEP 7, follow these steps:
1. Select the CPU in the Device Configuration view.
2. Display the "Web server" properties in the inspector window for the CPU.
3. If not already selected, select the check box for "Activate Web server on this module".
4. Select "Permit access only with HTTPS" to ensure that the Web server uses encrypted
communication and to increase the security of your Web-accessible CPU.
5. Enter or browse to the folder name on your PC where you saved the HTML default page
(start page).
6. Enter the name of the default page.
7. Provide a name for your application (optional). The Web server uses the application
name to further subcategorize or group web pages. When you provide an application
name, the Web server creates an URL for your user-defined page in the following format:
http[s]://ww.xx.yy.zz/awp/<application name>/<pagename>.html.
Avoid special characters in the application name. Some characters can cause the Web
server to be unable to display the user-defined pages.
8. Enter filename extensions of files that include AWP commands. By default, STEP 7
analyzes files with .htm, .html, or .js extensions. If you have additional file extensions,
append them.
9. Keep the default for the Web DB number, or enter a number of your choice. This is the
DB number of the control DB that controls display of the Web pages.
10.Keep the default for the fragment DB start number, or enter a number of your choice. This
is the first of the fragment DBs that contains the Web pages.
Generating program blocks
When you click the "Generate blocks" button, STEP 7 generates data blocks from the HTML
pages in the HTML source directory that you specified and a control data block for the
operation of your Web pages. You can set these attributes as needed for your application
(Page 1059). STEP 7 also generates a set of fragment data blocks to hold the representation
of all of your HTML pages. When you generate the data blocks, STEP 7 updates the
properties to display the control data block number, and the number of the first of the
fragment data blocks. After you generate the data blocks, your user-defined Web pages are
a part of your STEP 7 program. The blocks corresponding to these pages appear in the Web
server folder, which is in the System blocks folder under Program blocks in the project
navigation tree.
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK
Web server
12.7 User-defined Web pages
1057