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

上传人:scccc 文档编号:13059204 上传时间:2021-12-13 格式:DOC 页数:2 大小:65.50KB
返回 下载 相关 举报
如何通过按钮定义登录退出.doc_第1页
第1页 / 共2页
如何通过按钮定义登录退出.doc_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

《如何通过按钮定义登录退出.doc》由会员分享,可在线阅读,更多相关《如何通过按钮定义登录退出.doc(2页珍藏版)》请在三一文库上搜索。

1、(填写文档类型:常问问题)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&qu

2、ot; 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

3、参数必须是CHAR字符。它指定了显示对话框的监视器。如果只使用一个监视器,那么 保留默认参数“或者指定“ 1”可以使用PASSLoginDialog函数来代替PWRTLogin或者PWRTLogout函数。这个函数需要和函数 PWRTLogin相同的参数。PWRTLogin和PASSLoginDialog函数可以调用登录界面,在上面可以登 录或者注销。函数PWRTLogout被正确执行并且不调用登录界面。正确执行后这两个函数都返回“ 1”然而,登录不会等到显示对话框之后。如果使用多个显示器,为了能使登录对话框显示在合适的显示器上,需要WinCC Basic ProcessControl (OS

4、项目编辑器)。不使用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亠LSIM

5、ATIC 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 &

6、quot;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 whi

7、ch 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 parame

8、ters 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 doe

9、s 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

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 社会民生


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