Writing User Inputs Into The Controller; Writing Special Tags - Siemens SIMATIC S7-1500 Function Manual

Web server
Hide thumbs Also See for SIMATIC S7-1500:
Table of Contents

Advertisement

Websites
3.8 User pages
3.8.4.4

Writing user inputs into the controller

Setting options
The user page "Remote Wind Turbine Monitor" includes different AWP commands for writing
data into the controller. A user with the corresponding access permissions can control the
wind turbine manually, activate the override for the turbine speed and the turbine orientation
as well as the angle of attack of the rotor blades with the declaration of different
"AWP_In_Variable" write commands. The user can also specify floating-point numbers for
turbine speed, orientation angle of attack and percentage of braking. The user page uses an
HTTP command in the format "POST" to write the tags into the controller.
The code used in the example for setting the brake value is:
<!-- AWP_In_Variable Name='"Data_block_1"' -->
...
<tr sytle="vertical-align: top; height: 2%;">
<td style="width: 22%;"><p>Braking:</p></td>
<td>
<form method="POST">
<p><input name='"Data_block_1".Braking' size="10" type ="text">
%</p>
</form>
</td>
</tr>
This excerpt from the HTML code first defines a "AWP_In_Variable" for the "Data_block_1"
data block which enables the user page to write any number of tags into the data block. The
text "Breaking:" is displayed on the left-hand side; a box is available on the right-hand side in
which the user can make inputs for the tag "Braking" in the data block.
The user page reads out the actual braking value from the controller and displays it in the
text box. A user with the corresponding access permissions can then write a brake value that
controls the braking process into the data block of the CPU.
Note
Declaration of data blocks
If you declare an entire data block by means of a "AWP_In_Variable", each tag in the data
block can be written by means of the user page. If you want only specific tags in the data
block to be writable, you have to declare it specifically using
Name='"Data_block_1".Breaking'>
3.8.4.5

Writing special tags

Using special tags
The user page "Remote Wind Turbine Monitor" writes the special tag
"Server:current_user_id" into a tag of the CPU. The tag value contains the value "1" if a user
is logged on and "0" if a user is not logged on. In this example, a user is logged on, so the
tag value is set to "1". The special tag is written into the CPU by the user page and does not
need a user interface.
The code used in the example is:
<!-- AWP_in_variable Name="SERVER:current_user_id" Use="User_ID" -->
62
, for example.
<!-- AWP_In_Variable
Function Manual, 01/2013, A5E03484625-01
Web server

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents