Siemens SIMATIC S7-1500 Function Manual page 131

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

Advertisement

Web pages
3.16 User pages
Writing special tags
The web server allows you to write values of special tags written in the HTTP header to the
CPU. In STEP 7, for example, you can store information on the cookie of a user page or on
the user who accesses a page.
Syntax
<!-- AWP_In_Variable Name='<Type>:<Name>' Use='Varname' -->
<Type> corresponds to the type of the special tag.
Options are:
● HEADER
● SERVER
● COOKIE_VALUE
<Name> corresponds to the name of the HEADER tag or the cookie:
● HEADER tags:
– Accept-Language: Accepted or preferred language
– User-Agent: Browser information
– Authorization: Credentials for a requested resource
● SERVER tags:
– current_user_id: Indicates whether a user is logged in:
– current_user_name: User name of the logged-on user
● COOKIE_VALUE:name: Value of the named cookies.
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_User ID":
<!-- AWP_In_Variable Name='"SERVER:current_user_id"' Use='"My_User-
ID"' -->
130
current_user_id=0: No user is logged on / user "Everybody" has access.
current_user_id=1: At least one user is logged on.
Function Manual, 11/2019, A5E03484625-AG
Web server

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic et 200proSimatic et 200sp

Table of Contents