A plastic window four-corner welding processing method and system based on data analysis and position mapping
By using automatic barcode recognition and dynamic coordinate mapping, combined with equipment linkage control, the problem of reliance on manual measurement and profile code recognition in window processing has been solved. This has enabled automated parsing and position mapping of window profile data, generating corner clearing program code, and improving the accuracy and efficiency of window processing.
Patent Information
- Application Number
- CN202510381330.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-28
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2045-03-28
AI Technical Summary
In existing technologies, window processing relies on manual measurement and manual input of profile length, profile code recognition depends on worker experience, special profiles are complicated to handle, processing documents are not fully utilized, welding temperature settings are complicated, and equipment linkage is insufficient, resulting in low efficiency and high error rate.
By automatically identifying barcodes, automatically parsing processing files, dynamically mapping coordinates, and controlling equipment linkage, the system achieves automated parsing and position mapping of window profile data, generates corner clearing program code, and performs automated processing via PLC.
It improves the accuracy and efficiency of window processing, reduces reliance on manual labor, lowers the probability of errors, and realizes the automation and intelligence of window welding processing.
Smart Images

Figure CN120295209B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of data analysis, in particular to a plastic window four-corner welding processing method and system based on data analysis and position mapping. BACKGROUND
[0002] With the development of modernization and the progress of science, the demand for intelligent processing technology is higher and higher. At present, the four-corner welding equipment can only manually measure the length of each profile before processing each window, and then fill in the interface. When the welding and cleaning line is connected, 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. The window is generally four profiles of the same type, and sometimes it is a 3+1 profile (three ordinary profiles and one special profile). In this case, the worker needs to distinguish the position of the backboard, which requires high worker ability and level, and is too dependent on manual operation, with higher error rate and lower efficiency.
[0003] In fact, there is a specific processing detail file before window processing, including the width and height of the window, the profile code of each side of the window, and the unique identification code of the window. After the initial cutting is completed, a label will be attached to each piece of material to identify the window information. The previous working mode does not make good use of the processing detail file, and the bar code information does not play its maximum role.
[0004] Therefore, based on the understanding, sorting and analysis of the prior art, the present application summarizes the technical problems existing in the prior art as follows:
[0005] 1. Manual measurement and input: the prior art needs to manually measure the profile length and calculate the actual window size combined with the consumption, and then manually set the window width and height, which is easy to make mistakes and low in efficiency;
[0006] 2. Profile code identification: before processing each window, the worker needs to identify the profile code of each side, which requires high worker experience and level;
[0007] 3. Special profile processing: for 3+1 with special profiles, the worker needs to distinguish whether the profile and the backboard are suitable, and find the position of the backboard where the special profile is placed;
[0008] 4. Processing file not fully utilized: the existing processing detail file and bar code information are not fully utilized, and the intelligent degree is low;
[0009] 5、Welding temperature setting is complex: the operator needs to know the actual processing temperature of each profile, and also needs to determine which temperature to use when two adjacent profiles are used, and the temperature needs to be manually set before each processing; the welding temperature corresponding to each profile is obtained from the database combined with the information of each edge profile, and the welding temperature used for each corner is calculated immediately after scanning the code and downloaded to the PLC for temperature adjustment;
[0010] 6、Insufficient equipment linkage: the welding machine and the corner cleaning equipment are operated independently, and lack of automatic linkage.
[0011] Especially in the current field of home decoration, the customization requirement of windows is very high, in order to improve the work efficiency of the factory, we have launched a welding and cleaning line to help users quickly generate a window, and complete the welding seam treatment after welding. SUMMARY
[0012] In order to solve the above-mentioned problems, the present application provides a plastic window four-corner welding processing method and system based on data analysis and position mapping. Through automatic bar code recognition, automatic processing file analysis, dynamic coordinate mapping, automatic compensation model and equipment linkage control, the automation and intelligentization of window processing are realized.
[0013] In the first aspect, the present application provides a plastic window four-corner welding processing method based on data analysis and position mapping, which adopts the following technical scheme:
[0014] A plastic window four-corner welding processing method based on data analysis and position mapping, comprising:
[0015] Setting a window display area and a backboard, including setting a window information display area in a host computer software parameter setting interface, and selecting a special backboard position and backboard thickness in the setting interface, for dynamic mapping of the profile position;
[0016] Obtain the processing detail file by scanning the code to obtain the window profile data;
[0017] Identify special profiles according to the window profile data;
[0018] Map the profile position combined with the position serial number of the special profile and the special backboard position serial number;
[0019] Map the actual cleaning program code used for each corner of the window according to the profile position;
[0020] Download the cleaning program code to the PLC for processing.
[0021] Further, the processing specification file is obtained by scanning the code, including obtaining a window order number by scanning the code, extracting the first five processing serial numbers according to the order number, retrieving the processing specification file according to the processing serial number, obtaining the window size and profile code according to the processing specification file, wherein the window size includes the window width and height, and the profile code includes the special profile code and the common profile code.
[0022] Further, the special profile is identified according to the window profile data, including using a special profile positioning algorithm based on Map statistics to identify the special profile, which includes initializing an empty Map, the key being the profile code and the value being the number of occurrences; traversing the four profiles and storing them in 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, such as rule 1: Map.size() == 1, all profiles are the same, no special profile; such as rule 2: Map.size() == 2, the profile code with a value of 1 is extracted as the special profile. Finally, through the profile position and the special sill position calculation, the specific information of each edge profile and the profile cross-section diagram are displayed on the operation interface during actual processing.
[0023] Further, the profile position is obtained by mapping the position serial number of the special profile and the position serial number of the special sill, including window size conversion and profile position calculation, wherein the window size conversion includes: if the position serial number of the special profile and the position serial number of the special sill are equal, or belong to the upper and lower edges, or belong to the left and right edges, then the window width and height during processing are consistent with the original processing file; otherwise, the window width and height are replaced, the width in the original processing is changed to the height in the actual processing, and the height in the original processing is changed to the width in the actual processing, and the window size exchange formula is:
[0024] (windowW, windowH) = {(W, H) if (ret == positSpe)∨(sign(ret) == sign(positSpe)) (H, W) otherwise}
[0025] Where: sign(x) = {1 if x≤2; -1 if x>2} represents the interval sign function, W and H are the original input values.
[0026] Further, the profile position calculation includes setting the profile code as the special profile code according to the special sill position, setting other profile code information at other positions, and the profile position determination formula is represented as:
[0027] label_profilek = {
[0028] specialProfile if k == positSpe
[0029] comProfile otherwise
[0030] }
[0031] where k ∈ {1,2,3,4} represents four profile position indexes, positSpe ∈ {1,2,3,4} is a special profile position marker input by the parameter.
[0032] Further, the actual corner cleaning program code used by each corner of the window according to the profile position includes that when the four profile codes of the window are the same, the corner cleaning program code of each corner of the window is the profile code itself; when the window is a 3+1 type profile, the position of the special profile is consistent with the special sill position set by the interface; the four corners are defined from top to bottom and from left to right as corner 1, corner 2, corner 3 and corner 4, wherein four edges E={top, left, right, bottom} are defined, and each edge corresponds to two corners: top → {1,2} left → {1,3} right → {2,4} bottom → {3,4}.
[0033] Further, the actual corner cleaning program code used by each corner of the window according to the profile position further includes that four corners are quickly determined by constructing a 4×4 correlation matrix, which is represented as:
[0034] M = [
[0035] [1,1,0,0], / / When the top edge is activated, corners 1 and 2 are associated
[0036] [1,0,1,0], / / When the left edge is activated, corners 1 and 3 are associated
[0037] [0,1,0,1], / / When the right edge is activated, corners 2 and 4 are associated
[0038] [0,0,1,1] / / When the bottom edge is activated, corners 3 and 4 are associated ]
[0040] The profile corner cleaning code allocation formula is represented as:
[0041] label_profilek = (∑_{i=1}^4 S_i × M[i][k-1])>0? specialProfile :comProfile
[0042] Wherein, S_i ∈{0,1} represents whether the four sides are special profiles, i=1: upper edge, i=2: left edge, i=3: right edge, i=4: lower edge, M is a 4*4 correlation matrix corner point, the number is defined clockwise, 1 upper left, 2 upper right, 3 lower left, 4 lower right.
[0043] Further, the downloading of 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 size of the ordinary profile temperature and the special profile temperature, when the ordinary profile welding temperature is higher than the special profile, setting the special profile temperature equal to the ordinary profile temperature; setting the four corners to be ordinary profile temperature; calculating the positions of the two corners corresponding to the special profile according to the special back plate position, and setting the special profile temperature at the positions, and writing the temperature of the four corners into the PLC for temperature setting.
[0044] Further, the downloading of the corner cleaning program code to the PLC for processing includes judging 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 set secondary feeding position size; wherein, when the window height is greater than the set secondary feeding position, three cycles are needed, the first cycle is to place the far end of the horizontal material, and the interface prompts that the edge 1 material needs to be placed; the second cycle is to place the remaining three materials; the last cycle completes welding, extrusion, unloading and transmission actions; when the window height is less than or equal to the set secondary feeding position, only two cycles are needed, the first cycle is to place four materials, and the second cycle completes welding, extrusion, unloading and transmission actions.
[0045] Further, the downloading of the corner cleaning program code to the PLC for processing further includes calculating the processing size by using an automatic compensation algorithm, wherein the X-axis position when feeding is the window width + twice the back plate thickness + the X-axis feeding allowance, and the Y-axis position is the window height + twice the back plate thickness + the Y-axis feeding allowance; when welding and heating, the XY axes return to the current position minus the current axis feeding allowance position; at this time, the pressure clamp is pressed down to fix the material, the machine head retreats to the given position plate to vacate the position; after the position plate retreats to the position, the welding plate extends; after the welding plate is in position, the machine head advances to heat the profile section.
[0046] The second aspect is a plastic window four-corner welding processing system based on data analysis and position mapping, comprising:
[0047] The display module is configured to set the window display area and set the back plate, including setting the window information display area in the upper computer software parameter setting interface, and selecting the special back plate position and the back plate thickness in the setting interface, which is used for dynamic mapping of the profile position.
[0048] The code scanning module is configured to obtain the processing detail file by scanning the code to obtain the window profile data.
[0049] The identification module is configured to identify the special profile according to the window profile data;
[0050] The mapping module is configured to map the profile position in combination with the position sequence number of the special profile and the special sill position sequence number; and map the actual corner cleaning program code used by each corner of the window according to the profile position.
[0051] The processing module is configured to download the corner program code to the PLC for processing.
[0052] In a third aspect, the present application provides a computer readable storage medium, wherein a plurality of instructions are stored, the instructions being adapted to be loaded by a processor of a terminal device and to execute the plastic window four-corner welding processing method based on data analysis and position mapping.
[0053] In a fourth aspect, the present application provides a terminal device, comprising a processor and a computer readable storage medium, the processor being used to implement instructions; and the computer readable storage medium being used to store a plurality of instructions, the instructions being adapted to be loaded by the processor and to execute the plastic window four-corner welding processing method based on data analysis and position mapping.
[0054] To sum up, the present application has the following beneficial technical effects:
[0055] The present application is a method for analyzing original processing data and calculating how to place materials in combination with actual parameters of the four-corner welding equipment. First, the window order number is obtained by scanning the code, the original processing file of the order batch is retrieved from a certain fixed path according to the first five digits of the order number, the specific processing information (the width and height of the window, and the profile information of each side) is queried from the processing file according to the window order number, and the actual process of how the workers place the materials is calculated in combination with the special profile sill position. The processing accuracy is greatly improved, the dependence on manual experience is reduced, and the error probability is reduced.
[0056] Through the technical scheme of the present application, the user does not need to manually measure and then subtract the processing consumption to obtain the width and height information of the window, which greatly improves the work efficiency, saves time, and realizes the automation of the plastic window welding processing process.
[0057] The accuracy of the profile code generation is improved, and the efficiency of the workers in setting the width and height of the window is improved; after the corner cleaning program of each corner of the window is calculated, the four-head cleaning device can automatically select the corresponding corner cleaning NC program to work after obtaining the window information when the window moves to the four-head cleaning device, thereby improving the automatic program connection; BRIEF DESCRIPTION OF DRAWINGS
[0058] Figure 1 is a welding and cleaning line mode schematic diagram of embodiment 1 of the present application;
[0059] Figure 2 This is a schematic diagram of the corner clearing procedure corresponding to the profile in Embodiment 1 of the present invention;
[0060] Figure 3 This is a schematic diagram showing the numbering and positional relationship of the four corners of the window in Embodiment 1 of the present invention. Detailed Implementation
[0061] The present invention will be further described in detail below with reference to the accompanying drawings.
[0062] Example 1
[0063] Reference Figure 1 This embodiment presents an intelligent processing method for welding the four corners of plastic windows. Through automatic barcode recognition, automatic parsing of processing documents, dynamic coordinate mapping, automatic compensation model, and equipment linkage control, the method achieves automation and intelligence in window processing.
[0064] The core processing flow of this invention is as follows:
[0065] A [Scan and input] --> B {Barcode verification}
[0066] B -->|Valid| C[Processing Document Retrieval]
[0067] B -->|Invalid| Z [Error Message]
[0068] C --> D [Profile Feature Recognition]
[0069] D -->E {Profile Type Determination}
[0070] E -->|Uniform Profile| F[Standard Process Generation]
[0071] E -->|3+1 profile| G [Special profile positioning]
[0072] G --> H [Coordinate Mapping Transformation]
[0073] H --> I [Clearing Corner Procedure Decision]
[0074] I --> J [Process Parameter Compensation]
[0075] J --> K [Device Command Generation]
[0076] K --> L [PLC parameter distribution]
[0077] To achieve the above objectives, the present invention provides the following technical solution, the specific steps of which are as follows:
[0078] Step 1: Upper computer interface display: Add a window information display area to show window type, processing number, barcode information, profile information, etc.
[0079] Second step: special backboard position setting: select special backboard position in the setting interface, which is used for subsequent dynamic mapping of profile position.
[0080] Third step: barcode recognition: recognize barcode information through barcode gun, and automatically obtain processing detail file.
[0081] Fourth step: processing file analysis: extract the width, height of the window and the profile code of each edge from the processing detail file according to the barcode information.
[0082] Fifth step: profile type determination: determine whether the four edges are the same profile, if it is 3+1 profile, then dynamically generate the actual material position according to the special backboard position;
[0083] Sixth step: corner cleaning program generation: automatically generate the corner cleaning program code of each corner according to the profile topology relationship. See attached Figure Two
[0084] Seventh step: welding temperature calculation: obtain the welding temperature according to the profile information, and download it to PLC for temperature adjustment.
[0085] Eighth step: parameter setting: set the window width and height, profile information of each edge, corner cleaning program of each corner, and welding temperature of each corner to PLC;
[0086] Ninth step: interface display: display the window width and height, profile code on each edge and profile section view;
[0087] Tenth step: processing parameter compensation: calculate the actual processing size by automatic compensation model, considering the backboard thickness, feeding allowance and welding shrinkage compensation;
[0088] The compensation formula is:
[0089] L_actual = L_design + 2×(backboard thickness + feeding allowance) - welding shrinkage compensation
[0090] Eleventh step: equipment linkage control: realize the linkage of welding machine and corner cleaning equipment through processing data bus, and automatically transfer process parameters.
[0091] Through the above technical scheme, a method is proposed for calculating how to place materials according to the actual parameters of four corner welding equipment by analyzing the original processing data. First, the window order number is obtained by scanning the code, and the original processing file of this order batch is retrieved from a fixed path according to the first five digits of the order number. The specific processing information (width and height of the window, profile information of each edge) is obtained from the processing file according to the window order number, and the actual process of how workers place materials is calculated by combining the special profile backboard position. This greatly improves the accuracy of processing, reduces the dependence on human experience, and reduces the probability of error.
[0092] The user does not need to manually measure and subtract the processing consumption to obtain the width and height information of the window, greatly improves the work efficiency, saves the time, and realizes the automation of the plastic window welding processing.
[0093] The application is further provided with that the original processing data file is generated according to the window information in the upstream of the processing process, and is a fixed format file;
[0094] The application is further provided with that the four data in the original processing data correspond to the upper, lower, left and right four edges of the window, so that the special profile parameter configuration is consistent with the rule, and the conversion is facilitated;
[0095] The application is further provided with that in order to adapt to flexible processing of different windows, the positions of the profile placed by the welding machine head are all provided with a back plate, and the back plate can be flexibly adjusted;
[0096] The application is further provided with that the optimization and improvement are made on the basis of the original welding machine processing technology;
[0097] The application is further provided with that the upper computer tool is a software program based on the C++ language of the QT framework;
[0098] The application is further provided with that the special profile identification mode is:
[0099] The first step is that four profiles obtained in the original processing data are set to the key value 1 in the map, and if the key already exists, the value is added by 1;
[0100] The second step is that if there is only one group of data in the map, it is proved that the four materials are the same;
[0101] The third step is that if there are two groups in the map, the group with the value 1 is found, at this time, the profile code of the key is the special profile code, and the position sequence number is obtained according to the position of the profile code in the original processing data;
[0102] The application is further provided with that the corner cleaning program of the four corners of the window is automatically parsed according to the position of the special profile, and the welding cleaning automation is realized;
[0103] The equipment linkage control of the application is as follows:
[0104] The upper computer ->> the welding machine PLC: sends the welding parameters (Modbus TCP)
[0105] The welding machine PLC-->> the upper computer: receives the confirmation
[0106] Welder PLC ->> Welder PLC: Execute welding process
[0107] Welder PLC ->> Upper computer: Welding completion signal
[0108] Upper computer ->> Corner cleaning equipment: Send corner cleaning program list (OPC UA)
[0109] Corner cleaning equipment ->> Upper computer: Program loading confirmation
[0110] Corner cleaning equipment ->> Corner cleaning equipment: Execute corner cleaning processing.
[0111] Example 2
[0112] This embodiment provides a plastic window four-corner welding processing system based on data analysis and position mapping, comprising:
[0113] 1. Set the thickness of the back plate, the feeding allowance, and the special back plate position in the upper computer software parameter interface.
[0114] 2. Scan the code to obtain the window order number, such as the barcode information 6652100103.
[0115] 3. Extract the first five processing serial numbers 66521 from the order number 6652100103.
[0116] 4. Retrieve the processing details 66521-SH_D.AKS file according to the 66521 serial number; the processing information corresponding to 6652100103 in the file content is as follows:
[0117] 6652100103; 66521;004;004;47.910;77.000;88;88;88;60K;0; ;0;
[0118] Among them, 47.910 is the width of the British standard window, and 77.000 is the height of the window in inches.
[0119] 88;88;88;60K is the profile code corresponding to the top, bottom, left and right edges of the window, where 60K is a special profile code and 88 is a normal profile code.
[0120] Special profile positioning algorithm based on Map statistics
[0121] a. Profile counting stage
[0122] Objective: Count the frequency of occurrence of four profiles.
[0123] Implementation logic:
[0124] Initialize an empty Map (key is profile code, value is occurrence frequency);
[0125] Iterate through the four profiles and store them one by one in a Map;
[0126] If the profile code already exists, increment the value by 1; otherwise, create a new key-value pair (Key: Profile code, Value: 1).
[0127] b. Profile type determination
[0128] Rule 1: Map.size() == 1
[0129] All profiles are identical; there are no special profiles.
[0130] Rule 2: Map.size() == 2
[0131] The profile code with a value of 1 is extracted as a special profile.
[0132] c. Special profile positioning
[0133] Logic: Based on the special profile code, iterate through the original data to find the position number (1~4) of its first occurrence.
[0134] 5. Using the profile information in the database, obtain the height and width of profile 88 and profile 60K. Convert the British standard values obtained in the previous steps into window width and height in millimeters. Calculate based on the profile location and special backing plate location, and display the specific information and cross-sectional diagram of each profile on each side during actual processing on the operation interface.
[0135] Unit conversion formula: windowW = (auto_inch not selected) ? W×Kp: W
[0136] windowH = (auto_inch not selected) ? H×Kp: H
[0137] Where W is the original value of the input window width, H is the original value of the input window height, and Kp is the inch to millimeter conversion factor;
[0138] The actual material placement is determined by mapping the position numbers of special profiles and special backing panels:
[0139] Step 1: Window size conversion: If the special profile position number and the special backing plate position number are equal, or both belong to the top and bottom edges, or both belong to the left and right edges, then the window width and height during processing will be consistent with the original processing file;
[0140] If the first step is not met, then the window width and height need to be swapped: the original width in the original processing becomes the actual height in the actual processing, and the original height in the original processing becomes the actual width in the actual processing.
[0141] Window size exchange formula
[0142] (windowW, windowH) = {
[0143] (W, H) if (ret == positSpe) ∨ (sign(ret) == sign(positSpe))
[0144] (H, W) otherwise
[0145] }
[0146] Where: sign(x) = {1 if x≤2; -1 if x>2} represents the interval sign function, W and H are the original input values (may be unit converted);
[0147] Second step: profile position calculation: take the special sill position as the reference, set the profile code at this position as the special profile code, and set other profile code information at other positions;
[0148] Profile position determination formula:
[0149] label_profilek = {
[0150] specialProfile if k == positSpe
[0151] comProfile otherwise
[0152] }
[0153] Where: k ∈ {1,2,3,4} represents the four profile position indexes, positSpe ∈ {1,2,3,4} is the special profile position marker input by the parameter.
[0154] Third step: send the window width and height, and the profile information of each side to the PLC;
[0155] 6. According to the position of each profile of the material, the actual corner cleaning program code used by each corner of the window is mapped out:
[0156] First step: when the four profile codes of the window are the same, the corner cleaning program code of each corner of the window is the profile code itself;
[0157] Second step: when the window is a 3+1 type profile, because the position of the special profile is consistent with the special sill position set by 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 attached Figure Three );
[0158] Define four edges E = {top, left, right, bottom}, each edge corresponds to two corners:
[0159] top → {1,2}
[0160] left → {1,3}
[0161] right → {2,4}
[0162] bottom → {3,4}
[0163] Fast judgment is achieved by constructing a 4x4 correlation matrix:
[0164] M = [
[0165] [1,1,0,0], / / When the upper edge is activated, corners 1 and 2 are associated
[0166] [1,0,1,0], / / When the left edge is activated, corners 1 and 3 are associated
[0167] [0,1,0,1], / / When the right edge is activated, corners 2 and 4 are associated
[0168] [0,0,1,1] / / When the lower edge is activated, corners 3 and 4 are associated
[0170] Profile corner code assignment formula:
[0171] label_profilek = (∑_{i=1}^4 S_i × M[i][k-1])>0? specialProfile :comProfile
[0172] Parameter description: S_i ∈ {0,1} indicates whether the four edges are special profiles (i=1: upper edge, i=2: left edge, i=3: right edge, i=4: lower edge), M is a 4x4 correlation matrix corner, numbered clockwise: 1 (top left), 2 (top right), 3 (bottom left), 4 (bottom right);
[0173]
[0174] 7. According to the calculated information of each edge profile, get the temperature required for each welding plate welding:
[0175] First, get the welding temperature corresponding to the profile from the profile information maintenance table. Whether it is a 3+1 profile, we will get ordinary profiles and special profiles. Only when the four edges are the same, the special profile is the ordinary profile;
[0176] Second step, judge the temperature of ordinary profile and special profile, when the welding temperature of ordinary profile is higher than that of special profile, set the temperature of special profile equal to that of ordinary profile;
[0177] Third step, set the temperature of four corners as that of ordinary profile;
[0178] Fourth step, calculate the position of two corners corresponding to special profile according to the position of special side plate, and set the temperature of special profile at this position;
[0179] Fifth step, write the temperature of four corners into PLC for temperature setting;
[0180] Temperature setting model:
[0181] a) input parameters
[0182] weldTem: welding temperature of ordinary profile.
[0183] weldTem2: welding temperature of special profile.
[0184] spcOffset: position number of special profile (1-4, corresponding to four edges of window)
[0185] b) temperature adjustment formula:
[0186] If weldTem > weldTem2, then weldTem2 = weldTem.
[0187] c) corner temperature setting rule:
[0188] For each corner i (i ∈ {1, 2, 3, 4}):
[0189] If corner i belongs to the two corners corresponding to special profile, its temperature is weldTem2.
[0190] Otherwise, its temperature is weldTem.
[0191] 8. Click the cycle button to judge 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; if not, it is not allowed to process;
[0192] 9. Click the cycle button on the interface to process, at this time, according to the height of the window and the size of the set secondary feeding position, judge whether it is two or three cycles;
[0193] 10. The window height is greater than the set secondary feeding position, and three cycles are required. The first cycle is to place the far end of the horizontal material, and the interface will prompt to place the edge 1 material. The second cycle is to place the remaining three materials. The last cycle completes welding, extrusion, unloading, and transmission actions;
[0194] 11. The window height is less than or equal to the set secondary feeding position, and only two cycles are required. The first cycle places four materials, and the second cycle completes welding, extrusion, unloading, and transmission actions;
[0195] 12. The X-axis position during feeding is the window width + twice the thickness of the support plate + the X-axis feeding allowance, and the Y-axis position is the window height + twice the thickness of the support plate + the Y-axis feeding allowance;
[0196] 13. During welding heating, the XY axes return to the current position minus the current axis feeding allowance position;
[0197] 14. At this time, the pressure clamp is pressed to fix the material, the head is withdrawn to the given position plate to clear the position, and the positioning plate is withdrawn to the position. After the positioning plate is withdrawn to the position, the welding plate needs to be extended;
[0198] 15. After the welding plate is in position, the head is advanced to heat the profile section. Generally, after heating for 28 seconds, the head is withdrawn again to clear the position for the welding plate;
[0199] 16. After the welding plate is withdrawn to the position, the head is advanced again to perform extrusion of the heated surface. After extrusion for 28 seconds, the welding is completed;
[0200] 17. The head is opened, the pressure clamp is raised, the X-axis moves to the window width + 2 times the thickness of the support plate - the unloading allowance position, preparing for unloading. At this time, the bottom layer of the material is raised, the transmission belt is translated to open, and the transmission belt is raised;
[0201] 18. The X-axis moves to the window width + the X-axis unloading allowance, and the Y-axis moves to the window height + the Y-axis unloading allowance + 2 times the thickness of the support plate position;
[0202] 19. The material is lowered, and the window is placed on the transmission belt to be transported to the four-corner cleaning equipment for corner cleaning;
[0203] Figure 1 As shown: two four-corner welds and one four-head cleaning work online. When the four-corner welding is completed for a window, the four-head cleaning is idle, and the window is transmitted to the four-head cleaning equipment. The four-head cleaning simultaneously obtains the corner cleaning program number for each corner of the window. When the window is in position, it informs the PLC to use the corresponding NC program to perform corner cleaning operation;
[0204] Figure 2For four profiles corresponding to the corner cleaning procedure, show the 3+1 profile corner cleaning procedure assignment; 3+1 profile, the upper one is 60K profile, and the other three are 88, but the four corners of this window, the special profile is 60K at both ends, and the lower two are cleaned with 88 program;
[0205] Figure 3 For the definition of the four corners of the window, show the numbering and positional relationship of the four corners of the window
[0206] The above are preferred embodiments of the present application, not to limit the protection scope of the present application, therefore: any equivalent changes made according to the structure, shape, principle of the present application should be covered within the protection scope of the present application.
Claims
1. A method for windowed four-corner welding based on data analysis and position mapping, characterized in that, The application relates to a window processing method and device. The application comprises the following steps: Setting a window display area and setting a backboard, including setting a window information display area in a host computer software parameter setting interface, selecting a special backboard position and backboard thickness in a setting interface, and dynamically mapping a profile position; Obtaining a processing detail 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 special backboard position serial number; Mapping a clear corner program code actually used by each corner of the window according to the profile position; Downloading the clear corner program code to a PLC for processing; The method comprises the following steps: Obtaining a window order number by scanning a code, extracting the first five processing serial numbers according to the order number, retrieving a processing detail file according to the processing serial number, and obtaining window dimensions and profile codes according to the processing detail file, wherein the window dimensions comprise a window width and a height, and the profile codes comprise special profile codes and common profile codes; The special profile is identified by using a special profile positioning algorithm based on a Map, which comprises the following steps: Initializing an empty Map, taking a profile code as a key and taking an occurrence number as a value; and storing four profiles in the Map one by one; If the profile code already exists, the value is increased by 1; otherwise, a new key-value pair is added; the profile type is determined, for example, if rule 1 is met, that is, Map.size() == 1, all profiles are the same and there is no special profile; if rule 2 is met, that is, Map.size() == 2, the profile code with a value of 1 is extracted as a special profile; finally, the specific information of the profile on each edge and the profile section view during actual processing are calculated and displayed on an operation interface by combining the profile position and the special backboard position; The profile position is mapped by combining the position serial number of the special profile and the special backboard position serial number, which comprises window dimension conversion and profile position calculation; The window dimension conversion comprises the following steps: If the special profile position serial number and the special backboard position serial number are equal, or belong to the upper and lower edges, or belong to the left and right edges, the window width and the height during processing are consistent with those in the original processing file; otherwise, the window width and the height are replaced, the width in the original processing is changed into the height during actual processing, and the height in the original processing is changed into the width during actual processing; the window size exchange formula is as follows: (windowW, windowH) = {(W, H) if (ret == positSpe)∨(sign(ret) == sign(positSpe)) (H, W) otherwise} Wherein: sign(x) = {1, if x<=2; -1, if x>2} represents an interval sign function, W and H are original input values; The profile position calculation comprises the following steps: Setting the profile code as the special profile code according to the special backboard position, setting other profile code information at other positions, and the profile position determination formula is as follows: label_profilek = { specialProfile if k == positSpe comProfile otherwise } Wherein k ∈ {1,2,3,4} represents four profile position indexes, positSpe ∈ {1,2,3,4} is a special profile position marker input by the parameter.
2. The method for four corner welding of plastic window based on data analysis and position mapping according to claim 1, characterized in that, The actual profile code used by each corner of the window is mapped according to the profile position, including when the four profile codes of the window are the same, the profile code of each corner of the window is the profile code itself; when the window is a 3+1 profile, the position of the special profile is consistent with the special sill position set by the interface; the four corners are defined from top to bottom and from left to right as corner 1, corner 2, corner 3, and corner 4, wherein the four edges E={top, left, right, bottom} are defined, and each edge corresponds to two corners: top → {1,2}, left → {1,3}, right → {2,4}, and bottom → {3,4}.
3. The method of claim 2, wherein the method further comprises: The actual profile code used by each corner of the window is mapped according to the profile position, and also includes quickly determining the four corners by constructing a 4×4 correlation matrix, which is represented as: M = [ [1,1,0,0], / / When the upper edge is activated, corners 1 and 2 are associated [1,0,1,0], / / When the left edge is activated, corners 1 and 3 are associated [0,1,0,1], / / When the right edge is activated, corners 2 and 4 are associated [0,0,1,1] / / When the lower edge is activated, corners 3 and 4 are associated ] The profile corner code allocation formula is represented as: label_profilek = (∑_{i=1}^4 S_i × M[i][k-1]) > 0? specialProfile :comProfile Wherein S_i ∈{0,1} represents whether the four edges are special profiles, i=1: upper edge, i=2: left edge, i=3: right edge, i=4: lower edge, M is a 4×4 correlation matrix corner, numbered in a clockwise manner, 1 top left, 2 top right, 3 bottom left, and 4 bottom right.
4. The method of claim 3, wherein the method further comprises: The corner program code is downloaded to the PLC for processing, including obtaining the welding temperature corresponding to the profile from the profile information maintenance table, including ordinary profiles and special profiles; determining the size of the ordinary profile temperature and the special profile temperature, when the ordinary profile welding temperature is higher than the special profile, setting the special profile temperature equal to the ordinary profile temperature; setting the four corners to be ordinary profile temperature; calculating the two corner positions corresponding to the special profile according to the special sill position, and setting the special profile temperature at this position, and writing the temperature of the four corners into the PLC for temperature setting.
5. The method of claim 4, wherein the method further comprises: The clear angle program code is downloaded to the PLC for processing, including judging 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 set secondary feeding position size; wherein, when the window height is greater than the set secondary feeding position, three cycles are needed, the first cycle is to place the far end horizontal material, and the interface prompts that the side 1 material needs to be placed; the second cycle is to place the remaining three materials; the last cycle completes the welding, extrusion, unloading and transmission actions; when the window height is less than or equal to the set secondary feeding position, only two cycles are needed, the first cycle is to place four materials, and the second cycle completes the welding, extrusion, unloading and transmission actions.
6. The method of claim 5, wherein the method further comprises: The clear angle program code is downloaded to the PLC for processing, and also includes calculating the processing size by using an automatic compensation algorithm, wherein the X-axis position is the window width + twice the thickness of the supporting plate + the X-axis feeding allowance when feeding, and the Y-axis position is the window height + twice the thickness of the supporting plate + the Y-axis feeding allowance; the XY axes return to the current position minus the current axis feeding allowance position when welding and heating; at this time, the pressing clamp is pressed down to fix the material, the head is retreated to the given position plate to vacate the position; after the position plate is retreated to the position, the welding plate is extended; after the welding plate is in position, the head is fed to heat the profile cross 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