Program automatic calling method and system

By setting the same LAN between the host and the slave, the host stores the dispensing program of each slave and edits the program on the host, the problem of file corruption or inconsistent versions during the dispensing program copying process is solved, and automated call and synchronous updates are realized, which improves production efficiency.

CN119719008APending Publication Date: 2025-03-28SHENZHEN AXXON AUTOMATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411912936.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-24
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

In the prior art, files are easily damaged or inconsistent in the copying process of the dispensing program, resulting in increased debugging time and reduced production efficiency.

Method used

By setting the same LAN between the host and the slave, the host stores the dispensing program of each slave and edits the program on the host to avoid corruption or inconsistent versions during file copying. At the same time, the system reference points are calculated by calculating the system reference points through the program reference points and the device reference points, and the light source and camera position are automatically adjusted to realize the synchronous update of the automatic test grabbing and dispensing program.

Benefits of technology

It effectively avoids the problems of corruption or inconsistent versions during file copying, reduces debugging time, improves production efficiency, and realizes automatic call and synchronous update of the dispensing program.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119719008A_ABST
    Figure CN119719008A_ABST
Patent Text Reader

Abstract

The invention discloses an automatic program calling method and an automatic program calling system. Respectively setting a program path, a program reference point and a light source adjustment parameter on the host according to the current slave equipment information; establishing an equipment reference point, a program reference point and the equipment reference point on the slave computer to calculate a system reference point, and automatically adjusting light source test grabbing through the system reference point; the system comprises a program path setting module, a program reference point setting module, a system reference point setting module, a light source adjusting module, a test grabbing module and a notification module. According to the method, the dispensing program of each slave is stored in the host, so that the problems that files are damaged in the copying process, or the dispensing program of the current equipment is difficult to find, or the versions of the dispensing programs are inconsistent are solved; the dispensing program on the host can be directly called by judging the system reference point through the program reference point and the equipment reference point of each slave, angle compensation is carried out, and the problem that debugging time is wasted due to the fact that the reference points are wrongly designated is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of glue dispensing, and in particular to a method and system for automatically retrieving a program. Background Art

[0002] As the integration of electronic products becomes higher and higher, products become smaller and smaller, and components become smaller and smaller, product programming becomes more and more complicated. The dispensing program of a product has increased from a few instructions to several white bars and thousands of instructions, which increases the programming time. The brightness of the light source of each device is also different, which causes some product reference points to fail to scan, resulting in the need to re-edit the program, wasting time. Moreover, dispensing equipment is an indispensable part of the current process, and there are too many types of products. Many customers currently have hundreds of dispensing machines. Every time the program is updated and the production line is changed, it is often copied with a U disk. Files are often damaged during the copying process, or it is difficult to find the current device dispensing program, or the dispensing program version is inconsistent, the reference point is incorrectly specified, or the camera parameters are inconsistent, which leads to a waste of debugging time, increased production costs, and affects production efficiency. Summary of the invention

[0003] In view of the shortcomings of the prior art, the present invention aims to provide a method and system for automatically calling a program to solve the problems raised in the above background technology. To achieve the above purpose, the present invention adopts the following technical solutions:

[0004] In a first aspect, the present invention discloses a method for automatically retrieving a program, comprising a host and at least one slave located in the same local area network, wherein the host stores a dispensing program of each of the slaves, and the method comprises the following steps: setting a program path, a program reference point, and a light source adjustment parameter on the host according to current slave device information, wherein the dispensing program is located in the program path;

[0005] Establish the device reference point of the current slave device on the slave;

[0006] Calculate a system reference point based on the program reference point and the device reference point;

[0007] Adjust the light source of the current slave device according to the light source adjustment parameter;

[0008] Moving the camera according to the system reference point to perform a test grab;

[0009] Determine whether the grab is successful, if yes, run the next step, otherwise adjust the light source of the current slave device according to the light source adjustment parameters, and retest the grab;

[0010] Download the dispensing program matching the current slave device from the host according to the program path and the dispensing program name;

[0011] The slave and the host exchange data based on the system reference point.

[0012] Optionally, the program reference point includes a first program reference point and a second program reference point, and the system reference point includes a first system reference point and a second system reference point.

[0013] Optionally, calculating the system reference point according to the program reference point and the device reference point includes: calculating a first system reference point according to the device reference point and a first program reference point, and calculating a second system reference point according to the device reference point and a second program reference point.

[0014] Optionally, the light source adjustment parameters include: a lower limit deviation value, an upper limit deviation value and an adjustment interval value.

[0015] Optionally, moving the camera according to the system reference point to perform test capture includes selecting a target area, selecting a reference point area within the target area, and identifying the system reference point within the reference point area.

[0016] In a second aspect, the present invention discloses a program automatic retrieval system, which is applied to the above-mentioned program automatic retrieval method, and includes: a program path setting module, which is used to set the program path, authority and dispensing program calling mode, and is suitable for dispensing program interaction between a host and a slave;

[0017] The program reference point setting module is used to set the program reference point information of the current dispensing program;

[0018] The system reference point setting module is used to store the system reference point information of the current dispensing program corresponding to the current slave device;

[0019] A light source adjustment module, used to set light source adjustment parameters, and adapted for the slave to automatically adjust the light source of the current slave device according to the light source adjustment parameters;

[0020] The test capture module is suitable for the slave to perform test capture according to the system reference point.

[0021] Optionally, the light source adjustment module includes: adjusting the light intensity of light sources of different colors separately, adjusting the light intensity of light sources of different colors simultaneously, and adjusting the light intensity of a combination of light sources of different colors.

[0022] Optionally, the test capture module includes:

[0023] Image display area, used to display the images acquired by the camera and to select the target area and reference point area;

[0024] The camera position area is used to display the current coordinates of the camera;

[0025] The camera control area is used to adjust the camera position at different speeds and directions.

[0026] Optionally, an offline import trajectory module is also included, which is used to offset the program reference point and compensate the offset value into the dispensing program.

[0027] Optionally, a notification module is also included, which is used to notify the slave machine that calls the dispensing program to update the dispensing program after detecting that the dispensing program has changed.

[0028] Compared with the prior art, the present invention has the following beneficial effects: by arranging the host and the slave in the same local area network, the dispensing program of each slave is stored in the host, and the dispensing program can only be edited on the host, thereby avoiding file damage during the copying process, or difficulty in finding the dispensing program of the current device, or inconsistent dispensing program versions; the dispensing program on the host can be directly called by judging the system reference point through the first reference point of the program, the second reference point of the program and the device reference point of each slave, and angle compensation can be performed, thereby avoiding the problem of wasting debugging time due to incorrect reference point specification each time; by adjusting the parameters of the light source, each slave can automatically adjust the light source test capture system reference point; and multiple automatic test captures can be performed through the judgment module, and when the dispensing program changes, the slave device can be synchronously updated when calling the dispensing program through the notification module. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 A schematic diagram of a method for automatically calling a program according to the present invention;

[0030] Figure 2 A schematic diagram of the hardware architecture of the program automatic calling system of the present invention;

[0031] Figure 3 It is a structural block diagram of the program automatic calling system of the present invention. DETAILED DESCRIPTION

[0032] To facilitate the understanding of the present invention, the present application is described in more detail below in conjunction with the accompanying drawings and specific embodiments; the accompanying drawings show preferred embodiments of the present application; however, the present application can be implemented in many different forms and is not limited to the embodiments described in this specification; on the contrary, the purpose of providing these embodiments is to make the understanding of the disclosed content of the present application more thorough and comprehensive.

[0033] It should be noted that, unless otherwise clearly stipulated and limited, the terms "set", "installed", "connected" and "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection; it can be directly connected or indirectly connected through an intermediate medium, or it can be internal communication between two elements; for ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances; the terms "vertical", "horizontal", "left", "right", "front", "rear" and similar expressions used in this specification are for illustrative purposes only.

[0034] At the same time, it should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence; it should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein.

[0035] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those commonly understood by technicians in the technical field to which this application belongs. The terms used in the specification of this application are only for the purpose of describing specific embodiments and are not used to limit this application.

[0036] First, as Figure 1-2 As shown, the present invention discloses a method for automatically retrieving a program, comprising a host and at least one slave located in the same local area network, a shared folder is set in the host, and the dispensing program of each slave is stored in the shared folder. Each slave has the authority to read the shared folder, but does not have the authority to write to the shared folder. The dispensing program of each slave can be edited on the host;

[0037] The program automatic retrieval method comprises the following steps: setting the program path, program reference point and light source adjustment parameters on the host according to the current slave device information, wherein the dispensing program is located in the program path, and the program path is the storage location of the shared folder on the host;

[0038] The device reference point of the current slave device is established on the slave device. Since the dispensing position baffles of each slave device are inconsistent, the device reference point of the current slave device is set on each slave device.

[0039] The system reference point is calculated according to the program reference point and the device reference point; the dispensing program on the host can be directly called by using the system reference point on each slave;

[0040] Adjust the light source of the current slave device according to the light source adjustment parameters; because the light sources of each slave device are different over time, the circuits and components age, which may lead to inconsistent light source brightness under the same parameters. When performing a dispensing program, the light source parameters follow the current slave device, so calling the current dispensing program to other devices may lead to inconsistent light source brightness, which will cause the program reference point capture to fail.

[0041] Moving the camera according to the system reference point to perform a test grab;

[0042] Determine whether the grab is successful, if yes, run the next step, otherwise adjust the light source of the current slave device according to the light source adjustment parameters, and retest the grab;

[0043] The slave downloads the dispensing program that matches the current slave device from the host according to the program path and dispensing program name;

[0044] The slave and the host exchange data based on the system reference point. The slave uploads the system reference point parameters to the host, and the host saves them as the system reference point of the current slave device. The system reference point is the actual dispensing position of the workpiece on the current slave device.

[0045] In one embodiment, the motion range of the dispensing machine is a plane coordinate system, the program reference points include the first program reference point, marked as (X1, Y1) and the second program reference point (X2, Y2) in the coordinate system, the device reference point uses the dispensing baffle as the X coordinate and the track as the Y coordinate, marked as (X3, Y3), and the system reference points include the first system reference point (X4, Y4) and the second system reference point (X5, Y5).

[0046] In one embodiment, calculating the system reference point based on the program reference point and the device reference point includes: calculating the system first reference point based on the device reference point and the program first reference point, that is, (X4, Y4) = (X3-X1, Y3-Y1), calculating the system second reference point based on the device reference point and the program second reference point, that is, (X5, Y5) = (X3-X2, Y3-Y2), when the product placement angle changes, the angle of rotation of the product can be known based on the two reference points, and the angle is converted into coordinates through trigonometric functions.

[0047] In one embodiment, the light source adjustment parameters include: a lower limit deviation value, an upper limit deviation value and an adjustment interval value.

[0048] When testing the capture, if the capture fails for the first time, the light source will be automatically adjusted according to the range of the lower limit deviation value, upper limit deviation value and adjustment interval value, and the capture will be performed again. For example, the lower limit deviation value is 50, the upper limit deviation value is 250, and the adjustment interval value is 50. That is, the capture is performed at 50, 100, 150, 200, and 250 brightness. During this period, as long as the system reference point is captured, the next adjustment will not be performed. If the capture fails after five attempts, the system will prompt that the capture failed.

[0049] In one embodiment, the camera is moved according to the system reference point to perform test grabbing, including selecting a target area in the picture taken by the camera, selecting a reference point area in the target area, and identifying whether the system reference point in the reference point area meets the test standards. If it meets the test standards, normal dispensing can be performed. If it does not meet the test standards, the light source of the current slave device is adjusted according to the light source adjustment parameters, and the grabbing is retested.

[0050] Second, as Figure 3 As shown, the present invention discloses a program automatic retrieval system, which is applied to the above-mentioned program automatic retrieval method, including: a program path setting module, which is used to set the path, authority and calling method of the shared folder, and is suitable for the dispensing program interaction between the host and the slave;

[0051] The program reference point setting module is used to set the program reference point information of the current dispensing program, but will not modify the coordinates in the dispensing program;

[0052] The system reference point setting module is used to store the system reference point information of the current dispensing program corresponding to the current slave device;

[0053] A light source adjustment module, used to set light source adjustment parameters, and adapted for the slave to automatically adjust the light source of the current slave device according to the light source adjustment parameters;

[0054] The test capture module is suitable for the slave to perform test capture according to the system reference point.

[0055] In one embodiment, the calling method includes: scanning-free calling and normal calling. Scanning-free calling means directly running the dispensing program without performing test capture.

[0056] In one embodiment, the light source adjustment module includes: adjusting the light intensity of light sources of different colors separately, adjusting the light intensity of light sources of different colors simultaneously, and adjusting the light intensity of a combination of light sources of different colors.

[0057] It can be understood that the light intensity of different colors of light sources such as R, G, and B light sources can be selected between 0-255, and adjusted according to the darkness of the picture captured by the center of the camera. 0 is the darkest and 255 is the brightest. The light intensity of each color light source can be adjusted individually, and the light sources of RG, RB and GB can be adjusted in pairs, or the intensity of the combination of R, G, B three light sources can be adjusted at the same time.

[0058] In one embodiment, the test capture module includes: a picture display area for displaying pictures acquired by the camera and for selecting a target area and a reference point area;

[0059] The camera position area is used to display the current coordinates of the camera;

[0060] The camera control area allows you to manually adjust the camera position at different speeds and directions based on the camera's current coordinates.

[0061] In one embodiment, an offline import trajectory module is also included, which is used to offset the program reference point and compensate the offset value into the dispensing program.

[0062] In one embodiment, a notification module is further included, which is used to notify a slave machine that calls the dispensing program to update the dispensing program after detecting that the dispensing program has changed.

[0063] In one embodiment, a judgment module is also included to judge whether the test capture is successful.

[0064] It should be noted that the above-mentioned technical features are further combined with each other to form various embodiments not listed above, which are all deemed to be within the scope of the present invention; and, for ordinary technicians in this field, they can be improved or transformed according to the above description, and all these improvements and transformations should fall within the scope of protection of the claims attached to the present invention.

Claims

1. A method for automatically calling a program, characterized in that: The method comprises a host and at least one slave located in the same local area network, wherein the host stores a dispensing program of each slave, and the method comprises the following steps: setting a program path, a program reference point and a light source adjustment parameter on the host according to current slave device information, wherein the dispensing program is located in the program path; Establish the device reference point of the current slave device on the slave; Calculate a system reference point based on the program reference point and the device reference point; Adjust the light source of the current slave device according to the light source adjustment parameter; Moving the camera according to the system reference point to perform a test grab; Determine whether the grab is successful, if yes, run the next step, otherwise adjust the light source of the current slave device according to the light source adjustment parameters, and retest the grab; Download the dispensing program matching the current slave device from the host according to the program path and the dispensing program name; The slave and the host exchange data based on the system reference point.

2. A method for automatically calling a program according to claim 1, characterized in that: The program reference points include a first program reference point and a second program reference point, and the system reference points include a first system reference point and a second system reference point.

3. A method for automatically calling a program according to claim 2, characterized in that: The calculating the system reference point according to the program reference point and the device reference point includes: calculating the system first reference point according to the device reference point and the program first reference point, and calculating the system second reference point according to the device reference point and the program second reference point.

4. A method for automatically calling a program according to claim 1, characterized in that: The light source adjustment parameters include: a lower limit deviation value, an upper limit deviation value and an adjustment interval value.

5. The method for automatically calling a program according to claim 1, characterized in that: The step of moving the camera according to the system reference point to perform test capture includes selecting a target area, selecting a reference point area within the target area, and identifying the system reference point within the reference point area.

6. A program automatic retrieval system, applied to the program automatic retrieval method according to any one of claims 1 to 5, characterized in that: include: The program path setting module is used to set the program path, permissions and dispensing program calling method, and is suitable for dispensing program interaction between the host and the slave; The program reference point setting module is used to set the program reference point information of the current dispensing program; The system reference point setting module is used to store the system reference point information of the current dispensing program corresponding to the current slave device; A light source adjustment module, used to set light source adjustment parameters, and adapted for the slave to automatically adjust the light source of the current slave device according to the light source adjustment parameters; The test capture module is suitable for the slave to perform test capture according to the system reference point.

7. The automatic program retrieval system according to claim 6, characterized in that: The light source adjustment module includes: adjusting the light intensity of light sources of different colors separately, adjusting the light intensity of light sources of different colors simultaneously, and adjusting the light intensity of a combination of light sources of different colors.

8. The program automatic retrieval system according to claim 6, characterized in that: The test capture module includes: Image display area, used to display the images acquired by the camera and to select the target area and reference point area; The camera position area is used to display the current coordinates of the camera; The camera control area is used to adjust the camera position at different speeds and directions.

9. The program automatic retrieval system according to claim 6, characterized in that: It also includes an offline import trajectory module, which is used to offset the program reference point and compensate the offset value into the dispensing program.

10. The program automatic retrieval system according to claim 6, characterized in that: It also includes a notification module, which is used to notify the slave machine that calls the dispensing program to update the dispensing program after detecting that the dispensing program has changed.