The present invention provides a control device (control unit (4)) used for controlling a scanning electromagnet (31) of scanning irradiating, comprising: a processing system of command value (memory (42), computing circuit (43), interface (46)) that generates a command value for driving the scanning electromagnet (31) based on a therapy plan, and outputs the command value by synchronizing with an accelerator (10) and a comparison unit (45) for detecting error in the processing system, wherein at least a part of the circuit of the processing system (e.g. a computing circuit (43)) is redundant, and the comparison unit (45) detects the processing error upon an inconsistent of an output from the redundant circuit.本發明係使用於掃描照射用的掃描電磁鐵(31)的控制之控制裝置(控制部(4)),係具備:指令值的處理系統(記憶體(42)、演算電路(43)、介面(46)),係根據治療計劃而產生用以驅動掃描電磁鐵(31)的指令值,並將產生的指令值和加速器(10)同步而輸出;以及比較部(45),係檢測上述處理系統的錯誤,上述處理系統的至少一部分之電路(例如,演算電路(43))係被冗長化,比較部(45)係於來自被冗長化的電路之輸出為不一致時,則檢測出處理有發生錯誤。4‧‧‧局部控制部(掃描電磁鐵用控制裝置)5‧‧‧局部控制部(加速器用控制裝置)6‧‧‧主控制部(協調控制部)20‧‧‧治療計劃裝置31‧‧‧掃描電磁鐵32‧‧‧驅動電源41‧‧‧介面42‧‧‧記憶體43A‧‧‧第1演算電路43B‧‧‧第2演算電路