| With the development of national economy, the raising level of automation of production management and the technical improvement in Field Bus, more and more people pay attention to the Bus, including the CAN bus which has the characteristics of outstanding reliability, flexibility, and efficient real-time data transmission capability, automotive, industrial control, security. In this thesis, we use the underlying network CAN bus with a USBCAN interface card and host computer, and by using Microsoft Visual C + +6.0, we design the data collection system software to perform the daily work of the industry to configure, test and statistical industry data.With respect to the hardware part, this paper imploys a CAN adapter for PC and slave nodes to transmit data, so as to constitute a distributed CAN bus control system solutions. The upper node is a computer, while the slave part contains the USB-CAN interface card, micro controller, CAN controller, the can bus transceiver some specific sensors. We use the well-kown 51 single-chip microcomputer as micro controller, and CAN controller, the can bus transceiver are integrated in the USB-CAN intelligence interface card. The types of the sensors types are close-to type, budge type, barcode type, keyboard input type, weighing type, parameter acquisition and types of control. For the goal of the expansion of the system for future, we reserve two sensor types.Good communication protocol design can ensure the efficient communication and use of the existing resources between the PC and the lower place machine. Based on the original CAN2.0 frame, we design a communication system to expand the definition which includes the PC launched under the communication protocol design and the communication protocol initiated a machine design. In PC launched communication protocol design, mainly contain PC search current online equipment, inquires the next place machine running condition and inquires the lower level computer current yield, settings on a machine production task, settings that place machine production tasks. In the slave-part protocol, it contains a lower place machine requesting for the current time, requesting a month's production task, request the production task and send monthly production.With respect to the software design, the host computer (ie, PC) uses Microsoft Visual C++6.0 as the programming tools to design the interactive monitoring and management software. This is the core part of this paper. The software is divided into communication configuration module, the next crew configuration module, monitoring module, historical query module and remote access modules.This software is designed for operation in the actual detection of stable and reliable performance, field devices can be spread to all kinds of information control room away from the scene, which can achieve some special occasion or dangerous unattended monitoring, making the production accidents to a minimum. The software for the enterprises has the merits of doing the production management, save resources and capital investment, which has very good prospect. |