104BWeb server
11.3 User-defined web pages
S7-1200 Programmable controller
494
System Manual, 11/2011, A5E02486680-05
Refreshing user-defined Web pages
User-defined Web pages do not automatically refresh. It is your choice whether to program
the HTML to refresh the page or not. For pages that display PLC data, refreshing periodically
keeps the data current. For HTML pages that serve as forms for data entry, refreshing can
interfere with the user entering data. If you want your entire page to automatically refresh,
you can add this line to your HTML header, where "10" is the number of seconds between
refreshes:
<meta http-equiv="Refresh" content="10">
You can also use JavaScripts or other HTML techniques to control page or data refreshing.
For this, refer to documentation on HTML and JavaScript.
11.3.2
AWP commands supported by the S7-1200 Web server
The S7-1200 Web server provides AWP commands that you embed in your user-defined
Web pages as HTML comments for the following purposes:
●
●
●
Reading special variables (Page 497)
●
Writing special variables (Page 499)
●
Defining enum types (Page 501)
●
Assigning variables to enum types (Page 501)
●
Creating fragment data blocks (Page 503)
General syntax
Except for the command to read a variable, the AWP commands are of the following syntax:
<!-- AWP_ <command name and parameters> -->
You use the AWP commands in conjunction with typical HTML form commands to write to
variables in the CPU.
The descriptions of the AWP commands in the following pages use the following
conventions:
●
Items enclosed in brackets [ ] are optional.
●
Items enclosed in angle brackets < > are parameter values to be specified.
●
Quotation marks are a literal part of the command. They must be present as indicated.
●
Special characters in tag or data block names, depending on usage, must be escaped or
enclosed in quotation marks (Page 505).
Use a text editor or HTML editing mode to insert AWP commands into your pages.