
HOME > Service & Support > 样例下载
MCGS Hot System 1
The realization of two-machine backup program:
Double backup is the industry to achieve continuous data acquisition and data security, an important means to achieve the two-machine engineering backup, there is relatively more alternative approach, now MCGS and rapid existing components based on how the functions Dual powerful backup program to achieve.
Double the scope of application of the backup programs:
In small and medium-sized projects, real-time data acquisition and data preservation requirements are relatively high. However, due to restrictions on the size of the project, funds can not invest huge double procurement professional hardware and backup solutions. The realization of projects in the configuration of the host computer at the same time want to use the existing configuration software, to achieve more fully the two-machine backup.
At all workstation at the scene, the preservation of data requirements is relatively high, and the conditions of the site can not use very high-end dual-drive backup program, and more at the scene of the workstation, if all of the double use of the professional backup program, then , the project cost will be high. In order to achieve not only preservation of the data to, but also the realization of the principle of cost control. Users will generally find ways to compromise to achieve a similar "fake double backup" option, then use PC configuration software will be the two-plane is a good backup choice.
MCGS backup to achieve double the basic hardware requirements:
Double backup, as its name suggests, through two computer data, data backup. The general use of the industrial scene to back up to double what kind of work.
In fact, two-machine backup on general requirements are:
- To achieve real-time data collected in storage two computers at the same time.
- In which a computer (the actual data collection is generally a computer) after failure, I hope to take over the computer back-up computer data acquisition and storage of the collection, and sent warning signals to inform the monitoring officer to deal with computer failures acquisition.
- When the computer back to normal after the acquisition, automatic back-up computer to replace the work of the work to restore the initial state.
- If there is a demand, and also hope to take over the work of the computer during the backup of the stored data can be restored to the collection computer, the true continuous data backup.
Industrial site for the user requirements, we have a clear understanding of the future, the realization of two-machine backup hardware will be a certain prototype.
First of all, on the standby machine can have problems in the acquisition of the computer to take over after the acquisition of all of the work computer, then back-up computer should have a collection of all computer hardware devices, or at least all of the signal interface. In the signal processing capacity, the backup computer and collection of the computer should have the same processing power. The realization of these requirements means that the backup computer must be collected as much as possible and use the same computer configuration, double the external acquisition of equipment (at least double the collection interface). Between two computers and real-time communication, in order to achieve real-time detection of inter-state work requirements. This requires that both computers can communicate with each other between the physical conditions of the lines of communication and the communication line is independent of the site-specific detection of the signal lines "heartbeat" line.
Secondly, the impact of computer use for the conditions and requirements of both computers as far as possible independent, factor to the same adverse impact on the two computers to minimize. Well, in case the conditions allow, to minimize the use of separate independent power supply, the use of functional similarity, but not the same manufacturer of the board and the production of hard disk, CPU and other hardware. However, in combination before you configure two different configurations to test the stability and compatibility issues.
Meet the above requirements in the field of hardware conditions, we can rest assured that the software on the two-machine backup a reality.
MCGS to achieve double the basic requirements for backup software
MCGS configuration used to achieve double backup software is a relatively simple and exciting things.
It is clear that in the two-machine backup both computers must have installed the same version number (this is the best) of the configuration software MCGS; in two projects to use the computer configuration file is the same configuration file works collection version and backup version; in the parallel port on both computers should have the same interpolation software dog points. If the backup machine at the same time assume the role of web server, then the server is used on the project with the same points of the WWW client software dog.
Technical preparation
"Heartbeat" technology through 100M and 100M LAN cable connected to the use of jumper cables, that is, one end of the eight host lines 1,2,3,6, respectively, in the end of the corresponding auxiliary 3,6, 1,2, between two-to TCP / IP protocol for point-to-point data communications, information technology in heart rate monitoring each other.

Figure 1.1 for the heartbeat detection technology
Heart of information technology: As the name suggests, like the heartbeat detection, the detection of a global variable from time to time whether the changes in a specified time if the fragment does not change, on the other side of death found a way. The figure shows the auxiliary heart situation-aware host.
Between the host and auxiliary communications, host global variable settings AutoIncrease, every one seconds it automatically increased by 1 (if more than 100,000, then cleared, to start from scratch), and sent to the Auxiliary. Auxiliary procedures for setting three global variables (the old value OldValue, the new cumulative value NewValue and the same number of counters mNum). Auxiliary host received the data sent by the heartbeat and assign it NewValue, auxiliary procedures for the regular start time every 1 second to determine whether OldValue equivalent NewValue, if different, the same number of counters accumulated since mNum by 1, otherwise mNum clearance zero, and the OldValue equivalent NewValue. MNum then determine whether or not more than 5 and, if so, that the host did not have 5 seconds to send heart rate data to the auxiliary AutoIncrease, which proved to host a fault (which may be death, re-starting the system from the measurement system, etc.), thereby Auxiliary to determine the death of the host, and then trigger auxiliary procedure to replace the work of the host. If mNum less than 5 on the normal host, auxiliary equipment can be run as usual.
MCSG5.1 to achieve double the number of backup options for the realization of the process of
1. A single station to achieve double-site backup

The scene of a single workstation is responsible for collecting the signal at the scene, and complete control of on-site equipment to complete the acquisition of data storage, post-processing, statement printing, data extraction functions. Acquisition Station itself is a complete end-user is the supreme body of control systems. Under such circumstances at the scene to back up the realization of two-plane is on the collection of data and functions of the computer backup.
Figure 1.2 a typical two-plane model of backup systems
II. A single-site stations double backup server
Acquisition of functional computer program with the first function in the same computer and backup computer in the realization of the collection of data and backup functions, but also as a server IE browser, IE browser network functions. On the backup computer, in the normal working state, it is responsible for receiving the computer from the collection of data sent, and the use of HTTP version MCGSWWW external features of the screen to send IE browser; in the acquisition of computer failure, the backup computer to replace the computer in the work of collecting, it is also necessary to provide external services IE browser. Therefore, in the back-up computer network should be used MCGS version, use and acquisition of computer software used dogs of the same points with the network version of the software client dogs. As a result of failure in the acquisition of computers, the backup computer to complete the entire work of two computers, so please collect your computer as soon as possible to avoid any back-up to the collapse of the computer.
III. Multi-collection stations and the server machine to back up between the double
In such circumstances the use of the site, on-site computer is responsible only for data collected at the scene, and then through the TCP / IP or 485 or telephone lines, microwave, radio stations to the collection, and preliminary processed data is sent to the Central Control Office the server from the server up all the data collected is processed to provide the same storage, display, and print statements, and the provision of services for the external browser.
Multi-machine backup computer on the collection can be divided into the backup and the backup server. Acquisition of computer backup machine is a computer can function to provide and collect the same, and communications to and acquisition of computer backup machine. Backup server and the server the same function, but also to provide data processing, storage, display and print functions of statements (although at the scene of the request for such a complex program of dual-drive backup, then use the cost of the project is further) .

IV. The realization of the backup
MCGS configuration software for the realization of two-machine technology to back up critical network equipment in the sub-network devices. Sub-network equipment inside the network data synchronization properties of networks to provide a network state object is called the attribute value. Through the work of the state of the network's value to a variable real-time database, we can determine the value of variables can be drawn on the state of network communications.
Sub-network in the communications equipment must be linked to the parent device, communications equipment is a concept of parent. It is the physical computer summary of the communication interface for data transmission and computer processing of data provided a channel and tools.
Father of the corresponding network equipment to the specific physical interface can be:
- Common computer RS-232C serial communication interface
- Network system linking the basic TCP / IP network interface
- The most common industry RS-485/RS-422 Interface
- Most easily achieved, but also the most common MODEM + telephone line communication interface
- Can be achieved in wireless mobile communication radio communication interface
The corresponding sub-network of off-the-shelf equipment can be attached to any available network parent devices.
Completion of the network equipment has been set up to double the completion of backup hardware, and network equipment and network Father Son equipment if there is any doubt, please refer to the online help system MCGS.
Software, backup computer and collected most of the computer use the same project file configuration, configuration backup project file on the computer and the acquisition of computer equipment The difference lies in the configuration.
As the backup computer with the same computer and gathering external device interface, a backup computer in the configuration window of the equipment, use and acquisition of computer equipment, the same configuration. Add that the same equipment in the same variables, only the initial state Department equipment is set to stop, and whether or not the work of the external devices and network communications status must be linked to a backup computer to detect when the computer did not respond to collection, or to connect two computer communications line failure, the backup will start articulated external computer equipment, data collection work. Backup computer because the computer with the same collection of configuration files, data processing and data reflect the same. This guarantees the continuity of data processing.
In the two returned to normal after computer communications, network communications of the state variables back to the normal value, subject to state control of network communication interface to external devices to stop working to restore. In this way, acquisition of computer backup computer will take over the work of the collection back to normal.
MCGS double machine backup sample project
The realization of the program in detail please see the sample project, if there are any questions please contact technical support MCGS.
Tel: 010-51659278-115/116
Mail: support@hmitech.com
