文档详情

基于CAN总线的分布式环境温度监控及报警系统(软件部分) 毕业论文.doc

发布:2016-05-11约1.41万字共23页下载文档
文本预览下载声明
基于CAN总线的分布式环境温度监控及报警系统(软件部分) 摘 要 由于单片机具有价格低,功能全,体积小,功耗低,抗干扰能力强等特点,在工业控制系统中得到了广泛的应用。随着单片机技术的发展应用VB6.0 实现上位PC 机和单片机间的串行通信的方法,并着重阐述了在VB环境下实现的主要过程。PC机通讯程序利用VB提供的MsComm串行通讯控件来完成。 关键字:VisualBasic MSComm 控件 串口通信 单片机 Distributed temperature monitoring and alarm system Based on CAN (software segment) ABSTRACT Due to low prices, full function, small size, low power consumption, anti-disturbance capacity, and other characteristics MCU has been widely used in the industrial control system. With the development of MCU technology, MCU applications in a variety of designs, often encountered the information exchange with the outside, namely communication. Especially for the use of its full-duplex communication in all kinds of data acquisition and process control as front end computer composed a distributed control system. Serial communication is a commonly used method to transfer data. It can be used in the communication between computer and peripheral equipment,or between one computer and another.Serial communication means in accordance with the order-by-bit data transmission. Because it has only three transmission lines to transmit data and communication distance is relatively far, in control of the area of site monitoring, control of important occasions has important application values. A PC has powerful monitoring and management function, and MCU with the characteristics of fast and easily to be controlled. Generally, the PC-standard serial RS-232 Interface is connected to achieve data exchange between PC and application systems. This article introduces a method of serial communication between PC and single-chip using VB6. 0, and also elaborates the main process based on VB. PC-communication program use MSComm serial communication control provided by VB to complete. Key words: Visual Basic; MSComm control;Serial Communication;MCU 目 录 一 引言 1 1.1研究目标 1 1.2研究内容 1 1.3研究方法及手段 1 二 设计方案论证 2 2.1 编程方法论证 2 2.2 通信方式论证 2 三 基本理论和软件介绍 3 3.1 串行通信介绍 3 3.2 Visual Basic介绍 3 3.3 虚拟串口软件介绍 5
显示全部
相似文档