Method and device for controlling robot, computer device and readable storage medium
By lowering the torque limit in the control method of the robotic arm to enter a flexible working mode, and using the position feedback control of the motor servo axis to control the movement of the robotic arm, the deformation problem caused by the pulling of the robotic arm after it has grasped the object has been solved, thus realizing flexible grasping and movement.
Patent Information
- Application Number
- CN202410579268.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-11
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2044-05-11
AI Technical Summary
The problem of deformation of objects caused by the movement and pulling of objects after being picked up by a robotic arm.
By lowering the initial torque limit of the robotic arm to the preset torque limit, the robotic arm enters a flexible working mode. The movement of the robotic arm is controlled according to the real-time feedback position of the motor servo axis, so as to achieve flexible grasping and movement.
The rigidity of the robotic arm was reduced, preventing objects from deforming during movement and improving the accuracy and safety of grasping and moving.
Smart Images

Figure CN118372243B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of robotic arms, and more particularly to a control method, apparatus, computer equipment, and readable storage medium for a robotic arm. Background Technology
[0002] In the injection molding machine industry, traditional factories rely on intensive labor, manually removing finished parts from the injection mold, closing the safety door, and manually starting the next injection process. The mold closing process is very dangerous, and even a slight mistake can lead to a production accident.
[0003] With the continuous development of industrial automation technologies, such as robotics, injection molding machine robots have emerged. These typically include single-axis, dual-axis, three-axis, and five-axis robotic arms and corresponding controllers. Before producing new injection molded parts, factories only need to perform some simple teaching on the points for picking up the part inside the injection molding machine and the points for releasing the part outside the machine. Combined with the mold opening completion signal from the injection molding machine, a complete process of picking up the part inside the mold and releasing the part outside the machine can be completed, replacing traditional manual operation.
[0004] However, some objects, after injection molding, are moved and pulled by a robotic arm that holds them in place, which can cause deformation.
[0005] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention
[0006] The main objective of this application is to provide a control method, device, computer equipment, and readable storage medium for a robotic arm, aiming to solve the problem of deformation of objects caused by the robotic arm moving and pulling after it has attracted an object.
[0007] To achieve the above objectives, this application provides a control method, apparatus, computer device, and readable storage medium for a robotic arm.
[0008] A control method for a robotic arm, the robotic arm including a motor and a robotic arm, the motor driving the robotic arm to move when rotated, the control method including: When the picking valve at the end of the robotic arm is opened, the initial torque limit of the robotic arm is lowered to the preset torque limit so that the robotic arm enters the flexible working mode. According to the flexible working mode, the first real-time feedback position of the motor servo axis is obtained, and the motor is controlled to rotate according to the first real-time feedback position so that the first axis of the robotic arm moves along the first preset direction to perform suction. After the object is picked up, the second real-time feedback position of the motor servo axis is obtained. The motor is controlled to rotate according to the second real-time feedback position so that the first axis of the robotic arm moves in the second preset direction to pick up the object. The second preset direction is opposite to the first preset direction.
[0009] In one embodiment, the control method further includes: Once the object is retrieved, the current torque limit of the robotic arm is increased to the initial torque limit to control the robotic arm to exit the flexible working mode.
[0010] In one embodiment, the control method further includes: After the robotic arm exits the flexible working mode, the control of each axis of the robotic arm will place the corresponding object to the placement point to complete the placement, and close the picking valve at the end of the corresponding robotic arm.
[0011] In one embodiment, the control method further includes: After the object is placed, each axis of the robotic arm returns to the standby position for the next cycle.
[0012] In one embodiment, before the step of lowering the initial torque limit of the robotic arm to a preset torque limit to allow the robotic arm to enter a flexible working mode after the end-effector of the robotic arm opens, the method further includes: When the second axis of the robotic arm descends into the machine mold, the picking valve at the end of the robotic arm opens.
[0013] In one embodiment, the step of opening the end-effector of the robotic arm before the second axis of the robotic arm descends into the machine mold further includes: The mold opening completion signal has been obtained; The second axis of the robotic arm is lowered into the machine mold based on the signal indicating that the mold opening is complete.
[0014] In addition, a control device for a robotic arm is provided. The robotic arm includes a motor and a robotic arm. The motor is used to drive the robotic arm to move when it rotates. The control device includes: The mode switching unit is used to lower the initial torque limit of the robotic arm to the preset torque limit after the picking valve at the end of the robotic arm is opened, so that the robotic arm can enter the flexible working mode. The suction unit is used to obtain the first feedback position of the motor servo axis according to the flexible working mode, and control the motor to rotate according to the first feedback position so that the first axis of the robotic arm moves along the first preset direction to perform suction. The object-grabbing unit is used to obtain the second feedback position of the motor servo axis after the object is picked up, and control the motor to rotate according to the second feedback position so that the first axis of the robotic arm moves in a second preset direction to pick up the object. The second preset direction is opposite to the first preset direction.
[0015] In addition, a control system for a robotic arm is provided. The robotic arm includes a robotic arm, and the control system includes a central control unit, a servo drive control unit, and a servo motor. The servo drive control unit is used to drive and control the servo motor to rotate, and the servo motor is used to drive the robotic arm to move. The central control unit generates a signal to open the picking valve at the end of the robotic arm, and adjusts the initial torque limit of the robotic arm to a preset torque limit based on the signal to enable the robotic arm to enter a flexible working mode. The central control unit is used to obtain the feedback position of the motor servo axis and send it to the servo drive control unit; The servo drive control unit is used to drive the motor to rotate according to the feedback position of the motor servo axis, so as to drive the first axis of the robotic arm to pick up and pick up objects.
[0016] To achieve the above objectives, this application also provides a computer device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the control method for the robotic arm described above.
[0017] To achieve the above objectives, this application also provides a readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the control method for the robotic arm described above.
[0018] The aforementioned control method for the robotic arm includes a motor and a robotic arm. The motor drives the robotic arm to move during rotation. When the picking valve at the end of the robotic arm opens, the initial torque limit of the robotic arm is lowered to a preset torque limit to allow the robotic arm to enter a flexible working mode. Based on the flexible working mode, the first real-time feedback position of the motor servo axis is obtained. The motor is controlled to rotate based on the first real-time feedback position, causing the first axis of the robotic arm to move along a first preset direction to pick up the object. After picking up the object, the second real-time feedback position of the motor servo axis is obtained. The motor is controlled to rotate based on the second real-time feedback position, causing the first axis of the robotic arm to move along a second preset direction to pick up the object. When picking up an object, the second preset direction is opposite to the first preset direction. After the object-picking valve at the end of the robotic arm is opened and before the object is picked up, the initial torque limit of the robotic arm is lowered, which greatly reduces the initial torque value of the robotic arm and reduces the rigidity of the end of the robotic arm. This allows the robotic arm to enter a flexible working mode, that is, to directly obtain the feedback position of the motor servo axis (at this time, the robotic arm can be pushed by the ejector pin). The motor is controlled to rotate according to the feedback position of the motor servo axis to drive the movement of the robotic arm. This allows the robotic arm to achieve flexible grasping and movement during the process of picking up and picking up objects, which solves the problem of object deformation caused by the robotic arm moving and pulling after picking up the object. Attached Figure Description
[0019] Figure 1 A flowchart illustrating a first method for controlling a robotic arm according to an embodiment of this application; Figure 2 A flowchart illustrating a second robotic arm control method provided in an embodiment of this application; Figure 3 A flowchart illustrating a third robotic arm control method provided in an embodiment of this application; Figure 4 A flowchart illustrating a fourth robotic arm control method provided in an embodiment of this application; Figure 5 A flowchart illustrating a fifth robotic arm control method provided in an embodiment of this application; Figure 6 A flowchart illustrating a sixth robotic arm control method provided in an embodiment of this application; Figure 7 A flowchart illustrating a seventh robotic arm control method provided in an embodiment of this application; Figure 8 A schematic block diagram of a control device provided in an embodiment of this application; Figure 9 A schematic block diagram of a control system for a robotic arm provided in one embodiment of this application; Figure 10 This is a schematic block diagram of the internal structure of a computer device according to an embodiment of this application.
[0020] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0021] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0022] Furthermore, descriptions using terms such as "first" and "second" in this application are for descriptive purposes only (e.g., to distinguish identical or similar elements) and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, features defined with "first" or "second" may explicitly or implicitly include at least one of those features. Additionally, technical solutions from different embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. If a combination of technical solutions is contradictory or impossible to implement, such a combination should be considered nonexistent and not within the scope of protection claimed in this application.
[0023] like Figure 1 As shown, a control method for a robotic arm is provided. The robotic arm includes a motor and a robotic arm. The motor is used to drive the robotic arm to move when it rotates. The control method includes: Step S110: After the picking valve at the end of the robotic arm is opened, the initial torque limit of the robotic arm is lowered to the preset torque limit so that the robotic arm enters the flexible working mode.
[0024] Step S120: According to the flexible working mode, the first real-time feedback position of the motor servo axis is obtained, and the motor is controlled to rotate according to the first real-time feedback position so that the first axis of the robotic arm moves along the first preset direction to perform suction.
[0025] Step S130: After the object is sucked up, the second real-time feedback position of the motor servo axis is obtained, and the motor is controlled to rotate according to the second real-time feedback position so that the first axis of the robotic arm moves in the second preset direction to pick up the object. The second preset direction is opposite to the first preset direction.
[0026] Robotic arms typically have multiple axes, with the first axis of the aforementioned robotic arm usually being the X-axis.
[0027] In one embodiment, the preset torque limit is less than or equal to 100% of the motor's rated torque.
[0028] When the preset torque limit is less than or equal to 100% of the rated torque, the robotic arm can be pushed by a pin or external force.
[0029] Furthermore, in one embodiment, the preset torque limit is less than or equal to 50% of the rated torque.
[0030] Furthermore, in one embodiment, the preset torque limit is equal to 10% of the rated torque.
[0031] In one embodiment, the control system of the robotic arm includes a central control unit, a servo drive control unit, and a servo motor. In conventional control methods, after the end valve of the robotic arm is opened, the initial torque limit of the robotic arm is usually three times the rated torque. This three-times relationship is an inherent property of the motor itself. The end of the robotic arm has great rigidity. The central control unit is used to provide the target position to the servo drive control unit, which is used to receive the feedback position from the motor. Based on the difference between the feedback position and the target position, the servo drive control unit controls the motor to rotate so as to drive the first axis of the robotic arm to suck up and pick up objects. In conventional control methods, the control system is usually in position mode.
[0032] In this embodiment, by lowering the initial torque limit of the robotic arm to a preset torque limit, the robotic arm enters a flexible working mode. In this flexible working mode, the central control unit directly obtains the real-time feedback position of the motor servo axis as the corresponding target position, and no longer provides the target position to the servo drive control unit. That is, the motor is controlled to rotate according to the first real-time feedback position, so that the first axis of the robotic arm moves along the first preset direction to pick up the object. After the object is picked up, the central control unit directly obtains the second real-time feedback position of the motor servo axis as another target position, and controls the motor to rotate according to the second real-time feedback position, so that the first axis of the robotic arm moves along the second preset direction to pick up the object. The second preset direction is opposite to the first preset direction.
[0033] The aforementioned flexible working mode can also be called the "position torque mode". The robotic arm can be pushed by the pin or external force. The central control unit directly obtains the real-time feedback position of the motor servo axis as the corresponding target position and outputs it to the servo drive control unit. When the external force is removed, the robotic arm can stop smoothly and accurately at the current position.
[0034] In one embodiment, such as Figure 2 As shown, the above-mentioned control method of the robotic arm is applied to the injection molding machine 10. In this embodiment, the first axis of the robotic arm is the X-axis.
[0035] The aforementioned control method for the robotic arm, after the object-grabbing valve at the end of the robotic arm is opened but before object suction, lowers the initial torque limit of the robotic arm, significantly reducing the initial torque value and thus reducing the rigidity of the end of the robotic arm. This allows the robotic arm to enter a flexible working mode. At this time, by directly obtaining the feedback position of the motor servo axis (which the robotic arm can push through the ejector pin), the motor is controlled to rotate based on the feedback position of the motor servo axis to drive the movement of the robotic arm. This enables the robotic arm to achieve flexible grasping and movement during object suction and retrieval, solving the problem of object deformation caused by the robotic arm moving and pulling after gripping the object.
[0036] In one embodiment, such as Figure 3 As shown, the control method also includes: Step S140: After the object is picked up, the current torque limit of the robotic arm is increased to the initial torque limit to control the robotic arm to exit the flexible working mode.
[0037] After the suction and retrieval of objects are completed, the current torque limit of the robotic arm should be increased to the initial torque limit in order to control the robotic arm to exit the flexible working mode.
[0038] In particular, the movement and pulling of the robotic arm during suction and retrieval can easily cause deformation of objects. Before placing objects, the robotic arm can be controlled to exit the flexible working mode.
[0039] In one embodiment, such as Figure 4 As shown, the control method also includes: Step S150: After the robotic arm exits the flexible working mode, control each axis of the robotic arm to place the corresponding object to the placement point to complete the placement, and close the picking valve at the end of the corresponding robotic arm.
[0040] In one embodiment, such as Figure 5 As shown, the control method also includes: In step S160, after the object is placed, each axis of the robotic arm returns to the standby position for the next cycle.
[0041] In this embodiment, after the object is placed, each axis of the robotic arm returns to the standby position for the next cycle, which facilitates a rapid response in the control process of the next cycle.
[0042] In one embodiment, such as Figure 6 As shown, the procedure before step S110 also includes: In step S170, when the second axis of the robotic arm descends into the machine mold, the picking valve at the end of the robotic arm is opened.
[0043] In one embodiment, such as Figure 7 As shown, the procedure before step S170 also includes: Step S180: Obtain the mold opening completion signal.
[0044] In step S190, the second axis of the robotic arm is lowered into the machine mold according to the mold opening completion signal.
[0045] In addition, such as Figure 8 As shown, a control device 200 for a robotic arm is also provided. The robotic arm includes a motor and a robotic arm. The motor drives the robotic arm to move when it rotates. The control device 200 includes: The mode switching unit 210 is used to lower the initial torque limit of the robotic arm to a preset torque limit after the picking valve at the end of the robotic arm is opened, so that the robotic arm enters a flexible working mode. The suction unit 220 is used to obtain the first feedback position of the motor servo axis according to the flexible working mode, and control the motor to rotate according to the first feedback position so that the first axis of the robotic arm moves along the first preset direction to perform suction. The object-grabbing unit 230 is used to obtain the second feedback position of the motor servo axis after the object is picked up, and control the motor to rotate according to the second feedback position so that the first axis of the robotic arm moves in a second preset direction to pick up the object. The second preset direction is opposite to the first preset direction.
[0046] In addition, such as Figure 9 As shown, a control system 300 for a robotic arm is also provided. The robotic arm includes a robotic arm. The control system 300 includes a central control unit 310, a servo drive control unit 320, and a servo motor 330. The servo drive control unit 320 is used to drive and control the servo motor 330 to rotate. The servo motor 330 is used to drive the robotic arm to move. The central control unit 310 is used to generate a picking valve opening signal at the end of the robotic arm, and adjusts the initial torque limit of the robotic arm to a preset torque limit according to the picking valve opening signal, so that the robotic arm enters a flexible working mode. The central control unit 310 is used to obtain the feedback position of the motor servo axis and send it to the servo drive control unit 320; The servo drive control unit 320 is used to drive the servo motor 330 to rotate according to the feedback position of the motor servo axis, so as to drive the first axis of the robotic arm to perform suction and retrieval of objects.
[0047] Optionally, the control device 200 of the aforementioned robotic arm can be a virtual control device (such as a virtual machine) or a physical device (such as a physical device other than a computer device that can execute the corresponding method).
[0048] Furthermore, this application embodiment also provides a computer device, the internal structure of which can be as follows: Figure 10As shown. The computer device includes a processor, memory, communication interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database of the computer device stores data called by the computer programs. The communication interface of the computer device is used for data communication with external terminals. The input device of the computer device is used to receive signals input from external devices. When the computer program is executed by the processor, it implements a method as described in the above embodiment.
[0049] Those skilled in the art will understand that Figure 10 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer equipment on which the present application is applied.
[0050] Furthermore, this application also proposes a readable storage medium, which is a computer-readable storage medium including a computer program that, when executed by a processor, implements the steps of the method as described in the above embodiments. It is understood that the computer-readable storage medium in this embodiment can be a volatile readable storage medium or a non-volatile readable storage medium.
[0051] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media provided in this application and in the embodiments can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0052] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, apparatus, article, or method. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, apparatus, article, or method that includes that element.
[0053] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A control method for a robotic arm used for retrieving parts from within an injection molding machine, characterized in that, The robotic arm includes a motor and a robotic arm. The motor drives the robotic arm to move when it rotates. The control method includes: When the picking valve at the end of the robotic arm opens, the initial torque limit of the robotic arm is lowered to a preset torque limit to allow the robotic arm to enter a flexible working mode, at which point the robotic arm can be pushed by the ejector pin; the initial torque limit of the robotic arm is 3 times the rated torque; the preset torque limit is one of the following: 1) The preset torque limit is less than or equal to 100% of the motor's rated torque. 2) The preset torque limit is less than or equal to 50% of the motor's rated torque. 3) The preset torque limit is equal to 10% of the motor's rated torque; According to the flexible working mode, the first real-time feedback position of the motor servo axis is obtained, and the motor is controlled to rotate according to the first real-time feedback position so that the first axis of the robotic arm moves along the first preset direction to perform suction. After the object is sucked up, the second real-time feedback position of the motor servo axis is obtained, and the motor is controlled to rotate according to the second real-time feedback position so that the first axis of the robotic arm moves in a second preset direction to pick up the object. The second preset direction is opposite to the first preset direction. Once the object is retrieved, the current torque limit of the robotic arm is increased to the initial torque limit to control the robotic arm to exit the flexible working mode.
2. The control method for the robotic arm according to claim 1, characterized in that, Control methods also include: When the robotic arm exits the flexible working mode, it controls each axis of the robotic arm to place the corresponding object to the placement point to complete the placement, and closes the corresponding object retrieval valve at the end of the robotic arm.
3. The control method for the robotic arm according to claim 2, characterized in that, Control methods also include: After the object is placed, each axis of the robotic arm returns to the standby position for the next cycle.
4. The control method for the robotic arm according to claim 1, characterized in that, Before the step of lowering the initial torque limit of the robotic arm to a preset torque limit after the end-effector valve of the robotic arm is opened, so that the robotic arm enters the flexible working mode, the following steps are also included: When the second axis of the robotic arm descends into the machine mold, the picking valve at the end of the robotic arm is opened.
5. The control method for the robotic arm according to claim 4, characterized in that, Before the step of controlling the opening of the picking valve at the end of the robotic arm when the second axis of the robotic arm descends into the machine mold, the following steps are included: Obtain the mold opening completion signal; The second axis of the robotic arm is lowered into the machine mold according to the mold opening completion signal.
6. A control device for a robotic arm, used to execute the control method according to any one of claims 1-5, characterized in that, The robotic arm includes a motor and a robotic arm, the motor being used to drive the robotic arm to move when rotating, and the control device including: The mode switching unit is used to lower the initial torque limit of the robotic arm to a preset torque limit when the picking valve at the end of the robotic arm is opened, so that the robotic arm enters a flexible working mode. The suction unit is used to obtain the first real-time feedback position of the motor servo axis according to the flexible working mode, and control the motor to rotate according to the first real-time feedback position so that the first axis of the robotic arm moves along the first preset direction to perform suction. The object-grabbing unit is used to obtain the second real-time feedback position of the motor servo axis after the object is picked up, and control the motor to rotate according to the second real-time feedback position so that the first axis of the robotic arm moves in a second preset direction to pick up the object. The second preset direction is opposite to the first preset direction.
7. A control system for a robotic arm, used to execute the control method according to any one of claims 1-5, characterized in that, The robotic arm includes a robotic arm, and the control system includes a central control unit, a servo drive control unit, and a servo motor. The servo drive control unit is used to drive and control the servo motor to rotate, and the servo motor is used to drive the robotic arm to move. The central control unit is used to generate a picking valve opening signal at the end of the robotic arm, and adjust the initial torque limit of the robotic arm to a preset torque limit according to the picking valve opening signal, so that the robotic arm enters a flexible working mode. The central control unit is used to obtain the feedback position of the motor servo axis and send it to the servo drive control unit; The servo drive control unit is used to drive the motor to rotate according to the feedback position of the motor servo axis, so as to drive the first axis of the robotic arm to suck up and pick up objects.
8. A computer device, characterized in that, The computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When executed by the processor, the computer program implements the steps of the control method for the robotic arm as described in any one of claims 1 to 5.
9. A readable storage medium, characterized in that, A computer program is stored on a readable storage medium, which, when executed by a processor, implements the steps of the control method for the robotic arm as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Plastic product clamping method, device and equipment and medium
CN119550578A
