Wiring detection method and device of industrial robot

By detecting the position deviation and threshold comparison between the motor brake lines and encoder lines, the wiring abnormality detection problem in industrial six-axis robot systems is solved, and the accuracy and safety of robot connections are improved.

CN119087304APending Publication Date: 2024-12-06GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411280109.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-12
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

In industrial six-axis robot systems, inaccurate connection between the motor brake lines and the encoder lines may cause the robot to lose its arm or lose control. The prior art cannot effectively detect whether the brake lines are cross-connected, which poses safety hazards.

Method used

By obtaining the motor signal detection command of the shaft to be detected and the brake normal opening threshold, sending the brake command and obtaining the current position value, comparing the difference between the position deviation and the initial position value, if the difference exceeds the threshold, it is judged that the wiring is normal, otherwise an alarm message will be generated and prompted The wiring is abnormal.

Benefits of technology

Accurate detection of the brake lines of industrial robot motors and the wiring of encoder and servo drives is realized, which improves detection safety and avoids the risk of robot damage caused by insufficient operator response speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119087304A_ABST
    Figure CN119087304A_ABST
Patent Text Reader

Abstract

The invention discloses a wiring detection method and device for an industrial robot. The method comprises the steps that a motor signal detection instruction of a to-be-detected shaft of the industrial robot and a brake normal opening threshold value are obtained; when the motor signal detection identification position is a first preset value, a brake instruction is sent to the to-be-detected shaft; acquiring a current position value generated by the to-be-detected shaft under the braking instruction; when the position deviation between the current position value and the initial position value exceeds a brake normal opening threshold value, determining that the motor brake cable of the to-be-detected shaft and the wiring between the encoder of the to-be-detected shaft and the servo driver are not abnormal; otherwise, determining that the wiring is abnormal, and generating alarm information. The technical problems that in the scene of determining the connection accuracy of the motor brake cable, the encoder and the servo driver interface, the response speed of an operator is insufficient, the brake closing instruction cannot be sent out in time, the risk of robot damage is caused, and potential safety hazards exist in the industrial robot in the related technology are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automatic control technology, and in particular to a wiring detection method and device for an industrial robot. Background Art

[0002] In the current industrial six-axis robot control system, permanent magnet synchronous motors equipped with brakes are generally used as servo motors. In this system, when the servo drive receives the enable signal from the motion controller, it will send an instruction to open the brake to the brake circuit, thereby prompting the servo motor to start running. However, during the entire operation process, if the motor encoding line and brake line of each axis are not accurately connected to the interface preset by the servo drive (for example, the brake lines of axis 2 and axis 3 are incorrectly interchanged), it may cause the robot to "drop the arm" or "lose control" in serious situations, which will not only damage the robot equipment, but also may cause unpredictable safety accidents. Therefore, when the servo drive is matched with the industrial six-axis robot for the first time, it is particularly critical and important to verify whether the encoding lines and brake lines of the six motors are accurately connected to the corresponding interfaces of the servo drive.

[0003] A servo driver with motor brake monitoring and a brake abnormality detection method thereof are proposed in the prior art. The servo driver is provided with a motor brake control circuit, a motor brake detection circuit, and a motor brake alarm output circuit. The servo driver is provided with a motor and an external brake auxiliary circuit. The motor brake control circuit is connected to the motor brake detection circuit and the external brake auxiliary circuit respectively, the motor brake detection circuit is connected to the motor brake alarm output circuit, and the external brake auxiliary circuit is connected to the motor. The servo driver provided by the invention enables the user to know whether the motor brake is abnormal in time, but can only determine whether the motor brake line is connected to the driver, and cannot determine whether there is a cross connection error.

[0004] In addition, a motor brake state detection method based on closed-loop control is also proposed in the prior art. First, the motor speed under the stop command is obtained; when the motor speed under the stop command is 0, the servo drive is switched to the speed mode, and a speed command of 0 is generated, and the servo drive is controlled to send a brake command to the motor brake, and the first position of the motor is obtained; the integral output of the speed loop "proportional-integral" controller is cleared, and the delay timer is started; when the delay timer reaches the time threshold, the current motor speed is obtained; when the current motor speed is 0, the second position of the motor is obtained; the motor brake state detection result is determined according to the absolute value of the difference between the first position and the second position. This method cannot play a detection role when the servo drive and the industrial six-axis robot are matched for the first time. When the servo drive and the industrial six-axis robot are used for the first time, in order to ensure the correct connection of the motor signal line (brake line and encoder line), the servo debugging software or controller usually sends a brake release command for a specific axis to the servo drive under the premise of taking crane protection measures to prevent the robot from dropping its arm significantly. The servo drive will then release the brake of the corresponding motor axis. At this time, the on-site engineer will closely observe the movement of the robot's axis and the position information changes in the servo debugging software to determine whether the connection of the motor brake line and the encoder line is correct. However, in the absence of crane assistance or the robot body is heavy (such as 500KG to 1 ton), if the operator does not react quickly enough, an "arm drop" accident is very likely to occur, which may cause damage to the robot.

[0005] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0006] The embodiments of the present invention provide a wiring detection method and device for an industrial robot, so as to at least solve the technical problem in the related art that when an industrial robot determines the connection accuracy of a motor brake line, an encoder and a servo driver interface, there is a risk of an operator's insufficient reaction speed and failure to issue a brake closing command in time, resulting in the risk of damage to the robot and a safety hazard.

[0007] According to one aspect of an embodiment of the present invention, a wiring detection method for an industrial robot is provided, comprising: obtaining a motor signal detection instruction and a normal brake opening threshold of an axis to be detected of the industrial robot; when it is determined according to the motor signal detection instruction that the motor signal detection identification bit of the axis to be detected is a preset value one, sending a brake instruction to the axis to be detected, wherein the preset value one is a value pre-set and used to indicate that the axis to be detected can perform a brake operation; obtaining a current position value of the axis to be detected generated under the brake instruction; when a position deviation between the current position value and an initial position value of the axis to be detected exceeds the normal brake opening threshold, determining that there is no abnormality in the wiring between the motor brake line of the axis to be detected and the encoder of the axis to be detected and the servo driver; when the position deviation between the current position value and the initial position value of the axis to be detected does not exceed the normal brake opening threshold, determining that there is an abnormality in the wiring between the motor brake line of the axis to be detected and the encoder of the axis to be detected and the servo driver, and generating an alarm message to prompt that there is an abnormality in the wiring between the motor brake line of the axis to be detected and the encoder of the axis to be detected and the servo driver.

[0008] Optionally, obtaining the motor signal detection instruction of the axis to be detected of the industrial robot includes: obtaining the identification value of the motor signal verification success flag of the axis to be detected; when the identification value is preset value two, obtaining the motor signal detection instruction of the axis to be detected of the industrial robot, wherein the preset value two indicates that the axis to be detected has not passed the wiring detection.

[0009] Optionally, the wiring detection method of the industrial robot further includes: when the position deviation between the current position value and the initial position value of the axis to be detected exceeds the normal brake opening threshold, sending a brake closing instruction 1 to the axis to be detected to control the axis to be detected to perform a stop braking operation according to the brake closing instruction 1.

[0010] Optionally, the wiring detection method of the industrial robot further includes: when the position deviation between the current position value and the initial position value of the axis to be detected exceeds the normal opening threshold of the brake, the identification value of the motor signal verification success flag of the axis to be detected is updated to a preset value three, wherein the preset value three indicates that the axis to be detected passes the wiring detection.

[0011] Optionally, obtaining the normal opening threshold of the brake of the axis to be detected of the industrial robot includes: determining a debugging threshold of the axis to be detected and a single-turn maximum value of the encoder; and determining the normal opening threshold of the brake according to the debugging threshold and the single-turn maximum value.

[0012] Optionally, the wiring detection method of the industrial robot further includes: when it is determined that the motor signal detection identification position of the axis to be detected is a preset value two according to the motor signal detection instruction, obtaining the position deviation of the axis to be detected; when the position deviation exceeds a preset pulse value, determining that a wiring abnormality occurs in the axis to be detected; and generating fault prompt information, wherein the fault prompt information is used to prompt that an abnormal change occurs in a predetermined axis of the industrial robot.

[0013] Optionally, the wiring detection method for the industrial robot further includes: generating a second brake closing instruction, so as to control all axes of the industrial robot that are currently performing a braking operation to stop the braking operation through the second brake closing instruction.

[0014] Optionally, the encoder of the industrial robot and the shaft angle of the industrial robot have the following relationship: the pulse number of the industrial robot is the circumferential angle of the industrial robot / 360°*the maximum number of single turns of the encoder*the reduction ratio of the industrial robot.

[0015] Optionally, after determining that there is no abnormality in the wiring between the motor brake line of the axis to be detected and the encoder of the axis to be detected and the servo drive, the wiring detection method of the industrial robot further includes: detecting whether the axis to be detected is the last axis of the industrial robot to obtain a detection result; when the detection result indicates that the axis to be detected is the last axis of the industrial robot, ending the wiring detection operation of the industrial robot; when the detection result indicates that the axis to be detected is the last axis of the industrial robot, continuing to perform wiring detection on the axis adjacent to the axis to be detected and which has not been subjected to analytical detection.

[0016] According to another aspect of an embodiment of the present invention, a wiring detection device for an industrial robot is further provided, comprising: a first acquisition module, used to acquire a motor signal detection instruction and a brake normal opening threshold value of a to-be-detected axis of the industrial robot; a first processing module, used to send a brake instruction to the to-be-detected axis when it is determined according to the motor signal detection instruction that the motor signal detection identification bit of the to-be-detected axis is a preset value one, wherein the preset value one is a value pre-set and used to indicate that the to-be-detected axis can perform a brake operation; a second acquisition module, used to acquire a current position value of the to-be-detected axis generated under the brake instruction; a first determination module, used to determine the current position value generated under the brake instruction; and a second determination module, used to determine the current position value generated under the brake instruction. When the position deviation between the set value and the initial position value of the axis to be detected exceeds the normal opening threshold of the brake, it is determined that there is no abnormality in the wiring between the motor brake line of the axis to be detected and the encoder of the axis to be detected and the servo driver; the second processing module is used to determine that there is an abnormality in the wiring between the motor brake line of the axis to be detected and the encoder of the axis to be detected and the servo driver when the position deviation between the current position value and the initial position value of the axis to be detected does not exceed the normal opening threshold of the brake, and generate an alarm message to prompt that there is an abnormality in the wiring between the motor brake line of the axis to be detected and the encoder of the axis to be detected and the servo driver.

[0017] Optionally, the first acquisition module includes: a first acquisition unit, used to obtain the identification value of the motor signal verification success flag of the axis to be detected; a second acquisition unit, used to obtain the motor signal detection instruction of the axis to be detected of the industrial robot when the identification value is preset value two, wherein the preset value two indicates that the axis to be detected has not passed the wiring detection.

[0018] Optionally, the wiring detection device of the industrial robot also includes: a sending module, which is used to send a brake closing instruction 1 to the axis to be detected when the position deviation between the current position value and the initial position value of the axis to be detected exceeds the normal brake opening threshold, so as to control the axis to be detected to perform a stop braking operation according to the brake closing instruction 1.

[0019] Optionally, the wiring detection device of the industrial robot further includes: an updating module, which is used to update the identification value of the motor signal verification success flag of the axis to be detected to a preset value three when the position deviation between the current position value and the initial position value of the axis to be detected exceeds the normal opening threshold of the brake, wherein the preset value three indicates that the axis to be detected passes the wiring detection.

[0020] Optionally, the first acquisition module includes: a first determination unit, used to determine the debugging threshold of the axis to be detected and the single-turn maximum value of the encoder; and a second determination unit, used to determine the normal brake opening threshold according to the debugging threshold and the single-turn maximum value.

[0021] Optionally, the wiring detection device of the industrial robot also includes: a third acquisition module, used to obtain the position deviation of the axis to be detected when the motor signal detection identification bit of the axis to be detected is determined to be a preset value two according to the motor signal detection instruction; a second determination module, used to determine that a wiring abnormality occurs in the axis to be detected when the position deviation exceeds a preset pulse value; and a first generation module, used to generate fault prompt information, wherein the fault prompt information is used to prompt that an abnormal change occurs in a predetermined axis of the industrial robot.

[0022] Optionally, the wiring detection device of the industrial robot further includes: a second generating module, used to generate a second brake closing instruction, so as to control all axes of the industrial robot that are currently performing a braking operation to stop the braking operation through the second brake closing instruction.

[0023] Optionally, the encoder of the industrial robot and the shaft angle of the industrial robot have the following relationship: the pulse number of the industrial robot is the circumferential angle of the industrial robot / 360°*the maximum number of single turns of the encoder*the reduction ratio of the industrial robot.

[0024] Optionally, the wiring detection device of the industrial robot further includes: a detection module, used to detect whether the axis to be detected is the last axis of the industrial robot after determining that there is no abnormality in the wiring between the motor brake line of the axis to be detected and the encoder of the axis to be detected and the servo driver, and obtain a detection result; a third processing module, used to end the wiring detection operation of the industrial robot when the detection result indicates that the axis to be detected is the last axis of the industrial robot; and a wiring detection module, used to continue to perform wiring detection on the axis adjacent to the axis to be detected and which has not been subjected to analytical detection when the detection result indicates that the axis to be detected is the last axis of the industrial robot.

[0025] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is further provided, wherein the computer-readable storage medium includes a stored program, wherein the program executes any one of the above-mentioned methods for detecting wiring of an industrial robot.

[0026] According to another aspect of an embodiment of the present invention, a processor is further provided, the processor being used to run a program, wherein the program executes any one of the above-mentioned methods for detecting wiring of an industrial robot when running.

[0027] According to another aspect of an embodiment of the present invention, a computer program product is further provided, comprising computer instructions, wherein when the computer instructions are executed by a processor, any one of the above-mentioned methods for detecting wiring of an industrial robot is executed.

[0028] In an embodiment of the present invention, a motor signal detection instruction and a normal brake opening threshold of an axis to be detected of an industrial robot are obtained; when it is determined that the motor signal detection identification bit of the axis to be detected is a preset value one according to the motor signal detection instruction, a brake instruction is sent to the axis to be detected, wherein the preset value one is a value pre-set and used to indicate that the axis to be detected can perform a brake operation; the current position value generated by the axis to be detected under the brake instruction is obtained; when the position deviation between the current position value and the initial position value of the axis to be detected exceeds the normal brake opening threshold, it is determined that there is no abnormality in the wiring between the motor brake line of the axis to be detected and the encoder of the axis to be detected and the servo driver; when the position deviation between the current position value and the initial position value of the axis to be detected does not exceed the normal brake opening threshold, it is determined that there is an abnormality in the wiring between the motor brake line of the axis to be detected and the encoder of the axis to be detected and the servo driver, and an alarm message is generated to prompt that there is an abnormality in the wiring between the motor brake line of the axis to be detected and the encoder of the axis to be detected and the servo driver. Through the technical solution provided by the present invention, the collected position deviation is matched with the preset threshold value to determine whether there is an abnormality in the wiring between the motor brake line of the industrial robot and the encoder of the axis to be detected and the servo driver, thereby achieving the technical effect of accurately detecting whether the motor brake lines and encoders of each axis of the industrial robot are correctly connected to the servo driver, improving the technical problem of the safety of industrial robot detection, and further solving the technical problem in the related technology that when the industrial robot determines the accuracy of the connection between the motor brake line, encoder and servo driver interface, the operator may not react quickly enough and fail to issue a brake closing command in time, resulting in the risk of damage to the robot and the existence of safety hazards. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0030] Figure 1 It is a hardware structure block diagram of a mobile terminal of a wiring detection method for an industrial robot according to an embodiment of the present invention;

[0031] Figure 2 is a flow chart of a wiring detection method for an industrial robot according to an embodiment of the present invention;

[0032] Figure 3 is a control schematic diagram of a six-axis industrial robot according to an embodiment of the present invention;

[0033] Figure 4 is a schematic diagram of the connection between the servo driver and the 1-axis motor of the six-axis industrial robot according to an embodiment of the present invention;

[0034] Figure 5 is a flow chart of an optional wiring detection method for an industrial robot according to an embodiment of the present invention;

[0035] Figure 6 is a flow chart of another optional wiring detection method for an industrial robot according to an embodiment of the present invention;

[0036] Figure 7 It is a motor signal detection interface of the servo debugging software according to an embodiment of the present invention;

[0037] Figure 8 is a signal transmission block diagram of an industrial robot according to an embodiment of the present invention;

[0038] Fig. 9 is a schematic diagram of a wiring detection device for an industrial robot according to an embodiment of the present invention. DETAILED DESCRIPTION

[0039] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0040] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention 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 interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0041] As introduced in the background technology, in the scenario of determining the connection accuracy of the motor brake line, encoder and servo drive interface of the industrial robot in the related technology, there is a risk that the operator will not be able to respond quickly enough and fail to issue a brake off command in time, resulting in damage to the robot, which is a technical problem of potential safety hazards. In view of the above defects, an industrial robot wiring detection method and device, a computer-readable storage medium, a processor and a computer program product are provided in the embodiments of the present invention.

[0042] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0043] The method embodiments provided in the embodiments of the present invention can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a method for detecting wiring of an industrial robot according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0044] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the wiring detection method of the industrial robot in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The transmission device 106 is used to receive or send data via a network. The above-mentioned specific examples of the network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0045] According to an embodiment of the present invention, a method embodiment of a wiring detection method for an industrial robot is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0046] Figure 2 is a flow chart of a wiring detection method for an industrial robot according to an embodiment of the present invention. Figure 2 As shown, the method comprises the following steps:

[0047] Step S202, obtaining a motor signal detection instruction and a brake normal opening threshold value of the axis to be detected of the industrial robot.

[0048] It should be noted that the above-mentioned motor signal detection instruction of the axis to be detected refers to the instruction sent to the motor of the axis to be detected, which is used to control the movement of the motor and monitor the status of the motor; the above-mentioned normal brake opening threshold refers to the normal threshold for the brake to be fully released or opened in the mechanical system. The setting of the normal brake opening threshold can ensure that the brake can be fully opened when it needs to be released, thereby ensuring the normal operation and safety of the mechanical system.

[0049] In this embodiment, the motor signal detection instruction of the axis to be detected of the industrial robot and the normal brake opening threshold can be obtained, so that the operating status of the industrial robot can be monitored and controlled in real time, abnormal motor operation or brake release problems can be discovered in time, and the safe operation of the robot can be ensured.

[0050] In the embodiments of the present invention, a six-axis industrial robot is taken as an example for description. Figure 3 is a control schematic diagram of a six-axis industrial robot according to an embodiment of the present invention, Figure 4 Schematic diagram of the connection between the servo driver and the 1-axis motor of the six-axis industrial robot according to an embodiment of the present invention, as shown in FIG. Figure 3 and Figure 4 As shown, the industrial robot is connected to the servo drive in the control cabinet through connecting cables (including encoder cables, brake cables, and power cables), and the servo debugging interface and motion controller are connected to the servo drive through network cables. This is a connection diagram of the entire six-axis industrial robot.

[0051] The above embodiments are mainly aimed at the situation that the initial matching of the industrial robot needs to verify whether the motor brake line, the encoder and the corresponding interface of the servo driver are correctly connected, so as to perform wiring detection on the industrial robot.

[0052] Step S204, when it is determined according to the motor signal detection instruction that the motor signal detection flag of the axis to be detected is preset value one, a braking instruction is sent to the axis to be detected, wherein the preset value one is a value pre-set and used to indicate that the axis to be detected can perform a braking operation.

[0053] In this embodiment, when it is determined according to the motor signal detection instruction that the motor signal detection flag of the axis to be detected is a pre-set value used to indicate that the axis to be detected can perform a braking operation, a braking instruction can be sent to the axis to be detected, which can effectively control the movement of the axis to be detected and avoid unnecessary losses during the movement.

[0054] Step S206, obtaining the current position value of the axis to be detected under the brake command.

[0055] It should be noted that the above current position value refers to the real-time position of the axis to be detected after receiving the brake command.

[0056] In this embodiment, the actual stop position of the axis after receiving the brake command can be confirmed by acquiring the current position value generated by the axis to be detected under the brake command, which helps to verify the control accuracy and precision of the system.

[0057] Step S208, when the position deviation between the current position value and the initial position value of the axis to be detected exceeds the normal brake opening threshold, it is determined that there is no abnormality in the connection between the motor brake line of the axis to be detected and the encoder of the axis to be detected and the servo driver.

[0058] In this embodiment, when the position deviation between the current position value and the initial position value of the axis to be detected exceeds the normal brake opening threshold, that is, when the motion state of the axis to be detected is abnormal, it can be confirmed that there is no abnormality in the wiring between the motor brake line and the encoder and the servo driver, and whether the position deviation is caused by a wiring problem can be determined, which is helpful for fault diagnosis and troubleshooting and avoiding abnormal control signals caused by wiring problems.

[0059] Step S210, when the position deviation between the current position value and the initial position value of the axis to be detected does not exceed the normal brake opening threshold, it is determined that an abnormality occurs in the wiring between the motor brake line of the axis to be detected and the encoder of the axis to be detected and the servo driver, and an alarm message is generated to prompt that an abnormality occurs in the wiring between the motor brake line of the axis to be detected and the encoder of the axis to be detected and the servo driver.

[0060] In this embodiment, when it is detected that the position deviation between the current position value and the initial position value of the axis to be detected does not exceed the normal brake opening threshold, it can be determined that there is an abnormality in the wiring between the motor brake line of the axis to be detected and the encoder and servo driver of the axis to be detected, and an alarm message is generated, thereby indicating that there is a problem with the wiring between the motor brake line of the industrial robot and the encoder and servo driver of the axis to be detected.

[0061] As can be seen from the above, in an embodiment of the present invention, a motor signal detection instruction and a normal brake opening threshold of an axis to be detected of an industrial robot are obtained; when it is determined that the motor signal detection identification bit of the axis to be detected is a preset value one according to the motor signal detection instruction, a brake instruction is sent to the axis to be detected, wherein the preset value one is a value pre-set and used to indicate that the axis to be detected can perform a brake operation; the current position value generated by the axis to be detected under the brake instruction is obtained; when the position deviation between the current position value and the initial position value of the axis to be detected exceeds the normal brake opening threshold, it is determined that there is no abnormality in the wiring between the motor brake line of the axis to be detected and the encoder of the axis to be detected and the servo driver; when the current position value and the initial position value of the axis to be detected have a position deviation that exceeds the normal brake opening threshold, it is determined that there is no abnormality in the wiring between the motor brake line of the axis to be detected and the encoder of the axis to be detected and the servo driver; When the position deviation does not exceed the normal brake opening threshold, it is determined that the wiring between the motor brake line of the axis to be detected and the encoder of the axis to be detected and the servo driver is abnormal, and an alarm message is generated to prompt that the wiring between the motor brake line of the axis to be detected and the encoder of the axis to be detected and the servo driver is abnormal, thereby achieving the purpose of matching the collected position deviation with the preset threshold to determine whether the wiring between the motor brake line of the industrial robot and the encoder of the axis to be detected and the servo driver is abnormal, thereby achieving the technical effect of accurately detecting whether the motor brake lines and encoders of each axis of the industrial robot are correctly connected to the servo driver, and improving the technical problem of the safety of industrial robot detection.

[0062] The above-mentioned technical solution provided by the embodiment of the present invention solves the technical problem in the related art that when an industrial robot determines the connection accuracy of the motor brake line, encoder and servo driver interface, there is a risk of the operator's insufficient reaction speed and failure to issue a brake closing command in time, resulting in damage to the robot and posing a safety hazard.

[0063] According to the above embodiment of the present invention, obtaining the motor signal detection instruction of the axis to be detected of the industrial robot includes: obtaining the identification value of the motor signal verification success flag of the axis to be detected; when the identification value is preset value two, obtaining the motor signal detection instruction of the axis to be detected of the industrial robot, wherein the preset value two indicates that the axis to be detected has not passed the wiring test.

[0064] Figure 5 is a flow chart of an optional wiring detection method for an industrial robot according to an embodiment of the present invention, such as Figure 5 As shown, first, the motor signal verification success flag of the axis to be detected can be obtained, and it is determined whether the motor signal verification success flag of the axis is 1 (that is, the preset value 2). If so, the process ends; otherwise, the axis motor signal detection instruction is obtained. When the flag bit in the axis motor signal detection instruction is 1 (preset value 1), the brake is normally opened to detect the module; otherwise, the brake is abnormally opened to detect the module.

[0065] According to the above embodiment of the present invention, the wiring detection method of the industrial robot also includes: when the position deviation between the current position value and the initial position value of the axis to be detected exceeds the normal brake opening threshold, sending a brake closing instruction 1 to the axis to be detected to control the axis to be detected to perform a stop braking operation according to the brake closing instruction 1.

[0066] like Figure 5 As shown, the brake normally opened detection module first sends a brake release instruction (brake closing instruction 1) to the axis motor to control the axis to be detected to perform a stop braking operation according to the brake closing instruction 1.

[0067] According to the above embodiment of the present invention, the wiring detection method of the industrial robot further includes: when the position deviation between the current position value and the initial position value of the axis to be detected exceeds the normal brake opening threshold, the identification value of the motor signal verification success flag of the axis to be detected is updated to a preset value three, wherein the preset value three indicates that the axis to be detected passes the wiring detection.

[0068] like Figure 5As shown, it is determined whether the current position deviation of the axis exceeds the set threshold. If yes, a brake-off command is sent to the axis motor, and the axis motor signal verification success flag position 1 (preset value three) is set to end the axis detection. If no, the axis detection is ended directly. The threshold is set by debugging the software mainly to take into account a very special situation. For example, the brake line and encoder line of the 2-axis motor are connected to the interface of the 3-axis servo drive, and the brake line and encoder line of the 3-axis motor are connected to the interface of the 2-axis servo drive. The position change observed by the driver is consistent with the brake control. At this time, the on-site engineer can adjust the threshold of the axis position change according to the robot reduction ratio. The driver can immediately turn off the brake when it recognizes that the position change exceeds the set threshold, avoiding the risk of collision caused by untimely human response. The on-site engineer determines whether the motor brake lines and encoder lines of the two axes are swapped at the same time by observing the posture of the robot axis.

[0069] According to the above embodiment of the present invention, obtaining the normal opening threshold of the brake of the axis to be detected of the industrial robot includes: determining the debugging threshold of the axis to be detected and the single-turn maximum value of the encoder; and determining the normal opening threshold of the brake according to the debugging threshold and the single-turn maximum value.

[0070] In the embodiment of the present invention, Figure 5 As shown, first determine whether the axis motor signal verification success flag is set to 1, that is, whether the verification is passed. If yes, end the judgment of the axis and enter the next axis. If not, determine whether the axis motor signal detection flag (taking axis 5 as an example, Axis5_SD_Flag = (MotorSD_Cmd>>5) & 0x01) is 1. If yes, enter the normal brake opening detection module. If not, enter the abnormal brake opening detection module.

[0071] In this embodiment, the current axis position deviation = |current position value - initial position value|, and the set threshold = the threshold of the debugging software * 0.001 * the maximum value of the encoder single turn. The conversion formula of the threshold (‰) and the robot axis angle (°) is: the robot axis angle (°) = threshold * 0.001 * 360° / reduction ratio.

[0072] According to the above embodiment of the present invention, the wiring detection method of the industrial robot also includes: when it is determined that the motor signal detection identification position of the axis to be detected is a preset value two according to the motor signal detection instruction, obtaining the position deviation of the axis to be detected; when the position deviation exceeds the preset pulse value, determining that the axis to be detected has a wiring abnormality; generating fault prompt information, wherein the fault prompt information is used to prompt that an abnormal change has occurred in a predetermined axis of the industrial robot.

[0073] like Figure 5As shown, the brake abnormality opens the detection module to determine whether the current position deviation exceeds the threshold value of 100inc. If so, an "x-axis position abnormal change" fault is reported (for example, the 2-axis position abnormal change), all axis brakes are closed, and the axis detection is ended.

[0074] According to the above embodiment of the present invention, the wiring detection method of the industrial robot further includes: generating a second brake closing instruction to control all axes of the industrial robot that are currently performing a braking operation to stop the braking operation through the second brake closing instruction.

[0075] like Figure 5 As shown, if the current position deviation does not exceed the threshold of 100 inc, the axis detection is terminated. The threshold of 100 inc is mainly based on two considerations. First, the brake is not released and the motor is static. The encoder position feedback fluctuation is within 20 inc, and 100 inc can avoid false triggering. Second, for safety considerations, when the axis brake line does not match the encoder wiring, for example, the 2-axis and 3-axis brake lines are connected in reverse, if the engineer is using the debugging software to detect the 2-axis motor signal line, the program enters the 2-axis brake normal opening detection module, and releases the 2-axis brake. The robot actually opens the brake of the 3-axis motor. When the 3-axis brake abnormal opening detection module is in effect, it can respond quickly, report a fault, and turn off the brake. The encoder used by the robot generally has a minimum of 17 bits (the maximum value of the encoder single turn: 131072), and the reduction ratio of the reducer is generally higher than 50. 100 inc is converted to the robot angle of about 0.0055°, which is very small and safe and reliable.

[0076] According to the above embodiment of the present invention, the encoder of the industrial robot and the shaft angle of the industrial robot have the following relationship: the pulse number of the industrial robot is the circumferential angle of the industrial robot / 360°*the maximum number of single turns of the encoder*the reduction ratio of the industrial robot.

[0077] In this embodiment, the conversion formula of the encoder pulse number (inc) and the robot axis angle (°) is: pulse number = robot axis angle / 360° * encoder single-turn maximum number * robot reduction ratio.

[0078] Figure 6 is a flowchart of another optional wiring detection method for an industrial robot according to an embodiment of the present invention, Figure 7 is a motor signal detection interface of the servo debugging software according to an embodiment of the present invention, such as Figure 6 and Figure 7 As shown, engineers Figure 7The motor signal detection function of the servo debugging software sets the motor signal detection instruction and the normal brake opening threshold (unit: ‰ of the maximum value of the encoder single turn) of a certain axis. The servo driver sets the variable "motor signal detection instruction" (MotorSD_Cmd) to store the motor signal detection instructions of the six axes in the first 6 bits. For example, the driver receives the 5-axis motor signal detection instruction, and MotorSD_Cmd is equal to 0x10 (binary: 1 0000). The servo driver turns on the brake control signal of the corresponding axis according to the motor signal detection instruction, collects the encoder position feedback of the six axes in real time, and judges whether the motor signal verification is successful or the position of other axes changes abnormally, and then turns off the brake, and uploads the detection results, the initial position values ​​of the six axes, and the current position values ​​to the servo debugging software, telling the on-site engineer about the status information of each axis.

[0079] Figure 8 is a signal transmission block diagram of an industrial robot according to an embodiment of the present invention, such as Figure 8 As shown, the embodiment of the present invention mainly includes servo debugging software, servo driver and motor. The servo debugging software can set the motor signal detection instruction and threshold of a certain axis and transmit them to the servo driver; the servo driver completes the detection of the initial position and current position and returns to the servo debugging software; in addition, the servo driver will send a brake control signal to the motor; and the motor will feed back the encoder position to the servo driver.

[0080] In addition, the servo driver processes the motor signal detection command sent by the servo debugging software as follows Figure 5 , 6 As shown, Figure 5 The program execution frequency is consistent with the speed loop execution frequency, and real-time (us level) detection is achieved. In the non-enabled state, the "motor signal detection instruction" is judged to be zero (MotorSD_Cmd&0x3f==0). If yes, the brakes of all axes are turned off, the motor signal verification success flag position is 0, and the loop returns to the starting point. If no, the encoder position values ​​of the six axes are read as the current position values, and then the "motor signal detection instruction" of the previous cycle is judged to be zero. If yes (rising edge), the encoder position values ​​of the six axes at this time are recorded as the initial position values ​​of the six axis motor signal detection. Then enter the six axis motor signal detection module, and finally send the initial position value, current position value, and motor signal verification success flag of all axes to the servo debugging software.

[0081] According to the above embodiment of the present invention, after determining that there is no abnormality in the wiring between the motor brake line of the axis to be detected and the encoder and servo driver of the axis to be detected, the wiring detection method of the industrial robot also includes: detecting whether the axis to be detected is the last axis of the industrial robot to obtain a detection result; when the detection result indicates that the axis to be detected is the last axis of the industrial robot, ending the wiring detection operation of the industrial robot; when the detection result indicates that the axis to be detected is the last axis of the industrial robot, continuing to perform wiring detection on the axis adjacent to the axis to be detected and which has not been subjected to analytical detection.

[0082] In this embodiment, when it is determined that the axis to be detected is not the last axis of the industrial robot, it is determined that the wiring detection of the industrial robot is completed; otherwise, the above steps are continued to perform the wiring detection of the industrial robot until all axes of the industrial robot are also wired.

[0083] The technical solution provided by the above-mentioned embodiment of the present invention effectively overcomes the risk of damage to the robot due to the operator's insufficient reaction speed and failure to issue a brake-off command in time during the brake release process to ensure safety in the scenario of confirming the accuracy of the connection between the motor brake line, encoder and servo driver interface. It mainly utilizes the existing hardware circuit of the servo driver to develop a safe and reliable detection solution based on a software control algorithm. The solution is designed to accurately detect whether the brake lines and encoder lines of the six axes of the robot are correctly connected to the servo driver, and to ensure the safety and reliability of the entire detection process. This not only improves the user experience, but also significantly improves the safety quality of the servo driver, bringing users a more secure and efficient solution.

[0084] As can be seen from the above, in an embodiment of the present invention, when the servo driver receives a specific motor signal detection instruction from the servo debugging software, it will first start the brake release function of the axis. Subsequently, through its built-in position processing module, the servo driver will monitor the position changes of the six axes in real time and accurately. The system compares and analyzes the collected position deviation with the preset threshold and the fixed threshold to determine whether the brake release signal of the axis matches the position change detected by the encoder. After completing this series of detection processes, the servo driver will turn off the brake and send the detailed detection results to the servo debugging software, so as to promptly remind the user of the status information of the axis to ensure the safety and reliability of the entire operation process.

[0085] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0086] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0087] According to an embodiment of the present invention, there is also provided a wiring detection device for an industrial robot for implementing the wiring detection method for an industrial robot. Fig. 9 is a schematic diagram of a wiring detection device for an industrial robot according to an embodiment of the present invention, Fig. 9 As shown, the device includes: a first acquisition module 901, a first processing module 903, a second acquisition module 905, a first determination module 907 and a second processing module 909. The wiring detection device of the industrial robot is described below.

[0088] The first acquisition module 901 is used to acquire the motor signal detection instruction and the brake normal opening threshold of the axis to be detected of the industrial robot.

[0089] The first processing module 903 is used to send a braking instruction to the axis to be detected when it is determined according to the motor signal detection instruction that the motor signal detection flag of the axis to be detected is a preset value one, wherein the preset value one is a value pre-set and used to indicate that the axis to be detected can perform a braking operation.

[0090] The second acquisition module 905 is used to acquire the current position value of the axis to be detected under the brake command.

[0091] The first determination module 907 is used to determine that there is no abnormality in the connection between the motor brake line of the axis to be detected and the encoder and servo driver of the axis to be detected when the position deviation between the current position value and the initial position value of the axis to be detected exceeds the normal brake opening threshold.

[0092] The second processing module 909 is used to determine that there is an abnormality in the wiring between the motor brake line of the axis to be detected and the encoder of the axis to be detected and the servo driver when the position deviation between the current position value and the initial position value of the axis to be detected does not exceed the normal brake opening threshold, and generate an alarm message to prompt that there is an abnormality in the wiring between the motor brake line of the axis to be detected and the encoder of the axis to be detected and the servo driver.

[0093] It should be noted here that the above-mentioned first acquisition module 901, first processing module 903, second acquisition module 905, first determination module 907 and second processing module 909 correspond to steps S202 to S210 in the above-mentioned embodiments, and the five modules are the same as the instances and application scenarios implemented by the corresponding steps, but are not limited to the contents disclosed in the above-mentioned embodiments.

[0094] As can be seen from the above, in the scheme recorded in the above-mentioned embodiment of the present invention, first, the first acquisition module can be used to obtain the motor signal detection instruction and the normal brake opening threshold of the axis to be detected of the industrial robot; then, the first processing module can be used to send a brake instruction to the axis to be detected when it is determined that the motor signal detection identification bit of the axis to be detected is the preset value one according to the motor signal detection instruction, wherein the preset value one is a value pre-set and used to indicate that the axis to be detected can perform a brake operation; then, the second acquisition module can be used to obtain the current position value generated by the axis to be detected under the brake instruction; secondly, the first determination module can be used to determine that the motor brake line of the axis to be detected and the wiring between the encoder of the axis to be detected and the servo driver are not disconnected when the position deviation between the current position value and the initial position value of the axis to be detected exceeds the normal brake opening threshold. anomaly occurs; finally, the second processing module can be used to determine that the wiring between the motor brake line of the axis to be detected and the encoder of the axis to be detected and the servo driver is abnormal when the position deviation between the current position value and the initial position value of the axis to be detected does not exceed the normal brake opening threshold, and generate an alarm message to prompt that the wiring between the motor brake line of the axis to be detected and the encoder of the axis to be detected and the servo driver is abnormal, thereby achieving the purpose of matching the collected position deviation with the preset threshold to determine whether the wiring between the motor brake line of the industrial robot and the encoder of the axis to be detected and the servo driver is abnormal, thereby achieving the technical effect of accurately detecting whether the motor brake lines and encoders of each axis of the industrial robot are correctly connected to the servo driver, and improving the technical problem of the safety of industrial robot detection.

[0095] The above-mentioned technical solution provided by the embodiment of the present invention solves the technical problem in the related art that when an industrial robot determines the connection accuracy of the motor brake line, encoder and servo driver interface, there is a risk of the operator's insufficient reaction speed and failure to issue a brake closing command in time, resulting in damage to the robot and posing a safety hazard.

[0096] The above-mentioned technical solution provided by the embodiment of the present invention solves the technical problem in the related art that when an industrial robot determines the connection accuracy of the motor brake line, encoder and servo driver interface, there is a risk of the operator's insufficient reaction speed and failure to issue a brake closing command in time, resulting in damage to the robot and posing a safety hazard.

[0097] In an optional embodiment, the first acquisition module includes: a first acquisition unit, used to obtain the identification value of the motor signal verification success flag of the axis to be detected; a second acquisition unit, used to obtain the motor signal detection instruction of the axis to be detected of the industrial robot when the identification value is preset value two, wherein the preset value two indicates that the axis to be detected has not passed the wiring detection.

[0098] In an optional embodiment, the wiring detection device of the industrial robot further includes: a sending module, which is used to send a brake closing instruction 1 to the axis to be detected when the position deviation between the current position value and the initial position value of the axis to be detected exceeds the normal brake opening threshold, so as to control the axis to be detected to perform a stop braking operation according to the brake closing instruction 1.

[0099] In an optional embodiment, the wiring detection device of the industrial robot further includes: an update module, which is used to update the identification value of the motor signal verification success flag of the axis to be detected to a preset value three when the position deviation between the current position value and the initial position value of the axis to be detected exceeds the normal brake opening threshold, wherein the preset value three indicates that the axis to be detected passes the wiring detection.

[0100] In an optional embodiment, the first acquisition module includes: a first determination unit, used to determine the debugging threshold of the axis to be detected and the single-turn maximum value of the encoder; a second determination unit, used to determine the normal brake opening threshold based on the debugging threshold and the single-turn maximum value.

[0101] In an optional embodiment, the wiring detection device of the industrial robot further includes: a third acquisition module, used to obtain the position deviation of the axis to be detected when the motor signal detection identification position of the axis to be detected is determined to be a preset value two according to the motor signal detection instruction; a second determination module, used to determine that the axis to be detected has a wiring abnormality when the position deviation exceeds a preset pulse value; and a first generation module, used to generate fault prompt information, wherein the fault prompt information is used to prompt that an abnormal change has occurred in a predetermined axis of the industrial robot.

[0102] In an optional embodiment, the wiring detection device of the industrial robot further includes: a second generating module, which is used to generate a brake closing instruction 2, so as to control all axes of the industrial robot that are currently performing a braking operation to stop the braking operation through the brake closing instruction 2.

[0103] In an optional embodiment, the encoder of the industrial robot and the shaft angle of the industrial robot have the following relationship: the pulse number of the industrial robot is the circumferential angle of the industrial robot / 360°*the maximum number of single turns of the encoder*the reduction ratio of the industrial robot.

[0104] In an optional embodiment, the wiring detection device of the industrial robot further includes: a detection module, which is used to detect whether the axis to be detected is the last axis of the industrial robot after determining that there is no abnormality in the wiring between the motor brake line of the axis to be detected and the encoder and servo driver of the axis to be detected, and obtain a detection result; a third processing module, which is used to end the wiring detection operation of the industrial robot when the detection result indicates that the axis to be detected is the last axis of the industrial robot; and a wiring detection module, which is used to continue to perform wiring detection on the axis adjacent to the axis to be detected and has not been subjected to analytical detection when the detection result indicates that the axis to be detected is the last axis of the industrial robot.

[0105] According to another aspect of an embodiment of the present invention, a processor is further provided, and the processor is used to run a program, wherein when the program is run, any one of the above-mentioned methods for detecting wiring of an industrial robot is executed.

[0106] According to another aspect of an embodiment of the present invention, a computer program product is provided, including computer instructions, and when the computer instructions are executed by a processor, any one of the above-mentioned methods for detecting wiring of an industrial robot is executed.

[0107] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is further provided, the computer-readable storage medium comprising a stored program, wherein the program executes any one of the above-mentioned methods for detecting wiring of an industrial robot.

[0108] Optionally, in this embodiment, the computer-readable storage medium may be located in any one of the computer terminals in a computer terminal group in a computer network, or in any one of the communication devices in a communication device group.

[0109] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: obtaining a motor signal detection instruction and a normal brake opening threshold of an axis to be detected of an industrial robot; when it is determined according to the motor signal detection instruction that the motor signal detection identification bit of the axis to be detected is a preset value one, sending a brake instruction to the axis to be detected, wherein the preset value one is a value pre-set and used to indicate that the axis to be detected can perform a brake operation; obtaining a current position value generated by the axis to be detected under the brake instruction; when a position deviation between the current position value and an initial position value of the axis to be detected exceeds the normal brake opening threshold, determining that there is no abnormality in the wiring between the motor brake line of the axis to be detected and the encoder of the axis to be detected and the servo driver; when a position deviation between the current position value and the initial position value of the axis to be detected does not exceed the normal brake opening threshold, determining that there is an abnormality in the wiring between the motor brake line of the axis to be detected and the encoder of the axis to be detected and the servo driver, and generating an alarm message to prompt that there is an abnormality in the wiring between the motor brake line of the axis to be detected and the encoder of the axis to be detected and the servo driver.

[0110] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for executing the following steps: obtaining the identification value of the motor signal verification success flag of the axis to be detected; when the identification value is preset value two, obtaining the motor signal detection instruction of the axis to be detected of the industrial robot, wherein the preset value two indicates that the axis to be detected has not passed the wiring detection.

[0111] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: when the position deviation between the current position value and the initial position value of the axis to be detected exceeds the normal brake opening threshold, sending a brake closing instruction 1 to the axis to be detected to control the axis to be detected to perform a stop braking operation according to the brake closing instruction 1.

[0112] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for executing the following steps: when the position deviation between the current position value and the initial position value of the axis to be detected exceeds the normal brake opening threshold, the identification value of the motor signal verification success flag of the axis to be detected is updated to a preset value of three, wherein the preset value of three indicates that the axis to be detected passes the wiring detection.

[0113] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for executing the following steps: determining a debugging threshold of the axis to be detected and a single-turn maximum value of the encoder; and determining a normal brake opening threshold based on the debugging threshold and the single-turn maximum value.

[0114] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: when it is determined that the motor signal detection identification bit of the axis to be detected is a preset value two according to the motor signal detection instruction, obtaining the position deviation of the axis to be detected; when the position deviation exceeds a preset pulse value, determining that a wiring abnormality occurs in the axis to be detected; and generating fault prompt information, wherein the fault prompt information is used to prompt that an abnormal change occurs in a predetermined axis of the industrial robot.

[0115] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: generating a brake closing instruction 2 to control all axes of the industrial robot that are currently performing a braking operation to stop the braking operation through the brake closing instruction 2.

[0116] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: detecting whether the axis to be detected is the last axis of the industrial robot to obtain a detection result; when the detection result indicates that the axis to be detected is the last axis of the industrial robot, ending the wiring detection operation of the industrial robot; when the detection result indicates that the axis to be detected is the last axis of the industrial robot, continuing to perform wiring detection on the axis adjacent to the axis to be detected and which has not been subjected to analytical detection.

[0117] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0118] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0119] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0120] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0121] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0122] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0123] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A wiring detection method for an industrial robot, characterized in that: The industrial robot comprises a plurality of mechanical arms, each of the plurality of mechanical arms is provided with a servo motor, the servo motor is connected with an encoder, the industrial robot is connected with a servo driver via a connecting cable, and the motion controller of the industrial robot is connected with the servo driver via a network cable, including: Obtaining a motor signal detection instruction and a brake normal opening threshold value of the axis to be detected of the industrial robot; When it is determined according to the motor signal detection instruction that the motor signal detection flag of the axis to be detected is a preset value one, a brake instruction is sent to the axis to be detected, wherein the preset value one is a value pre-set and used to indicate that the axis to be detected can perform a brake operation; Obtaining a current position value of the axis to be detected generated under the brake command; When the position deviation between the current position value and the initial position value of the axis to be detected exceeds the brake normal opening threshold, it is determined that there is no abnormality in the wiring between the motor brake line of the axis to be detected and the encoder of the axis to be detected and the servo driver; When the position deviation between the current position value and the initial position value of the axis to be detected does not exceed the normal brake opening threshold, it is determined that an abnormality occurs in the wiring between the motor brake line of the axis to be detected and the encoder of the axis to be detected and the servo driver, and an alarm message is generated to prompt that an abnormality occurs in the wiring between the motor brake line of the axis to be detected and the encoder of the axis to be detected and the servo driver.

2. The wiring detection method of an industrial robot according to claim 1, characterized in that: Obtaining a motor signal detection instruction of the axis to be detected of the industrial robot, comprising: Obtaining the identification value of the motor signal verification success flag of the axis to be detected; When the identification value is preset value 2, the motor signal detection instruction of the axis to be detected of the industrial robot is obtained, wherein the preset value 2 indicates that the axis to be detected has not passed the wiring detection.

3. The wiring detection method of an industrial robot according to claim 1, characterized in that: Also includes: When the position deviation between the current position value and the initial position value of the axis to be detected exceeds the normal brake opening threshold, a brake closing instruction 1 is sent to the axis to be detected to control the axis to be detected to perform a stop braking operation according to the brake closing instruction 1.

4. The wiring detection method of an industrial robot according to claim 1, characterized in that: Also includes: When the position deviation between the current position value and the initial position value of the axis to be detected exceeds the normal brake opening threshold, the identification value of the motor signal verification success flag of the axis to be detected is updated to a preset value of three, wherein the preset value of three indicates that the axis to be detected passes the wiring detection.

5. The wiring detection method of an industrial robot according to claim 1, characterized in that: Obtaining a normal brake opening threshold of the axis to be detected of the industrial robot, including: Determine the debugging threshold of the axis to be detected and the single-turn maximum value of the encoder; The normal brake opening threshold is determined according to the debugging threshold and the single-lap maximum value.

6. The wiring detection method of an industrial robot according to claim 1, characterized in that: Also includes: When it is determined according to the motor signal detection instruction that the motor signal detection identification position of the axis to be detected is a preset value 2, obtaining the position deviation of the axis to be detected; When the position deviation exceeds a preset pulse value, determining that a wiring abnormality occurs in the axis to be detected; Generate fault prompt information, wherein the fault prompt information is used to prompt that an abnormal change occurs in a predetermined axis of the industrial robot.

7. The wiring detection method of an industrial robot according to claim 6, characterized in that: Also includes: A brake closing instruction 2 is generated, so that all axes of the industrial robot that are currently performing a braking operation are controlled by the brake closing instruction 2 to stop the braking operation.

8. The wiring detection method for an industrial robot according to any one of claims 1 to 7, characterized in that: The encoder of the industrial robot and the shaft angle of the industrial robot have the following relationship: the pulse number of the industrial robot is the circumferential angle of the industrial robot / 360°*the maximum number of single turns of the encoder*the reduction ratio of the industrial robot.

9. The wiring detection method for an industrial robot according to any one of claims 1 to 7, characterized in that: After determining that there is no abnormality in the motor brake line of the axis to be detected and the wiring between the encoder of the axis to be detected and the servo driver, the method further includes: Detecting whether the axis to be detected is the last axis of the industrial robot, and obtaining a detection result; When the detection result indicates that the axis to be detected is the last axis of the industrial robot, ending the wiring detection operation of the industrial robot; When the detection result indicates that the axis to be detected is the last axis of the industrial robot, the connection detection is continued for the axis adjacent to the axis to be detected and not subjected to analytical detection.

10. A wiring detection device for an industrial robot, characterized in that: The industrial robot comprises a plurality of mechanical arms, each of the plurality of mechanical arms is provided with a servo motor, the servo motor is connected with an encoder, the industrial robot is connected with a servo driver via a connecting cable, and the motion controller of the industrial robot is connected with the servo driver via a network cable, including: A first acquisition module is used to acquire a motor signal detection instruction and a brake normal opening threshold of the axis to be detected of the industrial robot; A first processing module is used to send a braking instruction to the axis to be detected when it is determined according to the motor signal detection instruction that the motor signal detection flag of the axis to be detected is a preset value one, wherein the preset value one is a value pre-set and used to indicate that the axis to be detected can perform a braking operation; A second acquisition module is used to acquire the current position value of the axis to be detected generated under the brake command; A first determination module is used to determine that there is no abnormality in the wiring between the motor brake line of the axis to be detected and the encoder of the axis to be detected and the servo driver when the position deviation between the current position value and the initial position value of the axis to be detected exceeds the normal brake opening threshold; The second processing module is used to determine that there is an abnormality in the wiring between the motor brake line of the axis to be detected and the encoder of the axis to be detected and the servo driver when the position deviation between the current position value and the initial position value of the axis to be detected does not exceed the normal opening threshold of the brake, and generate an alarm message to prompt that there is an abnormality in the wiring between the motor brake line of the axis to be detected and the encoder of the axis to be detected and the servo driver.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the wiring detection method for an industrial robot according to any one of claims 1 to 9.

12. A processor, characterized in that: The processor is used to run a program, wherein the program executes the wiring detection method for an industrial robot according to any one of claims 1 to 9 when running.

13. A computer program product comprising computer instructions, characterized in that: When the computer instructions are executed by the processor, the wiring detection method for an industrial robot according to any one of claims 1 to 9 is executed.