- HMI Model: cMT3162X
- EasyBuilder Pro Version: V6.09.02.510 Build 2024.12.10
- Serial Number or supplier: Colterlec (Australia)
- I am wanting to password protect a change screen button. Help please I have not been able to find out how. I do not want to have to login to the screen - just enter a password when the button is pressed to go to the protected page.
Hi @BobBishop,
Thank you for contributing to our forum! To accomplish this you may do the following:
-
Create a new window for password entry:
-
Reduce the window’s width and height so that it can serve as a popup:
-
Place a numeric object on this screen that reads and writes to LW memory:
-
Within the “Object” tab, create a new “Action Trigger (Per-page)” object:
-
Setup this object to check if the value entered in LW-0 is greater than 0:
-
Set the first action as a “Wait until” to check if the entered value is equivalent to the desired password:
Note: “Stop running next action group” is enabled to prevent the activity if the user password is incorrect.
-
Set the second action as “Change window” to change the display to the desired window:
-
Click “Ok” and place this object on the password window:
-
Add a “Function key” to the primary window that will display the “Password” window as a popup:
-
Test the application when finished.
Thank you - will give it a go.
The password window does not bring up the system keyboard to enter the password. Also where do I store the password for the comparison to take place please?
Any answers please?
Hi @BobBishop,
The password is stored within the Wait Until action in the Action Trigger (step 6).
The system keypad will not automatically appear when the password window pops up. You must interact with the numeric object to make the keypad appear. If you are interacting with the numeric object and not seeing a keypad, you must select a keypad for use within the numeric object’s Data Entry tab.
Also, Allow input needs to be selected within the General tab.
Thank you. I have done all that. I have been running offline simulation and when I touch the password screen with the mouse the system keypad Does not pop up. Perhaps this does not work with offline simulation?
Hi @BobBishop,
The system keypad does not work in simulation, this is a special keypad that ‘pop’s up’ on HMIs during runtime, as they don’t have a physical keypad like a PC.
With that said, during simulation you can just use your PC’s numeric keypad.
Thank you - thought that may be the case. Also going to the page does not work in offline simulation because the software is not communicating with the screen and cannot read LW0 I believe.
Hi @BobBishop,
The simulator within EasyBuilder Pro does not communicate with the HMI, it essentially emulates LW memory. Please check out the EBPro Basic Programming Tutorial. It is packed full of useful information.