A method for producing an irradiation plan for a target volume includes preparing a modulation curve that characterizes modulation of particle numbers at target points in the target volume that lie one behind another in a direction of the beam. The method also includes determining a current position of the target volume and defining a plurality of target points that fully cover the target volume in the current position. Particle numbers are assigned to the plurality of current target points using the modulation curve.