A method for simulating the mechanical behavior of the mechanism of machine tools or production-line machines having multiple drive controllers for driving multiple axes, and a digital controller, said digital controller in each cycle of the controller producing a respective desired axis value for each axis, said method comprising the steps of:
- calculating respective actual axis values for the axes within a cycle of the digital controller using respective different types of axis drive control drive models corresponding to the type of control provided for the respective axis and the respective desired axis values;
- and
- calculating a mechanism model of the behavior of the axes in the mechanism of the machine, said mechanism model providing at least one state signal calculated using said respective actual axis values, said state signal being supplied as feed back to the digital controller, at least one of the multiple axes having NC-axis drive control and at least one of the multiple axes having a PLC-axis drive control, so that at least one NC-model and at least one PLC-model are used to compute the respective actual axis values, and wherein a geometric kinematic mechanism model of the behavior of the axes in the mechanism of the machine is used to produce at least one state signal calculated using said respective actual values.