If you have a "Reset" button that should only be pressed by an Engineer:
Pressing a "Logout" button (calling !LogOff( )) immediately reverts the HMI to Level 0. This is critical for safety when an operator walks away from a running machine.
MCGS usually pre-defines groups to categorize users: mcgs hmi password work
You can create a password popup:
Example script (button click):
IF Pwd_Input = Sys_Pwd THEN
!SetDevice(DeviceName, Cmd, Value) ' unlock function
Pwd_Input = 0
ELSE
MessageBox("Wrong password")
ENDIF
Store passwords in internal variables or user database.
Even experienced engineers get stuck. Based on real support forums, these are the top reasons MCGS HMI password work fails: If you have a "Reset" button that should
A hardcoded Master_PW = 1234 is erased when you recompile the project. How do you make password changes permanent? Here is how MCGS HMI password work with data persistence:
| Level | Role | Password | Access Scope |
| :--- | :--- | :--- | :--- |
| 0 | Visitor | (none) | View only |
| 3 | Technician | 3690 | Start/Stop + Reset alarms |
| 6 | Engineer | 5821 | + Modify setpoints |
| 9 | Admin | custom | + Calibration + Screen edit | You can create a password popup: