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

Advertisement

Web server
11.6 User-defined Web pages
General syntax
Except for the command to read a variable, the AWP commands are of the following syntax:
<!-- AWP_ <command name and parameters> -->
You use the AWP commands in conjunction with typical HTML form commands to write to
variables in the CPU.
The descriptions of the AWP commands in the following pages use the following
conventions:
● Items enclosed in brackets [ ] are optional.
● Items enclosed in angle brackets < > are parameter values to be specified.
● Quotation marks are a literal part of the command. They must be present as indicated.
● Special characters in tag or data block names, depending on usage, must be escaped or
enclosed in quotation marks (Page 639).
Use a text editor or HTML editing mode to insert AWP commands into your pages.
Note
Expected syntax of AWP commands
The space after "
are essential to proper compiling of the command. Omission of the space characters can
cause the compiler to be unable to generate the proper code. The compiler does not display
an error in this case.
AWP command summary
The details for using each AWP command are in the topics to follow, but here is a brief
summary of the commands:
Reading variables
:=<Varname>:
Writing variables
<!-- AWP_In_Variable Name='<Varname1>' [Use='<Varname2>'] ... -->
This AWP command merely declares the variable in the Name clause to be writable. Your
HTML code performs writes to the variable by name from <input>, <select>, or other HTML
statements within an HTML form.
Reading special variables
<!-- AWP_Out_Variable Name='<Type>:<Name>' [Use='<Varname>'] -->
Writing special variables
<!-- AWP_In_Variable Name='<Type>:<Name>' [Use='<Varname>']-->
Defining enum types
<!--
AWP_Enum_Def Name='<Enum type name>' Values='<Value>, <Value>,... '
-->
Referencing enum types
628
" and the space before "
<!--
" in the formulation of an AWP command
-->
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG

Advertisement

Table of Contents
loading

Table of Contents

Save PDF