施耐德XBTG系列人机登录密码制作

来源:本站
导读:目前正在解读《施耐德XBTG系列人机登录密码制作》的相关信息,《施耐德XBTG系列人机登录密码制作》是由用户自行发布的知识型内容!下面请观看由(电工学习网 - www.9pbb.com)用户发布《施耐德XBTG系列人机登录密码制作》的详细说明。
1、在Popup windows/action confirmation/下创建1001和1002两个窗口如图1、2所示,其中密码输入框由蓝色矩形框和密码显示功能块组成,密码显示功能块位于Toochest/Miscellaneous/PassDisp-0001-01,属性设置中Variable为String01,Status为String02。 施耐德XBTG系列人机登录密码制作 图1 1001Popup窗口画面 施耐德XBTG系列人机登录密码制作 图2 1002Popup窗口画面 2、在系统登录画面主窗口上设置登陆按钮,配置如图3所示。 3、定义以下四个内部变量:“PasswordString”属性设为String/Internal/Initial“210”值设定密码;“String01” 属性设为String/Internal;“String02” 属性设为String/Internal;“Protected Variable”属性设为Discrete/Internal/Initial“off”。 4、在1001窗口下创建如下脚本 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);
}
提醒:《施耐德XBTG系列人机登录密码制作》最后刷新时间 2023-07-10 04:11:38,本站为公益型个人网站,仅供个人学习和记录信息,不进行任何商业性质的盈利。如果内容、图片资源失效或内容涉及侵权,请反馈至,我们会及时处理。本站只保证内容的可读性,无法保证真实性,《施耐德XBTG系列人机登录密码制作》该内容的真实性请自行鉴别。