回复:请问:Wincc里的原始数据类型怎么用啊?

csujfd

  • 帖子

    149
  • 精华

    0
  • 被关注

    1

论坛等级:游士

注册时间:2005-02-07

普通 普通 如何晋级?

发布于 2005-04-08 10:39:35

0楼

Wincc中有两个内部函数可用来处理原始数据变量:GetTagRaw和SetTagRaw
BOOL GetTagRaw(Tag Tag_Name, BYTE* pValue, DWORD size);
Function:Determines the value of a tag of data type "Raw Data Type".
Parameter:
Tag_Name :Name of the tag
pValue:The pointer to a byte field which contains the value of the raw data tag.
size:Size of the byte field in bytes.
Return value:
TRUE:The function has been completed without any errors.
FALSE:An error occurred.

Example of reading out a raw data type tag
{
#define DATA_SIZE 3
BYTE byData[DATA_SIZE];
//Get the current values of the tag
GetTagRaw("gs_tag_raw",byData,DATA_SIZE);
//Use the values received in the array byData
...
}
GetTagRaw function parameters:
"gs_tag_raw" is the name of the tag.
"byData" is the byte array in which the values in the raw data tag are stored.
"DATA_SIZE" is the number of values read.
1. Read out the tag values and buffer in byData.
2. Execution of user-defined codes for processing the return values.
评论
编辑推荐: 关闭

请填写推广理由:

本版热门话题

SIMATIC WinCC / Panel

共有32575条技术帖

相关推荐

热门标签

相关帖子推荐

guzhang

恭喜,你发布的帖子

评为精华帖!

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

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

  • 分享

  • 只看
    楼主

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