欢迎来到三一文库! | 帮助中心 三一文库31doc.com 一个上传文档投稿赚钱的网站
三一文库
全部分类
  • 研究报告>
  • 工作总结>
  • 合同范本>
  • 心得体会>
  • 工作报告>
  • 党团相关>
  • 幼儿/小学教育>
  • 高等教育>
  • 经济/贸易/财会>
  • 建筑/环境>
  • 金融/证券>
  • 医学/心理学>
  • ImageVerifierCode 换一换
    首页 三一文库 > 资源分类 > DOC文档下载  

    如何通过按钮定义登录退出.doc

    • 资源ID:13059204       资源大小:65.50KB        全文页数:2页
    • 资源格式: DOC        下载积分:2
    快捷下载 游客一键下载
    会员登录下载
    微信登录下载
    三方登录下载: 微信开放平台登录 QQ登录   微博登录  
    二维码
    微信扫一扫登录
    下载资源需要2
    邮箱/手机:
    温馨提示:
    用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)
    支付方式: 支付宝    微信支付   
    验证码:   换一换

    加入VIP免费专享
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    如何通过按钮定义登录退出.doc

    (填写文档类型:常问问题)P#-2(填写文档类型:常问问题)P#-2在画面中如何通过一个按钮来执行登录/退出?显示订货号6AV6371-1.SIMATIC WinCC Optio nen/Powerpacks6AV6371-2.SIMATIC WinCC V7.06AV6381-1.SIMATIC WinCC Software6AV6381-2.SIMATIC WinCC V7.06AV6382-1.SIMATIC WinCC Packages说明:在画面中结合不同按钮来组态下面 C操作:Actio n for logi n (for example, "mouse click" even t): #pragma code ("useadm in. dll")#in clude "PWRT_api.h"#pragma code()PWRTLogi n( 'c');Actio n for logout (for example, "mouse click" even t): #pragma code ("useadm in. dll")#in clude "PWRT_api.h"#pragma code()PWRTLogout();PWRTLogin参数必须是CHAR字符。它指定了显示对话框的监视器。如果只使用一个监视器,那么 保留默认参数“或者指定“ 1”可以使用PASSLoginDialog函数来代替PWRTLogin或者PWRTLogout函数。这个函数需要和函数 PWRTLogin相同的参数。PWRTLogin和PASSLoginDialog函数可以调用登录界面,在上面可以登 录或者注销。函数PWRTLogout被正确执行并且不调用登录界面。正确执行后这两个函数都返回“ 1”然而,登录不会等到显示对话框之后。如果使用多个显示器,为了能使登录对话框显示在合适的显示器上,需要WinCC Basic ProcessControl (OS项目编辑器)。不使用WinCC Basic Process Control时,可以指定显示器编号,但登录对话框始终显示在第一个显关键字: 编程注意事项条目号:71087日期:2008-09-12How can you impleme nt log in/logout via a butt on in a picture? Display part nu mber6AV6371-1.SIMATIC WinCC Optio nen/Powerpacks6AV6371-2.SIMATIC WinCC V7.06AV6381-1.SIMATIC WinCC Software6AV6381-2亠LSIMATIC WinCC V7.06AV6382-1.SIMATIC WinCC PackagesIn struct ions:Con figure the followi ng C actions in a picture in comb in ati on with differe nt butt ons:Service & SupportSIEMENS? Action for logi n (for example, "mouse click" even t):#pragma code ("useadm in. dll")#in clude "PWRT_api.h"#pragma code()PWRTLogi n( 'c');? Actio n for logout (for example, "mouse click" even t):#pragma code ("useadm in. dll")#in clude "PWRT_api.h"#pragma code()PWRTLogout();The parameter for PWRTLogin must be a CHAR character. It specifies on which monitor the dialog is displayed. If you are only using one scree n, the n you can leave the default parameter "c", or specify "1".Note:You can also use the fun ctio n PASSLogi nDialog in stead of the fun ctio ns PWRTLogin or PWRTLogout. This fun ctio n requires the same parameters as the PWRTLogin fun ctio n. The functions PWRTLogin and PASSLoginDialog call the login mask, where you can log in or log out. The function PWRTLogout is executed directly and does not call the login mask.Both functions return "1" if they are executed correctly. However, the login does not wait to see if the dialog is really displayed.Note:If you are using more tha n one mon itor, you n eed WinCC Basic Process Con trol(OS Project Editor), so that the Login dialog is displayed on the appropriate monitor.You can also specify a mon itor nu mber without Basic Process Con trol, but the Logi n dialog the n always appears on the first mon itor.Keywords:Program ming tipsEntry ID: 71087Date: 2008-08-15(填写文档类型:常问问题)P2-2

    注意事项

    本文(如何通过按钮定义登录退出.doc)为本站会员(scccc)主动上传,三一文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三一文库(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    经营许可证编号:宁ICP备18001539号-1

    三一文库
    收起
    展开