XCMG hydraulic piston rod digital flexible line is composed of the automatic line and the line edge library; of which the former can grab and process the piston rod, earrings, and the whole parts after welding the two parts simultaneously since there are many kinds of piston rods and earrings in small batches; the latter can achieve the compatible production of various parts to complete the whole line production covering from welding to processing using the compatible roller way conveying method under production management and automatic design.