The detection value of the potentiometer 64, X-ray detector storage unit stored in the maximum size information storage unit 102 detects the size of the body axis of the subject in the flat panel detector 7, which is housed in the X-ray detector storage unit I is compared with the maximum dimension information in the body axis direction of the examinee of the flat panel detector 7 can be accommodated to. When the dimension of the body axis of the subject of the flat panel detector 7, which is housed in the X-ray detector storage unit, matches the maximum size of the flat panel detector 7 can be accommodated in the X-ray detector storage unit The reference position information switching unit 103 allows the switching of the reference position information stored in the reference position information storage unit 101. In this state, when performing a predetermined operation on the operation unit 104 by the operator such as pressing a switch of the operation unit 104, it is changed to a reference position where the reference position information stored in the reference position information storage unit 101 is set in advance that.X線検出器収納部に収納されたフラットパネルディテクタ7における被検者の体軸方向の寸法を検出するとポテンショメータ64の検出値と、最大寸法情報記憶部102に記憶されたX線検出器収納部に収納可能なフラットパネルディテクタ7の被検者の体軸方向の最大寸法情報とを比較する。そして、X線検出器収納部に収納されたフラットパネルディテクタ7の被検者の体軸方向の寸法が、X線検出器収納部に収納可能なフラットパネルディテクタ7の最大サイズと一致した場合には、基準位置情報切り替え部103は基準位置情報記憶部101に記憶した基準位置情報の切り替えを可能とする。この状態において、オペレータが操作部104のスイッチを押すなどして操作部104に所定の操作を行った場合、基準位置情報記憶部101に記憶した基準位置情報が予め設定された基準位置に変更される。