Creating Fragments - Siemens SIMATIC S7 System Manual

Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

<form method="POST">
<p><input type="hidden" name='"Alarm"' value="Tank is full" /></p>
<p><input type="submit" value='Set Tank is full' /><p>
</form>
Because the enum type defintion (Page 501) assigns "Tank is full" to the numerical value 1,
the value 1 is written to the alias "Alarm" which corresponds to the PLC tag named
"Motor1.Alarm" in data block "Data_Block_4" in the CPU.
If a tag name or data block name includes special characters, you must use additional
quotation marks or escape characters as described in the topic Handling tag names that
contain special characters (Page 505).
11.3.2.8

Creating fragments

STEP 7 converts and stores user-defined Web pages as a control DB and fragment DBs
when you click "Generate blocks" in the CPU Properties for the Web server. You can set up
specific fragments for specific pages or for sections of specific pages. You can identify these
fragments by a name and number with the "Start_Fragment" AWP command. Everything in
the page following the AWP_Start_Fragment command belongs to that fragment until
another AWP_Start_Command is issued or until end of file is reached.
Syntax
<!-- AWP_Start_Fragment Name='<Name>' [Type=<Type>][ID=<id>] -->
Parameters
<Name>
<Type>
<id>
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05
Text string: name of fragment DB
Fragment names must begin with a letter or underscore and be comprised of
letters, numeric digits, and underscores. The fragment name is a regular
expression of the form:
[a-zA-Z_][a-zA-Z_0-9]*
"manual" or "automatic"
manual: The STEP 7 program must request this fragment and can respond
accordingly. Operation of the fragment must be controlled with STEP 7 and the
control DB variables.
automatic: The Web server processes the fragment automatically.
If you do not specify the type parameter, the default is "automatic".
Integer identification number. If you do not specify the ID parameter, the Web
server assigns a number by default. For manual fragments, set the ID to a low
number. The ID is the means by which the STEP 7 program controls a manual
fragment.
104BWeb server
11.3 User-defined web pages
503

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-1200

Table of Contents