A method for controlling an electromagnetic actuator for actuating a cylinder valve in a piston-type internal combustion engine, said actuator comprising two electromagnets arranged at a distance to each other, between which an armature acting upon the cylinder valve can respectively move back and forth between the pole faces of the two electromagnets and counter to the force of at least one restoring spring, with a predetermined lift defining the open position and the closed position of the cylinder valve, the method comprising the following steps:
- (a) alternately energizing the electromagnets with a catching current;
- (b) detecting the armature lift by a sensor arrangement during a first phase of movement of the armature from the one pole face to the other pole face;
- (c) controlling, as a function of detected actual values for the armature lift, the current supplied to the catching electromagnet such that the armature moves with a speed tending toward “zero” at a predetermined distance to the pole face of the respective catching electromagnet;
- step (c) being performed during a second phase of armature movement from the one pole face to the other pole face;
- said second phase being subsequent to said first phase and constituting a target window;
- and
- (d) controlling, during armature movement in said target window, the holding current supply of the catching electromagnet such that the armature is held suspended at a short distance from the pole face.