关于画面模板中趋势控件的问题连接2个变量问题

金沙水长

  • 帖子

    33
  • 精华

    0
  • 被关注

    1

论坛等级:游民

注册时间:2003-06-06

普通 普通 如何晋级?

发布于 2011-03-09 10:40:02

2楼

#include "apdefap.h"
char* _main(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName)
{
#pragma option(mbcs)
#define apc_tag "ActValue"
#define apc_tag1 "SetValue"
static char TrendTag[120];
static char TrendTag1[120];
static long int Index_Trend = 0;

sprintf (TrendTag,"%s" apc_tag,GetTagPrefix (GetParentPicture(lpszPictureName), GetParentPictureWindow (lpszPictureName)));
sprintf (TrendTag1,"%s" apc_tag1,GetTagPrefix (GetParentPicture(lpszPictureName), GetParentPictureWindow (lpszPictureName)));

SetIndex(lpszPictureName, "Tr_Ctrl", Index_Trend);
if (Index_Trend == 0){
Index_Trend++;
return TrendTag;

}
if (Index_Trend == 1){
Index_Trend = 0;
return TrendTag1;
}
}
运行起来只是第一条曲线在来回显示2个变量的值,第二条曲线显示无效组态(Invalid Configuration)。(wincc7.0+sp1)
本意是在同一趋势控件上同时显示2个变量的曲线。
评论
编辑推荐: 关闭

请填写推广理由:

本版热门话题

SIMATIC WinCC / Panel

共有32954条技术帖

相关推荐

热门标签

相关帖子推荐

guzhang

恭喜,你发布的帖子

评为精华帖!

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

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

  • 分享

  • 只看
    楼主

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