Establishing Intouch Security Wonderware intouch
In this, you will learn to establish security in the application by creating specific user accounts and applying security scripting to them.
Establishing Security Wonderware intouch :- https://youtu.be/GB3p2DjusYI
Upon completion of this Post, you should be able to:
- Create New User Accounts
- Create Logon Method
- Create Security Scripts
- Configure Window Navigation
- Test Security
Create New User Accounts
To implement security to our application, you first need to set the security type for the application.
If not done in the previous section, select Special / Security / Select Security Type from the main WindowMaker menu and select InTouch. Log on as Administrator with password wonderware. Next, create three new user accounts.
Click the Special / Security / Configure Users command to display the Configure Users dialog box.
Enter the following users and account information.
User Name Password Access Level
WW WW 9999
Operator HMI 8000
Day Shift 4000
Click Add after each entry and then OK. The following figure shows the completed Configure Users dialog box:
Click OK.
Create Logon Method
Import the Menu and Security windows from the wwimport directory used for previous imports (File / Import). Open the Security window. The window contains the following graphical elements:
Attach a Touch Link – Touch Pushbuttons – Action script to the button labeled Logon. The script function PostLogonDialog( ) prompts the user to log into the application and returns a result as an DISCRETEvalue. As you do not need to store the returned value for this exercise, you will use a local tag LogonResult for this valu
Enter the script shown in the following graphic:
Validate the script and click OK.
Click OK to exit the Animation Links Selection dialog box.
Configure the Operator Display Object
Assign a Value Display – String to the $Operator display object.
Enter $Operator in the Expression field.
Click OK.
Configure the # Display Object
Assign a Value Display – Analog link to the value display object. Enter $AccessLevel in the Expression: field. Click OK.
Configure the Click to Continue button Assign a Miscellaneous – Visibility link to the button labeled Approved – Click to Continue. This button will only be visible when a successful log in to the system has been completed.
Enter an Expression: based on $AccessLevel.
Click the lower OK button. Configure a Touch Link – Touch Pushbutton – Show Window animation link to show the windows Menu and Links.
Configure the Cancel Button
The Cancel button will be used to cancel the log on process, but will only be visible when no one is logged into the system, or ultimately, when this window is first opened. Configure a Miscellaneous – Visibility link for the Cancel button. Enter the expression shown in the following figure.
Click the lower OK button. Configure the following Touch Link – Touch Pushbuttons – Action script to cause the window to close.
Validate and click OK, then OK again to exit the Animation Links Selection dialog box.
Create Home Window
Create a new window called Home and assign it the following properties:
Note: The previous example uses the Windows 2003 Operating System with XP Themes turned on and with a screen resolution of 1024 x 768. Values will differ depending on the Operating System and resolution used. Try Y Location at -38 for Windows NT look-and-feel.
Place a bitmap object on the window and stretch it to cover the entire window. Right click on the bitmap object and select Import Image. Select the wwb1.jpg file from the c:wwimport directory.
Click Open to import the image into the bitmap object.
Resize the image to fill the entire Home window, if necessary. .
The Home window should now appear similar to the following figure:
Draw a rectangle object over the front door of the building image.
Double-click the rectangle object.
Attach the following Touch Pushbuttons – Show Window to the rectangle object:
Send the rectangle to the back.
Save and close the Home window.
Configure Window Navigation
Open the Menu window.
Convert the contents of the Menu window (F2, Special / Substitute Tags / Convert / Local). Hint: Ensure the Menu window is active prior to clicking F2 by clicking once in a blank area of the window, for example in the black area of the Disk Space Free text. Next you need to link the buttons on the Menu, Historical Trend and Real-Time Trend windows to their respective windows and configure scripting.
Configure the Animation Links according to the following table.
Button | Link Type | Window | Expression | Script |
Home | Touch Pushbuttons – | DIM LogOffResult as | ||
Action | DISCRETE; | |||
(On Left Click/KeyDown) | LogOffResult=LogOff(); | |||
Show “Home”; | ||||
Links | Touch Pushbuttons – Show | Links | ||
Window | ||||
Alarms | Miscellaneous / Disable | $AccessLevel < 5000 | ||
Disabled State = On | ||||
Touch Pushbuttons – Show | Alarms | |||
Window | ||||
Trends | Touch Pushbuttons – Show | Historical | ||
Window | Trend | |||
Visibility | $AccessLevel < 5000 | |||
Visible State = Off | ||||
Hopper | Touch Pushbutton – Show | Hopper | ||
Window | ||||
Main | Touch Pushbutton – Show | Main | ||
Window |
Save the Menu window. Change the Menu window’s Y Location to -48 in the Window Properties dialog box. This will place the Menu window over the WindowViewer program menu bars.
Note: The previous example uses the Windows 2003 Operating System with XP Themes turned on and with a screen resolution of 1024 x 768. Values will differ depending on the Operating System and resolution used. Try Y Location at -38for Windows NT look-and-feel.
Open the Historical Trend window.
Create a Real-Time Trend button (if necessary) and link it to the Real-Time Trend window using the Touch Pushbutton – Show Window link. A suggested button position is shown in the following figure.
Save and close the window.
Open the Real-Time Trend window and add a button labeled Historical Trend. Configure a Show Window link to the Historical Trend window.
Save and close the Real-Time Trend window.
Select Special / Configure / WindowViewer. Select the Home Windows tab and check Home.
Click OK.
Close WindowMaker.
Start WindowViewer. The Home window should appear.
Begin by clicking on the door of the graphic image.
The Logon screen appears.
Click Logon.
Login as User: ww, password ww.
After logging in, the main screen should present your login name and access level.
57. Click the Approved – Click to continue button.
The Links window should appear for all logins.
Login as each user you created.
User Name Password Access Level
WW WW 9999
Operator HMI 8000
Day Shift 4000
• The ww user name login should have access to all windows.
• The Operator has access to the same windows.
• The Day login has access to only the Links, Hopper, and Main windows. The Alarms link/button is disabled and the Trend link is invisible.
Also Read:-