An X-ray apparatus is provided with a control circuit. When a duration monitored by a timer in which the device is not operated exceeds a predetermined set time, and a duration monitored by a timer in which a connected state is detected by a transformer exceeds a predetermined set time, the control circuit performs control while disconnecting the connection between a storage cell and a high voltage generation circuit, and performs control while starting the charging of the storage cell via a power socket which is an external power source. This makes it possible, merely by connecting the apparatus main body to the power socket which is an external power source, to disconnect the connection between the storage cell and the high voltage generation circuit and starts the charging of the storage cell on the basis of the results obtained by the timer. As a result, it is possible to automatically charge the storage cell by connecting to the power socket which is an external power source without relying on the actuation and the stoppage of the apparatus.