An excavator 1 comprising: a power supply 61 that converts AC power supply voltage from a commercial power supply 5 into DC power supply voltage; a battery 62 that charges or discharges power from the power supply 61; an inverter 63 that converts DC power supply voltage to AC power supply voltage; an electric motor 7 that has power supplied thereto, and is controlled, by the inverter 63; a first electrical circuit 6a that supplies power to the inverter 63 from the power supply 61; a second electrical circuit 6b that joins from the battery 62 to the first electrical circuit 6a; an inverter relay 64 arranged between the inverter 63 and a junction point 6c between the first electrical circuit 6a and the second electrical circuit 6b; a battery relay 65 arranged between the junction point 6c and the battery 62; and a power supply relay 66 arranged between the junction point 6c and the power supply 61.
展开▼