摘要
在工业现场的机器视觉检测系统中,智能相机通信数据量庞大,因此其对通信接口的可靠性和实时性提出了较高的要求,针对此问题设计并实现了一种基于Mdobus/TCP协议的智能相机通信接口。结合嵌入式技术,给出了基于服务器/客户端模式的智能相机系统的硬件结构设计,并详细说明了智能相机通信接口的软件实现过程。将智能相机设计为服务器端,使智能相机可以同时和多客户端设备通信,提高了智能相机通信接口的可靠性;在协议中加入Mdobus/TCP自定义功能码,使智能相机与客户端可以通信大数据量的文件,提高了智能相机通信接口的灵活性和实时性,更好地满足了机器视觉系统的通信需求。目前采用该通信接口的智能相机已经应用于工业现场的产品质量检测,提高了工厂的生产效率和产品质量,取得了良好的成效。
Smart camera′s communication has large amount of data in the industrial field of machine vision inspection system,and it′s communication interface requires for high reliability and real-time.So this article designs and implements a smart camera′s communication interface based on Mdobus/TCP protocol for the problem.At first the smart camera system's hardware architecture design is given based on the server / client model,and the software realization of the smart camera′s communication interface is given detailedly with embedded technology.By setting the smart camera as the server-side,it′s reliability is improved.By adding Mdobus/TCP customization code,the smart camera can communicate large data files with the client,and it′s better to meet the communication needs of machine vision systems.Thus the flexibility and real-time of the smart cameras′s communication interface are improved.Now,the smart camera with this communication interface has been applied to industrial on-site for products' quality inspection,and has achieved good results.
出处
《控制工程》
CSCD
北大核心
2011年第4期618-622,共5页
Control Engineering of China
基金
国家自然基金项目(60804013)
"嵌入式机器视觉控制器的研究与开发"产学研合作项目(07398)