Web server
12.7 User-defined Web pages
S7-1200 Programmable controller
1042 System Manual, V4.2, 09/2016, A5E02486680-AK
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 variables (Page 1044)
● Writing variables (Page 1045)
● Reading special variables (Page 1047)
● Writing special variables (Page 1048)
● Defining enum types (Page 1050)
● Assigning variables to enum types (Page 1051)
● Creating fragment data blocks (Page 1052)
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 1055).
Use a text editor or HTML editing mode to insert AWP commands into your pages.
Note
Expected syntax of AWP commands
The space after "
<!--" and the space before "-->" in the formulation of an AWP command
are essential to proper compiling of the command. Omission of the space characters can
cause the compiler to be unable to generate the proper code. The compiler does not display
an error in this case.