Abstract: A molding machine for machining workpieces of wood or plastic material has a transport path for transporting workpieces in a transport direction and adjustable spindles arranged sequentially in the transport direction on the transport path. Tools are fixedly connected on the spindles. Adjusting elements are drivingly connected to the spindles. First indicator devices are coupled to the adjusting elements and indicate a position of the spindles relative to a reference point of the machine, respectively. At least one data storage device is connected to the indicator devices and configured to save position data of the spindles and to allow retrieval of the position data of the spindles.