计算机与现代化

• 图像处理 • 上一篇    下一篇

基于智能反馈耦合PLC的视觉检测

  

  1. (驻马店职业技术学院,河南驻马店463000)
  • 收稿日期:2015-06-12 出版日期:2015-11-12 发布日期:2015-11-16
  • 作者简介:李华昌(1976-),男,河南西平人,驻马店职业技术学院讲师,研究方向:计算机应用,图像处理。
  • 基金资助:
    河南省基础与前沿技术研究计划项目(122300410056);  驻马店市基础与前沿技术研究计划项目(12706)

Visual Inspection Based on Intelligent Feedback Coupling PLC

  1. (Zhumadian Vocational Technology College, Zhumadian 463000, China)
  • Received:2015-06-12 Online:2015-11-12 Published:2015-11-16

摘要:

制造业中视觉检测需求已广泛存在,普遍存在2个问题:不稳定的光源环境会影响图像处理算法的精度;硬件机构与视觉软件的交互往往有困难,从而影响视觉检测功能的植入。本文提出一种基于智能反馈耦合PLC的视觉检测机制,并在软、硬件上集成实现。本图像处理算法,首先对明暗变化很大的图像和基于灰度的传统方法进行分析;然后提出具有实时反馈和阈值智能调整的算法,并基于多线程编程实现。在硬件与软件交互过程中,首先分析ModBus协议,然后基于VC,实现视觉软件与PLC的通信。实验结果表明,与传统图像处理方法相比,本文机制具有更高的精度,同时实现了软硬件的交互。

关键词: 智能反馈, PLC, ModBus协议, 视觉检测, 图像处理

Abstract: Visual inspection has widely existed in manufacturing demand. And there exist two problems, one is that the light environment of instability will affect the accuracy of image processing algorithm and the other is that interaction of hardware organization and visual software is often difficult, thus affecting the visual detection function implantation. Therefore, this paper presents a vision detection system based on intelligent feedback coupling PLC, which is implemented in software and hardware integration. Firstly the images of great light and shade change and the traditional method based on gray level are analyzed; and then an algorithm of real-time feedback and threshold intelligent adjustment is put forward, and programming based on the multi-thread is achieved. In the interaction of mechanism with the software, ModBus protocol is analyzed firstly, and then based on VC, the communication of visual software with PLC is realized. Finally, the performance of mechanism is tested, the results show that the mechanism is of high precision compared with the traditional image processing method, and realizes the interaction of hardware and software at the same time.

Key words:  intelligent feedback, PLC, ModBus protocol, visual detection, image processing

中图分类号: