A method for controlling a kinematic
system (3), in particular a
robot (15) or a
manipulator (14), of an automatic
machine (1) for
processing or packing articles (2) and comprising the steps of: determining a mechanical configuration of the kinematic
system (3); define, depending on the mechanical configuration of the kinematic
system (3), a cloud (CP) of points (P) representing a set of possible positions in the joint space (JS) that the kinematic system (3) can reach during the performing of the motion profile (MP); wherein each of the points (P) corresponds to a precomputed possible position (q1, q2, q3) of the kinematic system (3) in the joint space (JS); wherein each of the points (P) corresponds to at least one precomputed position (f(P)) of the kinematic system (3) in the
workspace (WS); and, in use, the sequential and cyclic steps of: detecting the current position (q1a, q2a, q3a) of the at least one electric
actuator (6); define, depending on the current position (q1a, q2a, q3a) of the at least one electric
actuator (6), a point (PA) corresponding to said current position by using said cloud (CP) of points as a reference; computing, as direct
kinematics, a respective effective position (f(q1a, q2a, q3a)) of the kinematic system (3) in the
workspace (WS) due to the corresponding point (PA) defined by using said cloud (CP) of points (P) as a reference; control the kinematic system (3), by way of the
control system (9), to perform said motion profile (MP) as a function of said effective position (f(q1a, q2a, q3a)) of said calculated kinematic system (3) in the
workspace (WS).