Variable cross-section profile cutting control method, device, computer readable storage medium and program product

CN123010615APending Publication Date: 2026-10-30HANS LASER SMART TECH (CHANGZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611001979.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-07
Publication Date
2026-10-30

AI Technical Summary

Technical Problem

另外,由于截面变化,不同位置的翼板边缘坐标需要分别采集和处理,目前缺乏针对变截面型材的专用探测路径

Benefits of technology

[0016]本申请实施例提出一种变截面型材切割控制方法、装置、计算机可读存储介质及程序产品,该方法首先探测型材腹板高度,随后沿Y轴正方向移动找到翼板外侧边缘的第一探测点;接着反向移动并沿X轴负方向找到型材第一端的第二探测点;再沿Y轴正方向移动,精确定位第三探测点作为加工角点。在此基础上,分别在型材的第一端和第二端采集左右两侧翼板外侧边缘的多个特征点坐标,计算型材相对于机床坐标系的偏置角度,最终基于加工角点和偏置角度建立与型材实际姿态对齐的工件坐标系。实现了变截面型材切割原点的全自动精确定位,无需人工干预;通过多点采集和角度计算,有效补偿了型材放置时的位置偏移和水平面内的旋转偏差,提高了加工精度和效率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123010615A_ABST
    Figure CN123010615A_ABST
Patent Text Reader

Abstract

The application discloses a variable cross-section profile cutting control method and device, a computer readable storage medium and a program product. The method first detects the profile web height, then moves in the positive direction of the Y axis to find a first detection point of the outer side edge of the wing plate; then moves in the reverse direction and in the negative direction of the X axis to find a second detection point of the first end of the profile; then moves in the positive direction of the Y axis to accurately position a third detection point as a processing corner point. On this basis, a plurality of feature point coordinates of the outer side edges of the left and right wing plates at the first end and the second end of the profile are collected respectively, the offset angle of the profile relative to the machine tool coordinate system is calculated, and finally a workpiece coordinate system aligned with the actual posture of the profile is established based on the processing corner point and the offset angle. Full-automatic accurate positioning of the variable cross-section profile cutting origin is realized without manual intervention; through multi-point collection and angle calculation, the position offset and the rotational deviation in the horizontal plane when the profile is placed are effectively compensated, and the processing precision and efficiency are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of laser cutting, and in particular to a method, apparatus, computer-readable storage medium, and program product for controlling the cutting of variable cross-section profiles. Background Technology

[0002] Laser cutting technology is widely used in metal processing, especially for cutting profiles (such as H-beams, channel steel, and C-beams). With the increasing demand for irregularly shaped components in industries such as construction, bridge building, and machinery manufacturing, the need for cutting variable cross-section profiles (i.e., profiles whose cross-sectional dimensions gradually change along their length) is growing. These profiles typically have a first end and a second end opposite each other along their length, with the first end having a smaller cross-sectional dimension than the second end, resulting in an overall conical or wedge-shaped shape.

[0003] In laser cutting, the positioning accuracy of the workpiece directly affects the cutting quality and material utilization. Traditionally, operators need to manually move the detector to the edge of the workpiece and determine the cutting starting point through visual inspection or trial cuts. Furthermore, due to changes in cross-section, the coordinates of the flange edge at different locations need to be collected and processed separately, and currently there is a lack of dedicated detection paths for variable cross-section profiles. Manual visual inspection is not only inefficient, but its accuracy is also greatly affected by human factors, making it difficult to meet the requirements of mass production and automation. Summary of the Invention

[0004] This application proposes a method, device, computer-readable storage medium, and program product for controlling the cutting of variable cross-section profiles, which can automatically locate and position the edges of variable cross-section profiles, thereby improving processing efficiency and accuracy.

[0005] This application proposes a method for controlling the cutting of variable cross-section profiles, applied to a laser cutting machine tool equipped with a detector, comprising the following steps:

[0006] The detector is controlled to move above the variable cross-section profile to be cut, and the height information of the web of the profile is obtained through the detector; Based on the height information of the web, the detector is controlled to move along the positive Y-axis above one side wing of the profile, and the coordinates of the first detection point on the outer edge of the wing detected by the detector are recorded. After the detector moves a first predetermined distance in the opposite direction of the Y-axis from the first detection point, it moves in the negative direction of the X-axis and the coordinates of the second detection point at the first end of the profile are recorded. At the coordinate position of the second detection point, control the detector to move along the positive direction of the Y-axis, record the coordinates of the third detection point on the outer edge of the wing plate that the detector detects again, and determine the third detection point as the processing corner point; Based on the processing corner points, the detector is controlled to move to the first end and the second end of the profile, and the coordinates of multiple feature points on the outer edges of the two side flanges of the profile at the first end and the second end are collected respectively. Based on the coordinates of multiple feature points collected at the first and second ends, the offset angle between the placement position of the profile and the machine tool coordinate system is calculated. Based on the machining corner point and the offset angle, a workpiece coordinate system for cutting is established.

[0007] In some embodiments, controlling the detector to move along the positive Y-axis above one side wing of the profile based on the height information of the web includes: controlling the detector to move to a predetermined safe height above the upper surface of the wing, and moving along the positive Y-axis below that height; The control detector to move a first predetermined distance from the first detection point in the opposite direction of the Y-axis includes: controlling the detector to move from the first detection point in the negative direction of the Y-axis to a position at a safe distance from the inner wall of the wing plate.

[0008] In some embodiments, acquiring the coordinates of multiple feature points on the outer edges of the two side flanges at the first and second ends of the profile includes: Starting from the third detection point, the detector is controlled to move a second predetermined distance along the negative Y-axis to collect the coordinates of the fourth detection point on the outer edge of the right wing plate of the profile; Starting from the fourth detection point, the detector is controlled to move a second predetermined distance along the negative Y-axis to collect the coordinates of the fifth detection point on the outer edge of the left wing plate of the profile.

[0009] In some embodiments, after acquiring the coordinates of the fifth detection point on the outer edge of the left wing plate of the profile, the method further includes: Starting from the fifth detection point, control the detector to move a third predetermined distance along the positive X-axis to near the second end, and then control the detector to move a fourth predetermined distance along the negative Y-axis to collect the coordinates of the sixth detection point on the outer edge of the right wing plate of the profile. Starting from the sixth detection point, the detector is controlled to move a fourth predetermined distance along the positive Y-axis to collect the coordinates of the seventh detection point on the outer edge of the left wing plate of the profile.

[0010] In some embodiments, calculating the offset angle between the placement position of the profile and the machine tool coordinate system includes: calling a calculation function to calculate the offset Euler angle of the profile using the coordinates of the fifth detection point, the sixth detection point, and the seventh detection point.

[0011] In some embodiments, establishing a workpiece coordinate system for cutting includes: in a machine tool CNC system, establishing the workpiece coordinate system based on the coordinates of the machining corner points and the calculated offset angle through a coordinate system offset command.

[0012] In some embodiments, the variable cross-section profile cutting control method further includes: The detector is controlled to perform Z-axis touch detection at at least two different positions on the profile, and the Z-axis coordinate values ​​of the profile surface or wing plate at the corresponding positions are obtained by the detector or the machine tool Z-axis encoder; Based on the Z-axis coordinate value and the coordinates of the feature points, calculate the pitch angle and roll angle of the profile relative to the machine tool coordinate system; The pitch angle and roll angle are incorporated into the workpiece coordinate system to form a machining coordinate system that includes three-dimensional rotation compensation.

[0013] This invention also proposes a variable cross-section profile cutting control device, applied to a laser cutting machine tool, the device comprising: The data acquisition module is used to acquire feature point information of the profile through the detector on the machine tool; The motion control module is used to control the movement of the detector based on feedback from the data acquisition module; The calculation module is used to calculate the coordinates of the processing corner points of the profile and their offset angle with the machine tool coordinate system based on the coordinates of multiple feature points collected. The coordinate system establishment module is used to establish the workpiece coordinate system based on the machining corner point coordinates and offset angles output by the calculation module.

[0014] The present invention also proposes a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements a variable cross-section profile cutting control method.

[0015] The present invention also proposes a computer program product, including a computer program that, when executed by a processor, implements a variable cross-section profile cutting control method.

[0016] This application proposes a method, apparatus, computer-readable storage medium, and program product for controlling the cutting of variable cross-section profiles. The method first detects the height of the profile web, then moves along the positive Y-axis to find a first detection point on the outer edge of the flange; next, it moves in the opposite direction and along the negative X-axis to find a second detection point at the first end of the profile; then, it moves along the positive Y-axis to precisely locate a third detection point as the machining corner point. Based on this, the coordinates of multiple feature points on the outer edges of the left and right flanges are collected at the first and second ends of the profile, and the offset angle of the profile relative to the machine tool coordinate system is calculated. Finally, a workpiece coordinate system aligned with the actual posture of the profile is established based on the machining corner point and the offset angle. This achieves fully automatic and precise positioning of the cutting origin of the variable cross-section profile without manual intervention; through multi-point acquisition and angle calculation, it effectively compensates for positional offsets and rotational deviations in the horizontal plane during profile placement, improving processing accuracy and efficiency. Attached Figure Description

[0017] Figure 1 This is a schematic diagram of the structure of a variable cross-section profile in one embodiment of this application; Figure 2 This is a schematic diagram showing the distribution of detection points in one embodiment of this application; Figure 3 This is a flowchart of a variable cross-section profile cutting control method in one embodiment of this application; Figure 4 This is a flowchart of a variable cross-section profile cutting control method in one embodiment of this application; Figure 5 This is a flowchart of a variable cross-section profile cutting control method in one embodiment of this application; Label Explanation: 11. Web plate; 12. Wing plate; The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0018] The solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments in this application, and not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0019] It should be noted that all directional indications in the embodiments of this application, such as up, down, left, right, front, back, etc., are only used to explain the relative positional relationship and movement of the components in a specific posture as shown in the attached figure. If the specific posture changes, the directional indication will also change accordingly.

[0020] It should also be noted that when a component is described as "fixed to" or "set on" another component, it can be directly on the other component or there may be an intervening component present. When a component is described as "connected to" another component, it can be directly connected to the other component or there may be an intervening component present.

[0021] Furthermore, the use of terms such as "first" and "second" in this application is for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. Additionally, the technical solutions of the various embodiments can be combined with each other, but only on the basis of being achievable by those skilled in the art. When the combination of technical solutions is contradictory or impossible to implement, such a combination of technical solutions should be considered non-existent and not within the scope of protection claimed in this application.

[0022] This application proposes a method for controlling the cutting of variable cross-section profiles, applied to a laser cutting machine tool equipped with a detector, with reference to... Figures 1 to 5 The detector can be a distance sensor, which is located on the drive end of the machine tool, generally on one side of the cutting head, and can be detachably connected to the drive end. Specifically, a vertical rod can be set on the drive end as a detection rod, with the upper end of the detection rod detachably connected to the drive end. The aforementioned distance sensor can be located at the lower end of the detection rod. The variable cross-section profile cutting control method includes the following steps: S1: Control the detector to move above the variable cross-section profile to be cut, and obtain the height information of the profile web 11 through the detector; control the detector (such as a photoelectric sensor or laser rangefinder) to move directly above the variable cross-section profile to be cut. The detector emits a detection signal downwards to obtain the vertical distance between the upper surface of the profile web 11 (i.e., the plate-like part vertically connected in the middle of the profile) and the detector, thereby obtaining the height information of the web 11. This height information is used to set the safe moving height of the detector in subsequent steps to avoid collisions between the detector and the profile during horizontal movement. By pre-detecting the web height, a safe distance benchmark between the detector and the profile is established, providing a height reference for subsequent horizontal scanning movements. This ensures that the detector maintains a safe vertical distance from the profile throughout the edge-finding process, avoiding collisions that could damage the detector, while also ensuring the stability and accuracy of the detection signal.

[0023] S2: Based on the height information of the web, control the detector to move along the positive Y-axis above one side wing plate 12 of the profile, and record the coordinates of the first detection point on the outer edge of the wing plate 12 detected by the detector; based on the height information of the web obtained in S1, control the detector to descend to a predetermined safe height above the upper surface of the wing plate 12 (e.g., 3-5 mm from the upper surface of the wing plate 12). At this height, control the detector to move horizontally along the positive Y-axis of the machine tool coordinate system (i.e., towards the outer side of the profile). When the detector moves to the outer edge of the wing plate 12, due to the abrupt change of the profile edge, the detection signal changes significantly, triggering the edge determination condition, and the machine tool coordinates of the detector at this time are recorded as the coordinates of the first detection point. Utilizing the detector's sensitive response to the profile edge, the position of the outer edge of the wing plate 12 is accurately located through horizontal scanning. The predetermined safe height ensures that the detector will not make physical contact with the surface of the wing plate 12 during the scanning process. Quickly and accurately obtaining the position information of the outer edge of one side wing plate 12 of the profile lays the foundation for subsequent end positioning and corner point determination.

[0024] S3: Control the detector to move a first predetermined distance in the opposite direction of the Y-axis from the first detection point, and then move in the negative direction of the X-axis, recording the coordinates of the second detection point at the first end of the profile detected by the detector; control the detector to move a first predetermined distance (e.g., to a safe distance from the inner wall of the wing plate 12) from the first detection point in the negative direction of the Y-axis (i.e., towards the inside of the profile) to avoid the obstruction of the wing plate 12. Subsequently, control the detector to move horizontally in the negative direction of the X-axis (i.e., towards the end of the profile). When the detector moves to the end of the first end of the profile, the detection signal changes abruptly again due to the end of the profile, triggering the edge determination condition, and recording the machine tool coordinates of the detector at this time as the coordinates of the second detection point. By first avoiding the wing plate 12 in the Y-direction and then scanning the end in the X-direction, the accurate detection of the end position of the profile is achieved. This path design avoids the interference of the wing plate 12 on the end detection. Accurately locating the end position of the first end of the profile provides key reference coordinates for subsequent determination of machining corner points.

[0025] S4: At the coordinate position of the second detection point, control the detector to move along the positive Y-axis, record the coordinates of the third detection point on the outer edge of the wing plate 12 that the detector detects again, and determine this third detection point as the machining corner point; at the coordinate position of the second detection point (i.e., at the end of the first end of the profile), control the detector to move along the positive Y-axis. The detector scans from the end of the profile towards the outer side of the wing plate 12. When the detector detects the outer edge of the wing plate 12 again, record the coordinates at this time as the third detection point. This third detection point is determined as the corner point for cutting, i.e., the candidate position of the origin of the workpiece coordinate system. The intersection of the end of the profile and the outer edge of the wing plate 12 is used as the machining corner point. This point is the most representative reference point in the profile contour, which facilitates the subsequent establishment of the workpiece coordinate system. The machining corner point of the profile is automatically and accurately determined without manual intervention, providing an accurate origin reference for the subsequent establishment of the coordinate system.

[0026] S5: Based on the processing corner points, control the detector to move to the first and second ends of the profile, and collect the coordinates of multiple feature points on the outer edges of the two side flanges 12 of the profile at the first and second ends respectively; step S5 specifically includes: S51: Starting from the third detection point, control the detector to move a second predetermined distance along the negative Y-axis and collect the coordinates of the fourth detection point on the outer edge of the right wing plate 12 of the profile; S52: Starting from the fourth detection point, control the detector to move a second predetermined distance along the negative Y-axis and collect the coordinates of the fifth detection point on the outer edge of the left wing plate 12 of the profile.

[0027] In some embodiments, step S5 further includes: S53: Starting from the fifth detection point, control the detector to move a third predetermined distance along the positive X-axis to near the second end, and then control the detector to move a fourth predetermined distance along the negative Y-axis to collect the coordinates of the sixth detection point on the outer edge of the right wing plate of the profile. S54: Starting from the sixth detection point, control the detector to move a fourth predetermined distance along the positive Y-axis and collect the coordinates of the seventh detection point on the outer edge of the left wing plate 12 of the profile.

[0028] Based on the determined machining corner point (third detection point), the detector is moved to the first end (the end with the smaller cross-section) and the second end (the end with the larger cross-section) of the profile, and the coordinates of multiple feature points on the outer edges of the left and right flanges 12 are collected respectively. By collecting feature points on the edges of the left and right flanges 12 at the first and second ends of the profile, the contour information of the profile at different cross-sectional positions is obtained. These feature points collectively describe the actual placement posture of the profile on the machine tool table. Obtaining accurate coordinate data of the profile at multiple key positions provides sufficient data support for subsequent calculation of the profile's placement offset angle.

[0029] S6: Based on the coordinates of multiple feature points collected at the first and second ends, calculate the offset angle between the profile's placement position and the machine tool coordinate system; call a preset calculation function (such as the PT2EUL function), using the coordinates of the fifth, sixth, and seventh detection points as input parameters, and calculate the offset angle between the profile's placement position and the machine tool coordinate system through geometric operations. This offset angle reflects the profile's rotational deviation (i.e., yaw angle) in the horizontal plane. Through the geometric relationship of the multi-point coordinates, calculate the angle between the actual placement direction of the profile and the ideal direction of the machine tool. For example, define the actual length direction of the profile using the line connecting the fifth and seventh detection points, and obtain the yaw angle by comparing it with the theoretical length direction. Quantify the profile's rotational deviation in the horizontal plane to provide accurate angle parameters for subsequent coordinate system rotation compensation.

[0030] S7: Based on the machining corner point and the offset angle, establish a workpiece coordinate system for cutting. In the machine tool CNC system, based on the coordinates of the machining corner point (third detection point) and the calculated offset angle, establish a workpiece coordinate system for cutting using coordinate system offset commands (such as G54, G154, etc.). The origin of this workpiece coordinate system is located at the machining corner point, and the coordinate axis directions are aligned with the actual placement direction of the profile. Utilizing the coordinate system offset and rotation functions of the CNC system, the programmed coordinate system is aligned with the actual placement posture of the workpiece, enabling subsequent cutting programs to execute correctly within the workpiece coordinate system. This achieves automatic alignment of the cutting path with the actual posture of the profile, eliminating the need for manual adjustment and significantly improving cutting accuracy and efficiency.

[0031] In some embodiments, the variable cross-section profile cutting control method further includes: S8: Control the detector to perform Z-axis touch detection at at least two different positions on the profile, and obtain the Z-axis coordinate values ​​of the profile surface or wing plate 12 at the corresponding positions through the detector or the machine tool Z-axis encoder; control the detector to perform Z-axis touch detection at at least two different positions on the profile. The detector slowly descends along the Z-axis direction, and when it contacts the profile surface or the upper surface of the wing plate 12, it obtains the Z-axis coordinate values ​​at the corresponding positions through the detector's own ranging function or the position feedback of the machine tool Z-axis encoder. Through Z-axis touch detection, the height information of the profile at different positions is obtained, and these height differences reflect the attitude deviation of the profile in the pitch and roll directions. Obtaining the three-dimensional spatial attitude information of the profile makes up for the inability to perceive pitch and roll deviations by relying solely on XY plane data.

[0032] S9: Based on the multiple Z-axis coordinate values ​​obtained in S8 and the multiple feature point coordinates obtained in S5, calculate the pitch angle and roll angle of the profile relative to the machine tool coordinate system; based on the multiple Z-axis coordinate values ​​obtained in S8 and the multiple feature point coordinates obtained in S5, calculate the pitch angle (angle of rotation around the Y-axis) and roll angle (angle of rotation around the X-axis) of the profile relative to the machine tool coordinate system through geometric operations. By comparing the Z-axis height differences at different positions, calculate the tilt attitude of the profile in three-dimensional space. For example, the height difference between the two ends along the length direction of the profile reflects the pitch angle, and the height difference between the left and right sides along the width direction reflects the roll angle. Completely obtain the attitude deviation information of the profile in three-dimensional space, including the three angles of yaw, pitch, and roll.

[0033] S10: The pitch and roll angles are incorporated into the workpiece coordinate system established in S7 to form a machining coordinate system with three-dimensional rotation compensation. The pitch and roll angles calculated in S9 are also incorporated into the workpiece coordinate system established in S7 to form a machining coordinate system with three-dimensional rotation compensation. This coordinate system not only compensates for the rotational deviation of the profile in the horizontal plane but also compensates for spatial attitude deviations in the pitch and roll directions. Utilizing the advanced coordinate system transformation functions of the CNC system (such as G68.2 commands that support three-dimensional rotation), the yaw, pitch, and roll angles are simultaneously applied to the coordinate system transformation to achieve complete three-dimensional spatial attitude compensation. This enables automatic full attitude compensation of the profile in three-dimensional space, further improving cutting accuracy, and is especially suitable for complex cutting tasks with high spatial positioning accuracy requirements.

[0034] This invention also proposes a variable cross-section profile cutting control device, applied to a laser cutting machine tool, the device comprising: The data acquisition module is used to acquire feature point information of the profile through detectors on the machine tool. Connected to detectors on the machine tool (such as photoelectric sensors, laser rangefinders, or capacitive sensors), the module is responsible for acquiring signals generated by the detectors during scanning in real time and converting them into digital coordinate information. Specifically, this module performs the following operations: receiving the web height signal detected by the detector in step S1 and converting it into height data; in steps S2-S4, when the detector moves to the outer edge of the flange 12 or the end of the profile, capturing the trigger signal and locking the machine tool coordinates (X, Y, Z values) at the current moment, generating the coordinates of feature points such as the first, second, and third detection points; in step S5, acquiring the coordinates of the fourth to seventh detection points; and in step S8 (if Z-axis detection is configured), acquiring the coordinate value when the Z-axis touches the surface. Utilizing the edge-sensitive characteristics of the detectors (such as the output level of a photoelectric sensor changing abruptly when crossing the workpiece edge, or the voltage of a capacitive sensor changing rapidly when the distance changes abruptly), high-precision coordinate capture is achieved by freezing the machine tool encoder reading at the moment of triggering through hardware interruption or high-speed sampling. It enables automatic, real-time, and high-precision acquisition of feature point coordinates, providing an accurate data foundation for subsequent calculations and avoiding errors and inefficiencies caused by manual measurement.

[0035] The motion control module controls the movement of the detector based on feedback from the data acquisition module. According to the feedback signal from the data acquisition module and the preset scanning path, the motion control module controls the machine tool's various motion axes (X, Y, Z axes) to move the detector along a specified trajectory. Specifically, this includes: adjusting the detector to a safe height using the Z-axis based on the web height information acquired in S1; executing positive Y-axis movement in S2; executing negative Y-axis avoidance and negative X-axis movement in S3; executing positive Y-axis movement in S4; executing a multi-point scanning path in S5 (including combined movements such as negative Y-axis, positive X-axis, and negative Y-axis); and executing Z-axis touch detection movement in S8. The preset path instructions (such as G01 linear interpolation) are converted into a pulse sequence of servo motors using the interpolation function of the CNC system, achieving precise position control. Simultaneously, the motion control module monitors the edge trigger signals of the data acquisition module in real time. Upon receiving a trigger, it immediately executes an emergency stop or deceleration program to prevent detector collision damage. It ensures that the detector moves strictly along the predetermined path, with high path repeatability and positioning accuracy (up to the micrometer level), and also has the ability to respond and stop quickly, thus ensuring the safety of equipment and workpieces.

[0036] The calculation module is used to calculate the coordinates of the machining corner points of the profile and their offset angles relative to the machine tool coordinate system based on the coordinates of multiple acquired feature points. The calculation module receives the coordinates of multiple feature points (at least including the third, fifth, sixth, and seventh detection points, and optional Z-axis coordinates) from the data acquisition module and performs the following calculations: determining the coordinates of the machining corner points (i.e., the coordinates of the third detection point); calculating the Euler angles of the profile relative to the machine tool coordinate system, including the yaw angle ψ, and the pitch angle θ and roll angle φ when Z-axis coordinates are available, based on the coordinates of the fifth, sixth, and seventh detection points using geometric relationships (such as the arctangent function or least squares fitting); if Z-axis data is used, further calculating the three-dimensional attitude angles. A spatial geometric transformation algorithm is used to match the measured point set with the theoretical model. The core is to construct the actual direction vector of the profile using multi-point coordinates and compare it with the machine tool coordinate axes to calculate the rotation angle. Specifically, methods such as vector angle method or singular value decomposition (SVD) can be used, or geometric calculations based on the arctangent function can be employed. The original discrete coordinate points are transformed into physically meaningful attitude angles, quantifying the placement deviation of the profile and providing precise parameters for coordinate system compensation. The calculation process is automated and requires no manual intervention.

[0037] The coordinate system establishment module is used to establish a workpiece coordinate system based on the machining corner point coordinates and offset angles output by the calculation module. The module receives the machining corner point coordinates and offset Euler angles from the calculation module and establishes a new workpiece coordinate system in the machine tool CNC system using coordinate system offset commands (such as G54, G154, G68, etc.). The origin of this coordinate system is located at the machining corner point, and the coordinate axis directions are consistent with the actual placement direction of the profile (including horizontal rotation and optional pitch / roll compensation). Utilizing the CNC system's built-in coordinate system transformation function, the calculated translation and rotation amounts are written to the corresponding system variables (such as the workpiece coordinate system offset register), so that all subsequent cutting commands referenced to this coordinate system are automatically mapped to the actual position and orientation of the profile. This achieves seamless integration between the cutting program and the actual workpiece orientation, adapting to profiles in different placement states without modifying the machining program, significantly improving production flexibility and cutting accuracy.

[0038] The device works collaboratively through four modules: a data acquisition module, acting as the perception layer, acquires the geometric features of the profile in real time; a calculation module, acting as the decision-making layer, converts the perceived data into attitude deviation parameters; a coordinate system establishment module, acting as the execution layer, injects the deviation parameters into the CNC system; and a motion control module runs throughout the entire process, ensuring precise movement of the detector. The entire system simulates the manual edge-finding process but achieves full automation, high speed, and high precision.

[0039] This invention also proposes a computer-readable storage medium storing a computer program that, when executed by a processor, implements a variable cross-section profile cutting control method. The computer-readable storage medium (such as a hard disk, flash memory, or optical disc) stores a computer program containing all the instruction code implementing the aforementioned variable cross-section profile cutting control method (S1-S10). When this program is executed by the processor or embedded controller of the machine tool CNC system, it drives the data acquisition module, motion control module, calculation module, and coordinate system establishment module to operate according to a predetermined process. The algorithm and logic are solidified into executable code and stored in a non-volatile medium, ensuring that the system can load and run the same control process each time it is powered on, achieving standardized operation. This facilitates software copying, upgrading, and maintenance; the same program can be deployed on multiple machine tools, reducing development costs; and the solidified program is not easily tampered with, ensuring consistency in the production process.

[0040] This invention also proposes a computer program product, including a computer program that, when executed by a processor, implements a variable cross-section profile cutting control method. This computer program product includes a computer program (typically provided as an installation package or executable file), which, when loaded into a machine tool CNC system or host computer, enables the aforementioned variable cross-section profile cutting control method. This product can be delivered to users via network download, CD distribution, or pre-installed in the device. The program product is the carrier of software functionality, its core being the encapsulation of algorithmic logic. Users do not need to understand the internal implementation details; they only need to install and run it according to the operation manual to obtain the functions of automatic edge finding and coordinate system establishment. As an independent product or value-added service, it enhances the intelligence level of machine tools; users can flexibly choose whether to purchase this function, reducing initial investment; software updates are convenient, and algorithm performance can be continuously optimized.

[0041] In this embodiment, the core principle of the variable cross-section profile cutting control method, device, computer-readable storage medium, and program product is as follows: Automatic and precise positioning of the cutting origin of the variable cross-section profile is achieved through a multi-point fitting strategy. First, the processing corner points of the profile are precisely located through progressive approximation scanning (S1-S4). Then, multi-point coordinates are collected at the first and second ends of the profile (S5) to obtain the overall placement posture information of the profile. Finally, the corner point coordinates and offset angles are applied to the establishment of the workpiece coordinate system (S6-S7) to align the cutting path with the actual posture of the profile. From web height detection to workpiece coordinate system establishment, the entire process requires no manual intervention, significantly improving production efficiency. Through multi-step approximation scanning and multi-point coordinate acquisition, the positioning accuracy of the processing corner points can reach millimeter level or even higher. It can automatically compensate for the positional offset and rotational deviation of the profile in the horizontal plane, reducing the requirements for profile loading accuracy. A dedicated detection path is designed for the special structure of the variable cross-section profile, solving the problem that current edge-finding positioning methods are not applicable to variable cross-section profiles.

[0042] The above are only some or preferred embodiments of this application. Neither the text nor the drawings should limit the scope of protection of this application. All equivalent structural transformations made using the content of this application's specification and drawings under the overall concept of this application, or direct / indirect applications in other related technical fields, are included within the scope of protection of this application.

Claims

1. A method for controlling the cutting of variable cross-section profiles, characterized in that, For use in laser cutting machine tools equipped with detectors, the following steps are included: The detector is controlled to move above the variable cross-section profile to be cut, and the height information of the web of the profile is obtained through the detector; Based on the height information of the web, the detector is controlled to move along the positive Y-axis above one side wing of the profile, and the coordinates of the first detection point on the outer edge of the wing detected by the detector are recorded. After the detector moves a first predetermined distance in the opposite direction of the Y-axis from the first detection point, it moves in the negative direction of the X-axis and the coordinates of the second detection point at the first end of the profile are recorded. At the coordinate position of the second detection point, control the detector to move along the positive direction of the Y-axis, record the coordinates of the third detection point on the outer edge of the wing plate that the detector detects again, and determine the third detection point as the processing corner point; Based on the processing corner points, the detector is controlled to move to the first end and the second end of the profile, and the coordinates of multiple feature points on the outer edges of the two side flanges of the profile at the first end and the second end are collected respectively. Based on the coordinates of multiple feature points collected at the first and second ends, the offset angle between the placement position of the profile and the machine tool coordinate system is calculated. Based on the machining corner point and the offset angle, a workpiece coordinate system for cutting is established.

2. The variable cross-section profile cutting control method according to claim 1, characterized in that, The step of controlling the detector to move along the positive Y-axis above one side wing of the profile based on the height information of the web includes: controlling the detector to move to a predetermined safe height above the upper surface of the wing, and moving along the positive Y-axis below that height; The control detector to move a first predetermined distance from the first detection point in the opposite direction of the Y-axis includes: controlling the detector to move from the first detection point in the negative direction of the Y-axis to a position at a safe distance from the inner wall of the wing plate.

3. The variable cross-section profile cutting control method according to claim 1, characterized in that, The acquisition of coordinates of multiple feature points on the outer edges of the two side flanges at the first and second ends of the profile includes: Starting from the third detection point, the detector is controlled to move a second predetermined distance along the negative Y-axis to collect the coordinates of the fourth detection point on the outer edge of the right wing plate of the profile; Starting from the fourth detection point, the detector is controlled to move a second predetermined distance along the negative Y-axis to collect the coordinates of the fifth detection point on the outer edge of the left wing plate of the profile.

4. The variable cross-section profile cutting control method according to claim 3, characterized in that, After acquiring the coordinates of the fifth detection point on the outer edge of the left wing plate of the profile, the following is also included: Starting from the fifth detection point, control the detector to move a third predetermined distance along the positive X-axis to near the second end, and then control the detector to move a fourth predetermined distance along the negative Y-axis to collect the coordinates of the sixth detection point on the outer edge of the right wing plate of the profile. Starting from the sixth detection point, the detector is controlled to move a fourth predetermined distance along the positive Y-axis to collect the coordinates of the seventh detection point on the outer edge of the left wing plate of the profile.

5. The variable cross-section profile cutting control method according to claim 4, characterized in that, The calculation of the offset angle between the placement position of the profile and the machine tool coordinate system includes: calling a calculation function to calculate the offset Euler angle of the profile using the coordinates of the fifth detection point, the sixth detection point, and the seventh detection point.

6. The method for controlling the cutting of variable cross-section profiles according to any one of claims 1-5, characterized in that, The establishment of the workpiece coordinate system for cutting includes: in the CNC system of the machine tool, based on the coordinates of the machining corner points and the calculated offset angle, establishing the workpiece coordinate system through coordinate system offset commands.

7. The variable cross-section profile cutting control method according to claim 1, characterized in that, Also includes: The detector is controlled to perform Z-axis touch detection at at least two different positions on the profile, and the Z-axis coordinate values ​​of the profile surface or wing plate at the corresponding positions are obtained by the detector or the machine tool Z-axis encoder; Based on the Z-axis coordinate value and the coordinates of the feature points, calculate the pitch angle and roll angle of the profile relative to the machine tool coordinate system; The pitch angle and roll angle are incorporated into the workpiece coordinate system to form a machining coordinate system that includes three-dimensional rotation compensation.

8. A variable cross-section profile cutting control device, characterized in that, The device, used in laser cutting machine tools, includes: The data acquisition module is used to acquire feature point information of the profile through the detector on the machine tool; A motion control module is used to control the detector to perform the path movement steps of the method according to any one of claims 1-7 based on feedback from the data acquisition module. The calculation module is used to calculate the coordinates of the processing corner points of the profile and their offset angle with the machine tool coordinate system based on the coordinates of multiple feature points collected. The coordinate system establishment module is used to establish the workpiece coordinate system based on the machining corner point coordinates and offset angles output by the calculation module.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the variable cross-section profile cutting control method as described in any one of claims 1-7.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the variable cross-section profile cutting control method as described in any one of claims 1-7.