[go: up one dir, main page]

WO2025013266A1 - Current/voltage detecting device and current/voltage detecting method - Google Patents

Current/voltage detecting device and current/voltage detecting method Download PDF

Info

Publication number
WO2025013266A1
WO2025013266A1 PCT/JP2023/025808 JP2023025808W WO2025013266A1 WO 2025013266 A1 WO2025013266 A1 WO 2025013266A1 JP 2023025808 W JP2023025808 W JP 2023025808W WO 2025013266 A1 WO2025013266 A1 WO 2025013266A1
Authority
WO
WIPO (PCT)
Prior art keywords
input
current
voltage
value
signal
Prior art date
Application number
PCT/JP2023/025808
Other languages
French (fr)
Japanese (ja)
Inventor
崇 桑原
慶洋 明星
Original Assignee
三菱電機株式会社
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 三菱電機株式会社 filed Critical 三菱電機株式会社
Priority to PCT/JP2023/025808 priority Critical patent/WO2025013266A1/en
Publication of WO2025013266A1 publication Critical patent/WO2025013266A1/en

Links

Images

Classifications

    • 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
    • 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
    • G01R21/00Arrangements for measuring electric power or power factor
    • G01R21/06Arrangements for measuring electric power or power factor by measuring current and voltage
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R21/00Arrangements for measuring electric power or power factor
    • G01R21/133Arrangements for measuring electric power or power factor by using digital technique

Definitions

  • This disclosure relates to a current/voltage detection device and a current/voltage detection method.
  • power is calculated as the product of current and voltage, so it is necessary to detect current and voltage simultaneously or by switching quickly between them.
  • a power measurement device is equipped with a circuit for detecting current and a circuit for detecting voltage, it can detect the current value and the voltage value almost simultaneously, making it possible to measure power instantly.
  • the power control device described in Patent Document 1 shares the circuitry provided after the current detection unit and the voltage detection unit, and switches between the current detection unit and the voltage detection unit in the shared circuit using a switch. This makes it possible to prevent an increase in the circuit scale of the device.
  • the current from the input terminal is passed through a shunt resistor and the amount of current (hereafter referred to as the current conversion value) is measured by converting it into a voltage, which is the product of the shunt resistance and the input current, i.e., the potential difference generated across the shunt resistor.
  • Patent Document 1 had the problem that when switching from current detection to voltage detection, if a large level difference occurs between the current conversion value and the input voltage value, large ringing occurs in the voltage waveform. For example, since ringing occurs at the initial stage of switching, if switching occurs in a short time, the voltage signal including the ringing waveform is AD converted in the subsequent stage, which becomes a cause of error in the input data (current value or voltage value).
  • the present disclosure aims to solve the above problem by providing a current/voltage detection device that can suppress ringing that occurs when switching between current detection and voltage detection.
  • the current-voltage detection device includes an input changeover switch that selects and switches an input path to be connected to the output side from among the input path from the current input terminal and the input path from the voltage input terminal in accordance with a timing signal, a plurality of shunt resistors having different resistance values, a resistance changeover switch that selects and switches a resistor to be connected to the input path from the current input terminal from among the plurality of shunt resistors in accordance with a selection signal, a timing generation unit that outputs a timing signal to the input changeover switch, and a determination unit that determines from among the plurality of shunt resistors a shunt resistor that minimizes the difference between a current conversion value converted into a voltage by multiplying the input current value input from the current input terminal and the value of the shunt resistance, and an input voltage value input from the voltage input terminal, and outputs a selection signal to the resistance changeover switch to select the determined shunt resistor.
  • a shunt resistor that produces a small difference between a current equivalent value and an input voltage value is determined, and the determined shunt resistor is made conductive to the input path from the current input terminal.
  • the difference between the current equivalent value and the input voltage value becomes smaller, the magnitude of the ringing also becomes smaller, so the current/voltage detection device according to the present disclosure can suppress ringing that occurs due to switching between current detection and voltage detection.
  • FIG. 1 is a circuit diagram showing a configuration example of a current/voltage detection device according to a first embodiment
  • 3A to 3C are waveform diagrams showing a voltage waveform, a timing signal waveform, and a ringing waveform in the first embodiment
  • 4 is a flowchart showing a current/voltage detection method according to the first embodiment.
  • FIG. 11 is a circuit diagram showing a configuration example of a current/voltage detection device according to a second embodiment.
  • 11A to 11C are waveform diagrams showing a voltage waveform, a ringing waveform, a first timing signal waveform, and a second timing signal waveform in the second embodiment.
  • Fig. 1 is a circuit diagram showing a configuration example of a current-voltage detection device 1 according to a first embodiment.
  • the current-voltage detection device 1 detects, for example, a voltage value of an AC voltage and a current value of an AC current applied to a load from a commercial power source.
  • the current-voltage detection device 1 includes a current input terminal 11, a voltage input terminal 12, and an input return terminal 13.
  • the current input terminal 11 is a terminal to which an input current signal I in is input.
  • the voltage input terminal 12 is a terminal to which an input voltage signal V in is input.
  • the input return terminal 13 is a terminal connected to the ground.
  • a return signal Rtn flowing between the current-voltage detection device 1 and the power source is returned to the ground through the input return terminal 13.
  • the current detection unit generates an analog input current signal Iin that represents the current value of AC power supplied from the power source. For example, the current detection unit performs conversion so that the current becomes a voltage value within the input range of the AD conversion unit 52 to generate the input current signal Iin . 1 is connected to the voltage input terminal 12.
  • the voltage detection unit converts the voltage value of the AC power supplied from the power source to generate an analog input voltage signal Vin .
  • the voltage detection unit generates the input voltage signal Vin by performing voltage conversion at a rate such that the peak value of the AC voltage from the power source falls within the input range of the AD conversion unit 52.
  • the switch 21 is a resistor changeover switch that selects and switches the shunt resistor to be connected to the input path from the current input terminal 11 from among the shunt resistors 22a, 22b, and 22c according to a selection signal.
  • the shunt resistors 22a, 22b, and 22c have different resistance values. For example, the resistance values are 100 times different, specifically, the resistance value Rsa of the shunt resistor 22a is 0.1 m ⁇ , the resistance value Rsb of the shunt resistor 22b is 10 m ⁇ , and the resistance value Rsc of the shunt resistor 22c is 1000 m ⁇ .
  • shunt resistor 22 By having such significantly different resistance values, it is possible to select from these shunt resistors the shunt resistor that has the smallest difference between the current conversion value and the input voltage value, which will be described later.
  • the shunt resistors 22a, 22b, and 22c will be collectively referred to as shunt resistor 22 as appropriate.
  • the switch 31 is an input changeover switch that, in response to a timing signal, selects and switches an input path to be conducted to the output side from among the input path from the current input terminal 11 and the input path from the voltage input terminal 12.
  • An amplifier 41 is connected to the output side of the switch 31.
  • the amplifier 41 receives the analog input signal output from the switch 31 and amplifies the strength of the analog input signal.
  • the analog input signal amplified by the amplifier 41 is output to a sample-and-hold circuit 42.
  • the analog input signal is an input current signal Iin or an input voltage signal Vin .
  • the sample-and-hold circuit 42 is a circuit that holds an analog signal that is input from the current input terminal 11 or the voltage input terminal 12 and output through the switch 31.
  • the sample-and-hold circuit 42 is a circuit made up of a resistor and a capacitor. One end of the resistor is connected to the output end of the amplifier 41, and the other end is connected to one end of the capacitor. The other end of the capacitor is grounded. Furthermore, the connection point between the other end of the resistor and the other end of the capacitor is connected to the AD conversion unit 52 in the subsequent stage.
  • the analog input signal output from the amplifier 41 is connected to a capacitor via a resistor.
  • the switch 31 When the switch 31 is switched, the charge of the analog input signal is stored in the capacitor, and when the switch 31 is switched again, the charge stored in the capacitor is discharged.
  • the sample and hold circuit 42 is a circuit that stores charge in the capacitor to hold the analog input signal for a fixed period of time.
  • the control unit 51 controls the overall operation of the current/voltage detection device 1.
  • the control unit 51 includes an AD conversion unit 52, a data processing unit 53, a timing generation unit 54, and a current range determination unit 55.
  • the control unit 51 executes a current/voltage detection application, whereby the control unit 51 realizes the functions of the AD conversion unit 52, the data processing unit 53, the timing generation unit 54, and the current range determination unit 55.
  • the AD conversion unit 52 converts the analog input signal output from the sample-and-hold circuit 42 into a digital input signal. For example, the AD conversion unit 52 samples data from the analog input signal within the input range at a constant sampling period, thereby generating a digital input signal made up of the sampled digital data.
  • the data processing unit 53 detects a current value using the input current signal Iin converted into a digital signal, and detects a voltage value using the input voltage signal Vin converted into a digital signal. For example, the data processing unit 53 calculates a current value from the input current signal Iin for all sampling points, and calculates a voltage value from the input voltage signal Vin . The data processing unit 53 may calculate an effective value of the AC voltage based on a change in the detected voltage value.
  • the timing generation unit 54 generates a timing signal and outputs the generated timing signal to the switch 31.
  • the timing generation unit 54 generates a square wave signal in which the high level and low level alternate at a constant cycle as the timing signal.
  • this square wave timing signal is at a high level, it switches to the input path from the voltage input terminal 12 to perform a voltage detection sequence, and when it is at a low level, it switches to the input path from the current input terminal 11 to perform a current detection sequence.
  • the current range determination unit 55 is a determination unit that determines, from among the shunt resistors 22a, 22b, and 22c, the shunt resistor that produces the smallest difference between the current conversion value and the input voltage value input from the voltage input terminal, and outputs a selection signal to the switch 21 to select the determined shunt resistor.
  • the current conversion value is the product of the input current value input from the current input terminal 11 and the value of the shunt resistance, converted into a voltage.
  • the current range determination unit 55 determines from among the shunt resistors 22a, 22b, and 22c which shunt resistor reduces the difference between the input voltage value detected in the voltage detection sequence and the current conversion value.
  • the current range determination unit 55 detects the input current value (A) by passing an input current through one of the shunt resistors 22a, 22b, and 22c. The current range determination unit 55 then calculates a current equivalent value (V) converted into voltage by multiplying the input current value (A) by the known resistance value ( ⁇ ) of the currently selected shunt resistor. In this way, the input current value can be uniquely determined if the voltage value input to the AD conversion unit 52 and the resistance value of the selected and used shunt resistor are known.
  • the current range determination unit 55 acquires the input current signal Iin output from the AD conversion unit 52 to the data processing unit 53 in the current detection sequence, and obtains a current equivalent value converted into voltage by the product of the current value of the input current signal Iin and the resistance value of the shunt resistor 22. Furthermore, the current range determination unit 55 acquires the input voltage signal Vin output from the AD conversion unit 52 to the data processing unit 53 in the voltage detection sequence, and detects the voltage value of the input voltage signal Vin . Then, the current range determination unit 55 selects the shunt resistor to be switched next so that the level difference between the voltage value of the input voltage signal Vin and the current equivalent value becomes small.
  • the current range determination unit 55 identifies whether the digital signal output from the AD conversion unit 52 is an input current signal Iin or an input voltage signal Vin , based on the timing signal obtained from the timing generation unit 54. For example, it is assumed that the timing signal is a square wave signal that alternates between high and low levels at a constant cycle, and that a voltage detection sequence is performed when the timing signal is at a high level, and a current detection sequence is performed when the timing signal is at a low level. In this case, the current range determination unit 55 determines a shunt resistance that reduces the difference between the input voltage value detected in the voltage detection sequence performed when the timing signal is at a high level and the current equivalent value.
  • the current/voltage detection device 1 may repeat the voltage detection sequence and the current detection sequence until the difference between the input voltage value and the current conversion value becomes equal to or less than a reference value, and in the repetition of these sequences, the current range determination unit 55 may determine a shunt resistor for which the difference between the input voltage value and the current conversion value becomes equal to or less than the reference value. This makes it possible to switch to a shunt resistor that suppresses ringing caused by switching between current detection and voltage detection.
  • FIG. 2 is a waveform diagram showing a voltage waveform, timing signal waveform A, and ringing waveform B in embodiment 1.
  • the top waveform is a voltage waveform that is switched by switch 31, and shows the signal waveform output from AD conversion unit 52 to data processing unit 53.
  • timing signal waveform A is at a high level, a voltage detection sequence is performed, and when it is at a low level, a current detection sequence is performed.
  • the portion corresponding to the high level section of timing signal waveform A is the voltage value of input voltage signal Vin obtained in the voltage detection sequence
  • the portion corresponding to the low level section of timing signal waveform A shows the current equivalent values Iina , Iinb , and Iinc obtained in the current detection sequence.
  • the resistance value Rsa of the shunt resistor 22a is 0.1 m ⁇
  • the resistance value Rsb of the shunt resistor 22b is 10 m ⁇
  • the resistance value Rsc of the shunt resistor 22c is 1000 m ⁇ .
  • a current equivalent value Iinb of several hundred mV is obtained, as shown in Fig. 2. If the voltage value of the input voltage signal Vin is several volts, a level difference is generated between the current equivalent value Iinb and the voltage value of the input voltage signal Vin , as indicated by the double arrow. In this case, a ringing waveform B of moderate magnitude is generated in the voltage waveform, which is smaller than that of the current equivalent value Iina .
  • the current range determination unit 55 selects the shunt resistor 22c as the shunt resistor 22 to be used for current detection and voltage detection of the AC power supplied from the power source.
  • FIG. 3 is a flowchart showing the current/voltage detection method according to the first embodiment, and shows current/voltage detection by the current/voltage detection device 1.
  • the switch 31 switches the input path to be connected to the output side to the input path from the voltage input terminal 12 in accordance with the timing signal input from the timing generating unit 54 (step ST1). For example, when the timing signal waveform A is at a high level, the switch 31 switches to the voltage detection sequence.
  • the control unit 51 detects the voltage value of the input voltage signal Vin input from the voltage input terminal 12 (step ST2). For example, the input voltage signal Vin output from the switch 31 is input to the amplifier 41, which amplifies the intensity of the input voltage signal Vin .
  • the input voltage signal Vin amplified by the amplifier 41 is output to the sample-and-hold circuit 42.
  • the sample-and-hold circuit 42 outputs the temporarily held input voltage signal Vin to the AD conversion unit 52.
  • the AD conversion unit 52 converts the input voltage signal Vin into a digital signal, thereby detecting the voltage value of the input voltage signal Vin .
  • the switch 31 switches the input path to be conducted to the output side to the input path from the current input terminal 11 in accordance with the timing signal input from the timing generation unit 54 (step ST3). For example, the switch 31 switches to the current detection sequence when the timing signal waveform A is at a low level.
  • the current range determination unit 55 calculates a current equivalent value converted into a voltage by multiplying the input current value output from the AD conversion unit 52 by the resistance value of the shunt resistor 22 (step ST4).
  • the input current value output from the AD conversion unit 52 is the current value of the input current signal I in input from the current input terminal 11.
  • the current range determination unit 55 calculates the difference between the current equivalent value and the voltage value of the input voltage signal Vin (step ST5). After performing the voltage detection sequence in this way, when the switch 31 is switched to try the current detection sequence, the voltage value is known but the current value is unknown. Therefore, the shunt resistor to be selected first is the shunt resistor with the smallest resistance value among the shunt resistors 22a, 22b, and 22c.
  • the current range determination unit 55 determines whether or not there is an unselected shunt resistor among the shunt resistors 22a, 22b, and 22c (step ST6). If it is determined that there is an unselected shunt resistor and that a shunt resistor can be reselected (step ST6; YES), the current range determination unit 55 selects an unselected shunt resistor among the shunt resistors 22a, 22b, and 22c, and outputs a selection signal indicating the selected shunt resistor to the switch 21. This executes a series of processes from step ST1.
  • the current range determination unit 55 selects a shunt resistor that has the smallest difference value calculated in step ST5 from among the shunt resistors 22a, 22b, and 22c, and outputs a selection signal indicating the selected shunt resistor to the switch 21. This allows the current/voltage detection device 1 to suppress ringing that occurs due to switching between current detection and voltage detection. The reselection of the shunt resistor may be terminated when the difference between the current conversion value and the input voltage value becomes equal to or less than an allowable value.
  • the difference between the current equivalent value and the voltage value of the input voltage signal Vin can be calculated. Then, the flow chart can be ended as it is, or the process can be returned to voltage detection again.
  • the shunt resistor to be used in the second current detection sequence is known from the first current detection sequence, so the shunt resistor 22 is selected so that the current equivalent value is closest to the voltage value of the input voltage signal Vin .
  • the shunt resistor 22 may be a shunt resistor having two or more different resistance values. For example, if the resistance value Rsa of the shunt resistor 22a is 0.1 m ⁇ , the resistance value Rsb of the shunt resistor 22b is 10 m ⁇ , and the resistance value Rsc of the shunt resistor 22c is 1000 m ⁇ , only the shunt resistors 22b and 22c may be provided.
  • the shunt resistor 22 may be a shunt resistor having four or more different resistance values. These resistance values are determined in advance, for example, by experiments for the power supply expected to be detected.
  • the current-voltage detection device 1 includes a switch 31 that selects and switches the input path to be conducted to the output side from the input path from the current input terminal 11 and the input path from the voltage input terminal 12 according to a timing signal, shunt resistors 22a, 22b, and 22c, a switch 21 that selects and switches the resistor to be conducted to the input path from the current input terminal 11 from the shunt resistors 22a, 22b, and 22c according to a selection signal, a timing generation unit 54 that outputs a timing signal to the switch 31, and a current range determination unit 55 that determines a shunt resistor from the shunt resistors 22a, 22b, and 22c that reduces the difference between the current conversion value and the input voltage value, and outputs a selection signal to the switch 21 to select the determined shunt resistor.
  • a switch 31 that selects and switches the input path to be conducted to the output side from the input path from the current input terminal 11 and the input path from the voltage input terminal 12 according to a
  • the current-voltage detection device 1 can suppress ringing that occurs due to switching between current detection and voltage detection.
  • ringing occurs in the initial stage of switching, but in the current/voltage detection device 1, the magnitude of the ringing itself is small, so switching between current detection and voltage detection can be performed in a short time, i.e., high-speed switching is possible.
  • the current-voltage detection device 1 includes a sample-and-hold circuit 42 that holds an analog signal input from the current input terminal 11 or the voltage input terminal 12 and output through the switch 31, and an AD conversion unit 52 that converts the analog signal output from the sample-and-hold circuit 42 into a digital signal. Based on the result of comparing the digital signal output from the AD conversion unit 52 with the timing signal output from the timing generation unit 54, the current range determination unit 55 determines from the shunt resistors 22a, 22b, and 22c the shunt resistor that reduces the difference between the input voltage value detected in the voltage detection sequence and the current conversion value. This allows the current-voltage detection device 1 to switch to a shunt resistor that suppresses ringing caused by switching between current detection and voltage detection.
  • the current-voltage detection device 1 repeats a voltage detection sequence and a current detection sequence until the difference between the input voltage value and the current conversion value becomes equal to or less than a reference value.
  • the current range determination unit 55 determines a shunt resistance at which the difference between the input voltage value and the current conversion value becomes equal to or less than a reference value. This allows the current-voltage detection device 1 to switch to a shunt resistance that suppresses ringing caused by switching between current detection and voltage detection.
  • the current/voltage detection method includes the steps of: by the current/voltage detection device 1 switching the input path to be conducted to the output side of the switch 31 to the input path from the voltage input terminal 12; detecting the input voltage value input from the voltage input terminal 12; switching the input path to be conducted to the output side of the switch 31 to the input path from the current input terminal 11; calculating a current equivalent value converted into a voltage by multiplying the input current value input from the current input terminal 11 and the value of the shunt resistor; calculating a difference between the current equivalent value and the input voltage value; and determining whether a shunt resistor that results in a smaller calculated difference value can be selected from among the shunt resistors 22a, 22b, and 22c.
  • the current/voltage detection device 1 can suppress ringing that occurs due to switching between current detection and voltage detection.
  • Fig. 4 is a circuit diagram showing a configuration example of a current/voltage detection device 1A according to a second embodiment.
  • the current/voltage detection device 1A detects, for example, the voltage value of an AC voltage and the current value of an AC current applied to a load from a commercial power source.
  • the current/voltage detection device 1A includes a current input terminal 11, a voltage input terminal 12, an input return terminal 13, a switch 21, a shunt resistor 22, a switch 31, an amplifier 41, a sample-and-hold circuit 43, and a control unit 51A.
  • the sample-and-hold circuit 43 is a circuit that holds an analog signal that is input from the current input terminal 11 or the voltage input terminal 12 and output via the switch 31.
  • the sample-and-hold circuit 43 is a circuit that includes a switch 43a, a resistor, and a capacitor.
  • the switch 43a is an input adjustment switch that cuts off or connects the signal path from the sample-and-hold circuit 43 to the AD conversion unit 52 in accordance with a timing signal.
  • the input side of the switch 43a is connected to the amplifier 41.
  • One end of the resistor is connected to the output side of the switch 43a, and the other end is connected to one end of the capacitor.
  • the other end of the capacitor is grounded. Furthermore, the connection point between the other end of the resistor and the other end of the capacitor is connected to the AD conversion unit 52 in the subsequent stage.
  • the analog input signal output from the amplifier 41 is cut off or conducted by the switch 43a.
  • the analog input signal that is conducted by the switch 43a is connected to a capacitor via a resistor.
  • the sample and hold circuit 42 is a circuit that stores charge in the capacitor to hold the analog input signal for a fixed period of time.
  • the timing generation unit 54A generates a timing signal for the switch 31 and outputs the generated timing signal to the switch 31, and also generates a timing signal for the switch 43a and outputs the generated timing signal to the switch 43a.
  • the timing generating unit 54A generates an on-off timing signal indicating the timing at which the ringing component included in the analog signal held in the sample-and-hold circuit 43 is not input to the AD conversion unit 52, and outputs the generated on-off timing signal to the switch 43a as a timing signal. This makes it possible to control the timing at which the analog signal is taken in from the sample-and-hold circuit 43 to the AD conversion unit 52.
  • FIG. 5 is a waveform diagram showing a voltage waveform, a ringing waveform, a first timing signal waveform A, and a second timing signal waveform C in embodiment 2.
  • the top waveform is a voltage waveform switched by switch 31, as in FIG. 2, and shows the signal waveform output from AD conversion unit 52 to data processing unit 53.
  • first timing signal waveform A is at a high level
  • a voltage detection sequence is performed, and when it is at a low level, a current detection sequence is performed.
  • switch 43a is conductive, and when it is at a low level, switch 43a is cut off.
  • the portion corresponding to the high level section of the first timing signal waveform A indicates the voltage value of the input voltage signal Vin obtained in the voltage detection sequence
  • the portion corresponding to the low level section of the first timing signal waveform A indicates the current equivalent values Iina , Iinb , and Iinc obtained in the current detection sequence.
  • the portion corresponding to the high level section of the second timing signal waveform C indicates the range D of the input voltage signal Vin output to the AD conversion unit 52.
  • the resistance value Rsa of the shunt resistor 22a is 0.1 m ⁇
  • the resistance value Rsb of the shunt resistor 22b is 10 m ⁇
  • the resistance value Rsc of the shunt resistor 22c is 1000 m ⁇ .
  • the AD conversion section 52 can obtain only the analog input signal that corresponds to range D after the ringing has converged.
  • a current equivalent value Iinb of several hundred mV is obtained, as shown in Fig. 5. If the voltage value of the input voltage signal Vin is several volts, a level difference is generated between the current equivalent value Iinb and the voltage value of the input voltage signal Vin , as indicated by the double arrow. In this case, a ringing waveform B of moderate magnitude is generated in the voltage waveform, which is smaller than that of the current equivalent value Iina . Even in this case, by controlling the switching of the switch 43a, the AD conversion unit 52 can obtain only the analog input signal corresponding to the range D after the ringing has converged.
  • the current range determination unit 55 can select the shunt resistor 22c as the shunt resistor 22 used for current detection and voltage detection of the AC power supplied from the power source, and the control unit 51A can obtain the analog input signal in the range D after the ringing has converged.
  • the current-voltage detection device 1A includes a switch 43a for blocking or connecting the signal path from the sample-and-hold circuit 43 to the AD conversion unit 52 according to a timing signal.
  • the timing generation unit 54A generates a timing signal indicating the timing at which the ringing component contained in the analog signal held in the sample-and-hold circuit 43 is not input to the AD conversion unit 52, and outputs the timing signal to the switch 43a, thereby controlling the timing of taking in the analog signal from the sample-and-hold circuit 43 to the AD conversion unit 52. Because the switch 43a is switched at a timing at which the ringing component is not input to the AD conversion unit 52, the current-voltage detection device 1A can suppress ringing that occurs due to switching between current detection and voltage detection.
  • the current/voltage detection device disclosed herein can be used, for example, to detect current/voltage in a power control device.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Measurement Of Current Or Voltage (AREA)

Abstract

A current/voltage detecting device (1) comprises: a switch (31) which, in accordance with a timing signal, selects and switches an input path to be electrically connected to an output side, from among an input path from a current input terminal (11) and an input path from a voltage input terminal (12); a switch (21) which, in accordance with a selection signal, selects and switches a resistance, from among shunt resistors (22a, 22b, 22c), to be electrically connected to the input path from the current input terminal (11); a timing generating unit (54) which outputs the timing signal to the switch (31); and a current range determining unit (55) which determines, from among the shunt resistors (22a, 22b, 22c), a shunt resistor which reduces the value of a difference between a current conversion value and an input voltage value, and which outputs, to the switch (21), the selection signal for selecting the determined shunt resistor.

Description

電流電圧検出装置および電流電圧検出方法Current/voltage detection device and current/voltage detection method

 本開示は、電流電圧検出装置および電流電圧検出方法に関する。 This disclosure relates to a current/voltage detection device and a current/voltage detection method.

 電力測定においては、電力が電流と電圧の積で求められるため、電流検出と電圧検出とを同時または迅速に切り替えて行う必要がある。例えば、電力測定装置が、電流検出用の回路と電圧検出用の回路とを備えることにより、電流値と電圧値をほぼ同時に検出できるので、瞬時に電力計測が可能である。 In power measurement, power is calculated as the product of current and voltage, so it is necessary to detect current and voltage simultaneously or by switching quickly between them. For example, if a power measurement device is equipped with a circuit for detecting current and a circuit for detecting voltage, it can detect the current value and the voltage value almost simultaneously, making it possible to measure power instantly.

 ただし、一つの装置で電流検出用と電圧検出用との両方の回路を備える装置において、アナログ信号入力からAD変換を介してデジタル信号処理を行う部分までの回路を電流検出用と電圧検出用とで2系統分設けた場合、回路規模が増大してしまう。 However, in a device that has both current detection and voltage detection circuits in one device, if two separate circuits are provided for current detection and voltage detection from the analog signal input to the part that performs digital signal processing via AD conversion, the circuit size will increase.

 これに対し、例えば、特許文献1に記載される電力制御装置は、電流検出部と電圧検出部との後段に設けた回路が共通化されており、共通化した回路に対し、スイッチを用いて電流検出部と電圧検出部とを切り替えている。これにより、装置の回路規模の増大を抑制することができる。 In response to this, for example, the power control device described in Patent Document 1 shares the circuitry provided after the current detection unit and the voltage detection unit, and switches between the current detection unit and the voltage detection unit in the shared circuit using a switch. This makes it possible to prevent an increase in the circuit scale of the device.

 また、電流検出においては、入力端子からの電流をシャント抵抗に流し、シャント抵抗と入力電流との積、すなわち、シャント抵抗の両端に発生する電位差である電圧に換算することにより、電流量(以下、電流換算値と記載する。)が測定される。 In current detection, the current from the input terminal is passed through a shunt resistor and the amount of current (hereafter referred to as the current conversion value) is measured by converting it into a voltage, which is the product of the shunt resistance and the input current, i.e., the potential difference generated across the shunt resistor.

特開2020-160245号公報JP 2020-160245 A

 特許文献1に記載される従来の技術は、電流検出から電圧検出に切り替えたときに電流換算値と入力電圧値との間に大きなレベル差が生じると、電圧波形に大きなリンギングが発生するという課題があった。例えば、リンギングは切り替え初期の段階で生じるので、短時間で切り替えると、リンギング波形を含む電圧信号が後段でAD変換されてしまい、入力データ(電流値または電圧値)の誤差要因となる。 The conventional technology described in Patent Document 1 had the problem that when switching from current detection to voltage detection, if a large level difference occurs between the current conversion value and the input voltage value, large ringing occurs in the voltage waveform. For example, since ringing occurs at the initial stage of switching, if switching occurs in a short time, the voltage signal including the ringing waveform is AD converted in the subsequent stage, which becomes a cause of error in the input data (current value or voltage value).

 本開示は上記課題を解決するものであり、電流検出と電圧検出との切り替えにより発生するリンギングを抑制することができる、電流電圧検出装置を得ることを目的とする。 The present disclosure aims to solve the above problem by providing a current/voltage detection device that can suppress ringing that occurs when switching between current detection and voltage detection.

 本開示に係る電流電圧検出装置は、タイミング信号に従って、電流入力端子からの入力経路および電圧入力端子からの入力経路の中から、出力側に導通させる入力経路を選択して切り替える入力切替スイッチと、互いに異なる抵抗値を有した複数のシャント抵抗と、選択信号に従って、複数のシャント抵抗の中から、電流入力端子からの入力経路と導通させる抵抗を選択して切り替える抵抗切替スイッチと、タイミング信号を入力切替スイッチに出力するタイミング生成部と、複数のシャント抵抗の中から、電流入力端子から入力された入力電流値とシャント抵抗の値との積により電圧に換算された電流換算値と電圧入力端子から入力された入力電圧値との差分の値が小さくなるシャント抵抗を判定して、判定したシャント抵抗を選択させるための選択信号を、抵抗切替スイッチに出力する判定部とを備える。 The current-voltage detection device according to the present disclosure includes an input changeover switch that selects and switches an input path to be connected to the output side from among the input path from the current input terminal and the input path from the voltage input terminal in accordance with a timing signal, a plurality of shunt resistors having different resistance values, a resistance changeover switch that selects and switches a resistor to be connected to the input path from the current input terminal from among the plurality of shunt resistors in accordance with a selection signal, a timing generation unit that outputs a timing signal to the input changeover switch, and a determination unit that determines from among the plurality of shunt resistors a shunt resistor that minimizes the difference between a current conversion value converted into a voltage by multiplying the input current value input from the current input terminal and the value of the shunt resistance, and an input voltage value input from the voltage input terminal, and outputs a selection signal to the resistance changeover switch to select the determined shunt resistor.

 本開示によれば、互いに異なる抵抗値を有した複数のシャント抵抗の中から、電流換算値と入力電圧値との差分の値が小さくなるシャント抵抗が判定され、判定されたシャント抵抗が電流入力端子からの入力経路と導通される。
 電流換算値と入力電圧値との差分の値が小さくなるとリンギングの大きさも小さくなるので、本開示に係る電流電圧検出装置は、電流検出と電圧検出との切り替えにより発生するリンギングを抑制することができる。
According to the present disclosure, from among a plurality of shunt resistors having mutually different resistance values, a shunt resistor that produces a small difference between a current equivalent value and an input voltage value is determined, and the determined shunt resistor is made conductive to the input path from the current input terminal.
As the difference between the current equivalent value and the input voltage value becomes smaller, the magnitude of the ringing also becomes smaller, so the current/voltage detection device according to the present disclosure can suppress ringing that occurs due to switching between current detection and voltage detection.

実施の形態1に係る電流電圧検出装置の構成例を示す回路図である。1 is a circuit diagram showing a configuration example of a current/voltage detection device according to a first embodiment; 実施の形態1における、電圧波形、タイミング信号波形およびリンギング波形を示す波形図である。3A to 3C are waveform diagrams showing a voltage waveform, a timing signal waveform, and a ringing waveform in the first embodiment. 実施の形態1に係る電流電圧検出方法を示すフローチャートである。4 is a flowchart showing a current/voltage detection method according to the first embodiment. 実施の形態2に係る電流電圧検出装置の構成例を示す回路図である。FIG. 11 is a circuit diagram showing a configuration example of a current/voltage detection device according to a second embodiment. 実施の形態2における、電圧波形、リンギング波形、第1のタイミング信号波形および第2のタイミング信号波形を示す波形図である。11A to 11C are waveform diagrams showing a voltage waveform, a ringing waveform, a first timing signal waveform, and a second timing signal waveform in the second embodiment.

実施の形態1.
 図1は、実施の形態1に係る電流電圧検出装置1の構成例を示す回路図である。図1において、電流電圧検出装置1は、例えば、商用電源から負荷に印加される交流電圧の電圧値および交流電流の電流値を検出する。電流電圧検出装置1は、電流入力端子11、電圧入力端子12、および入力リターン端子13を備える。電流入力端子11は、入力電流信号Iinが入力される端子である。電圧入力端子12は、入力電圧信号Vinが入力される端子である。入力リターン端子13は、グラウンドに接続されている端子である。電流電圧検出装置1と電源との間に流れるリターン信号Rtnが入力リターン端子13を通じてグラウンドに戻される。
Embodiment 1.
Fig. 1 is a circuit diagram showing a configuration example of a current-voltage detection device 1 according to a first embodiment. In Fig. 1, the current-voltage detection device 1 detects, for example, a voltage value of an AC voltage and a current value of an AC current applied to a load from a commercial power source. The current-voltage detection device 1 includes a current input terminal 11, a voltage input terminal 12, and an input return terminal 13. The current input terminal 11 is a terminal to which an input current signal I in is input. The voltage input terminal 12 is a terminal to which an input voltage signal V in is input. The input return terminal 13 is a terminal connected to the ground. A return signal Rtn flowing between the current-voltage detection device 1 and the power source is returned to the ground through the input return terminal 13.

 電流入力端子11には、図1において不図示の電流検出部が接続されている。電流検出部は、電源から供給される交流電力の電流値を表すアナログの入力電流信号Iinを生成する。例えば、電流検出部は、電流がAD変換部52の入力レンジ内の電圧値になるように変換を行って入力電流信号Iinを生成する。
 電圧入力端子12には、例えば、図1において不図示の電圧検出部が接続されている。電圧検出部は、上記電源から供給される交流電力の電圧値を変換してアナログの入力電圧信号Vinを生成する。例えば、電圧検出部は、電源からの交流電圧のピーク値が、AD変換部52の入力レンジ内に収まる割合で電圧変換を行うことにより入力電圧信号Vinを生成する。
1 is connected to the current input terminal 11. The current detection unit generates an analog input current signal Iin that represents the current value of AC power supplied from the power source. For example, the current detection unit performs conversion so that the current becomes a voltage value within the input range of the AD conversion unit 52 to generate the input current signal Iin .
1 is connected to the voltage input terminal 12. The voltage detection unit converts the voltage value of the AC power supplied from the power source to generate an analog input voltage signal Vin . For example, the voltage detection unit generates the input voltage signal Vin by performing voltage conversion at a rate such that the peak value of the AC voltage from the power source falls within the input range of the AD conversion unit 52.

 スイッチ21は、選択信号に従って、シャント抵抗22a、22bおよび22cから、電流入力端子11からの入力経路と導通させるシャント抵抗を選択して切り替える、抵抗切替スイッチである。シャント抵抗22a、22bおよび22cは、互いに異なる抵抗値を有している。例えば、100倍違いの抵抗値、具体的には、シャント抵抗22aの抵抗値Rsaが0.1mΩであり、シャント抵抗22bの抵抗値Rsbが10mΩであり、シャント抵抗22cの抵抗値Rscが1000mΩであるものとする。このように互い大きく異なる抵抗値を有することにより、これらのシャント抵抗の中から、後述する電流換算値と入力電圧値との差分が最も小さくなるシャント抵抗を選択することが可能である。
 なお、シャント抵抗22a、22bおよび22cはシャント抵抗22と適宜総称する。
The switch 21 is a resistor changeover switch that selects and switches the shunt resistor to be connected to the input path from the current input terminal 11 from among the shunt resistors 22a, 22b, and 22c according to a selection signal. The shunt resistors 22a, 22b, and 22c have different resistance values. For example, the resistance values are 100 times different, specifically, the resistance value Rsa of the shunt resistor 22a is 0.1 mΩ, the resistance value Rsb of the shunt resistor 22b is 10 mΩ, and the resistance value Rsc of the shunt resistor 22c is 1000 mΩ. By having such significantly different resistance values, it is possible to select from these shunt resistors the shunt resistor that has the smallest difference between the current conversion value and the input voltage value, which will be described later.
The shunt resistors 22a, 22b, and 22c will be collectively referred to as shunt resistor 22 as appropriate.

 スイッチ31は、タイミング信号に従って、電流入力端子11からの入力経路および電圧入力端子12からの入力経路の中から、出力側に導通させる入力経路を選択して切り替える入力切替スイッチである。スイッチ31の出力側にはアンプ41が接続されている。
 スイッチ31が、電流入力端子11からの入力経路を出力側に導通させると、電流入力端子11から入力された入力電流信号Iinがアンプ41に出力され、電圧入力端子12からの入力経路を出力側に導通させると、電圧入力端子12から入力された入力電圧信号Vinがアンプ41に出力される。
The switch 31 is an input changeover switch that, in response to a timing signal, selects and switches an input path to be conducted to the output side from among the input path from the current input terminal 11 and the input path from the voltage input terminal 12. An amplifier 41 is connected to the output side of the switch 31.
When the switch 31 connects the input path from the current input terminal 11 to the output side, the input current signal I in input from the current input terminal 11 is output to the amplifier 41, and when the switch 31 connects the input path from the voltage input terminal 12 to the output side, the input voltage signal V in input from the voltage input terminal 12 is output to the amplifier 41.

 アンプ41は、スイッチ31から出力されたアナログ入力信号を入力し、アナログ入力信号の強度を増幅させる。アンプ41が増幅したアナログ入力信号は、サンプルホールド回路42に出力される。なお、アナログ入力信号は、入力電流信号Iinまたは入力電圧信号Vinである。 The amplifier 41 receives the analog input signal output from the switch 31 and amplifies the strength of the analog input signal. The analog input signal amplified by the amplifier 41 is output to a sample-and-hold circuit 42. The analog input signal is an input current signal Iin or an input voltage signal Vin .

 サンプルホールド回路42は、電流入力端子11または電圧入力端子12から入力されスイッチ31を通じて出力されたアナログ信号を保持する回路である。例えば、サンプルホールド回路42は、抵抗およびキャパシタからなる回路である。上記抵抗は、その一方の端部がアンプ41の出力端部に接続され、他方の端部がキャパシタの一方の端部に接続されている。キャパシタは、他方の端部が接地されている。さらに、抵抗の他方の端部とキャパシタの他方の端部との接続点は、後段のAD変換部52と接続されている。 The sample-and-hold circuit 42 is a circuit that holds an analog signal that is input from the current input terminal 11 or the voltage input terminal 12 and output through the switch 31. For example, the sample-and-hold circuit 42 is a circuit made up of a resistor and a capacitor. One end of the resistor is connected to the output end of the amplifier 41, and the other end is connected to one end of the capacitor. The other end of the capacitor is grounded. Furthermore, the connection point between the other end of the resistor and the other end of the capacitor is connected to the AD conversion unit 52 in the subsequent stage.

 サンプルホールド回路42において、アンプ41から出力されたアナログ入力信号は、抵抗を介してキャパシタに接続される。スイッチ31が切り替えられたときに、アナログ入力信号の電荷がキャパシタに蓄積され、さらに、スイッチ31が切り換えされると、キャパシタに蓄積された電荷が放電される。すなわち、サンプルホールド回路42は、キャパシタに電荷を蓄積することにより、一定時間だけアナログ入力信号を保持する回路である。サンプルホールド回路42およびAD変換部52を用いることで、アナログ入力信号を一定時間保持してから、デジタル信号に変換することが可能である。 In the sample and hold circuit 42, the analog input signal output from the amplifier 41 is connected to a capacitor via a resistor. When the switch 31 is switched, the charge of the analog input signal is stored in the capacitor, and when the switch 31 is switched again, the charge stored in the capacitor is discharged. In other words, the sample and hold circuit 42 is a circuit that stores charge in the capacitor to hold the analog input signal for a fixed period of time. By using the sample and hold circuit 42 and the AD conversion unit 52, it is possible to hold the analog input signal for a fixed period of time and then convert it into a digital signal.

 制御部51は、電流電圧検出装置1の全体動作を制御する。制御部51は、AD変換部52、データ処理部53、タイミング生成部54および電流レンジ判定部55を備える。例えば、制御部51が電流電圧検出用アプリケーションを実行することで、制御部51により、AD変換部52、データ処理部53、タイミング生成部54および電流レンジ判定部55の各機能が実現される。 The control unit 51 controls the overall operation of the current/voltage detection device 1. The control unit 51 includes an AD conversion unit 52, a data processing unit 53, a timing generation unit 54, and a current range determination unit 55. For example, the control unit 51 executes a current/voltage detection application, whereby the control unit 51 realizes the functions of the AD conversion unit 52, the data processing unit 53, the timing generation unit 54, and the current range determination unit 55.

 AD変換部52は、サンプルホールド回路42から出力されたアナログ入力信号をデジタル入力信号に変換する。例えば、AD変換部52は、入力レンジ内のアナログ入力信号から一定のサンプリング周期でデータをサンプリングすることにより、サンプリングしたデジタルデータからなるデジタル入力信号を生成する。 The AD conversion unit 52 converts the analog input signal output from the sample-and-hold circuit 42 into a digital input signal. For example, the AD conversion unit 52 samples data from the analog input signal within the input range at a constant sampling period, thereby generating a digital input signal made up of the sampled digital data.

 データ処理部53は、デジタル信号に変換された入力電流信号Iinを用いて電流値を検出し、デジタル信号に変換された入力電圧信号Vinを用いて電圧値を検出するものである。例えば、データ処理部53は、全てのサンプリングポイントについて、入力電流信号Iinから電流値を算出し、入力電圧信号Vinから電圧値を算出する。データ処理部53は、検出した電圧値の変化に基づいて、交流電圧の実効値を算出してもよい。 The data processing unit 53 detects a current value using the input current signal Iin converted into a digital signal, and detects a voltage value using the input voltage signal Vin converted into a digital signal. For example, the data processing unit 53 calculates a current value from the input current signal Iin for all sampling points, and calculates a voltage value from the input voltage signal Vin . The data processing unit 53 may calculate an effective value of the AC voltage based on a change in the detected voltage value.

 タイミング生成部54は、タイミング信号を生成し、生成したタイミング信号をスイッチ31に出力する。例えば、タイミング生成部54は、ハイレベルとローレベルが一定の周期で入れ替わる矩形波の信号をタイミング信号として生成する。この矩形波のタイミング信号がハイレベルのときに電圧検出シーケンスを行うために、電圧入力端子12からの入力経路に切り替えさせ、ローレベルのときに電流検出シーケンスを行うために、電流入力端子11からの入力経路に切り替えさせる。 The timing generation unit 54 generates a timing signal and outputs the generated timing signal to the switch 31. For example, the timing generation unit 54 generates a square wave signal in which the high level and low level alternate at a constant cycle as the timing signal. When this square wave timing signal is at a high level, it switches to the input path from the voltage input terminal 12 to perform a voltage detection sequence, and when it is at a low level, it switches to the input path from the current input terminal 11 to perform a current detection sequence.

 電流レンジ判定部55は、シャント抵抗22a、22bおよび22cの中から、電流換算値と電圧入力端子から入力された入力電圧値との差分の値が小さくなるシャント抵抗を判定して、判定したシャント抵抗を選択させるための選択信号をスイッチ21に出力する判定部である。電流換算値は、電流入力端子11から入力された入力電流値と、シャント抵抗の値と、の積により電圧に換算されたものである。 The current range determination unit 55 is a determination unit that determines, from among the shunt resistors 22a, 22b, and 22c, the shunt resistor that produces the smallest difference between the current conversion value and the input voltage value input from the voltage input terminal, and outputs a selection signal to the switch 21 to select the determined shunt resistor. The current conversion value is the product of the input current value input from the current input terminal 11 and the value of the shunt resistance, converted into a voltage.

 例えば、電流レンジ判定部55は、AD変換部52から出力されたデジタル入力信号とタイミング生成部54から出力されたタイミング信号とを比較した結果に基づいて、シャント抵抗22a、22bおよび22cから、電圧検出シーケンスにおいて検出された入力電圧値と電流換算値との差分の値が小さくなるシャント抵抗を判定する。 For example, based on the result of comparing the digital input signal output from the AD conversion unit 52 with the timing signal output from the timing generation unit 54, the current range determination unit 55 determines from among the shunt resistors 22a, 22b, and 22c which shunt resistor reduces the difference between the input voltage value detected in the voltage detection sequence and the current conversion value.

 電流検出シーケンスにおいて、シャント抵抗22a、22bおよび22cのうちいずれかのシャント抵抗に入力電流を流すことで、電流レンジ判定部55は、入力電流値(A)を検出する。そして、電流レンジ判定部55は、入力電流値(A)と、現在選択しているシャント抵抗が有する既知の抵抗値(Ω)との積を求めることによって電圧に換算された電流換算値(V)を算出する。このように、AD変換部52に入力される電圧値と、選択して使用しているシャント抵抗の抵抗値がわかれば、入力電流値が一意に求められる。 In the current detection sequence, the current range determination unit 55 detects the input current value (A) by passing an input current through one of the shunt resistors 22a, 22b, and 22c. The current range determination unit 55 then calculates a current equivalent value (V) converted into voltage by multiplying the input current value (A) by the known resistance value (Ω) of the currently selected shunt resistor. In this way, the input current value can be uniquely determined if the voltage value input to the AD conversion unit 52 and the resistance value of the selected and used shunt resistor are known.

 電流レンジ判定部55は、電流検出シーケンスにおいてAD変換部52からデータ処理部53へ出力される入力電流信号Iinを取得し、入力電流信号Iinの電流値とシャント抵抗22の抵抗値との積により電圧に換算した電流換算値を求める。さらに、電流レンジ判定部55は、電圧検出シーケンスにおいてAD変換部52からデータ処理部53へ出力される入力電圧信号Vinを取得し、入力電圧信号Vinの電圧値を検出する。そして、電流レンジ判定部55は、入力電圧信号Vinの電圧値と電流換算値とのレベル差が小さくなるように、次に切り替えるシャント抵抗を選択する。 The current range determination unit 55 acquires the input current signal Iin output from the AD conversion unit 52 to the data processing unit 53 in the current detection sequence, and obtains a current equivalent value converted into voltage by the product of the current value of the input current signal Iin and the resistance value of the shunt resistor 22. Furthermore, the current range determination unit 55 acquires the input voltage signal Vin output from the AD conversion unit 52 to the data processing unit 53 in the voltage detection sequence, and detects the voltage value of the input voltage signal Vin . Then, the current range determination unit 55 selects the shunt resistor to be switched next so that the level difference between the voltage value of the input voltage signal Vin and the current equivalent value becomes small.

 電流レンジ判定部55は、タイミング生成部54から取得するタイミング信号に基づいて、AD変換部52から出力されるデジタル信号が入力電流信号Iinであるか入力電圧信号Vinであるかを識別する。例えば、タイミング信号が、ハイレベルとローレベルが一定の周期で入れ替わる矩形波の信号であり、ハイレベルのときに電圧検出シーケンスが行われ、ローレベルのときに電流検出シーケンスが行われるものとする。この場合、電流レンジ判定部55は、ハイレベルのときに行われた電圧検出シーケンスにおいて検出された入力電圧値と電流換算値との差分の値が小さくなるシャント抵抗を判定する。 The current range determination unit 55 identifies whether the digital signal output from the AD conversion unit 52 is an input current signal Iin or an input voltage signal Vin , based on the timing signal obtained from the timing generation unit 54. For example, it is assumed that the timing signal is a square wave signal that alternates between high and low levels at a constant cycle, and that a voltage detection sequence is performed when the timing signal is at a high level, and a current detection sequence is performed when the timing signal is at a low level. In this case, the current range determination unit 55 determines a shunt resistance that reduces the difference between the input voltage value detected in the voltage detection sequence performed when the timing signal is at a high level and the current equivalent value.

 さらに、電流電圧検出装置1が、入力電圧値と電流換算値との差分の値が基準値以下になるまで電圧検出シーケンスと電流検出シーケンスとを繰り返し行い、これらシーケンスの繰り返しにおいて、電流レンジ判定部55が、入力電圧値と電流換算値との差分の値が基準値以下になるシャント抵抗を判定してもよい。これにより、電流検出と電圧検出との切り替えによるリンギングが抑制されるシャント抵抗に切り替えることができる。 Furthermore, the current/voltage detection device 1 may repeat the voltage detection sequence and the current detection sequence until the difference between the input voltage value and the current conversion value becomes equal to or less than a reference value, and in the repetition of these sequences, the current range determination unit 55 may determine a shunt resistor for which the difference between the input voltage value and the current conversion value becomes equal to or less than the reference value. This makes it possible to switch to a shunt resistor that suppresses ringing caused by switching between current detection and voltage detection.

 図2は、実施の形態1における、電圧波形、タイミング信号波形A、およびリンギング波形Bを示す波形図である。図2において、最上段の波形は、スイッチ31によって切り替えられる電圧波形であり、AD変換部52からデータ処理部53へ出力される信号波形を示している。タイミング信号波形Aが、ハイレベルのときに電圧検出シーケンスが行われ、ローレベルのときに電流検出シーケンスが行われる。 FIG. 2 is a waveform diagram showing a voltage waveform, timing signal waveform A, and ringing waveform B in embodiment 1. In FIG. 2, the top waveform is a voltage waveform that is switched by switch 31, and shows the signal waveform output from AD conversion unit 52 to data processing unit 53. When timing signal waveform A is at a high level, a voltage detection sequence is performed, and when it is at a low level, a current detection sequence is performed.

 最上段の電圧波形における、タイミング信号波形Aのハイレベル区間に対応する部分が電圧検出シーケンスで得られた入力電圧信号Vinの電圧値であり、タイミング信号波形Aのローレベル区間に対応する部分が電流検出シーケンスで得られた電流換算値Iina、IinbおよびIincを示している。 In the top voltage waveform, the portion corresponding to the high level section of timing signal waveform A is the voltage value of input voltage signal Vin obtained in the voltage detection sequence, and the portion corresponding to the low level section of timing signal waveform A shows the current equivalent values Iina , Iinb , and Iinc obtained in the current detection sequence.

 例えば、シャント抵抗22aの抵抗値Rsaが0.1mΩであり、シャント抵抗22bの抵抗値Rsbが10mΩであり、シャント抵抗22cの抵抗値Rscが1000mΩであるものとする。スイッチ21によってシャント抵抗22aに切り替えられた場合、図2に示すように、数mVの電流換算値Iinaが得られる。 For example, assume that the resistance value Rsa of the shunt resistor 22a is 0.1 mΩ, the resistance value Rsb of the shunt resistor 22b is 10 mΩ, and the resistance value Rsc of the shunt resistor 22c is 1000 mΩ. When the shunt resistor 22a is selected by the switch 21, a current equivalent value Iina of several mV is obtained as shown in FIG.

 入力電圧信号Vinの電圧値が数Vである場合、電流換算値Iinaと入力電圧信号Vinの電圧値との間には、両矢印で示すように大きなレベル差が生じる。入力電圧信号Vinの電圧値と電流換算値Iinaとの差分が大きい場合、アンプ41に入力される電圧波形には、スイッチ31による入力経路の切り替えが行われたときの急激な電位の変化により、電圧波形において大きなリンギング波形Bが発生する。 When the voltage value of the input voltage signal Vin is several volts, a large level difference occurs between the current equivalent value Iina and the voltage value of the input voltage signal Vin , as indicated by the double arrow. When the difference between the voltage value of the input voltage signal Vin and the current equivalent value Iina is large, a large ringing waveform B occurs in the voltage waveform input to the amplifier 41 due to a sudden change in potential when the input path is switched by the switch 31.

 リンギングは、電位差が大きいとリンギングの振幅が大きくなるだけでなく、その振幅が収束する収束時間も長くなる。リンギング成分を含むアナログ入力信号がAD変換部52に入力されると、AD変換部52によってデジタル信号に変換された電流値または電流値には、リンギング成分に応じた差分が生まれる。このため、結果的にデータ処理部53に入力される入力データの誤差要因になる。 When the potential difference is large, not only does the ringing amplitude increase, but the convergence time for the amplitude to converge also increases. When an analog input signal containing a ringing component is input to the AD conversion unit 52, a difference corresponding to the ringing component is generated in the current value or current value converted into a digital signal by the AD conversion unit 52. This ultimately becomes a cause of error in the input data input to the data processing unit 53.

 スイッチ21によってシャント抵抗22bに切り替えられた場合、図2に示すように、数百mVの電流換算値Iinbが得られる。入力電圧信号Vinの電圧値が数Vであれば、電流換算値Iinbと入力電圧信号Vinの電圧値との間には、両矢印で示すレベル差が生じる。この場合、電圧波形において、電流換算値Iinaのときよりも小さいが、中程度の大きさのリンギング波形Bが発生する。 When the switch 21 is switched to the shunt resistor 22b, a current equivalent value Iinb of several hundred mV is obtained, as shown in Fig. 2. If the voltage value of the input voltage signal Vin is several volts, a level difference is generated between the current equivalent value Iinb and the voltage value of the input voltage signal Vin , as indicated by the double arrow. In this case, a ringing waveform B of moderate magnitude is generated in the voltage waveform, which is smaller than that of the current equivalent value Iina .

 スイッチ21によってシャント抵抗22cに切り替えられた場合、図2に示すように、数Vの電流換算値Iincが得られる。入力電圧信号Vinの電圧値が数Vである場合に、電流換算値Iincと入力電圧信号Vinの電圧値との間には、両矢印で示すように、最も小さなレベル差が生じる。この場合、電圧波形において、最も小さなリンギング波形Bが発生する。このため、電流レンジ判定部55は、電源から供給される交流電力の電流検出と電圧検出に使用するシャント抵抗22として、シャント抵抗22cを選択する。 When the switch 21 is switched to the shunt resistor 22c, a current equivalent value Iinc of several volts is obtained, as shown in Fig. 2. When the voltage value of the input voltage signal Vin is several volts, the smallest level difference occurs between the current equivalent value Iinc and the voltage value of the input voltage signal Vin , as indicated by the double arrow. In this case, the smallest ringing waveform B occurs in the voltage waveform. Therefore, the current range determination unit 55 selects the shunt resistor 22c as the shunt resistor 22 to be used for current detection and voltage detection of the AC power supplied from the power source.

 次に、実施の形態1に係る電流電圧検出方法について説明する。
 図3は、実施の形態1に係る電流電圧検出方法を示すフローチャートであり、電流電圧検出装置1による電流電圧検出を示している。
 スイッチ31は、タイミング生成部54から入力したタイミング信号に従って、出力側に導通させる入力経路を、電圧入力端子12からの入力経路に切り替える(ステップST1)。例えば、スイッチ31は、タイミング信号波形Aがハイレベルであるときに、電圧検出シーケンスに切り換える。
Next, the current/voltage detection method according to the first embodiment will be described.
FIG. 3 is a flowchart showing the current/voltage detection method according to the first embodiment, and shows current/voltage detection by the current/voltage detection device 1.
The switch 31 switches the input path to be connected to the output side to the input path from the voltage input terminal 12 in accordance with the timing signal input from the timing generating unit 54 (step ST1). For example, when the timing signal waveform A is at a high level, the switch 31 switches to the voltage detection sequence.

 制御部51が、電圧入力端子12から入力された入力電圧信号Vinの電圧値を検出する(ステップST2)。例えば、スイッチ31から出力された入力電圧信号Vinがアンプ41に入力され、アンプ41は、入力電圧信号Vinの強度を増幅させる。アンプ41が増幅した入力電圧信号Vinは、サンプルホールド回路42に出力される。サンプルホールド回路42は、一時的に保持した入力電圧信号VinをAD変換部52に出力する。AD変換部52は、入力電圧信号Vinをデジタル信号に変換することにより、入力電圧信号Vinの電圧値が検出される。 The control unit 51 detects the voltage value of the input voltage signal Vin input from the voltage input terminal 12 (step ST2). For example, the input voltage signal Vin output from the switch 31 is input to the amplifier 41, which amplifies the intensity of the input voltage signal Vin . The input voltage signal Vin amplified by the amplifier 41 is output to the sample-and-hold circuit 42. The sample-and-hold circuit 42 outputs the temporarily held input voltage signal Vin to the AD conversion unit 52. The AD conversion unit 52 converts the input voltage signal Vin into a digital signal, thereby detecting the voltage value of the input voltage signal Vin .

 スイッチ31は、タイミング生成部54から入力したタイミング信号に従って、出力側に導通させる入力経路を、電流入力端子11からの入力経路に切り替える(ステップST3)。例えば、スイッチ31は、タイミング信号波形Aがローレベルであるときに、電流検出シーケンスに切り換える。 The switch 31 switches the input path to be conducted to the output side to the input path from the current input terminal 11 in accordance with the timing signal input from the timing generation unit 54 (step ST3). For example, the switch 31 switches to the current detection sequence when the timing signal waveform A is at a low level.

 電流レンジ判定部55は、AD変換部52から出力された入力電流値と、シャント抵抗22の抵抗値との積により電圧に換算された電流換算値を算出する(ステップST4)。ここで、AD変換部52から出力された入力電流値は、電流入力端子11から入力された入力電流信号Iinの電流値である。 The current range determination unit 55 calculates a current equivalent value converted into a voltage by multiplying the input current value output from the AD conversion unit 52 by the resistance value of the shunt resistor 22 (step ST4). Here, the input current value output from the AD conversion unit 52 is the current value of the input current signal I in input from the current input terminal 11.

 次に、電流レンジ判定部55は、電流換算値と入力電圧信号Vinの電圧値との差分の値を算出する(ステップST5)。このように電圧検出シーケンスを行った後に、スイッチ31を切り替えて電流検出シーケンスを試みた段階では、電圧値は既知であるが、電流値は未知である。そこで、最初に選択するシャント抵抗は、シャント抵抗22a、22bおよび22cのうち、抵抗値が最も小さいシャント抵抗が選択される。 Next, the current range determination unit 55 calculates the difference between the current equivalent value and the voltage value of the input voltage signal Vin (step ST5). After performing the voltage detection sequence in this way, when the switch 31 is switched to try the current detection sequence, the voltage value is known but the current value is unknown. Therefore, the shunt resistor to be selected first is the shunt resistor with the smallest resistance value among the shunt resistors 22a, 22b, and 22c.

 電流レンジ判定部55は、シャント抵抗22a、22bおよび22cの中から、未選択のシャント抵抗があるか否かを判定する(ステップST6)。未選択のシャント抵抗があり、シャント抵抗を再選択できると判定した場合(ステップST6;YES)、電流レンジ判定部55は、シャント抵抗22a、22bおよび22cの中から、未選択のシャント抵抗を選択し、選択したシャント抵抗を示す選択信号をスイッチ21に出力する。これにより、ステップST1からの一連の処理が実行される。 The current range determination unit 55 determines whether or not there is an unselected shunt resistor among the shunt resistors 22a, 22b, and 22c (step ST6). If it is determined that there is an unselected shunt resistor and that a shunt resistor can be reselected (step ST6; YES), the current range determination unit 55 selects an unselected shunt resistor among the shunt resistors 22a, 22b, and 22c, and outputs a selection signal indicating the selected shunt resistor to the switch 21. This executes a series of processes from step ST1.

 未選択のシャント抵抗がなく、シャント抵抗を再選択できないと判定した場合(ステップST6;NO)、電流レンジ判定部55は、シャント抵抗22a、22bおよび22cの中から、ステップST5で算出した差分の値が最も小さくなるシャント抵抗を選択し、選択したシャント抵抗を示す選択信号をスイッチ21に出力する。これにより、電流電圧検出装置1は、電流検出と電圧検出の切り替えにより発生するリンギングを抑制できる。
 なお、電流換算値と入力電圧値との差分の値が許容値以下になった時点でシャント抵抗の再選択を終了してもよい。
If it is determined that there is no unselected shunt resistor and that a shunt resistor cannot be reselected (step ST6; NO), the current range determination unit 55 selects a shunt resistor that has the smallest difference value calculated in step ST5 from among the shunt resistors 22a, 22b, and 22c, and outputs a selection signal indicating the selected shunt resistor to the switch 21. This allows the current/voltage detection device 1 to suppress ringing that occurs due to switching between current detection and voltage detection.
The reselection of the shunt resistor may be terminated when the difference between the current conversion value and the input voltage value becomes equal to or less than an allowable value.

 1回目の電流検出シーケンスが完了すると、上述したように、電流換算値と入力電圧信号Vinの電圧値との差分を算出することができる。そこで、このままフローチャートを完了させるか、再び電圧検出に戻るかの動作となる。
 2回目の電圧検出シーケンスが完了すると、2回目の電流検出シーケンスで用いるシャント抵抗は、1回目の電流検出シーケンスで明らかになっている。このため、電流換算値が、入力電圧信号Vinの電圧値に最も近くなるようにシャント抵抗22を選択する。
 これにより、電流検出と電圧検出の切り替えにおいて、入力電圧値と電流換算値との差分を小さくすることができ、リンギングの大きさとその持続時間が抑えられ、ひいては、電流検出と電圧検出の高速切替が可能である。
When the first current detection sequence is completed, as described above, the difference between the current equivalent value and the voltage value of the input voltage signal Vin can be calculated. Then, the flow chart can be ended as it is, or the process can be returned to voltage detection again.
When the second voltage detection sequence is completed, the shunt resistor to be used in the second current detection sequence is known from the first current detection sequence, so the shunt resistor 22 is selected so that the current equivalent value is closest to the voltage value of the input voltage signal Vin .
As a result, when switching between current detection and voltage detection, the difference between the input voltage value and the current equivalent value can be reduced, the magnitude and duration of ringing can be suppressed, and high-speed switching between current detection and voltage detection can be achieved.

 これまで、3つの異なる抵抗値を有するシャント抵抗22a、22bおよび22cを例に挙げたが、シャント抵抗22は、2以上の互いに異なる抵抗値を有したシャント抵抗であればよい。例えば、シャント抵抗22aの抵抗値Rsaが0.1mΩであり、シャント抵抗22bの抵抗値Rsbが10mΩであり、シャント抵抗22cの抵抗値Rscが1000mΩである場合、シャント抵抗22bおよび22cのみを備えてもよい。
 また、シャント抵抗22は、4つ以上の互いに異なる抵抗値を有したシャント抵抗であってもよい。これらの抵抗値は、例えば、検出対象として想定される電源について実験等によって事前に決定しておく。
Although the shunt resistors 22a, 22b, and 22c having three different resistance values have been given as examples so far, the shunt resistor 22 may be a shunt resistor having two or more different resistance values. For example, if the resistance value Rsa of the shunt resistor 22a is 0.1 mΩ, the resistance value Rsb of the shunt resistor 22b is 10 mΩ, and the resistance value Rsc of the shunt resistor 22c is 1000 mΩ, only the shunt resistors 22b and 22c may be provided.
The shunt resistor 22 may be a shunt resistor having four or more different resistance values. These resistance values are determined in advance, for example, by experiments for the power supply expected to be detected.

 以上のように、実施の形態1に係る電流電圧検出装置1は、タイミング信号に従って、電流入力端子11からの入力経路および電圧入力端子12からの入力経路から、出力側に導通させる入力経路を選択して切り替えるスイッチ31と、シャント抵抗22a、22bおよび22cと、選択信号に従って、シャント抵抗22a、22bおよび22cから、電流入力端子11からの入力経路と導通させる抵抗を選択して切り替えるスイッチ21と、タイミング信号をスイッチ31に出力するタイミング生成部54と、シャント抵抗22a、22bおよび22cから、電流換算値と入力電圧値との差分の値が小さくなるシャント抵抗を判定して、判定したシャント抵抗を選択させるための選択信号をスイッチ21に出力する電流レンジ判定部55と、を備える。電流換算値と入力電圧値との差分の値が小さくなるとリンギングの大きさも小さくなるので、電流電圧検出装置1は、電流検出と電圧検出との切り替えにより発生するリンギングを抑制することができる。また、リンギングは切り替え初期の段階に発生するが、電流電圧検出装置1では、そのリンギング自体の大きさが小さくなるので、電流検出と電圧検出との切り替えを短時間で行うこと、すなわち、高速切り替えが可能である。 As described above, the current-voltage detection device 1 according to the first embodiment includes a switch 31 that selects and switches the input path to be conducted to the output side from the input path from the current input terminal 11 and the input path from the voltage input terminal 12 according to a timing signal, shunt resistors 22a, 22b, and 22c, a switch 21 that selects and switches the resistor to be conducted to the input path from the current input terminal 11 from the shunt resistors 22a, 22b, and 22c according to a selection signal, a timing generation unit 54 that outputs a timing signal to the switch 31, and a current range determination unit 55 that determines a shunt resistor from the shunt resistors 22a, 22b, and 22c that reduces the difference between the current conversion value and the input voltage value, and outputs a selection signal to the switch 21 to select the determined shunt resistor. When the difference between the current conversion value and the input voltage value is reduced, the magnitude of ringing is also reduced, so the current-voltage detection device 1 can suppress ringing that occurs due to switching between current detection and voltage detection. In addition, ringing occurs in the initial stage of switching, but in the current/voltage detection device 1, the magnitude of the ringing itself is small, so switching between current detection and voltage detection can be performed in a short time, i.e., high-speed switching is possible.

 実施の形態1において、電流電圧検出装置1は、電流入力端子11または電圧入力端子12から入力されスイッチ31を通じて出力されたアナログ信号を保持するサンプルホールド回路42と、サンプルホールド回路42から出力されたアナログ信号をデジタル信号に変換するAD変換部52と、を備える。電流レンジ判定部55は、AD変換部52から出力されたデジタル信号とタイミング生成部54から出力されたタイミング信号とを比較した結果に基づいて、シャント抵抗22a、22bおよび22cから、電圧検出シーケンスにおいて検出された入力電圧値と電流換算値との差分の値が小さくなるシャント抵抗を判定する。これにより、電流電圧検出装置1は、電流検出と電圧検出との切り替えによるリンギングが抑制されるシャント抵抗に切り替えることができる。 In the first embodiment, the current-voltage detection device 1 includes a sample-and-hold circuit 42 that holds an analog signal input from the current input terminal 11 or the voltage input terminal 12 and output through the switch 31, and an AD conversion unit 52 that converts the analog signal output from the sample-and-hold circuit 42 into a digital signal. Based on the result of comparing the digital signal output from the AD conversion unit 52 with the timing signal output from the timing generation unit 54, the current range determination unit 55 determines from the shunt resistors 22a, 22b, and 22c the shunt resistor that reduces the difference between the input voltage value detected in the voltage detection sequence and the current conversion value. This allows the current-voltage detection device 1 to switch to a shunt resistor that suppresses ringing caused by switching between current detection and voltage detection.

 実施の形態1において、電流電圧検出装置1は、入力電圧値と電流換算値との差分の値が基準値以下になるまで、電圧検出シーケンスと電流検出シーケンスとを繰り返し行う。電流レンジ判定部55は、入力電圧値と電流換算値との差分の値が基準値以下になるシャント抵抗を判定する。これにより、電流電圧検出装置1は、電流検出と電圧検出との切り替えによるリンギングが抑制されるシャント抵抗に切り替えることができる。 In the first embodiment, the current-voltage detection device 1 repeats a voltage detection sequence and a current detection sequence until the difference between the input voltage value and the current conversion value becomes equal to or less than a reference value. The current range determination unit 55 determines a shunt resistance at which the difference between the input voltage value and the current conversion value becomes equal to or less than a reference value. This allows the current-voltage detection device 1 to switch to a shunt resistance that suppresses ringing caused by switching between current detection and voltage detection.

 実施の形態1に係る電流電圧検出方法は、電流電圧検出装置1が、スイッチ31の出力側に導通させる入力経路を、電圧入力端子12からの入力経路に切り替えるステップと、電圧入力端子12から入力された入力電圧値を検出するステップと、スイッチ31の出力側に導通させる入力経路を、電流入力端子11からの入力経路に切り替えるステップと、電流入力端子11から入力された入力電流値とシャント抵抗の値との積により電圧に換算された電流換算値を算出するステップと、電流換算値と入力電圧値との差分の値を算出するステップと、シャント抵抗22a、22bおよび22cの中から、算出した差分の値が小さくなるシャント抵抗を選択できるか否かを判定するステップと、を備える。
 電流電圧検出装置1が、この方法を実行することで、電流検出と電圧検出の切り替えにより発生するリンギングを抑制することができる。
The current/voltage detection method according to the first embodiment includes the steps of: by the current/voltage detection device 1 switching the input path to be conducted to the output side of the switch 31 to the input path from the voltage input terminal 12; detecting the input voltage value input from the voltage input terminal 12; switching the input path to be conducted to the output side of the switch 31 to the input path from the current input terminal 11; calculating a current equivalent value converted into a voltage by multiplying the input current value input from the current input terminal 11 and the value of the shunt resistor; calculating a difference between the current equivalent value and the input voltage value; and determining whether a shunt resistor that results in a smaller calculated difference value can be selected from among the shunt resistors 22a, 22b, and 22c.
By implementing this method, the current/voltage detection device 1 can suppress ringing that occurs due to switching between current detection and voltage detection.

実施の形態2.
 図4は、実施の形態2に係る電流電圧検出装置1Aの構成例を示す回路図である。図4において、図1と同一の構成要素には同一符号を付して重複する説明を省略する。電流電圧検出装置1Aは、例えば、商用電源から負荷に印加される交流電圧の電圧値および交流電流の電流値を検出する。電流電圧検出装置1Aは、電流入力端子11、電圧入力端子12、入力リターン端子13、スイッチ21、シャント抵抗22、スイッチ31、アンプ41、サンプルホールド回路43および制御部51Aを備える。
Embodiment 2.
Fig. 4 is a circuit diagram showing a configuration example of a current/voltage detection device 1A according to a second embodiment. In Fig. 4, the same components as those in Fig. 1 are given the same reference numerals and duplicated explanations are omitted. The current/voltage detection device 1A detects, for example, the voltage value of an AC voltage and the current value of an AC current applied to a load from a commercial power source. The current/voltage detection device 1A includes a current input terminal 11, a voltage input terminal 12, an input return terminal 13, a switch 21, a shunt resistor 22, a switch 31, an amplifier 41, a sample-and-hold circuit 43, and a control unit 51A.

 サンプルホールド回路43は、電流入力端子11または電圧入力端子12から入力されスイッチ31を通じて出力されたアナログ信号を保持する回路である。サンプルホールド回路43は、スイッチ43a、抵抗およびキャパシタからなる回路である。
 スイッチ43aは、タイミング信号に従って、サンプルホールド回路43からAD変換部52への信号経路を遮断または導通させる入力調整スイッチである。スイッチ43aの入力側は、アンプ41と接続されている。上記抵抗は、その一方の端部がスイッチ43aの出力側に接続され、他方の端部がキャパシタの一方の端部に接続されている。キャパシタは、他方の端部が接地されている。さらに、抵抗の他方の端部とキャパシタの他方の端部との接続点は、後段のAD変換部52と接続されている。
The sample-and-hold circuit 43 is a circuit that holds an analog signal that is input from the current input terminal 11 or the voltage input terminal 12 and output via the switch 31. The sample-and-hold circuit 43 is a circuit that includes a switch 43a, a resistor, and a capacitor.
The switch 43a is an input adjustment switch that cuts off or connects the signal path from the sample-and-hold circuit 43 to the AD conversion unit 52 in accordance with a timing signal. The input side of the switch 43a is connected to the amplifier 41. One end of the resistor is connected to the output side of the switch 43a, and the other end is connected to one end of the capacitor. The other end of the capacitor is grounded. Furthermore, the connection point between the other end of the resistor and the other end of the capacitor is connected to the AD conversion unit 52 in the subsequent stage.

 サンプルホールド回路43において、アンプ41から出力されたアナログ入力信号は、スイッチ43aにより遮断または導通される。スイッチ43aにより導通されたアナログ入力信号は、抵抗を介してキャパシタに接続される。スイッチ31が切り替えられたときに、アナログ入力信号の電荷がキャパシタに蓄積され、さらに、スイッチ31が切り換えされると、キャパシタに蓄積された電荷が放電される。すなわち、サンプルホールド回路42は、キャパシタに電荷を蓄積することにより、一定時間だけアナログ入力信号を保持する回路である。サンプルホールド回路42およびAD変換部52を用いることで、アナログ入力信号を一定時間保持してから、デジタル信号に変換することが可能である。 In the sample and hold circuit 43, the analog input signal output from the amplifier 41 is cut off or conducted by the switch 43a. The analog input signal that is conducted by the switch 43a is connected to a capacitor via a resistor. When the switch 31 is switched, the charge of the analog input signal is stored in the capacitor, and when the switch 31 is switched again, the charge stored in the capacitor is discharged. In other words, the sample and hold circuit 42 is a circuit that stores charge in the capacitor to hold the analog input signal for a fixed period of time. By using the sample and hold circuit 42 and the AD conversion unit 52, it is possible to hold the analog input signal for a fixed period of time and then convert it into a digital signal.

 制御部51Aは、電流電圧検出装置1の全体動作を制御する。制御部51Aは、AD変換部52、データ処理部53、タイミング生成部54A、および電流レンジ判定部55を備える。例えば、制御部51Aが電流電圧検出用アプリケーションを実行することで、制御部51Aにより、AD変換部52、データ処理部53、タイミング生成部54Aおよび電流レンジ判定部55の各機能が実現される。 The control unit 51A controls the overall operation of the current/voltage detection device 1. The control unit 51A includes an AD conversion unit 52, a data processing unit 53, a timing generation unit 54A, and a current range determination unit 55. For example, the control unit 51A executes a current/voltage detection application, whereby the control unit 51A realizes the functions of the AD conversion unit 52, the data processing unit 53, the timing generation unit 54A, and the current range determination unit 55.

 タイミング生成部54Aは、スイッチ31用のタイミング信号を生成し、生成したタイミング信号をスイッチ31に出力するとともに、スイッチ43a用のタイミング信号を生成し、生成したタイミング信号をスイッチ43aに出力する。
 例えば、タイミング生成部54Aは、サンプルホールド回路43に保持されたアナログ信号に含まれるリンギング成分がAD変換部52に入力されないタイミングを示すオンオフタイミング信号を生成し、生成したオンオフタイミング信号を、タイミング信号としてスイッチ43aに出力する。これにより、サンプルホールド回路43からAD変換部52へのアナログ信号の取り込みタイミングを制御することができる。
The timing generation unit 54A generates a timing signal for the switch 31 and outputs the generated timing signal to the switch 31, and also generates a timing signal for the switch 43a and outputs the generated timing signal to the switch 43a.
For example, the timing generating unit 54A generates an on-off timing signal indicating the timing at which the ringing component included in the analog signal held in the sample-and-hold circuit 43 is not input to the AD conversion unit 52, and outputs the generated on-off timing signal to the switch 43a as a timing signal. This makes it possible to control the timing at which the analog signal is taken in from the sample-and-hold circuit 43 to the AD conversion unit 52.

 例えば、タイミング生成部54Aは、実施の形態1と同様に、ハイレベルとローレベルが一定の周期で入れ替わる矩形波の信号をタイミング信号として生成する。この矩形波のタイミング信号が、ハイレベルのときに電圧検出シーケンスを行うために電圧入力端子12からの入力経路に切り替えさせ、ローレベルのときに電流検出シーケンスを行うために電流入力端子11からの入力経路に切り替えさせる。 For example, similar to the first embodiment, the timing generation unit 54A generates a timing signal in the form of a square wave whose high level and low level alternate at a constant cycle. When this square wave timing signal is at a high level, it switches to the input path from the voltage input terminal 12 in order to perform a voltage detection sequence, and when it is at a low level, it switches to the input path from the current input terminal 11 in order to perform a current detection sequence.

 図5は、実施の形態2における、電圧波形、リンギング波形、第1のタイミング信号波形Aおよび第2のタイミング信号波形Cを示す波形図である。図5において、最上段の波形は、図2と同様に、スイッチ31によって切り替えられる電圧波形であり、AD変換部52からデータ処理部53へ出力される信号波形を示している。第1のタイミング信号波形Aが、ハイレベルであるときに電圧検出シーケンスが行われ、ローレベルであるときに電流検出シーケンスが行われる。第2のタイミング信号波形Cが、ハイレベルであるときにスイッチ43aが導通され、ローレベルであるときにスイッチ43aが遮断される。 FIG. 5 is a waveform diagram showing a voltage waveform, a ringing waveform, a first timing signal waveform A, and a second timing signal waveform C in embodiment 2. In FIG. 5, the top waveform is a voltage waveform switched by switch 31, as in FIG. 2, and shows the signal waveform output from AD conversion unit 52 to data processing unit 53. When first timing signal waveform A is at a high level, a voltage detection sequence is performed, and when it is at a low level, a current detection sequence is performed. When second timing signal waveform C is at a high level, switch 43a is conductive, and when it is at a low level, switch 43a is cut off.

 最上段の電圧波形における、第1のタイミング信号波形Aのハイレベル区間に対応する部分が、電圧検出シーケンスで得られた入力電圧信号Vinの電圧値であり、第1のタイミング信号波形Aのローレベル区間に対応する部分が、電流検出シーケンスで得られた電流換算値Iina、IinbおよびIincを示している。また、最上段の電圧波形における、第2のタイミング信号波形Cのハイレベル区間に対応する部分が、AD変換部52へ出力される入力電圧信号Vinの範囲Dである。 In the voltage waveform at the top, the portion corresponding to the high level section of the first timing signal waveform A indicates the voltage value of the input voltage signal Vin obtained in the voltage detection sequence, and the portion corresponding to the low level section of the first timing signal waveform A indicates the current equivalent values Iina , Iinb , and Iinc obtained in the current detection sequence. Also, in the voltage waveform at the top, the portion corresponding to the high level section of the second timing signal waveform C indicates the range D of the input voltage signal Vin output to the AD conversion unit 52.

 例えば、シャント抵抗22aの抵抗値Rsaが0.1mΩであり、シャント抵抗22bの抵抗値Rsbが10mΩであり、シャント抵抗22cの抵抗値Rscが1000mΩであるものとする。スイッチ21によってシャント抵抗22aに切り替えられた場合、図5に示すように、数mVの電流換算値Iinaが得られる。 For example, assume that the resistance value Rsa of the shunt resistor 22a is 0.1 mΩ, the resistance value Rsb of the shunt resistor 22b is 10 mΩ, and the resistance value Rsc of the shunt resistor 22c is 1000 mΩ. When the shunt resistor 22a is selected by the switch 21, a current equivalent value Iina of several mV is obtained as shown in FIG.

 入力電圧信号Vinの電圧値が数Vである場合、電流換算値Iinaと入力電圧信号Vinの電圧値との間には、両矢印で示すように大きなレベル差が生じる。入力電圧信号Vinの電圧値と電流換算値Iinaとの差分が大きい場合、アンプ41に入力される電圧波形には、スイッチ31による入力経路の切り替えが行われたときの急激な電位の変化により、電圧波形において大きなリンギング波形が発生する。 When the voltage value of the input voltage signal Vin is several volts, a large level difference occurs between the current equivalent value Iina and the voltage value of the input voltage signal Vin , as indicated by the double arrow. When the difference between the voltage value of the input voltage signal Vin and the current equivalent value Iina is large, a large ringing waveform occurs in the voltage waveform input to the amplifier 41 due to a sudden change in potential when the input path is switched by the switch 31.

 リンギングは、電位差が大きいとリンギングの振幅が大きくなるだけでなく、その振幅が収束する収束時間も長くなる。リンギング成分を含むアナログ入力信号がAD変換部52に入力されると、AD変換部52によってデジタル信号に変換された電流値または電流値には、リンギング成分に応じた差分が生まれる。このため、結果的にデータ処理部53に入力される入力データの誤差要因になる。
 これに対して、スイッチ43aの切り換えを制御することにより、AD変換部52は、リンギングが収束した後の範囲Dに対応するアナログ入力信号のみを取得することが可能である。
When the potential difference is large, not only does the ringing amplitude increase, but the convergence time for the amplitude to converge also increases. When an analog input signal containing a ringing component is input to the AD conversion unit 52, a difference corresponding to the ringing component is generated in the current value or current value converted into a digital signal by the AD conversion unit 52. As a result, this becomes a factor of error in the input data input to the data processing unit 53.
In response to this, by controlling the switching of the switch 43a, the AD conversion section 52 can obtain only the analog input signal that corresponds to range D after the ringing has converged.

 スイッチ21によってシャント抵抗22bに切り替えられた場合、図5に示すように、数百mVの電流換算値Iinbが得られる。入力電圧信号Vinの電圧値が数Vであれば、電流換算値Iinbと入力電圧信号Vinの電圧値との間には、両矢印で示すレベル差が生じる。この場合、電圧波形において、電流換算値Iinaのときよりも小さいが、中程度の大きさのリンギング波形Bが発生する。
 この場合においても、スイッチ43aの切り換えを制御することにより、AD変換部52は、リンギングが収束した後の範囲Dに対応するアナログ入力信号のみを取得することが可能である。
When the switch 21 is switched to the shunt resistor 22b, a current equivalent value Iinb of several hundred mV is obtained, as shown in Fig. 5. If the voltage value of the input voltage signal Vin is several volts, a level difference is generated between the current equivalent value Iinb and the voltage value of the input voltage signal Vin , as indicated by the double arrow. In this case, a ringing waveform B of moderate magnitude is generated in the voltage waveform, which is smaller than that of the current equivalent value Iina .
Even in this case, by controlling the switching of the switch 43a, the AD conversion unit 52 can obtain only the analog input signal corresponding to the range D after the ringing has converged.

 スイッチ21によってシャント抵抗22cに切り替えられた場合、図5に示すように、数Vの電流換算値Iincが得られる。入力電圧信号Vinの電圧値が数Vである場合に、電流換算値Iincと入力電圧信号Vinの電圧値との間には、両矢印で示すように、最も小さなレベル差が生じる。この場合、電圧波形において、最も小さなリンギング波形Bが発生するが、スイッチ43aの切り換えを制御することにより、AD変換部52は、リンギングが収束した後の範囲Dに対応するアナログ入力信号のみを取得することができる。これにより、電流レンジ判定部55は、電源から供給される交流電力の電流検出と電圧検出に使用するシャント抵抗22としてシャント抵抗22cを選択でき、制御部51Aは、リンギングが収束した範囲Dのアナログ入力信号を取得できる。 When the switch 21 is switched to the shunt resistor 22c, a current equivalent value Iinc of several volts is obtained as shown in Fig. 5. When the voltage value of the input voltage signal Vin is several volts, the smallest level difference occurs between the current equivalent value Iinc and the voltage value of the input voltage signal Vin , as shown by the double arrow. In this case, the smallest ringing waveform B occurs in the voltage waveform, but by controlling the switching of the switch 43a, the AD conversion unit 52 can obtain only the analog input signal corresponding to the range D after the ringing has converged. As a result, the current range determination unit 55 can select the shunt resistor 22c as the shunt resistor 22 used for current detection and voltage detection of the AC power supplied from the power source, and the control unit 51A can obtain the analog input signal in the range D after the ringing has converged.

 実施の形態2において、電流電圧検出装置1Aは、タイミング信号に従って、サンプルホールド回路43からAD変換部52への信号経路を遮断または導通させるためのスイッチ43aを備える。タイミング生成部54Aは、サンプルホールド回路43に保持されたアナログ信号に含まれるリンギング成分がAD変換部52に入力されないタイミングを示すタイミング信号を生成し、タイミング信号をスイッチ43aに出力することにより、サンプルホールド回路43からAD変換部52へのアナログ信号の取り込みタイミングを制御する。リンギング成分がAD変換部52に入力されないタイミングでスイッチ43aが切り替えられるので、電流電圧検出装置1Aは、電流検出と電圧検出との切り替えにより発生するリンギングを抑制することができる。 In the second embodiment, the current-voltage detection device 1A includes a switch 43a for blocking or connecting the signal path from the sample-and-hold circuit 43 to the AD conversion unit 52 according to a timing signal. The timing generation unit 54A generates a timing signal indicating the timing at which the ringing component contained in the analog signal held in the sample-and-hold circuit 43 is not input to the AD conversion unit 52, and outputs the timing signal to the switch 43a, thereby controlling the timing of taking in the analog signal from the sample-and-hold circuit 43 to the AD conversion unit 52. Because the switch 43a is switched at a timing at which the ringing component is not input to the AD conversion unit 52, the current-voltage detection device 1A can suppress ringing that occurs due to switching between current detection and voltage detection.

 なお、各実施の形態の組み合わせまたは実施の形態のそれぞれの任意の構成要素の変形もしくは実施の形態のそれぞれにおいて任意の構成要素の省略が可能である。 It is possible to combine the embodiments, modify any of the components in each embodiment, or omit any of the components in each embodiment.

 本開示に係る電流電圧検出装置は、例えば、電力制御装置における電流電圧検出に利用可能である。 The current/voltage detection device disclosed herein can be used, for example, to detect current/voltage in a power control device.

 1,1A 電流電圧検出装置、11 電流入力端子、12 電圧入力端子、13 入力リターン端子、21,31,43a スイッチ、22,22a,22b,22c シャント抵抗、41 アンプ、42,43 サンプルホールド回路、51,51A 制御部、52 AD変換部、53 データ処理部、54,54A タイミング生成部、55 電流レンジ判定部。 1, 1A current and voltage detection device, 11 current input terminal, 12 voltage input terminal, 13 input return terminal, 21, 31, 43a switch, 22, 22a, 22b, 22c shunt resistor, 41 amplifier, 42, 43 sample and hold circuit, 51, 51A control unit, 52 AD conversion unit, 53 data processing unit, 54, 54A timing generation unit, 55 current range determination unit.

Claims (5)

 タイミング信号に従って、電流入力端子からの入力経路および電圧入力端子からの入力経路の中から、出力側に導通させる入力経路を選択して切り替える入力切替スイッチと、
 互いに異なる抵抗値を有した複数のシャント抵抗と、
 選択信号に従って、複数の前記シャント抵抗の中から、前記電流入力端子からの入力経路と導通させる抵抗を選択して切り替える抵抗切替スイッチと、
 前記タイミング信号を前記入力切替スイッチに出力するタイミング生成部と、
 複数の前記シャント抵抗の中から、前記電流入力端子から入力された電流信号の入力電流値と前記シャント抵抗の値との積により電圧に換算された電流換算値と、前記電圧入力端子から入力された入力電圧信号の入力電圧値と、の差分の値が小さくなる前記シャント抵抗を判定して、判定した前記シャント抵抗を選択させるための前記選択信号を前記抵抗切替スイッチに出力する判定部と、を備えた
 ことを特徴とする電流電圧検出装置。
an input changeover switch that selects and switches an input path to be conducted to an output side from among an input path from a current input terminal and an input path from a voltage input terminal in accordance with a timing signal;
A plurality of shunt resistors having different resistance values;
a resistor changeover switch that selects and switches a resistor to be connected to an input path from the current input terminal from among the plurality of shunt resistors in accordance with a selection signal;
a timing generation unit that outputs the timing signal to the input changeover switch;
a determination unit that determines, from among the plurality of shunt resistors, the shunt resistor that produces the smallest difference between a current equivalent value, converted into voltage by multiplying an input current value of a current signal input from the current input terminal and a value of the shunt resistor, and an input voltage value of an input voltage signal input from the voltage input terminal, and outputs the selection signal to the resistance changeover switch to select the determined shunt resistor.
 前記電流入力端子または前記電圧入力端子から入力され前記入力切替スイッチを通じて出力されたアナログ信号を保持するサンプルホールド回路と、
 前記サンプルホールド回路から出力された前記アナログ信号をデジタル信号に変換するAD変換部と、を備え、
 前記判定部は、前記AD変換部から出力された前記デジタル信号と前記タイミング生成部から出力された前記タイミング信号とを比較した結果に基づいて、複数の前記シャント抵抗から、電圧検出シーケンスにおいて検出された前記入力電圧値と前記電流換算値との差分の値が小さくなる前記シャント抵抗を判定する
 ことを特徴とする請求項1に記載の電流電圧検出装置。
a sample-and-hold circuit that holds an analog signal input from the current input terminal or the voltage input terminal and output through the input changeover switch;
an AD conversion unit that converts the analog signal output from the sample-and-hold circuit into a digital signal;
2. The current/voltage detection device according to claim 1, wherein the determination unit determines, from among the multiple shunt resistors, the shunt resistor that results in the smallest difference between the input voltage value detected in a voltage detection sequence and the current conversion value, based on a result of comparing the digital signal output from the AD conversion unit and the timing signal output from the timing generation unit.
 前記入力電圧値と前記電流換算値との差分の値が基準値以下になるまで、電圧検出シーケンスと電流検出シーケンスとを繰り返し行い、
 前記判定部は、前記入力電圧値と前記電流換算値との差分の値が前記基準値以下になる前記シャント抵抗を判定する
 ことを特徴とする請求項1に記載の電流電圧検出装置。
a voltage detection sequence and a current detection sequence are repeatedly performed until a difference between the input voltage value and the current equivalent value becomes equal to or less than a reference value;
2 . The current/voltage detection device according to claim 1 , wherein the determination unit determines the shunt resistor for which a difference between the input voltage value and the current equivalent value is equal to or smaller than the reference value.
 オンオフタイミング信号に従って、前記サンプルホールド回路から前記AD変換部への信号経路を遮断または導通させる入力調整スイッチを備え、
 前記タイミング生成部は、前記サンプルホールド回路に保持された前記アナログ信号に含まれるリンギング成分が前記AD変換部に入力されないタイミングを示す前記オンオフタイミング信号を生成し、生成した前記オンオフタイミング信号を前記入力調整スイッチに出力することにより、前記サンプルホールド回路から前記AD変換部への前記アナログ信号の取り込みタイミングを制御する
 ことを特徴とする請求項2に記載の電流電圧検出装置。
an input adjustment switch that cuts off or connects a signal path from the sample-and-hold circuit to the AD conversion unit in accordance with an on/off timing signal;
3. The current/voltage detection device according to claim 2, wherein the timing generation unit generates the on/off timing signal indicating a timing at which a ringing component contained in the analog signal held in the sample-and-hold circuit is not input to the AD conversion unit, and controls a timing at which the analog signal is taken in from the sample-and-hold circuit to the AD conversion unit by outputting the generated on/off timing signal to the input adjustment switch.
 請求項1から請求項4のいずれか1項に記載の電流電圧検出装置の電流電圧検出方法であって、
 前記電流電圧検出装置が、
 前記入力切替スイッチの出力側に導通させる入力経路を、前記電圧入力端子からの入力経路に切り替えるステップと、
 前記電圧入力端子から入力された前記入力電圧値を検出するステップと、
 前記入力切替スイッチの出力側に導通させる入力経路を、前記電流入力端子からの入力経路に切り替えるステップと、
 前記電流入力端子から入力された前記入力電流値と前記シャント抵抗の値との積により電圧に換算された前記電流換算値を算出するステップと、
 前記電流換算値と前記入力電圧値との差分の値を算出するステップと、
 複数の前記シャント抵抗の中から、算出した差分の値が小さくなる前記シャント抵抗を選択するステップと、を備えた
 ことを特徴とする電流電圧検出方法。
A current/voltage detection method for the current/voltage detection device according to any one of claims 1 to 4, comprising:
The current/voltage detection device is
switching an input path to be conducted to an output side of the input changeover switch to an input path from the voltage input terminal;
detecting the input voltage value inputted from the voltage input terminal;
switching an input path to be conducted to an output side of the input changeover switch to an input path from the current input terminal;
calculating the current equivalent value converted into a voltage by multiplying the input current value input from the current input terminal by the value of the shunt resistor;
calculating a difference between the current equivalent value and the input voltage value;
selecting, from among the plurality of shunt resistors, the shunt resistor that provides the smallest calculated difference value.
PCT/JP2023/025808 2023-07-13 2023-07-13 Current/voltage detecting device and current/voltage detecting method WO2025013266A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/JP2023/025808 WO2025013266A1 (en) 2023-07-13 2023-07-13 Current/voltage detecting device and current/voltage detecting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2023/025808 WO2025013266A1 (en) 2023-07-13 2023-07-13 Current/voltage detecting device and current/voltage detecting method

Publications (1)

Publication Number Publication Date
WO2025013266A1 true WO2025013266A1 (en) 2025-01-16

Family

ID=94214907

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2023/025808 WO2025013266A1 (en) 2023-07-13 2023-07-13 Current/voltage detecting device and current/voltage detecting method

Country Status (1)

Country Link
WO (1) WO2025013266A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55110960A (en) * 1979-02-20 1980-08-27 Yokogawa Hokushin Electric Corp Digital automatic range changing-over type wattmeter
JPH08184616A (en) * 1994-12-29 1996-07-16 Central Res Inst Of Electric Power Ind Small-sized power consumption measuring apparatus
JP2002116052A (en) * 2000-10-11 2002-04-19 Matsushita Electric Ind Co Ltd Measuring device
WO2012133756A1 (en) * 2011-03-31 2012-10-04 日本電気株式会社 Power consumption management system
JP2020160245A (en) * 2019-03-26 2020-10-01 キヤノン株式会社 Power control device and image formation apparatus
CN214097597U (en) * 2020-10-21 2021-08-31 国网江苏省电力有限公司南京供电分公司 A Low Residual Inductance Shunt for Transient Current Measurement

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55110960A (en) * 1979-02-20 1980-08-27 Yokogawa Hokushin Electric Corp Digital automatic range changing-over type wattmeter
JPH08184616A (en) * 1994-12-29 1996-07-16 Central Res Inst Of Electric Power Ind Small-sized power consumption measuring apparatus
JP2002116052A (en) * 2000-10-11 2002-04-19 Matsushita Electric Ind Co Ltd Measuring device
WO2012133756A1 (en) * 2011-03-31 2012-10-04 日本電気株式会社 Power consumption management system
JP2020160245A (en) * 2019-03-26 2020-10-01 キヤノン株式会社 Power control device and image formation apparatus
CN214097597U (en) * 2020-10-21 2021-08-31 国网江苏省电力有限公司南京供电分公司 A Low Residual Inductance Shunt for Transient Current Measurement

Similar Documents

Publication Publication Date Title
US7973543B2 (en) Measurement apparatus, test apparatus and measurement method
JP5529214B2 (en) Power supply device for test apparatus and test apparatus using the same
WO2017030118A1 (en) Current detection circuit
US11275129B2 (en) Sensor device
TW200935075A (en) Power source circuit and test apparatus
US20120273659A1 (en) Photoelectric conversion circuit
JP2015139224A (en) Voltage / current supply circuit
WO2025013266A1 (en) Current/voltage detecting device and current/voltage detecting method
US6781364B2 (en) Electron device testing apparatus having high current and low current testing features
JPWO2021066153A5 (en)
JPH09113545A (en) Electric current measuring device
JP4451415B2 (en) Current / voltage conversion circuit
US6369584B1 (en) Signal correction apparatus and signal correction method
JP4545603B2 (en) Power semiconductor device
JP2005055381A (en) Measuring device
JPH0645909Y2 (en) IC test equipment
CN105934886B (en) Semiconductor switch and for determining the method by the electric current of semiconductor switch
JP2013251820A (en) Current measuring circuit
JP2011027453A (en) Semiconductor test apparatus and semiconductor test method
JP5172724B2 (en) Surge test equipment
JP2004198143A (en) Current detection device
KR102764548B1 (en) How to accurately detect a sensor signal
JPH0854424A (en) Current application voltage measuring instrument
CN113252965B (en) Detection circuit, device and method
CN111917284B (en) Frequency converter

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23945139

Country of ref document: EP

Kind code of ref document: A1