Method for controlling a planar drive system, wherein the planar drive system comprises at least one control unit, one stator module and one rotor, wherein the stator module is designed to generate stator magnetic fields for electrically controlling the rotor, wherein the rotor has a magnet arrangement for generating a rotor magnetic field, wherein a magnetic coupling can be achieved between the rotor and the stator module by means of the stator magnetic fields and the rotor magnetic field, wherein the stator module, for determining a position of the rotor, comprises a sensor module with a plurality of magnetic field sensors, wherein the magnetic field sensors are arranged in a two-dimensional arrangement on the stator module, and wherein each magnetic field sensor is designed to determine the rotor magnetic field for a spatial region in the two-dimensional arrangement, comprising: generating a position assigning function in an assignment generating step, wherein the position assigning function is designed to assign a position of the rotor relative to the stator module to a plurality of measurement values of the rotor magnetic field of a plurality of magnetic field sensors of the sensor module, wherein the assignment generating step comprises: measuring a plurality of measurement values of the rotor magnetic field using a magnetic field measuring arrangement in a rotor magnetic field measuring step, wherein a three-dimensional measurement of the rotor magnetic field is determined using the plurality of measurement values of the rotor magnetic field; and determining, on the basis of the three-dimensional measurement of the rotor magnetic field, a plurality of values of the rotor magnetic field for a plurality of magnetic field sensors of the sensor module for a plurality of positions of the rotor relative to the stator module in a sensor value determining step, wherein, for each of the plurality of positions of the rotor relative to the stator module, a value of the rotor magnetic field is assigned to each magnetic field sensor of the plurality of magnetic field sensors of the sensor module according to the three-dimensional measurement of the rotor magnetic field; measuring a plurality of measurement values of the rotor magnetic field using magnetic field sensors of the sensor module for a position of the rotor relative to the stator module in a rotor magnetic field determining step; applying the position assigning function to the plurality of measurement values of the rotor magnetic field of the magnetic field sensors of the sensor module in a measurement value analysis step; and determining the position of the rotor relative to the stator module using the position assigning function taking into consideration the assignments determined in the sensor value determining step in a position determining step. measuring a plurality of measurement values of the rotor magnetic field using a magnetic field measuring arrangement in a rotor magnetic field measuring step, wherein a three-dimensional measurement of the rotor magnetic field is determined using the plurality of measurement values of the rotor magnetic field; and determining, on the basis of the three-dimensional measurement of the rotor magnetic field, a plurality of values of the rotor magnetic field for a plurality of magnetic field sensors of the sensor module for a plurality of positions of the rotor relative to the stator module in a sensor value determining step, wherein, for each of the plurality of positions of the rotor relative to the stator module, a value of the rotor magnetic field is assigned to each magnetic field sensor of the plurality of magnetic field sensors of the sensor module according to the three-dimensional measurement of the rotor magnetic field; measuring a plurality of measurement values of the rotor magnetic field using magnetic field sensors of the sensor module for a position of the rotor relative to the stator module in a rotor magnetic field determining step; applying the position assigning function to the plurality of measurement values of the rotor magnetic field of the magnetic field sensors of the sensor module in a measurement value analysis step; and determining the position of the rotor relative to the stator module using the position assigning function taking into consideration the assignments determined in the sensor value determining step in a position determining step.