三相智能电表软件系统设计摘 要:三相智能电表适用于电力电网、自动化控制等领域,他集遥测、遥信、遥控、显示、通讯等众多功能与一体,能够完成 1 回线路的电流、电压、功率、功率因素、频率、电度等电参量的监测。产品具有可编程功能、DC4~20mA 模拟量输出、RS232 串行口和开关量输出等功能,可以实现与监控系统的联网或数据的远程传输等功能。本三相智能电表软件系统基于 Visual Basic 语言程序设计,由串口和可视化程序界面(数据采集、显示,保存和查询)组成。能实现三相电力数据的采集、显示、保存和查询等功能。关键词:Visual Basic,RS232 串行口,数据库Abstract:Three phase smart meter is suitable for the power grid, automation control and other fields, he set telemetry, remote communication, remote control, display, communication, and many other functions, and an organic whole, can complete 1 line current, voltage, power, power factor, frequency, the monitoring of electrical parameters, such as electric degrees. Product has the function of the programmable, DC4 ~ 20 ma analog output and RS232 serial port and switch output, and other functions, can be achieved with the monitoring system of the network, or data remote transmission, and other functions. The three phase smart meter software system based on Visual Basic language programming, by serial links and visualization program interface (data collection, display, save and query). Can realize three-phase power data acquisition, display, save and query, etc.Keywords:Visual Basic,RS232 serial port,data base 目录1 前言 12 总体方案 22.1 方案一 22.2 方案二 23 单元模块设计 43.1 数据接收 43.1.1 单片机电路 43.1.2 RS232 串口 53.2 数据显示模块 63.3 历史数据查询 94 软件设计 114.1 RS232 串口通信标准 114.2 登录界面的软件代码设计原理 124.3 实时数据显示界面的软件代码设计原理 124.4 历史数据显示界面的软件代码设计原理 174.5 软件设计流程图 205 基于 Visual Basic 的数据库操作 215.1 创...