Motor cable, automation equipment, motor identity automatic identification method and storage medium
By setting up a storage module in the plug of the motor cable to store the nameplate information of the motor, automatic identification and configuration between the motor and the motor driver is realized, the complexity and error risks of traditional manual configuration are solved, and the reliability and stability of the system are improved.
Patent Information
- Application Number
- CN202510064025.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-15
- Publication Date
- 2025-04-18
AI Technical Summary
In traditional motor drive systems, manual configuration between the motor and the motor driver is required, which increases the risk of operational complexity and misconfiguration, and increases hardware design complexity and cost in the prior art.
By setting up a storage module in the plug of the motor cable, the nameplate information of the motor is stored, and automatic identification and configuration between the motor and the motor driver is realized.
It realizes automatic identification and configuration of motor parameters, reduces the possibility of human error, improves the reliability and stability of the system, and reduces hardware costs.
Smart Images

Figure CN119852800A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of automation equipment, and in particular to a motor cable, automation equipment, a method for automatically identifying the identity of a motor, and a computer-readable storage medium. Background Art
[0002] The motor is the power source that drives the rotation or linear motion of machines and equipment. In the motor drive system, the motor driver is responsible for converting electrical energy into mechanical energy, controlling and managing the operation of the motor, and thus driving the operation of the equipment. Through the motor driver, the motor's speed, torque, power output and other parameters can be accurately controlled to achieve high efficiency, low noise and good stability.
[0003] In order to ensure the stability and efficiency of the motor drive system, the motor and the motor driver need to be well matched. The matching of the motor and the motor driver is a key link to ensure the efficient and stable operation of electromechanical equipment, and it is necessary to comprehensively consider multiple factors such as power, voltage, current, speed, torque, etc. If the parameters do not match, it may cause system performance to decline and even cause safety hazards. Summary of the invention
[0004] The present application provides a motor cable, automation equipment, a method for automatic motor identification, and a computer-readable storage medium, which can realize automatic identification and configuration between a motor and a motor driver, so as to solve the technical problems in traditional solutions that require additional hardware design, increase product complexity and cost, and use manual configuration, which causes operational inconvenience and risks caused by incorrect configuration.
[0005] In a first aspect, an embodiment of the present application provides a motor cable for connecting a motor and a motor driver, wherein the motor and the motor driver respectively have plugs; the motor cable comprises: The cable body includes a conductor, an insulating layer, a shielding layer and a sheath arranged in sequence; A cable plug, comprising a first sub-plug and a second sub-plug respectively connected to two ends of the cable body; the first sub-plug is pluggably connected to the plug of the motor, and the second sub-plug is pluggably connected to the plug of the motor driver; A storage module is arranged in the first sub-plug and / or the second sub-plug; the storage module stores nameplate information representing the motor matching the motor cable; wherein the nameplate information can be identified when the motor is connected to the motor driver through the cable body and the cable plug.
[0006] In some embodiments, the nameplate information includes parameter information of the motor and parameter information of a motor encoder matched with the motor; The parameter information of the motor includes at least one of the motor model, rated electrical parameters, rated frequency and rated speed; The parameter information of the motor encoder includes at least one of the type, resolution, number of pulses and signal output form of the motor encoder.
[0007] In some embodiments, the nameplate information includes parameter information of various motor encoders.
[0008] In some embodiments, the storage module includes a communication chip for performing data transmission with the motor driver via a preset communication protocol.
[0009] In some embodiments, the communication chip is a single bus chip.
[0010] In a second aspect, an embodiment of the present application further provides an automation device, including: Motor; The motor cable according to any embodiment of the first aspect, wherein the storage module of the motor cable stores nameplate information representing the motor; The motor driver is used to automatically identify the nameplate information when connected to the motor through the motor cable, and automatically configure the motor parameters according to the nameplate information.
[0011] In a third aspect, an embodiment of the present application further provides a method for automatically identifying the identity of a motor, which is applied to a motor driver; the motor driver is connected to the motor through a motor cable as described in any embodiment of the first aspect; the method comprises: Acquire the connection status of the motor driver; the connection status includes whether the motor cable is successfully connected to the motor; When it is determined that the motor driver is successfully connected to the motor through the motor cable, obtaining nameplate information stored in the motor cable; According to the nameplate information, the motor parameters are automatically configured.
[0012] In some embodiments, after obtaining the nameplate information stored in the motor cable, the method further includes: Verifying the acquired nameplate information according to a pre-stored configuration template; After successful verification, the motor configuration program is started.
[0013] In some embodiments, obtaining the nameplate information stored in the motor cable includes: Based on a preset communication protocol, the nameplate information stored in the motor cable is read; wherein the communication protocol includes any one of a UART protocol, a CAN bus protocol and a 1-wire protocol.
[0014] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer-executable program or instruction is stored. When the program or instruction is executed by a processor, the method for automatic motor identity recognition as described in any embodiment of the second aspect is implemented.
[0015] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method for automatic motor identity recognition as described in any embodiment of the second aspect.
[0016] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the method for automatic motor identity recognition as described in any embodiment of the second aspect.
[0017] The motor cable provided by the embodiment of the present application, the automation equipment including the motor cable, and the method for automatically identifying the motor identity through the motor cable, wherein the motor cable includes a cable body, a first sub-plug and a second sub-plug connected at both ends of the cable body, and a storage module; the storage module is arranged in the first sub-plug and / or the second sub-plug; the storage module stores the nameplate information representing the motor matching the motor cable; when the motor is connected to the motor driver through the cable body and the cable plug, the nameplate information of the motor in the storage module can be automatically identified by the motor driver, so that the motor driver automatically configures the motor parameters according to the nameplate information, such as automatically configuring the pulse control equivalent of the motor. The present application realizes the automatic identification and configuration of the motor parameters in a low-cost manner by building a memory module in the cable plug, avoiding the high cost of equipping each motor with an electronic nameplate or setting a memory in the matching motor encoder; and the configuration process does not require manual input of parameters, reducing the possibility of human error and improving the reliability and stability of the system; in the face of many different types of motors or motor encoders, only the cable with the corresponding electronic nameplate information needs to be replaced, which also improves the compatibility and flexibility of the system.
[0018] In addition, the present application also provides a computer-readable storage medium, a computer program product, and a chip, which have the same beneficial effects as the above-mentioned clock error compensation method. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0020] Figure 1 A schematic diagram of the structure of a motor cable provided in one embodiment of the present application.
[0021] Figure 2 A schematic diagram of the structure of a motor cable provided in another embodiment of the present application.
[0022] Figure 3 A schematic diagram of the structure of a motor automation device provided in one embodiment of the present application.
[0023] Figure 4 A flowchart of a method for automatically identifying the identity of a motor provided in one embodiment of the present application.
[0024] Figure 5 A flowchart of a method for automatically identifying the identity of a motor provided in another embodiment of the present application.
[0025] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0026] The present application is further described in detail below by specific embodiments in conjunction with the accompanying drawings. Wherein similar elements in different embodiments adopt associated similar element numbers. In the following embodiments, many detailed descriptions are intended to enable the present application to be better understood. However, those skilled in the art can easily recognize that some of the features can be omitted in different situations, or can be replaced by other elements, materials, and methods. In some cases, some operations related to the present application are not shown or described in the specification, in order to avoid the core part of the present application being overwhelmed by too much description, and for those skilled in the art, it is not necessary to describe these related operations in detail, and they can fully understand the related operations based on the description in the specification and the general technical knowledge in the art.
[0027] In addition, the features, operations or characteristics described in the specification can be combined in any appropriate manner to form various implementations. At the same time, the steps or actions in the method description can also be interchanged or adjusted in a manner that is obvious to those skilled in the art. Therefore, the various sequences in the specification and the drawings are only for the purpose of clearly describing a certain embodiment and are not meant to be a required sequence, unless otherwise specified that a certain sequence must be followed.
[0028] The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable when appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are usually a class, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated before and after are in an "or" relationship. The "connection" and "connection" mentioned in this application, unless otherwise specified, include direct and indirect connections (connections).
[0029] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0030] Motors, motor drivers and motor controllers are key components in motor drive systems. They each have different tasks, but they are interdependent and complement each other to achieve efficient and stable operation of the motor.
[0031] Motors are the power source that drives machines and equipment to rotate or move linearly. As the "power source" of the electric system, they are mainly responsible for converting electrical energy into mechanical energy. This energy conversion enables motors to drive various loads, such as mechanical equipment, transportation vehicles, etc. There are different types and performances of motors, including DC motors, AC motors, stepper motors, servo motors, etc. Each motor has its specific application scenarios and advantages.
[0032] A motor driver is a device that can provide electrical energy, signals, and control signals. It plays the role of a "commander". It is responsible for receiving instructions from controllers (such as PLCs, microcontrollers, etc.) and converting these instructions into signals that the motor can understand. These signals include control instructions such as starting, stopping, accelerating, and decelerating the motor, as well as parameters such as current and voltage required for the motor to operate. The motor driver ensures that the motor can operate as expected by precisely controlling these parameters.
[0033] The relationship between motors and motor drivers can be summarized as "working together and relying on each other". That is, the motor needs precise control signals from the motor driver to operate properly. Without the motor driver, the motor may not start or operate as expected. The motor driver needs the motor as an actuator to convert the electrical energy output by the driver into mechanical energy. Without the motor, the motor driver loses its meaning.
[0034] More importantly, the matching between the motor and the motor driver is directly related to the performance, efficiency and stability of the entire electric system. If the motor and the motor driver do not match, the motor may fail to start, run unstably, have reduced efficiency or even be damaged. A matching motor driver can achieve precise control of the motor, including speed control, torque control and position control. This helps to improve the response speed, control accuracy and stability of the system. At the same time, it can also maximize the performance of the motor and improve the operating efficiency of the system. By optimizing the operating parameters of the motor, such as current, voltage and speed, energy consumption can be reduced and energy utilization can be improved. In general, the matching between the motor and the motor driver is of great significance in ensuring the normal operation of the system, improving system performance, enhancing system stability, extending equipment life and reducing maintenance costs. Therefore, when selecting the motor and the driver, the compatibility between them should be fully considered to ensure the best performance of the system.
[0035] Based on the importance of matching between the motor and the motor driver, how to obtain the basic information of the connected motor after the motor and the motor driver are connected is the prerequisite for completing the matching of the motor and the motor driver. In some prior arts, the electronic nameplate containing the basic information of the motor is pre-stored in the motor encoder of the motor. Since the motor encoder is a key component responsible for feedback information such as motor speed and position, it has a built-in memory. During the production stage of the motor encoder, the electronic nameplate information of the motor matched with it is written into the memory for later connection and matching between the motor and the motor driver, which increases the complexity of the hardware design and the manufacturing cost. At the same time, not all motor encoders have built-in memory. In this case, the configuration of the motor driver can only be completed manually, which undoubtedly increases the probability of error.
[0036] The present application proposes a motor cable, whose built-in memory contains the nameplate information of the motor, and can provide the motor information to the motor driver to complete the configuration when the motor driver is connected to the motor, so as to solve the shortcomings of the above-mentioned prior art.
[0037] Figure 1 This is a schematic diagram of the structure of a motor cable provided by an embodiment of the present application. Figure 1As shown, the motor cable provided in this embodiment is used to connect the motor and the motor driver, and can realize power transmission and signal transmission between the motor and the motor driver, which plays an important role in ensuring system stability and improving system efficiency. The motor cable provided in this embodiment includes a cable body 110, a cable plug 120 and a storage module 130.
[0038] In this embodiment, the cable body 110 includes a conductor, an insulating layer, a shielding layer and a sheath arranged in sequence. Among them, the conductor is used to transmit current to drive the motor; the insulating layer is coated on the outside of the conductor to provide electrical insulation; the shielding layer is arranged on the outside of the insulating layer to reduce electromagnetic interference; the sheath is coated on the outside of the shielding layer to provide mechanical protection and environmental protection; the conductor, the insulating layer, the shielding layer and the sheath are arranged in sequence to form a continuous cable structure to connect the motor and the motor driver. In some embodiments, the conductor is formed by twisting multiple strands of fine copper wires, which can improve the current transmission efficiency and the flexibility of the cable. The insulation layer is made of thermoplastic material, such as polyethylene (PE) or polyvinyl chloride (PVC), which has excellent electrical insulation and heat resistance. The shielding layer is a tinned copper wire braided layer with a braiding density greater than or equal to 85%, which can effectively shield external electromagnetic interference. The sheath is generally made of wear-resistant, oil-resistant, and chemical-resistant materials, such as polyurethane (PU) or vinyl chloride (PVC), to protect the cable from mechanical damage and environmental erosion. The length of the cable body 110 can be customized according to actual application requirements to meet the connection distance between different motors and motor drivers, and should not be too long or too short. A cable that is too long will increase resistance and inductance, affecting the transmission quality of the signal; a cable that is too short may limit the installation position of the motor.
[0039] Cable plugs 120 are provided at both ends of the cable body 110, including a first sub-plug 1201 pluggably connected to the plug of the motor and a second sub-plug 1202 pluggably connected to the plug of the motor driver, so as to realize a reliable connection between the motor and the motor driver. Generally speaking, the first sub-plug 1201 and the second sub-plug 1202 are designed to be waterproof and dustproof to ensure a stable electrical connection even in harsh environments.
[0040] The storage module 130 of this embodiment is arranged in the first sub-plug 1201 and / or the second sub-plug 1202, and the storage module 130 stores nameplate information representing the motor matching the motor cable; wherein the nameplate information can be identified when the motor and the motor driver are connected through the cable body 110 and the cable plug 120.
[0041] Typically, the nameplate information of the motor includes at least one of the motor model, rated electrical parameters, rated frequency, and rated speed. These parameters are the basis for the correct configuration and operation of the motor driver. Transmitting the nameplate information to the motor driver can ensure that the motor driver can accurately control and adjust according to the actual parameters of the motor to avoid abnormal conditions such as overload, undervoltage, and overcurrent. By transmitting the nameplate information, the motor driver can adjust and optimize the algorithm according to the characteristics of the motor, thereby improving the operating efficiency of the motor, reducing energy consumption, and extending the service life of the motor. At the same time, during the operation of the motor, the motor driver can also detect and diagnose possible faults of the motor in a timely manner by monitoring the difference between the actual operating parameters of the motor and the nameplate parameters. For example, when the motor current increases abnormally, the motor driver can determine whether the motor has problems such as overload or short circuit, and take corresponding protective measures.
[0042] The motor cable of this embodiment is matched with the motor. When the motor and the motor driver are connected through the motor cable, the nameplate information of the motor in the storage module 130 can be automatically recognized by the motor driver to facilitate automatic configuration of the subsequent pulse control equivalent of the motor. Automatic recognition and configuration of the motor is achieved in a low-cost manner without the need to manually input the encoder parameters, thereby reducing the possibility of human errors and improving the reliability and stability of the system.
[0043] In the actual application scenarios of motor control, especially in some high-precision and high-stability application scenarios such as robot control and CNC machine tools, motor encoders are indispensable. As a feedback device, the motor encoder and the motor driver together form a closed-loop control system. The motor encoder can accurately measure the position, speed and acceleration of the motor and transmit these real-time data to the motor driver. After receiving this information, the motor driver can respond quickly and accurately control the motion state of the motor to ensure that the motor can achieve the required high-precision control in various application scenarios. Therefore, transmitting the parameter information of the motor encoder to the motor driver plays a vital role in the motor control system. This can not only achieve precise control, improve system stability and optimize system performance, but also realize closed-loop control and fault diagnosis and monitoring functions.
[0044] In some embodiments, based on some motor control application scenarios, the motor needs to be equipped with a motor encoder that matches it. In this case, the nameplate signal stored in the motor cable storage module 130 of any of the above embodiments also includes parameter information of the motor encoder that matches the motor. The parameter information of the motor encoder includes at least one of the type, resolution, number of pulses, and signal output form of the motor encoder.
[0045] Moreover, different types of motors may require different types of encoders to match, and the same type of motors may also match different types of encoders. Therefore, there may be multiple matching motor encoders for a motor of one type / parameter, so the matching motor encoder parameter information contained in the nameplate information can simultaneously save the parameter information of multiple motor encoders.
[0046] That is, before controlling the motor movement, the motor driver automatically identifies the nameplate information stored in the motor cable to complete the configuration of the motor and motor encoder. In the face of many different types of motors or motor encoders, only the cable with the corresponding electronic nameplate information needs to be replaced, which also improves the compatibility and flexibility of the system.
[0047] Figure 2 This is a schematic diagram of the structure of a motor cable provided in another embodiment of the present application. Figure 2 As shown, in order to enable the nameplate information in the motor cable to be automatically read and identified by the motor driver, a communication chip is provided in the storage module 130 of the motor cable, and data is transmitted between the microcontroller in the motor driver and the storage module 130 through a preset communication protocol. The communication protocol ensures that data can be transmitted efficiently and accurately between different components.
[0048] In some embodiments, the communication protocol may adopt any one of the UART protocol, CAN bus protocol and 1-wire protocol. Among them, the UART (Universal Asynchronous Receiver / Transmitter) protocol is a widely used serial communication protocol, which does not require a clock signal to synchronize data transmission, but relies on signals such as the start bit, data bit, check bit (optional) and stop bit to identify the start and end of the data and perform error checking. In UART communication, data transmission is achieved through level changes on the data line. The CAN (Controller Area Network) bus protocol is a commonly used industrial control field bus communication protocol, which has the characteristics of high speed and reliability, and supports multiple slave nodes; in the motor drive system, the CAN bus protocol can be used to realize real-time data transmission between the microcontroller and the storage module 130; compared with UART, CAN is more suitable for occasions with high reliability and high real-time requirements, such as automotive electronic control systems and industrial automation control systems.
[0049] The 1-Wire protocol is a single-wire interface, half-duplex, bidirectional, low-speed, low-power and long-distance serial data communication protocol, which is mainly used in 1-Wire communication chips. The 1-Wire protocol supports half-duplex bidirectional communication, that is, data can be transmitted in both directions on the same data line, but only one direction of data can be transmitted at the same time. 1-Wire devices usually have low power consumption characteristics, which makes them very suitable for portable devices and battery-powered applications. In addition, devices on the 1-Wire bus can obtain energy through the power supply line without the need for an additional power line. The 1-Wire protocol supports long-distance communication, up to 100 meters (the specific distance depends on the bus load and signal quality), which provides convenience for applications that transmit data over long distances.
[0050] In summary, the motor cable provided by any of the above embodiments is based on the nameplate information of the motor and the motor encoder pre-stored in the storage module set in the cable plug, and can realize in a low-cost manner that when the motor and the motor driver are connected through the motor cable, the nameplate information of the motor is automatically read and identified by the motor driver, so that the motor driver automatically configures the motor parameters according to the nameplate information, such as automatically configuring the pulse control equivalent of the motor. This method avoids the high cost of equipping each motor with an electronic nameplate or setting up a memory in the matching motor encoder; and the configuration process does not require manual input of parameters, which reduces the possibility of human error and improves the reliability and stability of the system; in the face of many different types of motors or motor encoders, it is only necessary to replace the cable with the corresponding electronic nameplate information, which also improves the compatibility and flexibility of the system.
[0051] Figure 3 This is a schematic diagram of the structure of an automation device provided by an embodiment of the present application. Figure 3 As shown, the automation device provided in this embodiment includes a motor 310 , a motor cable 320 matched therewith, and a motor driver 330 . The cable includes a cable body 3201 , a cable plug 3202 , and a storage module 3203 .
[0052] The cable body 3201 is used to transmit current and signals to drive the motor 310. The cable plug 3202 includes a first sub-plug and a second sub-plug respectively connected to the two ends of the cable body 3201, the first sub-plug is plug-in connected to the plug of the motor 310, and the second sub-plug is plug-in connected to the plug of the motor driver 330. The storage module 3203 is arranged in the first sub-plug and / or the second sub-plug, and the storage module 3203 stores the nameplate information of the motor 310 matching the motor cable; wherein the nameplate information can be identified when the motor 310 and the motor driver 330 are connected through the cable body 3201 and the cable plug 3202. When the motor 310 and the motor driver 330 are connected through the motor cable, the nameplate information of the motor 310 in the storage module 3203 can be automatically identified by the motor driver 330, so as to automatically configure the pulse control equivalent of the subsequent motor 310, and realize the automatic identification and configuration of the motor 310 in a low-cost manner, without the need to manually input the parameters of the encoder, reducing the possibility of human error, and improving the reliability and stability of the system.
[0053] In some embodiments, the nameplate information includes at least one of the motor model, rated electrical parameters, rated frequency, and rated speed.
[0054] In some embodiments, the automation device further includes a motor encoder 340. The motor encoder 340, as a feedback device, forms a closed-loop control system together with the motor driver 330. The motor encoder 340 can accurately measure the position, speed and acceleration of the motor 310, and transmit these real-time data to the motor driver 330.
[0055] At this time, the nameplate signal stored in the motor cable storage module 3203 of any of the above embodiments also includes parameter information of the motor encoder 340 matched with the motor 310. The parameter information of the motor encoder 340 includes at least one of the type, resolution, pulse number and signal output form of the motor encoder.
[0056] In some embodiments, the storage module 3203 includes a communication chip, and performs data transmission with the motor driver 330 through a preset communication protocol. Any one of the UART protocol, CAN bus protocol and 1-wire protocol can be used to achieve data transmission communication.
[0057] In some embodiments, a single bus chip is used as a communication chip, which can be a 1-Wire chip based on the 1-Wire protocol. The 1-Wire protocol supports half-duplex bidirectional communication, that is, data can be transmitted in both directions on the same data line, but only one direction of data can be transmitted at the same time. 1-Wire devices generally have low power consumption characteristics, which makes them very suitable for portable devices and battery-powered applications. In addition, devices on the 1-Wire bus can obtain energy through the power supply line without the need for an additional power supply line. The 1-Wire protocol supports long-distance communication, up to 100 meters (the specific distance depends on the bus load and signal quality), which provides convenience for applications that transmit data over long distances.
[0058] Figure 4 This is a flow chart of a method for automatically identifying the identity of a motor provided by an embodiment of the present application. Figure 4 As shown, the method for automatic motor identification provided in this embodiment is applied to a motor driver, and the motor driver is connected to the motor and / or the motor encoder through the motor cable described in any of the above embodiments. The process of automatic motor identification by the motor driver on the motor and / or the motor encoder specifically includes the following steps: Step S410, obtaining the connection status of the motor driver; the connection status includes whether the motor is successfully connected to the motor through the motor cable.
[0059] Step S420: When it is determined that the motor driver is successfully connected to the motor through the motor cable, obtain the nameplate information stored in the motor cable.
[0060] Step S430: Complete automatic configuration of the pulse control equivalent of the motor according to the nameplate information.
[0061] It is understandable that the motor driver includes at least one microprocessor, which is responsible for receiving control signals, processing control logic, and outputting corresponding drive signals to drive the motor to run. Before driving the motor to run according to the control signal, it is first necessary to clarify the key parameters such as the type of motor (such as stepper motor, servo motor, etc.), step angle, lead screw pitch (for linear motor), etc., that is, the nameplate information of the motor. In this embodiment, the motor driver is connected to the motor through a motor cable carrying the matching motor nameplate information. Therefore, before the motor driver automatically configures the pulse control equivalent of the motor, it is necessary to first obtain the connection state of the motor driver and the motor. In some embodiments, a port of the microprocessor is used to obtain the voltage signal of the motor driver connection port, and the connection state of the motor driver is obtained by detecting the change of the voltage signal, so as to achieve the purpose of detecting whether the motor driver is connected to the motor through the motor cable. When it is determined that the motor driver is successfully connected to the motor through the motor cable, the nameplate information of the motor matching the motor cable stored in the storage module of the cable plug of the motor cable is automatically read and identified, and then the necessary parameters for calculating the motor pulse equivalent are determined according to the acquired nameplate information, and the automatic configuration of the pulse control equivalent of the motor is completed. Through reasonable configuration and adjustment, the control accuracy and performance of the motor can be significantly improved to meet the needs of various complex application scenarios.
[0062] In some embodiments, the microprocessor of the motor driver reads the nameplate information stored in the motor cable based on a preset communication protocol, wherein the communication protocol includes any one of a UART protocol, a CAN bus protocol, and a 1-wire protocol.
[0063] Figure 5 This is a flow chart of a method for automatically identifying the identity of a motor provided by another embodiment of the present application. Figure 5 As shown, the motor identity automatic identification method provided in this embodiment includes: Step S510, obtaining the connection status of the motor driver; the connection status includes whether the motor is successfully connected to the motor through the motor cable.
[0064] Step S520: When it is determined that the motor driver is successfully connected to the motor through the motor cable, obtain the nameplate information stored in the motor cable.
[0065] Step S530: verify the acquired nameplate information according to the pre-stored configuration template.
[0066] Step S540: After the verification is successful, start the motor configuration program.
[0067] Step S550: Complete automatic configuration of the pulse control equivalent of the motor according to the nameplate information.
[0068] The method for automatic motor identification provided in this embodiment is based on the above embodiment. After automatically obtaining the nameplate information of the motor that matches the motor cable stored in the motor cable, the obtained nameplate information is further verified. After the verification is successful, the motor configuration program is started. It can be understood that, under normal circumstances, the motor driver is usually equipped with pre-stored configuration templates, which contain setting parameters that match motors of different models and specifications. These parameters may include current limit, speed limit, encoder configuration, etc., depending on the type and function of the driver. The motor driver first reads the nameplate information of the motor and matches it with the pre-stored configuration template. This step is to confirm whether the selected motor is compatible with the motor driver. After confirming that the motor is compatible with the motor driver, the motor driver will check whether the parameters on the nameplate (such as rated power, rated voltage, rated current, etc.) match the parameters in the configuration template. If there is a mismatch, the motor driver may issue a warning or error prompt, requiring the user to make necessary adjustments or select the correct configuration template. After the obtained nameplate information is successfully verified, the motor configuration program is started, and the automatic configuration of the pulse control equivalent of the motor is completed according to the obtained nameplate information. Through correct calibration and configuration, compatibility and efficient operation between motor and drive can be ensured.
[0069] In some embodiments, in addition to static parameter verification, some advanced motor drivers, after completing the automatic configuration of the motor's pulse control equivalent, monitor the motor's current, voltage, temperature and other parameters during actual operation, and verify and adjust the motor's pulse control equivalent through motor encoder feedback to ensure that they operate within a safe range.
[0070] For application scenarios that require higher accuracy and stability, more precise motor operation control is required. At this time, you can consider using a closed-loop drive or adding a position feedback device to improve control accuracy. In such scenarios, the motor is equipped with a motor encoder, which can accurately measure the position, speed and acceleration of the motor and pass this real-time data to the motor driver. After receiving this information, the motor driver can respond quickly and accurately control the motor's motion state to ensure that the motor can achieve the required high-precision control in various application scenarios.
[0071] Prior to this, the nameplate signal stored in the motor cable storage module also includes the parameter information of the motor encoder that matches the motor. The parameter information of the motor encoder includes at least one of the type, resolution, number of pulses, and signal output form of the motor encoder. When the motor driver is configuring the motor, it is also necessary to complete the configuration of the motor encoder so as to adjust the configuration parameters of the motor driver in the motor operation control.
[0072] The method for automatic motor identification provided by the above embodiment does not require manual input of encoder parameters, thus achieving automatic identification and configuration of the motor, reducing the possibility of human error and improving the reliability and stability of the system.
[0073] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of any embodiment of the above-mentioned motor driver automatic motor identity identification method can be implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0074] The processor may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0075] An embodiment of the present application also provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of any embodiment of the above-mentioned motor driver automatic motor identity identification method, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0076] It can be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0077] An embodiment of the present application also provides a computer program product, which includes computer program code and is stored in a storage medium. When the computer program code is executed on at least one processor, it can implement the various processes of any embodiment of the above-mentioned method for automatic motor identity identification by the motor driver and achieve the same technical effect. To avoid repetition, it will not be described here.
[0078] Those skilled in the art will appreciate that all or part of the functions of the various methods in the above-mentioned embodiments can be implemented by hardware or by computer programs. When all or part of the functions in the above-mentioned embodiments are implemented by computer programs, the program can be stored in a computer-readable storage medium, and the storage medium can include: read-only memory, random access memory, disk, optical disk, hard disk, etc., and the program is executed by a computer to implement the above-mentioned functions. For example, the program is stored in the memory of the device, and when the program in the memory is executed by the processor, all or part of the above-mentioned functions can be implemented. In addition, when all or part of the functions in the above-mentioned embodiments are implemented by computer programs, the program can also be stored in a storage medium such as a server, another computer, disk, optical disk, flash disk or mobile hard disk, and can be downloaded or copied and saved in the memory of the local device, or the system of the local device is updated, and when the program in the memory is executed by the processor, all or part of the functions in the above-mentioned embodiments can be implemented.
[0079] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the inspiration of the present application, ordinary technicians in the field can make several simple deductions, deformations or substitutions based on the ideas of the present application without departing from the scope of protection of the purpose of the present application and the claims. All of these are within the protection of the present application.
Claims
1. A motor cable for connecting a motor and a motor driver, wherein the motor and the motor driver respectively have plugs, characterized in that: include: The cable body includes a conductor, an insulating layer, a shielding layer and a sheath arranged in sequence; A cable plug, comprising a first sub-plug and a second sub-plug respectively connected to two ends of the cable body; the first sub-plug is pluggably connected to the plug of the motor, and the second sub-plug is pluggably connected to the plug of the motor driver; A storage module, arranged in the first sub-plug and / or the second sub-plug; The storage module stores nameplate information representing a motor that matches the motor cable; wherein the nameplate information can be identified when the motor is connected to a motor driver through the cable body and the cable plug.
2. The motor cable according to claim 1, characterized in that: The nameplate information includes parameter information of the motor and parameter information of a motor encoder matched with the motor; The parameter information of the motor includes at least one of the motor model, rated electrical parameters, rated frequency and rated speed; The parameter information of the motor encoder includes at least one of the type, resolution, number of pulses and signal output form of the motor encoder.
3. The motor cable according to claim 2, characterized in that: The nameplate information includes parameter information of various motor encoders.
4. The motor cable according to claim 1, characterized in that: The storage module includes a communication chip, and performs data transmission with the motor driver through a preset communication protocol.
5. The motor cable according to claim 5, characterized in that: The communication chip adopts a single bus chip.
6. An automated device, characterized in that: include: Motor; The motor cable according to any one of claims 1 to 5, wherein the storage module of the motor cable stores nameplate information representing the motor; The motor driver is used to automatically identify the nameplate information when connected to the motor through the motor cable, and automatically configure the motor parameters according to the nameplate information.
7. A method for automatic motor identification, applied to motor drivers; The motor driver is connected to the motor through the motor cable according to any one of claims 1 to 5; characterized in that it includes: Acquire the connection status of the motor driver; the connection status includes whether the motor cable is successfully connected to the motor; When it is determined that the motor driver is successfully connected to the motor through the motor cable, obtaining nameplate information stored in the motor cable; According to the nameplate information, the motor parameters are automatically configured.
8. The method for automatic motor identification according to claim 7, characterized in that: After obtaining the nameplate information stored in the motor cable, the method further includes: Verifying the acquired nameplate information according to a pre-stored configuration template; After successful verification, the motor configuration program is started.
9. The method for automatic motor identification according to claim 8, characterized in that: The obtaining the nameplate information stored in the motor cable includes: Based on a preset communication protocol, the nameplate information stored in the motor cable is read; wherein the communication protocol includes any one of a UART protocol, a CAN bus protocol and a 1-wire protocol.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer-executable program or instruction, and when the program or instruction is executed by a processor, the method for automatically identifying the identity of a motor as described in any one of claims 7 to 9 is implemented.