Patent ID: 7423404

Claim:
An anti-collision device for a sample-loading system, the sample-loading system comprising a moving mechanism and a drive motor configured for driving the moving mechanism, the anti-collision device comprising; a code plate defining a plurality of equidistant light penetrating gaps; an optical coupler configured to detect relative location change of the code plate, either the code plate or the optical coupler connecting to and moving along with the moving mechanism; a location signal detecting unit, a drive pulse counting unit and a drive pulse-sending unit, which units together with the drive motor are electrically connected in series; wherein the optical coupler detects the light penetrating gaps of the code plate during a relative movement between the optical coupler and the code plate and outputs detection signals indicative of periodically-changed electrical levels; the location signal detecting unit receives the detection signals and determines whether to output location signals to the drive pulse counting unit according to the detection signals; the drive pulse counting unit is configured for resetting the drive pulse counting unit when receiving the location signals and judging whether a counted number of a drive pulse is equal to or greater than a set value when not receiving the location signals; and if a judged result is “yes”, the drive pulse counting unit controls the drive pulse sending unit to stop sending the drive pulse to the drive motor and reset the drive pulse counting unit, if “no”, the drive pulse counting unit controls the drive pulse sending unit to send one drive pulse to the drive motor and add one to the counting number of the drive pulse.