The train diagram is compiled according to the needs of national economic development and the situation of railway transportation capacity. It embodies all the quality and quantity indexes of railway work. Fully consider the principle of people's railway serving the people when compiling the operation diagram. For example, when arranging train routes, first consider passenger trains, and try to arrange buses bound for big cities to arrive during the day and leave in the afternoon or evening. At the same time, arrange freight train running routes. The train diagram specifies the sequence of sections occupied by the train, the departure, arrival or passing time of the train at each station, the section running time, the stay time at the station, the weight and length of the train, etc. In this way, the train diagram also stipulates the use of railway lines, stations, locomotives, vehicles and communication signals, as well as the work of various departments related to driving. Therefore, the train diagram is a comprehensive plan of railway transportation, the basis of railway transportation organization, and a tool to coordinate the production activities of railway departments and units according to certain procedures.