本課題研究的是工業(yè)生產(chǎn)線綜合信息電子看板系統(tǒng)的設(shè)計。我們要解決的問題是如何對工業(yè)生產(chǎn)線上的各個工位的信息進行獲取并在當(dāng)前工位顯示當(dāng)前信息,對產(chǎn)品產(chǎn)量和生產(chǎn)效率進行跟蹤,記錄并進行統(tǒng)計,將統(tǒng)計數(shù)據(jù)傳輸?shù)絇C機上進行綜合信息處理。該課題涉及到數(shù)據(jù)庫的編程,單片機的應(yīng)用,串口通信,液晶顯示等模塊。
本系統(tǒng)的設(shè)計大致可分為兩個部分。第一部分主要是系統(tǒng)的硬件設(shè)計,第二部分是系統(tǒng)的軟件設(shè)計。
軟件設(shè)計主要是指上位機的設(shè)計。本系統(tǒng)以PC機作為上位機,利用Visual C++ 6.0版本來開發(fā)串行通信軟件,編寫上位機軟件及數(shù)據(jù)庫對信息進行綜合處理,實現(xiàn)PC機與MCU之間,掃描槍與MCU之間的通信功能。
硬件設(shè)計是指下位機的設(shè)計,也就是單片機的設(shè)計,本文中使用的單片機型號為MPS430F169。單片機主要負責(zé)實現(xiàn)三個功能:掃描槍從各個工位獲取來的信息需傳遞到單片機內(nèi)實現(xiàn)數(shù)據(jù)的處理;單片機需將處理后的數(shù)據(jù)信息送往該工位的LCD顯示器顯示,使LCD顯示器能準確實時的顯示當(dāng)前工位的信息;各個單片機能將處理后的信息傳至主機,實現(xiàn)與主機的通信。根據(jù)以上三個功能,我們對系統(tǒng)的硬件進行設(shè)計。
最后,我們要對系統(tǒng)進行調(diào)試運行,以實現(xiàn)系統(tǒng)預(yù)期要達到的目標。使用該電子看板系統(tǒng)設(shè)計后,使每個產(chǎn)品的生產(chǎn)耗時都被記錄下來并與預(yù)設(shè)的標準時間做比較。從而可以更好地安排工作的時間段,合理的設(shè)定每天的工作量以提高生產(chǎn)效率。
關(guān)鍵詞 電子看板;MCU;VC++6.0;串口通信
Abstract
The research of the subject is the design of e-Kanban system which are used for the line of the industrial production of integrated information. The question we need to address of is how to access the industrial production line of each station's information and display the current yield-information in the current position and do the productivity tracking, recording. Transmit the statistical data to the PC to do the information processing. The issue relates to database programming, microcontroller applications, serial communication and LCD modules.
The system design can be divided into two parts. The first part is the hardware design, the second part of the system's software design.
Software design mainly refers to the PC design. In this system, we use Visual C + + 6.0 version to develop the serial communication software and the PC software. At the same time we do the Comprehensive processing of information to realize the communication between PC machine and MCU, the communication between the scanner and MCU.
Hardware design is the design of next-bit machine, that is, the design of MCU. The microcontroller used in this model MPS430F169. the MCU is responsible to achieve three functions: scanning guns from all station access to the information .This information is required to deliver to the MCU to realize the processing of data; Each MCU must send the processed data to the LCD display to display; the MCU can handle all the information then transmit it to the pc to achieve communication with the pc. Based on the above three functions, we design the system hardware.
Finally, we have to debug the system, so that we can achieve the expected objective. After using the electronic Kanban system, we can record the consuming time easily and make a comparison with the standard time. So every day you can better organize work time, set a reasonable amount of work to improve productivity.
Key words E-Kanban system; MCU; VC + +6.0; Serial communication