Instructions: You can use the internal WinCC tags "@CurrentUser" and "@CurrentUserName" to have the user currently logged on displayed in a process picture at Runtime.
"@CurrentUser"
The internal WinCC tag "@CurrentUser" contains the logon name of the user currently logged on. This is the name that the user uses to log on. Here it doesn't matter whether or not the WinCC option SIMATIC Logon is used.
"@CurrentUserName" The internal WinCC tag "@CurrentUserName" contains the complete name of the user currently logged on. The complete user name is specified in the Windows user administration.
Notes:
- The internal WinCC tag "@CurrentUserName" is only supplied with a value when the WinCC option SIMATIC Logon is used for logon. However, the "@CurrentUserName" tag is also available for dynamization if SIMATIC Logon is not used. But in this case the "@CurrentUserName" is not supplied with a value.
- If SIMATIC Logon is used for logon and the complete user name is not defined in the Windows user administration or contains only empty spaces, then at Runtime the "@CurrentUserName" tag contains the logon name of the user currently logged on.
Using the OS project editor you can define whether the value of the internal tag "@CurrentUser" (current logon name) or "@CurrentUserName" (complete user name) is to be displayed in the overview ("@Overview1.pdl"). This setting in the OS project editor is in the "Layout" tab, in the "Display" area. More information on this topic is available in the WinCC Information System under "Working with WinCC > Structure of the User Administration > WinCC Options for Administrators > Option SIMATIC Logon > How to use the SIMATIC Logon Service with WinCC".
If you use the "@CurrentUserName" tag (complete user name) for displaying the user name in the process picture, but do not use SIMATIC Logon, the "@CurrentUserName" tag is not supplied with the name of the current user. Then an empty character string is display as the user name at Runtime. Please not that display of the complete user name can only be used in combination with SIMATIC Logon.
|