Machine for the processing of parts in a pendular cycle comprising: - a portal bearing structure which develops in length along a longitudinal direction x and which defines an internal space accessible from the front; - at least two working stations (3, 3') housed in said internal space, arranged one after the other along the longitudinal direction x and separated from each other by a safety partition bulkhead; - a support and actuation group for tools coupled to a tool and to at least a tool-holder magazine, said support and actuation group for tools being slidably coupled to said portal bearing structure so as to be able to translate along the longitudinal direction x between said at least two working stations (3, 3') above said safety partition bulkhead; - a security system comprising: - at least a first detection system associated with a first working station of said working stations (3, 3') and configured to detect, by generating a corresponding first detection signal, the presence and/or passage of a body in a monitoring zone of said first working station; - a logic control unit associated with said support and actuation group for tools and said at least a first detection system, said logic control unit being configured to generate a stop signal to stop at least the advance of said support and actuation group for tools when the following conditions occur: - said logic control unit receives said first detection signal; - said support and actuation group is located in a second working station of said working stations (3, 3') where said second working station is adjacent to said first working station; and - said support and actuation group, moving along said longitudinal direction x towards the safety partition bulkhead, passes a first predetermined position of said second working station, or said support and actuation group occupies a position comprised between said first predetermined position and said safety partition bulkhead. - a portal bearing structure which develops in length along a longitudinal direction x and which defines an internal space accessible from the front; - at least two working stations (3, 3') housed in said internal space, arranged one after the other along the longitudinal direction x and separated from each other by a safety partition bulkhead; - a support and actuation group for tools coupled to a tool and to at least a tool-holder magazine, said support and actuation group for tools being slidably coupled to said portal bearing structure so as to be able to translate along the longitudinal direction x between said at least two working stations (3, 3') above said safety partition bulkhead; - a security system comprising: - at least a first detection system associated with a first working station of said working stations (3, 3') and configured to detect, by generating a corresponding first detection signal, the presence and/or passage of a body in a monitoring zone of said first working station; - at least a first detection system associated with a first working station of said working stations (3, 3') and configured to detect, by generating a corresponding first detection signal, the presence and/or passage of a body in a monitoring zone of said first working station; - a logic control unit associated with said support and actuation group for tools and said at least a first detection system, said logic control unit being configured to generate a stop signal to stop at least the advance of said support and actuation group for tools when the following conditions occur: - said logic control unit receives said first detection signal; - said support and actuation group is located in a second working station of said working stations (3, 3') where said second working station is adjacent to said first working station; and - said support and actuation group, moving along said longitudinal direction x towards the safety partition bulkhead, passes a first predetermined position of said second working station, or said support and actuation group occupies a position comprised between said first predetermined position and said safety partition bulkhead. - said logic control unit receives said first detection signal; - said support and actuation group is located in a second working station of said working stations (3, 3') where said second working station is adjacent to said first working station; and - said support and actuation group, moving along said longitudinal direction x towards the safety partition bulkhead, passes a first predetermined position of said second working station, or said support and actuation group occupies a position comprised between said first predetermined position and said safety partition bulkhead.