Electromagnetic valve for controlling the flow of a pressure medium, comprising - a valve housing with an inlet port (2.1) and an outlet port (2.2) for the pressure medium, - at least one passage opening, which connects the inlet port (2.1) to the outlet port (2.2), for the pressure medium, - a valve slide that can be moved axially between a first basic position, which closes the passage opening, and a second basic position, which opens the passage opening, by means of a solenoid coil, - a pole core, which enters into magnetic interaction with the valve slide, with an armature space (9.1), and - a spring assembly, which positions the valve slide in the first or the second basic position (I, II) when the solenoid coil is not energized, - wherein the spring assembly comprises a first spring portion (6.1) and a second spring portion (6.2), which is connected in series to the first spring portion, wherein the second spring portion (6.2) has a smaller spring constant than the first spring portion (6.1), - wherein a spring travel limiting means is provided that limits a specified spring travel of the second spring portion (6.2) by resting against the pole core, in order to position the valve slide in an intermediate position between the first and second basic position (I, II) by means of the energized solenoid coil, - wherein the valve slide is designed as an armature with a hollow cylindrical slide portion (4.1), wherein the slide portion (4.1) has at least one radial aperture, and - the valve slide is designed to release at least a partial cross section of the passage opening in the intermediate position, characterized in that the passage opening covers at least partially the aperture in the intermediate position of the valve slide. - a valve housing with an inlet port (2.1) and an outlet port (2.2) for the pressure medium, - at least one passage opening, which connects the inlet port (2.1) to the outlet port (2.2), for the pressure medium, - a valve slide that can be moved axially between a first basic position, which closes the passage opening, and a second basic position, which opens the passage opening, by means of a solenoid coil, - a pole core, which enters into magnetic interaction with the valve slide, with an armature space (9.1), and - a spring assembly, which positions the valve slide in the first or the second basic position (I, II) when the solenoid coil is not energized, - wherein the spring assembly comprises a first spring portion (6.1) and a second spring portion (6.2), which is connected in series to the first spring portion, wherein the second spring portion (6.2) has a smaller spring constant than the first spring portion (6.1), - wherein a spring travel limiting means is provided that limits a specified spring travel of the second spring portion (6.2) by resting against the pole core, in order to position the valve slide in an intermediate position between the first and second basic position (I, II) by means of the energized solenoid coil, - wherein the valve slide is designed as an armature with a hollow cylindrical slide portion (4.1), wherein the slide portion (4.1) has at least one radial aperture, and - the valve slide is designed to release at least a partial cross section of the passage opening in the intermediate position,