Schneider XBTG series man-machine login password production - Database & Sql Blog Articles

Single chip microcomputer STM32L151CCU6
Huaqiang Square Crystal Zhen full range of original stock

1. Create two popup windows, named 1001 and 1002, under the "Popup Windows / Action Confirmation" section as shown in Figures 1 and 2. The password input box consists of a blue rectangle and a password display block. This password display function is located at Toochest/Miscellaneous/PassDisp-0001-01. In the property settings, the variable for the password is set to String01, and the status is set to String02. Digital Camera Figure 2 shows the screen of the 1002 Popup window. Place the login button on the main system login window, as displayed in Figure 3. 3. Define four internal variables: - The "PasswordString" attribute is set to String/Internal with an initial value of "210" to define the password. - The "String01" attribute is set to String/Internal. - The "String02" attribute is also set to String/Internal. - The "Protected" variable is set to Discrete/Internal with an initial value of "off". 4. In the 1001 window, create the following script:
String Original, Edited;
Boolean IsValidPassword = false;
Original = PasswordString.getStringValue();
Edited = String01.getStringValue();
if (Edited.compareTo(Original) == 0) {
if (ProtectedVariable.getIntValue() == 1) {
ProtectedVariable.write(0);
} else {
ProtectedVariable.write(1);
}
Actionconfirmation.move(0, 0, 640, 480);
actionconfirmation.changePanel(41);
} else {
actionconfirmation.changePanel(10002);
}

This script compares the entered password with the stored one and toggles the protection status accordingly. If the password matches, it moves the window and changes the panel. If not, it redirects to another panel.

Electric Motor For Metering Pump

Electric Motor For Metering Pump,Automatic Control Motor,Well-Designed Electric Motor,Alternating Current Motor Driver

Jiangsu Hengchi Motor Technology Co., Ltd , https://www.hcemotor.com

This entry was posted in on