The on-line diagnostic in the control system based on mcontroller