回复:在外部程序中运用Wincc的内部数据?

SIEMENS

  • 帖子

    11
  • 精华

    0
  • 被关注

    0

论坛等级:新手

注册时间:2003-06-06

普通 普通 如何晋级?

发布于 2003-09-10 15:30:11

0楼

1也可以实现的,其实不用ODK开发包,只需看看ODK开发包的帮助文件,里面讲到了一些可以创建TAG的API函数。如:
BOOL WINAPI GAPICreateNewVariable (
LPMCP_NEWVARIABLE_DATA pData,
LPCMN_ERROR lpdmError);

Des cription
Creates a new tag.

Parameters
pData
Pointer to the MCP_NEWVARIABLE_DATA structure containing the data of the tag you want to create.

lpdmError
Pointer to the data of the extended error message within the CMN_ERROR structure. In the event of an error, the system writes error information to this structure.

Return Value
TRUE
Tag created

FALSE
Error

Remarks
The function is provided in this specific form by WinCC version 1.1 or higher.
An advanced function exists: GAPICreateNewVariable4

Error Messages

DM_E_NOT_CONNECTED No connection to data manager
DM_E_ALREADY_EXIST The object you want to create already exists
这以上是摘录ODK HELP中的
评论
编辑推荐: 关闭

请填写推广理由:

本版热门话题

SIMATIC WinCC / Panel

共有32748条技术帖

相关推荐

热门标签

相关帖子推荐

guzhang

恭喜,你发布的帖子

评为精华帖!

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

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

  • 分享

  • 只看
    楼主

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