Servo motor control system and control method
Through the combination of edge computers and motion control cards, torque compensation technology and efficient data transmission protocols are used to solve the problems of single motion control function and slow data transmission in the servo system, achieving high-precision and stable servo motor control and supporting complex Motion trajectories and cross-platform porting.
Patent Information
- Application Number
- CN202410570673.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-09
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-05-09
AI Technical Summary
The motion control function of the existing servo system is single and the data transmission rate is slow, resulting in large control delays and errors, and the control method cannot be directly transplanted to different platforms.
It uses edge computers and motion control cards to realize efficient control of servo motors through torque compensation technology, uses EtherNET and EtherCAT for data transmission, supports complex motion trajectory control, and transplants systems and codes on different hardware platforms.
It improves the motion accuracy and stability of the servo motor, achieves fast and efficient data transmission and processing performance, supports complex motion trajectory control, and performs torque compensation in real time based on the servo motor parameters.
Smart Images

Figure HDA0004830738990000011 
Figure HDA0004830738990000012 
Figure HDA0004830738990000021
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automatic control technology, and in particular to a control system of a servo motor and a control method of a servo motor. Background Art
[0002] A servo system is an automatic control system that enables the output controlled quantities such as the position, orientation, and state of an object to follow any changes in the input target (or given value).
[0003] At present, servo control in servo systems mainly controls the servo motor by controlling the pulses sent to the servo driver through the PLC (Programmable Logic Controller). For example, if the servo motor rotates once every 10,000 pulses, if the PLC sends 10,000 pulses in one minute, the servo motor will complete one circle at a speed of 1 r / min. If it sends 10,000 pulses in one second, the servo motor will complete one circle at a speed of 60 r / min.
[0004] However, the above method has the following problems: the motion control function is relatively simple and can generally only achieve motion control of relatively simple trajectories; the data transmission rate is slow, resulting in large control delays and errors; the control method is targeted and the control code cannot be directly transplanted to different platforms. Summary of the invention
[0005] In order to solve the above technical problems, a first object of the present invention is to provide a control system for a servo motor.
[0006] A second objective of the present invention is to provide a control method for a servo motor.
[0007] The technical solution adopted by the present invention is as follows:
[0008] An embodiment of the first aspect of the present invention proposes a control system of a servo motor, wherein the servo motor comprises: a front wheel servo of an X-axis and a rear wheel servo of an X-axis, wherein the front wheel servo of the X-axis is configured in a torque control mode, and the rear wheel servo of the X-axis is configured in a position control mode; the control system comprises: an edge computer and a motion control card; wherein the edge computer is equipped with a Linux operating system, and the edge computer is used to obtain the torque of the front wheel servo of the X-axis and the speed of the rear wheel servo of the X-axis, and to perform torque compensation on the torque of the front wheel servo of the X-axis according to the speed of the rear wheel servo of the X-axis and generate a torque compensation instruction, and transmit the torque compensation instruction to the motion control card; the motion control card is used to convert the torque compensation instruction into a control signal and send it to the servo driver of the servo motor, so that the servo driver drives the corresponding servo motor to move according to the control signal, and transmits the data of the servo motor fed back by the servo driver back to the edge computer.
[0009] The control system of the servo motor proposed in the present invention may also have the following additional technical features:
[0010] According to one embodiment of the present invention, the edge computer is specifically used to: obtain the previous speed and current speed of the rear wheel servo of the walking X-axis, and obtain the operation mode of the servo motor according to the previous speed and the current speed, and the operation mode includes: acceleration operation mode, deceleration operation mode, uniform speed operation mode and stop operation mode; if the operation mode of the servo motor is the stop operation mode, the torque of the walking X-axis front wheel servo is set to 0; if the operation mode of the servo motor is the acceleration operation mode, the deceleration operation mode or the uniform speed operation mode, torque compensation is performed according to the current speed of the walking X-axis rear wheel servo, the target speed and the movement direction of the servo motor.
[0011] According to one embodiment of the present invention, the edge computer is specifically used for: when the operation mode of the servo motor is an acceleration operation mode, a deceleration operation mode or a uniform speed operation mode, if the current speed of the rear wheel servo of the walking X-axis is greater than 0 and less than a first speed, torque compensation is performed according to the following formula (1); if the current speed of the rear wheel servo of the walking X-axis is greater than or equal to the first speed and less than a second speed, torque compensation is performed according to the following formula (2), and the second speed is greater than the first speed; if the current speed of the rear wheel servo of the walking X-axis is greater than or equal to the second speed and less than a third speed, torque compensation is performed according to the following formula (3), and the third speed is greater than the second speed;
[0012] TargetDAC = (213.5+0.277*M1)*M2 (1)
[0013] TargetDAC = (236+0.318*(M1 - 150))*M2 (2)
[0014] TargetDAC = (286.58+0.103*(M1 - 350))*M2 (3)
[0015] Among them, TargettDAC is the compensated torque, M1 is the target speed of the rear wheel servo of the X-axis, and M2 is the movement direction of the servo motor. M2 includes -1 and 1.
[0016] According to one embodiment of the present invention, the edge computer transmits the torque compensation instruction to the motion control card via EtherNET.
[0017] According to one embodiment of the present invention, the motion control card sends the control signal to the servo driver of the servo motor via EtherCAT (Ethernet Control Automation Technology), and transmits the data of the servo motor fed back by the servo driver back to the edge computer.
[0018] The second aspect of the present invention proposes a control method for a servo motor, wherein the servo motor comprises: a front wheel servo of an X-axis and a rear wheel servo of an X-axis, wherein the front wheel servo of the X-axis is configured in a torque control mode, and the rear wheel servo of the X-axis is configured in a position control mode; the control method comprises the following steps: an edge computer obtains the torque of the front wheel servo of the X-axis and the speed of the rear wheel servo of the X-axis, and performs torque compensation on the torque of the front wheel servo of the X-axis according to the speed of the rear wheel servo of the X-axis and generates a torque compensation instruction, and transmits the torque compensation instruction to a motion control card; the motion control card converts the torque compensation instruction into a control signal and sends it to the servo driver of the servo motor, so that the servo driver drives the corresponding servo motor to move according to the control signal.
[0019] The servo motor control method proposed in the present invention may also have the following additional technical features:
[0020] According to one embodiment of the present invention, torque compensation is performed on the torque of the walking X-axis front wheel servo according to the speed of the walking X-axis rear wheel servo and a torque compensation instruction is generated, which specifically includes: acquiring the previous speed and the current speed of the walking X-axis rear wheel servo, acquiring the operation mode of the servo motor according to the previous speed and the current speed, and the operation mode includes: acceleration operation mode, deceleration operation mode, uniform speed operation mode and stop operation mode; if the operation mode of the servo motor is the stop operation mode, the torque of the walking X-axis front wheel servo is set to 0; if the operation mode of the servo motor is the acceleration operation mode, the deceleration operation mode or the uniform speed operation mode, torque compensation is performed according to the current speed of the walking X-axis rear wheel servo, the target speed and the movement direction of the servo motor.
[0021] According to one embodiment of the present invention, if the operation mode of the servo motor is an acceleration operation mode, a deceleration operation mode or a uniform speed operation mode, torque compensation is performed according to the current speed of the walking X-axis rear wheel servo, the target speed and the movement direction of the servo motor, specifically including: when the operation mode of the servo motor is a uniform speed operation mode, if the current speed of the walking X-axis rear wheel servo is greater than 0 and less than a first speed, torque compensation is performed according to the following formula (1); if the current speed of the walking X-axis rear wheel servo is greater than or equal to the first speed and less than the second speed, torque compensation is performed according to the following formula (2), and the second speed is greater than the first speed; if the current speed of the walking X-axis rear wheel servo is greater than or equal to the second speed and less than the third speed, torque compensation is performed according to the following formula (3), and the third speed is greater than the second speed;
[0022] TargetDAC = (213.5+0.277*M1)*M2 (1)
[0023] TargetDAC = (236+0.318*(M1 - 150))*M2 (2)
[0024] TargetDAC = (286.58+0.103*(M1 - 350))*M2 (3)
[0025] Among them, TargettDAC is the compensated torque, M1 is the target speed of the rear wheel servo of the X-axis, and M2 is the movement direction of the servo motor. M2 includes -1 and 1.
[0026] According to one embodiment of the present invention, the edge computer transmits the torque compensation instruction to the motion control card via EtherNET.
[0027] According to one embodiment of the present invention, the motion control card sends the control signal to the servo driver of the servo motor through EtherCAT, and transmits the data of the servo motor fed back by the servo driver back to the edge computer.
[0028] Beneficial effects of the present invention:
[0029] The present invention controls the servo motor with the edge computer and motion control card as the core, has good stability, efficient data transmission and processing performance, can transplant the system and code on different hardware platforms, can realize more complex motion trajectory control through the motion control card, and can perform torque compensation for the servo motor according to the servo motor parameters in real time, thereby improving the motion accuracy and stability of the servo motor. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 is a block diagram of a control system of a servo motor according to an embodiment of the present invention;
[0031] Figure 2 is a schematic diagram of the control principle of a servo motor control system according to an embodiment of the present invention;
[0032] Figure 3 is a flow chart of a method for controlling a servo motor according to an embodiment of the present invention. DETAILED DESCRIPTION
[0033] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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 are within the scope of protection of the present invention.
[0034] Figure 1 is a block diagram of a control system of a servo motor according to an embodiment of the present invention, wherein Figure 1 As shown, the servo motor includes: a front wheel servo of the X-axis and a rear wheel servo of the X-axis. The front wheel servo of the X-axis is configured as a torque control mode, and the rear wheel servo of the X-axis is configured as a position control mode.
[0035] like Figure 1As shown, the servo motor can also include: telescopic Y-axis servo, lifting Z-axis front wheel servo, and rotating R-axis front wheel stepper. Each servo is an axis. According to the naming rules of different interfaces of the motion control card, the walking X-axis front wheel servo, the walking X-axis rear wheel servo, the telescopic Y-axis servo, the lifting Z-axis front wheel servo, and the rotating R-axis front wheel stepper are named: 8-axis, 9-axis, 10-axis, 11-axis, and 12-axis respectively. In the present invention, the 8-axis is configured in torque control mode, and the remaining 4 axes are configured in position control mode.
[0036] The control system includes: an edge computer and a motion control card; wherein the edge computer is equipped with a Linux operating system, and the edge computer is used to obtain the torque of the front wheel servo of the X-axis and the speed of the rear wheel servo of the X-axis, and perform torque compensation on the torque of the front wheel servo of the X-axis according to the speed of the rear wheel servo of the X-axis, generate a torque compensation instruction, and transmit the torque compensation instruction to the motion control card; the motion control card is used to convert the torque compensation instruction into a control signal and send it to the servo driver of the servo motor, so that the servo driver drives the corresponding servo motor to move according to the control signal, and transmits the data of the servo motor fed back by the servo driver back to the edge computer.
[0037] Specifically, the edge computer is equipped with a Linux operating system, and its processor main processing unit has a main frequency of up to 1.4GHz. It has the characteristics of cross-platform hardware support, multi-user multi-tasking, reliable security, good stability, etc. The edge computer has rich interface configurations such as 2 Gigabit Ethernet ports, 1 RS232 interface, 4 RS485 interfaces, and HDMI and IPS video interfaces. The edge computer can solve the problem of insufficient IO ports through the IO (input / output) expansion board. With the help of the axis card, it can efficiently and quickly transmit IO signals with the edge computer, and has good processor performance to support large-scale data calculations.
[0038] The motion control card is a hardware device that is inserted into the expansion slot of the edge computer or connected to an external device of the edge computer through an interface. The motion control card is responsible for receiving the torque compensation command sent by the edge computer, converting it into a control signal to control the movement of the servo motor and sending it to the servo drive, and transmitting the data fed back by the servo drive back to the edge computer. In summary, the motion control card is a hardware device used to control various electromechanical devices such as sensors, servo motors and stepper motors. The motion control card has more advanced motion control functions and better cost performance.
[0039] like Figure 1As shown in the figure, the entire control system is centered on the edge computer and axis card to realize the servo motor control of the entire device and the acquisition and triggering of various sensor signals, thus completing the motion control of the entire device. The edge computer performs torque compensation on the torque of the front wheel servo of the X-axis according to the speed of the rear wheel servo of the X-axis received, and generates a torque compensation instruction. The torque compensation instruction is transmitted to the motion control card via Gigabit Ethernet. The motion control card runs a multi-threaded basic program, performs secondary processing on the received torque compensation instruction, converts it into a control signal that can be recognized by the servo driver and sends it to the servo driver of the servo motor, which drives the motor to operate. The entire system has good stability, efficient data transmission and processing performance, and can be transplanted on different hardware platforms for system and code. More complex motion trajectory control can be achieved through the motion control card, and the servo motor can be torque compensated in real time according to the servo motor parameters, thereby improving the motion accuracy and stability of the servo motor.
[0040] In a specific embodiment of the present invention, the edge computer transmits the torque compensation instruction to the motion control card via EtherNET. The motion control card sends the control signal to the servo driver of the servo motor via EtherCAT, and transmits the data of the servo motor fed back by the servo driver back to the edge computer. Thus, more efficient data transmission is achieved.
[0041] The following describes how an edge computer generates a torque compensation instruction in conjunction with a specific embodiment.
[0042] According to one embodiment of the present invention, Figure 2 As shown, edge computers are specifically used for:
[0043] S1, obtain the previous speed and current speed of the rear wheel servo of the X-axis, and obtain the servo motor operation mode according to the previous speed and the current speed. The operation modes include: acceleration operation mode, deceleration operation mode, uniform speed operation mode and stop operation mode.
[0044] S2, if the operation mode of the servo motor is the stop operation mode, the torque of the front wheel servo of the X-axis is set to 0.
[0045] S3, if the operation mode of the servo motor is the acceleration operation mode, the deceleration operation mode or the uniform speed operation mode, the torque compensation is performed according to the current speed of the rear wheel servo of the X-axis, the target speed and the movement direction of the servo motor.
[0046] like Figure 2 As shown, the edge computer is specifically used for: when the operation mode of the servo motor is an acceleration operation mode, a deceleration operation mode or a uniform speed operation mode, wherein,
[0047] S31: If the current speed of the rear wheel servo of the X-axis is greater than 0 and less than the first speed, torque compensation is performed according to the following formula (1).
[0048] S32: If the current speed of the rear wheel servo of the X-axis is greater than or equal to the first speed and less than the second speed, torque compensation is performed according to the following formula (2), and the second speed is greater than the first speed.
[0049] S33, if the current speed of the rear wheel servo of the X-axis is greater than or equal to the second speed and less than the third speed, torque compensation is performed according to the following formula (3), and the third speed is greater than the second speed.
[0050] Formulas (1), (2) and (3) are as follows:
[0051] TargetDAC = (213.5+0.277*M1)*M2 (1)
[0052] TargetDAC = (236+0.318*(M1 - 150))*M2 (2)
[0053] TargetDAC = (286.58+0.103*(M1 - 350))*M2 (3)
[0054] Among them, TargettDAC is the compensated torque, M1 is the target speed of the rear wheel servo of the X-axis, and M2 is the movement direction of the servo motor. M2 includes -1 and 1.
[0055] In the present invention, the first speed, the second speed and the third speed are set in advance, for example, the first speed is 150 units, 350 units and 3000 units, and the third speed is the maximum speed of the rear wheel servo of the X-axis.
[0056] When the servo motor is in the acceleration operation mode, the deceleration operation mode or the constant speed operation mode, in addition to using the above formulas (1)-(3) to perform torque compensation, the following method can also be used to further compensate the torque of the servo motor.
[0057] According to one embodiment of the present invention, if the operation mode of the servo motor is an acceleration operation mode, a deceleration operation mode or a uniform speed operation mode, the target speed of the servo motor is obtained, and torque compensation is performed on the servo motor according to the target speed and torque compensation table.
[0058] Among them, the torque compensation table is pre-stored in advance, and the torque compensation table is specifically obtained in the following manner: controlling the servo motor to run at a target speed, obtaining the torque current data of the X-axis rear wheel servo, and then obtaining the feedback torque current curve of the X-axis rear wheel servo; performing sliding average processing on the data of multiple rotors in the feedback torque current curve data, and judging whether the feedback torque current curve converges; if converged, repeating the above steps at multiple pre-selected target speeds, and then obtaining the torque compensation table at different target speeds; storing the torque compensation table at all target speeds.
[0059] Further, the process of judging whether the feedback torque current curve is converged includes: calculating the average value of the feedback torque current at the same angle in multiple feedback torque current curves to obtain the initial average value feedback torque current curve, and in the subsequent continuous rotation process, continuing to update the average value feedback torque current curve with the new feedback torque current curve, and calculating the absolute value of the difference between the new feedback torque current curve and the average value feedback torque current curve at each same angle, accumulating the absolute value of the difference obtained at each angle, and calculating the cumulative sum once for each cycle of feedback torque current curve collected, judging whether the difference between the cumulative sum of this cycle and the cumulative sum of the previous cycle is less than K1 times the cumulative sum, if so, it is considered that the curve is converged, if not, it is considered that the torque fluctuation is irregular or affected by external forces, it is considered that the curve is not converged, and the torque compensation table acquisition process is re-executed. K1 can be 15%-25%, for example 20%.
[0060] In summary, the control system of the servo motor according to the embodiment of the present invention controls the servo motor with the edge computer and the motion control card as the core, has good stability, efficient data transmission and processing performance, can be transplanted on different hardware platforms, and can achieve more complex motion trajectory control through the motion control card. The servo motor can be compensated for torque in real time according to the servo motor parameters, thereby improving the motion accuracy and stability of the servo motor.
[0061] Corresponding to the above-mentioned servo motor control system, the present invention also provides a servo motor control method. Since the method embodiment of the present invention corresponds to the above-mentioned system embodiment, details not disclosed in the method embodiment can be referred to the above-mentioned method embodiment, and will not be repeated in the present invention.
[0062] In an embodiment of the present invention, the servo motor includes: a front wheel servo of the X-axis and a rear wheel servo of the X-axis, the front wheel servo of the X-axis is configured as a torque control mode, and the rear wheel servo of the X-axis is configured as a position control mode;
[0063] like Figure 3 As shown, the control method includes the following steps:
[0064] S10, the edge computer obtains the torque of the front wheel servo of the X-axis and the speed of the rear wheel servo of the X-axis, and performs torque compensation on the torque of the front wheel servo of the X-axis according to the speed of the rear wheel servo of the X-axis and generates a torque compensation instruction, and transmits the torque compensation instruction to the motion control card.
[0065] S20, the motion control card converts the torque compensation instruction into a control signal and sends it to the servo driver of the servo motor, so that the servo driver drives the corresponding servo motor to move according to the control signal.
[0066] According to one embodiment of the present invention, torque compensation is performed on the torque of the front wheel servo of the X-axis according to the speed of the rear wheel servo of the X-axis and a torque compensation instruction is generated, which specifically includes: obtaining the previous speed and the current speed of the rear wheel servo of the X-axis, and obtaining the operation mode of the servo motor according to the previous speed and the current speed, and the operation mode includes: acceleration operation mode, deceleration operation mode, uniform speed operation mode and stop operation mode; if the operation mode of the servo motor is the stop operation mode, the torque of the front wheel servo of the X-axis is set to 0; if the operation mode of the servo motor is the acceleration operation mode, the deceleration operation mode or the uniform speed operation mode, torque compensation is performed according to the current speed of the rear wheel servo of the X-axis, the target speed and the movement direction of the servo motor.
[0067] According to one embodiment of the present invention, if the operation mode of the servo motor is an acceleration operation mode, a deceleration operation mode or a uniform speed operation mode, torque compensation is performed according to the current speed of the X-axis rear wheel servo, the target speed and the movement direction of the servo motor, wherein if the current speed of the X-axis rear wheel servo is greater than 0 and less than the first speed, torque compensation is performed according to the following formula (1); if the current speed of the X-axis rear wheel servo is greater than or equal to the first speed and less than the second speed, torque compensation is performed according to the following formula (2), and the second speed is greater than the first speed; if the current speed of the X-axis rear wheel servo is greater than or equal to the second speed and less than the third speed, torque compensation is performed according to the following formula (3), and the third speed is greater than the second speed;
[0068] TargetDAC = (213.5+0.277*M1)*M2 (1)
[0069] TargetDAC = (236+0.318*(M1 - 150))*M2 (2)
[0070] TargetDAC = (286.58+0.103*(M1 - 350))*M2 (3)
[0071] Wherein, TargettDAC is the torque after compensation, M1 is the target speed of the rear wheel servo of the X-axis, M2 is the movement direction of the servo motor, and M2 includes -1 and 1. According to one embodiment of the present invention, the edge computer transmits the torque compensation instruction to the motion control card through EtherNET.
[0072] According to one embodiment of the present invention, the motion control card sends a control signal to a servo driver of the servo motor via EtherCAT, and transmits data of the servo motor fed back by the servo driver back to the edge computer.
[0073] To sum up, the control method of the servo motor according to the embodiment of the present invention controls the servo motor with the edge computer and the motion control card as the core, has good stability, efficient data transmission and processing performance, can be transplanted on different hardware platforms, and can achieve more complex motion trajectory control through the motion control card. The servo motor can be compensated for torque in real time according to the servo motor parameters, thereby improving the motion accuracy and stability of the servo motor.
[0074] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0075] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0076] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present invention belong.
[0077] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0078] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0079] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0080] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0081] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.
Claims
1. A servo motor control system, characterized in that: The servo motor comprises: a front wheel servo of the X-axis and a rear wheel servo of the X-axis, wherein the front wheel servo of the X-axis is configured in a torque control mode, and the rear wheel servo of the X-axis is configured in a position control mode; The control system includes: an edge computer and a motion control card; wherein, The edge computer is equipped with a Linux operating system, and is used to obtain the torque of the front wheel servo of the X-axis and the speed of the rear wheel servo of the X-axis, and perform torque compensation on the torque of the front wheel servo of the X-axis according to the speed of the rear wheel servo of the X-axis, generate a torque compensation instruction, and transmit the torque compensation instruction to the motion control card; The motion control card is used to convert the torque compensation instruction into a control signal and send it to the servo driver of the servo motor, so that the servo driver drives the corresponding servo motor to move according to the control signal, and transmits the data of the servo motor fed back by the servo driver back to the edge computer.
2. The servo motor control system according to claim 1, characterized in that: The edge computer is specifically used for: Obtain the previous speed and current speed of the rear wheel servo of the X-axis, and obtain the operation mode of the servo motor according to the previous speed and the current speed, wherein the operation mode includes: acceleration operation mode, deceleration operation mode, uniform speed operation mode and stop operation mode; If the operation mode of the servo motor is the stop operation mode, the torque of the front wheel servo of the X-axis is set to 0; If the operation mode of the servo motor is an acceleration operation mode, a deceleration operation mode or a uniform speed operation mode, torque compensation is performed according to the current speed of the X-axis rear wheel servo, the target speed and the movement direction of the servo motor.
3. The servo motor control system according to claim 2, characterized in that: The edge computer is specifically used for: when the operation mode of the servo motor is an acceleration operation mode, a deceleration operation mode or a uniform speed operation mode, If the current speed of the X-axis rear wheel servo is greater than 0 and less than the first speed, torque compensation is performed according to the following formula (1); If the current speed of the rear wheel servo of the X-axis is greater than or equal to the first speed and less than the second speed, torque compensation is performed according to the following formula (2), and the second speed is greater than the first speed; If the current speed of the rear wheel servo of the X-axis is greater than or equal to the second speed and less than the third speed, torque compensation is performed according to the following formula (3), and the third speed is greater than the second speed; TargetDAC = (213.5+0.277*M1)*M2 (1) TargetDAC = (236+0.318*(M1 - 150))*M2 (2) TargetDAC = (286.58+0.103*(M1 - 350))*M2 (3) Among them, TargettDAC is the compensated torque, M1 is the target speed of the rear wheel servo of the X-axis, and M2 is the movement direction of the servo motor. M2 includes -1 and 1.
4. The servo motor control system according to claim 1, characterized in that: The edge computer transmits the torque compensation instruction to the motion control card via EtherNET.
5. The servo motor control system according to claim 1, characterized in that: The motion control card sends the control signal to the servo driver of the servo motor through EtherCAT, and transmits the data of the servo motor fed back by the servo driver back to the edge computer.
6. A method for controlling a servo motor, characterized in that: The servo motor comprises: a front wheel servo of the X-axis and a rear wheel servo of the X-axis, wherein the front wheel servo of the X-axis is configured in a torque control mode, and the rear wheel servo of the X-axis is configured in a position control mode; The control method comprises the following steps: The edge computer obtains the torque of the front wheel servo of the X-axis and the speed of the rear wheel servo of the X-axis, performs torque compensation on the torque of the front wheel servo of the X-axis according to the speed of the rear wheel servo of the X-axis, generates a torque compensation instruction, and transmits the torque compensation instruction to the motion control card; The motion control card converts the torque compensation instruction into a control signal and sends the control signal to a servo driver of the servo motor, so that the servo driver drives the corresponding servo motor to move according to the control signal.
7. The servo motor control method according to claim 6, characterized in that: The method further comprises: performing torque compensation on the torque of the front wheel servo of the X-axis according to the speed of the rear wheel servo of the X-axis and generating a torque compensation instruction. Obtain the previous speed and current speed of the rear wheel servo of the X-axis, and obtain the operation mode of the servo motor according to the previous speed and the current speed, wherein the operation mode includes: acceleration operation mode, deceleration operation mode, uniform speed operation mode and stop operation mode; If the operation mode of the servo motor is the stop operation mode, the torque of the front wheel servo of the X-axis is set to 0; If the operation mode of the servo motor is an acceleration operation mode, a deceleration operation mode or a uniform speed operation mode, torque compensation is performed according to the current speed of the X-axis rear wheel servo, the target speed and the movement direction of the servo motor.
8. The servo motor control method according to claim 7, characterized in that: If the operation mode of the servo motor is an acceleration operation mode, a deceleration operation mode or a uniform speed operation mode, torque compensation is performed according to the current speed of the X-axis rear wheel servo, the target speed and the movement direction of the servo motor, specifically including: When the operation mode of the servo motor is an acceleration operation mode, a deceleration operation mode or a uniform speed operation mode, wherein: If the current speed of the X-axis rear wheel servo is greater than 0 and less than the first speed, torque compensation is performed according to the following formula (1); If the current speed of the rear wheel servo of the X-axis is greater than or equal to the first speed and less than the second speed, torque compensation is performed according to the following formula (2), and the second speed is greater than the first speed; If the current speed of the rear wheel servo of the X-axis is greater than or equal to the second speed and less than the third speed, torque compensation is performed according to the following formula (3), and the third speed is greater than the second speed; TargetDAC = (213.5+0.277*M1)*M2 (1) TargetDAC = (236+0.318*(M1 - 150))*M2 (2) TargetDAC = (286.58+0.103*(M1 - 350))*M2 (3) Among them, TargettDAC is the compensated torque, M1 is the target speed of the rear wheel servo of the X-axis, and M2 is the movement direction of the servo motor. M2 includes -1 and 1.
9. The servo motor control method according to claim 6, characterized in that: The edge computer transmits the torque compensation instruction to the motion control card via EtherNET.
10. The servo motor control method according to claim 6, characterized in that: The motion control card sends the control signal to the servo driver of the servo motor through EtherCAT, and transmits the data of the servo motor fed back by the servo driver back to the edge computer.
Citation Information
Patent Citations
Motor vehicles and their control methods
CN102275580A
Control method for electric motor vehicle and control device for electric motor vehicle
WO2023032012A1
Cited By
Dual-motor servo press energy efficiency optimization method based on edge calculation
CN120658140A
An energy efficiency optimization method for a dual-motor servo press based on edge computing
CN120658140B
