Fragments - Siemens SIMATIC S7-1500 Function Manual

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

Advertisement

Example for use when writing a tag
<!-- AWP_Enum_Def Name='AlarmEnum' Values='0:"No alarms",
1:"Container is full", 2:"Container is empty"' -->
<!-- AWP_In_Variable_Name='"Alarm"' -->
<!-- AWP_Enum_Ref Name='"Alarm"' Enum="AlarmEnum" -->
...
<form method="post">
<p><input type="hidden" name ='"Alarm"' value='Container is full'
/></p>
<p><input type="submit" value='Set container is full' /></p>
</form>
The value 1 is written to the PLC tag "Alarm" because the definition of the enum type
assigns the numerical value 1 the text "Container is full".
Keep in mind that the name specified in "AWP_In_Variable" must be exactly the same in
"AWP_Enum_Ref".
3.8.1.4

Fragments

Fragments
Fragments are "short paragraphs" of a website that the CPU processes separately.
Fragments are usually entire pages, but they can be individual elements, such as files (e.g.
images) or documents.
Defining fragments
A fragment extends to the beginning of the next fragment or to the end of the file.
Syntax
<!-- AWP_Start_Fragment_Name='<Name>' [Type="<Typ>"] [ID="<Id>"] -->
This command specifies the start of a fragment.
● <Name> Specifies the name of the fragment. The name must start with a letter [a-zA-Z]
● <Type> Specifies the type of the fragment.
Web server
Function Manual, 01/2013, A5E03484625-01
or an underscore ( _ ). This first character can be followed by letters, underscores or
numbers [0-9].
– "manual": The user program is notified of the request for a fragment and can react
accordingly. The function of the fragment must be controlled with STEP 7 and the tags
of the control DB.
– "automatic": The page is automatically processed (default)
Websites
3.8 User pages
53

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents