Text this: Application of programmed trajectory motion control for the grids containing distributed generation