Method for optimizing the movement of a machine for working wooden panels that is executed by means of a control unit, wherein said machine comprises: working members for carrying out a working program on the basis of instructions, actuating means, connected to said working members, for actuating the operation on the basis of said instructions, one or more detecting sensors, for detecting data based on predetermined status parameters of said working members and of said actuating means of said machine, and wherein said method comprises the following steps, executed by means of said control unit connected to said actuating means and to said detecting sensors of said machine: A. receiving from said detecting sensors said data, so as to detect the state of use of said working members; B. receiving and reading said working program of said machine; C. optimizing said working program according to said data, so as to obtain a modified working program, obtaining a sequence of movement instructions of said actuating means, according to the use of said working members; D. updating the instructions of said working program with said modified working program; and E. having said modified working program carried out by said machine by means of said actuating means, characterized in that said optimization step C is executed on the basis of an objective function or constraints and in that said objective function or said constraints are selected from one or more of the following: - maximizing the equal distribution of energy consumption between said working members; - minimizing the operations of the working members, which have a number of working hours carried out above a percentage threshold of maximum working hours; and/or - minimizing the dispersion of the operating hours of one or more groups of actuating means. working members for carrying out a working program on the basis of instructions, actuating means, connected to said working members, for actuating the operation on the basis of said instructions, one or more detecting sensors, for detecting data based on predetermined status parameters of said working members and of said actuating means of said machine, and wherein said method comprises the following steps, executed by means of said control unit connected to said actuating means and to said detecting sensors of said machine: A. receiving from said detecting sensors said data, so as to detect the state of use of said working members; B. receiving and reading said working program of said machine; C. optimizing said working program according to said data, so as to obtain a modified working program, obtaining a sequence of movement instructions of said actuating means, according to the use of said working members; D. updating the instructions of said working program with said modified working program; and E. having said modified working program carried out by said machine by means of said actuating means, A. receiving from said detecting sensors said data, so as to detect the state of use of said working members; B. receiving and reading said working program of said machine; C. optimizing said working program according to said data, so as to obtain a modified working program, obtaining a sequence of movement instructions of said actuating means, according to the use of said working members; D. updating the instructions of said working program with said modified working program; and E. having said modified working program carried out by said machine by means of said actuating means, characterized in that said optimization step C is executed on the basis of an objective function or constraints and in that said objective function or said constraints are selected from one or more of the following: - maximizing the equal distribution of energy consumption between said working members; - minimizing the operations of the working members, which have a number of working hours carried out above a percentage threshold of maximum working hours; and/or - minimizing the dispersion of the operating hours of one or more groups of actuating means. - maximizing the equal distribution of energy consumption between said working members; - minimizing the operations of the working members, which have a number of working hours carried out above a percentage threshold of maximum working hours; and/or - minimizing the dispersion of the operating hours of one or more groups of actuating means.