A design of an electro-dynamic system of interlocking