Siemens SIMATIC S7-1500 Function Manual page 51

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

Advertisement

Writing special tags
The Web server gives you the option to write values of special tags written in the HTTP
header in the CPU. You can, for example, save information on the cookie of a user page or
on the user that accesses a site in STEP 7.
Syntax
<!-- AWP_In_Variable Name='<Type>:<Name>' Use='Varname' -->
<Type> corresponds to the type of special tag.
Options are:
● HEADER
● SERVER
● COOKIE_VALUE
<Name> corresponds to the name of the HEADER tag or the cookie:
● HEADER tags:
● SERVER tags:
● COOKIE_VALUE:name: value of the named cookie.
Examples
The HTTP-SERVER tag is written to the PLC tag of the same name:
<!--AWP_In_Variable Name='"SERVER:current_user_id"' -->
The HTTP-SERVER tag is written to the PLC tag "My_userID":
<!--AWP_In_Variable Name='"SERVER:current_user_id"'
Use='"My_userID"'-->
Web server
Function Manual, 01/2013, A5E03484625-01
– Accept-Language: accepted or preferred language
– User-Agent: information on the browser
– Authorization: credentials for a requested resource
– current_user_id: shows if a user is logged on (current_user_id=0: no user logged on)
– current_user_name: user name of the logged-on user
Websites
3.8 User pages
51

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents