Hi
i try to implement a simple application , i do not want to use login/password management
i want to protect access to my maintenance window by a simple numeric password,
how to create that dialog ?i try with a visualisation form with a textfield and some button to do my keyboard, without sucess.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Control visibility of display elements, including a button to go to your maintenance window. Check to see if the entered numeric password is the same as the stored or hardcoded variable. If it is the same make the elements visible. After the variable that controls visibility changes start a timer that will use a MOV command to change the entered numerical password to something incorrect. Possibly make a button to restart that timer. A logout button would do the same MOV command.
I do know some of the login and password management dialogs are difficult on some PLC's like Eaton's XV100. Are you wanting to do this for a similar reason?
Last edit: Morberis 2021-01-18
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
? You mean you'll be on a PC accessing the PLC through a webvisu?
If you're accessing the PLC through the IDE on a PC you can make a Visu page that can only be accessed from the IDE because it lacks any way to navigate to. It's not particularly secure though and I'm sure could be navigated to if someone was really trying.
Edit: The request would be a pseudo login button that has in its input configuration using the 'OnMouseClick' or 'OnMouseDown' set to write a variable using the VisuDialogs.Numpad as the input type and 'User another variable' filled in. Below is a picture. You could also have a hidden button that does the same thing, though then someone might accidently push it. The work around would be to require multiple hidden buttons be pushed either at the same time or sequentially.
i try to use user embedded user management
when i press my button i open the login dialog with a predefined user
how to switch to my maintenance page only if login suceed ?
the codesys user management manage acces to object, does it manage access to visualisation page ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
On the Visu side you would write the name of the visualization you want to switch to to variable VisuElems.CurrentVisu
Alternatively what you can do is make a button appear that will take you to the maintenance visualization. You would do that by selecting the element, browsing to the bottom of the Properties window and using the 'Access Rights' button. There you can make an element non-interactable or invisible if the correct user is not logged in.
π
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
i try to implement a simple application , i do not want to use login/password management
i want to protect access to my maintenance window by a simple numeric password,
how to create that dialog ?i try with a visualisation form with a textfield and some button to do my keyboard, without sucess.
Control visibility of display elements, including a button to go to your maintenance window. Check to see if the entered numeric password is the same as the stored or hardcoded variable. If it is the same make the elements visible. After the variable that controls visibility changes start a timer that will use a MOV command to change the entered numerical password to something incorrect. Possibly make a button to restart that timer. A logout button would do the same MOV command.
I do know some of the login and password management dialogs are difficult on some PLC's like Eaton's XV100. Are you wanting to do this for a similar reason?
Last edit: Morberis 2021-01-18
in fact i do not know how to make the request to ask to input the code,
i will be on a PC
? You mean you'll be on a PC accessing the PLC through a webvisu?
If you're accessing the PLC through the IDE on a PC you can make a Visu page that can only be accessed from the IDE because it lacks any way to navigate to. It's not particularly secure though and I'm sure could be navigated to if someone was really trying.
Edit: The request would be a pseudo login button that has in its input configuration using the 'OnMouseClick' or 'OnMouseDown' set to write a variable using the VisuDialogs.Numpad as the input type and 'User another variable' filled in. Below is a picture. You could also have a hidden button that does the same thing, though then someone might accidently push it. The work around would be to require multiple hidden buttons be pushed either at the same time or sequentially.
Last edit: Morberis 2021-01-18
ok i will try that when i will resolve my librarie issue thanks
My PLC will be on a PC and i will use the web brother to access HMI
i try to use user embedded user management
when i press my button i open the login dialog with a predefined user
how to switch to my maintenance page only if login suceed ?
the codesys user management manage acces to object, does it manage access to visualisation page ?
I don't have an answer for you on the user management side. You can check the library documentation here, possibly ERR_VUM_NO_USER_LOGGED_IN from that link would work but I don't know.
On the Visu side you would write the name of the visualization you want to switch to to variable VisuElems.CurrentVisu
Alternatively what you can do is make a button appear that will take you to the maintenance visualization. You would do that by selecting the element, browsing to the bottom of the Properties window and using the 'Access Rights' button. There you can make an element non-interactable or invisible if the correct user is not logged in.