hit counter script

Importing Fragments - Siemens SIMATIC S7-1200 System Manual

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

Advertisement

Parameters
<Name>
<Type>
<id>
<Mode>
Manual fragments
If you create a manual fragment for a user-defined Web page or portion of a page, then your
STEP 7 program must control when the fragment is sent. The STEP 7 program must set
appropriate parameters in the control DB for a user-defined page under manual control and
then call the WWW instruction with the control DB as modified. For understanding the
structure of the control DB and how to manipulate individual pages and fragments, see the
topic Advanced user-defined Web page control (Page 1078).
12.7.2.9

Importing fragments

You can create a named fragment from a portion of your HTML code and then import that
fragment elsewhere in your set of user-defined Web pages. For example, consider a set of
user-defined Web pages that has a start page and then several other HTML pages
accessible from links on the start page. Suppose each of the separate pages is to display the
company logo on the page. You could implement this by creating a fragment (Page 1052)
that loads the image of the company logo. Each individual HTML page could then import this
fragment to display the company logo. You use the AWP Import_Fragment command for this
purpose. The HTML code for the fragment only exists in one fragment, but you can import
this fragment DB as many times as necessary in as many Web pages as you choose.
Syntax
<!-- AWP_Import_Fragment Name='<Name>' -->
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK
Text string: name of fragment DB
Fragment names must begin with a letter or underscore and be comprised of let-
ters, 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 accord-
ingly. 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 serv-
er 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
12.7 User-defined Web pages
1053

Advertisement

Table of Contents
loading

Table of Contents

Save PDF