Current sampling method and related device for current hysteresis control of servo drive

By obtaining the switching signals of the servo driver power device in real time, judging the dead zone state and performing current sampling within its duration, the problem of unstable current sampling data is solved, and the accuracy of current detection data is achieved and the effectiveness of current hysteresis control is achieved. sex.

CN118508822BActive Publication Date: 2024-11-05SUZHOU RHENAIKE INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410951249.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-11-05
Estimated Expiration
2044-07-16

AI Technical Summary

Technical Problem

The switching of the power device of the servo driver causes current glitches and interference, resulting in unstable current sampling data, and the current detection data under the fixed-period current sampling method is inaccurate.

Method used

By obtaining the switching signal data of the power device in real time, we judge whether it is in a dead zone state at the current moment, and perform current sampling when the dead zone state duration is greater than the sampling time threshold, avoid switching interference, and use the FPGA control unit to send the sampled signal to the analog number Converter to get accurate current data.

Benefits of technology

It effectively avoids interference from the switching of power devices during the sampling stage, ensuring the accuracy of current detection data and the control effect of current hysteresis loop control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118508822B_ABST
    Figure CN118508822B_ABST
Patent Text Reader

Abstract

The present application discloses a current sampling method and related device for current hysteresis control of a servo drive, and the current sampling method includes: sending a sampling signal to an analog-to-digital converter; acquiring the switch signal data of the power device sent by the controller in real time; based on the switch signal data, polling to determine whether the current moment is in a dead zone state; if so, determining in real time whether the duration of the dead zone state is greater than the sampling time threshold; if so, sending a conversion signal to the analog-to-digital converter. The present application sends a conversion signal to the analog-to-digital converter when the time when the power device is in a non-switching state reaches the minimum sampling time of the analog-to-digital conversion, which effectively avoids the interference of the switching of the power device in the sampling stage of the analog-to-digital converter, and ensures the accuracy of the current detection data and the control effect of the current hysteresis control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of servo drive control, and in particular to a current sampling method and related device for current hysteresis control of a servo drive. Background Art

[0002] Current hysteresis control is a current control strategy applied to servo drives. The basic idea of ​​current hysteresis control is to specify a three-phase current signal and compare it with the three-phase current measured by the current transformer. The comparison result is used to control the power device switch through the comparator so that the actual current value follows the command current value. In the current control process, current detection plays a very important role. It is used in the current feedback link to monitor the current change in real time, so that the drive can take corresponding measures in abnormal conditions such as overcurrent, and help achieve accurate current control.

[0003] At present, the current hysteresis control of the servo drive adopts fixed-cycle current sampling. During the current detection process, the switching of the power device of the servo drive will cause current glitches and interference. The switching frequency of the servo drive can reach up to 200KHz. The glitches on the phase current will cause the sampled current data to be unstable. At the same time, the switching frequency of the servo drive using the current hysteresis control method is not fixed. If the fixed-cycle current sampling method is used, the current sampling process will be affected by the glitches and interference of the power device switch, making the current detection data inaccurate. Summary of the invention

[0004] The purpose of the present application is to provide a current sampling method and related devices for current hysteresis control of a servo drive, so as to solve the technical problems in the prior art that the switching of the power device of the servo drive will cause current glitches and interference, resulting in unstable sampled current data, and the switching frequency of the power device of the servo drive is not fixed. If fixed-cycle current sampling is used, it will cause inaccurate current detection data.

[0005] To achieve the above-mentioned object, the present application provides, in a first aspect, a current sampling method for current hysteresis control of a servo drive, which is applied to an FPGA control unit, comprising:

[0006] Sending a sampling signal to an analog-to-digital converter to control the analog-to-digital converter to collect analog current data;

[0007] Obtain the switching signal data of the power device sent by the controller in real time;

[0008] Based on the switch signal data, polling to determine whether the current moment is in a dead zone state, in which the power device has no switch switching;

[0009] If so, based on the switch signal data, record the duration of the dead zone state, and determine in real time whether the duration of the dead zone state is greater than a sampling time threshold, where the sampling time threshold is the minimum sampling time of the analog-to-digital converter;

[0010] If so, a conversion signal is sent to the analog-to-digital converter to control the analog-to-digital converter to convert the collected analog current data into digital current data.

[0011] In one or more embodiments, the switch signal data includes an on signal data frame, an off signal data frame, and a clock signal data frame, and the on signal data frame and the off signal data frame both include opposite first and second levels, and the first levels of the on signal data frame and the off signal data frame are used to mark the on signal and the off signal, respectively.

[0012] In one or more implementations, the step of polling and determining whether the current state is in a dead zone based on the switch signal data is specifically:

[0013] Determine whether the on-signal data frame and the off-signal data frame are both at the second level at the current moment;

[0014] If yes, the current moment is in the dead zone state.

[0015] In one or more embodiments, the step of recording the duration of the dead zone state based on the switch signal data is specifically:

[0016] The duration of the on-signal data frame and the off-signal data frame being both at the second level is recorded to obtain the duration of the dead zone state.

[0017] In one or more embodiments, the current sampling method further includes:

[0018] If the duration of the dead zone state is less than or equal to the sampling time threshold, it is re-determined whether the current moment is in the dead zone state.

[0019] In one or more embodiments, the current sampling method further includes:

[0020] After a preset time when the conversion signal is sent, the sampling signal is sent to the analog-to-digital converter to control the analog-to-digital converter to convert the collected analog current data into digital current data, and the preset time is the maximum conversion time of the analog-to-digital converter.

[0021] In one or more embodiments, the current sampling method further includes:

[0022] The digital current data sent by the analog-to-digital converter is received and forwarded to the controller.

[0023] To achieve the above-mentioned purpose, the second aspect of the present application provides a current sampling device for current hysteresis control of a servo drive, comprising:

[0024] A sampling signal sending device, used for sending a sampling signal to an analog-to-digital converter to control the analog-to-digital converter to collect analog current data;

[0025] A switch signal acquisition device, used to acquire the switch signal data of the power device sent by the controller in real time;

[0026] A first judgment device, used for polling and judging whether the current moment is in a dead zone state based on the switch signal data, in which the power device has no switch switching;

[0027] A second judgment device is used to record the duration of the dead zone state based on the switch signal data when the dead zone state is in the current moment, and judge in real time whether the duration of the dead zone state is greater than a sampling time threshold, wherein the sampling time threshold is the minimum sampling time of the analog-to-digital converter;

[0028] The conversion signal sending device is used to send a conversion signal to the analog-to-digital converter when the duration of the dead zone state is greater than the sampling time threshold, so as to control the analog-to-digital converter to convert the collected analog current data into digital current data.

[0029] To achieve the above-mentioned object, the third aspect of the present application provides an electronic device, including: at least one processor and a memory;

[0030] The memory stores instructions, and when the instructions are executed by the at least one processor, the at least one processor executes the current sampling method as described in any of the above embodiments.

[0031] To achieve the above objectives, the fourth aspect of the present application provides a machine-readable storage medium storing executable instructions, which, when executed, enable the machine to execute the current sampling method as described in any of the above embodiments.

[0032] To achieve the above-mentioned purpose, the fifth aspect of the present application provides a current sampling system for current hysteresis control of a servo drive, comprising an analog-to-digital converter, a controller and an FPGA control unit;

[0033] The analog-to-digital converter is used to collect analog current data and convert the collected analog current data into digital current data;

[0034] The controller is used to obtain the digital current data sent by the analog-to-digital converter, and send switch signal data to the power device based on the digital current data to control the switch of the power device;

[0035] The FPGA control unit is used to control the acquisition and conversion switching of the analog-to-digital converter;

[0036] Among them, the FPGA control unit is used to send a sampling signal to the analog-to-digital converter to control the analog-to-digital converter to collect analog current data; obtain the switch signal data sent by the controller in real time; based on the switch signal data, poll to determine whether the current moment is in a dead zone state, and the power device has no switch switching in the dead zone state; when the current moment is in the dead zone state, based on the switch signal data, record the duration of the dead zone state, and determine in real time whether the duration of the dead zone state is greater than a sampling time threshold, and the sampling time threshold is the minimum sampling time of the analog-to-digital converter; when the duration of the dead zone state is greater than the sampling time threshold, send a conversion signal to the analog-to-digital converter to control the analog-to-digital converter to convert the collected analog current data into digital current data.

[0037] Different from the prior art, the beneficial effects of this application are:

[0038] In the current sampling method of the present application, the switch signal data sent by the controller is acquired in real time, and based on the switch signal data, it is determined whether the power device is not switching at the current moment, and a conversion signal is sent to the analog-to-digital converter when the time when the power device is in the non-switch state reaches the minimum sampling time of the analog-to-digital conversion, thereby effectively avoiding the interference of the switching of the power device in the sampling stage of the analog-to-digital converter, thereby ensuring the accuracy of the current detection data and the control effect of the current hysteresis control. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art description are briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0040] Figure 1 It is a comparison diagram of the switching signal and phase current signal of the power device;

[0041] Figure 2 It is a flow chart of an implementation method of a current sampling method for current hysteresis control of a servo drive of the present application;

[0042] Figure 3is a simplified circuit diagram of an analog-to-digital converter;

[0043] Figure 4 is a schematic diagram of an implementation method of switch signal data;

[0044] Figure 5 is a schematic diagram of an implementation method of converting a signal;

[0045] Figure 6 It is a structural schematic diagram of an implementation method of a current sampling device for current hysteresis control of a servo drive of the present application;

[0046] Figure 7 It is a structural schematic diagram of an embodiment of the electronic device of the present application;

[0047] Figure 8 It is a structural schematic diagram of an implementation scheme of a current sampling system of the present application. DETAILED DESCRIPTION

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

[0049] Current hysteresis control is a control method that uses a hysteresis comparator to control the system current fluctuation within a preset range. Its basic principle is to adjust the state of the power switch by comparing the difference between the actual current and the reference current. Therefore, real-time current sampling is the key to ensure current hysteresis control.

[0050] When the power device of the servo drive is switched on and off, current glitches and interference will occur. The glitches on the phase current will cause the sampled current data to be unstable. Figure 1 , Figure 1 It is a comparison chart of the switching signal and phase current signal of the power device.

[0051] like Figure 1 As shown in FIG. 1 , when the power device switch is switched, the phase current has burrs, resulting in instability of the current data. Therefore, if current sampling is performed when the power device switch is switched, the current detection data will be inaccurate.

[0052] At present, fixed-period current sampling is used for current hysteresis control of servo drives. However, the switching frequency of the servo drives using the current hysteresis control method is not fixed. Fixed-period current sampling cannot avoid current sampling when the power device switches, which will affect the control effect of current hysteresis control.

[0053] In order to solve the above problems, the applicant has developed a new current sampling method for current hysteresis control of a servo drive. The current sampling method obtains the switching signal of the power device to identify the switching moment and performs current sampling during the non-switching time, thereby effectively avoiding the influence of the switching of the power device on the current sampling, ensuring the accuracy of the current detection data and the control effect of the current hysteresis control.

[0054] Specifically, see Figure 2 , Figure 2 It is a flow chart of an implementation method of a current sampling method for current hysteresis control of a servo drive of the present application.

[0055] like Figure 2 As shown, the current sampling method is applied to the FPGA control unit, including:

[0056] S100: Send a sampling signal to an analog-to-digital converter.

[0057] See also Figure 3 , Figure 3 This is a simplified circuit diagram of an analog-to-digital converter. The analog-to-digital converter works in the acquisition phase and the conversion phase. In the acquisition phase, the two capacitor arrays contained in the capacitive DAC are used as sampling capacitors to acquire the analog signals at the INx+ and INx- (or COM) input terminals; in the conversion phase, the acquired analog signals are converted into digital signals and output serially through the output terminal.

[0058] First, the FPGA control unit can send a sampling signal to the analog converter to control it to start collecting analog current data.

[0059] S200 , acquiring switching signal data of a power device sent by a controller in real time.

[0060] In current hysteresis control, the controller sends switching signal data to the power device in real time to control the switching of the power device.

[0061] In one embodiment, see Figure 4 , Figure 4 Schematic diagram of an implementation of switch signal data.

[0062] like Figure 4 As shown, the switch signal data may include an on signal data frame, an off signal data frame and a clock signal data frame, wherein the on signal data frame and the off signal data frame may both include opposite first and second levels, and the first levels of the on signal data frame and the off signal data frame are used to mark the on signal and the off signal, respectively.

[0063] It can be understood that when the first level appears in the turn-on signal data frame, it means that the controller has sent a turn-on signal to the power device, and the power device performs a turn-on operation when it detects the first level of the turn-on signal data frame; correspondingly, when the first level appears in the turn-off signal data frame, it means that the controller has sent a turn-off signal to the power device, and the power device performs a turn-off operation when it detects the first level of the turn-on signal data frame.

[0064] The FPGA control unit can obtain the switch signal data sent by the controller in real time.

[0065] S300: Based on the switch signal data, determine by polling whether the current moment is in a dead zone state.

[0066] Among them, there is no switching of power devices in the dead zone state.

[0067] Specifically, in Figure 4 In the switch signal data shown in FIG. 1 , when both the on signal data frame and the off signal data frame are at the second level at the current moment, the power device is in the dead zone state. Figure 4 During the period between the middle dotted lines, the power device is in a dead zone state.

[0068] Therefore, the method for determining whether the current time is in the dead zone state can be specifically as follows:

[0069] Determine whether the on-signal data frame and the off-signal data frame are both at the second level at the current moment;

[0070] If yes, the current moment is in the dead zone state.

[0071] S400: If yes, based on the switch signal data, record the duration of the dead zone state, and determine in real time whether the duration of the dead zone state is greater than the sampling time threshold.

[0072] Specifically, if the current moment is in a dead zone state, the duration of the dead zone state may be recorded based on the switch signal data.

[0073] exist Figure 4 In the switch signal data shown in FIG. 1 , the method for recording the duration of the dead zone state may be to record the duration of both the on signal data frame and the off signal data frame being at the second level, such as Figure 4 The time period between the middle dotted lines is the duration of the dead zone state. The duration of the dead zone state can be obtained based on the clock signal data frame.

[0074] During the recording process, it can be determined in real time whether the duration of the dead zone state reaches the sampling time threshold. The sampling time threshold can be the minimum sampling time of the analog-to-digital converter, which is determined based on the timing specification of the analog-to-digital converter. For example, the minimum sampling time of the AD7682 analog-to-digital converter is 1.8us.

[0075] S500: If yes, send a conversion signal to the analog-to-digital converter.

[0076] It can be understood that when the duration of the dead zone state is greater than the minimum sampling time, the analog-to-digital converter has collected analog current data for a sufficient period of time in a non-switching state of the power device.

[0077] Therefore, a conversion signal can be sent to the analog converter to control the analog-to-digital converter to convert the collected analog current data into digital current data, thereby ensuring that the analog current data of the analog-to-digital converter is not affected by the switching of the power device and ensuring the accuracy of the current detection data.

[0078] In one embodiment, in order to improve the working efficiency of the analog-to-digital converter and minimize the conversion interval time of the analog-to-digital converter, the current sampling method may further include:

[0079] S600 , sending a sampling signal to an analog-to-digital converter after a preset time after the conversion signal is sent.

[0080] The preset time may be the maximum conversion time of the analog-to-digital converter. The maximum conversion time is determined by the timing specification of the analog-to-digital converter, which represents the maximum time required for the analog-to-digital converter to convert data. For example, the maximum conversion time of the AD7682 analog-to-digital converter is 2.2us.

[0081] It can be understood that after a preset time after the conversion signal is sent, the analog-to-digital converter has converted the analog current data into digital current data, and the FPGA control unit can send a sampling signal to control the analog-to-digital converter to start the next cycle of sampling operation.

[0082] In one embodiment, see Figure 5 , Figure 5 It is a schematic diagram of an implementation method of converting signals.

[0083] like Figure 5As shown, the conversion signal sent by the FPGA control unit may include a control signal data frame. The FPGA may send the control signal data frame to the analog-to-digital converter in real time. The control signal data frame may include opposite first and second levels, wherein the first level may calibrate the conversion signal. When the analog-to-digital converter detects the first level of the control signal data frame, it may switch to a conversion state and begin to convert the collected analog current data into digital current data. When the duration of the conversion state reaches the maximum conversion time, the analog-to-digital converter may automatically switch to a sampling state, thereby realizing control of the analog-to-digital converter.

[0084] In one implementation, the analog-to-digital converter may send the converted digital current data to the FPGA control unit, and the FPGA control unit may forward the converted digital current data to the controller.

[0085] After receiving the digital current data, the controller compares the real-time digital current data with the specified current data, and outputs the switch signal data to the power device based on the comparison result, thereby realizing the current hysteresis control of the power device.

[0086] Based on the above implementations, it is possible to ensure that the current sampling process of the analog-to-digital converter is not affected by the switching of the power device switch, thereby ensuring the accuracy of the current detection data and the control effect of the current hysteresis control.

[0087] The present application also provides a current sampling device for servo drive current hysteresis control, see Figure 6 , Figure 6 It is a structural schematic diagram of an implementation scheme of a current sampling device for current hysteresis control of a servo drive of the present application.

[0088] like Figure 6 As shown, the current sampling device includes a sampling signal sending device 21, a switch signal acquiring device 22, a first judging device 23, a second judging device 24 and a conversion signal sending device 25.

[0089] The sampling signal sending device 21 is used to send a sampling signal to the analog-to-digital converter to control the analog-to-digital converter to collect analog current data;

[0090] The switch signal acquisition device 22 is used to acquire the switch signal data of the power device sent by the controller in real time;

[0091] The first judging device 23 is used to judge whether the current moment is in a dead zone state based on the switch signal data by polling, and the power device has no switch switching in the dead zone state;

[0092] The second judging device 24 is used to record the duration of the dead zone state based on the switch signal data when the current moment is in the dead zone state, and judge in real time whether the duration of the dead zone state is greater than the sampling time threshold, and the sampling time threshold is the minimum sampling time of the analog-to-digital converter;

[0093] The conversion signal sending device 25 is used to send a conversion signal to the analog-to-digital converter when the duration of the dead zone state is greater than the sampling time threshold, so as to control the analog-to-digital converter to convert the collected analog current data into digital current data.

[0094] As above Figures 1 to 5 , a current sampling method according to an embodiment of this specification is described. The details mentioned in the above description of the method embodiment are also applicable to the current sampling device of the embodiment of this specification. The above current sampling device can be implemented by hardware, or by software, or a combination of hardware and software.

[0095] This application also provides an electronic device, see Figure 7 , Figure 7 Schematic diagram of the structure of an electronic device of the present application. Figure 7 As shown, the electronic device 30 may include at least one processor 31, a memory 32 (e.g., a non-volatile memory), a memory 33, and a communication interface 34, and the at least one processor 31, the memory 32, the memory 33, and the communication interface 34 are connected together via a bus 35. At least one processor 31 executes at least one computer-readable instruction stored or encoded in the memory 32.

[0096] It should be understood that the computer executable instructions stored in the memory 32, when executed, cause at least one processor 31 to perform the above combined operations in various embodiments of the present specification. Figure 1-Figure 5 Describes the various operations and functions.

[0097] In the embodiments of the present specification, the electronic device 30 may include, but is not limited to, personal computers, server computers, workstations, desktop computers, laptop computers, notebook computers, mobile electronic devices, smart phones, tablet computers, cellular phones, personal digital assistants (PDAs), handheld devices, messaging devices, wearable electronic devices, consumer electronic devices, and the like.

[0098] According to one embodiment, a program product such as a machine-readable medium is provided. The machine-readable medium may have instructions (i.e., the above-mentioned elements implemented in the form of software), which, when executed by a machine, causes the machine to perform the above-mentioned combination of various embodiments of this specification. Figure 1-Figure 5Specifically, a system or device equipped with a readable storage medium may be provided, on which a software program code implementing the functions of any of the above-mentioned embodiments is stored, and a computer or processor of the system or device reads and executes the instructions stored in the readable storage medium.

[0099] In this case, the program code itself read from the machine-readable medium can realize the function of any one of the above embodiments, and thus the machine-readable code and the machine-readable storage medium storing the machine-readable code constitute part of this specification.

[0100] Examples of readable storage media include floppy disks, hard disks, magneto-optical disks, optical disks (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD-RW), magnetic tapes, non-volatile memory cards, and ROMs. Alternatively, the program code may be downloaded from a server computer or a cloud via a communication network.

[0101] This application also provides a current sampling system for servo drive current hysteresis control, see Figure 8 , Figure 8 It is a structural schematic diagram of an implementation scheme of a current sampling system of the present application.

[0102] like Figure 8 As shown, the current sampling system includes an analog-to-digital converter 41 , a controller 42 and an FPGA control unit 43 .

[0103] The analog-to-digital converter 41 is used to collect analog current data and convert the collected analog current data into digital current data.

[0104] The controller 42 is used to obtain the digital current data sent by the analog-to-digital converter, and send switch signal data to the power device based on the digital current data to control the switching of the power device.

[0105] The FPGA control unit 43 is used to control the acquisition and conversion switching of the analog-to-digital converter.

[0106] Wherein, the FPGA control unit 43 is used to send a sampling signal to the analog-to-digital converter to control the analog-to-digital converter to collect analog current data;

[0107] It is also used to obtain the switch signal data sent by the controller in real time;

[0108] It is also used to poll and determine whether the current moment is in a dead zone state based on the switch signal data. In the dead zone state, the power device has no switch switching;

[0109] It is also used to record the duration of the dead zone state based on the switch signal data when the current moment is in the dead zone state, and to judge in real time whether the duration of the dead zone state is greater than a sampling time threshold, where the sampling time threshold is the minimum sampling time of the analog-to-digital converter;

[0110] It is also used to send a conversion signal to the analog-to-digital converter when the duration of the dead zone state is greater than the sampling time threshold, so as to control the analog-to-digital converter to convert the collected analog current data into digital current data.

[0111] Specifically, Figure 8 Taking the acquisition of U-phase current in the example, the analog-to-digital converter obtains the analog U-phase current data Act_iu, and switches the acquisition phase and the conversion phase based on the control signal adc_CNV sent by the FPGA control unit. After the conversion is completed, the digital U-phase current data Act_adc_iu is obtained.

[0112] The FPGA control unit obtains the switch signal data PWM_U_TOP and PWM_U_BOT sent by the controller and forwards them to the power device. At the same time, it obtains the control signal adc_CNV based on the switch signal data and sends it to the analog-to-digital converter; the FPGA control unit also receives Act_adc_iu and forwards it to the controller.

[0113] The controller receives Act_adc_iu forwarded by the FPGA control unit, generates switch signal data PWM_U_TOP and PWM_U_BOT after data processing, and sends them to the FPGA control unit.

[0114] The power device receives the switch signal data PWM_U_TOP and PWM_U_BOT, and performs switch switching based on the signal.

[0115] Those skilled in the art should understand that the various embodiments disclosed above can be modified and altered in various ways without departing from the essence of the invention. Therefore, the protection scope of this specification should be defined by the appended claims.

[0116] It should be noted that not all steps and units in the above-mentioned processes and system structure diagrams are necessary, and some steps or units can be ignored according to actual needs. The execution order of each step is not fixed and can be determined as needed. The device structure described in the above-mentioned embodiments can be a physical structure or a logical structure, that is, some units may be implemented by the same physical client, or some units may be implemented by multiple physical clients, or some components in multiple independent devices may be implemented together.

[0117] In the above embodiments, the hardware unit or module can be realized by mechanical or electrical means. For example, a hardware unit, module or processor can include permanent dedicated circuit or logic (such as special processor, FPGA or ASIC) to complete the corresponding operation. The hardware unit or processor can also include programmable logic or circuit (such as general-purpose processor or other programmable processor), which can be temporarily set by software to complete the corresponding operation. Specific implementation (mechanical method or dedicated permanent circuit or temporary circuit) can be determined based on cost and time consideration.

[0118] The specific embodiments described above in conjunction with the accompanying drawings describe exemplary embodiments, but do not represent all embodiments that can be implemented or fall within the scope of protection of the claims. The term "exemplary" used throughout this specification means "used as an example, instance or illustration" and does not mean "preferred" or "having advantages" over other embodiments. For the purpose of providing an understanding of the described technology, the specific embodiments include specific details. However, these technologies can be implemented without these specific details. In some instances, in order to avoid making the concepts of the described embodiments difficult to understand, well-known structures and devices are shown in block diagram form.

[0119] The above description of the present disclosure is provided to enable any person of ordinary skill in the art to implement or use the present disclosure. Various modifications to the present disclosure will be apparent to those of ordinary skill in the art, and the general principles corresponding to the present disclosure may be applied to other variations without departing from the scope of protection of the present disclosure. Therefore, the present disclosure is not limited to the examples and designs described herein, but is consistent with the widest range of principles and novel features disclosed herein.

Claims

1. A current sampling method for servo drive current hysteresis control, characterized in that: Applied to FPGA control units, including: Sending a sampling signal to an analog-to-digital converter to control the analog-to-digital converter to collect analog current data; Acquire switch signal data of the power device sent by the controller in real time, wherein the switch signal data includes an on signal data frame, an off signal data frame and a clock signal data frame, wherein the on signal data frame and the off signal data frame both include opposite first and second levels, and the first levels of the on signal data frame and the off signal data frame are used to mark an on signal and an off signal, respectively; Based on the switch signal data, polling to determine whether the current moment is in a dead zone state, in which the power device has no switch switching; If so, based on the switch signal data, record the duration of the dead zone state, and determine in real time whether the duration of the dead zone state is greater than a sampling time threshold, where the sampling time threshold is the minimum sampling time of the analog-to-digital converter; If so, sending a conversion signal to the analog-to-digital converter to control the analog-to-digital converter to convert the collected analog current data into digital current data; receiving digital current data sent by the analog-to-digital converter and forwarding the data to the controller; The step of polling and determining whether the current state is in a dead zone based on the switch signal data is specifically as follows: Determine whether the on-signal data frame and the off-signal data frame are both at the second level at the current moment; If so, the current moment is in the dead zone state; The step of recording the duration of the dead zone state based on the switch signal data is specifically as follows: The duration of the on-signal data frame and the off-signal data frame being both at the second level is recorded to obtain the duration of the dead zone state.

2. The current sampling method according to claim 1, characterized in that: Also includes: If the duration of the dead zone state is less than or equal to the sampling time threshold, it is re-determined whether the current moment is in the dead zone state.

3. The current sampling method according to claim 1, characterized in that: Also includes: After a preset time when the conversion signal is sent, the sampling signal is sent to the analog-to-digital converter to control the analog-to-digital converter to convert the collected analog current data into digital current data, and the preset time is the maximum conversion time of the analog-to-digital converter.

4. A current sampling device for current hysteresis control of a servo drive, characterized in that: include: A sampling signal sending device, used for sending a sampling signal to an analog-to-digital converter to control the analog-to-digital converter to collect analog current data; A switch signal acquisition device, used for acquiring switch signal data of a power device sent by a controller in real time, wherein the switch signal data includes an on signal data frame, an off signal data frame and a clock signal data frame, wherein the on signal data frame and the off signal data frame both include opposite first and second levels, and the first levels of the on signal data frame and the off signal data frame are used to mark an on signal and an off signal, respectively; A first judgment device, used for polling and judging whether the current moment is in a dead zone state based on the switch signal data, in which the power device has no switch switching; A second judgment device is used to record the duration of the dead zone state based on the switch signal data when the dead zone state is in the current moment, and judge in real time whether the duration of the dead zone state is greater than a sampling time threshold, wherein the sampling time threshold is the minimum sampling time of the analog-to-digital converter; A conversion signal sending device, used for sending a conversion signal to the analog-to-digital converter when the duration of the dead zone state is greater than a sampling time threshold, so as to control the analog-to-digital converter to convert the collected analog current data into digital current data; A forwarding device, used for receiving the digital current data sent by the analog-to-digital converter and forwarding it to the controller; The polling to determine whether the current state is in the dead zone based on the switch signal data is specifically: Determine whether the on-signal data frame and the off-signal data frame are both at the second level at the current moment; If so, the current moment is in the dead zone state; The duration of recording the dead zone state based on the switch signal data is specifically: The duration of the on-signal data frame and the off-signal data frame being both at the second level is recorded to obtain the duration of the dead zone state.

5. An electronic device, comprising: at least one processor; as well as A memory storing instructions, wherein when the instructions are executed by the at least one processor, the at least one processor executes the current sampling method according to any one of claims 1 to 3. 6 . A machine-readable storage medium storing executable instructions, wherein when the instructions are executed, the machine executes the current sampling method according to claim 1 .

7. A current sampling system for servo drive current hysteresis control, characterized in that: include: An analog-to-digital converter, used for collecting analog current data and converting the collected analog current data into digital current data; A controller, configured to obtain digital current data sent by the analog-to-digital converter, and send switch signal data to a power device based on the digital current data to control the switch of the power device; An FPGA control unit, used to control the acquisition and conversion switching of the analog-to-digital converter; Wherein, the FPGA control unit is used to send a sampling signal to the analog-to-digital converter to control the analog-to-digital converter to collect analog current data; Acquire the switch signal data sent by the controller in real time, the switch signal data comprising an on signal data frame, an off signal data frame and a clock signal data frame, the on signal data frame and the off signal data frame both comprising opposite first and second levels, the first levels of the on signal data frame and the off signal data frame being used to mark an on signal and an off signal, respectively; Based on the switch signal data, polling to determine whether the current moment is in a dead zone state, in which the power device has no switch switching; When the current moment is in the dead zone state, based on the switch signal data, the duration of the dead zone state is recorded, and whether the duration of the dead zone state is greater than a sampling time threshold is determined in real time, where the sampling time threshold is the minimum sampling time of the analog-to-digital converter; When the duration of the dead zone state is greater than a sampling time threshold, sending a conversion signal to the analog-to-digital converter to control the analog-to-digital converter to convert the collected analog current data into digital current data; receiving digital current data sent by the analog-to-digital converter and forwarding the data to the controller; The polling to determine whether the current state is in the dead zone based on the switch signal data is specifically: Determine whether the on-signal data frame and the off-signal data frame are both at the second level at the current moment; If so, the current moment is in the dead zone state; The duration of recording the dead zone state based on the switch signal data is specifically: The duration of the on-signal data frame and the off-signal data frame being both at the second level is recorded to obtain the duration of the dead zone state.