1. A power conversion device, comprising: an inverter which includes a high electric potential-side switching element and a low electric potential-side switching element which are provided in correspondence with each phase of three phases, and is configured to invert a DC voltage output from a DC power supply to AC voltages by switching on/off the high electric potential-side switching elements and the low electric potential-side switching elements, and to output the AC voltages; a current detector which is connected in series to the respective low electric potential-side switching elements of the inverter, and is configured to detect respective values of phase currents in the three phases as phase current detection values; and a controller configured to calculate phase voltage commands in the three phases, and to control the inverter in accordance with the calculated phase voltage commands in the three phases, wherein the phase voltage commands in the three phases comprises a first phase voltage command, a second phase voltage command, and a third phase voltage command in a first phase, a second phase, and a third phase, respectively, wherein the controller is configured to: compare the phase voltage command in at least one phase of the phase voltage commands in the three phases and a first carrier wave signal to each other, and compare the phase voltage command in a remaining phase of the phase voltage commands in the three phases and a second carrier wave signal different from the first carrier wave signal in phase by ½ cycle of a carrier wave cycle of the first carrier wave signal to each other, to thereby control the high electric potential-side switching elements and the low electric potential-side switching elements of the inverter to switch on and off, wherein the low electric potential-side switching elements comprises a first switching element, a second switching element, and a third switching element corresponding to the first phase, the second phase, and the third phase, respectively; acquire, from the current detector at a timing A at which the first switching element corresponding to the first phase is turned on, a first phase current detection value in the first phase based on a comparison between the first phase voltage command and the first carrier wave signal, acquire the first phase current detection value from the current detector at a timing B at which the first switching element is turned off, as a first offset current value, and calculate a first corrected phase current calculation value corresponding to the first phase, by subtracting the first offset current value acquired at the timing B from the first phase current detection value acquired at the timing A; and acquire, from the current detector at the timing B at which the second switching element corresponding to the second phase is turned on, a second phase current detection value in the second phase based on a comparison between the second phase voltage command and the second carrier wave signal, acquire the second phase current detection value from the current detector at the timing A at which the second switching element is turned off, as a second offset current value, and calculate a second corrected phase current calculation value corresponding to the second phase by subtracting the second offset current value acquired at the timing A from the second phase current detection value acquired at the timing B.
|