Web server
12.7 User-defined Web pages
Files used
This user-defined Web page example consists of three files:
● Wind_turbine.html: This is the HTML page that implements the display shown above,
using AWP commands to access controller data.
● Wind_turbine.css: This is the cascading style sheet that contains formatting styles for the
HTML page. Use of a cascading style sheet is optional, but it can simplify the HTML page
development.
● Wind_turbine.jpg: This is the background image that the HTML page uses. Use of images
in user-defined Web pages is, of course, optional, and does require additional space in
the CPU.
These files are not provided with your installation, but are described as an example.
Implementation
The HTML page uses AWP commands to read values from the PLC (Page 1044) for the
display fields and to write values to the PLC (Page 1045) for data coming from user input.
This page also uses AWP commands for enum type definition (Page 1050) and reference
(Page 1051) for handling ON/OFF settings.
The first part of the page displays a header line that includes the wind turbine number.
The next part of the page displays atmospheric
conditions at the wind turbine. I/O at the turbine
site provide the wind speed, wind direction, and
current temperature.
Next, the page displays the power output of the
turbine as read from the S7-1200.
The following sections allow for manual control of the turbine, overriding the normal automat-
ic control by the S7-1200. These types are as follows:
• Manual override: enables manual override
of the turbine. The STEP 7 user program
requires that the manual override setting be
true before enabling the use of any of the
manual settings for turbine speed, or yaw or
pitch.
• Yaw override: enables manual override of
the yaw setting, and a manual setting for the
yaw. The STEP 7 user program requires
that both manual override and yaw override
be true in order to apply the yaw setting.
• Pitch override: enables manual override of
the pitch of the blades. The STEP 7 user
program requires that both manual override
and pitch override be true in order to apply
the blade pitch setting.
1064
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK