A method for at least one of controlling and regulating a movement of rotors in a linear drive configured for transportation of goods or products in a machine station or from one machine station to another machine station, segments being provided for moving the rotors, a control device being configured to at least one of (i) control and (ii) regulate the movement of the rotors on the segments, the linear drive within the control device being configured via assignments in which a respective machine station is assigned a respective station, a respective rotor is assigned a virtual axis, a respective segment is assigned a real axis, the method comprising:
- specifying a movement profile for the respective station;
- specifying input conditions comprising an intended number of virtual axes for the respective station;
- specifying a sequence/position of the real axes;
- and
- controlling or regulating the rotors of the linear drive, the segments being controlled/regulated based on the specification of the real axes, the real axes being ascertained from a respective virtual axis ascertained from at least one of (i) the respective movement profile of the station and (ii) a sequence of passed-through stations;
- wherein the sequence of stations may have been specified for a rotor, and/or results in such a way that the virtual axis is assigned to a station when a station is ready for receiving the intended number of virtual axes and the intended number of virtual axes for the station is available;
- wherein the virtual axes are assigned in accordance with a specified sequence, respectively one after the other, to the specified stations.