Method and system for on-line dimension detection of cold heading machines
By obtaining the position of the mold exit edge and the laser in the cold heading machine, analyzing the offset and combining the slider stroke and photoelectric signal changes, the consistency of the reflection path direction is corrected to form a continuous contour path, which solves the problem of unstable dimension detection in the prior art and realizes more stable online dimension detection.
Patent Information
- Application Number
- CN202611566413.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-10
- Publication Date
- 2026-11-27
AI Technical Summary
In existing online dimensional inspection methods for cold heading forming machines, fixed detection positions and single boundary signals lead to assembly deviations at the mold exit. The workpiece posture and speed are easily affected by the machine cycle time. The boundary signal and motion state lack synchronous constraints, resulting in fluctuations in dimensional output. This is especially true for irregularly shaped cold heading parts or scenarios with unclear edge transitions, where the segmentation of the shape is unstable.
By acquiring the position of the mold exit edge and the laser emitter and receiver, the optical path centerline is located and the offset is analyzed. The feed state is identified by combining the slider stroke and time series, the photoelectric signal change sequence is obtained, the consistency of the laser reflection path direction is corrected, a continuous contour path is formed, and the length segment and shape segment are extracted simultaneously to reduce single-point boundary dependence and suppress sampling deviation caused by cycle disturbance.
It improves the contour continuity and dimensional judgment stability of online dimensional inspection of cold heading forming machines, enhances the adaptability to multi-rhythm production scenarios, reduces the impact of posture changes and installation deviations, and improves the accuracy of inspection results.
Smart Images

Figure CN123179172A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of online measurement technology, and in particular to an online dimensional inspection method and system for cold heading machines. Background Technology
[0002] The field of online measurement technology involves a technical system for real-time acquisition and determination of workpiece geometry, positional parameters, and shape characteristics during manufacturing or processing. It mainly includes acquiring target dimensions in motion by setting the relative positional relationship between the measuring device and the object being measured under continuous production or cycle-type processing conditions, utilizing optical projection, receiver arrangement, displacement conversion structure, and signal acquisition circuitry. The dimensional values are then obtained by combining calibration references, sampling intervals, and data conversion methods. This technology is widely used in metal forming, machining, and automated production lines for synchronous measurement of changes in workpiece outer diameter, length, and contour during processing. The traditional online dimensional inspection method for cold heading forming machines refers to acquiring the dimensions of the formed metal parts by arranging fixed inspection devices at the discharge channel or mold exit position during the cold heading equipment production process. Typically, a through-beam photoelectric switch is used to determine the workpiece boundary position, or a laser emitter and receiver form a measurement optical path and use trigonometric relationships to calculate the surface position change, or a contact probe is set up to generate displacement when the workpiece passes through and convert it into an electrical signal through a displacement sensing element. At the same time, combined with fixed reference points and mechanical guiding structures, the dimensions of each workpiece passing through the inspection area are collected to complete the online inspection of the external dimensions of the cold-headed parts.
[0003] Existing technologies mostly rely on fixed detection positions and single boundary signals to complete dimension acquisition. In actual production, there are assembly deviations at the mold exit, and the posture and speed of the workpiece are easily affected by the equipment cycle time when it passes through the detection area. Fixed references are difficult to reflect instantaneous spatial relationships, and the boundary signals and motion states lack synchronous constraints, which can easily cause the sampling window to shift back and forth, and the continuity of reflection path or probe displacement information is insufficient. In the case of irregular cold-forged parts or unclear edge transitions, the segmentation of the shape is unstable, resulting in fluctuations in the dimension output. Summary of the Invention
[0004] To address the technical problems existing in the prior art, embodiments of the present invention provide an online dimensional detection method for cold heading machines; To achieve the above objectives, the present invention adopts the following technical solution: an online dimensional detection method for a cold heading machine, comprising the following steps: S1: Obtain the position of the mold exit edge and the laser emitter and receiver, locate the midpoint position to obtain the optical path centerline, compare it with the mold center and analyze the offset, extract the position components and associate them with the reference relationship to obtain the measurement reference position set; S2: Based on the set of measurement reference positions, obtain the slider stroke and time sequence, identify the stroke direction to obtain the feed state sequence, filter the state transition time points and associate them with the time sequence to obtain the sampling trigger node sequence; S3: Based on the sampling trigger node sequence, obtain the photoelectric signal change sequence, identify the level change to obtain the boundary time sequence, match the trigger time and filter the time segment, associate the time sequence, and obtain the workpiece boundary sampling interval set; S4: Based on the set of sampling intervals of the workpiece boundary, obtain the laser reflection path and direction change sequence, sort the paths and compare the direction consistency, filter and correct inconsistent positions, and perform spatial mapping in combination with the reference position to obtain the set of workpiece contour paths. S5: Based on the workpiece contour path set, extract the start and end positions of the path to obtain the length segment, identify the middle contour to obtain the shape segment, match the size range, associate the output status, and obtain the online size detection result status set.
[0005] As a further embodiment of the present invention, the measurement reference position set includes an optical path center reference point, a mold edge center point, a spatial offset vector, an axial offset component, a radial offset component, and a reference coordinate reference; the sampling trigger node sequence includes a feed start node, a feed end node, a state reversal node, a time marker node, and a sequential trigger node; the workpiece boundary sampling interval set includes a boundary start interval, a boundary end interval, a sampling interval, a time matching interval, and a signal stability interval; the workpiece contour path set includes path start coordinates, path end coordinates, continuous contour segments, direction change nodes, and a spatial mapping path; and the online dimension detection result status set includes dimension qualified status, dimension out-of-tolerance status, length deviation status, contour abnormal status, and detection output identifier.
[0006] As a further aspect of the present invention, the reference relationship refers to associating the optical path center, the mold position, and the offset component to unify the spatial correspondence between the measurement coordinates and the reference. The feed state sequence refers to a continuous motion state arrangement sequence formed according to the direction of change of slider displacement over time.
[0007] As a further aspect of the present invention, the state transition time point refers to the time marker node corresponding to the feed state changing from forward to reverse and from reverse to forward. The inconsistent position refers to the path node position where the displacement direction of the laser reflection path does not match the sign of the optical path direction.
[0008] As a further aspect of the present invention, the specific steps of S1 are as follows: S101: Obtain the position of the cold heading forming machine mold exit edge, the laser emitter installation position, and the laser receiver installation position. Based on the three-dimensional coordinates of the emitter installation position and the receiver installation position, perform equal weight averaging to obtain the coordinates of the spatial midpoint. Extend a straight line along the direction from the emitter to the receiver, starting from the midpoint coordinates, to obtain the position of the optical path centerline. S102: Compare the three-dimensional coordinates of the optical path centerline position with the mold exit edge center position axis by axis, extract the coordinate axis direction position offset values, call the preset direction filtering benchmark to judge the direction offset values, and obtain the position offset component set; S103: Based on the set of position offset components, call the corresponding matching of the mold exit edge position and the optical path centerline position coordinates, associate the offset components with the corresponding spatial coordinates, and unify the reference coordinate system and merge the coordinate nodes according to the association results to obtain the set of measurement reference positions.
[0009] As a further aspect of the present invention, the specific steps of S2 are as follows: S201: Based on the set of measurement reference positions, obtain the slider stroke and time sequence within the corresponding area, arrange the displacement sampling data in sequence according to the time marker and extract the direction of adjacent displacement changes, identify the direction of the displacement sequence according to the sign of the direction of change, and obtain the feed state sequence. S202: Based on the feed state sequence, call adjacent state symbols and compare them point by point, extract the nodes where the symbols change from positive to negative and from negative to positive, and extract the corresponding time positions of the state switching by combining the corresponding time markers to obtain the set of state transition time points; S203: Based on the set of state transition time points, call the time identifier to determine the order, associate the time point time series and sort them in order according to the time progression relationship to obtain the sampling trigger node sequence.
[0010] As a further aspect of the present invention, the specific steps of S3 are as follows: S301: Based on the sampling trigger node sequence, obtain the photoelectric signal change sequence and corresponding time marker at the mold exit position, arrange the signal sequence according to the time marker and extract the level symbols of adjacent sampling points, and judge and extract the corresponding time position of level flipping according to the level symbol change to obtain the boundary time sequence. S302: Based on the sampling trigger node sequence and by calling the boundary time sequence for comparison, the relationship between the sampling trigger node time and the boundary change time interval is retrieved point by point, and the segments are screened according to the preset time matching benchmark to obtain the time matching segment set; S303: Based on the time matching segment set, call the sampling trigger node sequence associated interval, determine the time order of sampling nodes within the segment and divide the interval to obtain the workpiece boundary sampling interval set.
[0011] As a further aspect of the present invention, the specific steps of S4 are as follows: S401: Based on the set of sampling intervals of the workpiece boundary, obtain the laser reflection path and direction change sequence, rearrange the reflection path change sequence according to the sampling time order, extract the spatial displacement direction of adjacent path nodes and verify the order to obtain the path sequence sequence. S402: Based on the path sequence, call the optical path direction change sequence and compare it point by point, extract the correspondence between the path displacement direction and the optical path direction sign, judge and locate the corresponding node index according to the position of inconsistent sign, and obtain the set of direction deviation positions; S403: Based on the set of directional deviation positions, call the set of measurement reference positions to replace the spatial coordinates, correct the coordinate direction corresponding to the deviation node and map it to the corresponding reference coordinate execution position to obtain the set of workpiece contour paths.
[0012] As a further aspect of the present invention, the specific steps of S5 are as follows: S501: Based on the spatial coordinates of the path nodes in the workpiece contour path set, extract the coordinates of the path start node and end node and calculate the axial distance to obtain the path length value. Extract the contour range of the intermediate nodes according to the distribution of the path nodes to obtain the outer dimension boundary, and obtain the path length segment and the outer dimension segment. S502: Based on the path length segment and the shape segment, match the length value and the shape boundary range item by item, classify the matching result intervals according to the preset size interval benchmark and retain the corresponding relationship to obtain the size interval correspondence set; S503: Based on the set of corresponding size intervals, call the detection output identifier to determine the status, associate the corresponding status order of the intervals, and obtain the online size detection result status set.
[0013] An online dimensional inspection system for a cold heading machine includes: The reference positioning module obtains the position of the mold exit edge and the laser emitter and receiver, and locates the midpoint position to obtain the optical path centerline. It compares the centerline with the mold center and analyzes the offset, extracts the position components and associates them with reference relationships to obtain a set of measurement reference positions. The beat recognition module, based on the set of measurement reference positions, obtains the slider stroke and time sequence, identifies the direction of stroke change to obtain the feed state sequence, filters the state transition time points and associates them with the time sequence to obtain the sampling trigger node sequence; The boundary acquisition module acquires the photoelectric signal change sequence based on the sampling trigger node sequence, identifies the level change to acquire the boundary time sequence, matches the trigger time and filters the time segment, associates the time sequence, and obtains the workpiece boundary sampling interval set. The contour inversion module, based on the set of sampling intervals of the workpiece boundary, obtains the laser reflection path and direction change sequence, sorts the paths and compares the direction consistency, filters and corrects inconsistent positions, and performs spatial mapping in combination with the reference position to obtain the set of workpiece contour paths. The dimension determination module, based on the workpiece contour path set, extracts the start and end positions of the path to obtain the length segment, identifies the middle contour to obtain the shape segment, matches the dimension range, associates the output status, and obtains the online dimension detection result status set.
[0014] Compared with the prior art, the advantages and positive effects of the present invention are as follows: In this invention, by using a reference offset quantization calibration, linking the travel state and trigger nodes, and collecting boundary level changes according to the time sequence, the reflection path is subjected to directional consistency verification and spatial mapping to form a continuous contour path. The length segment and shape segment are extracted simultaneously and associated with the state output, reducing single-point boundary dependence, weakening the influence of attitude changes and installation deviations, suppressing sampling deviations caused by cycle disturbances, improving contour continuity and size determination stability, and enhancing adaptability to shape and multi-rhythm production scenarios. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 This is a schematic diagram of the steps of the present invention; Figure 2 This is a detailed schematic diagram of S1 of the present invention; Figure 3 This is a detailed schematic diagram of S2 of the present invention; Figure 4 This is a detailed schematic diagram of S3 of the present invention; Figure 5 This is a detailed schematic diagram of S4 of the present invention; Figure 6 This is a detailed schematic diagram of S5 of the present invention; Figure 7 This is a system module diagram of the present invention. Detailed Implementation
[0017] The technical solution of the present invention will now be described with reference to the accompanying drawings.
[0018] To make the technical problems, technical solutions and advantages of the present invention clearer, a detailed description will be given below in conjunction with the accompanying drawings and specific embodiments.
[0019] Please see Figure 1 This invention provides an online dimensional inspection method for a cold heading machine, comprising the following steps: S1: Obtain the position of the cold heading forming machine mold exit edge, the laser emitter installation position, and the laser receiver installation position; locate the midpoint between the emitter installation position and the receiver installation position to obtain the optical path centerline position; compare the spatial position of the optical path centerline position with the center position of the mold exit edge; analyze the spatial position offset and filter the corresponding position components; based on the filtered position components, associate the measurement reference position relationship to obtain the measurement reference position set. S2: Based on the set of measurement reference positions, obtain the stroke change sequence and corresponding time sequence of the feeding slider of the cold heading forming machine in the corresponding area of the set of measurement reference positions, identify the direction change of the stroke change sequence to obtain the feed state sequence, compare the changes of adjacent state symbols in the feed state sequence and filter the state transition time points, and obtain the sampling trigger node sequence based on the time sequence relationship of the filtered time points associated with the trigger nodes. S3: Based on the sampling trigger node sequence, call the photoelectric beam signal change sequence at the mold exit position, identify the level change of the photoelectric beam signal change sequence to obtain the boundary time sequence, compare the sampling trigger node sequence with the boundary time sequence and filter the matching time segments, and obtain the workpiece boundary sampling interval set according to the order relationship of the filtered time segments associated with the sampling time intervals. S4: Based on the workpiece boundary sampling interval set, obtain the laser reflection path and direction change sequence, arrange the reflection path change sequence order, compare the adjacent optical path direction change sequence, judge the path sequence and direction change and filter inconsistent positions, adjust the inconsistent positions and perform corresponding mapping in combination with the measurement reference position set space to obtain the workpiece contour path set. S5: Based on the workpiece contour path set, the length segment is obtained by comparing the starting position and ending position of the path, the shape segment is obtained by identifying the contour range distributed in the middle position of the path, the size range of the length segment and the shape segment is compared and the corresponding size interval relationship is filtered, and the detection output status is associated according to the filtered relationship to obtain the online size detection result status set.
[0020] The measurement reference position set includes the optical path center reference point, the mold edge center point, the spatial offset vector, the axial offset component, the radial offset component, and the reference coordinate reference. The sampling trigger node sequence includes the feed start node, the feed end node, the state reversal node, the time marker node, and the sequential trigger node. The workpiece boundary sampling interval set includes the boundary start interval, the boundary end interval, the sampling interval, the time matching interval, and the signal stabilization interval. The workpiece contour path set includes the path start coordinates, the path end coordinates, the continuous contour segment, the direction change node, and the spatial mapping path. The online dimension inspection result status set includes the dimension qualified status, the dimension out-of-tolerance status, the length deviation status, the contour abnormal status, and the inspection output identifier.
[0021] Please see Figure 2 The specific steps of S1 are as follows: S101: Obtain the position of the cold heading forming machine mold exit edge, the laser emitter installation position, and the laser receiver installation position. Based on the three-dimensional coordinates of the emitter installation position and the receiver installation position, perform equal weight averaging to obtain the coordinates of the midpoint in space. Extend a straight line along the direction from the emitter to the receiver, starting from the midpoint coordinates, to obtain the position of the optical path centerline. First, the geometric parameters of the mold exit edge are retrieved via the cold heading machine control terminal. The laser emitter is mounted on a support frame on one side of the mold, and the laser receiver is mounted at the corresponding position on the opposite side. A distance sensor is deployed radially at the mold exit to monitor the radial jitter of the workpiece in real time. This distance sensor uses a high-precision laser triangular reflection principle to capture displacement changes during workpiece passage. The installation coordinates of the emitter and receiver in three-dimensional space are acquired simultaneously. The initial radial offset of the distance sensor relative to the optical path centerline is recorded. A weighted averaging process of the spatial coordinates is performed, averaging the coordinates of the emitter and receiver along each coordinate axis to determine the spatial midpoint coordinates between them. A direction vector is established pointing from the emitter's installation position to the receiver's installation position. This direction vector guides the linear expansion of the spatial midpoint coordinates, constructing a straight line traversing the central region of the cold heading machine mold, thus obtaining the position of the optical path centerline.
[0022] S102: Compare the three-dimensional coordinates of the optical path centerline position with the mold exit edge center position axis by axis, extract the coordinate axis direction position offset values, call the preset direction filtering benchmark to judge the direction offset values, and obtain the position offset component set; First, the discrete point coordinates of the optical path centerline position in the spatial coordinate system are retrieved, and the three-dimensional reference coordinates of the mold exit edge center position are simultaneously acquired. The reference coordinates on the optical path centerline and the reference coordinates of the mold exit edge center position are compared axis by axis to obtain the offset values in each coordinate axis direction. Simultaneously, the real-time reference distance signal fed back by the distance sensor is read and compared with the static installation coordinates to verify the initial deviation caused by environmental vibration. A preset direction filtering benchmark is invoked to determine whether the offset values of each axis are within the allowable range. If the offset value meets the direction filtering benchmark, the value is retained as a valid offset feature. The offset amount in each coordinate axis direction and its corresponding positive and negative polarity signs are encapsulated to obtain the position offset component set.
[0023] S103: Based on the position offset component set, call the corresponding matching of the mold exit edge position and the optical path centerline position coordinates, associate the offset component with the corresponding spatial coordinates, and unify the reference coordinate system and merge the coordinate nodes according to the association result to obtain the measurement reference position set. First, based on the axis values of the position offset components, they are superimposed and mapped to the original coordinates of the mold exit edge position. The spatial coordinates of the mold exit edge position are then used, combined with the coordinates of the optical path centerline, to match them in the same spatiotemporal dimension, identifying the geometric relationship between the optical path axis and the physical contour of the mold. The offset components are then associated with their corresponding spatial coordinate points. During this process, the initial real-time radial position value measured by the distance sensor is introduced as an auxiliary correction factor for spatial coordinate normalization, compensating for the minute displacement of the sensor support caused by mechanical thermal deformation. A specific midpoint on the optical path centerline is used as the virtual coordinate origin through a spatial transformation matrix, unifying the reference coordinate system. The calculated coordinate nodes are then merged. Finally, the corrected mold edge coordinates, optical path centerline coordinates, and equipment frame reference point coordinates are summarized to obtain the measurement reference position set.
[0024] Please see Figure 3 The specific steps of S2 are as follows: S201: Based on the set of measurement reference positions, obtain the slider stroke and time sequence within the corresponding area, arrange the displacement sampling data in sequence according to the time marker and extract the direction of adjacent displacement changes, identify the direction of the displacement sequence according to the sign of the direction of change, and obtain the feed state sequence; First, based on the set of measurement reference positions, displacement sampling data of the feeding slider is acquired from the displacement sensors of the cold heading machine's feeding mechanism. The sensor sampling frequency is preset according to the production cycle and detection accuracy requirements of the cold heading machine. Each displacement data item carries a synchronization time marker generated by a clock. Simultaneously, the distance sensor synchronously acquires radial distance data between the workpiece's outer circumference and the probe, ensuring strict alignment of displacement step and radial runout data on the time axis. All displacement sampling data are arranged according to the increasing order of the time markers, and the numerical difference between two adjacent displacement sampling values is extracted. If the difference is positive, it is marked as a positive motion symbol; if the difference is negative, it is marked as a negative motion symbol. By statistically analyzing the changing direction symbols of continuous sampling points, the overall motion flow of the displacement sequence is identified, resulting in the feed state sequence.
[0025] S202: Based on the feed state sequence, call adjacent state symbols and compare them point by point. Extract the nodes where the symbols change from positive to negative and from negative to positive. Combine the corresponding time markers to extract the corresponding time positions of the state transitions and obtain the set of state transition time points. First, adjacent state symbols in the feed state sequence are retrieved, and a point-by-point comparison operation is performed starting from the beginning of the sequence. When the state symbol of the current sampling point changes from a positive symbol to a negative symbol, or vice versa, that position is determined to be a motion direction switching node. Combined with the synchronization time flag corresponding to this node, the precise time point of the state switch is extracted. The distance sensor sampling value corresponding to this time point is called to analyze whether the workpiece experiences radial hysteresis fluctuations at the moment of slider reversal. Through a comprehensive search of the entire feed state sequence, all reversal moments of the slider at the stop position are captured, resulting in a set of state transition time points.
[0026] S203: Based on the set of state transition time points, call the time identifier to determine the order, associate the time point time series and sort them in order according to the time progression relationship to obtain the sampling trigger node sequence; First, based on the set of state transition time points, the order of each transition point is determined by calling the time identifier. The time points in the set are then associated according to a time sequence from earliest to latest, and sorted sequentially according to their time progression. During the sorting process, the workpiece end face monitored by the distance sensor is used to perform secondary verification of the time nodes via signals, eliminating the influence of slider idle travel on the trigger timing. By performing logical verification on the sorted time sequence, false switching points caused by vibration are eliminated, retaining the true motion trigger moments. This sequence serves as the control timing for the subsequent on / off of the laser detection signal, resulting in the sampling trigger node sequence.
[0027] Please see Figure 4 The specific steps of S3 are as follows: S301: Based on the sampling trigger node sequence, obtain the photoelectric signal change sequence and corresponding time marker at the mold exit position, arrange the signal sequence according to the time marker and extract the level symbols of adjacent sampling points, and judge and extract the corresponding time position of level flipping according to the level symbol change to obtain the boundary time sequence. First, the detection window is determined based on the sampling trigger node sequence. The signal change sequence of the photoelectric through-beam sensor located at the mold exit is retrieved. The sensor output level switches between high and low levels depending on the workpiece's occlusion status. The signals are arranged in a time sequence according to the synchronization time marker, and the levels of adjacent sampling points are extracted and abrupt changes are identified. When the level abruptly changes from high to low, it is determined that the front edge of the workpiece has arrived; when the level rises back from low to high, it is determined that the rear edge of the workpiece has left. Simultaneously, the corresponding radial clearance data is recorded at the level reversal moments. However, instead of directly using single-point measurements at a single moment for tilt angle determination, the spatial positions and clearance data corresponding to multiple edge reversal moments are correlated and combined to meet the requirement that the tilt angle, as a spatial geometric parameter, needs to be estimated based on multi-point information. Finally, the precise time position of each level reversal is recorded point by point to obtain the boundary time sequence.
[0028] S302: Based on the sampling trigger node sequence and calling the boundary time sequence for comparison, retrieve the relationship between the sampling trigger node time and the boundary change time interval point by point, screen the segments according to the preset time matching benchmark, and obtain the time matching segment set; First, based on the reference time in the sampling trigger node sequence, the time difference between each sampling trigger node time and the most recent boundary change time is calculated to obtain the time interval value. A preset time matching benchmark is then invoked, which is dynamically calculated based on the current stamping frequency of the cold heading machine. If the signal fluctuation of the distance sensor exceeds a preset dynamic stability threshold within the time interval, the matching window is automatically reduced to improve data purity. If the time interval value falls within the screening segment corresponding to the preset time matching benchmark, the boundary change time is determined to belong to the same workpiece processing cycle as the current feeding action. By screening all time points one by one, interference and noise signals are eliminated to obtain the time matching segment set.
[0029] S303: Based on the time matching segment set, call the sampling trigger node sequence associated interval, determine the time order of sampling nodes in the segment and divide the interval to obtain the workpiece boundary sampling interval set; First, based on the time-matching segment set, the order of appearance of each sampling node within each matching segment is determined. According to the preset ratio of the feed slider stroke to the workpiece length, the intervals along the workpiece axis for each sampling point are defined. In this step, the average data from the distance sensor within different intervals are extracted as correction parameters for the coaxiality of that workpiece segment. The sampling intervals can be divided into different geometric segments such as head, rod, and tail intervals based on the workpiece's structural characteristics. Through precise division of sampling time, it is ensured that even if the workpiece experiences slight vibrations during high-speed movement, its sampling data can still be accurately locked within the corresponding geometric segment, resulting in a set of workpiece boundary sampling intervals.
[0030] Please see Figure 5 The specific steps of S4 are as follows: S401: Based on the workpiece boundary sampling interval set, obtain the laser reflection path and direction change sequence, rearrange the reflection path change sequence according to the sampling time order, extract the spatial displacement direction of adjacent path nodes and verify the order to obtain the path sequence sequence; First, based on the workpiece boundary sampling interval set, the corresponding laser rangefinder sensor output data sequence is obtained. This sensor samples the workpiece surface at a preset sampling frequency, obtaining the one-way distance or equivalent ranging value corresponding to the beam's journey from emission to reflection from the workpiece surface and back to the receiver, rather than independently constructing a complete "reflection path round trip process." Simultaneously, a sequence of optical path direction changes is acquired to describe the transient angle change of the laser measurement direction relative to the workpiece's motion trajectory. Furthermore, normal displacement data from the same time sequence is retrieved as an auxiliary variable to participate in spatial geometric relationship calculations, correcting measurement deviations caused by workpiece posture changes, rather than compensating for non-existent "reflection path increments." Subsequently, the distance data is rearranged according to the sampling time sequence, and the spatial displacement direction vector between adjacent sampling points is calculated by combining the measurement direction information. The continuity of the displacement direction is constrained and verified to ensure that the distribution of each sampling point in three-dimensional space conforms to the geometric characteristics of the actual workpiece surface, resulting in a path sequence sequence.
[0031] S402: Based on the path sequence, call the optical path direction change sequence and compare it point by point, extract the correspondence between the path displacement direction and the optical path direction sign, judge the position of the inconsistency of the sign and locate the corresponding node index, and obtain the direction deviation position set; First, based on the displacement characteristics of each point in the path sequence, the sign of the path displacement direction is compared with the sign of the optical path direction. When a mismatch is found, the signal status of the distance sensor is checked first. If the distance sensor indicates a significant radial deviation of the workpiece, this deviation component is removed from the path displacement before comparison. If a mismatch is detected between the path displacement direction sign and the optical path direction sign at a corresponding moment, it is determined that a directional deviation has occurred at that point. All locations with inconsistent signs are extracted through logical discrimination, and the node indices of these abnormal points in the original sequence are located to obtain the set of directional deviation locations.
[0032] S403: Based on the set of orientation deviation positions, call the set of measurement reference positions to replace the spatial coordinates, correct the coordinate direction of the deviation node and map it to the corresponding execution position of the reference coordinates to obtain the set of workpiece contour paths; First, based on the set of directional deviation positions, standard coordinate data from the measurement reference position set is used as a reference to uniformly correct the original spatial coordinates corresponding to each deviation node. According to the reference vector of the optical path axis and the real-time radial compensation information provided by the distance sensor, the spatial direction and position of the deviation nodes are corrected to ensure that the corrected points return to the actual physical axis or surface geometric constraints of the workpiece. Then, all corrected node coordinates are consistently mapped and aligned with the reference coordinate system, integrating the originally discrete path points into a continuous geometric contour. For the set of disturbed sampling points, the specific number is no longer limited; instead, linear interpolation or fitting correction is performed based on their projection relationship on the reference axis, and spatial alignment is completed by combining the measured height information from the distance sensor, thereby restoring their true geometric properties and obtaining the workpiece contour path set.
[0033] Please see Figure 6 The specific steps of S5 are as follows: S501: Based on the spatial coordinates of the path nodes in the workpiece contour path set, extract the coordinates of the path start node and end node and calculate the axial distance to obtain the path length value. Extract the contour range of the intermediate nodes according to the distribution of the path nodes to obtain the outer dimension boundary, and obtain the path length segment and the outer dimension segment. First, the coordinates of the starting nodes and the corresponding ending nodes of each workpiece path are extracted from the workpiece contour path set. The geometric distance between the starting and ending nodes along the main motion axis is calculated to obtain the path length. The monitoring data from the distance sensor throughout the workpiece's passage is extracted, and the straightness deviation of the workpiece is obtained by calculating the range of radial distance variation. Based on the extreme values of the path nodes in the lateral and height directions, the contour envelope range corresponding to the intermediate nodes is extracted to obtain the workpiece's diameter or width and other external dimensional boundaries, thus obtaining the path length segments and external shape segments.
[0034] S502: Based on the path length segment and the shape segment, match the length value and the shape boundary range item by item, classify the matching result intervals according to the preset size interval benchmark and retain the corresponding relationship to obtain the size interval correspondence set; First, based on the calculation results of the path length and shape segments, a preset dimensional reference range is retrieved. This reference range includes the dimensional definitions for qualified, reworked, and scrap products. The path length values are matched against the length reference range, and the boundary values of the shape dimensions are matched against the shape reference range. The radial runout value fed back by the distance sensor is checked to see if it is within the allowable tolerance zone. If all values fall within the corresponding range, the matching result is classified as qualified. The correspondence between each dimension and the reference range is retained, resulting in a set of dimensional range correspondences.
[0035] S503: Based on the size interval correspondence set, call the detection output identifier to determine the status, associate the interval corresponding status order, and obtain the online size detection result status set; First, based on the set of corresponding size intervals, the final state of each workpiece is determined by calling the detection output identifier. The matching results of each interval are correlated, and a state sequence is generated according to the sampling time order. By comprehensively considering the laser optical path measurement results and the multi-dimensional verification data from the distance sensor, the workpiece quality is cross-evaluated, significantly reducing the risk of misjudgment due to a single sensor failure. If all size items of a workpiece meet the benchmark, it is marked as normal. If any item does not meet the benchmark, it is marked as a warning or abnormal state according to the degree of deviation, and can be further linked to the sorting device to perform corresponding processing, obtaining an online size detection result state set.
[0036] Please see Figure 7 An online dimensional inspection system for a cold heading machine, comprising: The reference positioning module obtains the position of the mold exit edge and the laser emitter and receiver, and locates the midpoint position to obtain the optical path centerline. It compares the centerline with the mold center and analyzes the offset, extracts the position components and associates them with reference relationships to obtain a set of measurement reference positions. The beat recognition module, based on a set of measurement reference positions, obtains the slider stroke and time sequence, identifies the direction of stroke change to obtain the feed state sequence, filters the state transition time points and associates them with the time sequence to obtain the sampling trigger node sequence; The boundary acquisition module acquires the photoelectric signal change sequence based on the sampling trigger node sequence, identifies the level change to obtain the boundary time sequence, matches the trigger time and filters the time segment, and associates the time sequence to obtain the workpiece boundary sampling interval set. The contour inversion module obtains the laser reflection path and direction change sequence based on the workpiece boundary sampling interval set, sorts the paths and compares the direction consistency, filters and corrects inconsistent positions, and performs spatial mapping with the reference position to obtain the workpiece contour path set. The dimension determination module extracts the start and end positions of the path to obtain the length segment based on the workpiece contour path set, identifies the shape segment by recognizing the middle contour, matches the dimension range, associates the output status, and obtains the online dimension detection result status set.
[0037] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. An online dimensional inspection method for a cold heading machine, characterized in that, include: S1: Obtain the position of the mold exit edge and the laser emitter and receiver, locate the midpoint position to obtain the optical path centerline, compare it with the mold center and analyze the offset, extract the position components and associate them with the reference relationship to obtain the measurement reference position set; S2: Based on the set of measurement reference positions, obtain the slider stroke and time sequence, identify the stroke direction to obtain the feed state sequence, filter the state transition time points and associate them with the time sequence to obtain the sampling trigger node sequence; S3: Based on the sampling trigger node sequence, obtain the photoelectric signal change sequence, identify the level change to obtain the boundary time sequence, match the trigger time and filter the time segment, associate the time sequence, and obtain the workpiece boundary sampling interval set; S4: Based on the set of sampling intervals of the workpiece boundary, obtain the laser reflection path and direction change sequence, sort the paths and compare the direction consistency, filter and correct inconsistent positions, and perform spatial mapping in combination with the reference position to obtain the set of workpiece contour paths. S5: Based on the workpiece contour path set, extract the start and end positions of the path to obtain the length segment, identify the middle contour to obtain the shape segment, match the size range, associate the output status, and obtain the online size detection result status set.
2. The online dimensional detection method for a cold heading machine according to claim 1, characterized in that: The measurement reference position set includes the optical path center reference point, the mold edge center point, the spatial offset vector, the axial offset component, the radial offset component, and the reference coordinate reference. The sampling trigger node sequence includes the feed start node, the feed end node, the state reversal node, the time marker node, and the sequential trigger node. The workpiece boundary sampling interval set includes the boundary start interval, the boundary end interval, the sampling interval, the time matching interval, and the signal stability interval. The workpiece contour path set includes the path start coordinates, the path end coordinates, the continuous contour segment, the direction change node, and the spatial mapping path. The online dimension detection result status set includes the dimension qualified status, the dimension out-of-tolerance status, the length deviation status, the contour abnormal status, and the detection output identifier.
3. The online dimensional detection method for a cold heading forming machine according to claim 1, characterized in that: The reference relationship refers to associating the optical path center, mold position, and offset components to unify the spatial correspondence between the measurement coordinates and the reference. The feed state sequence refers to a continuous motion state arrangement sequence formed according to the direction of change of slider displacement over time.
4. The online dimensional detection method for a cold heading machine according to claim 1, characterized in that: The state transition time point refers to the time marker node corresponding to the feed state changing from forward to reverse and from reverse to forward; The inconsistent position refers to the path node position where the displacement direction of the laser reflection path does not match the sign of the optical path direction.
5. The online dimensional detection method for a cold heading machine according to claim 1, characterized in that, The specific steps of S1 are as follows: S101: Obtain the position of the cold heading forming machine mold exit edge, the laser emitter installation position, and the laser receiver installation position. Based on the three-dimensional coordinates of the emitter installation position and the receiver installation position, perform equal weight averaging to obtain the coordinates of the spatial midpoint. Extend a straight line along the direction from the emitter to the receiver, starting from the midpoint coordinates, to obtain the position of the optical path centerline. S102: Compare the three-dimensional coordinates of the optical path centerline position with the mold exit edge center position axis by axis, extract the coordinate axis direction position offset values, call the preset direction filtering benchmark to judge the direction offset values, and obtain the position offset component set; S103: Based on the set of position offset components, call the corresponding matching of the mold exit edge position and the optical path centerline position coordinates, associate the offset components with the corresponding spatial coordinates, and unify the reference coordinate system and merge the coordinate nodes according to the association results to obtain the set of measurement reference positions.
6. The online dimensional detection method for a cold heading machine according to claim 1, characterized in that, The specific steps of S2 are as follows: S201: Based on the set of measurement reference positions, obtain the slider stroke and time sequence within the corresponding area, arrange the displacement sampling data in sequence according to the time marker and extract the direction of adjacent displacement changes, identify the direction of the displacement sequence according to the sign of the direction of change, and obtain the feed state sequence. S202: Based on the feed state sequence, call adjacent state symbols and compare them point by point, extract the nodes where the symbols change from positive to negative and from negative to positive, and extract the corresponding time positions of the state switching by combining the corresponding time markers to obtain the set of state transition time points; S203: Based on the set of state transition time points, call the time identifier to determine the order, associate the time point time series and sort them in order according to the time progression relationship to obtain the sampling trigger node sequence.
7. The online dimensional detection method for a cold heading machine according to claim 1, characterized in that, The specific steps for S3 are as follows: S301: Based on the sampling trigger node sequence, obtain the photoelectric signal change sequence and corresponding time marker at the mold exit position, arrange the signal sequence according to the time marker and extract the level symbols of adjacent sampling points, and judge and extract the corresponding time position of level flipping according to the level symbol change to obtain the boundary time sequence. S302: Based on the sampling trigger node sequence and by calling the boundary time sequence for comparison, the relationship between the sampling trigger node time and the boundary change time interval is retrieved point by point, and the segments are screened according to the preset time matching benchmark to obtain the time matching segment set; S303: Based on the time matching segment set, call the sampling trigger node sequence associated interval, determine the time order of sampling nodes within the segment and divide the interval to obtain the workpiece boundary sampling interval set.
8. The online dimensional detection method for a cold heading machine according to claim 1, characterized in that, The specific steps of S4 are as follows: S401: Based on the set of sampling intervals of the workpiece boundary, obtain the laser reflection path and direction change sequence, rearrange the reflection path change sequence according to the sampling time order, extract the spatial displacement direction of adjacent path nodes and verify the order to obtain the path sequence sequence. S402: Based on the path sequence, call the optical path direction change sequence and compare it point by point, extract the correspondence between the path displacement direction and the optical path direction sign, judge and locate the corresponding node index according to the position of inconsistent sign, and obtain the set of direction deviation positions; S403: Based on the set of directional deviation positions, call the set of measurement reference positions to replace the spatial coordinates, correct the coordinate direction corresponding to the deviation node and map it to the corresponding reference coordinate execution position to obtain the set of workpiece contour paths.
9. The online dimensional detection method for a cold heading machine according to claim 1, characterized in that, The specific steps of S5 are as follows: S501: Based on the spatial coordinates of the path nodes in the workpiece contour path set, extract the coordinates of the path start node and end node and calculate the axial distance to obtain the path length value. Extract the contour range of the intermediate nodes according to the distribution of the path nodes to obtain the outer dimension boundary, and obtain the path length segment and the outer dimension segment. S502: Based on the path length segment and the shape segment, match the length value and the shape boundary range item by item, classify the matching result intervals according to the preset size interval benchmark and retain the corresponding relationship to obtain the size interval correspondence set; S503: Based on the set of corresponding size intervals, call the detection output identifier to determine the status, associate the corresponding status order of the intervals, and obtain the online size detection result status set.
10. An online dimensional inspection system for a cold heading machine, characterized in that, The system is used to implement the online dimensional detection method for a cold heading machine according to any one of claims 1-9, and the system includes: The reference positioning module obtains the position of the mold exit edge and the laser emitter and receiver, and locates the midpoint position to obtain the optical path centerline. It compares the centerline with the mold center and analyzes the offset, extracts the position components and associates them with reference relationships to obtain a set of measurement reference positions. The beat recognition module, based on the set of measurement reference positions, obtains the slider stroke and time sequence, identifies the direction of stroke change to obtain the feed state sequence, filters the state transition time points and associates them with the time sequence to obtain the sampling trigger node sequence; The boundary acquisition module acquires the photoelectric signal change sequence based on the sampling trigger node sequence, identifies the level change to acquire the boundary time sequence, matches the trigger time and filters the time segment, associates the time sequence, and obtains the workpiece boundary sampling interval set. The contour inversion module, based on the set of sampling intervals of the workpiece boundary, obtains the laser reflection path and direction change sequence, sorts the paths and compares the direction consistency, filters and corrects inconsistent positions, and performs spatial mapping in combination with the reference position to obtain the set of workpiece contour paths. The dimension determination module, based on the workpiece contour path set, extracts the start and end positions of the path to obtain the length segment, identifies the middle contour to obtain the shape segment, matches the dimension range, associates the output status, and obtains the online dimension detection result status set.
