Web server
11.6 User-defined Web pages
S7-1200 Programmable controller
640 System Manual, 03/2014, A5E02486680-AG
Data_block_1 ABC:DEF
<!-- AWP_Out_Variable Name='special_tag'
Use='"Data_block_1".ABC\:DEF'-->
DB:DB Tag:Tag
<!--AWP_Out_Variable Name='my_tag' Use
='"DB:DB".Tag\:Tag' -->
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
marks. If the enclosed name is a PLC tag or Data block name, use single quotation
marks for the full clause.
● Within a Name or Use clause, data block names and PLC tag names must be enclosed
within double quotation marks.
● If a tag name or Data block name includes a single quote character or backslash, escape
that character with a backslash. The backslash is the escape character in the AWP
command compiler.
Table 11- 2 Examples of Name clauses
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'
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.