摘要
论文在分析了国内外称重技术发展的基础上,主要讨论了一个用于工业控制且功能较齐全的自动称重系统的开发。
随着工业自动化和管理现代化的进展,自动在线称重、快速动态称重和称重系统有了很大发展。进一步采用新技术,开发各种自动称重系统,提高动态称重的准确度,加强网络功能是当今各国发展的重点。
论文所介绍的自动称重系统除了能够实现重量数据的采集、处理、显示和通信等基本功能外,它还实现了将采集的数据保存于数据库中并能以报表的形式打印出来的功能,以便于统计和查阅;实现了访问、查询数据库中的记录等功能;并能通过摄像头捕获运输车辆的车牌号,以位图的形式保存于数据库中,以便校验所输入的车牌号是否正确。功能的实现过程是:上位机始终监视串口,当接收到数据时自动调用添加记录函数并将接收的数据送给相应的字段,添加记录函数弹出要求输入车牌号对话框并调用捕获图像函数,最终将所有的数据保存到数据库中的相应字段,完成自动称重。该系统所能实现的主要功能也是实现网络功能的前提条件。
论文中主要用到的软件开发工具是Visual C++6.0编程语言,用于数据库等程序代码的编写。由于该语言的集成环境中提供了许多好用的工具和功能,从而提高了程序的开发效率,而且用其所编制的软件运行效率高、可靠性也高。此外,本文中还用到了C51来编写单片机上的数据采集部分的代码。
On the basis of researching on the progress of technology of weighing, this paper discusses the development of automatic weighing system which has a complete function.
With the progress of automation in industry and modernization in management, there is much progress in weighing online, fast and dynamic weighing and system of weighing. Adopting newer technology, developing diversified automatic weighing system, improving accuracy and enhancing network function are emphasized in every country nowadays.
Besides the function of collecting, processing, displaying and communicating of data about weight, the automatic weighing system can also save data in database and print data in report form. It can also visit and query the records in database and capture the image of truck by pick-up head and save it in database in bitmap form. Use the image to verify whether the code of truck inputted is true. The process of realization of functions is: When the data of weight is received by PC, PC will call the function of adding record, and then the truck's code is inputted and the image of truck is automatically captured . Finally, all data are stored in database. And the system completes the function of automatic weighing. At the same time, the functions of this system are the presupposition of realizing network function.
The programming languageused in this paper is Visual C++6.0 which is used to program database code and so on. This language provides many good tools and functions, so that it improves the developing efficiency. The software programmed with it can realize high running efficiency and high reliability. Moreover, C51 is used to program data-collecting codes in singlechip.
引文
[1]陆伯勤.电子称重技术和自动称重系统的进展.自动化博览,1999.1:1~6
[2]OIML. Seminar "Weighing in Braunschweig". 1990. 5: 15~18
[3]马明建,等.数据采集与处理技术.西安:西安交通大学出版社,2000
[4]薛栋梁.单片机原理与应用.北京:中国水利水电出版社,2001.254~265
[5]陆坤,等.电子设计技术.成都:电子科技大学出版社,1997.690
[6]刘艳玲.采用MAX232实现MCS-51单片机与PC机的通信.天津理工学院学报,2000.27(5):12~14
[7]李朝青.单片机原理及接口技术.北京:北京航空航天大学出版社,1999.209~210
[8]马忠梅,等.单片机的C语言应用程序设计.北京:北京航空航天大学出版社,2001.37
[9]谭德强,等.实用软件工具与环境教程——C++高级编程.北京:清华大学出版社,2001.7~9、28
[10]王宏,等.Visual C++实战演练.北京:人民邮电出版社,2001.52~53
[11]陈坚.使用Visual C++编程大全.西安:西安科技大学出版社,2001.397~398
[12]Chuck Wood著,梁普选,等译.Visual C++6.0数据库编程大全.北京:电子工业出版社,2000.14
[13]苏琦,等.电脑眼基于EZ—USB的单片机方案.现代电子技术,2001.18(3):1
[14]陈龙三.8051单片机C语言控制与应用.北京:清华大学出版社,1999
[15]柴跃廷,等.应用软件系统开发.北京:清华大学出版社,1999
[16]Jacobson Ivar, Object-Oriented SoftWare Engineering. USA:Addison-Wesley Publishing Company, 1999
[17]Bernard Loriferne. Analog-Digital and Digital-Analog Conversion. Chapter1. [s.l.] :Heyden Publishing Co., 1982
[18]柯锋,等.单片机监控程序的实现.现代电子技术,2001.18(6):55~57
[19]赵毅,等.单片机系统中数字滤波的算法.电测与仪表,2001.38(6):5~8
[20]张晓卫,等.串行通信中定时大批量数据传输的编程技术.电测与仪表,2001.38(5):37~49
[21]苏哲明,等.在VC++中建立自定义数据库类.电测与仪表,2001.38(1):36~38
[22]刘佳.用AVICap实现视频捕获.电脑编程技巧与维护,2001.1:78~80
[23]郑磊,等.用VC++6.0的AVICap窗口类实现视频采集编程.电子技术,
1999.15(2):57~61
[24]刘锐.单片机在智能充电器中的应用.四川师范大学学报,1999.22(6):725~729
[25]金燕.门式起重机用电子吊秤系统的设计.现代电子技术,2001.18(5):55~58
[26]霍爱清.基于89C51单片机的远程数据采集系统的设计.现代电子技术,2001.18(6):10~12
[27]李茸,等.计算机在汽车衡称重系统中的应用.哈尔滨理工大学学报,1998.3(5):15~19
[28]高金峰,等.带通讯接口的电子称重系统.郑州工业大学学报,1998.19(1):34~38
[29]Herbert Taub. Digital Integrated Electronics. McGray-Hill BookCompany, 1978.
[30]薛钧义,等.MCS-51/96系列单片机微型计算机及其应用.西安:西安交通大学出版社,1997
[31]Peter Coad and Edward Yourdon. Object_Oriented Analysis. Yourdon Press, 1991
[32]阎石.数字电子技术基础.北京:高等教育出版社,1995
[33]Jack Fahy. Weighing in Process Automation-Digital Load Cell Technology. Proceedings of the Asia-Pacific Sysmposium on Mass and Force. Beijing, 1996: 94~99
[34]Jack Fahy. Sensortronics Answers to the Most Frequently Asked Questions about Digital Truck Scale Systems. Weighing & Measurement, 1993.5: 12~13
[35]王幸之,等.单片机应用系统抗干扰技术.北京:北京航空航天大学出版社,2000
[36]Steve Leibson. The Handbook of Microcomputer Interfacing, 1987
[37]Robert J.Bibbero. Microprocessors in Instruments and Control, 1986
[38]何立民.单片及应用系统设计系统配置与接口技术.北京:北京航空航天大学出版社,1996
[39]杨文龙.单片机原理及应用.西安:西安电子科技大学出版社,1998
[40]John E. Swanke. VC++MFC Extensions by Example.北京:机械工业出版社,1997
[41]周长发.精通Visual C++图像编程.北京:电子工业出版社,2000