登录
首页 PLC论坛 欧姆龙OMRON
回帖 发帖
正文

主题:帮忙看一下vc写的omron操作程序!!!

点击:1093 回复:1

麻烦大家看一下,我写的从omron-plc的dm区域中读取数据的程序是否有错误,程序如下:
CString str1;
   str1="@00RD00100002";
   m_com.SetOutput(COleVariant(str1));
COleVariant vResponse;
   vResponse= m_com.GetInput();
m_response=vResponse.bstrVal;
   其中m_response是文本框的变量!!!
大家给参谋一下,是不是有什么错误,我试过几次,都没有取出数据!!!
05-11-13 16:13

工控新闻

更多新闻资讯