You would like to ensure minimum availability of your operator control and monitoring system after powering up and during operation, without having to use the login box. However, you would also like to retain the login function for higher-order operations. In addition, when an operator, such as the administrator, logs out, a default user is to be logged in automatically and the default user's rights are to be assigned in the User Administrator in accordance with your wishes.
In the WinCC OS project editor, select the Message View tab and in the Message Filter make sure that the default setting "Messages with area-enabling" is selected. In this way, the default user can acknowledge the messages on the message pages if that user or the group that user is member of has the "Enable for area" authorization in the WinCC User Administrator. If the messages are not supposed to be acknowledged by the default user, in the WinCC OS project editor, you must select the setting "Acknowledgeable messages in a separate list" for the Message Filter in the Message View tab. More information is available in the WinCC Online Help under "Options > Options for Process Control > OS Project Editor > Message View tab > Message Filter".
In WinCC V6.0, the message filter settings are in the "Runtime Window" tab of the OS project editor and in the corresponding place in the WinCC Online Help.
The setting is also valid for the "Default User" in SIMATIC Logon.
You can implement this function with the enclosed C-script, which involves the following steps:
- Open your project in the WinCC Explorer.
- Start the C editor of WinCC and go to the directory "Actions > Global Actions".
- Use the "Create new action" button to create a new action in which you enter the following script.
SilentLogin.pdf ( 10 KB )
- In the line "PWRTSilentLogin ("Login","Password");" you replace the user data with that of your default user.
- Compile and save the C script as "SilentLogin.pas".
- Set a variable trigger in the script editor to the variable @CurrentUser. Select a cycle of "2 s", for instance. This serves to ensure that the script does not burden the system. In the example shown, the @CurrentUser variable is checked for a change every 2 seconds (it indicates which user is currently logged in). The script is only called if the user has changed, e.g. when the previous user logs out.
- Make sure that you have enabled the "Global Script Runtime" in the "Startup" tab in the computer properties.
The following steps are necessary for SIMATIC PCS 7 users (from SIMATIC PCS 7 V6.0 SP1):
- Copy the system picture @Welcome.pdl to a safe location in order to restore the original picture.
- Open the picture @Welcome.pdl using the Graphics Designer.
- Open the C script which is saved in the picture selection ("right click > Properties" and then "Event > Picture object > Other > Picture selection").
- Comment out the line "PASSLoginDialog(Screen);" with the prefix //.
- Compile the C script.
- Save the system picture @Welcome.pdl.
When you run the OS project editor again, ensure that the system picture @Welcome.pdl is not copied from the basic data. For this, the @Welcome.pdl must not be marked in the tab "Basic data > Basic pictures in the object differ from the as-supplied state > Apply as-supply state". If you update to a new version, you must apply the new @Welcome.pdl and integrate the changes made above into the new @Welcome.pdl.
If you are using SIMATIC LOGON from version 1.2, you will not need the "Silentlogin" function because, from this version onwards, SIMATIC LOGON contains its own convenient function for automatic login during WinCC runtime. If you use the "Silentlogin" function and wish to switch to SIMATIC LOGON, please undo the steps listed above.
Procedure in SIMATIC LOGON from version 1.2:
- Set up a "Default User" group in your project in the user administration area in WinCC Explorer and perform the appropriate authorization level settings in the group. The only user in this "Default User" group is created automatically and saved in the registry. Parameters may not be assigned to this user.
- Go to the "General" tab in the SIMATIC LOGON configuration window and select the function "'Default User' is logged on after user logs off". Click "OK" to close the dialog (Fig. 1).
Fig. 1: Configuration dialog of SIMATIC LOGON V1.2. Dialogs from other versions might be slightly different to this figure.
With these settings, the "Default User" is automatically logged on when WinCC runtime is started and when other users log off.
Silent Login, Auto logon