{
messagebox(0,“数据写错误”,“通信错误”,mb_ok);
}
}
5.4 读plc内存数据
(1)从plc中读取数据,监视plc的运行数据,
(2) 读plc内存函数程序源代码:
string tform1::read(string address,string value)
{
string readdata,readdata1,readdata2;
string temp;
unsigned long lrc,bs;
char *senddata;
int ln,i=0,len;
dword nbytesread,dwevent,dwerror;
comstat cs;
char inbuff[1024];
string word;
上一页 [1] [2] [3] [4] [5] [6] 下一页
本文关键字:欧姆龙 欧姆龙plc应用,plc技术 - plc应用 - 欧姆龙plc应用