Plastic window four-corner welding processing method and system based on data analysis and position mapping
Through automatic barcode identification and dynamic coordinate mapping, combined with equipment linkage control, the problem of manual measurement error and insufficient equipment linkage in window processing is solved, and the automatic analysis and intelligent processing of window profile data is realized, and the processing accuracy and efficiency are improved.
Patent Information
- Application Number
- CN202510381330.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-28
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2045-03-28
AI Technical Summary
In the prior art, there are problems such as large errors in manual measurement and low efficiency in the window processing process, high manual experience reliance on profile code recognition, complex processing of special profiles, insufficient processing of processing files, cumbersome welding temperature settings, and insufficient equipment linkage, resulting in low degree of processing intelligence.
Through automatic barcode identification, automatic analysis of processing files, dynamic coordinate mapping and device linkage control, automatic analysis of window profile data is realized, angle clearing program code is generated, and welding temperature is automatically adjusted to realize device linkage.
It improves the accuracy and efficiency of window processing, reduces manual errors, realizes the automation and intelligence of window processing, and reduces the probability of errors.
Smart Images

Figure CN120295209A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data parsing, and in particular to a plastic window four-corner welding processing method and system based on data parsing and position mapping. Background Art
[0002] With the development of modernization and the progress of science, the demand for intelligent processing technology is increasing. At present, the four-corner welding equipment can only manually measure the length of each profile before processing each window and then fill it in from the interface. When it comes to inches, conversion is required for each length. And when the current welding and cleaning line is connected online, the corner cleaning machine needs to know what profile each side of the welding machine is, so as to select the appropriate corner cleaning program for automatic processing. Windows are generally made of four identical profiles, or some are 3 + 1 profiles (3 ordinary profiles and 1 special profile). In this scenario, it is also necessary to distinguish according to the position of the backing plate, which requires a high level of ability and skill from workers, and is too dependent on manual operation, with a higher error rate and lower efficiency.
[0003] In fact, there is a specific processing details file before window processing, including the width and height of this window, the profile code of each side of the window, and the unique identification code of the window. And after the initial cutting, each piece of material will be attached with a label to identify the window information. The previous working mode did not make good use of the processing details file, nor did it give full play to the role of bar code information.
[0004] Therefore, based on the understanding, sorting and analysis of the prior art, the present invention summarizes the technical problems existing in the prior art as follows: 1. Manual measurement and input: The prior art requires manual measurement of the profile length, combined with consumption to calculate the actual window size, and then manually set the window width and height, which is error-prone and inefficient; 2. Profile code identification: Before processing each window, workers need to identify the profile code of each side, which requires a high level of experience from workers; 3. Special profile processing: For 3 + 1 profiles with special profiles, workers also need to distinguish whether the profile and the backing plate are compatible and find the position of the backing plate for placing the special profile; 4. Insufficient utilization of processing files: The existing processing details files and bar code information are not fully utilized, and the degree of intelligence is low; 5. Complex welding temperature setting: During operation, it is necessary to know the actual processing temperature of each profile. When two adjacent profiles are involved, it is also necessary to judge which temperature to use specifically, and manual setting is required before each processing; Combine the profile information of each side to obtain the corresponding welding temperature of each profile from the database, calculate the welding temperature used for each corner immediately after scanning the code and download it to the PLC for temperature adjustment; 6. Insufficient equipment linkage: The welding machine and the corner cleaning equipment operate independently, lacking automatic linkage.
[0005] Especially in the current field of home improvement window customization requirements are very high. In order to improve the factory work efficiency, we have launched a welding and cleaning line to help users quickly generate a window and complete the weld seam treatment after welding. Summary of the Invention
[0006] In order to solve the above-mentioned problems, the present invention provides a plastic window four-corner welding processing method and system based on data parsing and position mapping. Through barcode automatic recognition, processing file automatic parsing, dynamic coordinate mapping, automatic compensation model and equipment linkage control, the automation and intelligence of window processing are realized.
[0007] In a first aspect, a plastic window four-corner welding processing method based on data parsing and position mapping provided by the present invention adopts the following technical solutions: A plastic window four-corner welding processing method based on data parsing and position mapping includes: Setting a window display area and a backing plate, including setting a window information display area in the upper computer software parameter setting interface, and selecting the special backing plate position and backing plate thickness in the setting interface for dynamic mapping of the profile position; Obtaining a processing details file by scanning a code to obtain window profile data; Identifying special profiles according to the window profile data; Mapping the profile position by combining the position serial number of the special profile and the position serial number of the special backing plate; Mapping the actual chamfering program code used for each corner of the window according to the profile position; Downloading the chamfering program code to the PLC for processing.
[0008] Further, the obtaining of the processing details file by scanning a code includes obtaining a window order number by scanning a code, extracting the first five processing serial numbers according to the order number, retrieving the processing details file according to the processing serial numbers, and obtaining the window size and profile code according to the processing details file, where the window size includes the window width and height, and the profile code includes a special profile code and a common profile code.
[0009] Further, the identification of special profiles based on window profile data includes identifying special profiles using a special profile positioning algorithm based on Map statistics, which includes initializing an empty Map with the profile code as the key and the number of occurrences as the value; traversing the four profiles and storing them in the Map one by one; if the profile code already exists, increment the value by 1; otherwise, add a new key-value pair; determine the profile type. For example, if it meets Rule 1: Map.size() == 1, then all profiles are the same and there are no special profiles; if it meets Rule 2: Map.size() == 2, then extract the profile code with a value of 1 as the special profile. Finally, calculate based on the profile position and the special backing plate position, and display the specific information of each side profile and the profile cross-section diagram on the operation interface during actual processing.
[0010] Further, the mapping of the position serial number of the special profile and the position serial number of the special backing plate to obtain the profile position includes window size conversion and profile position calculation. Among them, the window size conversion includes: if the position serial number of the special profile and the position serial number of the special backing plate are equal, or belong to the upper and lower sides, or belong to the left and right sides, then the window width and height during processing are the same as those in the original processing file; otherwise, swap the window width and height, change the width in the original processing to the height in the actual processing, and change the height in the original processing to the width in the actual processing. The window size exchange formula is: (windowW, windowH) = {(W, H) if (ret == positSpe)∨(sign(ret) == sign(positSpe)) (H, W) otherwise} where: sign(x) = {1 if x≤2; -1 if x>2} represents the interval sign function, and W and H are the original input values.
[0011] Further, the profile position calculation includes using the special backing plate position as the reference, setting the profile code as the special profile code, and setting other profile code information for other positions. The profile position determination formula is expressed as: label_profilek = { specialProfile if k == positSpe comProfile otherwise } where k ∈ {1,2,3,4} represents the four profile position indexes, and positSpe ∈ {1,2,3,4} is the special profile position mark input as a parameter.
[0012] Further, the chamfering program code actually used for each corner of the window mapped according to the profile position includes that when the profile codes of the four profiles of the window are the same, the chamfering program code for each corner of the window is the profile code itself; when the window is of the 3+1 profile type, since the position of the special profile is the same as the position of the special backing plate set in the interface; it is defined that the four corners are respectively corner 1, corner 2, corner 3, and corner 4 from top to bottom and from left to right. Among them, four sides E = {top, left, right, bottom} are defined, and each side corresponds to two corners: top → {1,2}, left → {1,3}, right → {2,4}, bottom → {3,4}.
[0013] Further, the chamfering program code actually used for each corner of the window mapped according to the profile position further includes quickly determining the four corners by constructing a 4×4 association matrix, which is expressed as: M = [1,1,0,0], / / When the upper side is activated, corners 1 and 2 are associated [1,0,1,0], / / When the left side is activated, corners 1 and 3 are associated [0,1,0,1], / / When the right side is activated, corners 2 and 4 are associated [0,0,1,1] / / When the lower side is activated, corners 3 and 4 are associated The formula for allocating the chamfering code of the profile is expressed as: label_profilek = (∑_{i=1}^4 S_i × M[i][k-1])>0? specialProfile : comProfile Wherein, S_i ∈{0,1} represents whether the four sides are special profiles, i = 1: upper side, i = 2: left side, i = 3: right side, i = 4: lower side, M is the corner point of the 4×4 association matrix, and the numbering is defined clockwise, 1 upper left, 2 upper right, 3 lower left, 4 lower right.
[0014] Further, downloading the chamfering program code to the PLC for processing includes obtaining the welding temperature corresponding to the profile from the profile information maintenance table, including ordinary profiles and special profiles; judging the magnitudes of the temperatures of the ordinary profiles and the special profiles. When the welding temperature of the ordinary profile is higher than that of the special profile, setting the temperature of the special profile equal to the temperature of the ordinary profile; setting the temperatures of all four corners to be the temperature of the ordinary profile; calculating the positions of the two corners corresponding to the special profile according to the position of the special backing plate, and setting the temperature of the special profile at this position, and writing the temperatures of the four corners into the PLC for temperature setting.
[0015] Further, the downloading of the chamfering program code to the PLC for processing includes determining whether the actual temperature of the current welding plate meets the set temperature range, and judging whether it is two cycles or three cycles according to the window height and the size of the set secondary loading position; among them, when the window height is greater than the set secondary loading position, three cycles are required. The first time is to place the horizontal material at the far end, and it is prompted through the interface that the material on side 1 needs to be placed; the second time is to place the remaining three materials; the last time is to complete welding, extrusion, unloading and transmission actions; when the window height is less than or equal to the set secondary loading position, only two cycles are performed. The first time is to place four materials, and the second time is to complete welding, extrusion, unloading and transmission actions.
[0016] Further, the downloading of the chamfering program code to the PLC for processing further includes calculating the processing dimensions using an automatic compensation algorithm, including that the X-axis position during material feeding is the window width + twice the thickness of the backing plate + the X-axis loading allowance, and the Y-axis position is the window height + twice the thickness of the backing plate + the Y-axis loading allowance; when welding and heating, the XY axes return to the current position minus the current axis loading allowance position; at this time, the clamping pliers press down to fix the material, and the machine head retracts to return the positioning plate to vacate a position; after the positioning plate retracts in place, the welding plate extends; after the welding plate reaches the position, the machine head feeds to heat the profile section.
[0017] In a second aspect, a plastic window four-corner welding processing system based on data parsing and position mapping includes: A display module, configured to set a window display area and set a backing plate, including setting a window information display area in the upper computer software parameter setting interface, and selecting a special backing plate position and backing plate thickness in the setting interface for dynamic mapping of the profile position; A code scanning module, configured to obtain a processing details file through code scanning to obtain window profile data; An identification module, configured to identify special profiles according to the window profile data; A mapping module, configured to map the profile position by combining the position serial number of the special profile and the position serial number of the special backing plate; map the actual chamfering program code used for each corner of the window according to the profile position; A processing module, configured to download the corner program code to the PLC for processing.
[0018] In a third aspect, the present invention provides a computer-readable storage medium, in which multiple instructions are stored, and the instructions are adapted to be loaded and executed by a processor of a terminal device for the above-mentioned plastic window four-corner welding processing method based on data parsing and position mapping.
[0019] Fourthly, the present invention provides a terminal device, including a processor and a computer-readable storage medium. The processor is used to implement each instruction; the computer-readable storage medium is used to store multiple instructions, and the instructions are adapted to be loaded and executed by the processor for the plastic window four-corner welding processing method based on data parsing and position mapping.
[0020] In summary, the present invention has the following beneficial technical effects: The method of the present invention for analyzing the original processing data and calculating how to place the materials in combination with the actual parameters of the four-corner welding equipment first scans the code to obtain the window order number, retrieves the original processing file of this order batch from a certain fixed path according to the first five digits of the order number, and queries the specific processing information (the width and height of the window, the profile information of each side) from this processing file according to the window order number, and calculates the process of how the worker actually needs to place the materials in combination with the position of the special profile backing plate. This greatly improves the processing accuracy, reduces the dependence on manual experience, and at the same time reduces the probability of errors.
[0021] Through the technical solution of the present invention, users do not need to manually measure and then subtract the window width and height information obtained from the processing consumption, which greatly improves the work efficiency, saves time, and realizes the automation of the plastic window welding processing process.
[0022] The accuracy of profile code generation is improved, and the efficiency of workers setting the window width and height is increased; after calculating the chamfering program for each corner of the window, when the window moves to the four-head chamfering, after the four-head chamfering obtains the window information, it can automatically select the corresponding chamfering NC program to work, improving the connection automation program; BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a schematic diagram of the welding and chamfering line mode in Embodiment 1 of the present invention; Figure 2 is a schematic diagram of the corresponding chamfering program of the profile in Embodiment 1 of the present invention; Figure 3 is a schematic diagram of the numbering and position relationship of the four corners of the window in Embodiment 1 of the present invention. DETAILED DESCRIPTION OF THE INVENTION
[0023] The present invention will be further described in detail below with reference to the accompanying drawings.
[0024] Embodiment 1 Refer to Figure 1 , a plastic window four-corner welding intelligent processing method in this embodiment realizes the automation and intelligence of window processing through barcode automatic recognition, processing file automatic parsing, dynamic coordinate mapping, automatic compensation model, and equipment linkage control.
[0025] The core processing flow of the invention is as follows: A[Scan and input] --> B{Barcode verification} B -->|Valid| C[Retrieve processing file] B -->|Invalid| Z[Error prompt] C --> D[Identify profile features] D --> E{Determine profile type} E -->|Uniform profile| F[Generate standard process] E -->|3 + 1 profile| G[Locate special profile] G --> H[Coordinate mapping transformation] H --> I[Decision-making for corner cleaning procedure] I --> J[Compensate process parameters] J --> K[Generate equipment instructions] K --> L[Send PLC parameters] To achieve the above object, the present invention provides the following technical solutions. The specific steps are as follows: First step: Display on the host computer interface: Add a window information display area to show the window type, processing serial number, barcode information, profile information, etc.
[0026] Second step: Set the position of the special backstop: Select the position of the special backstop in the setting interface for the dynamic mapping of the subsequent profile position.
[0027] Third step: Barcode recognition: Identify the barcode information through a barcode scanner and automatically obtain the processing details file.
[0028] Fourth step: Parse the processing file: Extract the width, height of the window and the profile code of each side from the processing details file according to the barcode information.
[0029] Fifth step: Determine the profile type: Judge whether the four sides are the same profile. If it is a 3 + 1 profile, dynamically generate the actual material position according to the position of the special backstop; Sixth step: Generate the corner cleaning program: Automatically generate the corner cleaning program code for each corner according to the profile topological relationship. See the appendix Figure 2 Seventh step: Calculate the welding temperature: Obtain the welding temperature according to the profile information and download it to the PLC for temperature adjustment.
[0030] Eighth step: Parameter setting: Set the window width and height, the profile information of each side, the corner cleaning program of each corner, and the welding temperature of each corner to the PLC; Ninth step: Interface display: Display the window width and height, the profile code and profile cross-sectional view on each side; Step 10: Processing parameter compensation: Calculate the actual processing size through the automatic compensation model, considering the thickness of the backing plate, the feeding allowance, and the welding shrinkage compensation; The compensation formula is: L_actual = L_design + 2×(thickness of the backing plate + feeding allowance) - welding shrinkage compensation Step 11: Equipment linkage control: Achieve the linkage between the welding machine and the chamfering equipment through the processing data bus, and automatically transfer the process parameters.
[0031] Through the above technical solutions, a method for calculating how to place materials by parsing the original processing data and combining the actual parameters of the four-corner welding equipment is proposed. First, scan the code to obtain the window order number, retrieve the original processing file of this order batch from a certain fixed path according to the first five digits of the order number, and query the specific processing information (the width and height of the window, the profile information of each side) from this processing file according to the window order number. Combine the position of the special profile backing plate to calculate the process of how the workers actually need to place the materials. Greatly improve the processing accuracy, reduce the dependence on manual experience, and at the same time reduce the probability of errors.
[0032] Users do not need to manually measure and then subtract the processing consumption to obtain the window width and height information, which greatly improves the work efficiency, saves time, and realizes the automation of the plastic window welding process.
[0033] The present invention is further configured as: The original processing data file is a file generated by the upstream during the processing process according to the window information and conforms to a fixed format; The present invention is further configured as: The four data in the original processing data respectively correspond to the upper, lower, left, and right sides of the window. Therefore, our special profile parameter configuration also follows this rule, which is convenient for conversion; The present invention is further configured as: In order to adapt to the flexible processing of different windows, the positions where the welding machine head places the profiles are all equipped with backing plates, and the backing plates can be adjusted flexibly; The present invention is further configured as: An optimization and improvement made on the basis of the original welding machine processing technology; The present invention is further configured as: The host computer tool is a software program in C++ language based on the QT framework; The present invention is further configured as: The method for identifying special profiles: Step 1: Use the key-value method in the map to set the four profiles obtained from the original processing data to the Key with a value of 1. If this key already exists, then the value is incremented by 1; Step 2: After all four profiles are processed, if there is only one set of data in the map, it proves that the four are the same materials; Step 3: If there are two groups in the map, find the group with a value of 1. At this time, the profile code of this key is the special profile code, and the position serial number is obtained according to the position of this profile code in the original processing data; The present invention is further configured to: automatically analyze the corner cleaning procedures at the four corners of the window according to the special profile position, and realize the automation of the welding and cleaning line; The linkage control of the equipment of the present invention is as follows: Host computer ->> Welder PLC: Send welding parameters (Modbus TCP) Welder PLC -->> Host computer: Receive confirmation Welder PLC ->> Welder PLC: Execute welding process Welder PLC ->> Host computer: Welding completion signal Host computer ->> Corner cleaning equipment: Send a list of corner cleaning procedures (OPC UA) Corner cleaning equipment -->> Host computer: Program loading confirmation Corner cleaning equipment ->> Corner cleaning equipment: Execute corner cleaning processing.
[0034] Embodiment 2 This embodiment provides a plastic window four-corner welding processing system based on data parsing and position mapping, including: 1. Set the thickness of the backing plate, the feeding allowance, the position of the special backing plate, etc. in the parameter interface of the host computer software; 2. Scan the code to obtain the window order number, such as the barcode information is 6652100103; 3. Extract the first five-digit processing serial number 66521 from the order number 6652100103; 4. Retrieve the processing details 66521-SH_D.AKS file according to the serial number 66521; the processing information corresponding to 6652100103 in the file content is as follows: 6652100103; 66521;004;004;47.910;77.000;88;88;88;60K;0; ;0; Among them, 47.910 is the width of the British standard window, and 77.000 is the height of the window in inches; 88;88;88;60K are the profile codes corresponding to the upper, lower, left, and right sides of the window, where 60K is the special profile code and 88 is the ordinary profile code; Special profile positioning algorithm based on Map statistics a. Profile counting stage Objective: Count the occurrence frequencies of the four profiles.
[0035] Implementation logic: Initialize an empty Map (with profile codes as keys and occurrence counts as values). Traverse the four profiles and store them in the Map one by one. If the profile code already exists, increment the value by 1; otherwise, add a new key-value pair (Key: profile code, Value: 1).
[0036] b. Profile type determination Rule 1: Map.size() == 1 All profiles are the same, no special profile.
[0037] Rule 2: Map.size() == 2 Extract the profile code with a value of 1 as the special profile.
[0038] c. Special profile positioning Logic: According to the special profile code, traverse and find the position number (1 - 4) of its first occurrence in the original data. 5. Obtain the profile height and width of 88 and the profile height and width of 60K by combining the profile information in the database. Convert the British standards obtained in the above steps to the window width and height in millimeters. Calculate based on the profile position and the special backrest position, and display the specific information of each side profile and the profile cross-section diagram during actual processing on the operation interface; Unit conversion formula: windowW = (auto_inch not selected)? W×Kp: W windowH = (auto_inch not selected)? H×Kp: H Where, W is the original value of the input form width, H is the original value of the input form height, and Kp is the inch-to-millimeter coefficient; Map the actual material placement based on the position number of the special profile and the position number of the special backrest: First step: Form size conversion: If the position number of the special profile is equal to the position number of the special backrest, or they both belong to the upper and lower sides, or they both belong to the left and right sides, then the window width and height during processing are the same as those in the original processing file; If the first step is not satisfied, then the window width and height need to be swapped. The width in the original processing becomes the height in the actual processing, and the height in the original processing becomes the width in the actual processing; Form size exchange formula (windowW, windowH) = { (W, H) if (ret == positSpe) ∨ (sign(ret) == sign(positSpe)) (H, W) otherwise } where: sign(x) = {1 if x≤2; -1 if x>2} represents the interval sign function, and W and H are the original input values (possibly after unit conversion); Step 2: Profile position calculation: Based on the position of the special backrest plate, the profile code at this position is set as the special profile code, and the profile code information for other positions is set otherwise; Profile position determination formula: label_profilek = { specialProfile if k == positSpe comProfile otherwise } where k ∈ {1,2,3,4} represents the four profile position indexes, and positSpe ∈ {1,2,3,4} is the special profile position mark input as a parameter.
[0039] Step 3: Send the window width and height, and the profile information for each side to the PLC; 6. Map the actual corner cleaning program code used for each corner of the window according to the position of each profile: Step 1: When the profile codes of the four profiles of the window are the same, the corner cleaning program code for each corner of the window is the profile code itself; Step 2: When the window is of the 3 + 1 profile type, since the position of the special profile is the same as the position of the special backrest plate set in the interface; define the four corners from top to bottom and from left to right as corner 1, corner 2, corner 3, and corner 4 (see attachment Figure 3 ) Define four sides E = {top, left, right, bottom}, and each side corresponds to two corners: top → {1,2} left → {1,3} right → {2,4} bottom → {3,4} Achieve fast determination by constructing a 4×4 association matrix: M = [1,1,0,0], / / When the upper side is activated, corners 1 and 2 are associated [1,0,1,0], / / When the left side is activated, corners 1 and 3 are associated [0,1,0,1], / / When the right side is activated, corners 2 and 4 are associated [0,0,1,1] / / When the lower side is activated, corners 3 and 4 are associated Profile chamfer code allocation formula: label_profilek = (∑_{i=1}^4 S_i × M[i][k-1])>0? specialProfile : comProfile Parameter description: S_i ∈ {0,1} indicates whether the four sides are special profiles (i = 1: upper side, i = 2: left side, i = 3: right side, i = 4: lower side), M is the 4×4 associated matrix corner points, numbered clockwise: 1 (upper left), 2 (upper right), 3 (lower left), 4 (lower right); 7. Obtain the temperature required for each welding plate during welding based on the profile information of each side calculated: First step, obtain the welding temperature corresponding to the profile from the profile information maintenance table. Whether it is a 3+1 profile or not, we will get both ordinary profiles and special profiles. Just when the four are the same, the special profile is the ordinary profile; Second step, judge the temperature of the ordinary profile and the special profile. When the welding temperature of the ordinary profile is higher than that of the special profile, set the temperature of the special profile equal to the temperature of the ordinary profile; Third step, set the temperature of all four corners to be the temperature of the ordinary profile; Fourth step, calculate the positions of the two corners corresponding to the special profile according to the position of the special backing plate, and set the temperature of the special profile at this position; Fifth step, write the temperatures of the four corners into the PLC for temperature setting; Temperature setting model: a) Input parameters weldTem: Welding temperature of the ordinary profile.
[0040] weldTem2: Welding temperature of the special profile.
[0041] spcOffset: Position serial number of the special profile (1-4, corresponding to the four sides of the window respectively) b) Temperature adjustment formula: If weldTem>weldTem2, then weldTem2 = weldTem.
[0042] c) Corner temperature setting rule: For each corner i (i ∈ {1, 2, 3, 4}): If corner i belongs to the two corners corresponding to the special profile, its temperature is weldTem2.
[0043] Otherwise, its temperature is weldTem.
[0044] 8. Click the cycle button to determine whether the actual temperature of the current welding plate meets the set temperature range; Set temperature < actual temperature + threshold and set temperature > actual temperature - threshold; Processing is not allowed when it does not meet the requirements. 9. Click the cycle button on the interface for processing. At this time, determine whether it is two cycles or three cycles according to the window height and the size of the set secondary loading position. 10. When the window height is greater than the set secondary loading position, three cycles are required. The first time is to place the horizontal material at the far end, and the interface will prompt that it is necessary to place the material on side 1; The second time is to place the remaining three materials; The last time completes actions such as welding, extrusion, unloading, and transmission. 11. When the window height is less than or equal to the set secondary loading position, only two cycles are performed. The first time is to place four materials, and the second time completes actions such as welding, extrusion, unloading, and transmission. 12. When feeding the material, the X-axis position is the window width + twice the thickness of the backing plate + the X-axis loading allowance, and the Y-axis position is the window height + twice the thickness of the backing plate + the Y-axis loading allowance. 13. When welding and heating, both the X and Y axes return to the current position minus the current axis loading allowance position. 14. At this time, the clamping pliers press down to fix the material, and the machine head retracts to return the positioning plate to vacate a position; After the positioning plate retracts to its position, the welding plate needs to extend. 15. After the welding plate reaches its position, the machine head advances to heat the profile section. Generally, after heating for 28 seconds, the machine head retracts again to vacate a position for the welding plate to withdraw. 16. After the welding plate withdraws to its position, the machine head advances again to perform extrusion on the heating surface. After extrusion for 28 seconds, the welding is completed. 17. The machine head opens, the clamping pliers lift, and the X-axis moves to the position of the window width + 2 times the thickness of the backing plate - the unloading allowance to prepare for unloading; At this time, the bottom material support lifts, the conveyor belt translates and opens, and the conveyor belt lifts. 18. The X-axis moves to the window width + the X-axis unloading allowance, and the Y-axis moves to the position of the window height + the Y-axis unloading allowance + 2 times the thickness of the backing plate. 19. The material support drops, and the window is placed on the conveyor belt and transported to the four-corner cleaning equipment for corner cleaning. Figure 1 As shown: Two four-corner weldings and one four-head cleaning work online. When a window is processed by the four-corner welding and the four-head cleaning is idle, the window will be transported to the four-head cleaning equipment. The four-head cleaning simultaneously obtains the corner cleaning program numbers at each corner of the window. When the window arrives, it notifies the PLC to perform the corner cleaning operation using the corresponding NC program. Figure 2Description of the chamfering process corresponding to four profiles, showing the chamfering process allocation for 3 + 1 profiles; for 3 + 1 profiles, the upper material is a 60K profile, and the other three are 88 profiles. However, for the four corners of this window, the two ends of the special profiles are 60K, and the two at the bottom are chamfered using the 88 process; Figure 3 Definition of the four corners of the window, showing the numbers and positional relationships of the four corners of the window The above are all preferred embodiments of the present invention, and the protection scope of the present invention is not limited accordingly. Therefore, all equivalent changes made according to the structure, shape, and principle of the present invention should be covered within the protection scope of the present invention.
Claims
1. A plastic window corner welding processing method based on data parsing and position mapping, characterized in that Including: Setting the window display area and the backrest, including setting the window information display area in the upper computer software parameter setting interface, and selecting the special backrest position and backrest thickness in the setting interface for the dynamic mapping of the profile position; Obtaining the processing details file by scanning the code to get the window profile data; Identifying special profiles according to the window profile data; Mapping the profile position by combining the position serial number of the special profile and the position serial number of the special backrest; Mapping the actual chamfering program code used at each corner of the window according to the profile position; Downloading the chamfering program code to the PLC for processing.
2. The plastic window corner welding processing method based on data parsing and position mapping according to claim 1, characterized in that, The obtaining of the processing details file by scanning the code includes obtaining the window order number by scanning the code, extracting the first five processing serial numbers according to the order number, retrieving the processing details file according to the processing serial numbers, and obtaining the window size and profile code according to the processing details file, where the window size includes the window width and height, and the profile code includes the special profile code and the ordinary profile code.
3. A plastic window corner welding processing method based on data parsing and position mapping according to claim 2, characterized in that, The identifying of special profiles according to the window profile data includes identifying special profiles by using the special profile positioning algorithm based on Map statistics, which includes initializing an empty Map with the profile code as the key and the occurrence times as the value; traversing the four profiles and storing them into the Map one by one; If the profile code already exists, the value is incremented by 1; otherwise, a new key-value pair is added; the profile type is determined. For example, if it meets Rule 1: Map.size() == 1, then all profiles are the same and there is no special profile; if it meets Rule 2: Map.size() == 2, then the profile code with a value of 1 is extracted as the special profile. Finally, through the calculation of the profile position and the special backrest position, the specific information of the profiles on each side and the profile cross-section diagram during actual processing are displayed on the operation interface.
4. A method for processing the four corners of plastic windows by welding based on data parsing and position mapping according to claim 3, characterized in that, The mapping of the profile position by combining the position serial number of the special profile and the position serial number of the special backrest includes window size conversion and profile position calculation. Among them, the window size conversion includes that if the position serial number of the special profile and the position serial number of the special backrest are equal, or belong to the upper and lower sides, or belong to the left and right sides, then the window width and height during processing are the same as those in the original processing file; otherwise, the window width and height are swapped, changing the width in the original processing to the height in actual processing, and the height in the original processing to the width in actual processing. The window size exchange formula is: (windowW, windowH) = {(W, H) if (ret == positSpe)∨(sign(ret) == sign(positSpe)) (H, W) otherwise} Where: sign(x) = {1 if x≤2; -1 if x>2} represents the interval sign function, and W and H are the original input values.
5. A method for plastic window corner welding processing based on data parsing and position mapping according to claim 4, characterized in that, The profile position calculation includes taking the special backrest position as the standard, setting the profile code as the special profile code, and setting other profile code information at other positions. The profile position determination formula is expressed as: label_profilek = { specialProfile if k == positSpe comProfile otherwise } where k ∈ {1, 2, 3, 4} represents the four profile position indexes, and positSpe ∈ {1, 2, 3, 4} is the special profile position mark for parameter input.
6. A method for processing the four corners welding of plastic windows based on data parsing and position mapping according to claim 5, characterized in that The corner cleaning program code actually used for each corner of the window mapped according to the profile position includes: when the profile codes of the four profiles of the window are the same, the corner cleaning program code for each corner of the window is the profile code itself; when the window is of the 3 + 1 profile type, since the position of the special profile is the same as the position of the special backing plate set in the interface; define the four corners from top to bottom and from left to right as corner 1, corner 2, corner 3, and corner 4. Among them, define the four sides E = {top, left, right, bottom}, and each side corresponds to two corners: top → {1, 2}, left → {1, 3}, right → {2, 4}, bottom → {3, 4}.
7. A plastic window corner welding processing method based on data parsing and position mapping according to claim 6, characterized in that The corner cleaning program code actually used for each corner of the window mapped according to the profile position also includes quickly determining the four corners by constructing a 4×4 correlation matrix, expressed as: M = [ [1, 1, 0, 0], / / When the upper side is activated, corners 1 and 2 are correlated [1, 0, 1, 0], / / When the left side is activated, corners 1 and 3 are correlated [0, 1, 0, 1], / / When the right side is activated, corners 2 and 4 are correlated [0, 0, 1, 1] / / When the lower side is activated, corners 3 and 4 are correlated ] The formula for allocating the profile corner cleaning code is expressed as: label_profilek = (∑_{i = 1}^4 S_i × M[i][k - 1]) > 0? specialProfile : comProfile where S_i ∈ {0, 1} represents whether the four sides are special profiles, i = 1: upper side, i = 2: left side, i = 3: right side, i = 4: lower side, and M is the corner point of the 4×4 correlation matrix, numbered clockwise, 1 upper left, 2 upper right, 3 lower left, 4 lower right.
8. A processing method for plastic window corner welding based on data parsing and position mapping according to claim 7, characterized in that Downloading the corner cleaning program code to the PLC for processing includes obtaining the welding temperature corresponding to the profile from the profile information maintenance table, including ordinary profiles and special profiles; judging the magnitudes of the welding temperatures of ordinary profiles and special profiles. When the welding temperature of the ordinary profile is higher than that of the special profile, set the temperature of the special profile equal to the temperature of the ordinary profile; set the temperatures of all four corners to be the temperature of the ordinary profile; calculate the positions of the two corners corresponding to the special profile according to the position of the special backing plate, and set the temperature of the special profile at these positions, and write the temperatures of the four corners into the PLC for temperature setting.
9. A method for processing the four corners welding of plastic windows based on data parsing and position mapping according to claim 8, characterized in that, Downloading the chamfering program code to the PLC for processing includes determining whether the actual temperature of the current welding plate meets the set temperature range, and determining whether it is two cycles or three cycles according to the window height and the size of the set secondary loading position; among them, when the window height is greater than the set secondary loading position, three cycles are required. The first time is to place the horizontal material at the far end, and it is prompted through the interface that the material on side 1 needs to be placed; the second time is to place the remaining three materials; the last time is to complete welding, extrusion, unloading and transfer actions; when the window height is less than or equal to the set secondary loading position, only two cycles are performed. The first time is to place four materials, and the second time is to complete welding, extrusion, unloading and transfer actions.
10. A plastic window corner welding processing method based on data parsing and position mapping according to claim 9, characterized in that, Downloading the chamfering program code to the PLC for processing also includes calculating the processing dimensions using an automatic compensation algorithm, which includes that the X-axis position during material placement is the window width + twice the thickness of the backing plate + the X-axis loading allowance, and the Y-axis position is the window height + twice the thickness of the backing plate + the Y-axis loading allowance; when welding and heating, the XY axes return to the current position minus the current axis loading allowance position; at this time, the clamping pliers press down to fix the material, and the machine head retracts to return the positioning plate to vacate a position; after the positioning plate retracts in place, the welding plate extends; after the welding plate is in place, the machine head advances to heat the profile section.
Citation Information
Patent Citations
Method and device for generating ETL codes
CN111324647A
Digital-controlled cleaning method and appts. for plastic door / window conner welding seam
CN1221677A
System for automating customized processing process and method thereof
KR101405039B1
Binding graphic elements to controller data
US20130006395A1
Welding server and welding management system
WO2012173404A2