8.3.1 Functions for Security

GetSecurity

Returns the current security level.

Function

n=GetSecurity()

Description

Returns the current security level and stores the value to the variable.

Example

Stores the current security level to the variable “Slevel”.

Var Slevel;

……

Slevel = GetSecurity();

LogOn

Logs on with the provided user information.

Subroutine

LogOn(“UserID”,”Password”)

Description

Logs on with a user ID and password that are registered with the ‘Security’ feature. If the wrong information is used, one of the following messages will pop up:

Example

Logs on with the user ID “ATIVA”, password “0000”.
LogOn(“ATIVA”,”0000”);

LogOnWin

Brings up the User Log On window.

Subroutine

LogOnWin()

Description

Brings up the User Log On window on Xpanel. If there is no registered user in the project, the window will not appear.

Select a user and enter the password. If you enter the wrong password, a message will pop up as shown below.

You can change the password by pressing the [Password] button on the User Log On window. If you press the button, a message box will pop up asking if you want to change the password.

Press the [Yes] button to continue to the ‘Change password’ dialog box.

P/W: Enter the old password.

New P/W: Enter the new password.

Confirm P/W: Enter the new password again.

You can apply the new password to the ID by pressing the [OK] button.

Example

Brings up the User Log On window.
LogOnWin();

LogOff

Logs out the current user.

Subroutine

LogOff();

Description

Logs out the current user.

Example

Logs out the current user.

LogOff();