With the rapid development of urban construction and economic construction, more and more high-rise buildings and public activity places are presented to people. As a result, fire hazards increase. There are tens of thousands of fire alarms every year, and very serious fires occur from time to time. This not only brings heavy losses to property and citizens' lives and property, but also affects the economic construction and social stability to a certain extent. Therefore, higher and newer requirements are put forward for the fire automatic alarm control system focusing on prevention.
At present, most of the automatic fire alarm controllers on the market, their central processing units are controlled by single-chip microcomputer, the single-chip microcomputer is widely used due to its price advantage, simple hardware and easy maintenance, which can be described as high quality and low price. However, with the increase of the system capacity, the processing speed and capacity of the single-chip microcomputer are obviously not enough. The software programming of the complex system is cumbersome and the operation is inconvenient, especially when the alarm plan is to be displayed, this kind of controller cannot be realized. computer. Therefore, the controller with the industrial computer as the central processing unit came into being. It uses the Chinese Windows2000 as the operating platform and adopts language programming, so that the controller has a good interface and better compatibility, overcomes the above shortcomings, and its capacity is more Large, more functional, can well adapt to market demand.
2. System structure
Its system structure block diagram is shown in Figure 1.


3. Hardware Design
1. Central processing unit
The basic configuration requirements of the central processing unit of the system: CPUPⅢ, memory 128M, hard disk 40G, video memory 8M, can use YONGS industrial computer, install Windows2000 operating system, use 12-inch TFT high-definition true color flat panel display, and leave two USB ports at the same time , one network port, one parallel port.
Using a thermal micro-printer, the maximum average current is not more than 115A.
According to user requirements, touch screen and operating keyboard can be reconfigured.
2. Serial port expansion slot
The C104HöPCI multi-serial port card from Taiwan Moxa Company can be used to expand the system to 4 standard RS232 serial ports, of which No. 1, 2 and 3 are used to connect the loop communication card, and No. 4 is used to connect the peripheral communication card.
3. Loop communication card
The function of the circuit communication card is to manage 32 circuit boards downwards, complete the status scan of each circuit board (normal, fire alarm, fault, linkage),
The two-way data exchange with the industrial computer is realized. RS232 is used to communicate with the industrial computer, and RS485 is used to communicate with the circuit board.
4. Peripheral communication card
The function of the peripheral communication card is to manage the audio board, relay card, manual control panel, and floor repeater used by the system. Except for the audio board, which is a must, the rest are optional, of which a maximum of 16 relay cards are provided. There are 16 manual control panels, 64 floor repeaters, and the RS485 communication mode is used between the two; the two-way data transmission between the upward and the industrial computer is completed, and the two use the RS232 communication mode.
5. Circuit board
The function of the circuit board is to complete the data acquisition of all detectors and modules connected to this circuit, and to do preliminary data processing. Each circuit board can be connected to 128 ordinary addressing units, or 198 intelligent addressing units.
6. Sound board
The function of the sound board is first to realize the sound and light alarm in the case of fire alarm, fault and early warning, and at the same time monitor the main and backup power operation status of the power board, in addition to the general fire alarm relay and programmable relay set in the management system.
4. Software Design
1. Industrial computer software
The software of the industrial computer is compiled using the visual programming language VisualBasic of Microsoft Corporation. It mainly completes the processing and judgment of various sampling data from the lower computer, monitors the operating status of the system, and responds to various operating instructions of the user. The program can be divided into the following modules in structure:
(1) Editing program module: complete system configuration, circuit configuration, control matrix establishment, floor plan drawing and other functions.
(2) Communication program module: complete the communication functions with loop communication cards, peripheral communication cards, printers, etc.
(3) Alarm display program module: complete the display, record, floor plan calling and other functions of system alarm events.
(4) Helper module: provide online help for all operations, so that users can master system functions, settings and other requirements.
2. Communication card, circuit board, audio board software
These three boards are programmed in MCS251 assembly language, and the RS485 baud rate for inter-board communication is set to 4800bps. Assembly language can better solve the problem of real-time and accuracy, so as to meet the requirements of the national standard GB16806-1997 on alarm time. In order to improve the reliability of the alarm, the software adopts measures such as CRC check, intelligent algorithm, and multiple judgments.
5. System Features
(1) The system has a large alarm capacity, which can reach more than 19,000 points.
(2) Due to the use of Windows2000 operation plane, the interface is beautiful and easy to operate.
(3) The advantages of historical record preservation and floor plan management are particularly obvious.

