Apparatus for producing security elements on a substrate, comprising - a first printing couple (21; 22), by which a substrate conveyed along a transport path is and/or can be printed with a plurality of spaced-apart first print image elements using a first, magnetic particle-containing coating medium, - a second printing couple (31; 32), by which the substrate is and/or can be printed with spaced-apart second print image elements (14; 12) using a second, magnetic particle-containing coating medium, - a first magnetic cylinder, which is arranged in the transport path downstream of the first printing couple (21; 22) and comprises, on the circumference, magnetic elements for aligning magnetic particles, - a first drying and/or curing device, which is assigned to the first magnetic cylinder or is arranged in the transport path downstream thereof and by which the magnetic particle-containing coating medium of the first print image elements printed by the first printing couple (21; 22) is or can be dried and/or cured at least superficially and/or at least in part in each case, - a second magnetic cylinder, which is arranged in the transport path downstream of the first magnetic cylinder and likewise comprises magnetic elements for aligning magnetic particles, and - a second drying and/or curing device, - wherein the magnetic elements of the first magnetic cylinder and/or of the second magnetic cylinder are arranged on a cylinder main body in such a way that they can be adjusted individually or in groups with regard to their axial and/or circumferential position, characterized in that - the second drying and/or curing device is assigned to the second magnetic cylinder or is arranged in the transport path downstream thereof, - at least the coating medium of the plurality of spaced-apart second print image elements printed on the substrate is and/or can be dried and/or cured at least superficially and/or at least in part in each case by means of the second drying and/or curing device, - the second printing couple (31; 32) is provided in the transport path between the first and the second magnetic cylinder (41; 42), and - the first and/or the second drying and/or curing device (51; 52) is designed to act on the substrate conveyed along the transport path, namely to act thereon in multiple, axially spaced-apart lanes of variable spacing. - a first printing couple (21; 22), by which a substrate conveyed along a transport path is and/or can be printed with a plurality of spaced-apart first print image elements using a first, magnetic particle-containing coating medium, - a second printing couple (31; 32), by which the substrate is and/or can be printed with spaced-apart second print image elements (14; 12) using a second, magnetic particle-containing coating medium, - a first magnetic cylinder, which is arranged in the transport path downstream of the first printing couple (21; 22) and comprises, on the circumference, magnetic elements for aligning magnetic particles, - a first drying and/or curing device, which is assigned to the first magnetic cylinder or is arranged in the transport path downstream thereof and by which the magnetic particle-containing coating medium of the first print image elements printed by the first printing couple (21; 22) is or can be dried and/or cured at least superficially and/or at least in part in each case, - a second magnetic cylinder, which is arranged in the transport path downstream of the first magnetic cylinder and likewise comprises magnetic elements for aligning magnetic particles, and - a second drying and/or curing device, - wherein the magnetic elements of the first magnetic cylinder and/or of the second magnetic cylinder are arranged on a cylinder main body in such a way that they can be adjusted individually or in groups with regard to their axial and/or circumferential position, - the second drying and/or curing device is assigned to the second magnetic cylinder or is arranged in the transport path downstream thereof, - at least the coating medium of the plurality of spaced-apart second print image elements printed on the substrate is and/or can be dried and/or cured at least superficially and/or at least in part in each case by means of the second drying and/or curing device, - the second printing couple (31; 32) is provided in the transport path between the first and the second magnetic cylinder (41; 42), and - the first and/or the second drying and/or curing device (51; 52) is designed to act on the substrate conveyed along the transport path, namely to act thereon in multiple, axially spaced-apart lanes of variable spacing.