104BWeb server
11.3 User-defined web pages
Data block name
Data_block_1
DB A' B C D$ E
DB:DB
Name and Use clauses
The AWP commands AWP_In_Variable, AWP_Out_Variable, AWP_Enum_Def,
AWP_Enum_Ref, AWP_Start_Fragment and AWP_Import_Fragment have Name clauses.
HTML form commands such as <input> and <select> also have name clauses.
AWP_In_Variable and AWP_Out_Variable can additionally have Use clauses. Regardless of
the command, the syntax for Name and Use clauses regarding the handling of special
characters is the same:
● The text you provide for a Name or Use clause must be enclosed within single quotation
● Within a Name or Use clause, data block names and PLC tag names must be enclosed
● If a tag name or Data block name includes a single quote character or backslash, escape
Table 11- 2
Data block name
n/a
n/a
Data_block_1
Data_block_1
Data_block_1
DB A' B C D$ E
Use clauses follow the same conventions as Name clauses.
Note
Regardless of what characters you use in your HTML page, set the charset of the HTML
page to UTF-8 and save it from the editor with UTF-8 character encoding.
506
Tag name
ABC:DEF
Tag
Tag:Tag
marks. If the enclosed name is a PLC tag or Data block name, use single quotation
marks for the full clause.
within double quotation marks.
that character with a backslash. The backslash is the escape character in the AWP
command compiler.
Examples of Name clauses
Tag name
ABC'DEF
A \B 'C :D
Tag_1
ABC'DEF
A \B 'C :D
Tag
Read command
<!-- AWP_Out_Variable Name='special_tag'
Use='"Data_block_1".ABC\:DEF'-->
:=special_tag:
:="DB A' B C D$ E".Tag:
<!--AWP_Out_Variable Name='my_tag' Use
='"DB:DB".Tag\:Tag' -->
:=my_tag:
Name clause options
Name='"ABC\'DEF"'
Name='"A \\B \'C :D"'
Name='"Data_block_1".Tag_1'
Name='"Data_block_1".ABC\'DEF'
Name='"Data_block_1".A \\B \'C :D'
Name='"DB A\' B C D$ E".Tag'
System Manual, 11/2011, A5E02486680-05
S7-1200 Programmable controller