Method for setting dispensing path and controlling dispensing
By designing software modules in PLC, users can edit and adjust the dispensing trajectory by themselves, solving the problems of difficulty and high cost of replacement of polygon dispensing trajectory programs in the existing technology, and achieving flexible and low-cost dispensing path control to meet the needs of the Diversified needs.
Patent Information
- Application Number
- CN202410920925.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-11-26
AI Technical Summary
The existing dispensing system has difficulties and high cost in implementing diversified polygon dispensing trajectories. Especially when the demand for dispensing trajectories changes frequently, the program in the PLC needs to be replaced, resulting in an increase in the cost of upgrading the production line of automation equipment.
A software module for PLC dispensing path is designed, which is loaded into the PLC, including a variety of motion control modes, rubber output control modes and rubber offset control modes. The motion path is displayed and edited in a table form, and users can edit and adjust points by themselves. The glue trajectory meets the diverse dispensing needs, and does not require replacement of independent intelligent dispensing equipment.
It realizes the flexibility of users to edit diversified dispensing trajectories by themselves, reduces costs, enhances scalability and applicability, avoids the necessity of replacing PLC programs, and simplifies the path planning and modification process.
Smart Images

Figure CN119024759A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technology of glue dispensing field, and in particular to a method for setting a glue dispensing path and controlling glue dispensing. Background Art
[0002] CN 115889075 A discloses a dispensing system and a dispensing control method, comprising: a PLC and a feeding module, a dispensing module, a wiping module, a dispensing module and a host computer which are communicatively connected with the PLC, wherein the dispensing module comprises an industrial camera and a dispensing valve which can move along the XYZ three axes; the wiping module is located within the movable range of the dispensing valve and is used for cleaning the dispensing head after dispensing; the feeding module is connected between the previous workstation and the dispensing module to transfer the material outputted from the previous workstation to the dispensing module; the dispensing module is connected between the dispensing module and the next workstation and the NG dispensing station to send the product after dispensing to the next workstation or the NG dispensing station accordingly. When dispensing glue, the outline and placement position information of the material at the dispensing position is first obtained, and then the upper computer calculates the position deviation value of the mark point on the picture, so that the PLC can perform correction operations on the dispensing position coordinates on the material based on the position deviation value to obtain accurate dispensing position coordinates. Subsequently, the PLC controls the action of the dispensing module based on the obtained precise dispensing position coordinates and the dispensing path calculated by the PLC interpolation to complete the dispensing operation of the material; and, an interpolation program with a variety of different dispensing paths is pre-set in the PLC. When using it, the user can directly select and switch the dispensing path through the touch screen according to the process requirements.
[0003] It can be seen that the structure and control calculation method of this type of dispensing system are complex. In addition, in the industry, dispensing equipment with a high degree of intelligence is generally presented as a relatively independent device, with mature technology and complete functions, but correspondingly, it also has the problem of high price.
[0004] In actual processing and production, many automated equipment contain multiple functions, usually to meet multiple sequential process links. For example, the dispensing function is often only one link, and is precisely connected to other processes (such as UV irradiation, CCD detection). This type of dispensing function device can achieve a relatively single dispensing trajectory, which generally only meets some dot-shaped, straight-line or arc-shaped dispensing trajectories. It is difficult to achieve some polygonal dispensing trajectories. From a technical point of view, if the polygonal dispensing trajectory function needs to be implanted, the program in the PLC needs to be changed. However, for the need to meet the diverse polygonal dispensing trajectories, and the situation where the dispensing trajectory requirements encountered during actual processing change at any time, it is also unrealistic to repeatedly ask professionals to change the program in the PLC. If the dispensing function device of the original automated equipment is replaced with a highly intelligent dispensing device, on the one hand, the highly intelligent dispensing device is expensive. On the other hand, the connected highly intelligent dispensing device requires the control calculation plan of the automated equipment production line to be reorganized and updated. These seamless changes will lead to a sharp increase in the upgrade cost of the automated equipment production line, which is not an ideal choice for many processing manufacturers.
[0005] Therefore, it is necessary to study a new technical solution to solve the above problems. Summary of the invention
[0006] In view of this, the present invention aims to address the deficiencies in the prior art, and its main purpose is to provide a method for setting a dispensing path and controlling dispensing, which allows users to edit and adjust a variety of dispensing trajectories at any time as needed, with low cost and strong applicability.
[0007] To achieve the above purpose, the present invention adopts the following technical solutions: A method for setting a dispensing path and controlling dispensing, which is based on an XYZ three-axis dispensing device controlled by a PLC, wherein the dispensing device comprises a PLC, an XYZ three-axis driving device and a dispensing mechanism, wherein the PLC is connected to a display screen, wherein the display screen has an input function or is connected to an input module, wherein the dispensing mechanism is driven by the XYZ three-axis driving device and displaces along the XYZ three-axis as required, wherein the dispensing mechanism is provided with a dispensing valve, wherein the XYZ three-axis driving device comprises an X-axis driving mechanism, a Y-axis driving mechanism and a Z-axis driving mechanism, wherein the X-axis driving mechanism, the Y-axis driving mechanism, the Z-axis driving mechanism and the dispensing valve are respectively connected to the PLC; The method includes: designing a software module for a PLC dispensing path and loading it into the PLC; The software module of the PLC dispensing path includes a plurality of first submodules respectively serving as motion control modes for the dispensing mechanism. There are multiple motion control modes, including: single X-axis motion, single Y-axis motion, XY-axis interpolation, and single Z-axis motion. By programming the motion control mode, the motion starting point coordinates, motion target coordinates, and the motion speed of the currently set motion path of the dispensing mechanism between the motion starting point coordinates and the motion target coordinates under the current motion control mode are programmed as program parameters; The software module of the PLC dispensing path also includes a plurality of second submodules as dispensing control modes for the dispensing valve, respectively, and the second submodules represent the functions to be performed by the dispensing mechanism during the current motion path; there are multiple dispensing control modes, including: no dispensing, normal dispensing, early dispensing, and delayed dispensing; The software module of the PLC dispensing path also includes a plurality of third submodules as the dispensing valve closing control modes, respectively, and the third submodules represent the functions to be performed when the dispensing mechanism reaches the moving target coordinates; the dispensing valve closing control modes include normal closing, early closing, and delayed closing; The motion target coordinates of each sequential motion path are formed into a table in the form of points, and the table is displayed on the display screen, and the table shows: motion control mode, motion target coordinates, glue discharging control mode, and glue closing control mode; When the PLC starts running, the table is accessed to determine the motion control mode, the motion target coordinates, the glue dispensing control mode, and the glue closing control mode, and then the glue dispensing mechanism is controlled to dispense glue along the corresponding motion path.
[0008] As a preferred solution, the glue discharging control mode is programmed and the delay time for the related glue discharging is used as a program parameter.
[0009] As a preferred solution, the glue discharging control mode is programmed and the delay time for the related glue discharging is used as a program parameter.
[0010] As a preferred solution, a PLC program module is provided in the PLC, and the PLC program module is connected to a human-machine exchange interface module.
[0011] As a preferred solution, the software module of the PLC dispensing path is pre-installed with multiple dispensing trajectory models. When in use, the matching or similar model is directly called out according to the required dispensing trajectory. A completely matching model can be directly called, and a similar model can directly modify part of the motion path on the table to derive a new model.
[0012] As a preferred solution, the user edits and defines the motion starting point coordinates, motion target coordinates, motion control mode, motion speed, glue discharge control mode, and glue closing control mode of each motion path in the table, and derives a new model. The PLC controls the XYZ three-axis dispensing equipment based on the new model to form the required dispensing trajectory.
[0013] As a preferred solution, new models are derived as needed and saved in the PLC to update the currently stored models.
[0014] As a preferred solution, the motion control mode also includes: path end and path skipping.
[0015] As a preferred solution, a discontinuous dispensing trajectory is achieved by setting the "skip this path" motion control mode.
[0016] As a preferred solution, the current coordinate value of the dispensing mechanism is edited and set on the table, including: X current coordinate value, Y current coordinate value, Z current coordinate value, which serve as the motion starting point coordinates of the first segment of the motion path of the dispensing mechanism.
[0017] Compared with the prior art, the present invention has obvious advantages and beneficial effects. Specifically, it can be seen from the above technical scheme that it is mainly designed by a software module of a PLC dispensing path and loaded into the PLC; the software module of the PLC dispensing path includes a plurality of first submodules respectively serving as motion control modes for the dispensing mechanism, a plurality of second submodules respectively serving as dispensing control modes for the dispensing valve, and a plurality of third submodules respectively serving as dispensing control modes for the dispensing valve. The motion target coordinates of each section of the motion path performed in sequence are formed into a table in the form of points, and the table is displayed on the display screen. The table shows: motion control mode, motion target coordinates, dispensing control mode, mode, and glue closing control mode; when the PLC starts running, it accesses the table to determine the motion control mode, the motion target coordinates, the glue dispensing control mode, and the glue closing control mode, and then controls the glue dispensing mechanism to dispense glue along the corresponding motion path; it satisfies the user's need to edit and adjust the diverse glue dispensing trajectories at any time, and the tabular path planning makes the modification intuitive and simple; it has strong scalability, and if you need to add motion modes or other functions, you only need to add control modes or functional modes; it has low cost, and there is no need to replace independent glue dispensing equipment. You just need to directly integrate the software module into the control of the PLC, and it can be called as long as the PLC has XYZ three axes; it has strong portability and applicability.
[0018] In order to more clearly illustrate the structural features and effects of the present invention, the present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 is a table diagram of a touch screen display according to an embodiment of the present invention; Figure 2 It is a first dispensing track diagram of an embodiment of the present invention; Figure 3 It is a PLC controlled XYZ three-axis dispensing equipment. Figure 2 The table diagram that needs to be accessed when the dispensing trajectory is shown; Figure 4 is a diagram showing a second dispensing track according to an embodiment of the present invention; Figure 5 It is a PLC controlled XYZ three-axis dispensing equipment. Figure 4 The table diagram that needs to be accessed when the dispensing trajectory is shown; Figure 6 is a blank table diagram displayed on a touch screen according to an embodiment of the present invention; Figure 7 is a third dispensing track diagram of an embodiment of the present invention; Figure 8 It is a PLC controlled XYZ three-axis dispensing equipment. Figure 7 The table diagram that needs to be accessed when the dispensing trajectory is shown; Fig. 9 Schematic diagram of four dispensing trajectories of an embodiment of the present invention. DETAILED DESCRIPTION
[0020] Please refer to Figures 1 to 9 As shown, it shows the specific structure of an embodiment of the present invention.
[0021] In the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "up", "down", "left", "right", etc. are based on the directions or positional relationships shown in the accompanying drawings, and 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 direction, be constructed and operated in a specific direction, and therefore cannot be understood as a limitation on the present invention.
[0022] A method for setting and controlling a dispensing path, which is based on a PLC-controlled XYZ three-axis dispensing device, the dispensing device includes a PLC, an XYZ three-axis drive device, and a dispensing mechanism, the PLC is connected to a display screen, the display screen has an input function or is connected to an input module, the display screen is preferably a touch screen, and input can be directly performed on the touch screen. Of course, for some display screens that do not have an input function, the display screen can be connected to an operating keyboard or a key area on the periphery of the display screen, and input can be completed through the key area. That is, the display screen has or is connected to an input module, and the PLC is connected to the input module.
[0023] The dispensing mechanism is driven by the XYZ three-axis driving device to move along the XYZ three-axis as needed, and the dispensing mechanism is equipped with a dispensing valve for controlling the dispensing and closing of the glue. The XYZ three-axis drive device includes an X-axis drive mechanism, a Y-axis drive mechanism and a Z-axis drive mechanism, and the X-axis drive mechanism, the Y-axis drive mechanism, the Z-axis drive mechanism and the dispensing valve are respectively connected to the PLC; the X-axis drive mechanism, the Y-axis drive mechanism and the Z-axis drive mechanism are respectively used to drive the dispensing mechanism to displace along the XYZ three axes as needed, for example: the dispensing mechanism is connected to the X-axis drive mechanism, the X-axis drive mechanism is connected to the Y-axis drive mechanism, the Y-axis drive mechanism is connected to the Z-axis drive mechanism, the Z-axis drive mechanism drives the Y-axis drive mechanism to move up and down along the Z-axis, the Y-axis drive mechanism drives the X-axis drive mechanism to translate along the Y-axis, and the X-axis drive mechanism drives the dispensing mechanism to translate along the X-axis; of course, in actual design, the relative installation and displacement relationship of the X-axis drive mechanism, the Y-axis drive mechanism and the Z-axis drive mechanism of the XYZ three-axis drive device do not need to be limited to this, and can satisfy the need to drive the dispensing mechanism to displace along the XYZ three axes as needed.
[0024] As is well known in the industry, PLC (Programmable Logic Controller) uses programmable memory to store programs internally, executes user-oriented instructions such as logic operations, sequence control, timing, counting and arithmetic operations, and controls various types of machinery or production processes through digital or analog input / output. Therefore, loading programs on the original PLC is highly portable and feasible.
[0025] The method includes: designing a software module for a PLC dispensing path and loading the module into the PLC; a PLC program module is arranged in the PLC, and the PLC program module is connected to a human-machine exchange interface module.
[0026] The software module of the PLC dispensing path includes multiple first sub-modules that serve as motion control modes for the dispensing mechanism. There are multiple motion control modes, including: single X-axis motion, single Y-axis motion, XY-axis interpolation, and single Z-axis motion. By programming the motion control mode, the motion starting point coordinates, motion target coordinates, and the motion speed on the motion path of the dispensing mechanism currently set between the motion starting point coordinates and the motion target coordinates under the current motion control mode are written as program parameters; the motion control mode also includes: path end and skipping the path.
[0027] The software module of the PLC dispensing path also includes a plurality of second submodules as dispensing control modes for the dispensing valve, respectively, and the second submodules represent the functions to be performed by the dispensing mechanism during the current motion path; there are multiple dispensing control modes, including: no dispensing, normal dispensing, early dispensing, and delayed dispensing; The software module of the PLC dispensing path also includes a plurality of third submodules as the dispensing valve closing control modes, respectively, and the third submodules represent the functions to be performed when the dispensing mechanism reaches the moving target coordinates; the dispensing valve closing control modes include normal closing, early closing, and delayed closing; The motion target coordinates of each segment of the motion path are formed into a table in the form of points, and the table is displayed on the display screen. The table shows: motion control mode, motion target coordinates, glue discharge control mode, glue closing control mode; the current coordinate value of the dispensing mechanism is edited and set on the table, including: X current coordinate value, Y current coordinate value, Z current coordinate value, which are used as the motion starting point coordinates of the first segment of the motion path of the dispensing mechanism.
[0028] When the PLC starts running, it accesses the table (for example, accesses the table from top to bottom), determines the motion control mode, the motion target coordinates, the glue dispensing control mode, and the glue closing control mode, and then controls the glue dispensing mechanism to dispense glue along the corresponding motion path.
[0029] The software module of the PLC dispensing path is pre-installed with a variety of dispensing trajectory models. When in use, according to the required dispensing trajectory, a matching or similar model can be directly called out. A completely matching model can be directly called, and a similar model can be directly modified to modify part of the motion path on the table to derive a new model. Of course, users can also edit and define the motion starting point coordinates, motion target coordinates, motion control mode, motion speed, glue output control mode, and glue closing control mode of each motion path on the table to derive a new model. The PLC controls the XYZ three-axis dispensing equipment based on the new model to form the required dispensing trajectory. New models are derived as needed and saved in the PLC to update the currently stored models.
[0030] Specifically, Figures 1 to 5As shown, in the present invention, the entire trajectory (also referred to as the dispensing path) that needs to be glued is divided into several sequentially connected motion paths, so that each motion path has corresponding motion starting point coordinates and motion target coordinates, and the coordinate unit is millimeter. Several first submodules are defined for the motion path as motion control modes. There are many motion control modes, mainly: 0 path end, 1 single X-axis motion, 2 single Y-axis motion, 3 XY axis interpolation (i.e., both XY axes move), 4 single Z-axis motion, 5 skip the path (i.e., do not perform the path), where the numbers 0, 1, 2, 3, 4, and 5 are motion control mode codes respectively. The software programs the motion control mode, and writes the motion starting point coordinates, motion target coordinates, and the motion speed on the currently set motion path between the motion starting point coordinates and the motion target coordinates as program parameters. In this way, the dispensing mechanism can be controlled to move along each motion path, thereby sequentially forming a trend of walking along the dispensing path.
[0031] In addition, several second submodules are defined as glue dispensing control modes in each dispensing path process. There are multiple glue dispensing control modes, mainly including: 0 no glue dispensing, 1 normal glue dispensing, 2 early glue dispensing, 3 delayed glue dispensing, where the numbers 0, 1, 2, and 3 are the glue dispensing control mode codes. The software programs the glue dispensing control mode and takes the delay time of the relevant glue dispensing as a program parameter, and the time unit is seconds.
[0032] Define several third submodules as closing control modes for each moving target coordinate. There are many closing control modes, mainly: 0 normal closing, 1 early closing, 2 delayed closing. The software programs the closing control mode and takes the delay duration of the relevant closing as a program parameter, with the duration unit in seconds.
[0033] like Figure 1 As shown, each dispensing path is connected in series in the form of points to form a table, which is displayed on the display screen. This table is a single path cycle, which integrates teaching, coordinate display, etc. Teaching refers to teaching programming, and adjusting parameters on the interface is equivalent to revising and recompiling the program based on the preset program to enable the dispensing mechanism and dispensing valve to complete the required actions. In the software, by starting the operation and cyclically judging the value of the control mode, the table can be accessed, and then the corresponding motion path and function (including glue discharge control, glue closing control, etc.) can be selected to achieve it.
[0034] Among the various motion control modes, motion control mode 1 is the X-axis motion only, which means that only the X coordinate needs to be considered. Since the Y and Z coordinates do not change, they do not need to be set in the table and can be displayed as 0. Similarly, motion control mode 2 is the Y-axis motion only, which means that only the Y coordinate needs to be considered. Since the X and Z coordinates do not change, they do not need to be set in the table and can be displayed as 0. Similarly, motion control mode 3 is the interpolation of the X and Y axes (that is, both the X and Y axes move), which means that only the X and Y coordinates need to be considered. Since the Z coordinate does not change, it does not need to be set in the table and can be displayed as 0. Similarly, motion control mode 4 is the Z-axis motion only, which means that only the Z coordinate needs to be considered. Since the X and Y coordinates do not change, it does not need to be set in the table and can be displayed as 0.
[0035] like Figure 2 As shown, if the dispensing track shown in the figure needs to be formed, the entire dispensing track is divided into several sequentially connected motion paths (motion path 2 to motion path 9), and 8 segments of dispensing tracks are formed accordingly, which are: the first segment of dispensing track a1 to the eighth segment of dispensing track a8; the current coordinates of the dispensing mechanism are: X coordinate 0.000 mm, Y coordinate 0.000 mm, Z coordinate 0.000 mm; motion paths 0 to 9 are performed in sequence. Specifically, combined with Figure 3 The table shown: The motion path 0 uses the current coordinates (X coordinate 0.000 mm, Y coordinate 0.000 mm, Z coordinate 0.000 mm) as the starting point coordinates of the motion, and uses the X coordinate 0.000 mm, Y coordinate 0.000 mm, and Z coordinate 150.000 mm as the target coordinates of the motion. Therefore, during the motion path 0, the motion control mode 4 (single Z-axis motion) is used for upward displacement, so that the dispensing mechanism rises to a height of 150.000 mm, the motion speed is 50 mm per second, the glue dispensing control mode is 0 (no glue dispensing), and the glue closing control mode is 0 (normal glue closing).
[0036] Motion path 1 uses X coordinate 0.000 mm, Y coordinate 0.000 mm, and Z coordinate 150.000 mm as the motion starting point coordinates, and X coordinate 10.000 mm, Y coordinate 10.000 mm, and Z coordinate 150.000 mm as the motion target coordinates. Therefore, during motion path 1, motion control mode 3 (XY axis interpolation) is used for translation, so that the dispensing mechanism moves along the X / Y axis to the dispensing starting point position, the movement speed is 50 mm per second, the glue discharge control mode is 0 (no glue discharge), and the glue closing control mode is 0 (normal glue closing).
[0037] The motion path 2 uses the X coordinate of 10.000 mm, the Y coordinate of 10.000 mm, and the Z coordinate of 150.000 mm as the motion starting point coordinates, and uses the X coordinate of 200.000 mm, the Y coordinate of 10.000 mm, and the Z coordinate of 150.000 mm as the motion target coordinates. Therefore, during the motion path 2, the motion control mode 1 (single X-axis motion) is used for translation, so that the dispensing mechanism dispensing along the X-axis to form the first dispensing trajectory a1, the motion speed is 50 mm per second, the dispensing control mode is 1 (normal dispensing), and the closing control mode is 0 (normal closing).
[0038] The motion path 3 uses the X coordinate of 200.000 mm, the Y coordinate of 10.000 mm, and the Z coordinate of 150.000 mm as the motion starting point coordinates, and uses the X coordinate of 200.000 mm, the Y coordinate of 50.000 mm, and the Z coordinate of 150.000 mm as the motion target coordinates. Therefore, during the motion path 3, the motion control mode 2 (single Y-axis motion) is used for translation, so that the dispensing mechanism dispensing along the Y-axis to form the second dispensing trajectory a2, the motion speed is 50 mm per second, the dispensing control mode is 1 (normal dispensing), and the closing control mode is 0 (normal closing).
[0039] Motion path 4 uses X coordinate 200.000 mm, Y coordinate 50.000 mm, and Z coordinate 150.000 mm as the motion starting point coordinates, and X coordinate 130.000 mm, Y coordinate 100.000 mm, and Z coordinate 150.000 mm as the motion target coordinates. Therefore, during the motion path 4, the motion control mode 3 (XY axis interpolation) is used for translation, so that the dispensing mechanism translates along the X / Y axis to form the third dispensing trajectory a3, the motion speed is 50 mm per second, the glue discharge control mode is 1 (normal glue discharge), and the glue closing control mode is 0 (normal glue closing).
[0040] The motion path 5 uses the X coordinate of 130.000 mm, the Y coordinate of 100.000 mm, and the Z coordinate of 150.000 mm as the motion starting point coordinates, and uses the X coordinate of 130.000 mm, the Y coordinate of 130.000 mm, and the Z coordinate of 150.000 mm as the motion target coordinates. Therefore, during the motion path 5, the motion control mode 2 (single Y-axis motion) is used for translation, so that the dispensing mechanism is translated along the Y-axis to dispense glue to form the fourth dispensing trajectory a4, the motion speed is 50 mm per second, the dispensing control mode is 1 (normal dispensing), and the closing control mode is 0 (normal closing).
[0041] The motion path 6 uses the X coordinate of 130.000 mm, the Y coordinate of 130.000 mm, and the Z coordinate of 150.000 mm as the motion starting point coordinates, and uses the X coordinate of 200.000 mm, the Y coordinate of 170.000 mm, and the Z coordinate of 150.000 mm as the motion target coordinates. Therefore, during the motion path 6, the motion control mode 3 (XY axis interpolation) is used for translation, so that the dispensing mechanism translates along the X / Y axis to form the fifth dispensing trajectory a5, with a motion speed of 50 mm per second, the dispensing control mode 1 (normal dispensing), and the closing control mode 0 (normal closing).
[0042] The motion path 7 uses the X coordinate of 200.000 mm, the Y coordinate of 170.000 mm, and the Z coordinate of 150.000 mm as the motion starting point coordinates, and uses the X coordinate of 200.000 mm, the Y coordinate of 200.000 mm, and the Z coordinate of 150.000 mm as the motion target coordinates. Therefore, during the motion path 7, the motion control mode 2 (single Y-axis motion) is used for translation, so that the dispensing mechanism dispensing along the Y-axis to form the sixth dispensing trajectory a6, with a motion speed of 50 mm per second, the dispensing control mode 1 (normal dispensing), and the closing control mode 0 (normal closing).
[0043] The motion path 8 uses the X coordinate of 200.000 mm, the Y coordinate of 200.000 mm, and the Z coordinate of 150.000 mm as the motion starting point coordinates, and uses the X coordinate of 10.000 mm, the Y coordinate of 200.000 mm, and the Z coordinate of 150.000 mm as the motion target coordinates. Therefore, during the motion path 8, the motion control mode 1 (single X-axis motion) is used for translation, so that the dispensing mechanism dispensing glue along the X-axis to form the seventh dispensing trajectory a7, and the motion speed is 50 mm per second. The glue discharge control mode 2 (advance glue discharge) is used to discharge glue 0.10 seconds in advance, and the glue closing control mode 1 (advance glue closing) is used to close the glue 0.10 seconds in advance.
[0044] The motion path 9 uses the X coordinate of 10.000 mm, the Y coordinate of 200.000 mm, and the Z coordinate of 150.000 mm as the motion starting point coordinates, and uses the X coordinate of 10.000 mm, the Y coordinate of 10.000 mm, and the Z coordinate of 150.000 mm as the motion target coordinates. Therefore, during the motion path 9, the motion control mode 2 (single Y-axis motion) is used for translation, so that the dispensing mechanism dispensing along the Y-axis is translated to form the eighth dispensing trajectory a8, the motion speed is 50 mm per second, the dispensing control mode is 1 (normal dispensing), the dispensing is 0.10 seconds in advance, and the closing control mode is 0 (normal closing).
[0045] Then, the 0 path ends. In this way, the PLC controls the dispensing mechanism to displace the dispensing to form the following Figure 2 The dispensing trajectory shown.
[0046] Usually, there are a variety of dispensing trajectory models preset in the program, such as: Figure 2 The dispensing track shown is one of them; when using it, according to the required dispensing track, directly call out the matching or similar model. The completely matching model can be directly called, and the similar model can modify part of the motion path to derive a new model. This tabular path planning is intuitively displayed on the touch screen, and it is also intuitive and simple to modify.
[0047] If you need PLC to control the XYZ three-axis dispensing equipment Figure 4 The dispensing track shown can be called up Figure 2 The model of the dispensing trajectory shown in the figure only needs to modify the point coordinates and control mode of the motion path 8: the motion path 8 uses the X coordinate 200.000 mm, the Y coordinate 200.000 mm, and the Z coordinate 150.000 mm as the motion starting point coordinates, and uses the X coordinate 10.000 mm, the Y coordinate 150.000 mm, and the Z coordinate 150.000 mm as the motion target coordinates. Therefore, during the motion path 8, the motion control mode 3 (XY axis interpolation) is used for translation, so that the dispensing mechanism translates along the X / Y axis to dispense glue to form the seventh dispensing trajectory a7', the motion speed is 50 mm per second, the dispensing control mode 2 (dispensing glue in advance), dispensing glue 0.10 seconds in advance, and the closing glue control mode 1 (closing glue in advance), closing glue 0.10 seconds in advance; as shown in FIG. Figure 5 shown.
[0048] In fact, even if there is no similar model, on the basis of a basic model with several motion paths, the equipment user can edit and define any one or more of the motion starting point coordinates, motion target coordinates, motion control mode, motion speed, glue dispensing control mode, and glue closing control mode of each motion path, and it is easy to derive a new model. Based on this model, the PLC controls the XYZ three-axis dispensing equipment to form the required dispensing trajectory. In actual use, new models can be derived as needed, and can also be saved in the PLC, and the currently stored models can be updated and accumulated to make the models more diverse. Therefore, it has strong scalability and is very practical.
[0049] Moreover, among the various motion control modes of the present invention, only the corresponding axis coordinates of the current motion control mode need to be considered. For example, motion control mode 1 is the X-axis motion only, which means that only the X coordinate needs to be considered. Since the Y and Z coordinates do not change, they do not need to be set in the table and can be displayed as 0 (or 0.000, 0000.000, etc.). In this way, it is very convenient to set the path. Only the variable coordinate value needs to be set, and the operation is simplified.
[0050] In this embodiment, the program running environment is as follows: 1. Hardware environment: PLC hardware includes Keyence PLC: KV-8000, Keyence motion input module: KV-MC40V, and Weiluntong touch screen.
[0051] 2. Programming environment: KV STUDIO 11.64.
[0052] 3. Programming language: PLC (Keyence) Weiluntong graphics drawing.
[0053] The technical solution of the present invention is not limited to the above hardware environment, and its applicability is very strong. It can be applied to various PLCs with motion control, that is, various XYZ three-axis dispensing equipment controlled by PLC is applicable, and it only needs to have PLC and a display screen (usually a touch screen) connected to PLC. The program is loaded on PLC (also refers to the software module of PLC dispensing path), which has strong portability and can be directly integrated into the control of PLC for calling. It can upgrade and transform the existing equipment with dispensing function, so that it can directly call and adjust the dispensing path at any time, meet the demand of automatic dispensing along the specified path, and the cost is low.
[0054] like Figure 1 and Figure 6 As shown, the leftmost side of the table shows that there are several models to choose from, which also refers to several preset models, corresponding to several dispensing trajectories. From left to right, the table has multiple columns of "Run", "Control Mode", "X Coordinate", "Y Coordinate", "Z Coordinate", "Movement Speed", "Glue Out Control", "Advance / Extended Glue Out", "Glue Off Control", "Timing / Delayed Glue Out", and "XYZ Point Coordinate Teaching Button Area". The "Run" column refers to the motion path naming, which is named from top to bottom in the order of motion; "Control Mode" refers to the motion control mode, "Glue Out Control" refers to the glue control mode, and "Glue Off Control" refers to the glue off control mode. For a blank table, according to the dispensing track to be realized, first divide the entire track that needs dispensing (also referred to as the dispensing path) into several sequentially connected motion paths, so that each motion path has corresponding motion starting point coordinates and motion target coordinates. The motion starting point coordinates of the first motion path are the current coordinates of the dispensing mechanism. For the motion path from top to bottom, edit the corresponding motion target coordinates, select the motion control mode, the dispensing control mode, the glue closing control mode, set the motion speed, etc. The unchanged coordinates in the motion target coordinates (specifically including the X coordinate, the Y coordinate, and the Z coordinate) of the next adjacent motion path do not need to be set, and do not need to be set on the table, and can be displayed as 0. Therefore, it is more convenient and simple for users to edit the table. Since the amount of glue remaining on the dispensing track is relatively small when the motion speed is high during dispensing, and the amount of glue remaining on the dispensing track is relatively large when the motion speed is low, therefore, when the amount of glue required for a certain section of the dispensing track is different, the size of the motion speed can be adjusted.
[0055] For non-continuous dispensing trajectories, you can adopt a method where part of the motion path does not dispense glue, such as Figure 7 As shown, it is Figure 2 The dispensing trajectories shown are not exactly the same, but their motion paths can be the same. Figure 3 As shown in the table, the glue discharging control mode of motion path 2 and motion path 4 are modified to 0, so no glue is discharged. Figure 7 Matching tables such as Figure 8 As shown, in this way, compared with Figure 2 , the second dispensing track a2 and the fourth dispensing track a4 are missing. And, Fig. 9 As shown, it is Figure 2 The dispensing trajectories shown are not exactly the same, but their motion paths can be the same. Figure 3 As shown in the table, the motion control mode of motion path 9 is modified to 5 to skip this path (i.e., do not perform this path). In this way, the dispensing trajectory obtained by controlling the dispensing is Figure 2 , the eighth dispensing track a8 is missing. The dispensing path setting that can be realized by the present invention is not limited to a closed polygonal track.
[0056] For the determination of the conveying position coordinates of the workpiece that needs to be glued, take the circuit board product as an example. There are several electronic components on the circuit board. The track required for glue dispensing at a time may be a straight line, a V-shaped line, a polygon, a discontinuous track, etc. On the automated equipment, the starting point of the first section of the dispensing track on the circuit board corresponds to the coordinates of the starting point of the first section of the motion path, that is, the XYZ current coordinates on the table. Therefore, after the circuit board is delivered to the location, it needs to satisfy the starting point of the first section of the dispensing track on the circuit board and the XYZ current coordinates on the table. It is equivalent to defining the position of the circuit board delivered to the location with reference to the XYZ current coordinates on the table. Alternatively, the XYZ current coordinates on the table can be adjusted with reference to the position of the circuit board delivered to the location.
[0057] The design focus of the present invention is that it is mainly designed by designing a software module of a PLC dispensing path and loading it into the PLC; the software module of the PLC dispensing path includes a plurality of first submodules respectively serving as motion control modes for the dispensing mechanism, a plurality of second submodules respectively serving as dispensing valve dispensing control modes, and a plurality of third submodules respectively serving as dispensing valve closing control modes, and the motion target coordinates of each section of the motion path performed in sequence are formed into a table in the form of points, and the table is displayed on the display screen, and the table shows: motion control mode, motion target coordinates, dispensing control mode, and dispensing control mode; the PLC When the operation is started, the table is accessed to determine the motion control mode, the motion target coordinates, the glue dispensing control mode, and the glue closing control mode, and then the glue dispensing mechanism is controlled to dispense glue along the corresponding motion path; it satisfies the user's need to edit and adjust the diverse glue dispensing trajectories at any time, and the tabular path planning makes the modification intuitive and simple; it has strong scalability, and if there is a need to increase motion modes or other functions, it only needs to increase the control mode or function mode; it has low cost, and there is no need to replace independent glue dispensing equipment, but to directly integrate the software module into the control of the PLC, and it can be called as long as the PLC has XYZ three axes; it has strong portability and applicability.
[0058] The above description is only a preferred embodiment of the present invention and does not limit the technical scope of the present invention. Therefore, any slight modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention are still within the scope of the technical solution of the present invention.
Claims
1. A method for setting a dispensing path and controlling dispensing, characterized in that: The XYZ three-axis dispensing device is based on PLC control. The dispensing device includes a PLC, an XYZ three-axis driving device and a dispensing mechanism. The PLC is connected to a display screen. The display screen has an input function or is connected to an input module. The dispensing mechanism is driven by the XYZ three-axis driving device to move along the XYZ three-axis as needed. The dispensing mechanism is equipped with a dispensing valve. The XYZ three-axis driving device includes an X-axis driving mechanism, a Y-axis driving mechanism and a Z-axis driving mechanism. The X-axis driving mechanism, the Y-axis driving mechanism, the Z-axis driving mechanism and the dispensing valve are connected to the PLC respectively. The method includes: designing a software module for a PLC dispensing path and loading it into the PLC; The software module of the PLC dispensing path includes a plurality of first submodules respectively serving as motion control modes for the dispensing mechanism. There are multiple motion control modes, including: single X-axis motion, single Y-axis motion, XY-axis interpolation, and single Z-axis motion. By programming the motion control mode, the motion starting point coordinates, motion target coordinates, and the motion speed of the currently set motion path of the dispensing mechanism between the motion starting point coordinates and the motion target coordinates under the current motion control mode are programmed as program parameters; The software module of the PLC dispensing path also includes a plurality of second submodules as dispensing control modes for the dispensing valve, respectively, and the second submodules represent the functions to be performed by the dispensing mechanism during the current motion path; there are multiple dispensing control modes, including: no dispensing, normal dispensing, early dispensing, and delayed dispensing; The software module of the PLC dispensing path also includes a plurality of third submodules as the dispensing valve closing control modes, respectively, and the third submodules represent the functions to be performed when the dispensing mechanism reaches the moving target coordinates; the dispensing valve closing control modes include normal closing, early closing, and delayed closing; The motion target coordinates of each sequential motion path are formed into a table in the form of points, and the table is displayed on the display screen, and the table shows: motion control mode, motion target coordinates, glue discharging control mode, and glue closing control mode; When the PLC starts running, the table is accessed to determine the motion control mode, the motion target coordinates, the glue dispensing control mode, and the glue closing control mode, and then the glue dispensing mechanism is controlled to dispense glue along the corresponding motion path.
2. A method for setting and controlling a dispensing path according to claim 1, characterized in that: By programming the glue discharging control mode, the delay time of the relevant glue discharging is used as a program parameter.
3. A method for setting and controlling a dispensing path according to claim 1, characterized in that: By programming the glue discharging control mode, the delay time of the relevant glue discharging is used as a program parameter.
4. A method for setting a dispensing path and controlling dispensing according to claim 1, characterized in that: A PLC program module is arranged in the PLC, and the PLC program module is connected to a human-machine exchange interface module.
5. A method for setting a dispensing path and controlling dispensing according to claim 1, characterized in that: The software module of the PLC dispensing path is pre-installed with models of various dispensing trajectories. When in use, the matching or similar model can be directly called out according to the required dispensing trajectory. A completely matching model can be directly called, and a similar model can directly modify part of the motion path on the table to derive a new model.
6. A method for setting a dispensing path and controlling dispensing according to claim 1, characterized in that: The user edits and defines the motion starting point coordinates, motion target coordinates, motion control mode, motion speed, glue discharge control mode, and glue closing control mode of each motion path on the table, and derives a new model. The PLC controls the XYZ three-axis dispensing equipment based on the new model to form the required dispensing trajectory.
7. A method for setting a dispensing path and controlling dispensing according to claim 6, characterized in that: New models are derived as needed and saved to the PLC to update the currently stored models.
8. A method for setting a dispensing path and controlling dispensing according to claim 1, characterized in that: The motion control mode also includes: path end and path skipping.
9. A method for setting a dispensing path and controlling dispensing according to claim 8, characterized in that: By setting the "skip this path" motion control mode, a non-continuous dispensing trajectory can be achieved.
10. A method for setting a dispensing path and controlling dispensing according to claim 1, characterized in that: The current coordinate values of the dispensing mechanism are edited and set on the table, including: X current coordinate value, Y current coordinate value, and Z current coordinate value, which serve as the motion starting point coordinates of the first segment of the motion path of the dispensing mechanism.
Citation Information
Cited By
Dispensing track direction adjusting method for multi-workpiece dispensing operation
CN120394302A
Gluing production line control method, electronic equipment and program product
CN121657612A
