Password integration

This forum contains common answers to questions and tutorials produced for the community.
ECS-SA
Posts: 48
Joined: Thu Feb 17, 2011 7:19 am

Password integration

Post by ECS-SA » Mon Feb 28, 2011 4:31 am

Hi all
Is there a way that we can program the pv750 or 450 so that if a shutdown fault has accoured that a password page comes up and before you can restart the machine you first have to enter a password can some one please assist me with this
rschrock
Enovation Controls Development
Enovation Controls Development
Posts: 6
Joined: Wed Sep 08, 2010 10:37 am

Re: Password integration

Post by rschrock » Tue Mar 01, 2011 8:44 am

To create a password protect screen, there is already a post on this forum which would be used to create the enter password screen(Just search for password protect on the forum to find this post). Then all you would have to do is create another variable to show this page when a shutdown message is received. To do this, create a state machine that will change this new variable from a 0 to a 1 when the UserDefinedVariable.Dm1.LampStatus equlas 2 (which means the unit received a shutdown message). Also be sure to set this variable to a saved value, and save this variable on change so that when the unit starts back up the password screen will show. Then change the script GaugeScreenInit Line 127 to an if statement for when your user defined variable is equal to 1 to go to your password screen, else go to current screen. Be sure to change this new variable back to 0 when a correct password has been enabled.
ksaenz
Enovation Controls Development
Enovation Controls Development
Posts: 263
Joined: Thu Aug 19, 2010 7:53 am

Re: Password integration

Post by ksaenz » Mon Mar 07, 2011 4:44 pm

Marcell,

Here is a demo based on the standard configuration that lets you save a log file to a flash drive and requires a password when you restart after a shutdown.

The changes are:

New Variables:
  • UserDefinedVariable.Datalogger.Status
    UserDefinedVariable.Password
    UserDefinedVariable.Password1000sDigit
    UserDefinedVariable.Password100sDigit
    UserDefinedVariable.Password10sDigit
    UserDefinedVariable.Password1sDigit
    UserDefinedVariable.PasswordRequired
New Images:
  • Flashdrive0
    Flashdrive1
    Flashdrive2
    Flashdrive3
    Start
New Pages:
  • Data Logging
    Password
New Script: New State Machines:
  • Data Logging Stop
    Data Logging Clear
    Data Logging Output
    Data Logging Start
    GoToDataLogging
    GotoPasswordScreen
    Password
    PasswordRequired
Modified Page:
  • Default Utilities Menu View
    • Added button to go to Data Logging
Modified Script:
  • GaugeScreenInit
    • Added variable:

      Code: Select all

      double PasswordRequired;
      Added code at the end:

      Code: Select all

      	smRead(smGetHandle("UserDefinedVariable.PasswordRequired"), PasswordRequired);	
      	if( PasswordRequired == 0 )
      	{
      		GaugeScreenGoToCurrent();
      	}
      	else
      	{
      		sendEvent(EventID("Transition to show password screen"));
      	}
Attachments
Log and Password.zip
(8.33 MiB) Downloaded 56 times