A pipe material discharging method and system
By converting the three-dimensional pipe layout algorithm into a two-dimensional algorithm and utilizing horizontal axis movement and two-dimensional common edge judgment, the problems of large computational load and unreliable results in the existing technology are solved, and efficient and reliable pipe layout is achieved.
Patent Information
- Application Number
- CN202510164287.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-14
- Publication Date
- 2026-02-13
- Estimated Expiration
- 2045-02-14
AI Technical Summary
Existing technologies employ three-dimensional processing when arranging pipes, resulting in large computational loads, long processing times, and unreliable results.
The three-dimensional nesting algorithm is converted into a two-dimensional nesting algorithm. By obtaining the current comparison wireframe and the wireframe of the part to be nested, the horizontal axis is moved and rotated. The common edge judgment of the two-dimensional wireframe is used to simplify the processing flow and improve the reliability of the result.
It reduces the amount of data calculation, improves the reliability and efficiency of the material layout results, and simplifies the material layout process.
Smart Images

Figure CN119822009B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of laser pipe cutting, in particular to a pipe arrangement method and system. BACKGROUND
[0002] In the field of laser pipe cutting, the cutting operation of closed drawn pipes generally uses a single long pipe as raw material, which is cut into various lengths and shapes of workpieces. In order to maximize the use of materials and reduce waste as much as possible, as many pipes as possible need to be arranged in a single long pipe. The process of pipe arrangement design is called pipe arrangement.
[0003] At present, the existing technology usually uses the way of man-machine interaction to input parameters to arrange pipes, or uses genetic algorithm or simulated annealing algorithm to realize automatic arrangement. However, the existing technology is a three-dimensional processing when arranging pipes, which is usually time-consuming, large in calculation and complex in operation, and is prone to unreliable arrangement results. SUMMARY
[0004] In order to solve the above problems, the present application provides a pipe arrangement method and system, which converts the three-dimensional arrangement algorithm into a two-dimensional arrangement algorithm, simplifies the arrangement process, and improves the reliability of the arrangement result.
[0005] To achieve the above purpose, the embodiment of the present application provides a pipe arrangement method applied to an arrangement whole pipe, which includes an initial part pipe to be arranged; the arrangement whole pipe is arranged in a preset coordinate system, which includes a horizontal axis, a vertical axis and a longitudinal axis; the end line frame of the initial part pipe to be arranged is arranged at the origin position of the preset coordinate system; the pipe arrangement method includes: in the first pipe arrangement process, the end line frame of the initial part pipe to be arranged is obtained as the current time comparison line frame.
[0006] The pipe arrangement process is executed: the head end line frame of the current part pipe to be arranged is obtained as the current time comparison line frame; the minimum position of the current time comparison line frame on the horizontal axis is moved to the maximum position of the current time comparison line frame on the horizontal axis to obtain the pipe arrangement position; the three-dimensional line frame of the pipe arrangement position is discretized into a plurality of line segments, and the plurality of line segments are unfolded into a two-dimensional line frame based on a preset reset starting point; based on a preset comparison algorithm, if the two-dimensional line frame meets the common edge requirement, the current part pipe to be arranged is arranged into the arrangement whole pipe according to the two-dimensional line frame, the tail end line frame of the current part pipe to be arranged is updated as the next time comparison line frame, and the pipe arrangement process is ended.
[0007] The embodiment of the present application provides a pipe material arranging method, by acquiring a current time comparison line frame and a current time comparison line frame of a to-be-arranged part pipe material, and moving on a horizontal axis to ensure that the pipe material arranging is in a correct position in arranging a whole pipe, and providing reliable data basis for subsequent processing, then discretizing the three-dimensional line frame into a plurality of line segments and unfolding into a two-dimensional line frame, by converting three-dimensional processing into two-dimensional processing, the processing flow is simplified, the data calculation amount is reduced, only two-dimensional data operation is considered and processed, in addition, a reset starting point is arranged in the process of converting three-dimensional processing into two-dimensional processing, so that there is a reference point in the dimension conversion process, and the reliability of data processing is ensured, then the two-dimensional line frame is subjected to edge judgment, which means that the pipe material needs to be as close as possible to the last pipe material in the arranging process, so that the optimal scheme can be arranged, and the next time comparison line frame is updated, reliable data is provided for the pipe material arranging in the next cycle, through the above steps, reliable processing data is provided, the three-dimensional to two-dimensional processing method and the edge requirement judgment not only simplify the arranging process, but also improve the reliability of the arranging result.
[0008] Further, the head end line frame of the to-be-arranged part pipe material at the current time is acquired as the current time comparison line frame, and the current time comparison line frame is acquired, including: if the type of the to-be-arranged part pipe material at the current time does not meet the rotation requirement of the preset vertical axis, the head end line frame of the to-be-arranged part pipe material at the current time is acquired as the current time comparison line frame; if the current pipe material arranging process is not the first time of executing the pipe material arranging process, the tail end line frame of the to-be-arranged part pipe material at the last time is acquired as the current time comparison line frame. If the type of the to-be-arranged part pipe material at the current time meets the rotation requirement of the preset vertical axis, the to-be-arranged part pipe material at the current time is rotated by a preset angle, and the tail end line frame of the to-be-arranged part pipe material at the current time is acquired as the current time comparison line frame.
[0009] Through the above scheme, when the pipe material meets the rotation requirement of the vertical axis, the pipe material is rotated, so that the arrangement of both ends of the pipe material can be judged, and the reliability of the arranging result is improved.
[0010] Further, the current time comparison line frame is moved from the minimum position of the horizontal axis to the maximum position of the horizontal axis of the current time comparison line frame to obtain a pipe arrangement position, including: acquiring coordinate values of each point of the current time comparison line frame on the horizontal axis; comparing the values of the points one by one to obtain the minimum position on the horizontal axis; based on the minimum position on the horizontal axis, the to-be-arranged part pipe material at the current time is moved to the maximum position of the horizontal axis of the current time comparison line frame to obtain the pipe arrangement position.
[0011] By the above scheme, the minimum position of the current time to be compared line frame on the horizontal axis is moved to the maximum position of the current time comparison line frame on the horizontal axis, which can ensure that the position of the to-be-arranged pipe and the arranged pipe is in the potential arrangement position, can make full use of the length of the arranged pipe in the pipe arrangement process, reduce the generation of waste, and improve the reliability of the arrangement result.
[0012] Further, the three-dimensional line frame of the pipe arrangement position is discretized into a plurality of line segments, and based on a preset reset starting point, the plurality of line segments are unfolded into a two-dimensional line frame, including: if the to-be-arranged pipe is a circular pipe, the number of comparisons is obtained according to a preset step angle of rotation around the horizontal axis; based on the number of comparisons, the three-dimensional line frame of the pipe arrangement position is rotated around the horizontal axis, and the rotation path is discretized into a plurality of line segments; the reset starting point is set at a position where the vertical axis is greater than a preset threshold and the longitudinal axis is equal to the preset threshold, and based on the reset starting point, the plurality of line segments are unfolded into a two-dimensional line frame. The pipe arrangement method proposed in the embodiment of the application further includes: if the to-be-arranged pipe is not a circular pipe, the pipe arrangement position is rotated according to a preset pipe rotation comparison table, and the pipe arrangement position is unfolded into a two-dimensional line frame.
[0013] Through the above scheme, the pipe is rotated along the horizontal axis by comparing the type of the pipe, and the corresponding number of comparisons is obtained for different pipes to reduce unnecessary and resultless rotation comparison operations, speed up the arrangement speed, and simplify the arrangement processing procedure and improve the reliability of the arrangement result.
[0014] Further, the preset comparison algorithm is used to determine whether the two-dimensional line frame meets the common edge requirement, and if so, the current time part pipe is arranged into the pipe arrangement whole pipe according to the two-dimensional line frame, and the tail end line frame of the current time part pipe is updated as the next time comparison line frame to end the pipe arrangement process.
[0015] Through the above scheme, the preset comparison algorithm is used to determine whether the two-dimensional line frame meets the common edge requirement, and if so, the current time part pipe is arranged into the pipe arrangement whole pipe according to the two-dimensional line frame, and the tail end line frame of the current time part pipe is updated as the next time comparison line frame to end the pipe arrangement process.
[0016] Further, before executing the pipe material discharging process, the method comprises: judging whether the discharging whole pipe is full, if not, judging whether there is un-discharged pipe material, if yes, executing the pipe material discharging process, if the discharging whole pipe is full or there is no un-discharged pipe material, ending the pipe material discharging process.
[0017] Through the above scheme, before starting discharging, it is checked whether discharging is needed, so as to avoid unnecessary repeated work, effectively discharge pipe material, and guarantee the reliability of the discharging result.
[0018] The embodiment of the application further provides a pipe material discharging system, comprising: a first wire frame acquisition module, a second wire frame acquisition module, a pipe material arrangement position acquisition module, a two-dimensional expansion module and a pipe material discharging module; the first wire frame acquisition module is used for acquiring the end tail wire frame of the initial part pipe material to be discharged as a current time comparison wire frame in the first pipe material discharging process;
[0019] The pipe material discharging process is executed: the second wire frame acquisition module is used for acquiring the head end wire frame of the part pipe material to be discharged as a current time comparison wire frame and acquiring the current time comparison wire frame; the pipe material arrangement position acquisition module is used for moving the minimum position of the current time comparison wire frame on the horizontal axis to the maximum position of the current time comparison wire frame on the horizontal axis to obtain a pipe material arrangement position; the two-dimensional expansion module is used for discretizing the three-dimensional wire frame of the pipe material arrangement position into a plurality of line segments, and expanding the plurality of line segments into a two-dimensional wire frame based on a preset reset starting point; the pipe material discharging module is used for, based on a preset comparison algorithm, if the two-dimensional wire frame meets the common edge requirement, discharging the part pipe material to be discharged at the current time into the discharging whole pipe according to the two-dimensional wire frame, updating the tail end wire frame of the part pipe material to be discharged at the current time as a next time comparison wire frame, and ending the pipe material discharging process.
[0020] The embodiment of the present application provides a pipe material arrangement system, current time comparison line frames and current time comparison line frames of parts to be arranged pipe materials are acquired through a first line frame acquisition module and a second line frame acquisition module, and a pipe arrangement position acquisition module is moved on a horizontal shaft to ensure that the pipe material arrangement is in a correct position in arrangement whole pipe, and reliable data basis is provided for subsequent processing, then a two-dimensional development module is used to disperse the three-dimensional line frame into a plurality of line segments and develop the three-dimensional line frame into a two-dimensional line frame, three-dimensional processing is converted into two-dimensional processing, a processing flow is simplified, data calculation amount is reduced, only two-dimensional data operation is considered and processed, in addition, a reset starting point is arranged in the process of converting three-dimensional processing into two-dimensional processing, so that a reference point exists in the dimension conversion process, and the reliability of data processing is ensured, then a pipe material arrangement module is used to perform edge sharing judgment on the two-dimensional line frame, the edge sharing judgment means that the pipe material needs to be as close to the previous pipe material as possible in the arrangement process, so that an optimal scheme can be arranged, and the next time comparison line frame is updated, reliable data is provided for pipe material arrangement in the next cycle, through the above steps, reliable processing data is provided, the processing method of converting three-dimensional into two-dimensional and the judgment of edge sharing requirement not only simplify the arrangement processing process, but also improve the reliability of arrangement results. BRIEF DESCRIPTION OF DRAWINGS
[0021] Figure 1 A pipe material arrangement method provided for an embodiment of the present application Figure 1 ;
[0022] Figure 2 A pipe material arrangement method provided for an embodiment of the present application Figure 2 ;
[0023] Figure 3 A pipe material arrangement method provided for an embodiment of the present application Figure 3 ;
[0024] Figure 4 A pipe material arrangement method provided for an embodiment of the present application Figure 4 ;
[0025] Figure 5 A pipe material arrangement method provided for an embodiment of the present application Figure 5 ;
[0026] Figure 6 A pipe material arrangement method provided for an embodiment of the present application Figure 6 ;
[0027] Figure 7 A pipe material arrangement method provided for an embodiment of the present application Figure 7 ;
[0028] Figure 8 A schematic diagram of a pipe material discharging method provided for an embodiment of the present application Figure 8 ;
[0029] Figure 9 A schematic diagram of a pipe material discharging method provided for an embodiment of the present application Figure 9 ;
[0030] Figure 10 A schematic diagram of a pipe material discharging method provided for an embodiment of the present application Figure 10 ;
[0031] Figure 11 A schematic diagram of a pipe material discharging method provided for an embodiment of the present application Figure 10 A schematic diagram of a pipe material discharging method provided for an embodiment of the present application
[0032] Figure 12 A schematic diagram of a pipe material discharging method provided for an embodiment of the present application Figure 10 B schematic diagram of a pipe material discharging method provided for an embodiment of the present application
[0033] Figure 13 A schematic diagram of a pipe material discharging method provided for an embodiment of the present application Figure 10 C schematic diagram of a pipe material discharging method provided for an embodiment of the present application
[0034] Figure 14 A schematic diagram of a pipe material discharging system provided for an embodiment of the present application. DETAILED DESCRIPTION
[0035] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application.
[0036] Embodiment 1
[0037] Referring to Figure 1 , Figure 1 A schematic diagram of a pipe material discharging method provided for an embodiment of the present application Figure 1 . As shown in Figure 1 , the present application provides a pipe material discharging method applied to a discharging whole pipe, which comprises an initial part pipe to be discharged; the discharging whole pipe is arranged in a preset coordinate system, which comprises a horizontal axis, a vertical axis and a vertical axis; the end line frame of the initial part pipe to be discharged is arranged at the origin position of the preset coordinate system. The pipe material discharging method provided by the present application comprises steps 101 to 105. In the present application, a schematic diagram of a pipe material discharging method will be combined as shown in Figure 2 .Figure 2 The steps are explained as follows:
[0038] In step 101, during the first time of the pipe material discharging process, the end tail line frame of the initial part-to-be-discharged pipe material is obtained as a comparison line frame at the current time;
[0039] As an example of the embodiment, before the pipe material discharging process is performed, it is determined whether the current pipe material discharging process to be performed is the first time of discharging. If it is the first time of pipe material discharging, it is indicated that there is no comparison line frame to be referred to in the current discharging whole pipe, and therefore, an initial part-to-be-discharged pipe material is discharged into the discharging whole pipe, and the end head line frame of the initial part-to-be-discharged pipe material is set at the origin position of the preset coordinate system, which includes a horizontal axis, a vertical axis and a vertical axis. For a specific implementable manner, see Figure 3 , Figure 3 A schematic diagram of a pipe material discharging method provided by an embodiment of the present application Figure 2 ; the initial part-to-be-discharged pipe material is discharged into the discharging whole pipe PA, and the tail end line frame thereof is recorded as Peline, which is taken as the comparison line frame at the current time;
[0040] In step 102, the pipe material discharging process is performed, the head end line frame of the part-to-be-discharged pipe material at the current time is taken as a comparison line frame at the current time, and the comparison line frame at the current time is obtained;
[0041] As an example of the embodiment, if the type of the part-to-be-discharged pipe material at the current time does not meet the rotation requirement of the preset vertical axis, the head end line frame of the part-to-be-discharged pipe material at the current time is taken as the comparison line frame at the current time. If the current pipe material discharging process is not the first time of pipe material discharging process, the tail end line frame of the part-to-be-discharged pipe material at the previous time is taken as the comparison line frame at the current time. If the type of the part-to-be-discharged pipe material at the current time meets the rotation requirement of the preset vertical axis, the part-to-be-discharged pipe material at the current time is rotated by a preset angle, and the tail end line frame of the part-to-be-discharged pipe material at the current time is taken as the comparison line frame at the current time.
[0042] Since the prior art simply arranges the pipe materials in a head-to-tail manner, the length of the discharging whole pipe cannot be maximally utilized, and therefore, in the embodiment of the present application, the shape of the pipe material is fully considered, and the pipe material meeting the requirement is rotated, and the two ends of the pipe material are arranged and determined. For a specific implementable manner, see Figure 4 and Figure 5 , Figure 4 A schematic diagram of a pipe material discharging method provided by an embodiment of the present application Figure 4 , Figure 5 A schematic diagram of a pipe material discharging method provided by an embodiment of the present application Figure 5 ; as Figure 4 and Figure 5As shown, the pipe laying process is executed, the pipe to be laid out at the current moment is placed, the end frame CSLine and the end frame CELine are obtained, and the type of the pipe to be laid out at the current moment is determined. For example, if it is a square pipe or a rectangular pipe, it can be rotated 180° around the vertical axis (equivalent to a preset angle); if it is a D-shaped pipe, it cannot be rotated 180° around the vertical axis. Therefore, in one example of the embodiment of the present invention, if the pipe to be laid out at the current moment is square or rectangular, both the end frame CSLine and the end frame CELine of the pipe to be laid out can be used as comparison frames, while if the pipe to be laid out at the current moment is D-shaped, only the end frame CSLine of the pipe can be used as comparison frames.
[0043] Step 103: Move the frame to be compared at the minimum position on the horizontal axis to the maximum position on the horizontal axis at the current moment to obtain the pipe arrangement position;
[0044] As an example of this embodiment, the coordinate values of each point of the comparison frame at the current time on the horizontal axis are obtained; the values of each point are compared one by one to obtain the minimum position on the horizontal axis; based on the minimum position on the horizontal axis, the pipe of the part to be arranged at the current time is moved to the maximum position on the horizontal axis of the comparison frame at the current time to obtain the pipe arrangement position.
[0045] To avoid failing to maximize the utilization of the entire pipe length during material feeding, this embodiment of the invention proposes an example of moving the comparison frame at its minimum position on the horizontal axis to its maximum position at the current moment. This ensures that the positions of the pipe to be fed and the already fed pipes are in a potential arrangement position. This technical solution allows for full utilization of the entire pipe length during material feeding, reducing waste and improving the reliability of the feeding results. For a specific implementation method, see [link to implementation details]. Figure 6 , Figure 6 A schematic diagram of a pipe material feeding method provided in one embodiment of the present invention. Figure 6 ;like Figure 6 As shown, the initial end frame PELine of the pipe to be arranged, which serves as the comparison frame, is regarded as a curve composed of several points. The coordinate position of each point on the horizontal axis is obtained, and the maximum value is taken. Similarly, the end frame CSLine or end frame CELine of the pipe to be arranged at the current moment, which serves as the comparison frame, can also be regarded as a curve composed of several points. The coordinate position of each point on the horizontal axis is obtained, and the minimum value is taken. The minimum value of the comparison frame is moved to the maximum value of the comparison frame to obtain the pipe arrangement position. It is worth mentioning that if the end frame CELine is not used as the comparison frame, this step can be ignored.
[0046] Step 104: Discretize the three-dimensional wireframe of the pipe arrangement position into several line segments, and expand the several line segments into a two-dimensional wireframe based on a preset reset starting point;
[0047] As an example of this embodiment, if the pipe to be arranged at the current moment is a round pipe, then the number of comparisons is obtained according to a preset step angle of rotation around the horizontal axis; based on the number of comparisons, the three-dimensional wireframe of the pipe arrangement position is rotated around the horizontal axis, and the rotation path is discretized into several line segments; a reset starting point is set at a position where the vertical axis is greater than a preset threshold and the vertical axis is equal to a preset threshold; based on the reset starting point, the several line segments are unfolded into a two-dimensional wireframe. If the pipe to be arranged at the current moment is not a round pipe, then the pipe arrangement position is rotated according to a preset pipe rotation comparison table, and the pipe arrangement position is unfolded into a two-dimensional wireframe.
[0048] Since the shapes of the tubing to be arranged vary, simply rotating the tubing may prevent it from being arranged into the entire discharge tube. To better utilize the length of the discharge tube and simplify the discharge process, this invention proposes to rotate the tubing along the horizontal axis by comparing the types of the tubing. Specifically, different comparison counts are assigned to different tubing types to reduce unnecessary and ineffective rotation comparisons, thus accelerating the discharge speed. This also simplifies the discharge process and improves the reliability of the discharge results. One possible implementation involves first determining the number of comparisons based on the tubing type and a preset step angle α. If the tubing to be arranged is currently circular, since the cross-sections of a circular tubing remain consistent regardless of rotation, the number of comparisons only needs to be calculated based on the preset step angle α. The specific formula is as follows:
[0049] n = 360.0 / a;
[0050] In the formula, n is the number of comparisons to be performed, and a is the preset step angle;
[0051] If the shape of the tubing to be arranged is other than the current shape, the corresponding comparison number will be retrieved according to the preset tubing rotation comparison table. Please refer to [link to relevant documentation] for details. Figure 7 , Figure 7 A schematic diagram of a pipe material feeding method provided in one embodiment of the present invention. Figure 7 ;like Figure 7 As shown in the figure, the "√" in the upper right corner indicates that the material can be placed into the tube after rotation. The step angle 'a' is set to 90°. When the square tube is rotated, there are four comparable points. Therefore, the number of comparisons for the square tube is recorded as 4. Similarly, when the rectangular tube and the D-shaped tube are rotated, the number of comparisons is 2 and 1 respectively. By considering the shape of the tube of the part to be arranged at the current moment, this can avoid multiple rotation comparison calculations that yield no results, speed up the material arrangement, and improve the reliability of the material arrangement results.
[0052] Current nesting algorithms are all three-dimensional, which are complex and computationally intensive. To simplify the nesting process, this invention proposes converting the three-dimensional calculation into a two-dimensional calculation. One specific implementation involves rotating the CSLine and CELine of the tubing to be nested at each current moment around the horizontal axis based on the number of comparisons required, and recording the rotation path. The rotation path (including the paths of PELine, CSLine, and CELine) is then discretized into several line segments. [The rest of the text is missing.] Figure 8 , Figure 8 A schematic diagram of a pipe material feeding method provided in one embodiment of the present invention. Figure 8 ;like Figure 8 As shown, the position where the vertical axis is greater than 0 (equivalent to a preset threshold) and the vertical axis is equal to 0 (equivalent to a preset threshold) is taken as the reset starting point. See [link / reference]. Figure 9 , Figure 9 A schematic diagram of a pipe material feeding method provided in one embodiment of the present invention. Figure 9 ;like Figure 9 As shown, based on the reset starting point, several line segments are unfolded from a three-dimensional wireframe into a two-dimensional wireframe.
[0053] Step 105: Based on the preset comparison algorithm, if the two-dimensional wireframe meets the common edge requirement, the pipe to be arranged at the current moment is arranged into the whole pipe of the material arrangement according to the two-dimensional wireframe, and the tail wireframe of the pipe to be arranged at the current moment is updated to the comparison wireframe of the next moment, and the pipe arrangement process ends.
[0054] As an example of the embodiment, based on a preset comparison algorithm, rays are drawn from each point of the current time comparison line frame along the horizontal axis to the points of the current time comparison line frame corresponding to the same vertical axis value, the rays intersect with the current time comparison line frame and the current time comparison line frame, and a plurality of corresponding intersection points are obtained; based on the plurality of corresponding intersection points, the distance values between the plurality of corresponding intersection points are calculated; if the distance values between the plurality of corresponding intersection points are equal, the two-dimensional line frame meets the common edge requirement, and the current time part pipe material is arranged into the material arrangement whole pipe according to the two-dimensional line frame, and the tail end line frame of the current time part pipe material is updated as the next time comparison line frame, and the pipe material arrangement process is ended. If the distance values between the plurality of corresponding intersection points are not equal, the sum of the distance values between the plurality of corresponding intersection points when the head end line frame of the current time part pipe material is taken as the current time comparison line frame is calculated to obtain a first distance value; the sum of the distance values between the plurality of corresponding intersection points when the tail end line frame of the current time part pipe material is taken as the current time comparison line frame is calculated to obtain a second distance value; if the first distance value is less than the second distance value, the current time part pipe material is arranged into the material arrangement whole pipe according to the two-dimensional line frame developed when the head end line frame of the current time part pipe material is taken as the current time comparison line frame, and the tail end line frame of the current time part pipe material is updated as the next time comparison line frame, and the pipe material arrangement process is ended; if the first distance value is greater than the second distance value, the current time part pipe material is arranged into the material arrangement whole pipe according to the two-dimensional line frame developed when the tail end line frame of the current time part pipe material is taken as the current time comparison line frame, and the head end line frame of the current time part pipe material is updated as the next time comparison line frame, and the pipe material arrangement process is ended.
[0055] In order to further guarantee the reliability of the pipe material arrangement result, the preset comparison algorithm is used to judge the common edge of the pipe material, and whether the two-dimensional line frame meets the common edge requirement is checked. The common edge requirement means that if two pipes can share a part of the boundary without generating additional waste, they should be arranged together preferentially. When the two-dimensional line frame meets the common edge condition, the current time part pipe material is arranged into the material arrangement whole pipe according to the two-dimensional line frame, and the comparison line frame of the next time is updated, thereby providing a comparison basis for the next pipe material arrangement process. When the two-dimensional line frame does not meet the common edge condition, the sum of the distance values between the plurality of corresponding intersection points is compared, and the optimal arrangement mode is selected. For a specific implementation, see Figure 10 , Figure 10 A pipe material arrangement method provided for an embodiment of the present application Figure 10 As shown in Figure 10As shown, PELine and CSLine, PELine and CEl ine are compared respectively by ray method (equivalent to preset comparison algorithm), and PELine, CSLine and CEl ine are regarded as curves composed of a plurality of points, for each point of PELine, a ray is made along the horizontal axis at the corresponding vertical axis height to CSLine and CEl ine, the ray intersects with PELine, CSLine and CEl ine, the intersection points are recorded as X(PELine), X(CSLine) and X(CELine), and the distances between the intersection points are recorded as ΔX1 and ΔX2, and the calculation formula is as follows:
[0056] ΔX1 = |X(PELine) - X(CSLine) |;
[0057] or ΔX2 = |X(PELine) - X(CELine) |;
[0058] Referring to Figures 11 to 13 , Figure 11 Fig. 1 is a schematic diagram of a pipe material discharging method provided by an embodiment of the present application Figure 10 Fig. 2 is a schematic diagram of a pipe material discharging method provided by another embodiment of the present application Figure 12 Fig. 3 is a schematic diagram of a pipe material discharging method provided by another embodiment of the present application Figure 10 Fig. 4 is a schematic diagram of a pipe material discharging method provided by another embodiment of the present application Figure 13 Fig. 5 is a schematic diagram of a pipe material discharging method provided by another embodiment of the present application Figure 10 Fig. 6 is a schematic diagram of a pipe material discharging method provided by another embodiment of the present application Figures 11 to 13 As shown, by judging whether the distances △X between the intersection points under different vertical axes are equal within the error range, if equal, it indicates that PELine and CSLine share an edge or PELine and CEl ine share an edge; if not equal, the sum of the distances ΔX1 and ΔX2 between the intersection points when CSLine and CEl ine are taken as the frame lines to be compared is calculated respectively, and recorded as ∑ΔX1 and ∑ΔX2; the sizes of ∑ΔX1 and ∑ΔX2 are compared, and the minimum value is taken as the optimal discharging mode; finally, according to the horizontal axis position, horizontal axis rotation angle and vertical axis rotation angle required for the pipe material to be discharged at the current time, the pipe material to be discharged at the current time is rotated and moved into the AP according to the obtained data, if the head end frame of the pipe material to be discharged at the current time is taken as the frame to be compared when discharged into the AP, the tail end frame of the pipe material to be discharged at the current time is updated as the frame to be compared at the next time, if the tail end frame of the pipe material to be discharged at the current time is taken as the frame to be compared, the head end frame of the pipe material to be discharged at the current time is updated as the frame to be compared at the next time, and the pipe material discharging process is ended.
[0059] As another example of the embodiment of the application, before the pipe material discharging process is performed, the following steps are included: judging whether the discharging whole pipe is full or not, if not, judging whether there is un-discharged pipe material or not, if yes, performing the pipe material discharging process, if the discharging whole pipe is full or there is no un-discharged pipe material, ending the pipe material discharging process.
[0060] The embodiment of the application provides a pipe material discharging method, by obtaining the current time comparison line frame and the current time to-be-compared line frame of the to-be-discharged pipe material of a part, and moving on the horizontal axis to ensure that the pipe material discharging is in a correct position in the discharging whole pipe, and to provide reliable data basis for subsequent processing, and then discretizing the three-dimensional line frame into a plurality of line segments and unfolding the three-dimensional line frame into a two-dimensional line frame, by converting the three-dimensional processing into two-dimensional processing, the processing flow is simplified, the data calculation amount is reduced, only two-dimensional data operation is considered and processed, in addition, in the process of converting the three-dimensional processing into the two-dimensional processing, a starting point is reset to ensure that there is a reference point in the dimension conversion process, and the reliability of data processing is ensured, and then the two-dimensional line frame is subjected to edge sharing judgment, which means that the pipe material needs to be as close as possible to the previous pipe material in the discharging process, so that the optimal scheme can be arranged, and the next time comparison line frame is updated to provide reliable data for the next cycle of pipe material discharging, through the above steps, reliable processing data is provided, the three-dimensional to two-dimensional processing method and the edge sharing requirement judgment not only simplify the discharging processing process, but also improve the reliability of the discharging result.
[0061] Embodiment 2
[0062] Referring to Figure 14 , Figure 14 A module structure schematic diagram of a pipe material discharging system provided by an embodiment of the application is shown. Figure 14 As shown in the figure, the embodiment of the application provides a pipe material discharging system, which includes:
[0063] A first line frame obtaining module 201, a second line frame obtaining module 202, a pipe material arrangement position obtaining module 203, a two-dimensional unfolding module 204 and a pipe material discharging module 205, the first line frame obtaining module 201 is used to obtain the end tail line frame of the initial to-be-discharged pipe material of a part as a current time comparison line frame in the first pipe material discharging process.
[0064] The second line frame acquisition module 202 is configured to acquire the head end line frame of the pipe to be arranged at the current time as the current time to-be-compared line frame and acquire the current time comparison line frame; the pipe arrangement position acquisition module 203 is configured to move the minimum position of the current time to-be-compared line frame on the horizontal axis to the maximum position of the current time comparison line frame on the horizontal axis to obtain the pipe arrangement position; the two-dimensional expansion module 204 is configured to discretize the three-dimensional line frame of the pipe arrangement position into a plurality of line segments, and expand the plurality of line segments into a two-dimensional line frame based on a preset reset starting point; and the pipe arrangement module 205 is configured to, based on a preset comparison algorithm, if the two-dimensional line frame meets the common edge requirement, arrange the pipe to be arranged at the current time into the pipe arrangement pipe according to the two-dimensional line frame, and update the tail end line frame of the pipe to be arranged at the current time as the next time comparison line frame, and end the pipe arrangement process.
[0065] The pipe arrangement system provided by the embodiment of the present application acquires the current time comparison line frame and the current time to-be-compared line frame of the pipe to be arranged through the first line frame acquisition module and the second line frame acquisition module, and moves on the horizontal axis through the pipe arrangement position acquisition module to ensure that the pipe arrangement is in the correct position in the pipe arrangement pipe, thereby providing reliable data basis for subsequent processing, and then discretizes the three-dimensional line frame into a plurality of line segments and expands it into a two-dimensional line frame through the two-dimensional expansion module, thereby simplifying the processing flow, reducing the data calculation amount, considering and processing only the operation of two-dimensional data, and further setting a reset starting point in the process of converting the three-dimensional processing into two-dimensional processing to ensure that there is a reference point in the dimension conversion process, thereby guaranteeing the reliability of data processing, and then performing common edge judgment on the two-dimensional line frame through the pipe arrangement module, which means that the pipe needs to be as close as possible to the previous pipe during the pipe arrangement process, so that the optimal scheme can be arranged, and the next time comparison line frame is updated, thereby providing reliable data for the next cycle of pipe arrangement. Through the above steps, reliable processing data is provided, the processing method of converting three-dimensional to two-dimensional and the judgment of the common edge requirement not only simplify the pipe arrangement process, but also improve the reliability of the pipe arrangement result.
[0066] The above only describes the preferred embodiments of the present application, and it should be noted that those skilled in the art can make several improvements and modifications without departing from the technical principles of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.
[0067] In the description of the application, the description of the terms "one embodiment", "some embodiments", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in connection with the embodiment or example are contained in at least one embodiment or example of the application. Moreover, the specific features, structures, materials or characteristics described can be combined in any suitable manner in any one or more embodiments or examples. In addition, the person skilled in the art can combine and combine the different embodiments or examples described in the specification and the features of the different embodiments or examples, without mutual contradiction.
[0068] In addition, the terms "first", "second" are only used for description purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the technical features indicated. Therefore, the features defined with "first", "second" can explicitly or implicitly include at least one of the features. In the description of the application, the meaning of "multiple" is two or more, unless otherwise specifically limited.
Claims
1. A pipe material layout method, applied to pipe layout assembly, wherein the pipe layout assembly includes an initial pipe material to be laid out; the pipe layout assembly is set in a preset coordinate system, the preset coordinate system including: Horizontal axis, vertical axis, and vertical axis; The end frames of the initial tubular parts to be arranged are set at the origin of the preset coordinate system, characterized in that the tubular material arrangement method includes: During the first pipe material laying process, the tail end wireframe of the initial pipe to be laid out is obtained as the comparison wireframe at the current moment; Perform the pipe material layout process: The process of obtaining the head end wireframe of the pipe to be arranged at the current moment as the comparison wireframe at the current moment and obtaining the comparison wireframe at the current moment includes: if the type of the pipe to be arranged at the current moment does not meet the preset vertical axis rotation requirements, then the head end wireframe of the pipe to be arranged at the current moment is obtained as the comparison wireframe at the current moment; if the current pipe arrangement process is not the first execution of the pipe arrangement process, then the tail end wireframe of the pipe to be arranged at the previous moment is obtained as the comparison wireframe at the current moment. Move the frame to be compared at the minimum position on the horizontal axis to the maximum position on the horizontal axis at the current moment to obtain the pipe arrangement position; The three-dimensional wireframe of the pipe arrangement position is discretized into several line segments. Based on a preset reset starting point, the several line segments are expanded into a two-dimensional wireframe. This includes: if the pipe to be arranged at the current moment is a round pipe, then the number of comparisons is obtained according to a preset step angle of rotation around the horizontal axis; based on the number of comparisons, the three-dimensional wireframe of the pipe arrangement position is rotated around the horizontal axis, and the rotation path is discretized into several line segments; a reset starting point is set at a position where the coordinate value of the vertical axis is greater than a preset threshold and the coordinate value of the vertical axis is equal to a preset threshold; based on the reset starting point, the several line segments are expanded into a two-dimensional wireframe. Based on the preset comparison algorithm, if the two-dimensional wireframe meets the common edge requirement, the pipe to be arranged at the current moment is arranged into the whole pipe of the material arrangement according to the two-dimensional wireframe, and the tail wireframe of the pipe to be arranged at the current moment is updated to the comparison wireframe of the next moment, thus ending the pipe material arrangement process.
2. The pipe material arrangement method as described in claim 1, characterized in that, If the type of the part to be arranged at the current moment meets the preset vertical axis rotation requirements, then rotate the part to be arranged at the current moment by a preset angle, and obtain the tail end wireframe of the part to be arranged at the current moment as the wireframe to be compared at the current moment.
3. The pipe material arrangement method as described in claim 2, characterized in that, Moving the current comparison frame to its minimum position on the horizontal axis to its maximum position on the horizontal axis at the current moment yields the pipe arrangement position, including: Obtain the coordinate values of each point of the wireframe to be compared on the horizontal axis at the current time; Compare the values of each point one by one to find the minimum position on the horizontal axis; Based on the minimum position on the horizontal axis, the pipe to be arranged at the current moment is moved to the maximum position on the horizontal axis of the comparison frame at the current moment, and the pipe arrangement position is obtained.
4. The pipe material arrangement method as described in claim 3, characterized in that, Discretizing the three-dimensional wireframe of the pipe arrangement position into several line segments, and expanding the several line segments into a two-dimensional wireframe based on a preset reset starting point, further includes: If the pipe to be arranged at the current moment is not a round pipe, then the pipe arrangement position is rotated according to the preset pipe rotation comparison table, and the pipe arrangement position is unfolded into a two-dimensional wireframe.
5. The pipe material feeding method as described in claim 2, characterized in that, The method based on a preset comparison algorithm, if the two-dimensional wireframe meets the common edge requirement, then according to the two-dimensional wireframe, the pipe to be arranged at the current moment is arranged into the entire pipe arrangement, and the tail wireframe of the pipe to be arranged at the current moment is updated to the comparison wireframe at the next moment, thus ending the pipe arrangement process, includes: Based on a preset comparison algorithm, rays are drawn from each point of the current comparison frame along the horizontal axis to each point of the current comparison frame with the same vertical axis value. The rays intersect both the current comparison frame and the current comparison frame, resulting in several pairwise intersection points. Based on the pairwise intersection points, calculate the distance between the pairwise intersection points; If the distance values between the corresponding intersection points are all equal, the two-dimensional wireframe satisfies the common edge requirement. Based on the two-dimensional wireframe, the pipe to be arranged at the current moment is arranged into the pipe arrangement, and the tail wireframe of the pipe to be arranged at the current moment is updated to the comparison wireframe at the next moment, thus ending the pipe arrangement process.
6. The pipe material arrangement method as described in claim 5, characterized in that, The method based on a preset comparison algorithm, whereby if the two-dimensional wireframe meets the common edge requirement, the pipe to be arranged at the current moment is placed into the entire pipe arrangement according to the two-dimensional wireframe, and the tail wireframe of the pipe to be arranged at the current moment is updated to the comparison wireframe at the next moment, thus ending the pipe arrangement process, further includes: If the distance values between the pairwise corresponding intersection points are not equal, calculate the sum of the distance values between the pairwise corresponding intersection points of the current time frame of the pipe to be arranged as the current time frame to be compared, and obtain the first distance value. The second distance value is obtained by summing the distance values between the pairwise corresponding intersection points of the tail end wireframe of the part to be arranged at the current time as the wireframe to be compared at the current time. If the first distance value is less than the second distance value, the head end wireframe of the pipe to be arranged at the current moment is used as the two-dimensional wireframe when the wireframe to be compared at the current moment. The pipe to be arranged at the current moment is then arranged into the pipe arrangement, and the tail end wireframe of the pipe to be arranged at the current moment is updated to the comparison wireframe at the next moment, thus ending the pipe arrangement process. If the first distance value is greater than the second distance value, then the tail end wireframe of the pipe to be arranged at the current moment is used as the two-dimensional wireframe expanded when the wireframe to be compared at the current moment. The pipe to be arranged at the current moment is then arranged into the pipe arrangement, and the head end wireframe of the pipe to be arranged at the current moment is updated to the comparison wireframe at the next moment, thus ending the pipe arrangement process.
7. The pipe material arrangement method as described in claim 1, characterized in that, Before executing the pipe material layout process, the following should be included: Determine if the entire pipe is fully discharged; if not, determine if there are any undischarged pipes. If there are any unlaid pipes, then proceed with the pipe laying process; If the pipe is fully discharged or there are no undischarged pipes, the pipe discharge process ends.
8. A pipe material discharging system, characterized in that, Performing a pipe material laying method as described in any one of claims 1 to 7, comprising: The module includes a first wireframe acquisition module, a second wireframe acquisition module, a pipe arrangement position acquisition module, a two-dimensional unfolding module, and a pipe layout module. The first wireframe acquisition module is used to acquire the tail wireframe of the initial part to be arranged pipe as the comparison wireframe at the current moment during the first pipe material laying process. Perform the pipe material layout process: The second wireframe acquisition module is used to acquire the head end wireframe of the pipe to be arranged at the current moment as the wireframe to be compared at the current moment and to acquire the comparison wireframe at the current moment, including: if the type of the pipe to be arranged at the current moment does not meet the preset vertical axis rotation requirements, then acquire the head end wireframe of the pipe to be arranged at the current moment as the comparison wireframe at the current moment; if the current pipe arrangement process is not the first execution of the pipe arrangement process, then acquire the tail end wireframe of the pipe to be arranged at the previous moment as the comparison wireframe at the current moment. The pipe arrangement position acquisition module is used to move the current comparison frame at the minimum position on the horizontal axis to the current comparison frame at the maximum position on the horizontal axis to obtain the pipe arrangement position. The two-dimensional unfolding module is used to discretize the three-dimensional wireframe of the pipe arrangement position into several line segments, and unfold the several line segments into a two-dimensional wireframe based on a preset reset starting point. This includes: if the pipe to be arranged is a round pipe at the current moment, obtaining the number of comparisons based on a preset step angle around the horizontal axis; rotating the three-dimensional wireframe of the pipe arrangement position around the horizontal axis based on the number of comparisons, and discretizing the rotation path into several line segments; setting a reset starting point at a position where the coordinate value on the vertical axis is greater than a preset threshold and the coordinate value on the vertical axis is equal to a preset threshold; and unfolding the several line segments into a two-dimensional wireframe based on the reset starting point. The pipe laying module is used to lay the pipe to be laid in the laying whole pipe according to the two-dimensional wireframe if the two-dimensional wireframe meets the common edge requirement, and update the tail wireframe of the pipe to be laid in the current time to the comparison wireframe of the next time, and end the pipe laying process.
Citation Information
Patent Citations
Automatic feeding frame of laser pipe cutting machine
CN114955508A
Self-adaptive completely-free-rotation discharging method and device for parts in trepanning and electronic equipment
CN117008537A