The approach of programmed trajectory motion control (PTMC) is proposed for stabilization of synchronous generators after short-circuit faults followed by islanding and for further synchronization of islanded system with the main grid. This approach is especially useful for small size synchronous machines connected to distribution grid. Integrated solution of both stabilization and synchronization tasks with one control algorithm should improve controllability of small size synchronous machines in emergency and post-emergency conditions and prevent or decrease the time of consumer outage. The distinctive feature of proposed PTMC approach consists in capability of coordinated control of rotor angle, cycling frequency and acceleration which allows implementing efficient stabilizing control in case of large disturbances and precise solution of synchronization task in disturbed conditions. Capabilities of the proposed approach are studied in Matlab/Simulink and corresponding simulation results are provided.