This control device is used with a treatment tool including: an operation input element that is provided with a magnet; and a sensor that detects magnetic flux density, wherein the magnetic flux density at the sensor changes in accordance with an operation of the operation input element. The control device controls the supply, to the treatment tool, of electric energy for activating the treatment tool. The control device comprises a processor that acquires a relationship between the magnetic flux density and a distance between the sensor and the operation input element, and sets, on the basis of the relationship, a threshold for switching the supply of the electric energy between an on state and an off state.La présente invention concerne un dispositif de commande qui est utilisé avec un outil de traitement comprenant : un élément d'entrée d'opération qui est pourvu d'un aimant ; et un capteur qui détecte une densité de flux magnétique, la densité de flux magnétique au niveau du capteur changeant en fonction d'une opération de l'élément d'entrée d'opération. Le dispositif de commande commande l'alimentation, à l'outil de traitement, d'énergie électrique pour activer l'outil de traitement. Le dispositif de commande comprend un processeur qui acquiert une relation entre la densité de flux magnétique et une distance entre le capteur et l'élément d'entrée d'opération, et définit, sur la base de la relation, un seuil pour commuter l'alimentation de l'énergie électrique entre un état activé et un état éteint.制御装置は、磁石を備える操作入力子と、磁束密度を検知するセンサとを備え、前記操作入力子での操作に基づいて前記センサでの磁束密度が変化する処置具とともに用いられ、前記処置具を作動させる電気エネルギーの前記処置具への供給を制御する。前記制御装置は、前記センサと前記操作入力子との間の距離と前記磁束密度との関係を取得し、前記関係に基づいて前記電気エネルギーの前記供給のオン状態及びオフ状態の間を切り替える閾値を設定する、プロセッサを具備する。