CN111257617B - Multi-power-section voltage and current sampling method, device and system - Google Patents

Multi-power-section voltage and current sampling method, device and system Download PDF

Info

Publication number
CN111257617B
CN111257617B CN202010061167.4A CN202010061167A CN111257617B CN 111257617 B CN111257617 B CN 111257617B CN 202010061167 A CN202010061167 A CN 202010061167A CN 111257617 B CN111257617 B CN 111257617B
Authority
CN
China
Prior art keywords
voltage
current
preset
signal
microprocessor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010061167.4A
Other languages
Chinese (zh)
Other versions
CN111257617A (en
Inventor
花熙文
孙成胜
唐小伟
陈星�
申大力
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Invt Power Electronics Suzhou Co ltd
Original Assignee
Invt Power Electronics Suzhou Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Invt Power Electronics Suzhou Co ltd filed Critical Invt Power Electronics Suzhou Co ltd
Priority to CN202010061167.4A priority Critical patent/CN111257617B/en
Publication of CN111257617A publication Critical patent/CN111257617A/en
Application granted granted Critical
Publication of CN111257617B publication Critical patent/CN111257617B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R15/00Details of measuring arrangements of the types provided for in groups G01R17/00 - G01R29/00, G01R33/00 - G01R33/26 or G01R35/00
    • G01R15/14Adaptations providing voltage or current isolation, e.g. for high-voltage or high-current networks
    • G01R15/18Adaptations providing voltage or current isolation, e.g. for high-voltage or high-current networks using inductive devices, e.g. transformers

Abstract

The embodiment of the invention discloses a multi-power-section voltage and current sampling method, a multi-power-section voltage and current sampling device and a multi-power-section voltage and current sampling system, wherein the method is applied to a voltage and current sampling circuit, and the voltage and current sampling method comprises the steps of analyzing a voltage and current sampling request to obtain an input voltage and current signal and the rated voltage and current grade of a frequency converter if the voltage and current sampling request is received; the matched preset voltage and current gears are selected through the control adjusting unit, so that the first operational amplifying unit outputs corresponding first output voltage after receiving the acquired voltage and current signals; converting the first output voltage into a first digital voltage signal; and determining a corresponding compensation coefficient according to a preset compensation coefficient table so that the microprocessor calculates a second digital voltage signal within a preset digital voltage range according to the compensation coefficient, the first digital voltage signal and a preset calculation rule. The embodiment of the invention can realize voltage and current sampling of multiple power sections, reduce maintenance pressure and save cost.

Description

Multi-power-section voltage and current sampling method, device and system
Technical Field
The invention relates to the field of power electronics, in particular to a multi-power-section voltage and current sampling method, device and system.
Background
When the existing frequency converter samples voltage and current in multiple power sections, the sampling process generally includes that the voltage and current are sampled in a Hall or mutual inductor mode, then a voltage and current detection board matched with the rated voltage and current grade of the frequency converter to be sampled is selected, then the voltage is converted into corresponding digital voltage through an operational amplifier, and finally the digital voltage is input into an AD port so as to facilitate the later-stage calculation. The method is convenient when the rated voltage and current levels of the frequency converter are single, but when the rated voltage and current levels of the frequency converter are excessive, for example, on a high-voltage frequency converter with various different rated voltage and current levels, each different rated voltage and current level needs a voltage and current detection board corresponding to the frequency converter, a large number of voltage and current detection boards are required during sampling, and therefore inconvenience in use and great pressure on equipment maintenance are caused.
Disclosure of Invention
The invention provides a multi-power-section voltage and current sampling method, device and system, which can be used for sampling different voltage and current gears by using the same voltage and current sampling plate, thereby simplifying the use process, reducing the maintenance pressure, saving the cost and improving the use experience of a user.
In a first aspect, an embodiment of the present invention provides a voltage and current sampling method for multiple power segments, where the method is applied to a voltage and current sampling circuit, the voltage and current sampling circuit includes an operational amplification module and a microprocessor, the operational amplification module includes a first operational amplification unit and an adjustment unit having multiple current and voltage levels, and the first operational amplification unit is electrically connected to the microprocessor through the adjustment unit, where the voltage and current sampling method includes:
if a voltage and current sampling request is received, analyzing the voltage and current sampling request to obtain an input voltage and current signal and a rated voltage and current grade of a frequency converter corresponding to the voltage and current signal, wherein the rated voltage and current grade of each frequency converter is correspondingly associated with a corresponding preset voltage and current gear, and all preset voltage and current gears are set according to a preset proportion and the rated voltage and current grade of the frequency converter;
selecting a preset voltage and current gear associated with the acquired rated voltage and current grade of the frequency converter by controlling the adjusting unit so that the first operational amplifying unit outputs a corresponding first output voltage after receiving the acquired voltage and current signal, wherein the first output voltage is within a preset voltage range;
sending the first output voltage to an AD sampling port of the microprocessor so that the AD sampling port of the microprocessor converts the first output voltage into a first digital voltage signal;
and determining a corresponding compensation coefficient according to the acquired rated voltage and current grade of the frequency converter and a preset compensation coefficient table, and calculating by the microprocessor according to the compensation coefficient, the first digital voltage signal and a preset calculation rule to obtain a second digital voltage signal within a preset digital voltage range.
In a second aspect, an embodiment of the present invention further provides a device for a voltage-current sampling apparatus with multiple power segments, where the device is applied to a voltage-current sampling circuit, the voltage-current sampling circuit includes an operational amplification module and a microprocessor, the operational amplification module includes a first operational amplification unit and an adjustment unit having multiple current-voltage gears, the first operational amplification unit is electrically connected to the microprocessor through the adjustment unit, and the device includes:
the receiving unit is used for analyzing the voltage and current sampling request to obtain an input voltage and current signal and a rated voltage and current grade of a frequency converter corresponding to the voltage and current signal if the voltage and current sampling request is received, wherein the rated voltage and current grade of each frequency converter is correspondingly associated with a corresponding preset voltage and current gear, and all the preset voltage and current gears are set according to a preset proportion and the rated voltage and current grade of the frequency converter;
the first confirming unit is used for controlling the adjusting unit to select a preset voltage and current gear associated with the acquired rated voltage and current grade of the frequency converter so that the first operational amplifying unit outputs corresponding first output voltage after receiving the acquired voltage and current signal, wherein the first output voltage is within a preset voltage range;
the first conversion unit is used for sending the first output voltage to an AD sampling port of the microprocessor so as to enable the AD sampling port of the microprocessor to convert the first output voltage into a first digital voltage signal;
and the microprocessor calculates according to the compensation coefficient, the first digital voltage signal and a preset calculation rule to obtain a second digital voltage signal within a preset digital voltage range.
In a third aspect, an embodiment of the present invention further provides a multi-power-stage voltage and current sampling system, which includes a memory, a processor connected to the memory, and a voltage and current sampling circuit connected to the processor, where the voltage and current sampling circuit includes an operational amplification module and a microprocessor, the operational amplification module includes a first operational amplification unit and an adjustment unit having a plurality of current and voltage gears, and the first operational amplification unit is electrically connected to the microprocessor through the adjustment unit; the memory is used for storing a computer program; the processor is configured to execute the computer program stored in the memory to perform the method described above.
The multi-power-section voltage and current sampling method, the multi-power-section voltage and current sampling device and the multi-power-section voltage and current sampling system can meet the voltage and current sampling requirements of different gears through a single voltage and current sampling method, greatly simplify the use process and reduce the maintenance pressure.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a block diagram of a voltage-current sampling circuit according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a method for sampling voltage and current of multiple power stages according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a multi-power stage voltage-current sampling method according to an embodiment of the present invention;
FIG. 4 is a sub-flow diagram of a multi-power stage voltage-current sampling method according to an embodiment of the present invention;
FIG. 5 is a sub-flowchart of a multi-power-stage voltage-current sampling method according to an embodiment of the present invention;
FIG. 6 is a sub-flow diagram of a multi-power-stage voltage-current sampling method according to an embodiment of the present invention
FIG. 7 is a schematic block diagram of a multi-power stage voltage-current sampling apparatus provided by an embodiment of the present invention;
fig. 8 is a schematic block diagram of a receiving unit of a multi-power-stage voltage-current sampling apparatus provided by an embodiment of the present invention;
fig. 9 is a schematic block diagram of a first validation unit of the voltage-current sampling apparatus for multiple power segments provided by the embodiment of the present invention;
fig. 10 is a schematic block diagram of a first conversion unit of the multi-power-stage voltage-current sampling apparatus provided by the embodiment of the present invention;
FIG. 11 is a block diagram of a voltage-current sampling circuit according to another embodiment of the present invention;
fig. 12 is a schematic block diagram of a multi-power stage voltage-current sampling system provided by an embodiment of the present invention.
Reference numerals: 1. an operational amplification module; 2. a microprocessor; 3. a first operational amplification unit; 4. an adjustment unit; 5. an isolation amplifying unit; 6. a second operational amplifier unit.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1, a block diagram of a multi-power-stage voltage-current sampling circuit according to an embodiment of the present invention is shown, where the multi-power-stage voltage-current sampling circuit can be used to implement sampling of a voltage-current signal of a multi-power stage of a frequency converter. The voltage and current sampling circuit comprises an operational amplification module 1 and a microprocessor 2, wherein the operational amplification module 1 comprises a first operational amplification unit 3 and an adjustment unit 4 which is connected with the first operational amplification unit 3 in series and has a plurality of gears, the first operational amplification unit 3 and the adjustment unit 4 are connected in series and arranged together, the adjustment unit 4 is used for adjusting the gears and is connected with the microprocessor 2 in series and arranged together, and the microprocessor 2 is used for processing the voltage from the adjustment unit 4. Referring to fig. 2, it is a schematic flow chart of a multi-power-stage voltage-current sampling method according to an embodiment of the present invention, which is applied to the multi-power-stage voltage-current sampling circuit shown in fig. 1.
Step S110, if a voltage and current sampling request is received, analyzing the voltage and current sampling request to obtain an input voltage and current signal and a rated voltage and current level of the frequency converter corresponding to the voltage and current signal, where the rated voltage and current level of each frequency converter is associated with a corresponding preset voltage and current gear, and all the preset voltage and current gears are set according to a preset ratio and the rated voltage and current level of the frequency converter.
In the present embodiment, when a voltage-current sampling request is received, the voltage-current sampling request is analyzed, so that a voltage-current signal input to the voltage-current sampling circuit and a rated voltage-current level of the inverter corresponding to the voltage-current signal are obtained. The rated voltage and current levels of the frequency converters are associated with preset voltage and current gears, corresponding voltage and current gears can be set in advance according to different rated voltage and current levels of the frequency converters according to a preset proportion, for example, if a certain frequency converter has 7 different rated voltage and current levels, the gears can be set according to the voltage and current levels of the 7 levels according to a certain proportion. Taking current sampling as an example, if the rated current class of a certain type of frequency converter is 45A, the frequency converter can output a current signal between-45A and 45A, and when a current sampling request is received, the current sampling request is analyzed, so that a current signal input into a current sampling circuit and the rated current class 45A of the frequency converter corresponding to the current signal are obtained, that is, for different current signals of the frequency converter, the corresponding current classes are all 45A. The method of voltage sampling is consistent with the method of current sampling, and current sampling is used as an example for explanation herein.
Specifically, as shown in fig. 3, fig. 3 takes current sampling as an example, and the process of voltage sampling and the process of current sampling are identical. If there are 7 different types of frequency converters, and there are 7 different rated current classes corresponding to the 7 different types of frequency converters, which are respectively 50A, 45A, 40A, 35A, 30A, 25A and 20A, the current signal range corresponding to the frequency converter with the rated current class of 50A is-50A to 50A, the current signal range corresponding to the frequency converter with the rated current class of 45A is-45A to 45A, the current signal range corresponding to the frequency converter with the rated current class of 40A is-40A to 40A, the current signal range corresponding to the frequency converter with the rated current class of 35A is-35A to 35A, the current signal range corresponding to the frequency converter with the rated current class of 30A is-30A to 30A, the current signal range corresponding to the frequency converter with the rated current class of 25A is-25A to 25A and the current signal range corresponding to the frequency converter with the rated current class of 20A The circumference is-20A.
Each rated current level is associated with a preset current gear, and a plurality of different rated current levels can be associated with the same preset current gear, for example, the rated current levels of 50A and 45A correspond to the current gear of 50A/3V. As shown in fig. 3, fig. 3 sets 4 current gears according to rated current levels of 7 different frequency converters to be sampled, the first current gear is set according to a preset proportion and a maximum rated current level, and all subsequent gears are set according to the previous gear and the preset proportion. The number of current gears can be 2, 3 or 4 gears according to rated current levels of different numbers of frequency converters, and the setting of specific gears is not limited here.
In a further embodiment, as shown in fig. 4, the process of setting all the preset voltage and current gears according to a preset ratio and the rated voltage and current level of the frequency converter specifically includes steps S110a-S110 c.
In step S110a, the maximum and minimum values of all rated voltage and current levels are determined.
The purpose of determining the maximum value and the minimum value in the rated voltage and current levels of all frequency converters to be sampled is to determine the range of the first gear voltage and current gear and the last gear voltage and current gear of the voltage and current gear. Specifically, as shown in fig. 3, fig. 3 shows rated current levels of 7 different frequency converters, which are 50A, 45A, 40A, 35A, 30A, 25A and 20A respectively, and in the 7 current levels, the maximum value is 50A, and the minimum value is 20A. After the maximum and minimum values are determined, it is ready for the next step.
In step S110b, the maximum value of the rated voltage/current levels is used as the first voltage/current step.
The purpose of taking the maximum value in the rated voltage and current levels as the first voltage and current gear is to determine the upper limit value of the voltage and current gear, namely the highest gear in the voltage and current gear, and after the first voltage and current gear is determined, all subsequent gears can be set according to the preset proportion of the numerical value of the previous gear. For example, as shown in fig. 3, if the maximum value of the 7 th rated current class is 50A, the corresponding first-speed current class is 50A/3V, and the first-speed class indicates that the first output voltage finally output by corresponding conversion is 3V in the case where the rated current class is 50A. The sampling reference voltage of the microprocessor 2 is set according to actual requirements, and can be set to be 3V, 6V or 15V according to different specific situations, and specific values are not limited herein.
Step S110c, taking the value obtained by rounding the ratio of the first voltage-current gear to the preset ratio as a second voltage-current gear, repeating the above steps until the value obtained by rounding the ratio of the nth voltage-current gear to the preset ratio is smaller than the minimum value in the rated voltage-current levels, and taking the nth voltage-current gear as the last voltage-current gear.
After the first voltage and current gear is confirmed, setting a second voltage and current gear according to a preset ratio and a ratio of a preset proportion of the first voltage and current gear by taking the first voltage and current gear as a standard, and then setting all subsequent gears according to the rule until all preset voltage and current levels are within a set gear range; the preset ratio can be set according to the specific use condition of the frequency converter.
For example, the preset ratio may be 77%, 80%, or 90%, as shown in fig. 3, the preset ratio in fig. 3 is 77%, the first current gear is 50A/3V, the second current gear is calculated according to 77% of the first current gear 50A/3V, the second current gear is 38A/3V, and the subsequent gears are set according to the preset ratio of the previous gear, so that the third current gear is 30A/3V, and the fourth current gear is 23A/3V.
The minimum of the 7 rated current steps of fig. 3 is 20A, while 23A × 77% ≈ 17.71A, i.e., the fifth current step is already lower than the lowest rated current step, so that only 4 steps are required to satisfy the 7 current steps, and no further increase in steps is required.
Step S120, selecting a preset voltage-current gear associated with the obtained rated voltage-current level of the frequency converter by controlling the adjusting unit 4, so that the first operational amplifying unit 3 receives the obtained voltage-current signal and then outputs a corresponding first output voltage, where the first output voltage is within a preset voltage range.
In this embodiment, after the rated current level of the frequency converter is confirmed, the adjusting unit 4 selects a relevant voltage-current gear for the collected voltage-current signal, so that the first operational amplifying unit 33 outputs a corresponding first output voltage after receiving the collected voltage-current signal. The preset voltage range is a range of the first output voltage, which is set by a user according to an actual requirement, and may be specifically 0-3V, 0-15V or 0-30V, and the specific range is not limited herein.
For example, as shown in FIG. 3, in the present embodiment, the predetermined voltage range is 0-3V. If the collected rated current grade is 45A, the matched gear is the first gear 50A/3V, and the matching principle of the specific gear is that the gear with the voltage and current grade higher than and closest to the input voltage and current grade is used as the gear matched with the input voltage and current grade. If the input current signal level is 45A, the gear position larger than 45A is 50A/3V, and therefore 50A/3V is selected as the matched gear position.
The specific conversion mode of the first output voltage is as follows: as the voltage corresponding to-50A is 0-3V, the voltage corresponding to-45A is 0.15-2.85V, namely the first output voltage is 0.15-2.85V. In the conventional voltage and current sampling circuit, the step is usually to replace different voltage and current detection plates to match different voltage and current levels, so that the operation is complicated.
In one embodiment, as illustrated in FIG. 5, the step S120 may include steps S121-S122.
Step S121, according to the obtained rated voltage and current level of the frequency converter, determining a preset voltage and current gear associated with the rated voltage and current level of the frequency converter, and setting the preset voltage and current gear as a target voltage and current gear.
After the rated voltage and current level of the frequency converter corresponding to the input current signal is obtained, the preset voltage and current gear associated with the rated voltage and current level can be confirmed, and the voltage and current gear is set as the target voltage and current gear. For example, as shown in fig. 3, if the confirmed rated current level is 45A, the current step associated with 45A is 50A/3V, and then the step is set as the target current step.
Step S122, controlling the adjusting unit 4 to select the target voltage current gear so that the first operational amplifying unit 3 outputs a corresponding first output voltage after receiving the acquired voltage current signal.
After the target voltage and current gear is confirmed, the control and adjustment unit 4 selects the target voltage and current gear, so that the first operational amplification unit 3 outputs a corresponding first output voltage after receiving the acquired voltage and current signal. For example, as shown in fig. 3, after the target shift position is confirmed to be 50A/3V, and the adjusting unit 4 switches the shift position to the shift position, the first operational amplifying unit 3 outputs a corresponding first output voltage of 0.15-2.85V according to the received current signal and the selected current shift position.
Step S130, sending the first output voltage to the AD sampling port of the microprocessor 2, so that the AD sampling port of the microprocessor 2 converts the first output voltage into a first digital voltage signal.
In the present embodiment, after the voltage-current step is confirmed, the first output voltage is sent to the AD sampling port of the microprocessor 2, so that the AD sampling port of the microprocessor 2 converts the first output voltage into a first digital voltage signal.
In one embodiment, as shown in FIG. 6, the step S130 may include steps S131-S132.
Step S131, if the AD sampling port of the microprocessor 2 receives the first output voltage, the AD sampling port of the microprocessor is controlled to send a conversion request to the microprocessor 2.
When the AD sampling port of the microprocessor 2 receives the first output voltage, it sends a conversion request to the microprocessor 2 to convert the first output voltage into a first digital voltage signal.
Step S132, if the microprocessor 2 receives the conversion request, controlling the microprocessor 2 to make the microprocessor 2 control the AD sampling port of the microprocessor 2 to convert the first output voltage into a first digital voltage signal.
After the microprocessor 2 receives the conversion request, it controls the AD sampling port to convert the first output voltage into the first digital voltage signal. For example, as shown in fig. 3, fig. 3 is an example of a 12-bit AD sampling port, where the upper limit value of the digital value corresponding to the 12-bit AD is 4096, and the corresponding preset voltage range of 0-3V corresponds to the first digital voltage signal range of the 12-bit AD, where different preset voltage ranges correspond to different numbers of bits of AD, and the number of bits of AD may be 10 bits, 12 bits, or 16 bits, and the specific number of bits is not limited herein.
For example, if the first output voltage corresponding to the rated current level of 45A is 0.15-2.85V, the specific process of converting the first output voltage of 0.15-2.85V into the first digital voltage signal is as follows: since the gear corresponding to the rated current level of 45A is 50A/3V and 3V is the reference voltage of the microprocessor 2, the upper limit value of the first digital voltage signal is the digital value upper limit value/reference voltage corresponding to the upper limit value 12 bits AD of the first output voltage, and the upper limit value of the first output voltage is 2.85V, so that the upper limit value of the first digital voltage signal is 2.85V 4096/3V 3891; the lower limit value of the first digital voltage signal is equal to the digital value upper limit value/reference voltage corresponding to the lower limit value 12 bits AD of the first output voltage, the lower limit value of the first output voltage is 0.15V, so the lower limit value of the first digital voltage signal is 0.15V 4096/3V, so the first digital voltage signal is 205-3891, and all values calculated by the above formula are integers.
Step S140, determining a corresponding compensation coefficient according to the obtained rated voltage and current level of the frequency converter and a preset compensation coefficient table, and calculating by the microprocessor 2 according to the compensation coefficient, the first digital voltage signal and a preset calculation rule to obtain a second digital voltage signal within a preset digital voltage range.
In this embodiment, the compensation coefficient table may be set in advance according to the rated voltage and current levels of different frequency converters, and then the compensation coefficient table is input into the software, during the use process, the compensation coefficient corresponding to the collected rated voltage and current level of the frequency converter is looked up in the compensation coefficient table only according to the rated voltage and current level of the frequency converter, and then the compensation coefficient is sent to the microprocessor 2 so that the microprocessor 2 can calculate the corresponding second digital voltage signal according to the first digital signal.
As shown in fig. 3, in this embodiment, if the rated current level is 45A, the compensation coefficient corresponding to 45A is 1.1112, for convenience of representation, the compensation coefficients in fig. 3 are all accurate to two bits behind the decimal point, and the actual compensation coefficient is taken as the standard during calculation; if the first digital voltage signal is 205-3891, the AD digit is 12 bits, wherein the preset digital voltage range is-2048, the preset digital voltage range can be correspondingly adjusted according to the AD digit, and the specific range is not limited herein; under the above conditions, the specific calculation method of the second digital voltage signal is as follows: the upper limit value of the second digital voltage signal is (upper limit value-2048 of the first digital voltage signal) compensation coefficient, and the upper limit value of the first digital voltage signal is 3891, so the upper limit value of the second digital voltage signal is (3891) -2048) 1.1112 ≈ 2048. The compensation coefficient at this time is a ratio of 0A between an upper limit value of the current converted into the digital signal and (an upper limit value of the second digital voltage signal minus the upper limit value of the current converted into the digital signal), that is, 2048 ÷ (3891-.
The lower limit value of the second digital voltage signal is (the lower limit value of the first digital voltage signal is-2048) × compensation coefficient, the lower limit value of the first digital voltage signal is 205, so that the lower limit value of the second digital voltage signal is (205) × 1.1112 ≈ -2048, so that the second digital voltage signal can be obtained as-2048, and the calculation values of all the formulas are integers.
Through the series of steps, the range of the finally output second digital voltage signal can be-2048, so that in the subsequent calculation, the calculation method can be calculated by adopting a unified calculation method without changing the calculation method according to the rated voltage and current grade of the frequency converter, the calculation process is greatly optimized, and the calculation difficulty is reduced.
Specifically, if the preset voltage range is 0-3V, the microprocessing reference voltage is 3V, and the current signals to be sampled are-50A, -45A, -40A, -35A, -30A, -25A and-20A, the rated current grades of the corresponding frequency converters are 50A, 40A, 35A, 30A, 25A and 20A respectively; according to the 7-gear current level, the current gears can be divided into 4 gears, specifically, a first gear current gear 50A/3V, a second gear current gear 38A/3V, a third gear current gear 30A/3V and a fourth gear current gear 23A/3V, and the calculation processes are described in detail in the previous steps, so that only the results are given here.
If the obtained rated current grade of the frequency converter is 45A, according to the principle of selecting gears,
the gear corresponding to 45A is a first gear current gear 50A/3V, then the first output voltage is calculated to be 0.15-2.85V according to the selected gear, the first digital voltage signal can be calculated to be 205-3891 according to the first output voltage, and finally the second digital voltage signal is calculated to be-2048 according to the first digital voltage signal.
If the obtained rated current grade of the frequency converter is assumed to be 35A, a second gear current gear 38A/3V is selected as the gear of 35A according to the gear selection principle.
Then, the first output voltage is calculated according to the selected gear: the voltages corresponding to-38A are 0-3V, so the voltages corresponding to-35A are 0.12-2.88V, i.e. the first output voltage is 0.12-2.88V. And then calculating a first digital voltage signal according to the first output voltage, wherein the upper limit value of the first digital voltage signal is 2.88 × 4096/3 ═ 3932, and the lower limit value of the first digital voltage signal is 0.12 × 4096/3 ═ 164, so that the first digital voltage signal is 164-3932.
Finally, the second digital voltage signal is calculated according to the first digital voltage signal and the compensation coefficient, the compensation coefficient corresponding to the rated current level 35A is about 1.08704, the upper limit value of the second digital voltage signal is (3932-
1.08704 ≈ 2048, so that the second digital voltage signal is-2048 ~ 2048, and all the above calculation results are integers, and all the above specific calculation processes are explained in detail before, so that only the final result is given here.
According to the two different collected current levels, the finally output second digital voltage is-2048 no matter what the obtained rated current level of the frequency converter is, so that different calculation methods are not needed to be adopted for calculating the second digital voltage signal subsequently due to different rated current levels of the frequency converter, the calculation difficulty is reduced, and the overall calculation efficiency is improved.
Fig. 7 is a schematic block diagram of a voltage-current sampling apparatus with multiple power segments according to an embodiment of the present invention. As shown in fig. 7, the present invention also provides a multi-power-stage voltage and current sampling apparatus corresponding to the above multi-power-stage voltage and current sampling method. Referring to fig. 7, the multi-power voltage and current sampling apparatus includes a receiving unit 110, a first confirming unit 120, a first converting unit 130, and a first calculating unit 140.
The receiving unit 110 is configured to, if a voltage and current sampling request is received, analyze the voltage and current sampling request to obtain an input voltage and current signal and a rated voltage and current level of a frequency converter corresponding to the voltage and current signal, where the rated voltage and current level of each frequency converter is associated with a corresponding preset voltage and current gear, and all the preset voltage and current gears are set according to a preset ratio and the rated voltage and current level of the frequency converter.
In the present embodiment, when a voltage-current sampling request is received, the voltage-current sampling request is analyzed, so that a voltage-current signal input to the voltage-current sampling circuit and a rated voltage-current level of the inverter corresponding to the voltage-current signal are obtained. The rated voltage and current levels of the frequency converters are associated with preset voltage and current gears, corresponding voltage and current gears can be set in advance according to different rated voltage and current levels of the frequency converters according to a preset proportion, for example, if a certain frequency converter has 7 different rated voltage and current levels, the gears can be set according to the voltage and current levels of the 7 levels according to a certain proportion. Taking current sampling as an example, if the rated current class of a certain type of frequency converter is 45A, the frequency converter can output a current signal between-45A and 45A, and when a current sampling request is received, the current sampling request is analyzed, so that a current signal input into a current sampling circuit and the rated current class 45A of the frequency converter corresponding to the current signal are obtained, that is, for different current signals of the frequency converter, the corresponding current classes are 45A, and the voltage sampling method is the same as the current sampling method, which is described herein by taking current sampling as an example.
Specifically, as shown in fig. 3, fig. 3 takes current sampling as an example, and the process of voltage sampling and the process of current sampling are identical. If there are 7 different types of frequency converters, and there are 7 different rated current classes corresponding to the 7 different types of frequency converters, which are respectively 50A, 45A, 40A, 35A, 30A, 25A and 20A, the current signal range corresponding to the frequency converter with the rated current class of 50A is-50A to 50A, the current signal range corresponding to the frequency converter with the rated current class of 45A is-45A to 45A, the current signal range corresponding to the frequency converter with the rated current class of 40A is-40A to 40A, the current signal range corresponding to the frequency converter with the rated current class of 35A is-35A to 35A, the current signal range corresponding to the frequency converter with the rated current class of 30A is-30A to 30A, the current signal range corresponding to the frequency converter with the rated current class of 25A is-25A to 25A and the current signal range corresponding to the frequency converter with the rated current class of 20A The circumference is-20A.
Each rated current level is associated with a preset current gear, and a plurality of different rated current levels can be associated with the same preset current gear, for example, the rated current levels of 50A and 45A correspond to the current gear of 50A/3V. As shown in fig. 3, fig. 3 sets 4 current gears according to rated current levels of 7 different frequency converters to be sampled, the first current gear is set according to a preset proportion and a maximum rated current level, and all subsequent gears are set according to a previous gear and the preset proportion. The number of current gears can be 2, 3 or 4 gears according to rated current levels of different numbers of frequency converters, and the setting of specific gears is not limited here.
In a further embodiment, as shown in fig. 8, all the preset voltage and current steps are set according to a preset ratio and a rated voltage and current level of the frequency converter, and specifically, the preset voltage and current steps are implemented by a receiving unit 110 in the apparatus 100, where the receiving unit 110 may include a third confirming unit 110a, a first processing unit 110b, and a second processing unit 110 c.
The third confirming unit 110a is used for determining the maximum value and the minimum value in all rated voltage and current levels.
The purpose of determining the maximum value and the minimum value in the rated voltage and current levels of all frequency converters to be sampled is to determine the range of the first gear voltage and current gear and the last gear voltage and current gear of the voltage and current gear. Specifically, as shown in fig. 3, fig. 3 shows rated current levels of 7 different frequency converters, which are 50A, 45A, 40A, 35A, 30A, 25A and 20A respectively, and in the 7 current levels, the maximum value is 50A, and the minimum value is 20A. After the maximum and minimum values are determined, it is ready for the next step.
The first processing unit 110b is configured to use a maximum value of the rated voltage and current levels as a first voltage and current step.
The purpose of taking the maximum value in the rated voltage and current levels as the first voltage and current gear is to determine the upper limit value of the voltage and current gear, namely the highest gear in the voltage and current gear, and after the first voltage and current gear is determined, all subsequent gears can be set according to the preset proportion of the numerical value of the previous gear. For example, as shown in fig. 3, if the maximum value of the 7 th rated current class is 50A, the corresponding first-speed current class is 50A/3V, and the first-speed class indicates that the first output voltage finally output by corresponding conversion is 3V in the case where the rated current class is 50A. The sampling reference voltage of the microprocessor 2 is set according to actual requirements, and can be set to be 3V, 6V or 15V according to different specific situations, and specific values are not limited herein.
The second determining unit 110c is configured to use a value obtained by rounding the ratio of the first voltage-current gear to the preset ratio as a second voltage-current gear, and so on until a value obtained by rounding the ratio of the nth voltage-current gear to the preset ratio is smaller than a minimum value in the rated voltage-current classes, and use the nth voltage-current gear as a final voltage-current gear.
After the first voltage and current gear is confirmed, setting a second voltage and current gear according to a preset ratio and a ratio of a preset proportion of the first voltage and current gear by taking the first voltage and current gear as a standard, and then setting all subsequent gears according to the rule until all preset voltage and current levels are within a set gear range; the preset ratio can be set according to the specific use condition of the frequency converter.
For example, the preset ratio may be 77%, 80%, or 90%, as shown in fig. 3, the preset ratio in fig. 3 is 77%, the first current gear is 50A/3V, the second current gear is calculated according to 77% of the first current gear 50A/3V, the second current gear is 38A/3V, and the subsequent gears are set according to the preset ratio of the previous gear, so that the third current gear is 30A/3V, and the fourth current gear is 23A/3V.
The minimum of the 7 rated current steps of fig. 3 is 20A, while 23A × 77% ≈ 17.71A, i.e., the fifth current step is already lower than the lowest rated current step, so that only 4 steps are required to satisfy the 7 current steps, and no further increase in steps is required.
The first confirming unit 120 is configured to control the adjusting unit 4 to select a preset voltage-current gear associated with the obtained rated voltage-current level of the frequency converter, so that the first operational amplifying unit 3 receives the obtained voltage-current signal and then outputs a corresponding first output voltage, where the first output voltage is within a preset voltage range.
In this embodiment, after the rated current level of the frequency converter is confirmed, the adjusting unit 4 selects a relevant voltage-current gear for the collected voltage-current signal, so that the first operational amplifying unit 33 outputs a corresponding first output voltage after receiving the collected voltage-current signal. The preset voltage range is a range of the first output voltage, which is set by a user according to an actual requirement, and may be specifically 0-3V, 0-15V or 0-30V, and the specific range is not limited herein.
For example, as shown in FIG. 3, in the present embodiment, the predetermined voltage range is 0-3V. If the collected rated current grade is 45A, the matched gear is the first gear 50A/3V, and the matching principle of the specific gear is that the gear with the voltage and current grade higher than and closest to the input voltage and current grade is used as the gear matched with the input voltage and current grade. If the input current signal level is 45A, the gear position which is larger than 45A is 50A/3V, and therefore 50A/3V is selected as the matched gear position.
The specific conversion mode of the first output voltage is as follows: as the voltage corresponding to-50A is 0-3V, the voltage corresponding to-45A is 0.15-2.85V, namely the first output voltage is 0.15-2.85V. In the conventional voltage and current sampling circuit, the step is usually to replace different voltage and current detection plates to match different voltage and current levels, so that the operation is complicated.
In an embodiment, as illustrated in fig. 9, the first confirming unit 120 may include: a second confirmation unit 121 and an output unit 122.
The second confirming unit 121 is configured to determine, according to the obtained rated voltage and current level of the frequency converter, a preset voltage and current gear associated with the rated voltage and current level of the frequency converter, and set the preset voltage and current gear as a target voltage and current gear.
After the rated voltage and current level of the frequency converter corresponding to the input current signal is obtained, the preset voltage and current gear associated with the rated voltage and current level can be confirmed, and the voltage and current gear is set as the target voltage and current gear. For example, as shown in fig. 3, if the confirmed rated current level is 45A, the current step associated with 45A is 50A/3V, and then the step is set as the target current step.
The output unit 122 is configured to control the adjusting unit 4 to select the target voltage current step so that the first operational amplifying unit 3 receives the acquired voltage current signal and then outputs a corresponding first output voltage.
After the target voltage and current gear is confirmed, the control and adjustment unit 4 selects the target voltage and current gear, so that the first operational amplification unit 3 outputs a corresponding first output voltage after receiving the acquired voltage and current signal. For example, as shown in fig. 3, after the target shift position is confirmed to be 50A/3V, and the adjusting unit 4 switches the shift position to the shift position, the first operational amplifying unit 3 outputs a corresponding first output voltage of 0.15-2.85V according to the received current signal and the selected current shift position.
The first conversion unit 130 is configured to send the first output voltage to an AD sampling port of the microprocessor 2, so that the AD sampling port of the microprocessor 2 converts the first output voltage into a first digital voltage signal.
In the present embodiment, after the voltage-current step is confirmed, the first output voltage is sent to the AD sampling port of the microprocessor 2, so that the AD sampling port of the microprocessor 2 converts the first output voltage into a first digital voltage signal.
In an embodiment, as illustrated in fig. 10, the first conversion unit 130 may include: a transmitting unit 131 and a second converting unit 132.
The sending unit 131 is configured to control the AD sampling port of the microprocessor 2 to send a conversion request to the microprocessor 2 if the AD sampling port of the microprocessor 2 receives the first output voltage.
When the AD sampling port of the microprocessor 2 receives the first output voltage, a conversion request is sent to the microprocessor 2 to convert the first output voltage into a first digital voltage signal.
The second conversion unit 132 is configured to control the microprocessor 2 to enable the microprocessor 2 to control the AD sampling port of the microprocessor 2 to convert the first output voltage into a first digital voltage signal if the microprocessor 2 receives the conversion request.
After the microprocessor 2 receives the conversion request, it controls the AD sampling port to convert the first output voltage into the first digital voltage signal. For example, as shown in fig. 3, fig. 3 is an example of a 12-bit AD sampling port, where the upper limit value of the digital value corresponding to the 12-bit AD is 4096, and the corresponding preset voltage range of 0-3V corresponds to the first digital voltage signal range of the 12-bit AD, where different preset voltage ranges correspond to different numbers of bits of AD, and the number of bits of AD may be 10 bits, 12 bits, or 16 bits, and the specific number of bits is not limited herein.
For example, if the first output voltage corresponding to the rated current level of 45A is 0.15-2.85V, the specific process of converting the first output voltage of 0.15-2.85V into the first digital voltage signal is as follows: since the gear corresponding to the rated current level of 45A is 50A/3V and 3V is the reference voltage of the microprocessor 2, the upper limit value of the first digital voltage signal is the digital value upper limit value/reference voltage corresponding to the upper limit value 12 bits AD of the first output voltage, and the upper limit value of the first output voltage is 2.85V, so that the upper limit value of the first digital voltage signal is 2.85V 4096/3V 3891; the lower limit value of the first digital voltage signal is equal to the digital value upper limit value/reference voltage corresponding to the lower limit value 12 bits AD of the first output voltage, the lower limit value of the first output voltage is 0.15V, so the lower limit value of the first digital voltage signal is 0.15V 4096/3V, so the first digital voltage signal is 205-3891, and all values calculated by the above formula are integers.
The first calculating unit 140 is configured to determine a corresponding compensation coefficient according to the acquired rated voltage and current level of the frequency converter and a preset compensation coefficient table, and the microprocessor 2 calculates a second digital voltage signal within a preset digital voltage range according to the compensation coefficient, the first digital voltage signal and a preset calculating rule.
In this embodiment, the compensation coefficient table may be set in advance according to the rated voltage and current levels of different frequency converters, and then the compensation coefficient table is input into the software, during the use process, the compensation coefficient corresponding to the collected rated voltage and current level of the frequency converter is looked up in the compensation coefficient table only according to the rated voltage and current level of the frequency converter, and then the compensation coefficient is sent to the microprocessor 2 so that the microprocessor 2 can calculate the corresponding second digital voltage signal according to the first digital signal.
As shown in fig. 3, in this embodiment, if the rated current level is 45A, the compensation coefficient corresponding to 45A is 1.1112, for convenience of representation, the compensation coefficients in fig. 3 are all accurate to two bits behind the decimal point, and the actual compensation coefficient is taken as the standard during calculation; if the first digital voltage signal is 205-3891, the AD digit is 12 bits, wherein the preset digital voltage range is-2048, the preset digital voltage range can be correspondingly adjusted according to the AD digit, and the specific range is not limited herein; under the above conditions, the specific calculation method of the second digital voltage signal is as follows: the upper limit value of the second digital voltage signal is (upper limit value-2048 of the first digital voltage signal) compensation coefficient, and the upper limit value of the first digital voltage signal is 3891, so the upper limit value of the second digital voltage signal is (3891) -2048) 1.1112 ≈ 2048. The compensation coefficient at this time is a ratio of 0A between an upper limit value of the current converted into the digital signal and (an upper limit value of the second digital voltage signal minus the upper limit value of the current converted into the digital signal), that is, 2048 ÷ (3891-.
The lower limit value of the second digital voltage signal is (the lower limit value of the first digital voltage signal is-2048) × compensation coefficient, the lower limit value of the first digital voltage signal is 205, so that the lower limit value of the second digital voltage signal is (205) × 1.1112 ≈ -2048, so that the second digital voltage signal can be obtained as-2048, and the calculation values of all the formulas are integers.
Through the series of steps, the range of the finally output second digital voltage signal can be-2048, so that in the subsequent calculation, the calculation method can be calculated by adopting a unified calculation method without changing the calculation method according to the rated voltage and current grade of the frequency converter, the calculation process is greatly optimized, and the calculation difficulty is reduced.
In an embodiment, as shown in fig. 11, the operational amplification module 1 further includes a second operational amplification unit 6 and an isolation amplification unit 5, and the output end of the adjustment unit 4 is connected in series with the AD sampling port of the microprocessor 2 sequentially through the second operational amplification unit 6 and the isolation amplification unit 5.
The isolation amplifying unit 5 and the second operational amplifying unit 6 are both used for amplifying the first output voltage adjusted by the adjusting unit 4, so that the result when the first digital voltage signal and the second digital voltage signal are calculated later is more accurate and convenient.
The voltage-current sampling apparatus of the multi-power section may be implemented in the form of a computer program, which can be run on a computer device as shown in fig. 12.
Referring to fig. 12, fig. 12 is a schematic block diagram of a multi-power-stage voltage-current sampling system 500 according to an embodiment of the present disclosure. The voltage and current sampling system of the multi-power segment comprises a memory 503, a processor 501 connected with the memory 503 and a voltage and current sampling circuit 502 connected with the processor 501, wherein the voltage and current sampling circuit 502 comprises an operational amplification module 5021 and a microprocessor 5022, the operational amplification module 5021 comprises a first operational amplification unit 50212 and an adjustment unit 50211 with a plurality of current and voltage gears, and the first operational amplification unit 50212 is electrically connected with the microprocessor 5022 through the adjustment unit 50211; the memory 503 is used to store computer programs 5031; the processor 501 is configured to run the computer program 5031 stored in the memory 503 to perform the steps of the multi-power-segment voltage-current sampling method as implemented above.
Wherein the processor 501 is configured to run the computer program 5031 stored in the memory 503 to implement the following steps: if a voltage and current sampling request is received, analyzing the voltage and current sampling request to obtain an input voltage and current signal and a rated voltage and current grade of a frequency converter corresponding to the voltage and current signal, wherein the rated voltage and current grade of each frequency converter is correspondingly associated with a corresponding preset voltage and current gear, and all preset voltage and current gears are set according to a preset proportion and the rated voltage and current grade of the frequency converter;
selecting a preset voltage and current gear associated with the acquired rated voltage and current grade of the frequency converter by controlling the adjusting unit so that the first operational amplifying unit outputs a corresponding first output voltage after receiving the acquired voltage and current signal, wherein the first output voltage is within a preset voltage range;
sending the first output voltage to an AD sampling port of the microprocessor so that the AD sampling port of the microprocessor converts the first output voltage into a first digital voltage signal;
and determining a corresponding compensation coefficient according to the acquired rated voltage and current grade of the frequency converter and a preset compensation coefficient table, and sending the compensation coefficient to the microprocessor, so that the microprocessor calculates according to the compensation coefficient, the first digital voltage signal and a preset calculation rule to obtain a second digital voltage signal within the preset voltage range.
In an embodiment, when the processor 502 implements the step that all the preset voltage and current gears are set according to the preset proportion and the rated voltage and current level of the frequency converter, the following steps are implemented: determining the maximum value and the minimum value in all rated voltage and current levels; taking the maximum value in the rated voltage and current levels as a first voltage and current gear; and taking the value obtained by rounding the ratio of the first voltage-current gear to the preset proportion as a second voltage-current gear, circulating the steps until the value obtained by rounding the ratio of the Nth voltage-current gear to the preset proportion is smaller than the minimum value in the rated voltage-current levels, and taking the Nth voltage-current gear as the final voltage-current gear.
In an embodiment, when implementing the step of selecting, by controlling the adjusting unit, a preset voltage-current gear associated with the obtained rated voltage-current level of the frequency converter, so that the first operational amplifying unit outputs a corresponding first output voltage after receiving the obtained voltage-current signal, where the first output voltage is within a preset voltage range, the processor 502 specifically implements the following steps:
determining a preset voltage and current gear associated with the rated voltage and current grade of the frequency converter according to the acquired rated voltage and current grade of the frequency converter, and setting the preset voltage and current gear as a target voltage and current gear;
and controlling the adjusting unit to select the target voltage and current gear so that the first operational amplifying unit outputs corresponding first output voltage after receiving the acquired voltage and current signal.
In an embodiment, when the step of sending the first output voltage to the AD sampling port of the microprocessor so that the sampling port of the microprocessor converts the first output voltage into the first digital voltage signal is implemented, the processor 502 specifically implements the following steps:
if the AD sampling port of the microprocessor receives the first output voltage, controlling the AD sampling port of the microprocessor to send a conversion request to the microprocessor;
and if the microprocessor receives the conversion request, controlling the microprocessor to control an AD sampling port of the microprocessor to convert the first output voltage into a first digital voltage signal.
It should be understood that in the embodiment of the present Application, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. The method for sampling the voltage and the current of the multiple power sections is applied to a voltage and current sampling circuit, the voltage and current sampling circuit comprises an operational amplification module and a microprocessor, the operational amplification module comprises a first operational amplification unit and an adjustment unit with a plurality of current and voltage gears, the first operational amplification unit is electrically connected with the microprocessor through the adjustment unit, and the voltage and current sampling method comprises the following steps:
if a voltage and current sampling request is received, analyzing the voltage and current sampling request to obtain an input voltage and current signal and a rated voltage and current grade of a frequency converter corresponding to the voltage and current signal, wherein the rated voltage and current grade of each frequency converter is correspondingly associated with a corresponding preset voltage and current gear, and all preset voltage and current gears are set according to a preset proportion and the rated voltage and current grade of the frequency converter;
selecting a preset voltage and current gear associated with the acquired rated voltage and current grade of the frequency converter by controlling the adjusting unit so that the first operational amplifying unit outputs a corresponding first output voltage after receiving the acquired voltage and current signal, wherein the first output voltage is within a preset voltage range;
sending the first output voltage to an AD sampling port of the microprocessor so that the AD sampling port of the microprocessor converts the first output voltage into a first digital voltage signal;
determining a corresponding compensation coefficient according to the acquired rated voltage and current grade of the frequency converter and a preset compensation coefficient table, and calculating by the microprocessor according to the compensation coefficient, the first digital voltage signal and a preset calculation rule to obtain a second digital voltage signal within a preset digital voltage range, wherein the preset calculation rule is as follows: the second digital voltage signal is (the first digital voltage signal-0A current is converted into the upper limit value of the digital signal) × compensation coefficient, wherein, the compensation coefficient is 0A current is converted into the upper limit value of the digital signal/(the upper limit value of the first digital voltage signal-the upper limit value of the preset digital voltage range);
wherein, all predetermine voltage electric current gear all according to predetermineeing the proportion and the rated voltage electric current grade of converter sets up, includes:
determining the maximum value and the minimum value in all rated voltage and current levels;
taking the maximum value in the rated voltage and current levels as a first voltage and current gear;
and taking the value obtained by rounding the ratio of the first voltage-current gear to the preset proportion as a second voltage-current gear, circulating the steps until the value obtained by rounding the ratio of the Nth voltage-current gear to the preset proportion is smaller than the minimum value in the rated voltage-current levels, and taking the Nth voltage-current gear as the final voltage-current gear.
2. The voltage-current sampling method for multiple power segments according to claim 1, wherein the step of selecting a preset voltage-current step associated with the obtained rated voltage-current level of the frequency converter by controlling the adjusting unit, so that the first operational amplifying unit receives the obtained voltage-current signal and outputs a corresponding first output voltage, wherein the step of outputting the first output voltage within a preset voltage range specifically comprises:
determining a preset voltage and current gear associated with the rated voltage and current grade of the frequency converter according to the acquired rated voltage and current grade of the frequency converter, and setting the preset voltage and current gear as a target voltage and current gear;
and controlling the adjusting unit to select the target voltage and current gear so that the first operational amplifying unit outputs corresponding first output voltage after receiving the acquired voltage and current signal.
3. The method according to claim 1, wherein the step of sending the first output voltage to an AD sampling port of a microprocessor so that the sampling port of the microprocessor converts the first output voltage into a first digital voltage signal comprises:
if the AD sampling port of the microprocessor receives the first output voltage, controlling the AD sampling port of the microprocessor to send a conversion request to the microprocessor;
and if the microprocessor receives the conversion request, controlling the microprocessor to control an AD sampling port of the microprocessor to convert the first output voltage into a first digital voltage signal.
4. The utility model provides a voltage current sampling device of many power sections, its characterized in that, the device is applied to voltage current sampling circuit, voltage current sampling circuit includes operational amplification module and microprocessor, the operational amplification module includes first operational amplification unit and has the adjustment unit of a plurality of current-voltage gears, first operational amplification unit pass through the adjustment unit with microprocessor electrical property links to each other, the device includes:
the receiving unit is used for analyzing the voltage and current sampling request to obtain an input voltage and current signal and a rated voltage and current grade of a frequency converter corresponding to the voltage and current signal if the voltage and current sampling request is received, wherein the rated voltage and current grade of each frequency converter is correspondingly associated with a corresponding preset voltage and current gear, and all the preset voltage and current gears are set according to a preset proportion and the rated voltage and current grade of the frequency converter;
the first confirming unit is used for controlling the adjusting unit to select a preset voltage and current gear associated with the acquired rated voltage and current grade of the frequency converter so that the first operational amplifying unit outputs corresponding first output voltage after receiving the acquired voltage and current signal, wherein the first output voltage is within a preset voltage range;
the first conversion unit is used for sending the first output voltage to an AD sampling port of the microprocessor so as to enable the AD sampling port of the microprocessor to convert the first output voltage into a first digital voltage signal;
the first calculating unit is configured to determine a corresponding compensation coefficient according to the acquired rated voltage and current level of the frequency converter and a preset compensation coefficient table, so that the microprocessor calculates a second digital voltage signal within a preset digital voltage range according to the compensation coefficient, the first digital voltage signal, and a preset calculating rule, where the preset calculating rule is: the second digital voltage signal is (the first digital voltage signal-0A current is converted into the upper limit value of the digital signal) × compensation coefficient, wherein, the compensation coefficient is 0A current is converted into the upper limit value of the digital signal/(the upper limit value of the first digital voltage signal-the upper limit value of the preset digital voltage range);
wherein the apparatus further comprises:
a third confirming unit for confirming the maximum value and the minimum value in all rated voltage and current levels;
the first processing unit is used for taking the maximum value in the rated voltage and current levels as a first voltage and current gear;
and the second processing unit is used for taking the value obtained by rounding the ratio of the first voltage-current gear to the preset proportion as a second voltage-current gear, circulating the steps until the value obtained by rounding the ratio of the Nth voltage-current gear to the preset proportion is smaller than the minimum value in the rated voltage-current levels, and taking the Nth voltage-current gear as the last voltage-current gear.
5. The apparatus of claim 4, wherein the first acknowledgment unit comprises:
the second confirming unit is used for determining a preset voltage and current gear associated with the rated voltage and current grade of the frequency converter according to the acquired rated voltage and current grade of the frequency converter and setting the preset voltage and current gear as a target voltage and current gear;
and the output unit is used for controlling the adjusting unit to select the target voltage and current gear so that the first operational amplifying unit outputs corresponding first output voltage after receiving the acquired voltage and current signal.
6. The apparatus of claim 4, wherein the first conversion unit comprises:
the first sending unit is used for controlling the AD sampling port of the microprocessor to send a conversion request to the microprocessor if the AD sampling port of the microprocessor receives the first output voltage;
and the control unit is used for controlling the microprocessor to control an AD sampling port of the microprocessor to convert the first output voltage into a first digital voltage signal if the microprocessor receives the conversion request.
7. The apparatus of claim 4, wherein the operational amplification module further comprises a second operational amplification unit and an isolation amplification unit, the output terminal of the adjustment unit is connected in series with the AD sampling port of the microprocessor sequentially through the second operational amplification unit and the isolation amplification unit, and the second operational amplification unit and the isolation amplification unit are both configured to amplify the first output voltage.
8. The voltage and current sampling system with multiple power sections is characterized by comprising a memory, a processor connected with the memory and a voltage and current sampling circuit connected with the processor, wherein the voltage and current sampling circuit comprises an operational amplification module and a microprocessor, the operational amplification module comprises a first operational amplification unit and an adjustment unit with multiple current and voltage gears, and the first operational amplification unit is electrically connected with the microprocessor through the adjustment unit; the memory is used for storing a computer program; the processor is adapted to run a computer program stored in the memory to perform the steps of the method according to any of claims 1-3.
CN202010061167.4A 2020-01-19 2020-01-19 Multi-power-section voltage and current sampling method, device and system Active CN111257617B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010061167.4A CN111257617B (en) 2020-01-19 2020-01-19 Multi-power-section voltage and current sampling method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010061167.4A CN111257617B (en) 2020-01-19 2020-01-19 Multi-power-section voltage and current sampling method, device and system

Publications (2)

Publication Number Publication Date
CN111257617A CN111257617A (en) 2020-06-09
CN111257617B true CN111257617B (en) 2022-08-05

Family

ID=70945356

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010061167.4A Active CN111257617B (en) 2020-01-19 2020-01-19 Multi-power-section voltage and current sampling method, device and system

Country Status (1)

Country Link
CN (1) CN111257617B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113114141A (en) * 2021-04-26 2021-07-13 北京机械设备研究所 Method, device and equipment for compensating power supply voltage of electric steering engine
CN114070683B (en) * 2022-01-11 2022-04-26 长芯盛(武汉)科技有限公司 Method for realizing adaptive equalization and adaptive equalizer

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5952855A (en) * 1997-01-03 1999-09-14 General Electric Company Circuit with multiple output voltages for multiple analog to digital converters
JP2003279602A (en) * 2002-01-15 2003-10-02 Mitsubishi Electric Corp Electronic indicating ammeter
JP2004320553A (en) * 2003-04-17 2004-11-11 Asahi Kasei Microsystems Kk Compensating circuit
US20080180976A1 (en) * 2006-10-13 2008-07-31 Pv Powered, Inc. Selectable line voltage inverters and associated methods
CN203070145U (en) * 2013-02-07 2013-07-17 成都芯源系统有限公司 Current signal generating circuit and current compensating device
CN109596949A (en) * 2018-12-13 2019-04-09 江苏凌创电气自动化股份有限公司 A kind of synchronous conversion method of intelligent substation digitized sampling and device
CN209088820U (en) * 2018-11-15 2019-07-09 湖南工业大学 A kind of Autocompensation three-phase AC voltage stabilizer

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101295931B (en) * 2008-05-30 2010-11-03 深圳市科陆电子科技股份有限公司 AC power source current output stabilization and converting circuit, converter and conversion method
CN201601610U (en) * 2009-11-30 2010-10-06 常熟开关制造有限公司(原常熟开关厂) Inverter circuit
CN102969932B (en) * 2012-12-20 2014-08-27 中南大学 Multifunctional current-type bidirectional AC (Alternating-Current)/DC (Direct-Current) converter and control method thereof
CN103605396B (en) * 2013-11-22 2015-12-09 苏州汇川技术有限公司 Output current of converter treatment circuit and method
CN103986403B (en) * 2014-05-30 2017-11-07 台达电子企业管理(上海)有限公司 Frequency conversion speed-adjusting system and method
CN204068780U (en) * 2014-09-04 2014-12-31 秦皇岛市博盛电子有限责任公司 A kind of built-in load all carries profile frequency converter
CN107340486B (en) * 2016-04-28 2020-01-07 中车株洲电力机车研究所有限公司 State detection method for output current sensor of locomotive traction converter

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5952855A (en) * 1997-01-03 1999-09-14 General Electric Company Circuit with multiple output voltages for multiple analog to digital converters
JP2003279602A (en) * 2002-01-15 2003-10-02 Mitsubishi Electric Corp Electronic indicating ammeter
JP2004320553A (en) * 2003-04-17 2004-11-11 Asahi Kasei Microsystems Kk Compensating circuit
US20080180976A1 (en) * 2006-10-13 2008-07-31 Pv Powered, Inc. Selectable line voltage inverters and associated methods
CN203070145U (en) * 2013-02-07 2013-07-17 成都芯源系统有限公司 Current signal generating circuit and current compensating device
CN209088820U (en) * 2018-11-15 2019-07-09 湖南工业大学 A kind of Autocompensation three-phase AC voltage stabilizer
CN109596949A (en) * 2018-12-13 2019-04-09 江苏凌创电气自动化股份有限公司 A kind of synchronous conversion method of intelligent substation digitized sampling and device

Also Published As

Publication number Publication date
CN111257617A (en) 2020-06-09

Similar Documents

Publication Publication Date Title
CN111257617B (en) Multi-power-section voltage and current sampling method, device and system
CN103812508A (en) Current sharing device, method and system
US20030071636A1 (en) Method and apparatus for near losslessly measuring inductor current
CN101556298B (en) Rectificative passive type load simulation device and method thereof
CN108873786B (en) Data acquisition system based on digital quantity conditioning
CN101154818B (en) Method and system for parallel connection of UPS derated models with different capacitance grade
CN102025508A (en) Current direction method and current direction device for ATCA (Advanced Telecom Computing Architecture) blade server
CN101154826B (en) Method and system for parallel connection of UPS with different capacitance grade
CN201096814Y (en) Generation device for sudden increase and decrease of voltage signal
CN109425803B (en) Analog quantity disconnection fault detection method, system and acquisition device
CN112161525A (en) Data analysis method for receiving circuit of electronic detonator initiator
US9350264B2 (en) Control device of power converter circuit
CN103546154A (en) Bit extending system and bit extending method for analog-to-digital conversion
CN115770930A (en) Welding machine equipment and voltage calibration method and device thereof
CN211063597U (en) Key scanning circuit based on AD sampling and electronic equipment
CN105099453B (en) A kind of circuit structure and method improving ADC sampling precisions
CN210273983U (en) Single-power-supply digital automatic gain control amplifying circuit
CA2414750A1 (en) Method and apparatus employing a scaling factor for measuring and displaying an electrical parameter of an electrical system
CN211426630U (en) Digital electric meter capable of reducing current measurement error
Balasubramanian A flash ADC with reduced complexity
CN216792721U (en) Control circuit applied to potentiometer and electronic equipment
CN112578176A (en) Voltage difference measuring circuit and related voltage difference measuring method
CN101587181A (en) Wideband digital telemetered signal isolating and matching method
CN100527629C (en) Analog to digital converter threshold detection circuit
US11683047B2 (en) Switch-mode power supplies with improved analog-to-digital current calibration

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant