The use of energy storage power plants (ESPP) seems necessary to create flexibility in the operation of smart grids and increase economic benefits. The power storage power plants connect directly to the smart distribution substation (DS), saving energy costs and increasing energy efficiency. Also, demand response (DR) program management has improved the performance of smart grids by shifting loads. In this regard, the main challenge is the optimal coordination between these two problems by considering control challenges such as limiting the number of charge/discharge times and the number of hours of DR implementation using a linear model that can be solved with powerful commercial solvers. In this paper, we proposed an economic mixed-integer linear programming (MILP) model for optimal coordination of DR and large-scale ESPP considering the practical limitations of charge/discharge times and DR action times with optimal management of distributed generation (DG) resources, which provides more realistic results due to the constraints in operating times in both DR and ESPP. To validate and analyze the proposed model, a standard 33-bus distribution network with a standard Vanadium redox battery power plant and a large 874-bus system with three Vanadium redox battery power plants are considered. Various scenarios have been considered to demonstrate the constraints imposed on the demand side management program and battery charge and discharge, the results of which show that these constraints have a significant impact on the objective function of the problem. Also, by comparing the proposed method with other methods, it was found that the proposed method is more efficient in improving the objective function and limiting options. INDEX TERMS Energy Storage power plant, Distribution Substation, Demand response program, Mathematica model.