How to Setup Password Only Login on a cMT X Series HMI

Protect HMI UI controls with password security on Weintek HMIs. Simplify access control while maintaining security.
How to Setup Password Only Login on a cMT X Series HMI
Share this article

When Should You Simplify the Login Process?

The default login method on cMT X Series HMIs requires operators to enter both a username and a password, following standard User Account Control (UAC) practices to enhance system security. However, in some cases, a password-only login method may be sufficient:Β 

  • Legacy equipment replacement: When upgrading older systems, an HMI programmer may wish to replicate existing functionality to ensure a seamless transition for operators.Β 
  • Single operator account: If the HMI uses a single β€œoperator” account selected from a drop-down list, requiring the user to enter or select a username provides little added value.Β 
  • Customer requirement: The customer explicitly requests password-only login.

Limitations of Password Only Login

The main trade-off with a password-only login is security. Because a username is not required, the operator only needs to provide a single identifier. While many systems use password-only authentication, this approach can be risky when applied to critical machinery or infrastructure. Whenever possible, it’s recommended to implement Multi-Factor Authentication (MFA) to better protect the system from unauthorized access.Β 

Another consideration is complexity. Since password-only login is not a built-in feature, it must be implemented through custom steps and programming practices. These should be well documented and clearly understood to ensure that future updates or maintenance does not disrupt the login process.

Password Only Login on Weintek HMIs

Create Users

Step 1: Within the β€œHome” tab select β€œSystem Parameters.” Then select the β€œSecurity” tab and add usernames and passwords. The β€œClass” will later determine what objects a user can access, the class settings may be specified next to the user account. Click β€œOk” when finished.

Step 1_SetupPasswordLoginWeintekHMI

User Login

Step 2: Double-click the β€œCommon Window” within the Windows Tree.

Step 3: Within the β€œObject” tab, select the β€œAction Trigger (Per-page)” object.

Step 4: We will use β€œAction Trigger (Per-page)” objects to validate user β€œpasswords”. Within the β€œNew Action Trigger (Per-page)” object, select β€œValue changed” from the β€œMode” drop-down list.

Step 5: Within the β€œAddress” drop-down list select PLW.

Step 6: Specify an unused register and select the β€œadd tag” button on the right-hand side. Enter the desired tag name and click β€œOk” to create this tag.

Note: Later, we will use this address to enter user passwords.

Step 7: Use the β€œCondition” to define the password of the first user added in step 1.

Step 8: Under Triggered actions, we will use a β€œSet Word” action to enter both the username and password to login. Select β€œWrite constant string” within the β€œStyle” drop-down list and enter the username that corresponds with the password defined within the β€œCondition”.

Step 8_SetupPasswordLoginWeintekHMI

Step 9: Within the β€œAddress” drop-down list, select the β€œUser-defined tag” tab and click β€œUAC user name”.

Step 9_SetupPasswordLoginWeintekHMI

Step 10: Select the β€œSettings” button to specify the character count. The β€œNo. of word” for β€œUAC user name” and β€œUAC password” must be set to β€˜8’ which allows a maximum of 16 characters to be set. Click β€œOk” when finished.

Note: If the β€œNo. of word” is not set to 8, the login may be unsuccessful or behave unexpectedly.

Step 10_SetupPasswordLoginWeintekHMI

Step 11: Repeat steps 8-10 to set the β€œUAC password” with the password defined in step 1:

Note: The β€œSet Word” in this example should appear as below.

Step 11_SetupPasswordLoginWeintekHMI

Step 12: Back under the Triggered actions, within β€œAction Group 2”, set a delay of 250ms.

Step 12_SetupPasswordLoginWeintekHMI

Step 13: Within β€œAction Group 3” create a β€œSet Word” object to set the β€œlogin” command. Select β€œWrite constant value” within the β€œStyle” drop-down list and set a value of β€˜1’. Within the β€œAddress” drop-down list, select the β€œUser-defined tag” tab and click β€œUAC command”.

Note: A command value of β€˜1’ will request login, whereas a command value of β€˜3’ will request logout.

Step 14: Click β€œOk” when finished and place this object on the β€œcommon window”. Copy this object and modify each parameter for each additional user.

Note: I’ve defined 3 users in step 2 and have created 3 “Action Trigger (Per-page)” objects to login each user.

User Logout

Step 15: Within the β€œObject” tab, create a β€œCombo Button”. Within β€œAction Group 1” create a β€œSet Word” action.

Step 15_SetupPasswordLoginWeintekHMI

Step 16: Select β€œWrite constant value” within the β€œStyle” drop-down list and set a value of β€˜0’. Within the β€œAddress” drop-down list, select the β€œUser-defined tag” tab and click β€œUser password”.

Step 17: Within β€œAction Group 2” set a delay of 250ms. Within β€œAction Group 3” create a β€œSet Word” action. Set a value of β€˜3’ within the β€œUAC command” tag to logout the current user. Click β€œOk” and place this object.

Step 17_SetupPasswordLoginWeintekHMI

Protect Objects

Step 18: To secure an object, right-click an object or group of objects and select β€œSecurity settings”.

Step 19: Select the β€œObject class” drop-down list and choose the desired security clearance and define the object’s secured behavior.

Step 19_SetupPasswordLoginWeintekHMI

Password Entry

Step 20: To create a password entry object, select the β€œObject” tab and click β€œNumeric”.Ensure that the β€œRead/Write” address is set to the β€œUser password” tag defined in step 5 of the β€œUser login” section.

Step 20_SetupPasswordLoginWeintekHMI

Step 21: If the password is longer than 4 digits, increase the number of allowed digits within the β€œFormat” tab. Click β€œOk” to place this object.

Step 21_SetupPasswordLoginWeintekHMI

For more detailed instructions, please refer to the Weintek Forum!

Best Practices for HMI Password Protection

As a best practice, it is recommended to implement the default login system provided by β€œEnhanced security”. In addition, it is recommended to use strong passwords consisting of:Β 

  • Use at least 8 characters.Β 
  • Include a mix of uppercase, lowercase, numeric, and special characters.
  • Avoid dictionary words, repeating characters, or adjacent key patterns.Β 
To protect project files from unauthorized access or de-compilation, change the default Admin and Update passwords. You may also set a project password to encrypt the application, define a custom de-compilation password, or disable upload and de-compilation entirely.

Key Takeaways:

  • Supporting multiple protocols is essential for meeting strict application needs.
  • The protocol chosen should always reflect the structure, processing speed, and feature requirements of the application.