回复:WINCC5中如何调出更改用户密码对话框?

QSQ

  • 帖子

    44
  • 精华

    1
  • 被关注

    1

论坛等级:游民

注册时间:2004-08-10

普通 普通 如何晋级?

发布于 2004-08-22 02:20:54

0楼

QUESTION:
How can I change the password for the user logged in in WinCC runtime?

ANSWER:
You can use the WinCC API function "PWGENChangePassword". The function requires four parameters:

The user name
The old password of the user
The new password of the user
And a pointer to an error structure.
The feedback value of the function is "TRUE" if the password was successfully changed and "FALSE" if an error occurred.

Before starting this function, you must first make a connection to the database. To do this you can use the "PWGENConnect" function. This function needs the parameters "DataSourceName" of project and a pointer to an error structure. If a successful connection is made to the database, the feedback value of the function is "TRUE", otherwise it is "FALSE".

After successfully changing the password, you should terminate the connection to the database using the"PWGENDisconnect" function. This function needs a pointer to an error structure as parameter, and when successfully disconnected gives a "TRUE" feedback and otherwise "FALSE".

Note:
Pay attention to your plant configuration while using this functionality. In the server-client/multiclient mode, the password has to be adapted on every station.
As of a higher version than SIMATIC WinCC V6.0 the functionality described here, is not available any more.

评论
编辑推荐: 关闭

请填写推广理由:

本版热门话题

SIMATIC WinCC / Panel

共有32574条技术帖

相关推荐

热门标签

相关帖子推荐

guzhang

恭喜,你发布的帖子

评为精华帖!

快扫描右侧二维码晒一晒吧!

再发帖或跟帖交流2条,就能晋升VIP啦!开启更多专属权限!

  • 分享

  • 只看
    楼主

top
您收到0封站内信:
×
×
信息提示
很抱歉!您所访问的页面不存在,或网址发生了变化,请稍后再试。