A
color code detection mechanism capable of being adjusted in a
servo mode on a multi-column
packaging machine comprises an installation base, a conveying roller, a
color code detection module, a
servo adjusting device and a
stroke limit position detection photoelectric device, the installation base is connected with the upper portion of the multi-column
packaging machine, the conveying roller is connected with the installation base, the
color code detection module is connected with the
servo adjusting device, and the servo adjusting device is connected with the installation base. The
stroke limit detection photoelectricity is connected with the upper part of the mounting seat; the servo adjusting device comprises a servo motor, a coupler, a first lead screw, a second lead screw, a first
bevel gear, a second
bevel gear, a third
bevel gear, a fourth bevel gear, a transmission shaft, a first lead screw sliding block, a second lead screw sliding block and an adjustable support. Compared with the prior art, by additionally arranging the servo adjusting mechanism, the operation of the servo motor can be controlled through an HMI screen of a multi-column
packaging machine, and a mechanical structure is controlled and adjusted through a
system, so that the detection position of the color code
detector is adjusted, and the debugging efficiency is greatly improved.