A device for depositing a wipe-proof and rub-proof marking or code marking, in particular a two-dimensional matrix or line coding onto glass receptacles such as glass ampoules, glass bottles, vials and likewise, comprises a transport means having a drive, with one or more accommodating devices for objects to be inscribed, a
laser system arranged at a distance to the transport means with a
laser source for producing a
laser light beam of a
wavelength <380 nm, said
laser light beam in operation being directed onto the transport path and defining an impingement point in the region of at least one accommodating means moved along the transport path, means in order to deflect the
laser light beam in a first and in a second direction continuously or in certain incremental intervals, and at least one
control unit comprising a memory unit and a
microprocessor which is in connection with the laser
system and the deflection means, for controlling at least the deflection
system and the laser system. The device further comprises a transport means designed for the transport of glass receptacles to be marked, along a transport path, a means for detecting or determining at least the position of at least one accommodating means or a glass receptacle accommodated therein at least one position along the transport path, said means being in connection with the
control unit, and a program stored in the memory unit, which triggers the laser in dependence on the position of the glass receptacle to be inscribed, as well as at least one marking pattern, according to which the deflection means for writing the 2D marking is moved in a first and in a second direction. A read means is provided or arranged at a defined read position along the transport path after the laser system in the transport direction, for detecting the marking previously written by the laser system, said read means being in connection with the
control unit. In the control unit there is further present a program or a program procedure which compares the stored marking pattern to the marking detected by the read means and provides a
control signal in dependence on the result of the comparison, at the output of the control unit.