The article explores the features of electronic document management of technical documentation of railway automation and telemechanics. The article deals with the synthesis of mathematical models of electronic document management of technical documentation of railway automation and telemechanics. For this purpose, the real processes of creation, verification and use of technical documentation were examined using the example of the process of accounting and control of railway automation and telemechanics devices, which made it possible to identify a structural diagram of a formalized model of technical documentation. A model of electronic document management of technical documentation is created using the mathematical apparatus of finite state machines. A block diagram of an automaton model of technical documentation is developed. The proposed block diagram of a formalized model of technical documentation consists of matrices of external microoperations, internal microoperations, code creation for the following microcomponents. The number of internal states of the firmware is completely determined by the number of logic elements of the algorithms. The size of the matrices depends on the number of operators and logical conditions in the logic circuits of the algorithms.