Awp Commands - Siemens SIMATIC S7-1500 Function Manual

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

Advertisement

Web pages
3.16 User pages
3.16.1

AWP commands

Overview
Automation Web Programming (AWP) commands are a special command syntax for
exchanging data between the CPU and the user page (HTML file).
AWP commands are entered as HTML comments and offer you the following options for
your user-defined pages:
● Reading PLC tags
● Writing PLC tags
● Reading special tags
● Writing special tags
● Defining enum types
● Assigning enum types to tags
● Defining data block fragments
● Importing data block fragments
● Accessing the values of an array
● Accessing the values of a PLC tag of the data type STRUCT
General syntax
All AWP commands, except for the command for reading a PLC tag, have this structure:
<!-- AWP_< command name and parameter> -->
Files including AWP commands:
● must be UTF-8 encoded.
To define UTF-8 as the character set of the page, include the following line in your HTML
code:
<meta http-equiv="content-type" content="text/html; charset utf-8">
Note
Saving the HTML page
Make sure that you save the file in the editor in UTF 8 character encoding as well.
● may not include the following sequence: ]]>
● may not include the following sequence outside "read tag areas" (:="<Varname>":):
● depending on the use, must identify special characters in tag names or data block names
with character escape sequences or quotation marks
● are case-sensitive
● should be additionally enclosed by JavaScript comments ("/*...*/") in JavaScript files
124
Function Manual, 11/2019, A5E03484625-AG
Web server

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic et 200proSimatic et 200sp

Table of Contents