Creating Fragments - Siemens S7-1200 System Manual

Hide thumbs Also See for S7-1200:
Table of Contents

Advertisement

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 639).
Note
Previous releases required a separate AWP_Enum_Ref declaration to associate a variable
with a defined enum type. STEP 7 and the S7-1200 support existing code with
AWP_Enum_Ref declarations; however, this command is no longer needed.
11.6.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>][Mode=<Mode>] -->
Parameters
<Name>
<Type>
<id>
<Mode>
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
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.
"visible" or "hidden"
visible: Contents of the fragment will display on the user-defined Web page.
hidden: Contents of the fragment will not display on the user-defined Web page.
If you do not specify the type parameter, the default is "visible".
Web server
11.6 User-defined Web pages
637

Advertisement

Table of Contents
loading

Table of Contents