For flexible manufacturing systems, there are normally some durations in which a number of machines are idle and do not process any parts. Devising a control policy to turn off the idle machines and reduce their level of energy consumption is a significant contribution towards the green manufacturing paradigm. This paper addresses the design of such a control strategy for a closed-loop flow shop plant based on a one-loop pallet system. The main goal is to coordinate running of the machines and motion of pallets to gain the minimal energy consumption in idle machines, as well as to obtain the desired throughput for the plant. To fulfill this goal, first mathematical conditions, which economically characterize the on-off control for machines, are presented. Constrained to these conditions and the mathematical models describing the pallet system, a mixed integer nonlinear minimization problem with the energy monitor as the objective function is then developed. Provided that the problem computation time can be managed, the optimal control for the operation of the plant and the minimal energy consumption in the idle machines are computed. To deal with the time complexity, a linearized form of the model and a heuristic approach are introduced. These methods are applied to some examples of industrial size, and their impacts in practice are discussed and verified by using a discrete event simulation tool.Note to Practitioners-Control of a flexible manufacturing plant in order to produce a set of part types in a determined production cycle time is a challenging problem. In addition, the problem is more complicated if energy efficiency is considered as an important key in the plant control design. This study provides methods which tackles this complex problem for an industrial size of a pallet-constrained flow shop. The outcome is an optimal switching control strategy, which reduces energy consumption for idle processing machines and maintains a desired throughput for the flow shop plant.Index Terms-Energy model, flow shop plant, heuristic algorithm, optimization, pallet system.