winCC7.0 SP3读取VB6.0的数据,最好提供文档或者索引
问题补充:
我想请教GetTagRaw获取原始数据,如何拆分。有个样例最好
最佳答案
此回答已完善
vb6.0写个opc 服务器,modbus tcp server
PS:
GetTagRaw example
{
#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
...
}
clipboard
Parameters of the GetTagRaw function:
"gs_tag_raw" is the name of the tag.
"byData" is the byte array in which the values of the raw data tags will be stored.
"DATA_SIZE" is the number of values that will be read.
1. Reading the values of the tags and temporarily storing in byData.
2. Executing user-defined code for processing return values.
提问者对于答案的评价:
好的,谢谢大家热心帮助。再请教一下,用数组读出后,在画面如何表示,对应数组的标签每一个如何不必重新定义
原创文章,作者:ximenziask,如若转载,请注明出处:https://www.zhaoplc.com/plc360140.html