A robot teaching method, device, computer equipment and storage medium
By calling product type point variables from the preset point variable library, the problems of low teaching efficiency and error-prone industrial robots are solved, and a more efficient and accurate teaching process is achieved, avoiding the result of misoperation The robot runs abnormally.
Patent Information
- Application Number
- CN202211200328.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-29
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2042-09-29
AI Technical Summary
In the prior art, industrial robot teaching is inefficient, difficult and prone to errors. Especially in small appliance production sites, workers need to find corresponding point variables for teaching in lengthy programs, which can easily lead to misoperation and abnormal operation. .
The point variable of the type of product to be processed is called from the preset point variable library to identify the points where the robot's movement trajectory passes. The staff writes and adjusts the movement trajectory program based on the point variables to ensure the accuracy of teaching.
It improves the efficiency and accuracy of teaching, reduces the risk of abnormal operation caused by misoperation, and makes the determination of points more direct and simple, and makes the operation more convenient.
Smart Images

Figure CN115533925B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of robot application technology, and in particular to a robot teaching method, device, computer equipment and storage medium. Background Art
[0002] With the rapid development of the robotics field in recent years, industrial robots have become the main force in production lines such as loading and unloading, palletizing, spraying, welding, and assembly. Compared with manual labor, industrial robots have high precision, fast beats, strong repeatability, low error rate, and tirelessness, and can excellently complete many daily production tasks. Therefore, convenient human-machine interaction and fast programming teaching have become the focus of people's attention.
[0003] In some industrial scenarios, such as in the production site of small household appliances, the working industrial robots are generally controlled by teaching all the movements planned. Correspondingly, it is necessary to teach some position points along the motion trajectory. These position points are also called points. For different products, the specific points will change accordingly, and teaching is required according to the actual situation. However, the functions in the teach pendant are complicated, and the corresponding operating programs for different products are different. When teaching points, targeted selection is required. Now, it is generally to find the corresponding point variables directly in the trajectory running program to teach specific points. However, faced with lengthy programs, workers with low professional and technical levels often need to spend a lot of time looking for the corresponding point variables. If the point variables are selected incorrectly and do not correspond to the actual point data, teaching will cause the motion trajectory program to be modified, which will cause the industrial robot to operate abnormally and fail to meet the requirements of normal production.
[0004] Therefore, the method of manually searching for point variables from the trajectory running program in the program for point teaching in the prior art has the problems of low efficiency, great difficulty and easy error. Summary of the invention
[0005] In order to overcome the problems in the prior art of low efficiency, great difficulty and easy error in manually searching for point variables from the trajectory running program in the program for point teaching, the present invention provides a robot teaching method, device, computer equipment and storage medium to improve this.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0007] A robot teaching method comprises the following steps:
[0008] Receive robot motion trajectory programming request;
[0009] According to the robot motion trajectory programming request, the point variables of the type of product to be processed are called from the preset point variable library, so that the staff can write the robot motion trajectory program according to the point variables, and the point variables are used to identify the points that the robot motion trajectory passes through when the product is processed;
[0010] When teaching, the point variables corresponding to the type of product to be processed in the point variable library are called according to the robot motion trajectory program, so that the staff can teach according to the point variables and obtain the point data corresponding to the point variables;
[0011] The point data is updated into the robot motion trajectory program to form a complete robot motion trajectory program to complete the teaching.
[0012] Preferably, before calling the point variables of the type of product to be processed from the preset point variable library according to the robot motion trajectory programming request, the method further includes:
[0013] Create a point variable library;
[0014] Dividing the point variable library into different point variable areas, wherein the different point variable areas correspond to different product types;
[0015] A plurality of point variables are constructed in the point variable area, and the point variables correspond to the product types.
[0016] Preferably, the point variables at least include a material picking point point variable, a waiting point point variable and a material discharging point point variable, and each of the point variables is provided with a corresponding point identification mark.
[0017] Preferably, the order of the point variables is arranged in sequence according to the route of the robot's motion trajectory.
[0018] Preferably, the step of updating the point data into the robot motion trajectory program to form a complete robot motion trajectory program further includes:
[0019] Calculate the distance between the point data corresponding to two adjacent point variables to obtain the point distance;
[0020] If the distance between the points is within a preset threshold range, it is considered that the data of the two adjacent points are normal;
[0021] If the point distance is not within the preset threshold range, it is considered that the data of the two adjacent points are abnormal, and a reminder is issued to check the data of the two adjacent points.
[0022] Preferably, the step of constructing a plurality of point variables in the point variable area, wherein the point variables correspond to the product types, further includes:
[0023] A preset threshold range of the point distance between two adjacent point variables is set.
[0024] Preferably, before calling the point variables of the type of product to be processed from a preset point variable library according to the robot motion trajectory programming request, the method further includes:
[0025] The type of product to be processed is determined according to the robot motion trajectory programming request.
[0026] The present invention also provides a robot teaching device, comprising:
[0027] A request receiving unit, used for receiving a robot motion trajectory programming request;
[0028] A first variable calling unit is used to call the point variables of the type of product to be processed from a preset point variable library according to the robot motion trajectory programming request, so that the staff can write the robot motion trajectory program according to the point variables, and the point variables are used to identify the points that the robot motion trajectory passes through when processing the product;
[0029] A second variable calling unit is used to call the point variable corresponding to the type of product to be processed in the point variable library according to the robot motion trajectory program when teaching, so that the staff can teach according to the point variable to obtain point data corresponding to the point variable;
[0030] The variable updating unit is used to update the point data into the robot motion trajectory program to form a complete robot motion trajectory program and complete the teaching.
[0031] The present invention also provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the robot teaching method of the present invention when executing the computer program.
[0032] The present invention also provides a computer storage medium, wherein the computer storage medium stores a computer program, and when the computer program is executed by a processor, the robot teaching method of the present invention is implemented.
[0033] The present invention provides a robot teaching method, device, computer equipment and storage medium, which call point variables of the product type to be processed from a preset point variable library, and the point variables are used to identify the points passed by the robot's motion trajectory when the product is processed; the robot motion trajectory program is written according to the point variables; when teaching, the point variables corresponding to the product type in the point variable library are selected according to the robot motion trajectory program, so as to teach according to the point variables, obtain point data corresponding to the point variables, and update the point data to the robot motion trajectory program to complete the teaching, and only need to find the point variables corresponding to the product type in the point variable library for teaching, the determination of the point is more direct, the operation is simpler, the teaching accuracy is high, and the motion trajectory program will not be modified, there is no need to worry about abnormal operation of the industrial robot due to teaching errors, and the teaching efficiency and accuracy are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 A schematic diagram of an application environment of the robot teaching method provided in Embodiment 1 of the present invention;
[0035] Figure 2 This is an overall flow chart of the robot teaching method provided in Embodiment 1 of the present invention;
[0036] Figure 3 A schematic diagram of a process for creating a preset point variable library in the robot teaching method provided in the first embodiment of the present invention;
[0037] Figure 4 A schematic diagram of a flow chart of point data judgment in a robot teaching method provided in Embodiment 1 of the present invention;
[0038] Figure 5 This is a structural block diagram of a robot teaching device provided in Embodiment 2 of the present invention. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and implementation examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0040] Figure 1 The application environment diagram of the robot teaching method provided by the embodiment of the present invention is as follows: Figure 1 As shown, in this application environment, a terminal 110 and a robot 120 are included.
[0041] The terminal 110 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto. The terminal 110 and the robot 120 may be connected via a network, and the present invention does not limit this.
[0042] The robot 120 may be an industrial robot or a civilian robot. An industrial robot is mainly used as an example for illustration. The specific model and type may be selected and set according to actual needs and are not strictly limited here.
[0043] It should be noted that the robot teaching method provided in the embodiment of the present invention may be executed by the terminal 110 , and accordingly, the robot teaching device is disposed in the terminal 110 .
[0044] It should be noted that the robot teaching method provided in the embodiment of the present invention can also be executed by a server, and accordingly, the robot teaching device is arranged in the server.
[0045] It should be understood that Figure 1 The number of terminals, teaching pendants, robots, and described networks and servers are merely illustrative. Depending on the implementation requirements, there may be any number of terminals, computer devices, networks, and servers. The terminal devices in the embodiments of the present invention may specifically correspond to application systems in actual production.
[0046] Embodiment 1
[0047] like Figure 2 As shown, in one embodiment, a robot teaching method is proposed. This embodiment mainly applies this method to the above Figure 1 A robot teaching method may include the following steps:
[0048] Step S210, receiving a robot motion trajectory programming request.
[0049] Step S220, according to the robot motion trajectory programming request, call the point variables of the product type to be processed from the preset point variable library, so that the staff can write the robot motion trajectory program according to the point variables. The point variables are used to identify the points passed by the robot motion trajectory when processing the product.
[0050] It can be understood that in this embodiment, the robot motion trajectory program is mainly used to control the movement of the robot processing product. Generally speaking, a project file can be created first when programming the robot, and an initialization program and a production program corresponding to each product can be created under the project file, that is, the corresponding robot motion trajectory program. The programming of the robot motion trajectory program belongs to conventional programming knowledge and will not be further described here. After the robot motion trajectory program corresponding to each product is created, the corresponding point variables can be set in the program according to the motion trajectory requirements, and the robot motion trajectory program can be matched with the product point variables, so that the program can be taught and adjusted directly by calling the point variables in the subsequent process.
[0051] It is understandable that the staff writes the robot motion trajectory program based on the point variable mainly in combination with the product type. For example, after calling the point variable corresponding to a certain product, the point variable is written into the program as the point parameter of the moving trajectory when the robot processes this type of product. This point variable can be a parameter at this time, which is convenient for determining the final point data during subsequent teaching. Different robots have different programming rules for writing robot motion trajectory programs. As long as the point variable is written as the parameter of the point passed by the trajectory, it will not be further described here.
[0052] It can be understood that in this embodiment, the point mainly refers to some position points that the robot motion trajectory passes through. Multiple points can be set on the robot motion trajectory according to actual needs. When teaching, the points are taught in sequence according to the point limit. Further, the point variable is used to identify the point position information passed by the robot motion trajectory. It can be a specific coordinate value corresponding to the robot motion trajectory point left by the last teaching, or it can be parameterized data, which is only used as a placeholder for unknown point data in the program. For example, for a certain product 1, the robot motion trajectory during its processing must pass through the material collection point. The coordinate data of this point is represented in the form of a variable, such as the coordinate parameter (x1, y1, z1), that is, the material collection point vector of product 1 is (x1, y1, z1). It can be understood that the point vector can be expressed in different forms according to the different reference coordinate systems of different robots. Its main function is to mark the placeholders in the robot trajectory program and record the points contained in the robot trajectory. After further teaching, the point data (such as coordinate values) of the corresponding point variables finally determined will be updated to the robot motion trajectory program. It is described here only as an example embodiment.
[0053] It can be understood that in this embodiment, the type of product to be processed mainly refers to setting different point variables for different products, because different product types have different trajectories due to different specifications and sizes when being processed, so different robot trajectories need to be set for different product types, and different point variables are set accordingly according to different product types. For example, if there are product 1, product 2, and product 3, then point variables are set for product 1, product 2, and product 3 respectively and stored in the preset point variable library.
[0054] Further, such as Figure 3 As shown, it is a schematic diagram of the process of creating a preset point variable library in this embodiment. In this embodiment, before step S220 calls the point variable of the type of product to be processed from the preset point variable library according to the robot motion trajectory programming request, the following steps are also included:
[0055] Step S310, creating a point variable library.
[0056] It can be understood that the point variable library can be constructed in the form of a conventional database.
[0057] Step S320, dividing the point variable library into different point variable areas, where different point variable areas correspond to different product types.
[0058] It can be understood that in this embodiment, the point variable library area is mainly divided according to different products. Specifically, it can also be in the form of setting different data packets in the point variable library. The main purpose is to divide and distinguish the point variables between different product types to avoid confusion when calling. No further description is given here.
[0059] Step S330, constructing a number of point variables in the point variable area, where the point variables correspond to the product types.
[0060] It can be understood that, combined with the above explanation of point variables, the number of point variables can be set according to the complexity of the robot's motion trajectory, and no further description will be given here.
[0061] In this embodiment, the point variables at least include a material taking point point variable, a waiting point point variable and a material discharging point point variable, and each of the point variables is provided with a corresponding point identification mark.
[0062] It can be understood that the present embodiment mainly takes the main points in the product processing process as examples of preferred embodiments, and those skilled in the art can also choose to set different points according to actual needs; in addition, the point identification mark is mainly used to identify different point vectors. For example, for the point variable of product 1, the point identification mark can be a "material picking point", "waiting point", "material discharge point", etc. More specific forms are not further described here.
[0063] Furthermore, in this embodiment, the order of the point variables is arranged in sequence according to the route of the robot's motion trajectory. For example, the three points of the "material picking point", "waiting point" and "material discharge point" of the product 1 mentioned above, because the robot's motion trajectory route is to pick up materials first when processing product 1, then wait at the waiting position, and then discharge materials after allowing discharge, then the arrangement order of the point vector of product 1 in the point vector library is 1-material picking point, 2-waiting point, 3-material discharge point. By arranging the point vectors in sequence according to the robot's motion trajectory, it can be called in an orderly manner, and it is convenient to intuitively and clearly understand the current teaching progress during teaching, and it is also convenient to make continuous judgments of the previous and next points to avoid skipping points.
[0064] Step S230, when teaching, the point variables corresponding to the type of product to be processed in the point variable library are called according to the robot motion trajectory program, so that the staff can teach according to the point variables and obtain the point data of the corresponding point variables.
[0065] Step S240, updating the point data into the robot motion trajectory program to form a complete robot motion trajectory program and complete the teaching.
[0066] It can be understood that the point variables are just parameters or inaccurate data in the robot motion trajectory program at the beginning, and the specific accurate point data, such as coordinate points, have not been fully confirmed. During the teaching process, the point data of the corresponding point variables, that is, the specific coordinate data, are confirmed through teaching actions. The point data can then be updated to the robot motion trajectory program, so that the motion trajectory has complete point data, forming a complete program after teaching, which can be executed in production.
[0067] It can be understood that the teaching process is mainly carried out manually, and the point data obtained is automatically received, stored and recorded by the terminal 110 device after the teaching and the point data is updated to the robot motion trajectory program.
[0068] Furthermore, in this embodiment, if Figure 4As shown, it is a schematic diagram of the process of performing point data judgment in this embodiment. In step S240, the point data is updated to the robot motion trajectory program to form a complete robot motion trajectory program, which also includes:
[0069] Step S410, calculating the distance between the point data corresponding to two adjacent point variables to obtain the point distance;
[0070] Step S420, if the point distance is within the preset threshold range, it is considered that the data of the two adjacent points are normal;
[0071] Step S430: If the point distance is not within the preset threshold range, it is considered that the data of the two adjacent points are abnormal, and a reminder is issued to check the data of the two adjacent points.
[0072] It can be understood that in this embodiment, the point distance is set to verify whether the point data corresponding to two adjacent point variables are correct. This is mainly due to the consideration that human or objective reasons may occur during the teaching process, resulting in missed teaching points or incorrect point correspondence relationships. For example, the waiting point of the aforementioned product 1, if the material placement variable is selected by mistake during the teaching process, but the teaching is carried out according to the waiting point, then the point data obtained by teaching will not match, resulting in a teaching error. By calculating the distance relationship between the point data corresponding to two adjacent point vectors, it will be found that the distance mismatch problem occurs. For example, the distance range of the point variable between the waiting point and the previous point (material picking point) should actually be 8 to 8.1 cm, but after teaching, it is found that the distance is 9.2 cm. It can be judged that at least one of the two adjacent point variables must be wrong, and an alarm reminder is issued to check the point data corresponding to the point variable in time, and the point data of the two point vectors are re-taught when necessary.
[0073] Furthermore, in this embodiment, in step S330, a plurality of point variables are constructed in the point variable area, and the point variables correspond to the product types, and further include:
[0074] A preset threshold range of the point distance between two adjacent point variables is set.
[0075] It can be understood that the preset threshold range of the point distance between two adjacent point variables can be that after selecting points on the actual robot motion trajectory, the distance between the two adjacent points can be calculated by linear distance, and the distance value can be obtained, and then the distance value can be reasonably expanded to form a threshold range. In the case of the threshold range, the point data of the two adjacent point variables after teaching is considered to be within the correct range and can be used; otherwise, it cannot be used. For example, the distance range of the point variable between the waiting point of the previous product 1 and the previous point (material collection point) should be 8 to 8.1 cm.
[0076] Furthermore, in this embodiment, before step S220 calls the point variable of the type of product to be processed from the preset point variable library according to the robot motion trajectory programming request, it also includes:
[0077] The type of product to be processed is determined according to the robot motion trajectory programming request.
[0078] It can be understood that in general, the robot motion trajectory programming request carries information requesting programming for a specific product type. For example, when programming the aforementioned product 1, it will be indicated in the request that the robot motion trajectory programming for the processing of product 1 is required, so that the type of product to be processed can be determined based on the product type information included in the request. Of course, there are some common methods in this field, such as inputting the type of product to be processed, and directly determining the type of product to be processed through the input type information of the product to be processed (such as code, name, etc.), etc. More conventional means will not be further described here.
[0079] In fact, in this embodiment, the point vector of the corresponding product is written into the program when the robot motion trajectory program is compiled, so that the point vector is associated with the robot motion trajectory program. When the view is passed, the corresponding point vector can be directly called for teaching. There is no need to manually search for points that can be used as teaching points from the robot motion trajectory program, which greatly improves the accuracy and efficiency of teaching.
[0080] A robot teaching method provided by the present invention calls point variables of a product type to be processed from a preset point variable library, wherein the point variables are used to identify points that a robot motion trajectory passes through when processing the product; a robot motion trajectory program is written according to the point variables; when teaching, the point variables corresponding to the product type in the point variable library are selected according to the robot motion trajectory program, so as to perform teaching according to the point variables, obtain point data corresponding to the point variables, and update the point data to the robot motion trajectory program to complete the teaching, and only the point variables corresponding to the product type need to be found in the point variable library for teaching, so that the determination of the points is more direct, the operation is simpler, the teaching accuracy is high, and the motion trajectory program will not be modified, so there is no need to worry about abnormal operation of the industrial robot due to teaching errors, thereby improving the teaching efficiency and accuracy.
[0081] Embodiment 2
[0082] like Figure 5 As shown, in one embodiment, a robot teaching device is proposed. This embodiment mainly applies the device to the above Figure 1 A robot teaching device includes:
[0083] A request receiving unit 510 is used to receive a robot motion trajectory programming request;
[0084] The first variable calling unit 520 is used to call the point variables of the type of product to be processed from the preset point variable library according to the robot motion trajectory programming request, so that the staff can write the robot motion trajectory program according to the point variables, and the point variables are used to identify the points that the robot motion trajectory passes through when the product is processed;
[0085] The second variable calling unit 530 is used to call the point variables corresponding to the type of product to be processed in the point variable library according to the robot motion trajectory program when teaching, so that the staff can teach according to the point variables and obtain the point data of the corresponding point variables;
[0086] The variable updating unit 540 is used to update the point data into the robot motion trajectory program to form a complete robot motion trajectory program and complete the teaching.
[0087] Furthermore, the robot teaching device also includes a point variable library creation unit, and the point variable library creation unit includes:
[0088] The library creation subunit is used to create a point variable library.
[0089] The area division subunit is used to divide the point variable library into different point variable areas. Different point variable areas correspond to different product types.
[0090] The point variable creation subunit is used to construct a plurality of point variables in the point variable area, and the point variables correspond to the product types.
[0091] In this embodiment, the point variables at least include a material taking point point variable, a waiting point point variable and a material discharging point point variable, and each of the point variables is provided with a corresponding point identification mark.
[0092] Furthermore, in this embodiment, the order of the point variables is arranged in sequence according to the route of the robot's motion trajectory.
[0093] Furthermore, in this embodiment, the second variable calling unit 530 includes:
[0094] The distance calculation subunit is used to calculate the distance between the point data corresponding to two adjacent point variables to obtain the point distance;
[0095] The distance judgment subunit is used to consider that the data of the two corresponding adjacent points are normal if the point distance is within the preset threshold range; if the point distance is not within the preset threshold range, the data of the two corresponding adjacent points are abnormal, and a reminder is issued to check the data of the two adjacent points.
[0096] Furthermore, in this embodiment, the point variable library creation unit also includes:
[0097] The threshold setting subunit is used to set a preset threshold range of the point distance between two adjacent point variables.
[0098] Furthermore, in this embodiment, the first variable calling unit 520 also includes a unit for determining the type of product to be processed according to the robot motion trajectory programming request.
[0099] It can be understood that the technical content described in the robot teaching device in this embodiment can be understood and implemented with reference to the description in the aforementioned embodiment 1, and will not be further repeated here.
[0100] It can be understood that the robot teaching device provided in this embodiment is a software and hardware combination device specifically used to implement the robot teaching method in Embodiment 1. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules. The repeated technical concepts in this embodiment can be understood and implemented with reference to Embodiment 1, and will not be further described here.
[0101] A robot teaching device provided by the present invention receives a robot motion trajectory programming request through a request receiving unit 510; calls point variables of the type of product to be processed from a preset point variable library through a first variable calling unit 520 according to the robot motion trajectory programming request, so that a staff can write a robot motion trajectory program according to the point variables, and the point variables are used to identify the points passed by the robot motion trajectory when the product is processed; when teaching, the second variable calling unit 530 calls the point variables corresponding to the type of product to be processed in the point variable library according to the robot motion trajectory program, so that the staff can teach according to the point variables and obtain point data of the corresponding point variables; the variable updating unit 540 updates the point data to the robot motion trajectory program to form a complete robot motion trajectory program to complete the teaching, and only needs to find the point variables of the corresponding product type in the point variable library for teaching, the point determination is more direct, the operation is simpler, the teaching accuracy is high, and the motion trajectory program will not be modified, there is no need to worry about abnormal operation of the industrial robot due to teaching errors, and the teaching efficiency and accuracy are improved.
[0102] Embodiment 3
[0103] In one embodiment, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are performed:
[0104] Receive robot motion trajectory programming request;
[0105] According to the robot motion trajectory programming request, the point variables of the product type to be processed are called from the preset point variable library, so that the staff can write the robot motion trajectory program according to the point variables. The point variables are used to identify the points that the robot motion trajectory passes through when processing the product;
[0106] When teaching, the point variables corresponding to the type of product to be processed in the point variable library are called according to the robot motion trajectory program, so that the staff can teach according to the point variables and obtain the point data of the corresponding point variables;
[0107] Update the point data to the robot motion trajectory program to form a complete robot motion trajectory program and complete the teaching.
[0108] Embodiment 4
[0109] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the processor performs the following steps:
[0110] Receive robot motion trajectory programming request;
[0111] According to the robot motion trajectory programming request, the point variables of the product type to be processed are called from the preset point variable library, so that the staff can write the robot motion trajectory program according to the point variables. The point variables are used to identify the points that the robot motion trajectory passes through when processing the product;
[0112] When teaching, the point variables corresponding to the type of product to be processed in the point variable library are called according to the robot motion trajectory program, so that the staff can teach according to the point variables and obtain the point data of the corresponding point variables;
[0113] Update the point data to the robot motion trajectory program to form a complete robot motion trajectory program and complete the teaching.
[0114] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.
[0115] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM) and memory bus dynamic RAM (RDRAM).
[0116] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0117] The above embodiments only express several implementation methods of the present invention, but they cannot be understood as limiting the scope of the patent of the present invention. For those skilled in the art, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A robot teaching method, characterized in that: The steps include: Receive robot motion trajectory programming request; According to the robot motion trajectory programming request, the point variables of the type of product to be processed are called from the preset point variable library, so that the staff can write the robot motion trajectory program according to the point variables, and the point variables are used to identify the points that the robot motion trajectory passes through when the product is processed; When teaching, the point variables corresponding to the type of product to be processed in the point variable library are called according to the robot motion trajectory program, so that the staff can teach according to the point variables and obtain the point data corresponding to the point variables; Updating the point data into the robot motion trajectory program to form a complete robot motion trajectory program and complete the teaching; Before calling the point variables of the type of product to be processed from the preset point variable library according to the robot motion trajectory programming request, it also includes: Create a point variable library; Dividing the point variable library into different point variable areas, wherein the different point variable areas correspond to different product types; A plurality of point variables are constructed in the point variable area, and the point variables correspond to the product types.
2. The robot teaching method as claimed in claim 1, characterized in that: The point variables at least include a material taking point point variable, a waiting point point variable and a material discharging point point variable, and each of the point variables is provided with a corresponding point identification mark.
3. The robot teaching method as claimed in claim 1, characterized in that: The order of the point variables is arranged in sequence according to the route of the robot's motion trajectory.
4. The robot teaching method as claimed in claim 3, characterized in that: The updating of the point data into the robot motion trajectory program to form a complete robot motion trajectory program also includes: Calculate the distance between the point data corresponding to two adjacent point variables to obtain the point distance; If the distance between the points is within a preset threshold range, it is considered that the data of the two adjacent points are normal; If the point distance is not within the preset threshold range, it is considered that the data of the two adjacent points are abnormal, and a reminder is issued to check the data of the two adjacent points.
5. The robot teaching method as claimed in claim 4, characterized in that: The step of constructing a plurality of point variables in the point variable area, wherein the point variables correspond to the product types, further includes: A preset threshold range of the point distance between two adjacent point variables is set.
6. The robot teaching method as claimed in claim 1, characterized in that: Before calling the point variables of the type of product to be processed from the preset point variable library according to the robot motion trajectory programming request, it also includes: The type of product to be processed is determined according to the robot motion trajectory programming request.
7. A robot teaching device, characterized in that: include: A request receiving unit, used for receiving a robot motion trajectory programming request; A first variable calling unit is used to call the point variables of the type of product to be processed from a preset point variable library according to the robot motion trajectory programming request, so that the staff can write the robot motion trajectory program according to the point variables, and the point variables are used to identify the points that the robot motion trajectory passes through when processing the product; A second variable calling unit is used to call the point variable corresponding to the type of product to be processed in the point variable library according to the robot motion trajectory program when teaching, so that the staff can teach according to the point variable to obtain point data corresponding to the point variable; A variable updating unit, used for updating the point data into the robot motion trajectory program to form a complete robot motion trajectory program and complete teaching; The robot teaching device further includes a point variable library creation unit, and the point variable library creation unit includes: The library creation subunit is used to create a point variable library; The area division subunit is used to divide the point variable library into different point variable areas. Different point variable areas correspond to different product types. The point variable creation subunit is used to construct a plurality of point variables in the point variable area, and the point variables correspond to the product types.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the robot teaching method according to any one of claims 1 to 6 are implemented.
9. A computer storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the robot teaching method according to any one of claims 1 to 6 is implemented.
