104BWeb server
11.3 User-defined web pages
S7-1200 Programmable controller
506
System Manual, 11/2011, A5E02486680-05
Data block name
Tag name
Read command
Data_block_1
ABC:DEF
<!-- AWP_Out_Variable Name='special_tag'
Use='"Data_block_1".ABC\:DEF'-->
:=special_tag:
DB A' B C D$ E
Tag
:="DB A' B C D$ E".Tag:
DB:DB
Tag:Tag
<!--AWP_Out_Variable Name='my_tag' Use
='"DB:DB".Tag\:Tag' -->
:=my_tag:
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
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
Data block name
Tag name
Name clause options
n/a
ABC'DEF
Name='"ABC\'DEF"'
n/a
A \B 'C :D
Name='"A \\B \'C :D"'
Data_block_1
Tag_1
Name='"Data_block_1".Tag_1'
Data_block_1
ABC'DEF
Name='"Data_block_1".ABC\'DEF'
Data_block_1
A \B 'C :D
Name='"Data_block_1".A \\B \'C :D'
DB A' B C D$ E
Tag
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.