Siemens SIMATIC S7-1500 Function Manual page 49

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

Advertisement

Writing PLC tags
These in-tags (input direction as seen from the controller) are set on the browser page. This
can take place in a form on your HTML page, for example, with text input or list selection
boxes that correspond to the tags that can be written.
The tags are either set in the HTTP Header (per cookie or POST method) or in the URL
(GET method) by the browser in the HTTP request and are then written by the Web server
into the respective PLC tag.
Note
Write access during operation
For data to be written from a user page to the CPU, a user must have the required write
permissions and be logged on as this user. This applies to all write accesses of websites to
the CPU.
Syntax
<!-- AWP_In_Variable Name='"<Varname1>"' Name='"<Varname2>"'
Name='"<Varname3>"' -->
If the name of the tag that you are using for the web application is not identical with the name
of the PLC tag, you can assign it to a PLC tag with the "Use" parameter.
<!-- AWP_In_Variable Name='<Varname_Webapp>' Use='<PLC_Varname>' -->
Examples with HTML input boxes
<!--AWP_In_Variable Name='"Target_Level"' -->
<form method="post">
<p>Input Target Level: <input name='"Target_Level"'
type="text"><input type="submit" value="Write to PLC"> </p>
</form>
<!--AWP_In_Variable Name='"Data_block_1".Braking' -->
<form method="post">
<p>Braking: <input name='"Data_block_1".Braking' type="text"> <input
type="submit" value="Write to PLC"></p>
</form>
Examples with HTML drop-down list
<!-- AWP_In_Variable Name='"Data_block_1".ManualOverrideEnable' -->
<form method="post">
<select name='"Data_block_1".ManualOverrideEnable'>
<option value=1>Yes</option>
<option value=0>No</option>
</select><input type="submit" value="submit setting"> </form>
Web server
Function Manual, 01/2013, A5E03484625-01
Websites
3.8 User pages
49

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents