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.
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 9: Within the βAddressβ drop-down list, select the βUser-defined tagβ tab and click βUAC user nameβ.
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 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 12: Back under the Triggered actions, within βAction Group 2β, set a delay of 250ms.
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 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.
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.
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 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.
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.Β
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.