A control system for door and window frame processing and coating device
Through the control system of the door and window frame processing coating device, the measurement light curtain and depth-first search algorithm are used to solve the problem of difficult to ensure the spray thickness and accuracy, and achieve a more efficient and accurate spray effect.
Patent Information
- Application Number
- CN202411196174.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-08-29
AI Technical Summary
During batch spraying of door and window frames, it is difficult to ensure the spray thickness and accuracy, resulting in the spraying of local areas being too thick or too thin, affecting the spraying efficiency and accuracy.
The control system of the door and window frame processing coating device is adopted, including measuring light curtains, spraying mechanisms and spraying control systems. By establishing a mathematical model of the spray gun, detecting workpiece information, correcting coordinate systems and using depth-first search algorithms, the spraying trajectory is planned to ensure the spraying thickness. and a high degree of accuracy.
Improves spraying accuracy and efficiency, ensures uniformity of spraying thickness and high accuracy, and reduces spraying losses.
Smart Images

Figure CN118719392B_ABST
Abstract
Description
Technical Field
[0001] The invention discloses a door and window production technology, and in particular relates to a control system of a door and window frame processing and coating device. Background Art
[0002] Doors and windows are important components of building envelope systems, and aluminum alloy building profiles are the main structural materials for doors and windows today, and are widely used around the world. However, aluminum alloy materials are easily corroded in humid atmospheres, making it difficult to meet the requirements of high decorativeness and corrosion resistance of building materials. Therefore, after the door and window frames are processed, the frame surface needs to be sprayed to reduce material corrosion and other phenomena, while providing convenience for subsequent processing.
[0003] At present, when mass spraying square window frames, automatic spraying is generally used to improve spraying efficiency. However, in the process of automatic spraying, it is difficult to ensure a relatively accurate spraying thickness and spraying accuracy. Local areas are prone to spraying too thick or too thin, which will increase the spraying loss and affect the accuracy after spraying. Summary of the invention
[0004] The purpose of the present invention is to solve the above-mentioned problems and provide a control system for a door and window frame processing and painting device.
[0005] To achieve the above-mentioned object, the present invention provides the following technical solutions: a control system for a door and window frame processing and coating device, comprising a coating device, wherein the coating device comprises a door and window frame correction device, a spraying mechanism and a spraying control system;
[0006] The door and window frame correction device includes a measuring light curtain, a transmitter and a receiver. When the door and window frame workpiece passes through the measuring light curtain, the transmitter can send infrared light or laser to the receiver, which is then converted into parameters corresponding to the coordinate system modeling of the door and window frame workpiece through a photoelectric sensor;
[0007] The spraying mechanism includes two sets of spray gun racks with spray guns and a linear track for accommodating the horizontal movement of the spray gun racks. The spray guns adopt a double-nozzle structure. The spray guns can move up and down, left and right, and rotate in an azimuth through the spray gun racks.
[0008] In the spray control system, the Gaussian function corresponding to the spray effect of the spray gun is assumed to be , the reciprocating overlap distance of the spray gun is d, the spraying radius of the spray gun is r, the distance from the spraying point of the spray gun to the spraying path on one side is x, the moving distance between the spraying points is s, and the thickness of the spray gun nozzle after spraying is , substitute In, and take ;
[0009] Get coating thickness function ,
[0010] ;
[0011] ;
[0012] ;
[0013] in, and They represent the spraying thickness at point s on adjacent tracks during one reciprocating process of the spray gun, and They represent half of the movement time of the spray gun at point s on the adjacent spraying trajectory, where and Has the following formula:
[0014] ;
[0015] ;
[0016] Where v is the travel speed of the spray gun. The superposition of two sprayings is regarded as a straight line, and the derivative is , according to the parameters entered The required process thickness can be used to determine the overlap distance d. The height of the two sets of spray guns from the workpiece can be adjusted according to the value of d. .
[0017] As a preferred embodiment, in the spraying control system, the movement of the door and window frame workpiece passing through the measuring light curtain is , the moment when the workpiece begins to enter the measuring area is , the time to leave the measurement area is , the highest point height of the door and window frame workpiece is H, the lowest point height is h, then the offset angle α of the door and window frame workpiece is
[0018] ;
[0019] Scan the door and window frame workpiece in the measurement area to establish the coordinate system of the door and window frame workpiece including the x, y, and z axes, perform rotation transformation coordinate transformation, regard the inclination angle of the door and window frame workpiece as the door and window frame workpiece coordinate system rotated around the X axis by an angle α, and record the plane of the original door and window frame workpiece and the plane obtained by rotating the X axis by an angle α as i and j, then the rotation transformation matrix is:
[0020] ;
[0021] According to the inverse kinematics, the parameter changes of each mechanical axis of the spray gun rack are obtained in turn. When the spray gun moves with the spray gun rack, the door and window frame workpiece moves around The axis rotates, and its spatial coordinate P in the measurement area coordinate system is
[0022] ;
[0023] in, is the plane i coordinate, is the coordinate on plane j .
[0024] As a preferred embodiment, the motion state of the spray gun at a certain point of the spraying door and window frame workpiece is defined as left turn, right turn, left turn and right turn. The uniform motion speed of the door and window frame workpiece is , the spray gun speed is v, the spray gun acceleration is a, and the deceleration time of the spray gun is , the acceleration time is , the distance of the spray gun moving path is S;
[0025] The distance of the spray gun moving path has the following two situations:
[0026] If the width of the door and window frame workpiece is greater than d, the distance of the spray gun moving path is
[0027] ;
[0028] If the width of the door and window frame workpiece is less than d, the distance of the spray gun moving path is
[0029] ;
[0030] Assume the vertical height of the door and window frame workpiece is , the angle between the spray gun movement direction and the vertical direction is θ, then =vsinθ, the moving distance of the door and window frame workpiece in the horizontal direction is = , spraying time = , the actual movement distance of the spray gun is = ,If the spray gun and the door and window frame workpiece move in the same direction, then the actual movement distance of the spray gun is = .
[0031] Preferably, in the spraying control system, there is a spraying trajectory planning process, and the process steps are as follows:
[0032] M1, determine the initial point of spraying;
[0033] M2, find all adjacent points of the initial spraying point;
[0034] M3, select all targets with adjacent points as starting points as the longest edge spray;
[0035] M4, the spray gun moves to the tail of the workpiece and determines whether the spraying is completed. The judgment is as follows:
[0036] If spraying is completed, record the spraying point and determine whether there are still adjacent points. If there are, return to M2 to find all adjacent points of the initial spraying point again. If not, end the spraying;
[0037] If spraying is not completed, move the sprayer in the opposite direction and repeat step M4 until spraying is completed.
[0038] Compared with the prior art, the present invention has the following beneficial effects:
[0039] First, by establishing a mathematical model of the spray gun to determine the spray thickness and effective spray range, improve the spray accuracy and determine the spray height distance;
[0040] Secondly, by measuring the light curtain to detect the information of the door and window frame workpiece, simulate and analyze the tilt and shake that may occur during the measurement process, determine the simulated binary image, convert the detection data into two-dimensional data, correct the spraying coordinate system, and improve the spraying accuracy;
[0041] Third, a depth-first search algorithm is used to simulate the positional relationship between the spray gun and the door and window frame workpiece during the spraying operation to establish a plane coordinate system, generate the planned route and process of the spraying trajectory, and improve the spraying efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 A schematic diagram of the spraying operation of a door and window frame processing and coating device;
[0043] Figure 2 It is a schematic diagram of a mathematical model of spray gun coating thickness in a door and window frame processing and coating device;
[0044] Figure 3 A schematic diagram of the model of the effective spray range of a spray gun adopting a double nozzle structure;
[0045] Figure 4 Schematic diagram of measuring the light curtain to the door and window frame and the corresponding schematic diagram of establishing the coordinate system;
[0046] Figure 5 This is a simplified diagram of the spray trajectory planning process. DETAILED DESCRIPTION
[0047] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. In the description of the present invention, it should be understood that the terms "upper", "lower", "front", "back", "left", "right", "top", "bottom", "inside", "outside" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, which are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0048] A control system for a door and window frame processing and coating device, such as Figure 1 As shown, it includes a coating device, which includes a door and window frame correction device, a spraying mechanism and a spraying control system;
[0049] The door and window frame correction device includes a measuring light curtain, a transmitter and a receiver. When the door and window frame workpiece passes through the measuring light curtain, the transmitter can send infrared light or laser to the receiver, which is then converted into the corresponding parameters of the coordinate system modeling of the door and window frame workpiece through the photoelectric sensor;
[0050] The spraying mechanism includes two sets of spray gun racks with spray guns and a linear track for accommodating the horizontal movement of the spray gun racks. The spray guns adopt a double-nozzle structure, and the spray guns can move up and down, left and right, and rotate through the spray gun racks;
[0051] During the spraying operation, the door and window frames are transported forward by the hoisting ropes, and the spray gun rack drives the spray gun to be transported in the opposite direction. When the door and window frames reach the spraying operation area, the door and window frames stop and the spray gun performs reciprocating spraying operations.
[0052] like Figure 2 As shown, during normal spraying, the paint sprayed from the spray gun is spread in the space in a cone shape, and the paint thickness becomes thinner as the distance from the center of the spray gun increases. In order to ensure uniform paint spraying on the workpiece surface, the two adjacent spray paint films must be superimposed on each other to compensate for the thickness of the paint edge;
[0053] In the spray control system, the Gaussian function corresponding to the spray effect of the spray gun is assumed to be , the reciprocating overlap distance of the spray gun is d, the spraying radius of the spray gun is r, the distance from the spray point of the spray gun to the spray path on one side is x, the moving distance between the spray points is s, q is the spraying distance, and the thickness of the spray gun nozzle after spraying is , substitute In, and take ;
[0054] Get coating thickness function ,
[0055] ;
[0056] ;
[0057] ;
[0058] in, and They represent the spraying thickness at point s on adjacent tracks during one reciprocating process of the spray gun, and They represent half of the movement time of the spray gun at point s on the adjacent spraying trajectory, where and Has the following formula:
[0059] ;
[0060] ;
[0061] In order to make the modeling intuitive and the paint thickness uniform, the two spraying superpositions are regarded as a straight line, where v is the travel speed of the spray gun, and the derivative is , according to the parameters entered The required process thickness can be used to determine the overlap distance d. The height of the two sets of spray guns from the workpiece can be adjusted according to the value of d. This is based on the geometric angle meaning, that is, to find the inflection point value of the curve. The optimal value of the overlap distance d can be obtained through the required process thickness, such as Figure 3 As shown in the figure, after a section of travel is completed, the next section of the trajectory and the adjacent spray guns of the previous section of the trajectory form the same overlapping distance again, which is defined as the effective spraying distance.
[0062] Since the door and window frame workpiece is randomly placed during the lifting, transportation and spraying, the door and window frame workpiece may be placed incorrectly. The inclination of the door and window frame workpiece corresponds to the conversion of the coordinate system, and the coordinate system needs to be automatically corrected according to the measuring light curtain. In the spraying control system, the movement of the door and window frame workpiece when passing through the measuring light curtain is , the moment when the workpiece begins to enter the measuring area is , the time to leave the measurement area is , the highest point height of the door and window frame workpiece is H, the lowest point height is h, then the offset angle α of the door and window frame workpiece is
[0063] ;
[0064] like Figure 4 As shown in the figure, the coordinate system of the door and window frame workpiece including the x, y, and z axes is established by scanning the door and window frame workpiece in the measurement area, and the rotation transformation coordinate transformation is performed. The inclination angle of the door and window frame workpiece is regarded as the door and window frame workpiece coordinate system rotated around the X axis by an angle α, and the plane of the original door and window frame workpiece and the plane obtained by rotating the X axis by an angle α are recorded as i and j, then the rotation transformation matrix is:
[0065] ;
[0066] According to the inverse kinematics, the parameter changes of each mechanical axis of the spray gun rack are obtained in turn. When the spray gun moves with the spray gun rack, the door and window frame workpiece moves around The axis rotates, and its spatial coordinate P in the measurement area coordinate system is
[0067] ;
[0068] in, is the plane i coordinate, is the coordinate on plane j .
[0069] The spray gun has 3 translational degrees of freedom and 2 rotational degrees of freedom when spraying door and window frame workpieces, which improves the overall flexibility but also increases the difficulty of planning the best path in spray trajectory planning. The present application adopts a depth-first search algorithm to plan the best spray path. It is to spray by scanning and spraying under the condition that the shape of the spray door and window frame workpiece is uncertain. It has the advantages of less gun lifting times and reduced empty gun moving distance. First, a plane coordinate system is established based on the door and window frame workpiece and the length of the long side and wide side of the door and window frame workpiece is determined by measuring the light curtain to determine the direction of the spray gun. Since the change of the direction of the spray gun will cause waste of paint and reduced efficiency, and the frequent change of the direction of the spray gun will also affect the uniformity of the spray gun, so in the whole spraying process, the best spraying scheme is the one with the least number of changes in the direction of the spray gun. Therefore, the spray trajectory is produced according to the long side of the plane spraying door and window frame workpiece as the priority option; in the spray control system, there is a spray trajectory planning process, such as Figure 5 As shown, the process steps are as follows:
[0070] M1, determine the initial point of spraying;
[0071] M2, find all adjacent points of the initial spraying point;
[0072] M3, select all targets with adjacent points as starting points as the longest edge spray;
[0073] M4, the spray gun moves to the tail of the workpiece and determines whether the spraying is completed. The judgment is as follows:
[0074] If spraying is completed, record the spraying point and determine whether there are still adjacent points. If there are, return to M2 to find all adjacent points of the initial spraying point again. If not, end the spraying;
[0075] If spraying is not completed, move the sprayer in the opposite direction and repeat step M4 until spraying is completed.
[0076] For the spraying of door and window frame workpieces, the movement state of the spray gun at a certain point of the spraying door and window frame workpiece is defined as left turn, right turn, left turn and right turn. Suppose the uniform movement speed of the door and window frame workpiece is , the spray gun speed is v, the spray gun acceleration is a, and the deceleration time of the spray gun is , the acceleration time is , the distance of the spray gun moving path is S;
[0077] like Figure 1 As shown, in order to facilitate the simulation trajectory, it is assumed that the door and window frame workpiece moves horizontally from one side to the other at a constant speed. The spray gun needs to complete the entire spraying process while following the constant speed movement of the door and window frame workpiece. In the actual spraying process, when spraying the vertical direction of the workpiece from top to bottom, the spray gun performs the spraying operation in an inclined direction;
[0078] The distance of the spray gun moving path has the following two situations:
[0079] If the width of the door and window frame workpiece is greater than d, it needs to be sprayed multiple times, and the spray gun needs to turn around and move from top to bottom. The distance of the spray gun moving path is
[0080] ;
[0081] If the width of the door and window frame workpiece is less than d, and the other side of the spray gun is the next stage of spraying area, the right angle of the door and window frame workpiece is changed, and the spray gun changes from vertical spraying to horizontal spraying. The distance of the spray gun moving path is
[0082] ;
[0083] Assume the vertical height of the door and window frame workpiece is , the angle between the spray gun movement direction and the vertical direction is θ, then =vsinθ, the moving distance of the door and window frame workpiece in the horizontal direction is = , spraying time = , the actual movement distance of the spray gun is = ,If the spray gun and the door and window frame workpiece move in the same direction, then the actual movement distance of the spray gun is = .
[0084] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.
[0085] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.
Claims
1. A control system for door and window frame processing and coating equipment, It is characterized in that It includes a coating device, which includes a door and window frame correction device, a spraying mechanism and a spraying control system; The door and window frame correction device includes a measuring light curtain, a transmitter and a receiver. When the door and window frame workpiece passes through the measuring light curtain, the transmitter can send infrared light or laser to the receiver, which is then converted into parameters corresponding to the coordinate system modeling of the door and window frame workpiece through a photoelectric sensor; The spraying mechanism includes two sets of spray gun racks with spray guns and a linear track for accommodating the horizontal movement of the spray gun racks. The spray guns adopt a double-nozzle structure. The spray guns can move up and down, left and right, and rotate in an azimuth through the spray gun racks. In the spray control system, the Gaussian function corresponding to the spray effect of the spray gun is assumed to be , the reciprocating overlap distance of the spray gun is d, the spraying radius of the spray gun is r, the distance from the spraying point of the spray gun to the spraying path on one side is x, the moving distance between the spraying points is s, and the thickness of the spray gun nozzle after spraying is , substitute In, and take ; Get coating thickness function , ; ; ; in, and They represent the spraying thickness at point s on adjacent tracks during one reciprocating process of the spray gun. and They represent half of the movement time of the spray gun at point s on the adjacent spraying trajectory, where and Has the following formula: ; ; Where v is the velocity of the spray gun. The superposition of two sprayings is regarded as a straight line, and the derivative is , according to the parameters entered The required process thickness can be used to determine the overlap distance d. The height of the two sets of spray guns from the workpiece can be adjusted according to the value of d. ; In the spray control system, the movement of the door and window frame workpiece passing through the measuring light curtain is assumed to be , the moment when the workpiece begins to enter the measuring area is , the time to leave the measurement area is , the highest point height of the door and window frame workpiece is H, the lowest point height is h, then the offset angle α of the door and window frame workpiece is ; Scan the door and window frame workpiece in the measurement area to establish the coordinate system of the door and window frame workpiece including the x, y, and z axes, perform rotation transformation coordinate transformation, regard the inclination angle of the door and window frame workpiece as the door and window frame workpiece coordinate system rotated around the X axis by an angle α, and record the plane of the original door and window frame workpiece and the plane obtained by rotating the X axis by an angle α as i and j, then the rotation transformation matrix is: ; According to the inverse kinematics, the parameter changes of each mechanical axis of the spray gun rack are obtained in turn. When the spray gun moves with the spray gun rack, the door and window frame workpiece moves around The axis rotates, and its spatial coordinate P in the measurement area coordinate system is ; in, is the plane i coordinate, is the coordinate on plane j ; The motion state of the spray gun at a certain point of the spray window frame workpiece is defined as left turn, right turn, left turn and right turn. Suppose the uniform motion speed of the door and window frame workpiece is , the spray gun speed is v, the spray gun acceleration is a, and the deceleration time of the spray gun is , the acceleration time is , the distance of the spray gun moving path is S; The distance of the spray gun moving path has the following two situations: If the width of the door and window frame workpiece is greater than d, the distance of the spray gun moving path is ; If the width of the door and window frame workpiece is less than d, the distance of the spray gun moving path is ; Assume the vertical height of the door and window frame workpiece is , the angle between the spray gun movement direction and the vertical direction is θ, then =vsinθ, the moving distance of the door and window frame workpiece in the horizontal direction is = , spraying time = , the actual movement distance of the spray gun is = ,If the spray gun and the door and window frame workpiece move in the same direction, then the actual movement distance of the spray gun is = ; In the spraying control system, there is a spraying trajectory planning process, and the process steps are as follows: M1, determine the initial point of spraying; M2, find all adjacent points of the initial spraying point; M3, select all targets with adjacent points as starting points as the longest edge spray; M4, the spray gun moves to the tail of the workpiece and determines whether the spraying is completed. The judgment is as follows: If spraying is completed, record the spraying point and determine whether there are still adjacent points. If there are, return to M2 to find all adjacent points of the initial spraying point again. If not, end the spraying; If spraying is not completed, move the sprayer in the opposite direction and repeat step M4 until spraying is completed.
