JP2011180702A - Transfer detection system - Google Patents

Transfer detection system Download PDF

Info

Publication number
JP2011180702A
JP2011180702A JP2010042545A JP2010042545A JP2011180702A JP 2011180702 A JP2011180702 A JP 2011180702A JP 2010042545 A JP2010042545 A JP 2010042545A JP 2010042545 A JP2010042545 A JP 2010042545A JP 2011180702 A JP2011180702 A JP 2011180702A
Authority
JP
Japan
Prior art keywords
relocation
machine
relocation detection
response time
unique
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2010042545A
Other languages
Japanese (ja)
Other versions
JP5397270B2 (en
Inventor
Yoshihisa Katayama
良久 片山
Toshiaki Ukai
敏明 鵜飼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2010042545A priority Critical patent/JP5397270B2/en
Priority to CN201110050867.4A priority patent/CN102200492B/en
Publication of JP2011180702A publication Critical patent/JP2011180702A/en
Application granted granted Critical
Publication of JP5397270B2 publication Critical patent/JP5397270B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Machine Tool Sensing Apparatuses (AREA)
  • Numerical Control (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a transfer detection system capable of detecting the transfer of a machine while permitting the movement of the machine within a fixed range. <P>SOLUTION: Numerical control devices 1A to 1C are connected to a transfer detection device 20 via wiring 11A to 11C. The numerical control devices 1A to 1C can be moved within a range reached by the wiring 11A to 11C. The unique ID of the numerical control devices 1A to 1C is stored in the transfer detection device 20. In the case of starting the numerical control devices 1A to 1C, when their own unique ID is not stored in the transfer detection device 20, the start of the numerical control devices is inhibited. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、移設検出システムに関する。   The present invention relates to a relocation detection system.

従来、機器の移設を監視する技術として機器の電源オフの期間に装置に加わる振動を検出し記憶することにより、電源再投入後に振動履歴が存在するか否か判断し、振動履歴が存在する場合には装置の起動を禁止する移設検出装置が知られている。例えば、数値制御装置の傾斜検出手段と、傾斜検出手段が予め設定された基準値以上の傾斜を検出した時に数値制御装置が移設されたと判断する移設判断手段と、移設されたと判断した時に数値制御装置の使用を禁止する使用禁止手段とを備える移設検出機能を有する数値制御装置が開示されている(例えば、特許文献1参照)。   Conventionally, as a technology for monitoring the relocation of equipment, by detecting and storing the vibration applied to the device during the power-off period of the equipment, it is determined whether or not there is a vibration history after the power is turned on again. There is known a relocation detection device that prohibits activation of the device. For example, the inclination detecting means of the numerical control device, the relocation determining means for determining that the numerical control device has been relocated when the inclination detecting means detects an inclination greater than a preset reference value, and the numerical control when determining that the relocation has been relocated. A numerical control device having a relocation detection function including use prohibiting means for prohibiting use of the device is disclosed (for example, see Patent Document 1).

特開2009−134561号公報JP 2009-134561 A

しかしながら、特許文献1に記載の移設検出機能を有する数値制御装置では、レイアウト変更のために数値制御装置を移動する際、移設を検出してしまう。それ故、容易にレイアウト変更をすることができないという問題点があった。   However, in the numerical control device having the relocation detection function described in Patent Document 1, the relocation is detected when the numerical control device is moved for layout change. Therefore, there is a problem that the layout cannot be easily changed.

本発明は、上記課題を解決するためになされたものであり、一定範囲内での機械の移動を許容しつつも機械の移設を検出できる移設検出システムを提供することを目的とする。   The present invention has been made to solve the above-described problem, and an object of the present invention is to provide a relocation detection system that can detect relocation of a machine while allowing the movement of the machine within a certain range.

本発明の第1態様に係る移設検出システムは、機械の移設を検出する移設検出手段と、該移設検出手段によって前記機械の移設を検出した場合に、前記機械の稼働を禁止する稼動禁止手段とを備えた移設検出システムにおいて、前記移設検出手段を収納する機枠を前記機械と隔離して設け、前記移設検出手段と前記機械とを通信する通信手段によって前記機械との通信に要する応答時間を検出する応答時間検出手段と、前記応答時間検出手段によって検出された前記応答時間が所定時間を超えているか否かを判断する応答時間判断手段とを備え、前記稼動禁止手段は、前記応答時間判断手段によって前記応答時間が前記所定時間を超えていると判断された場合に、前記機械の稼動を禁止することを特徴とする。   The relocation detection system according to the first aspect of the present invention includes relocation detection means for detecting relocation of a machine, and operation prohibiting means for prohibiting operation of the machine when the relocation detection means detects relocation of the machine. In the relocation detection system, a machine frame for housing the relocation detection means is provided separately from the machine, and a response time required for communication with the machine is provided by communication means for communicating the relocation detection means and the machine. Response time detecting means for detecting, and response time determining means for determining whether or not the response time detected by the response time detecting means exceeds a predetermined time, and the operation prohibiting means comprises the response time determining means. The operation of the machine is prohibited when it is determined by the means that the response time exceeds the predetermined time.

第1態様では、移設検出手段を収納する機枠を機械と隔離して設けている。移動検出手段は通信手段を介して機械と通信する。応答時間検出手段は、通信手段によって機械との通信に要する応答時間を検出する。応答時間判断手段は、応答時間検出手段によって検出された応答時間が所定時間を超えているか否かを判断する。稼動禁止手段は、応答時間判断手段によって応答時間が所定時間を超えていると判断された場合に、機械の稼動を禁止する。移設検出手段との距離が一定範囲内であれば、応答時間が所定時間以下となるので、その場合は機械を稼動できる。従って、一定範囲内で機械を移動できるので、フロア内における機械のレイアウト変更が可能となる。   In the first aspect, the machine frame that houses the transfer detecting means is provided separately from the machine. The movement detection means communicates with the machine via the communication means. The response time detection means detects the response time required for communication with the machine by the communication means. The response time determination unit determines whether or not the response time detected by the response time detection unit exceeds a predetermined time. The operation prohibiting unit prohibits the operation of the machine when the response time determining unit determines that the response time exceeds a predetermined time. If the distance from the relocation detection means is within a certain range, the response time becomes a predetermined time or less, and in that case, the machine can be operated. Therefore, since the machine can be moved within a certain range, it is possible to change the layout of the machine on the floor.

また、第1態様では、前記機械は、個別の識別情報を記憶する機械記憶手段を備え、前記移設検出手段は、前記識別情報を記憶する識別情報記憶手段を備え、前記通信手段を介して前記機械記憶手段に記憶した識別情報と、前記識別情報記憶手段に記憶した前記識別情報とが一致しているか否かを判断する識別情報一致判断手段と、前記識別情報一致判断手段によって前記識別情報が互いに一致していると判断された場合にのみ、前記機械に対して稼動を許可する稼動許可手段とを備えてもよい。識別情報一致判断手段は、通信手段を介して、機械記憶手段に記憶した識別情報と、識別情報記憶手段に記憶した識別情報とが一致しているか否かを判断する。稼動許可手段は、識別情報が互いに一致していると判断された場合にのみ、機械に対して稼動を許可する。識別情報が互いに一致しない機械は、移設検出手段に対して不正に通信する機械の可能性があるので、そのような機械の稼動を禁止できる。   Further, in the first aspect, the machine includes a machine storage unit that stores individual identification information, and the relocation detection unit includes an identification information storage unit that stores the identification information, and the communication unit performs the communication via the communication unit. The identification information matching judgment means for judging whether or not the identification information stored in the machine storage means and the identification information stored in the identification information storage means match, and the identification information matching judgment means Only when it is determined that they match each other, an operation permission unit that permits the operation of the machine may be provided. The identification information match determination means determines whether or not the identification information stored in the machine storage means matches the identification information stored in the identification information storage means via the communication means. The operation permission means permits the machine to operate only when it is determined that the identification information matches each other. Machines whose identification information does not match each other may be a machine that illegally communicates with the relocation detection means, so that the operation of such machines can be prohibited.

また、第1態様では、前記移設検出手段は、複数の前記機械と接続可能な入出力部を備え、前記応答時間検出手段は、前記入出力部に接続された複数の前記機械に対して各々前記応答時間を検出し、前記稼動禁止手段は、前記応答時間判断手段によって前記所定時間を超えた前記応答時間を要した機械のみ稼動を禁止してもよい。移設検出手段は、入出力部によって複数の機械と接続できる。1つの移設検出手段で、複数の機械の移設をそれぞれ検出できる。入出力部に接続した機械でも、識別情報が一致し、かつ応答時間が所定時間内でなければ稼動できない。それ故、複数の機械を入出力部に接続した状態でも、応答時間が所定時間を超える距離で移設した機械の稼動を禁止できる。   Further, in the first aspect, the relocation detection means includes an input / output unit connectable to the plurality of machines, and the response time detection means is provided for each of the plurality of machines connected to the input / output unit. The response time may be detected, and the operation prohibiting unit may prohibit the operation of only a machine that requires the response time exceeding the predetermined time by the response time determining unit. The relocation detection means can be connected to a plurality of machines by the input / output unit. One transfer detection means can detect the transfer of a plurality of machines. Even a machine connected to the input / output unit cannot be operated unless the identification information matches and the response time is within a predetermined time. Therefore, even when a plurality of machines are connected to the input / output unit, it is possible to prohibit the operation of the machines that have been moved at a distance that exceeds a predetermined response time.

また、第1態様では、前記稼動禁止手段は、前記移設検出手段によって前記機枠の移設を検出した場合、前記入出力部に接続された前記複数の機械の全ての稼動を禁止してもよい。機枠を移設したことは、移設検出手段を不正に移設したことになる。それ故、入出力部に接続した全ての機械の稼動を禁止することで、機械の不正使用を確実に防止できる。   Further, in the first aspect, the operation prohibiting unit may prohibit all operations of the plurality of machines connected to the input / output unit when the transfer detecting unit detects the transfer of the machine casing. . The relocation of the machine frame means that the relocation detection means has been relocated illegally. Therefore, unauthorized use of the machine can be reliably prevented by prohibiting the operation of all machines connected to the input / output unit.

また、第1態様では、前記移設検出手段は、交流電源から直流電源へ変換する変換機を備え、前記変換機は、前記機械の電源とは独立した交流電源を直流電源に変換して前記移設検出手段を駆動するようにしてもよい。独立した交流電源を直流電源に変換して利用できるので、移設検出手段を機械と離間して設けることができる。   In the first aspect, the relocation detecting means includes a converter that converts an AC power source into a DC power source, and the converter converts the AC power source independent of the power source of the machine into a DC power source to convert the relocation source. You may make it drive a detection means. Since an independent AC power source can be used after being converted to a DC power source, the transfer detecting means can be provided apart from the machine.

また、第1態様では、前記移設検出手段は、該移設検出手段の電源バックアップをする補助電池と、前記変換機の異常を検出する異常検出手段と、前記異常検出手段が前記異常を検出した場合、前記変換機によって変換した直流電源から前記補助電池の電源を前記移設検出手段に供給するように切替える切替え手段とを備えてもよい。異常検出手段が異常を検出した場合、切替え手段は、変換機によって変換した直流電源から補助電池の電源を移設検出手段に供給するように切替える。それ故、移設検出手段は、交流電源を利用できない事態が発生した場合でも、補助電池の電源を利用できる。   In the first aspect, the relocation detection means includes an auxiliary battery that performs power backup of the relocation detection means, an abnormality detection means that detects an abnormality of the converter, and the abnormality detection means that detects the abnormality. And a switching means for switching so that the power of the auxiliary battery is supplied to the relocation detecting means from the DC power source converted by the converter. When the abnormality detection means detects an abnormality, the switching means switches so that the power of the auxiliary battery is supplied to the relocation detection means from the DC power converted by the converter. Therefore, the relocation detection means can use the power source of the auxiliary battery even when a situation where the AC power source cannot be used occurs.

また、第1態様では、前記移設検出手段は、前記変換機の異常を検出する異常検出手段と、前記異常検出手段が前記異常を検出した場合、前記機械の電源を前記移設検出手段に供給する電源供給手段と、前記電源供給手段によって前記機械の電源を前記移設検出手段に供給した場合、前記機械に異常を報知する異常報知手段とを備えてもよい。電源供給手段は、異常検出手段が異常を検出した場合に、機械の電源を移設検出手段に供給する。それ故、移設検出手段は、変換機の異常があっても機械の電源を利用できる。変換機に異常があった場合に、異常報知手段が機械に異常を報知するので、作業者は、機械側で変換機の異常があったことを認識できる。   In the first aspect, the relocation detecting means supplies an abnormality detecting means for detecting an abnormality of the converter, and supplies power of the machine to the relocation detecting means when the abnormality detecting means detects the abnormality. You may provide a power supply means and the abnormality notification means which alert | reports abnormality to the said machine when the power supply of the said machine is supplied to the said movement detection means by the said power supply means. The power supply means supplies the machine power to the relocation detection means when the abnormality detection means detects an abnormality. Therefore, the relocation detection means can use the power source of the machine even if the converter is abnormal. When there is an abnormality in the converter, the abnormality notifying means notifies the machine of the abnormality, so that the operator can recognize that the converter has an abnormality on the machine side.

また、第1態様では、前記移設検出手段は、前記補助電池の電源供給の有無を検出する補助電池供給検出手段を更に備え、前記稼動禁止手段は、前記補助電池供給検出手段が電源供給の無いことを検出した場合、前記機械の稼動を禁止してもよい。補助電池の電源供給がない場合、前記移設検出手段によって前記機枠の移設を検出できなくなる。このような場合に機械の稼動を禁止できるので、機械の不正使用を確実に防止できる。   In the first aspect, the relocation detection means further includes auxiliary battery supply detection means for detecting whether or not the auxiliary battery is supplied with power, and the operation prohibiting means is configured such that the auxiliary battery supply detection means does not supply power. If this is detected, the operation of the machine may be prohibited. When the auxiliary battery is not supplied with power, the relocation detecting means cannot detect the relocation of the machine casing. In such a case, since the operation of the machine can be prohibited, unauthorized use of the machine can be surely prevented.

移設検出システム100の構成を示す概念図である。1 is a conceptual diagram showing a configuration of a relocation detection system 100. FIG. 数値制御装置1Aと、移設検出装置20との電気的構成を示すブロック図である。It is a block diagram which shows the electrical structure of 1 A of numerical control apparatuses, and the moving detection apparatus. 移設検出装置20における電源の切り替えの仕組みを示す図である。It is a figure which shows the mechanism of switching of the power supply in the transfer detection apparatus. フラッシュメモリ24の各種記憶エリアを示す概念図である。3 is a conceptual diagram showing various storage areas of a flash memory 24. FIG. 固有ID記憶エリア241の記憶内容を示す概念図である。FIG. 5 is a conceptual diagram showing storage contents of a unique ID storage area 241. 通信距離測定回路11の構成を示すブロック図である。2 is a block diagram showing a configuration of a communication distance measurement circuit 11. FIG. 固有ID登録依頼処理のフローチャートである。It is a flowchart of a unique ID registration request process. 固有ID登録処理のフローチャートである。It is a flowchart of a unique ID registration process. 移設検出処理のフローチャートである。It is a flowchart of a relocation detection process. 起動判定処理のフローチャートである。It is a flowchart of a starting determination process. 固有ID送信処理のフローチャートである。It is a flowchart of a unique ID transmission process. 電源切替処理のフローチャートである。It is a flowchart of a power supply switching process. バッテリ切れ検出処理のフローチャートである。It is a flowchart of a battery exhaustion detection process. 伝播時間の測定方法を示したタイミングチャートである。It is a timing chart which showed the measuring method of propagation time. 移設検出装置220における電源の切り替えの仕組みを示す図である。It is a figure which shows the mechanism of switching of the power supply in the moving detection apparatus 220. FIG.

以下、本発明の一実施形態である移設検出システム100について、図面を参照して説明する。   Hereinafter, a relocation detection system 100 according to an embodiment of the present invention will be described with reference to the drawings.

はじめに、移設検出システム100の構成について、図1を参照して説明する。移設検出システム100は、3つの数値制御装置1A,1B,1Cと、1つの移設検出装置20とを備えている。移設検出装置20は、振動を検知して移設検出装置20の移設を検出する移設検出器25(図2参照)を備えている。数値制御装置1A〜1Cは、各々工作機械(図示省略)に備え付けられており、NCプログラムを実行することで、前記工作機械(図1では省略)の動作を制御する。数値制御装置1A,1B,1Cは、配線11A,11B,11Cを介して、移設検出装置20に接続している。それ故、移設検出装置20は、数値制御装置1A〜1Cと通信可能である。移設検出装置20を収納する機枠201は、工場のフロア面に立設する柱91に固定している。   First, the configuration of the relocation detection system 100 will be described with reference to FIG. The relocation detection system 100 includes three numerical control devices 1A, 1B, and 1C and one relocation detection device 20. The relocation detection device 20 includes a relocation detector 25 (see FIG. 2) that detects vibration and detects relocation of the relocation detection device 20. Each of the numerical control devices 1A to 1C is provided in a machine tool (not shown), and controls the operation of the machine tool (not shown in FIG. 1) by executing an NC program. The numerical control devices 1A, 1B, and 1C are connected to the relocation detection device 20 via wirings 11A, 11B, and 11C. Therefore, the relocation detection device 20 can communicate with the numerical control devices 1A to 1C. The machine casing 201 that houses the transfer detection device 20 is fixed to a pillar 91 that stands on the floor of the factory.

数値制御装置1A〜1Cは、配線11A〜11Cの届く範囲内であれば正常に稼動するので、同フロア内を移動できる。それ故、作業者は、数値制御装置1A〜1Cの同フロア内における配置変更が可能である。   Since the numerical control devices 1A to 1C operate normally as long as they are within the reach of the wirings 11A to 11C, they can move in the same floor. Therefore, the worker can change the arrangement of the numerical control devices 1A to 1C in the same floor.

次に、数値制御装置1Aの電気的構成について、図2を参照して説明する。数値制御装置1B,1Cの電気的構成は、数値制御装置1Aと同じであるので説明を省略する。数値制御装置1Aは、CPU5、ROM6、RAM7、フラッシュメモリ8、入出力インタフェイス9、AC/DC変換機10、通信距離測定回路11、インタフェイスモジュール12(以下、I/Fモジュール12と呼ぶ。)等を備えている。   Next, the electrical configuration of the numerical controller 1A will be described with reference to FIG. Since the electrical configurations of the numerical control devices 1B and 1C are the same as those of the numerical control device 1A, the description thereof is omitted. The numerical controller 1A includes a CPU 5, a ROM 6, a RAM 7, a flash memory 8, an input / output interface 9, an AC / DC converter 10, a communication distance measuring circuit 11, and an interface module 12 (hereinafter referred to as an I / F module 12). ) Etc.

ROM6は、メインプログラムに加え、後述する固有ID登録依頼プログラム、起動判定プログラム等を記憶する。固有ID登録依頼プログラム、起動判定プログラムは、コンピュータで読み取り可能な記憶媒体としてのフラッシュメモリ、EEPROM、HDD等に記憶させてもよい。フラッシュメモリ8は、数値制御装置1Aの固有の識別情報である固有IDと、移設検出装置20と数値制御装置1Aとの間の通信距離の基準である基準通信距離とを少なくとも記憶する。後述するが、基準通信距離は、移設検出システム100の設置時にCPU5によって算出される。   In addition to the main program, the ROM 6 stores a unique ID registration request program, an activation determination program, and the like which will be described later. The unique ID registration request program and the activation determination program may be stored in a flash memory, EEPROM, HDD, or the like as a computer-readable storage medium. The flash memory 8 stores at least a unique ID that is unique identification information of the numerical control device 1A and a reference communication distance that is a reference of a communication distance between the relocation detection device 20 and the numerical control device 1A. As will be described later, the reference communication distance is calculated by the CPU 5 when the relocation detection system 100 is installed.

入出力インタフェイス9は、工作機械15の駆動部(図示省略)および操作盤(図示省略)に接続している。AC/DC変換機10は、外部の交流電源16に接続し、交流電源16が供給する交流を直流に変換する。AC/DC変換機10は、交流電源16の他に、移設検出装置20の移設検出インタフェイス33(以下、移設検出I/F33と呼ぶ。)にも接続している。通信距離測定回路11は、数値制御装置1Aと移設検出装置20との間の通信距離を測定する。I/Fモジュール12は、移設検出装置20の移設検出I/F33に接続している。   The input / output interface 9 is connected to a drive unit (not shown) and an operation panel (not shown) of the machine tool 15. The AC / DC converter 10 is connected to an external AC power supply 16 and converts AC supplied from the AC power supply 16 into DC. In addition to the AC power supply 16, the AC / DC converter 10 is connected to a relocation detection interface 33 (hereinafter referred to as relocation detection I / F 33) of the relocation detection device 20. The communication distance measurement circuit 11 measures the communication distance between the numerical control device 1A and the relocation detection device 20. The I / F module 12 is connected to the relocation detection I / F 33 of the relocation detection device 20.

次に、移設検出装置20の電気的構成について、図2を参照して説明する。移設検出装置20は、CPU21、ROM22、RAM23、フラッシュメモリ24、移設検出器25、異常電圧検出回路26、スイッチ駆動回路27、補助電池であるバッテリ28、信号返信回路29、AC/DC変換機32、移設検出I/F33等を少なくとも備えている。ROM22は、後述する固有ID登録プログラム、移設検出プログラム、固有ID送信プログラム、電源切替プログラム、バッテリ切れ検出プログラム等を少なくとも記憶する。固有ID登録プログラム、移設検出プログラム、固有ID送信プログラム、電源切替プログラム、バッテリ切れ検出プログラムは、コンピュータで読み取り可能な記憶媒体としてのフラッシュメモリ、EEPROM、HDD等に記憶させてもよい。CPU21は、電源投入後、固有ID登録プログラム、移設検出プログラム、固有ID送信プログラム、電源切替プログラムを並列処理する。   Next, the electrical configuration of the relocation detection device 20 will be described with reference to FIG. The relocation detection device 20 includes a CPU 21, ROM 22, RAM 23, flash memory 24, relocation detector 25, abnormal voltage detection circuit 26, switch drive circuit 27, battery 28 as an auxiliary battery, signal return circuit 29, and AC / DC converter 32. The relocation detection I / F 33 is provided at least. The ROM 22 stores at least a unique ID registration program, a relocation detection program, a unique ID transmission program, a power supply switching program, a battery exhaustion detection program, and the like which will be described later. The unique ID registration program, relocation detection program, unique ID transmission program, power switch program, and battery exhaustion detection program may be stored in a flash memory, EEPROM, HDD, or the like as a computer-readable storage medium. After power-on, the CPU 21 performs parallel processing of a unique ID registration program, a relocation detection program, a unique ID transmission program, and a power supply switching program.

移設検出器25は、本体201の振動を検出して移設検出装置20の移設を検出する。移設を検出する方法は、振動の他に、例えば、加速度、傾斜等を検出してもよい。異常電圧検出回路26は、AC/DC変換機32の出力の異常を検出する。スイッチ駆動回路27は、異常電圧検出回路26の検出結果に応じて、後述するスイッチ41〜43(図3参照)を開閉する。信号返信回路29は、例えば、数値制御装置1Aが出力する距離測定信号を受信した場合に、距離測定信号を数値制御装置1Aに返信する。AC/DC変換機32は、外部の交流電源35に接続し、交流電源35が供給する交流を直流に変換する。移設検出I/F33は、数値制御装置1AのI/Fモジュール12と、数値制御装置1AのAC/DC変換機10とに接続している。それ故、移設検出装置20は、数値制御装置1Aと通信が可能である。数値制御装置1B,1Cについても同じである。   The relocation detector 25 detects vibration of the main body 201 and detects relocation of the relocation detection device 20. As a method for detecting relocation, for example, acceleration, inclination, etc. may be detected in addition to vibration. The abnormal voltage detection circuit 26 detects an abnormality in the output of the AC / DC converter 32. The switch drive circuit 27 opens and closes switches 41 to 43 (see FIG. 3) described later according to the detection result of the abnormal voltage detection circuit 26. For example, when the distance measurement signal output from the numerical controller 1A is received, the signal return circuit 29 returns the distance measurement signal to the numerical controller 1A. The AC / DC converter 32 is connected to an external AC power supply 35 and converts the AC supplied from the AC power supply 35 into a DC. The relocation detection I / F 33 is connected to the I / F module 12 of the numerical controller 1A and the AC / DC converter 10 of the numerical controller 1A. Therefore, the relocation detection device 20 can communicate with the numerical control device 1A. The same applies to the numerical controllers 1B and 1C.

次に、移設検出装置20の電源供給経路について、図3を参照して説明する。CPU21とAC/DC変換機32とを接続する電源供給ラインの途中には、スイッチ41を設けている。CPU21と移設検出I/F33とを接続する電源供給ラインの途中には、スイッチ42を設けている。CPU21とバッテリ28とを接続する電源供給ラインの途中にはスイッチ43を設けている。スイッチ駆動回路27は、CPU21の指令に基づき、スイッチ41,42,43を開閉する。スイッチ41が閉じると、移設検出装置20は、AC/DC変換機32が出力する直流を利用できる。スイッチ42が閉じると、移設検出装置20は、移設検出I/F33を介して、数値制御装置1AのAC/DC変換機10が出力する直流を利用できる。スイッチ43が閉じると、移設検出装置20は、バッテリ28が出力する直流を利用できる。CPU21は、異常電圧検出回路26の検出結果に基づき、スイッチ41〜43の切り替えを制御する。   Next, the power supply path of the relocation detection device 20 will be described with reference to FIG. A switch 41 is provided in the middle of the power supply line connecting the CPU 21 and the AC / DC converter 32. A switch 42 is provided in the middle of the power supply line connecting the CPU 21 and the relocation detection I / F 33. A switch 43 is provided in the middle of the power supply line connecting the CPU 21 and the battery 28. The switch drive circuit 27 opens and closes the switches 41, 42, and 43 based on instructions from the CPU 21. When the switch 41 is closed, the relocation detection device 20 can use the direct current output from the AC / DC converter 32. When the switch 42 is closed, the relocation detection device 20 can use the direct current output from the AC / DC converter 10 of the numerical control device 1A via the relocation detection I / F 33. When the switch 43 is closed, the relocation detection device 20 can use the direct current output from the battery 28. The CPU 21 controls switching of the switches 41 to 43 based on the detection result of the abnormal voltage detection circuit 26.

次に、フラッシュメモリ24の各種記憶エリアについて、図4を参照して説明する。フラッシュメモリ24は、固有ID記憶エリア241と、移設履歴記憶エリア242と、移設未検出フラグ記憶エリア243とを少なくとも備えている。固有ID記憶エリア241は、移設検出I/F33に接続する数値制御装置1A〜1Cの固有IDを記憶する。移設履歴記憶エリア242は、移設検出器25の移設を検出した日時等の移設検出情報を記憶する。作業者は操作盤を操作することで、工作機械15の操作盤に設けた画面に移設検出情報を表示できる。移設未検出フラグ記憶エリア243は、移設検出器25の移設検出の有無を示す移設未検出フラグを記憶する。移設検出器25が移設を検出していない場合、CPU21は、移設未検出フラグ記憶エリア243(図4参照)に移設未検出フラグ=「1」を記憶する。移設を検出した場合、CPU21は、移設未検出フラグ記憶エリア243に移設未検出フラグ=「0」を記憶する。   Next, various storage areas of the flash memory 24 will be described with reference to FIG. The flash memory 24 includes at least a unique ID storage area 241, a relocation history storage area 242, and a relocation non-detection flag storage area 243. The unique ID storage area 241 stores the unique IDs of the numerical control devices 1A to 1C connected to the relocation detection I / F 33. The relocation history storage area 242 stores relocation detection information such as the date and time when relocation of the relocation detector 25 is detected. The operator can display the relocation detection information on a screen provided on the operation panel of the machine tool 15 by operating the operation panel. The relocation non-detection flag storage area 243 stores a relocation non-detection flag indicating the presence or absence of relocation detection of the relocation detector 25. When the relocation detector 25 has not detected relocation, the CPU 21 stores a relocation non-detection flag = “1” in the relocation non-detection flag storage area 243 (see FIG. 4). When the relocation is detected, the CPU 21 stores a relocation non-detection flag = “0” in the relocation non-detection flag storage area 243.

次に、固有ID記憶エリア241が記憶する固有IDについて、図5を参照して説明する。工作機械製造者は、数値制御装置1A〜1Cを工場に設置する際に、数値制御装置1A〜1Cの操作盤から、数値制御装置1A〜1Cの固有IDを移設検出装置20に登録する。登録された固有IDは、移設検出装置20のフラッシュメモリ24の固有ID記憶エリア241に記憶される。   Next, the unique ID stored in the unique ID storage area 241 will be described with reference to FIG. When the machine tool manufacturer installs the numerical control devices 1A to 1C in the factory, the machine tool manufacturer registers the unique ID of the numerical control devices 1A to 1C in the relocation detection device 20 from the operation panel of the numerical control devices 1A to 1C. The registered unique ID is stored in the unique ID storage area 241 of the flash memory 24 of the relocation detecting device 20.

移設検出I/F33は、数値制御装置を接続するための複数の接続端子(図示省略)を有する。接続端子にはアドレスが割り当てられている。図1に示す例では、移設検出装置20の移設検出I/F33に、3つの数値制御装置1A〜1Cの各I/Fモジュール12が接続している。図4に示すように、固有ID記憶エリア241は、移設検出I/F33における4つの接続端子の「A」で始まるAアドレスに対して、数値制御装置1A〜1Cの固有IDを記憶する。CPU21は、数値制御装置1A〜1Cがどの接続端子に接続しているかを認識できる。数値制御装置が接続していない4つ目のアドレスは、固有IDが記憶されておらず、空き状態となっている。   The relocation detection I / F 33 has a plurality of connection terminals (not shown) for connecting the numerical control device. An address is assigned to the connection terminal. In the example illustrated in FIG. 1, the I / F modules 12 of the three numerical control devices 1 </ b> A to 1 </ b> C are connected to the relocation detection I / F 33 of the relocation detection device 20. As illustrated in FIG. 4, the unique ID storage area 241 stores the unique IDs of the numerical control devices 1 </ b> A to 1 </ b> C for the A addresses starting with “A” of the four connection terminals in the relocation detection I / F 33. The CPU 21 can recognize which connection terminal the numerical control devices 1A to 1C are connected to. The fourth address that is not connected to the numerical control device has no unique ID stored therein and is in an empty state.

次に、数値制御装置1Aの通信距離測定回路11について、図6を参照して説明する。通信距離測定回路11は、コンパレータ45と、集積回路であるFPGA56とを備えている。FPGA56は、時間測定回路57と、通信距離算出回路58とを備えている。コンパレータ45の入力端子1(図6では「入力1」)と、入力端子2(図6では「入力2」)とは、I/Fモジュール12に接続している。入力端子1には、時間測定回路57が出力する距離測定信号が入力される。入力端子2には、移設検出装置20の信号返信回路29が返信した距離測定信号が入力される。   Next, the communication distance measuring circuit 11 of the numerical controller 1A will be described with reference to FIG. The communication distance measurement circuit 11 includes a comparator 45 and an FPGA 56 that is an integrated circuit. The FPGA 56 includes a time measurement circuit 57 and a communication distance calculation circuit 58. The input terminal 1 (“input 1” in FIG. 6) and the input terminal 2 (“input 2” in FIG. 6) of the comparator 45 are connected to the I / F module 12. A distance measurement signal output from the time measurement circuit 57 is input to the input terminal 1. A distance measurement signal returned by the signal return circuit 29 of the relocation detection device 20 is input to the input terminal 2.

コンパレータ45の出力端子は、FPGA56の時間測定回路57に接続している。出力端子は、入力端子1に入力した電圧と、入力端子2に入力した電圧との差を出力する。時間測定回路57は、コンパレータ45の入力端子1とI/Fモジュール12とをつなぐ経路の途中と、通信距離算出回路58とに接続している。コンパレータ45の入力端子1とI/Fモジュール12とをつなぐ経路には、抵抗46を設けている。コンパレータ45の入力端子2とI/Fモジュール12とをつなぐ経路には、抵抗47を設けている。   The output terminal of the comparator 45 is connected to the time measurement circuit 57 of the FPGA 56. The output terminal outputs a difference between the voltage input to the input terminal 1 and the voltage input to the input terminal 2. The time measurement circuit 57 is connected to the communication distance calculation circuit 58 in the middle of the path connecting the input terminal 1 of the comparator 45 and the I / F module 12. A resistor 46 is provided in a path connecting the input terminal 1 of the comparator 45 and the I / F module 12. A resistor 47 is provided in a path connecting the input terminal 2 of the comparator 45 and the I / F module 12.

次に、移設検出システム100における数値制御装置1A〜1Cの起動制限について、図7〜図13のフローチャートを参照して説明する。本システムでは、移設検出器25が移設を検出した場合に加え、移設検出装置20に数値制御装置の固有IDが登録されていない場合に、数値制御装置1A〜1Cの起動を禁止する。以下の説明では、数値制御装置1AのCPU5が実行する処理と、移設検出装置20のCPU21が実行する処理とに分け、本システムの動作の流れに沿って説明する。   Next, the activation restriction of the numerical control apparatuses 1A to 1C in the relocation detection system 100 will be described with reference to the flowcharts of FIGS. In this system, in addition to the case where the relocation detector 25 detects relocation, when the unique ID of the numerical control device is not registered in the relocation detection device 20, activation of the numerical control devices 1A to 1C is prohibited. In the following description, the processing executed by the CPU 5 of the numerical control device 1A and the processing executed by the CPU 21 of the relocation detection device 20 will be described along the operation flow of this system.

<数値制御装置の設置時>
工作機械製造者は、数値制御装置1Aを搭載した工作機械を工場に設置する際に、数値制御装置1Aの固有IDを移設検出装置20に登録する作業を、工作機械15の操作盤で行う。工作機械製造者は、書き込み指令(パスワード)を入力して固有IDの登録を行う。書き込み指令は、工作機械製造者のみが知るものである。操作盤の入力操作は、数値制御装置20に入力される。本処理は、数値制御装置1Aの固有IDを送信する際に、ROM6に記憶した固有ID登録依頼プログラムが呼び出されて実行する。
<When installing a numerical controller>
When a machine tool manufacturer installs a machine tool equipped with the numerical control device 1A in a factory, the machine tool manufacturer performs an operation of registering the unique ID of the numerical control device 1A in the transfer detection device 20 on the operation panel of the machine tool 15. The machine tool manufacturer inputs a write command (password) and registers the unique ID. The write command is known only to the machine tool manufacturer. An input operation on the operation panel is input to the numerical controller 20. This process is executed by calling the unique ID registration request program stored in the ROM 6 when transmitting the unique ID of the numerical controller 1A.

数値制御装置1AのCPU5が実行する固有ID登録依頼処理について、図7のフローチャートを参照して説明する。工作機械製造者が操作盤で固有IDの登録操作を行うと、固有IDの書き込み指令と、フラッシュメモリ8(図2参照)に記憶した固有IDとが、移設検出装置20に送信される(S1)。書き込み指令と固有IDを受信した移設検出装置20は、その書き込み指令が正しければ、受信した固有IDを記憶し、OK信号を数値制御装置1Aに返信する。書き込み指令が正しくなければNG信号を返信する。   The unique ID registration request process executed by the CPU 5 of the numerical controller 1A will be described with reference to the flowchart of FIG. When the machine tool manufacturer performs a unique ID registration operation on the operation panel, the unique ID write command and the unique ID stored in the flash memory 8 (see FIG. 2) are transmitted to the relocation detection device 20 (S1). ). The relocation detection device 20 that has received the write command and the unique ID stores the received unique ID and returns an OK signal to the numerical control device 1A if the write command is correct. If the write command is not correct, an NG signal is returned.

次いで、移設検出装置20からOK信号を受信したか否かが判断される(S2)。OK信号を受信しない場合は(S2:NO)、NG信号を受信したか否かが判断される(S6)。NG信号を受信した場合は(S6:YES)、そのまま処理を終了する。OK信号又はNG信号を受信するまでは(S2:NO、S6:NO)、待機状態となる。   Next, it is determined whether an OK signal is received from the relocation detection device 20 (S2). When an OK signal is not received (S2: NO), it is determined whether an NG signal is received (S6). If an NG signal is received (S6: YES), the process is terminated as it is. Until an OK signal or an NG signal is received (S2: NO, S6: NO), a standby state is entered.

OK信号を受信した場合(S2:YES)、固有IDが移設検出装置20に正常に登録されている。次に、数値制御装置1Aと移設検出装置20との間の通信距離を測定するために、図6に示す通信距離測定回路11において、時間測定回路57から距離測定信号が移設検出装置20に向けて送信される(S3)。距離測定信号の送信と同時に、時間測定が開始される。   When the OK signal is received (S2: YES), the unique ID is normally registered in the relocation detection device 20. Next, in order to measure the communication distance between the numerical controller 1 </ b> A and the relocation detection device 20, in the communication distance measurement circuit 11 shown in FIG. 6, a distance measurement signal is sent from the time measurement circuit 57 to the relocation detection device 20. Is transmitted (S3). Simultaneously with the transmission of the distance measurement signal, time measurement is started.

図6に示すように、時間測定回路57から距離測定信号が送信されると、それと同時にコンパレータ45の入力端子1に所定の電圧信号が入力される。距離測定信号は、I/Fモジュール12、移設検出装置20の移設検出I/F33を介して信号返信回路29に到達する。信号返信回路29は距離測定信号を数値制御装置1Aに返信する。   As shown in FIG. 6, when a distance measurement signal is transmitted from the time measurement circuit 57, a predetermined voltage signal is input to the input terminal 1 of the comparator 45 at the same time. The distance measurement signal reaches the signal return circuit 29 via the I / F module 12 and the relocation detection I / F 33 of the relocation detection device 20. The signal return circuit 29 returns a distance measurement signal to the numerical controller 1A.

CPU5は、距離測定信号を受信したか否かを判断する(S4)。図14に示すように、距離測定信号が送信されて返信されるまでのコンパレータ45の出力は、入力端子1で入力された電圧となる。距離測定信号を受信するまでは(S4:NO)、S4に戻って待機状態となる。距離測定信号は、数値制御装置20のI/Fモジュール12を介してコンパレータ45の入力端子2に入力される。入力端子2に距離測定信号が入力されると、コンパレータ45は、入力端子1に入力した電圧から入力端子2に入力した電圧を差し引く。コンパレータ45の出力はゼロとなる。コンパレータ45の出力が所定値であった時間を、時間測定用クロックでカウントする。それ故、CPU21は、距離測定信号の伝播時間を算出できる。   The CPU 5 determines whether or not a distance measurement signal has been received (S4). As shown in FIG. 14, the output of the comparator 45 until the distance measurement signal is transmitted and returned is the voltage input at the input terminal 1. Until the distance measurement signal is received (S4: NO), the process returns to S4 and enters a standby state. The distance measurement signal is input to the input terminal 2 of the comparator 45 via the I / F module 12 of the numerical controller 20. When the distance measurement signal is input to the input terminal 2, the comparator 45 subtracts the voltage input to the input terminal 2 from the voltage input to the input terminal 1. The output of the comparator 45 becomes zero. The time when the output of the comparator 45 is a predetermined value is counted by the time measurement clock. Therefore, the CPU 21 can calculate the propagation time of the distance measurement signal.

次いで、図7のフローに戻り、距離測定信号を受信したので(S4:YES)、算出された伝播時間に基づき、数値制御装置1Aと移設検出装置20との通信距離が算出される。この算出された通信距離が基準通信距離としてフラッシュメモリ8(図2参照)に記憶される(S5)。例えば、配線11A〜11Cを同軸ケーブルとし、伝播速度が180(mm/ns)であった場合、通信距離は以下の式で算出される。
・通信距離L=180(mm)×〔伝播時間(ns)/2〕
伝播時間が1000nsであった場合、同軸ケーブルの長さは、L=180×(1000/2)=90(m)となる。この値が基準通信距離となる。移設検出システム100は、数値制御装置1Aの設置時の配線の長さを基準とすることで、配線の長さが変わった場合に異常であると判断できる。
Next, returning to the flow of FIG. 7, since the distance measurement signal is received (S4: YES), the communication distance between the numerical control device 1A and the relocation detection device 20 is calculated based on the calculated propagation time. The calculated communication distance is stored in the flash memory 8 (see FIG. 2) as a reference communication distance (S5). For example, when the wirings 11A to 11C are coaxial cables and the propagation speed is 180 (mm / ns), the communication distance is calculated by the following equation.
・ Communication distance L = 180 (mm) × [propagation time (ns) / 2]
When the propagation time is 1000 ns, the length of the coaxial cable is L = 180 × (1000/2) = 90 (m). This value is the reference communication distance. The relocation detection system 100 can determine that it is abnormal when the length of the wiring changes by using the length of the wiring when the numerical control apparatus 1A is installed as a reference.

次に、移設検出装置20のCPU21が実行する固有ID登録処理について、図8のフローチャートを参照して説明する。本処理は、移設検出装置20を設置して電源を入れたときに、ROM22に記憶した固有ID登録プログラムが呼び出されて実行する。まず、数値制御装置1Aから書き込み指令と固有IDとを受信したか否かが判断される(S11)。書き込み指令と固有IDとを受信するまでは(S11:NO)、待機状態となる。書き込み指令と固有IDとを受信した場合(S11:YES)、受信した書き込み指令が正しいか否かが判断される(S12)。書き込み指令が間違っている場合(S12:NO)、受信した固有IDを記憶せず、数値制御装置1AにNG信号が送信され(S17)、処理を終了する。それ故、書き込み指令を知らない他の人物は、固有IDの登録を行うことができない。   Next, the unique ID registration process executed by the CPU 21 of the relocation detection device 20 will be described with reference to the flowchart of FIG. This process is executed by calling the unique ID registration program stored in the ROM 22 when the relocation detection device 20 is installed and the power is turned on. First, it is determined whether or not a write command and a unique ID are received from the numerical controller 1A (S11). Until a write command and a unique ID are received (S11: NO), a standby state is entered. When the write command and the unique ID are received (S11: YES), it is determined whether or not the received write command is correct (S12). If the write command is incorrect (S12: NO), the received unique ID is not stored, and an NG signal is transmitted to the numerical controller 1A (S17), and the process is terminated. Therefore, another person who does not know the writing command cannot register the unique ID.

書き込み指令が正しい場合(S12:YES)、フラッシュメモリ8の固有ID記憶エリア241(図4,図5参照)に固有IDが記憶される(S13)。このとき、フラッシュメモリ24の移設未検出フラグ記憶エリア243に「1」が記憶される。書き込み指令と固有IDは、移設検出I/F33の接続端子を経由して受信される。数値制御装置1Aの接続する端子に割り当てられたアドレスに対して、受信した固有IDが記憶される。   If the write command is correct (S12: YES), the unique ID is stored in the unique ID storage area 241 (see FIGS. 4 and 5) of the flash memory 8 (S13). At this time, “1” is stored in the relocation non-detection flag storage area 243 of the flash memory 24. The write command and the unique ID are received via the connection terminal of the relocation detection I / F 33. The received unique ID is stored for the address assigned to the terminal to which the numerical controller 1A is connected.

次いで、数値制御装置1Aから距離測定信号を受信したか否かが判断される(S15)。距離測定信号を受信するまでは(S15:NO)、S15に戻って待機状態となる。距離測定信号を受信した場合(S15:YES)、上記したように、信号返信回路29から距離測定信号が数値制御装置1Aに向けて返信される(S16)。こうして、移設検出装置20の固有ID登録処理を終了する。   Next, it is determined whether or not a distance measurement signal is received from the numerical controller 1A (S15). Until the distance measurement signal is received (S15: NO), the process returns to S15 and enters a standby state. When the distance measurement signal is received (S15: YES), as described above, the distance measurement signal is returned from the signal return circuit 29 to the numerical controller 1A (S16). Thus, the unique ID registration process of the relocation detection device 20 is completed.

<移設検出器25による移設検出>
数値制御装置1A〜1Cを不正に移設しようとする場合、数値制御装置1A〜1Cは配線11A〜11Cでつながれているので、移設検出装置20を移設することが想定される。そのような移設を防止するため、移設検出器25による移設検出が実行される。
<Relocation detection by the relocation detector 25>
When attempting to relocate the numerical control devices 1A to 1C, it is assumed that the relocation detection device 20 is relocated because the numerical control devices 1A to 1C are connected by the wirings 11A to 11C. In order to prevent such relocation, relocation detection by the relocation detector 25 is executed.

移設検出装置20のCPU21による移設検出処理について、図9のフローチャートを参照して説明する。本処理は、電源がオンされROM22に記憶した移設検出プログラムが呼び出されると実行する。まず、フラッシュメモリ24の移設未検出フラグ記憶エリア243(図4参照)に移設未検出フラグ=「1」が記憶される(S18)。次いで、移設検出器25によって移設が検出されたか否かが判断される(S19)。移設が検出されるまでは(S19:NO)、S19に戻って待機状態となる。移設が検出された場合(S19:YES)、移設未検出フラグ記憶エリア243(図4参照)に移設未検出フラグ=「0」が記憶される(S20)。次いで、フラッシュメモリ24の固有ID記憶エリア241に記憶されていた固有IDが全て消去され(S21)、処理を終了する。   The relocation detection process by the CPU 21 of the relocation detection device 20 will be described with reference to the flowchart of FIG. This process is executed when the power supply is turned on and the relocation detection program stored in the ROM 22 is called. First, the relocation non-detection flag = “1” is stored in the relocation non-detection flag storage area 243 (see FIG. 4) of the flash memory 24 (S18). Next, it is determined whether or not relocation is detected by the relocation detector 25 (S19). Until the relocation is detected (S19: NO), the process returns to S19 and enters a standby state. When relocation is detected (S19: YES), relocation non-detection flag = “0” is stored in relocation non-detection flag storage area 243 (see FIG. 4) (S20). Next, all the unique IDs stored in the unique ID storage area 241 of the flash memory 24 are deleted (S21), and the process ends.

後述するが、数値制御装置1A〜1Cは、自身が直結する移設検出装置20に自身の固有IDが記憶されていない場合は起動できない。よって、移設検出装置20が移設された場合は、数値制御装置1A〜1Cの起動を禁止できる。また、移設検出装置20が移設されたことは、フラッシュメモリ24の移設履歴記憶エリア242(図4参照)に記憶される。   As will be described later, the numerical control devices 1A to 1C cannot be activated if their own unique ID is not stored in the relocation detection device 20 to which they are directly connected. Therefore, when the relocation detection device 20 is relocated, the activation of the numerical control devices 1A to 1C can be prohibited. The fact that the relocation detection device 20 has been relocated is stored in the relocation history storage area 242 (see FIG. 4) of the flash memory 24.

<数値制御装置の電源オン時:数値制御装置を起動させる場合>
工場の作業者は、数値制御装置を起動させるために、電源をオンする。数値制御装置の電源は、工作機械の操作盤で行う。数値制御装置では、電源がオンされたことに伴い起動するか否かの判定を行う。
<When the numerical controller is turned on: When starting the numerical controller>
The factory worker turns on the power to activate the numerical controller. The numerical controller is powered by the machine tool control panel. In the numerical control device, it is determined whether or not to start when the power is turned on.

数値制御装置1AのCPU5が実行する起動判定処理について、図10のフローチャートを参照して説明する。本処理は、電源がオンすると、ROM6に記憶した起動判定プログラムが呼び出されて実行する。まず、固有IDの送付依頼信号が、移設検出装置20に送信される(S24)。自身の固有IDが移設検出装置20に記憶されているかを確認するためである。送付依頼信号は、移設検出装置20に登録されている全ての固有IDについて送信を依頼する指令である。移設検出装置20では、送付依頼信号を受信すると、フラッシュメモリ24の固有ID記憶エリア241(図5参照)に記憶された固有IDを全て数値制御装置1Aに送信する。固有IDが記憶されていない場合はエラー信号を送信する。   The activation determination process executed by the CPU 5 of the numerical controller 1A will be described with reference to the flowchart of FIG. This process is executed when the activation determination program stored in the ROM 6 is called when the power is turned on. First, a unique ID sending request signal is transmitted to the relocation detection device 20 (S24). This is for confirming whether its own unique ID is stored in the relocation detection device 20. The transmission request signal is a command for requesting transmission for all unique IDs registered in the relocation detection device 20. When the relocation detection device 20 receives the sending request signal, it transmits all the unique IDs stored in the unique ID storage area 241 (see FIG. 5) of the flash memory 24 to the numerical control device 1A. If the unique ID is not stored, an error signal is transmitted.

送付依頼信号を送信してからの経過時間がタイムアウトか否かが判断される(S25)。タイムアウトの場合(S25:YES)、移設検出装置20、若しくは配線に何らかの異常があるので起動禁止とされ(S38)、処理を終了する。   It is determined whether the time elapsed since the transmission request signal was transmitted is timed out (S25). In the case of timeout (S25: YES), since there is some abnormality in the relocation detection device 20 or the wiring, the activation is prohibited (S38), and the process is terminated.

一方、まだタイムアウトでない場合(S25:NO)、エラー信号を受信したか、又は固有IDを受信したかが判断される(S26、S27)。エラー信号、又は固有IDを受信するまでは(S26:NO、S27:NO)、S25に戻って、処理が繰り返される。エラー信号を受信した場合(S26:YES)、移設検出装置20には固有IDが記憶されていない。この場合、移設検出装置20に対して数値制御装置1Aが不正に接続されている可能性があるので、起動禁止とされ(S38)、処理を終了する。   On the other hand, if it has not yet timed out (S25: NO), it is determined whether an error signal has been received or a unique ID has been received (S26, S27). Until an error signal or unique ID is received (S26: NO, S27: NO), the process returns to S25 and the process is repeated. When the error signal is received (S26: YES), the relocation detection device 20 does not store the unique ID. In this case, since there is a possibility that the numerical control device 1A is illegally connected to the relocation detection device 20, the activation is prohibited (S38), and the process is terminated.

タイムアウトになる前に、固有IDを受信した場合(S27:YES)、受信した固有IDの中に、自身の固有IDがあるか否かが判断される(S28)。自身の固有IDがない場合(S28:NO)、その数値制御装置1Aは、移設検出装置20に対して不正に接続されている可能性がある。よって、起動禁止とされ(S38)、処理を終了する。   When the unique ID is received before the time-out (S27: YES), it is determined whether or not the received unique ID includes its own unique ID (S28). When there is no own unique ID (S28: NO), there is a possibility that the numerical control device 1A is illegally connected to the relocation detection device 20. Therefore, the activation is prohibited (S38), and the process is terminated.

一方、受信した固有IDの中に自身の固有IDがあった場合(S28:YES)、通信距離を測定するために、距離測定信号が移設検出装置20に向けて送信される(S29)。距離測定信号の送信と同時に、時間測定が開始される(S30)。上記したように、移設検出装置20では、受信した距離測定信号を数値制御装置1Aに返信する。これに対して、移設検出装置20から距離測定信号を受信したか否かが判断される(S31)。距離測定信号を受信するまでは(S31:NO)、タイムアウトか否かが判断される(S37)。タイムアウトでない場合は(S37:NO)、S31に戻って、距離測定信号が受信されるまで処理が待機状態となる。タイムアウトの場合(S37:YES)、移設検出装置20から距離測定信号が返信されないので、配線11Aが不正に延長されているか、外されているか、移設検出装置20に何らかの異常がある等の理由が考えられる。この場合、数値制御装置1Aは起動禁止とされ(S38)、処理を終了する。   On the other hand, if the received unique ID is its own unique ID (S28: YES), a distance measurement signal is transmitted toward the relocation detection device 20 in order to measure the communication distance (S29). Simultaneously with the transmission of the distance measurement signal, time measurement is started (S30). As described above, the relocation detection device 20 returns the received distance measurement signal to the numerical control device 1A. On the other hand, it is determined whether or not a distance measurement signal is received from the relocation detection device 20 (S31). Until a distance measurement signal is received (S31: NO), it is determined whether or not a timeout has occurred (S37). If it is not time-out (S37: NO), the process returns to S31, and the process is on standby until a distance measurement signal is received. In the case of timeout (S37: YES), since the distance measurement signal is not returned from the relocation detection device 20, there is a reason that the wiring 11A is improperly extended or disconnected, or that there is some abnormality in the relocation detection device 20. Conceivable. In this case, the numerical control apparatus 1A is prohibited from starting (S38), and the process ends.

これに対し、移設検出装置20から送信された距離測定信号が受信された場合(S31:YES)、時間測定が完了し(S32)、距離測定信号の伝播時間が算出される。算出された伝播時間に基づき、通信距離が算出される(S33)。算出された通信距離と、フラッシュメモリ8に記憶された基準通信距離とが比較される(S34)。前記比較結果で、通信距離が正常であるか否かが判断される(S35)。算出された通信距離が、設置時に測定した基準通信距離と同一であれば、配線11Aで接続されている。通信距離は正常であるので(S35:YES)、数値制御装置1Aを起動させるために正常起動モードが設定され(S36)、処理を終了する。数値制御装置1Aの起動は、正常起動モードの場合にのみ許可される。   On the other hand, when the distance measurement signal transmitted from the relocation detection device 20 is received (S31: YES), the time measurement is completed (S32), and the propagation time of the distance measurement signal is calculated. Based on the calculated propagation time, a communication distance is calculated (S33). The calculated communication distance is compared with the reference communication distance stored in the flash memory 8 (S34). It is determined from the comparison result whether the communication distance is normal (S35). If the calculated communication distance is the same as the reference communication distance measured at the time of installation, the wires 11A are connected. Since the communication distance is normal (S35: YES), the normal activation mode is set to activate the numerical control apparatus 1A (S36), and the process is terminated. Activation of the numerical control device 1A is permitted only in the normal activation mode.

一方、算出された通信距離が基準通信距離と同一でない場合(S35:NO)、長さが異なる別の配線が付け替えられたか、別の通信網で通信している可能性がある。このような場合、数値制御装置1Aが移設されている可能性があるので、数値制御装置1Aは起動禁止とされ(S38)、処理を終了する。よって、不正に移設された可能性がある数値制御装置の起動を禁止できる。   On the other hand, when the calculated communication distance is not the same as the reference communication distance (S35: NO), there is a possibility that another wiring having a different length has been replaced or that communication is being performed via another communication network. In such a case, there is a possibility that the numerical control apparatus 1A has been relocated, so that the numerical control apparatus 1A is prohibited from starting (S38), and the process ends. Accordingly, it is possible to prohibit activation of a numerical control apparatus that may have been moved illegally.

次に、移設検出装置20のCPU21が実行する固有ID送信処理について、図11のフローチャートを参照して説明する。本処理は、移設検出装置20の電源がオンされたときに、ROM22に記憶した固有ID送信プログラムが呼び出されて実行する。まず、フラッシュメモリ24の移設未検出フラグ記憶エリア243(図4参照)に「0」が記憶されているか否かが判断される(S40)。「0」が記憶されている場合(S40:YES)、続いて、数値制御装置から固有IDの送付依頼信号を受信したか否かが判断される(S47)。送付依頼信号を受信しない場合(S47:NO)、待機状態となる。送付依頼信号を受信した場合(S47:YES)、移設検出装置20の振動が検出されているので、移設検出装置20が不正に移設されている可能性がある。この場合、数値制御装置に向けてエラー信号が送信される(S46)。   Next, the unique ID transmission process executed by the CPU 21 of the relocation detection device 20 will be described with reference to the flowchart of FIG. This process is executed when the unique ID transmission program stored in the ROM 22 is called when the power of the relocation detection apparatus 20 is turned on. First, it is determined whether or not “0” is stored in the relocation non-detection flag storage area 243 (see FIG. 4) of the flash memory 24 (S40). If “0” is stored (S40: YES), it is then determined whether or not a unique ID sending request signal has been received from the numerical controller (S47). When the sending request signal is not received (S47: NO), a standby state is entered. When the transmission request signal is received (S47: YES), since the vibration of the relocation detection device 20 is detected, there is a possibility that the relocation detection device 20 has been relocated illegally. In this case, an error signal is transmitted to the numerical controller (S46).

移設未検出フラグ記憶エリア243(図4参照)に「1」が記憶されている場合(S40:NO)、少なくとも移設は検出されていない。よって、数値制御装置から固有IDの送付依頼信号を受信したか否かが判断される(S41)。送付依頼信号を受信しない場合(S41:NO)、そのまま処理を終了する。   When “1” is stored in the relocation non-detection flag storage area 243 (see FIG. 4) (S40: NO), at least relocation has not been detected. Therefore, it is determined whether or not a unique ID sending request signal has been received from the numerical controller (S41). When the sending request signal is not received (S41: NO), the process is finished as it is.

数値制御装置から固有IDの送付依頼信号を受信した場合(S41:YES)、フラッシュメモリ24の固有ID記憶エリア241(図5参照)に固有IDが記憶されているか否かが判断される(S42)。固有IDが全く記憶されていない場合(S42:NO)、数値制御装置にエラー信号が送信され(S46)、処理を終了する。   When the unique ID sending request signal is received from the numerical controller (S41: YES), it is determined whether or not the unique ID is stored in the unique ID storage area 241 (see FIG. 5) of the flash memory 24 (S42). ). If no unique ID is stored (S42: NO), an error signal is transmitted to the numerical controller (S46), and the process is terminated.

固有ID記憶エリア241に固有IDが記憶されている場合(S42:YES)、記憶されている全ての固有IDが数値制御装置に向けて送信される(S43)。上記したように、数値制御装置1A〜1Cでは、受信した固有IDの中に自身の固有IDがあるか否かを確認する。自身の固有IDがあった場合は、通信距離が正常であるかを確認するために、上記したように、距離測定信号を移設検出装置20に向けて送信する。   When the unique ID is stored in the unique ID storage area 241 (S42: YES), all the stored unique IDs are transmitted to the numerical controller (S43). As described above, the numerical control devices 1A to 1C confirm whether or not the received unique ID has its own unique ID. If there is its own unique ID, a distance measurement signal is transmitted to the relocation detection apparatus 20 as described above in order to confirm whether the communication distance is normal.

次いで、数値制御装置から距離測定用信号を受信したか否かが判断される(S44)。距離測定信号を受信しなかった場合は(S44:NO)、待機状態となる。距離測定信号を受信した場合(S44:YES)、信号返信回路29から距離測定信号が数値制御装置に向けて返信され(S45)、処理を終了する。   Next, it is determined whether or not a distance measurement signal has been received from the numerical controller (S44). If no distance measurement signal has been received (S44: NO), a standby state is entered. When the distance measurement signal is received (S44: YES), the distance measurement signal is returned from the signal return circuit 29 to the numerical control device (S45), and the process ends.

次に、移設検出装置20のCPU21による電源切替処理について、図3と、図12のフローチャートとを参照して説明する。本処理は、移設検出装置20の電源をオンすると、ROM22に記憶した電源切替プログラムが呼び出されて実行する。まず、AC/DC変換機32の出力電圧が正常であるか否かが判断される(S51)。AC/DC変換機32は、交流電源35から供給される交流を直流に変化して出力する。AC/DC変換機32の出力電圧は、異常電圧検出回路26によって検出される。AC/DC変換機32の出力電圧が正常である場合(S51:YES)、スイッチ41がオン、スイッチ42がオフ、スイッチ43がオフされる(S52)。この場合、交流電源35から移設検出装置20に電源が供給される。次いで、S51に戻って、AC/DC変換機32の出力電圧が引き続き監視される。   Next, power supply switching processing by the CPU 21 of the relocation detection device 20 will be described with reference to FIG. 3 and a flowchart of FIG. This process is executed when the power supply switching program stored in the ROM 22 is called up when the relocation detection apparatus 20 is powered on. First, it is determined whether or not the output voltage of the AC / DC converter 32 is normal (S51). The AC / DC converter 32 changes the alternating current supplied from the alternating current power supply 35 into a direct current and outputs the direct current. The output voltage of the AC / DC converter 32 is detected by the abnormal voltage detection circuit 26. When the output voltage of the AC / DC converter 32 is normal (S51: YES), the switch 41 is turned on, the switch 42 is turned off, and the switch 43 is turned off (S52). In this case, power is supplied from the AC power supply 35 to the relocation detection device 20. Next, returning to S51, the output voltage of the AC / DC converter 32 is continuously monitored.

交流電源35が壊れた場合、AC/DC変換機32の出力電圧が変化する。このような電圧異常があった場合(S51:NO)、続いて、AC/DC変換機10の出力電圧は正常であるか否かが判断される(S53)。AC/DC変換機10は、数値制御装置1Aの交流電源16から供給される交流を直流に変化して出力する。AC/DC変換機10の出力電圧は、異常電圧検出回路26によって検出される。AC/DC変換機10の出力電圧が正常である場合(S53:YES)、スイッチ41がオフ、スイッチ42がオン、スイッチ43がオフされる(S54)。この場合、交流電源16、AC/DC変換機10、I/Fモジュール12、移設検出I/F33を介して、移設検出装置20に電源が供給される。これにより、交流電源35が利用できない場合でも、数値制御装置の交流電源16を利用でき、移設検出装置20を稼動させることができる。そして、数値制御装置1Aに対して異常信号が送信され(S55)、処理を終了する。異常信号を送信された数値制御装置1Aでは、操作盤の画面に異常があったことが表示される。作業者は移設検出装置20の交流電源35の異常を認識できるので、迅速な対応が可能である。   When the AC power supply 35 is broken, the output voltage of the AC / DC converter 32 changes. If there is such a voltage abnormality (S51: NO), it is subsequently determined whether or not the output voltage of the AC / DC converter 10 is normal (S53). The AC / DC converter 10 changes the alternating current supplied from the alternating current power supply 16 of the numerical control apparatus 1A into a direct current and outputs the direct current. The output voltage of the AC / DC converter 10 is detected by the abnormal voltage detection circuit 26. When the output voltage of the AC / DC converter 10 is normal (S53: YES), the switch 41 is turned off, the switch 42 is turned on, and the switch 43 is turned off (S54). In this case, power is supplied to the relocation detection device 20 via the AC power supply 16, the AC / DC converter 10, the I / F module 12, and the relocation detection I / F 33. Thereby, even when the AC power supply 35 cannot be used, the AC power supply 16 of the numerical control device can be used and the relocation detection device 20 can be operated. Then, an abnormal signal is transmitted to the numerical control apparatus 1A (S55), and the process ends. In the numerical control apparatus 1A to which the abnormality signal is transmitted, it is displayed that there is an abnormality on the screen of the operation panel. Since the worker can recognize the abnormality of the AC power supply 35 of the relocation detection device 20, a quick response is possible.

これに対し、例えば、夜間などで数値制御装置1Aの電源がオフされたような場合、交流電源16から電源を供給できない。この場合、AC/DC変換機10の出力電圧が異常であるとして(S53:NO)、スイッチ41がオフ、スイッチ42がオフ、スイッチ43がオンされる(S56)。バッテリ28は移設検出装置20に電源を供給する。これにより、交流電源16,35が利用できない場合でも、バッテリ28を利用できるので、移設検出装置20を稼動させることができる。そして、数値制御装置に対して異常信号が送信され(S55)、処理を終了する。   On the other hand, for example, when the power source of the numerical control device 1A is turned off at night, power cannot be supplied from the AC power source 16. In this case, assuming that the output voltage of the AC / DC converter 10 is abnormal (S53: NO), the switch 41 is turned off, the switch 42 is turned off, and the switch 43 is turned on (S56). The battery 28 supplies power to the relocation detection device 20. Thereby, even when AC power supplies 16 and 35 cannot be used, the battery 28 can be used, so that the relocation detection device 20 can be operated. And an abnormal signal is transmitted with respect to a numerical control apparatus (S55), and a process is complete | finished.

移設検出装置20では、通常、交流電源35からの電源を使用するが、交流電源35が万が一壊れてしまった場合は電源を供給できない。このような場合に、数値制御装置1Aが使用する交流電源16に切り替えることができる。これにより、交流電源35が壊れて使用できない状態でも、上記したように、数値制御装置1A〜1Cに対して起動制限をかけるための処理を実行できる。さらに、数値制御装置1A〜1Cの交流電源16が使用できない状態でも、バッテリ28から供給される電源を使用できるので、移設検出装置20による処理を確実に実行できる。   The relocation detection device 20 normally uses power from the AC power source 35, but cannot supply power if the AC power source 35 is broken. In such a case, it is possible to switch to the AC power source 16 used by the numerical controller 1A. Thereby, even in a state where the AC power supply 35 is broken and cannot be used, as described above, it is possible to execute a process for restricting the activation of the numerical control devices 1A to 1C. Furthermore, since the power supplied from the battery 28 can be used even when the AC power supply 16 of the numerical control devices 1A to 1C cannot be used, the process by the relocation detection device 20 can be executed reliably.

次に、移設検出装置20のCPU21によるバッテリ切れ検出処理について、図13のフローチャートを参照して説明する。バッテリ切れ検出処理は、図3に示すスイッチ43がオンされると、ROM22に記憶したバッテリ切れ検出プログラムが呼び出されて実行する。まず、バッテリ28の電圧が所定値未満であって、バッテリ切れであるか否かが判断される(S61)。バッテリ切れでない間は(S61:NO)、S61に戻って待機状態となる。バッテリ切れである場合(S61:YES)、フラッシュメモリ24の固有ID記憶エリア241(図5参照)に記憶されている固有IDが全て削除され(S62)、処理を終了する。このように、固有IDが全て削除されてしまうので、バッテリ28が切れてしまって、移設検出装置20が動作できない場合は、数値制御装置1A〜1Cの起動を禁止できる。   Next, the battery exhaustion detection process by the CPU 21 of the relocation detection device 20 will be described with reference to the flowchart of FIG. When the switch 43 shown in FIG. 3 is turned on, the battery exhaustion detection process is executed by calling up the battery exhaustion detection program stored in the ROM 22. First, it is determined whether the voltage of the battery 28 is less than a predetermined value and the battery is dead (S61). While the battery is not exhausted (S61: NO), the process returns to S61 and enters a standby state. If the battery is dead (S61: YES), all the unique IDs stored in the unique ID storage area 241 (see FIG. 5) of the flash memory 24 are deleted (S62), and the process is terminated. As described above, since all the unique IDs are deleted, the activation of the numerical control devices 1A to 1C can be prohibited when the battery 28 has run out and the relocation detection device 20 cannot operate.

以上説明したように、本実施形態である移設検出システム100では、移設された可能性の高い状況の場合に数値制御装置の起動を禁止することで、数値制御装置が不正に移設されて他地域で使用されることを確実に防止できる。本システムでは、1つの移設検出装置20に対して、複数の数値制御装置1A〜1Cを配線11Aから11Cで接続する。1つの移設検出装置20で、複数の数値制御装置1A〜1Cを監視できる。数値制御装置1A〜1Cは、配線11A〜11Cが届く範囲内であれば配置変更が可能である。移設検出装置20には、工場に設置する際に、数値制御装置1A〜1Cの固有IDを記憶しておく。数値制御装置1A〜1Cの起動時に、自身の固有IDが移設検出装置20に記憶しているか否かを判断する。自身の固有IDが無ければ、不正に接続した数値制御装置である可能性が高いので、その数値制御装置の起動を禁止する。   As described above, in the relocation detection system 100 according to the present embodiment, the numerical control device is illegally relocated by prohibiting the start of the numerical control device in a situation where there is a high possibility that it has been relocated. Can be reliably prevented. In this system, a plurality of numerical control devices 1A to 1C are connected to one transfer detection device 20 by wirings 11A to 11C. A single relocation detection device 20 can monitor a plurality of numerical control devices 1A to 1C. The numerical control devices 1 </ b> A to 1 </ b> C can be rearranged as long as the wirings 11 </ b> A to 11 </ b> C are within reach. The relocation detection device 20 stores the unique IDs of the numerical control devices 1A to 1C when installed in a factory. When the numerical control devices 1A to 1C are activated, it is determined whether or not their own unique ID is stored in the relocation detection device 20. If there is no own unique ID, there is a high possibility that the numerical control device is illegally connected.

移設検出装置20が不正に移設されるような場合、その振動を検出することで、移設検出装置20の移設を検出する。移設を検出した場合は、数値制御装置にエラー信号を送信することで、数値制御装置の起動を禁止する。自身の固有IDが移設検出装置20に記憶されている場合でも、別の配線に付け替えたり、別の通信網を使って通信している可能性がある。そこで、移設検出装置20と数値制御装置1A〜1Cの通信距離を測定し、基準通信距離と比較を行う。基準通信距離と同一でない場合は、異常であるので、数値制御装置の起動を禁止する。このように移設された可能性の高いあらゆる状況を防止できると共に、一定の範囲内であれば数値制御装置の配置変更ができるので、安全性が高い上に使い勝手のよい移設検出システム100を提供できる。   When the relocation detection device 20 is relocated illegally, the relocation of the relocation detection device 20 is detected by detecting the vibration. When the relocation is detected, an error signal is transmitted to the numerical control device, thereby prohibiting activation of the numerical control device. Even when its own unique ID is stored in the relocation detection device 20, there is a possibility that it is replaced with another wiring or communicating using another communication network. Therefore, the communication distance between the relocation detection device 20 and the numerical control devices 1A to 1C is measured and compared with the reference communication distance. If it is not the same as the reference communication distance, it is abnormal and the activation of the numerical control device is prohibited. In this way, it is possible to prevent any situation that is likely to be relocated, and to change the arrangement of the numerical control device within a certain range, so that it is possible to provide a relocation detection system 100 that is highly safe and easy to use. .

以上説明において、数値制御装置1A〜1Cが本発明の「機械」に相当し、移設検出装置20が本発明の「移設検出手段」に相当し、配線11A〜11Cが本発明の「通信手段」に相当する。フラッシュメモリ8が本発明の「機械記憶手段」に相当し、フラッシュメモリ24の固有ID記憶エリア241が本発明の「識別情報記憶手段」に相当し、移設検出I/F33が本発明の「入出力部」に相当し、AC/DC変換機32が本発明の「変換機」に相当し、バッテリ28が本発明の「補助電池」に相当し、異常電圧検出回路26が本発明の「異常検出手段」に相当する。   In the above description, the numerical control devices 1A to 1C correspond to the “machine” of the present invention, the relocation detection device 20 corresponds to the “relocation detection means” of the present invention, and the wires 11A to 11C correspond to the “communication means” of the present invention. It corresponds to. The flash memory 8 corresponds to the “machine storage unit” of the present invention, the unique ID storage area 241 of the flash memory 24 corresponds to the “identification information storage unit” of the present invention, and the relocation detection I / F 33 corresponds to the “input” of the present invention. The AC / DC converter 32 corresponds to the “converter” of the present invention, the battery 28 corresponds to the “auxiliary battery” of the present invention, and the abnormal voltage detection circuit 26 corresponds to the “abnormality” of the present invention. It corresponds to “detection means”.

また、図10のS28の処理を実行するCPU5及び図11のS42の処理を実行するCPU21が本発明の「識別情報一致判断手段」に相当する。図10のS29〜S33の処理を実行するCPU5が本発明の「応答時間検出手段」に相当し、S35の処理を実行するCPU5が本発明の「応答時間判断手段」に相当し、S36の処理を実行するCPU5が本発明の「稼動許可手段」に相当し、S38の処理を実行するCPU5が本発明の「稼動禁止手段」に相当する。   Further, the CPU 5 that executes the process of S28 in FIG. 10 and the CPU 21 that executes the process of S42 in FIG. 11 correspond to “identification information coincidence determining means” of the present invention. The CPU 5 that executes the processing of S29 to S33 in FIG. 10 corresponds to the “response time detection means” of the present invention, and the CPU 5 that executes the processing of S35 corresponds to the “response time determination means” of the present invention, and the processing of S36 The CPU 5 that executes the process corresponds to the “operation permission unit” of the present invention, and the CPU 5 that executes the process of S38 corresponds to the “operation prohibition unit” of the present invention.

また、図12のS56の処理を実行するCPU21が本発明の「切替え手段」に相当し、S54の処理を実行するCPU21が本発明の「電源供給手段」に相当し、S55の処理を実行するCPU21が本発明の「報知手段」に相当する。図13のS61の処理を実行するCPU21が本発明の「補助電池供給検出手段」に相当する。   The CPU 21 that executes the process of S56 in FIG. 12 corresponds to the “switching means” of the present invention, and the CPU 21 that executes the process of S54 corresponds to the “power supply means” of the present invention, and executes the process of S55. The CPU 21 corresponds to “notification means” of the present invention. The CPU 21 that executes the process of S61 in FIG. 13 corresponds to the “auxiliary battery supply detecting means” of the present invention.

なお、本発明の移設検出装置、及び当該移設検出装置を備えた工作機械は、上記実施形態に限らず、各種の変形が可能なことはいうまでもない。例えば、上記実施形態において、図3に示すように、移設検出装置20における電源の供給は、3本の電源供給ラインにスイッチ41〜43を設け、それらスイッチ41〜43の開閉を制御することで、電源の供給源を切り替えている。この他に、例えば、図15に示すように、スイッチ41の代わりにダイオード81を設け、スイッチ42の代わりにダイオード82を設け、スイッチ43の代わりにダイオード80を設けてもよい。   In addition, it cannot be overemphasized that the transfer detection apparatus of this invention and the machine tool provided with the said transfer detection apparatus are not restricted to the said embodiment but various deformation | transformation is possible. For example, in the above embodiment, as shown in FIG. 3, the power supply in the relocation detection device 20 is provided by providing switches 41 to 43 on three power supply lines and controlling the opening and closing of the switches 41 to 43. The power supply source is switched. In addition, for example, as shown in FIG. 15, a diode 81 may be provided instead of the switch 41, a diode 82 may be provided instead of the switch 42, and a diode 80 may be provided instead of the switch 43.

この場合、交流電源35の電圧を最も高くして、交流電源16、バッテリ28の順に低くする。電圧が最も高い交流電源35から電流が流れるので、正常時は、交流電源35から流れる電流を利用できる。そして、交流電源35から電流が流れなくなった場合、次に電圧の高い交流電源16から移設検出装置220に向けて電流が流れる。さらに、交流電源16から供給される電流も停止した場合は、バッテリ28から流れる電流を利用できる。つまり、上記実施形態と同様の効果を得ることができる。   In this case, the voltage of the AC power source 35 is set highest, and the AC power source 16 and the battery 28 are decreased in this order. Since current flows from the AC power supply 35 having the highest voltage, the current flowing from the AC power supply 35 can be used in a normal state. When no current flows from the AC power supply 35, a current flows from the AC power supply 16 having the next highest voltage toward the transfer detection device 220. Furthermore, when the current supplied from the AC power supply 16 is also stopped, the current flowing from the battery 28 can be used. That is, the same effect as the above embodiment can be obtained.

また、上記実施形態では、異常電圧検出回路26によって、AC/DC変換機32の出力電圧の異常が検出された場合は、スイッチ42(図12:S54参照)をオンして数値制御装置1Aの交流電源16の電力を利用しているが、スイッチ43をオン(図12:S56)してバッテリ28の電力を直接利用するようにしてもよい。   In the above embodiment, when the abnormal voltage detection circuit 26 detects an abnormality in the output voltage of the AC / DC converter 32, the switch 42 (see FIG. 12: S54) is turned on to turn on the numerical controller 1A. Although the power of the AC power supply 16 is used, the switch 43 may be turned on (S56 in FIG. 12) to directly use the power of the battery 28.

また、上記実施形態では、数値制御装置と移設検出装置との通信距離を測定し、その通信距離が正常であるか否かで数値制御装置の起動を決定しているが、通信時間が所定時間以上であるか否かで決定してもよい。   In the above embodiment, the communication distance between the numerical control device and the relocation detection device is measured, and the activation of the numerical control device is determined based on whether or not the communication distance is normal. It may be determined depending on whether or not this is the case.

1A,1B,1C 数値制御装置
11A〜11C 配線
5 CPU
6 ROM
8 フラッシュメモリ
9 入出力インタフェイス
10 変換機
11 通信距離測定回路
15 工作機械
16 交流電源
20 移設検出装置
21 CPU
22 ROM
24 フラッシュメモリ
25 移設検出器
26 異常電圧検出回路
27 スイッチ駆動回路
28 バッテリ
29 信号返信回路
32 AC/DC変換機
33 移設検出I/F
35 交流電源
41 スイッチ
42 スイッチ
43 スイッチ
58 通信距離算出回路
45 コンパレータ
81 ダイオード
82 ダイオード
83 ダイオード
100 移設検出システム
1A, 1B, 1C Numerical control device 11A to 11C Wiring 5 CPU
6 ROM
8 Flash Memory 9 Input / Output Interface 10 Converter 11 Communication Distance Measuring Circuit 15 Machine Tool 16 AC Power Supply 20 Relocation Detection Device 21 CPU
22 ROM
24 Flash memory 25 Relocation detector 26 Abnormal voltage detection circuit 27 Switch drive circuit 28 Battery 29 Signal return circuit 32 AC / DC converter 33 Relocation detection I / F
35 AC power supply 41 switch 42 switch 43 switch 58 communication distance calculation circuit 45 comparator 81 diode 82 diode 83 diode 100 relocation detection system

Claims (8)

機械の移設を検出する移設検出手段と、該移設検出手段によって前記機械の移設を検出した場合に、前記機械の稼働を禁止する稼動禁止手段とを備えた移設検出システムにおいて、
前記移設検出手段を収納する機枠を前記機械と隔離して設け、
前記移設検出手段と前記機械とを通信する通信手段によって前記機械との通信に要する応答時間を検出する応答時間検出手段と、
前記応答時間検出手段によって検出された前記応答時間が所定時間を超えているか否かを判断する応答時間判断手段とを備え、
前記稼動禁止手段は、前記応答時間判断手段によって前記応答時間が前記所定時間を超えていると判断された場合に、前記機械の稼動を禁止することを特徴とする移設検出システム。
In a relocation detection system comprising relocation detection means for detecting relocation of a machine, and operation prohibiting means for prohibiting operation of the machine when the relocation detection means detects relocation of the machine,
A machine frame for storing the transfer detecting means is provided separately from the machine,
Response time detection means for detecting response time required for communication with the machine by communication means for communicating the relocation detection means and the machine;
Response time determination means for determining whether or not the response time detected by the response time detection means exceeds a predetermined time;
The relocation detection system, wherein the operation prohibiting unit prohibits the operation of the machine when the response time determining unit determines that the response time exceeds the predetermined time.
前記機械は、個別の識別情報を記憶する機械記憶手段を備え、
前記移設検出手段は、前記識別情報を記憶する識別情報記憶手段を備え、
前記通信手段を介して前記機械記憶手段に記憶した識別情報と、前記識別情報記憶手段に記憶した前記識別情報とが一致しているか否かを判断する識別情報一致判断手段と、
前記識別情報一致判断手段によって前記識別情報が互いに一致していると判断された場合にのみ、前記機械に対して稼動を許可する稼動許可手段と
を備えたことを特徴とする請求項1に記載の移設検出システム。
The machine includes machine storage means for storing individual identification information,
The relocation detection means includes identification information storage means for storing the identification information,
Identification information coincidence determining means for determining whether or not the identification information stored in the machine storage means via the communication means matches the identification information stored in the identification information storage means;
2. The operation permission means for permitting the machine to operate only when the identification information matching determination means determines that the identification information matches each other. Relocation detection system.
前記移設検出手段は、複数の前記機械と接続可能な入出力部を備え、
前記応答時間検出手段は、前記入出力部に接続された複数の前記機械に対して各々前記応答時間を検出し、
前記稼動禁止手段は、前記応答時間判断手段によって前記所定時間を超えた前記応答時間を要した機械のみ稼動を禁止することを特徴とする請求項2に記載の移設検出システム。
The relocation detection means includes an input / output unit connectable to a plurality of the machines,
The response time detection means detects the response time for each of the plurality of machines connected to the input / output unit,
The relocation detection system according to claim 2, wherein the operation prohibiting unit prohibits the operation of only a machine that requires the response time exceeding the predetermined time by the response time determining unit.
前記稼動禁止手段は、前記移設検出手段によって前記機枠の移設を検出した場合、前記入出力部に接続された前記複数の機械の全ての稼動を禁止することを特徴とする請求項3に記載の移設検出システム。   The operation prohibiting unit prohibits all operations of the plurality of machines connected to the input / output unit when the relocation detecting unit detects the relocation of the machine frame. Relocation detection system. 前記移設検出手段は、交流電源から直流電源へ変換する変換機を備え、
前記変換機は、前記機械の電源とは独立した交流電源を直流電源に変換して前記移設検出手段を駆動することを特徴とする請求項1乃至4の何れかに記載の移設検出システム。
The relocation detection means includes a converter for converting from an AC power source to a DC power source,
5. The relocation detection system according to claim 1, wherein the converter converts an AC power supply independent of a power supply of the machine into a DC power supply and drives the relocation detection unit. 6.
前記移設検出手段は、
該移設検出手段の電源バックアップをする補助電池と、
前記変換機の異常を検出する異常検出手段と、
前記異常検出手段が前記異常を検出した場合、前記変換機によって変換した直流電源から前記補助電池の電源を前記移設検出手段に供給するように切替える切替え手段とを備えたことを特徴とする請求項5に記載の移設検出システム。
The relocation detection means includes
An auxiliary battery for backing up the relocation detecting means;
An abnormality detecting means for detecting an abnormality of the converter;
A switching means for switching so that the power of the auxiliary battery is supplied to the relocation detecting means from the DC power converted by the converter when the abnormality detecting means detects the abnormality. 5. The relocation detection system according to 5.
前記移設検出手段は、
前記変換機の異常を検出する異常検出手段と、
前記異常検出手段が前記異常を検出した場合、前記機械の電源を前記移設検出手段に供給する電源供給手段と、
前記電源供給手段によって前記機械の電源を前記移設検出手段に供給した場合、前記機械に異常を報知する報知手段と
を備えたことを特徴とする請求項5に記載の移設検出システム。
The relocation detection means includes
An abnormality detecting means for detecting an abnormality of the converter;
A power supply means for supplying power to the relocation detection means when the abnormality detection means detects the abnormality;
6. The relocation detection system according to claim 5, further comprising a notifying unit for notifying the machine of an abnormality when the power of the machine is supplied to the relocation detection unit by the power supply unit.
前記移設検出手段は、前記補助電池の電源供給の有無を検出する補助電池供給検出手段を更に備え、
前記稼動禁止手段は、前記補助電池供給検出手段が電源供給の無いことを検出した場合、前記機械の稼動を禁止することを特徴とする請求項6に記載の移設検出システム。
The relocation detection means further comprises auxiliary battery supply detection means for detecting the presence or absence of power supply of the auxiliary battery,
The relocation detection system according to claim 6, wherein the operation prohibiting unit prohibits the operation of the machine when the auxiliary battery supply detecting unit detects that there is no power supply.
JP2010042545A 2010-02-26 2010-02-26 Relocation detection system Active JP5397270B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2010042545A JP5397270B2 (en) 2010-02-26 2010-02-26 Relocation detection system
CN201110050867.4A CN102200492B (en) 2010-02-26 2011-02-25 Detection system for mobile device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010042545A JP5397270B2 (en) 2010-02-26 2010-02-26 Relocation detection system

Publications (2)

Publication Number Publication Date
JP2011180702A true JP2011180702A (en) 2011-09-15
JP5397270B2 JP5397270B2 (en) 2014-01-22

Family

ID=44692167

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010042545A Active JP5397270B2 (en) 2010-02-26 2010-02-26 Relocation detection system

Country Status (1)

Country Link
JP (1) JP5397270B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018055628A (en) * 2016-09-30 2018-04-05 ブラザー工業株式会社 Transfer detection system and control method
CN111736527A (en) * 2019-03-25 2020-10-02 兄弟工业株式会社 Machine tool and determination method

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017215645A (en) * 2016-05-30 2017-12-07 ブラザー工業株式会社 Transfer detection system and control method
JP7409237B2 (en) 2020-06-30 2024-01-09 ブラザー工業株式会社 Relocation detection system and control method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001282734A (en) * 2000-03-30 2001-10-12 Fujitsu Ltd Remote service device, remote service managing device, and recording medium
JP2001290553A (en) * 2000-04-06 2001-10-19 Ricoh Co Ltd Information processor and its antitheft method
JP2003125444A (en) * 2001-10-17 2003-04-25 Minolta Co Ltd Terminal, operation control system thereof, and operation control method
JP2004280430A (en) * 2003-03-14 2004-10-07 Matsushita Electric Works Ltd Instrument monitoring device and method of authentication thereof
JP2005107646A (en) * 2003-09-29 2005-04-21 Mori Seiki Co Ltd System for managing operational state of machine tool
JP2006164198A (en) * 2004-12-10 2006-06-22 Toshiba Corp Plant monitoring system and method
JP2008129706A (en) * 2006-11-17 2008-06-05 Nakamura Tome Precision Ind Co Ltd Startup control system of machine tool
JP2009109940A (en) * 2007-11-01 2009-05-21 Seiko Epson Corp Projector and control method thereof

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001282734A (en) * 2000-03-30 2001-10-12 Fujitsu Ltd Remote service device, remote service managing device, and recording medium
JP2001290553A (en) * 2000-04-06 2001-10-19 Ricoh Co Ltd Information processor and its antitheft method
JP2003125444A (en) * 2001-10-17 2003-04-25 Minolta Co Ltd Terminal, operation control system thereof, and operation control method
JP2004280430A (en) * 2003-03-14 2004-10-07 Matsushita Electric Works Ltd Instrument monitoring device and method of authentication thereof
JP2005107646A (en) * 2003-09-29 2005-04-21 Mori Seiki Co Ltd System for managing operational state of machine tool
JP2006164198A (en) * 2004-12-10 2006-06-22 Toshiba Corp Plant monitoring system and method
JP2008129706A (en) * 2006-11-17 2008-06-05 Nakamura Tome Precision Ind Co Ltd Startup control system of machine tool
JP2009109940A (en) * 2007-11-01 2009-05-21 Seiko Epson Corp Projector and control method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018055628A (en) * 2016-09-30 2018-04-05 ブラザー工業株式会社 Transfer detection system and control method
CN111736527A (en) * 2019-03-25 2020-10-02 兄弟工业株式会社 Machine tool and determination method

Also Published As

Publication number Publication date
JP5397270B2 (en) 2014-01-22

Similar Documents

Publication Publication Date Title
JP4173513B2 (en) Device relocation presence / absence detection device and device equipped with the device relocation presence / absence detection device
JP5397270B2 (en) Relocation detection system
US8063763B2 (en) System for testing NAC operability using reduced operating voltage
JP2014039364A (en) Power supply control device
JP5397271B2 (en) Relocation detection system
JP5126259B2 (en) Relocation detection system
JP2013011366A (en) Water heater
KR20140056537A (en) Electric control apparatus and method for checking reset function
CN102596782B (en) Elevator control device
JP5397272B2 (en) Relocation detection system
JP2013120168A (en) Relocation detector, and control method
JP7007082B2 (en) Water supply device
JP2008126336A (en) Relocation detection device of machine tool
KR20170116748A (en) Alarm device for parts replacement time of Elevator
JP5305895B2 (en) Reporting device and elevator car
KR101767471B1 (en) Intelligent Power Supplying Device
JP2018141704A (en) Relocation detection device, relocation detection system and relocation detection method
JP4663584B2 (en) Breaker margin measuring device
KR101410870B1 (en) Structure for Power Supplying for Cluster System of Construction Heavy Machine
KR20130138584A (en) Motor starter system and operation method of the same
JP7321644B2 (en) alarm
EP3330936A1 (en) Communication device
JP2009129151A (en) Numerical control device with relocation determination function
KR20150049425A (en) Power connection apparatus and secure system
KR102063110B1 (en) Interface controlling device and method for monitoring driving voltage thereby

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120309

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130322

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130409

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130523

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130924

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131007

R150 Certificate of patent or registration of utility model

Ref document number: 5397270

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150