Font Size: a A A

The Water Supply Scheduling Monitoring System Base On Visual Basic

Posted on:2009-09-09Degree:MasterType:Thesis
Country:ChinaCandidate:Q M SunFull Text:PDF
GTID:2178360272976600Subject:Software engineering
Abstract/Summary:PDF Full Text Request
Water Supply Company of Daqing supply the water for industrial and residential. The Water Supply System of Daqing include:one Monitoring Center,three water plant,two Pumping station,nine Underground Water stations,threeteen Transfer station.It's a major issue how can we allocate resources of water.in management.For send system data in time,it must have high accuracy and high reliability.A real-time communication is verey important in this system.Water supply of Daqing need a high effective and low cost data transfer system.In these years,we accelerate the application of modern management methods and information technology.we basically completed the construction of information infrastructure.Many enterprise network has used in the Water Supply.But The Water Monitoring System is trailing behind other enterprise network.The worker send the system data of his station by phone.Functional needs of the water system for Water Supply of daqing in this paper. It is said that the technical solution in this paper and give further details of this work.This system consists of two parts:Water Supply Monitoring Center(server) and the Water Station(client).I am adopted Visual Basic 6.0 to develop the system software.The ease of use should be the key in deciding a suitable choice. To operate in windows.To switch among the multiple open form,operation form,data form,display form,station form and statement form.The graduation thesis achieve the following aspects:1,Read back the running data of the Water Station,for the managers of the company to know the whole operating condition of the Water System.2,To make a diagnosis by itself.When something wrong with the communications,The system send alarm information to the center and will report the information into the database.3,Can find out the real-time data or historical data.This program has an auto save feature the historical data in the hard drive.4,The program have "automatic print" and "hand print" two functions.5.Can show water flowchart.For officers to know the operational data of the water station's equipment. 6.The operator can press the F1 key on the keyboard to gain the on-line help. This will allow operators to gain a variety of systems help.The system provides reliable technical support,for water supply pipe network optimization run,to improve water supply efficiency,improve the economic efficiency of water supply,There is a focus on.1 The PLC is connected to our mainframe computer by the VB's serial port. MSComm control of VB has two possible communicating:either through Incident Drive or Check.The client of system is used Check,for the data read and write,in the main,as follows:1.1 Set serial port before the programe runSet serial port,set Protocol,open port1.2 Set PLC Function:OrmonNUm()PLC's databases have been built before the system.Through the function can read the running data in PLC.1.3 Read-Write Function:Function Read_db()Read data Function,Send message to PLC.And PLC send message in the computer's cache.Computer read the data in the cache.Hexadecimal to decimal FunctionFunction HexToDec()Can make the hexadecimal data chang decimal data.Check Function XORR()Add check code on the data,PLC can check the data.Error information ErrMessage()When something wrong with the communication,the function can send error massage to user.1.4 Set TimerInterval=1000,A cyclic of Timer changes is one second2 The station's information can send to the center of Water Supply Montioring through the wireless network.By the Winsock control of VB to realizate data communication between the Water Stations and the center of Water Supply Montioring.Set Winsock control array in the server's program.Winsock(O) to be in a listen condition.In the main,as follows:1.1 Set port Set protocol,LocalPort,RemotPort before the programe running.22 Interface FunctionEvent DataArrived() Data communication among modules in a computer program.2.3 Data communication FunctionConnectionRequest FunctionWinsock1_connectionRequest()When the client request connection,the funvtion get client's IP and send the massage to other modules.DataArrival FunctionWinsock1_DataArrival().When the success data send come here,send data to other modules.Get Index FunctionGetlndex() Get the client'ID from DWIp and connect the Winsock.Information of station FunctionDWIp().Record the name,ID,IP in the database.Read the data in the database and create an array of DWIp.
Keywords/Search Tags:Scheduling of water supply, SCADA, Monitoring System, VB, Winsock
PDF Full Text Request
Related items