检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
出 处:《中国农业大学学报》2005年第2期65-69,共5页Journal of China Agricultural University
摘 要:针对目前市场上上位机通信软件专用、封闭、不兼容等问题,提出了用VC实现上位机与PLC通信的方法。采用西门子公司的S7 -2 0 0系列PLC为下位机,按照RS 4 85标准与上位机通信;通信协议为以自由口模式创建用户自定义的协议,数据传输格式为16进制ASCII编码,求和校验;上位机采用VC编程的可视化界面,在编程过程中采用不可中断方式和多缓冲区结构,并建立相应的控制指针。试验结果表明,当数据传输速率为9 6kbit/s时误码率<10 -5,能够实现现场网络的在线监控、调试及数据修改。The interfaces of most PC( IPC) communication software in the market has the problems of individual, enclosed, and less compatibility. The paper developed a VC-based communication approach for the communications between PLC and IPC and adopted PLC-ST-200 of SIEMENS as slave device, which communicate with IPC by RS-485 standard, in the realized system. A user-defined protocol created by freeport mode was taken as the communication protocol, and hexadecimal ASCII code as the form of data transform to verify the sum of ASCⅡ, A non-maskable-interrupt and a multi-buffer structure were adopted and a corresponding controlling pointer was set up during the course of date receiving and sending. The test results indicated that the functions of online surveillance and remote debugging and amending could be realized with code-error less than 10^-5 when transferring data at a speed of 9.6 kbit/s.
分 类 号:TP271.4[自动化与计算机技术—检测技术与自动化装置]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.229