The invention provides a method and a
system for detecting a distance from a
welding spot center to an R angle. The method comprises the following steps: detecting a part having an interference relationship with a to-be-detected
welding spot file; making a vertical line of a connecting part by taking the
welding spot as a reference and a midpoint; making a cylinder to divide the outer surface of the connecting part; the dividing face is disassembled;
processing each disassembled curved surface to obtain a curved surface boundary intersection line of each curved surface intersected with the cylinder; taking the welding spot as a reference, and respectively making a
vertical plane from the welding spot to a curved surface boundary intersection line of each curved surface; taking a midpoint and two end points of a'curved surface-vertical surface 'intersecting line, and drawing a circle by three points; if the
radius of the circle is larger than a configuration threshold value, the curved surface is a welding surface, and
distance detection is qualified; if not, determining that the curved surface is a chamfered surface, and determining that the
distance detection is unqualified. According to the invention, the detection logic is simplified, the
distance detection from the welding spot to the R angle and the
flanging is automatically realized, the detection is faster and more accurate, the risk is reduced, and the efficiency is improved.