This paper describes the development of an advanced locomotive simulator for educational purposes. First, an overview of currently existing locomotive simulators is made. Next, requirements for the simulator are specified with the aim of significantly improving the reality of the simulation itself. Based on these requirements a modular system is developed. This system allows the use of common modules as well as modifications for different locomotive types. Finally, CD/ZSSK locomotive class 240 simulator is built according to this project.