Functions for Security

Type

Format

Description

Function

GetSecurity()

Returns the current security level.

Subroutine

LogOn(“UserID”,”Password”)

Logs on with the user information.

Subroutine

LogOnWin()

Brings up the User Log On window.

Subroutine

LogOff()

Logs out the current user.

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 user information.

Subroutine

LogOn(“UserID”,”Password”)

Description

Logs on with the user ID and password that is registered to ‘Security’. If the wrong information is used, one of the messages shown below will pop up.

Example

Logs on with the user ID “CIMON”, password “0000”.
LogOn(“CIMON”,”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 from the dropdown menu, or type in the user ID, then enter the password. If you enter a wrong password, the message will pop up as shown below.

You can change the password by pressing the ‘Password’ button on the Log On window. Once pressed, a message box will pop up asking if you want to change the password.

Press the ‘Yes’ button to go 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();