| The railway signaling relay is the railway signaling equipment which is used to guarantee the train operation safety and raise the transporting efficiency. The railway station relay circuit is a significant part of the railway signal relay circuit. Whether the logic of the circuit is correct or not will be very important to guarantee the train operation safety, so it should be designed before constructing and using. But the traditional design method of the relay circuit is short of the corresponding auxiliary analysis tool, the accuracy of the results and whether meet the requirements should be checked by human being. In order to meet the demand of the relay circuit design, the simulation software was designed which aims at the existing defects of the design method, this system also can do some tests and analysis for the result of the simulation to improve the work efficiency by the simulation software.Firstly, according to the characteristics and the operating principle of the relay and the whole logic of the railway station relay circuit, the idea, which designing and developing the station relay circuit software simulation system, was proposed, and the whole system framework design was also realized. Secondly, in accordance with the characteristics of the signal equipments, the relay contacts, coils and other basic graphics was designed into graphic units. Using the MFC technique, which is based on the Visual C++platform, to realize the operation of selection, move, deletion for the graphic units and the function of the window scrolling and redrawing. Thirdly, the design has finished drawing the circuit diagram which is based on the realization of the graphic units and the editing operations. For the convenience of the checking and modification of the circuit diagram, the system has saved the data of the circuit diagram into text document format. Finally, according to the data modeling of the circuit diagram and combining the path identification information, the system has realized the circuit simulation.If the design of the circuit is correct in the simulation process, the system can realize the gating of the circuit accurately, otherwise, it can identify the logic error of circuit automatically and prompt the designer to modify the circuit. The simulation system realizes the function of the design and the auxiliary analysis, achieves the anticipated effect, solves the trouble of artificial test and modification, and improves the design efficiency. |