中南大学
本科生毕业论文(设计)
题 目 基于ADP6.0组态软件的色选机
的设计与实现
学生姓名 姜伟
指导老师 雷向东
学 院 信息工程学院
专业班级 计算机科学与技术
I 摘 要
当前,中国是世界上最大的大米生产国与消费国,全国65%以上的人口以大米为主食。随着人们的生活水平不断的提高,人们对大米的食用的品质也愈来愈高,不仅对大米的口感要求提高,且对外观质量要求也随之提高。为了得到精白的大米,满足食用安全性和外观质量,必须去除石头、黑粒、黄粒、病斑粒,生芽粒,霉变粒,完整谷粒。但现有的光电色选设备就难以满足这个要求,为了在这个行业面临着这样一个难题:即如何满足我们大米加工需要的质量,并利用某种设备使我们的加工更加有效率,并让大米生产商获得更大的利润。
色选机(Color Sorter)就是在这种情况下应运而生的。它主要用于大米加工筛选操作,即筛除不良品,并对不良品进行分类。在本文中,我们主要讨论如何利用ADP6.0组态软件进行人机界面设计(系统和用户之间进行交互和信息交换的媒介)和色选机主要结构的设计。其开发过程主要包括人机界面和机械结构开发两个方面。这两个方面要求其设备色选精度高、产量大、人机交换流畅、色选功能强大、工作稳定。而人机界面设计则要求做到各项功能要完备、操作要简便、易学易用等特点。
本文介绍了以大米加工为代表的大米色选机的产生背景与研究意义,具体讲述了如何使用ADP6.0设计人机界面,主要功能模块的设计,主要功能模块的代码实现方法,色选机的工作原理,色选机主要部件及其作用。人机界面程序基于ADP6.0组态软件模块化设计,主要有快速设置管理界面和工程师管理界面。前者包括流量设置、色选精度设置、背景板亮度设置、清扫设置、方案帮助、色选方案存储、系统帮助等;后者包括综合设置、平移设置、日光灯设置、增益设定、流量控制设定、通讯检测、CCD初始化设定、MODBUS设定、密码锁设定、显示控制设定、延时设定等。该软件系统利用层次化、结构化的自顶向下设计方法、可维护性、可重用性和可扩展性都大大提高。色选机主要部件包括震动喂料器、滑道、光电箱、高频喷阀、分料斗等。色选机主体支架采用Z字型,结构精密器件和控制系统安装在封闭式箱体内,防尘,安全性好。
关键词:ADP6.0,色选机,人机界面。
基于ADP6.0组态软件的色选机的设计与实现 ABSTRACT
II ABSTRACT
At present, China is the world's largest rice-producing countries and
consuming countries, more than 65 percent of the population of staple food is
rice. As people's living standards improve, the quality of rice consumption is
rising, not only for the taste of the rice requirements to improve the
appearance quality requirements also will increase. Refined white rice to
meet food safety and appearance quality, you must remove the stone, black
grain, yellow grain, the lesion grain, raw bud grain, moldy grain, whole
grains. Existing electro-optical color sorting equipment it will be difficult to
meet this requirement in the industry faces a problem: namely, how to meet
the needs of our rice processing quality, and use of certain equipment to make
our processing more efficient, and let the rice manufacturers to obtain greater
profits.
Color Sorter came into being in this case. It is mainly used for the
screening of rice processing operations, screen out defective products and
defective products classification. In this paper, we mainly discuss how to use
ADP6.0 configuration software for the medium of interaction and
information exchange between the human-computer interface design (system
and user) and the main structure of the color sorter. Its development process,
including the two aspects of the human-machine interface and the
development of mechanical structures. These two areas require their
equipment Sorting accuracy is high, production, human-computer exchange
of smooth, powerful color selection, and job stability. Man-machine interface
design is required so that various functions must be in place, the operation
should be simple, easy to use features.
This article describes the background and research significance of the
Color Sorter of rice processing, specifically about how to use ADP6.0 design
human-computer interface, the main function module design, the main
function modules of code implementation, color sorter the working principle
of the color sorter main components and their role. Man-machine interface 基于ADP6.0组态软件的色选机的设计与实现 ABSTRACT
III program based on ADP6.0 configuration software modular design, and
quickly set up the management interface and engineer management interface.
The former includes the flow settings, the accuracy of the color selection
setting, the brightness of the background plate set, cleaning set, program help,
color selection program storage system to help; the latter including a
comprehensive set, pan settings, fluorescent settings, gain setting, flow
control settings , communications, detection, CCD initialization settings, set
the MODBUS lock settings, and display control settings, delay settings. The
software system uses a hierarchical, structured top-down design,
maintainability, reusability and scalability are greatly enhanced. The main
components of the color sorter vibration feeder chute and photoelectric box,
high-frequency jet valve, sub-hopper. The color sorter main stent using the
Z-shaped structure precision devices and control systems installed in closed
cabinets, dust, and security.
KEYWORDS: ADP6.0, color sorters, human-machine interface.基于ADP6.0组态软件的色选机的设计与实现 目录
目 录
摘 要 ........................................................................................................................................................ I
ABSTRACT ............................................................................................................................................. II
第一章 绪论 ............................................................................................................................................. 1
1.1课题的产生背景与研究意义 .................................................................................................... 1
1.1.1产生背景 ........................................................................................................................ 1
1.1.2研究意义 ........................................................................................................................ 1
1.2 ADP6.0系统的简介与发展 ....................................................................................................... 2
1.2.1 ADP6.0系统的简介 ........................................................................................................ 2
1.2.2 ADP6.0系统的发展 ........................................................................................................ 2
1.3 应用于课题的主要技术 ........................................................................................................... 3
1.3.1 FPGA技术 ................................................................................................................... 3
1.3.2 VHDL硬件描述语言 ................................................................................................... 5
1.4 研究工作和本文的组织 ........................................................................................................... 7
1.4.1 研究工作 ....................................................................................................................... 7
1.4.2 本文的组织 ................................................................................................................... 8
第二章 系统分析 ..................................................................................................................................... 9
2.1 色选机设计目标 ....................................................................................................................... 9
2.2 色选机原理结构分析 ............................................................................................................. 10
2.3 色选机电气控制分析 ............................................................................................................. 11
第三章 人机界面设计 ........................................................................................................................... 13
3.1 人机界面总体功能设计 ......................................................................................................... 13
3.2 系统主要界面设计 ................................................................................................................. 14
3.2.1 操作界面设计 ............................................................................................................. 14
3.2.2 工程师界面设计 ......................................................................................................... 17
第四章 色选机主要电路设计 ............................................................................................................... 19
4.1线阵CCD采集系统设计 .......................................................................................................... 19
4.2主控板设计 .............................................................................................................................. 22
4.3 高频阀驱动板设计 ................................................................................................................. 25
第五章 主要功能窗口与代码实现 ....................................................................................................... 28
5.1开机窗口与代码实现 .............................................................................................................. 28
5.2 CCD相机设定窗口与代码 ...................................................................................................... 32
5.3平移窗口与代码 ...................................................................................................................... 34