JP2011191984A - Relocation detection system - Google Patents

Relocation detection system Download PDF

Info

Publication number
JP2011191984A
JP2011191984A JP2010057091A JP2010057091A JP2011191984A JP 2011191984 A JP2011191984 A JP 2011191984A JP 2010057091 A JP2010057091 A JP 2010057091A JP 2010057091 A JP2010057091 A JP 2010057091A JP 2011191984 A JP2011191984 A JP 2011191984A
Authority
JP
Japan
Prior art keywords
relocation
relocation detection
unique
detection device
identification information
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
JP2010057091A
Other languages
Japanese (ja)
Other versions
JP5126259B2 (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 JP2010057091A priority Critical patent/JP5126259B2/en
Priority to CN201110050867.4A priority patent/CN102200492B/en
Publication of JP2011191984A publication Critical patent/JP2011191984A/en
Application granted granted Critical
Publication of JP5126259B2 publication Critical patent/JP5126259B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

<P>PROBLEM TO BE SOLVED: To provide a relocation detection system that can manage a plurality of machines collectively. <P>SOLUTION: In the relocation detection system 200, once registered in a relocation detector 20, a unique ID of a numerical control device 1A can also be stored in other relocation detectors 30 and 40 connected to the relocation detector 20. If the unique ID of the numerical control device 1A does not match any unique ID registered in the relocation detectors 20-40 at a start of the numerical control device 1A, the numerical control device 1A is not started. This can prevent the use of numerical control devices unauthorizedly connected to the relocation detectors and can manage a plurality of numerical control devices, collectively. <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, the numerical control device described in Patent Document 1 has only a function of detecting only its own relocation. Therefore, when a plurality of numerical control devices are installed in the floor of a factory, there is a problem that all numerical control devices must be provided with a transfer detection function, which increases costs.

本発明は、上記課題を解決するためになされたものであり、複数の機械をまとめて管理できる移設検出システムを提供することを目的とする。   The present invention has been made to solve the above problems, and an object thereof is to provide a relocation detection system capable of managing a plurality of machines collectively.

本発明の第1態様に係る移設検出システムは、移設を検出する移設検出手段と、当該移設検出手段と接続した機械と、前記移設検出手段が移設を検出した場合に、前記機械の稼働を禁止する稼動禁止手段とを備えた移設検出装置において、前記機械は、個別の識別情報を記憶する機械記憶手段を備え、前記移設検出手段は、前記機械と、他の移設検出手段と接続可能な入出力部と、当該入出力部に接続した前記機械と、前記他の移設検出手段に接続する機械の前記識別情報を取得する識別情報取得手段と、当該識別情報取得手段によって取得された前記識別情報を記憶する識別情報記憶手段とを備え、前記機械記憶手段に記憶した識別情報と、前記識別情報記憶手段に記憶した前記識別情報とが一致しているか否かを判断する識別情報一致判断手段と、当該識別情報一致判断手段によって前記識別情報が互いに一致していると判断された場合にのみ、前記機械に対して稼動を許可する稼動許可手段とを備えたことを特徴とする。   The relocation detection system according to the first aspect of the present invention includes relocation detection means for detecting relocation, a machine connected to the relocation detection means, and operation of the machine is prohibited when the relocation detection means detects relocation. In the relocation detecting device comprising the operation prohibiting means, the machine includes a mechanical storage means for storing individual identification information, and the relocation detecting means is connected to the machine and other relocation detecting means. An output unit, the machine connected to the input / output unit, an identification information acquisition unit for acquiring the identification information of a machine connected to the other moving detection unit, and the identification information acquired by the identification information acquisition unit Identification information storage means for storing the identification information, and the identification information coincidence judgment 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. Means, only when the identification information by the identification information match determination unit is determined to coincide with each other, characterized in that a running permission means for permitting the operation to the machine.

第1態様では、移設検出手段の入出力部には、機械と、他の移設検出手段とを接続できる。識別情報取得手段は、入出力部に接続した機械の識別情報と、他の移設検出手段に接続する機械の識別情報とを取得する。識別情報取得手段によって取得された識別情報は識別情報記憶手段に記憶される。識別情報一致判断手段は、機械記憶手段に記憶した識別情報と、識別情報記憶手段に記憶した識別情報とが一致しているか否かを判断する。稼動許可手段は、識別情報が互いに一致していると判断された場合にのみ、機械に対して稼動を許可する。識別情報が互いに一致しない機械は、移設検出手段に対して不正に通信する機械の可能性があるので、そのような機械の稼動を禁止できる。他の移設検出手段に接続する機械の識別情報を識別情報記憶手段に記憶できるので、複数の機械をまとめて管理できる。作業者が機械の配置を代えて他の移設検出手段の入出力部に機械を接続しても識別情報が一致する。それ故、識別情報を再度記憶し直すような面倒な作業が不要となる。   In the first aspect, the machine and other transfer detection means can be connected to the input / output unit of the transfer detection means. The identification information acquisition unit acquires the identification information of the machine connected to the input / output unit and the identification information of the machine connected to the other moving detection unit. The identification information acquired by the identification information acquisition unit is stored in the identification information storage unit. The identification information coincidence determining 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. 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. Since the identification information of the machines connected to other relocation detection means can be stored in the identification information storage means, a plurality of machines can be managed together. Even if the operator changes the arrangement of the machine and connects the machine to the input / output unit of another moving detection means, the identification information matches. Therefore, the troublesome work of storing the identification information again becomes unnecessary.

また、第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. The converter converts an AC power source independent of the power source of the machine into a DC power source and drives the moving detection means. Therefore, power can be supplied to the moving detection means even when the power of the machine is off. The transfer detection means can be provided away from the machine.

また、第1態様では、前記移設検出手段は、前記変換機の異常を検出する異常検出手段と、当該異常検出手段が前記異常を検出した場合、前記機械の電源を前記移設検出手段に供給する電源供給手段と、前記異常検出手段が前記異常を検出した場合、前記機械に異常を報知する報知手段とを備えてもよい。電源供給手段は、異常検出手段が異常を検出した場合に、機械の電源を移設検出手段に供給する。それ故、移設検出手段は、変換機の異常があっても機械の電源を利用できる。変換機に異常があった場合に、異常報知手段が機械に異常を報知するので、作業者は、機械側で変換機の異常があったことを認識できる。   In the first aspect, the relocation detecting means supplies an abnormality detecting means for detecting 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 alerting | reporting means which alert | reports abnormality to the said machine, when the said abnormality detection means detects the said abnormality. 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 includes an auxiliary battery that backs up 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 supply of the auxiliary battery even when the AC power supply cannot be used, such as when the AC power supply is broken or the converter is broken.

また、第1態様では、前記移設検出手段は、前記補助電池の電源供給の有無を検出する補助電池供給検出手段と、補助電池供給検出手段が電源供給の無いことを検出した場合、前記識別情報記憶手段に記憶した前記識別情報を削除する削除手段とを備えてもよい。補助電池供給手段は、補助電池の電源供給の有無を検出する。削除手段は、補助電池供給検出手段が電源供給の無いことを検出した場合、識別情報記憶手段に記憶した識別情報を削除する。それ故、識別情報一致判断手段は、識別情報記憶手段に記憶した識別情報との一致を判断できないので、稼動許可手段は、機械に対して稼動を許可しない。それ故、移設検出装置は、補助電池の電源供給の無い場合は、機械の稼動を禁止できる。   Further, in the first aspect, the relocation detecting means detects the absence of power supply by the auxiliary battery supply detecting means for detecting whether or not the auxiliary battery is supplied with power, and the identification information when the auxiliary battery supply detecting means detects no power supply. Delete means for deleting the identification information stored in the storage means may be provided. The auxiliary battery supply means detects whether or not the auxiliary battery is supplied with power. When the auxiliary battery supply detecting unit detects that there is no power supply, the deleting unit deletes the identification information stored in the identification information storage unit. Therefore, the identification information coincidence determination unit cannot determine the coincidence with the identification information stored in the identification information storage unit, so that the operation permission unit does not permit the machine to operate. Therefore, the relocation detection device can prohibit the operation of the machine when the auxiliary battery is not supplied with power.

移設検出システム200の構成を示す概念図である。1 is a conceptual diagram showing a configuration of a relocation detection system 200. FIG. 移設検出システム200の接続形態を示すブロック図である。It is a block diagram which shows the connection form of the moving detection system. 数値制御装置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記憶エリア241Aの記憶内容を示す図である。It is a figure which shows the memory content of unique ID storage area 241A. 固有ID記憶エリア241Bの記憶内容を示す図である。It is a figure which shows the memory content of the unique ID storage area 241B. 固有ID記憶エリア241Cの記憶内容を示す図である。It is a figure which shows the memory content of the unique ID storage area 241C. 通信距離測定回路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.

以下、本発明の一実施形態である移設検出システム200について、図面を参照して説明する。これらの図面は、本発明が採用しうる技術的特徴を説明するために用いられるものであり、記載されている装置の構成、各種処理のフローチャートなどは、特に特定的な記載がない限り、それのみに限定する趣旨ではなく、単なる説明例である。   Hereinafter, a relocation detection system 200 according to an embodiment of the present invention will be described with reference to the drawings. These drawings are used to explain technical features that can be adopted by the present invention. Unless otherwise specified, the configuration of the apparatus and the flowcharts of various processes are described in the drawings. It is not an intent to limit to only, but merely an illustrative example.

移設検出システム200の構成について、図1を参照して説明する。移設検出システム200は、3つの数値制御装置1A,1B,1Cを含む第1グループを管理する移設検出装置20と、3つの数値制御装置2A,2B,2Cを含む第2グループを管理する移設検出装置30と、3つの数値制御装置3A,3B,3Cを含む第3グループを管理する移設検出装置40とを備えている。数値制御装置1A〜1C、2A〜2C、3A〜3Cは、NCプログラムを実行することで、各工作機械(図1では省略)の動作を各々制御する。   The configuration of the relocation detection system 200 will be described with reference to FIG. The relocation detection system 200 includes a relocation detection device 20 that manages a first group that includes three numerical control devices 1A, 1B, and 1C, and a relocation detection that manages a second group that includes three numerical control devices 2A, 2B, and 2C. A device 30 and a relocation detection device 40 for managing a third group including three numerical control devices 3A, 3B, 3C are provided. The numerical control devices 1A to 1C, 2A to 2C, and 3A to 3C each control the operation of each machine tool (not shown in FIG. 1) by executing the NC program.

図1,図2に示すように、数値制御装置1A〜1Cの各インタフェイスモジュール12(以下、I/Fモジュール12と呼ぶ。)は、移設検出装置20の移設検出インタフェイス33(以下、移設検出I/F33と呼ぶ。)に対して配線1a〜1cを介して接続している。移設検出装置20を収納する機枠(図示省略)は、工場のフロア面に立設する柱91に固定している。数値制御装置2A〜2Cの各I/Fモジュール52は、移設検出装置30の移設検出I/F55に対して配線2a〜2cを介して接続している。移設検出装置30を収納する機枠(図示省略)は、工場のフロア面に立設する柱92に固定している。数値制御装置3A〜3Cの各I/Fモジュール62は、移設検出装置40の移設検出I/F77に対して配線3a〜3cを介して接続している。移設検出装置40を収納する機枠(図示省略)は、工場のフロア面に立設する柱93に固定している。移設検出装置20と移設検出装置30とは、配線18を介して、移設検出I/F33と移設検出I/F55とが接続している。移設検出装置30と移設検出装置40とは、配線19を介して、移設検出I/F55と移設検出I/F77とが接続している。   As shown in FIGS. 1 and 2, each of the interface modules 12 (hereinafter referred to as I / F modules 12) of the numerical control devices 1 </ b> A to 1 </ b> C is transferred to the transfer detection interface 33 (hereinafter referred to as transfer). This is connected to the detection I / F 33 via wirings 1a to 1c. A machine frame (not shown) for housing the transfer detection device 20 is fixed to a pillar 91 standing on the floor surface of the factory. Each I / F module 52 of the numerical control devices 2A to 2C is connected to the relocation detection I / F 55 of the relocation detection device 30 via wires 2a to 2c. A machine frame (not shown) for housing the transfer detection device 30 is fixed to a pillar 92 standing on the floor surface of the factory. Each I / F module 62 of the numerical control devices 3A to 3C is connected to the relocation detection I / F 77 of the relocation detection device 40 via wirings 3a to 3c. A machine frame (not shown) for housing the transfer detection device 40 is fixed to a pillar 93 standing on the floor surface of the factory. The relocation detection device 20 and the relocation detection device 30 are connected to a relocation detection I / F 33 and a relocation detection I / F 55 via a wiring 18. The relocation detection device 30 and the relocation detection device 40 are connected to a relocation detection I / F 55 and a relocation detection I / F 77 via a wiring 19.

図2に示すように、移設検出装置20は、数値制御装置1A〜1Cと、移設検出装置30と通信可能である。移設検出装置30は、数値制御装置2A〜2Cと、移設検出装置20と、移設検出装置40と通信可能である。移設検出装置40は、数値制御装置3A〜3Cと、移設検出装置30と通信可能である。   As shown in FIG. 2, the relocation detection device 20 can communicate with the numerical control devices 1 </ b> A to 1 </ b> C and the relocation detection device 30. The relocation detection device 30 can communicate with the numerical control devices 2A to 2C, the relocation detection device 20, and the relocation detection device 40. The relocation detection device 40 can communicate with the numerical control devices 3 </ b> A to 3 </ b> C and the relocation detection device 30.

図2に示すように、移設検出装置の各移設検出I/F33,55,77は、数値制御装置を接続するA端子と、他の移設検出装置と接続するB端子と、C端子とを備えている。A端子には4つの数値制御装置を接続できる。移設検出装置20の移設検出I/F33のA端子は、数値制御装置1A,1B,1Cを接続している。B端子は何も接続していない。C端子は、移設検出装置30を接続している。移設検出装置30の移設検出I/F55のA端子は、数値制御装置2A,2B,2Cを接続している。B端子は移設検出装置20を接続している。C端子は、移設検出装置40を接続している。移設検出装置40の移設検出I/F77のA端子には、数値制御装置3A,3B,3Cを接続している。B端子は、移設検出装置30を接続している。C端子は、何も接続していない。   As shown in FIG. 2, each relocation detection I / F 33, 55, 77 of the relocation detection device includes an A terminal for connecting a numerical control device, a B terminal for connection to another relocation detection device, and a C terminal. ing. Four numerical control devices can be connected to the A terminal. A terminal of the relocation detection I / F 33 of the relocation detection device 20 is connected to the numerical control devices 1A, 1B, and 1C. Nothing is connected to the B terminal. The C terminal is connected to the relocation detection device 30. A terminal of the relocation detection I / F 55 of the relocation detection device 30 is connected to the numerical control devices 2A, 2B, and 2C. The B terminal is connected to the relocation detection device 20. The C terminal is connected to the relocation detection device 40. Numerical control devices 3A, 3B, and 3C are connected to the A terminal of the relocation detection I / F 77 of the relocation detection device 40. The B terminal is connected to the relocation detection device 30. Nothing is connected to the C terminal.

図1に示すように、数値制御装置1A〜1Cは、配線1a〜1cの届く範囲内であれば正常に稼動するので、同フロア内を移動できる。数値制御装置2A〜2Cは、配線2a〜2cの届く範囲内であれば正常に稼動するので、同フロア内を移動できる。数値制御装置3A〜3Cは、配線3a〜3cの届く範囲内であれば正常に起動するので、同フロア内を移動できる。また、例えば、第1グループである数値制御装置1Aを移設検出装置20から外し、移設検出装置30,40に接続した場合でも数値制御装置1Aは正常に起動する。それ故、作業者は、数値制御装置1A〜1C、2A〜2C、3A〜3Cの同フロア内における配置変更が可能である。   As shown in FIG. 1, the numerical control devices 1 </ b> A to 1 </ b> C operate normally as long as they are within the reach of the wirings 1 a to 1 c, and can move within the floor. Since the numerical control devices 2A to 2C operate normally as long as they are within the reach of the wirings 2a to 2c, they can move within the floor. Since the numerical control devices 3A to 3C start normally if they are within the reach of the wirings 3a to 3c, they can move within the floor. Further, for example, even when the numerical control device 1A as the first group is removed from the relocation detection device 20 and connected to the relocation detection devices 30 and 40, the numerical control device 1A starts normally. Therefore, the worker can change the arrangement of the numerical control devices 1A to 1C, 2A to 2C, and 3A to 3C on the same floor.

次に、数値制御装置1Aの電気的構成について、図3を参照して説明する。数値制御装置1B,1C、2A〜2C、3A〜3Cの電気的構成は、数値制御装置1Aと同じであるので説明を省略する。数値制御装置1Aは、CPU5、ROM6、RAM7、フラッシュメモリ8、入出力インタフェイス9、AC/DC変換機10、通信距離測定回路11、I/Fモジュール12等を少なくとも備えている。   Next, the electrical configuration of the numerical control apparatus 1A will be described with reference to FIG. Since the electrical configurations of the numerical control devices 1B, 1C, 2A to 2C, and 3A to 3C are the same as those of the numerical control device 1A, description thereof is omitted. The numerical controller 1A includes at least 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, an I / F module 12, and the like.

ROM6は、メインプログラムに加え、後述する固有ID登録依頼プログラム、起動判定プログラム等を記憶する。固有ID登録依頼プログラム、起動判定プログラムは、コンピュータで読み取り可能な記憶媒体としてのフラッシュメモリ、EEPROM、HDD等に記憶させてもよい。フラッシュメモリ8は、数値制御装置1Aの固有の識別情報である固有IDと、移設検出装置20と数値制御装置1Aとの間の通信距離の基準である基準通信距離とを少なくとも記憶する。後述するが、基準通信距離は、移設検出システム200の設置時に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 200 is installed.

入出力インタフェイス9は、工作機械15の駆動部(図示省略)および操作盤(図示省略)に接続している。AC/DC変換機10は、外部の交流電源16に接続し、交流電源16が供給する交流を直流に変換する。AC/DC変換機10は、交流電源16の他に、移設検出装置20の移設検出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. The AC / DC converter 10 is connected to the relocation detection I / F 33 of the relocation detection device 20 in addition to the AC power supply 16. 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の電気的構成について、図3を参照して説明する。移設検出装置30,40の電気的構成は、移設検出装置20と同じであるので説明を省略する。移設検出装置20は、CPU21、ROM22、RAM23、フラッシュメモリ24、移設検出器25、異常電圧検出回路26、スイッチ駆動回路27、補助電池であるバッテリ28、信号返信回路29、AC/DC変換機32、移設検出I/F33等を少なくとも備えている。ROM22は、後述する固有ID登録プログラム、移設検出プログラム、固有ID送信プログラム、電源切替プログラム、バッテリ切れ検出プログラム等を少なくとも記憶する。固有ID登録プログラム、移設検出プログラム、固有ID送信プログラム、電源切替プログラム、バッテリ切れ検出プログラムは、コンピュータで読み取り可能な記憶媒体としてのフラッシュメモリ、EEPROM、HDD等に記憶させてもよい。   Next, the electrical configuration of the relocation detection device 20 will be described with reference to FIG. Since the electrical configuration of the relocation detection devices 30 and 40 is the same as that of the relocation detection device 20, description thereof will be omitted. 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.

移設検出器25は、機械本体の振動を検出して移設検出装置20の移設を検出する。移設を検出する方法は、振動の他に、例えば、加速度、傾斜等を検出してもよい。異常電圧検出回路26は、AC/DC変換機32の出力の異常を検出する。スイッチ駆動回路27は、異常電圧検出回路26の検出結果に応じて、後述するスイッチ41〜43(図4参照)を開閉する。信号返信回路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 the relocation of the relocation detection device 20 by detecting the vibration of the machine body. 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. 4) 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の電源供給経路について、図4を参照して説明する。移設検出装置30,40の電源供給経路も、移設検出装置20と同じであるので説明を省略する。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. Since the power supply path of the relocation detection devices 30 and 40 is the same as that of the relocation detection device 20, the description thereof will be omitted. 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の各種記憶エリアについて、図5を参照して説明する。フラッシュメモリ24は、固有ID記憶エリア241Aと、移設履歴記憶エリア242と、移設未検出フラグ記憶エリア243とを少なくとも備えている。固有ID記憶エリア241Aは、移設検出I/F33に接続する数値制御装置1A〜1Cの各固有IDと、移設検出装置30に接続する数値制御装置2A〜2Cの各固有IDと、移設検出装置40に接続する数値制御装置3A〜3Cの各固有IDとを記憶する。移設履歴記憶エリア242は、移設検出器25の移設を検出した日時等の移設検出情報を記憶する。作業者は操作盤を操作することで、工作機械15の操作盤に設けた画面に移設検出情報を表示できる。移設未検出フラグ記憶エリア243は、移設検出器25の移設検出の有無を示す移設未検出フラグを記憶する。移設検出器25が移設を検出していない場合、CPU21は、移設未検出フラグ記憶エリア243(図5参照)に移設未検出フラグ=「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 241A, a transfer history storage area 242, and a transfer non-detection flag storage area 243. The unique ID storage area 241A includes the unique IDs of the numerical control devices 1A to 1C connected to the relocation detection I / F 33, the unique IDs of the numerical control devices 2A to 2C connected to the relocation detection device 30, and the relocation detection device 40. The unique IDs of the numerical control devices 3A to 3C connected to are stored. 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. 5). When the relocation is detected, the CPU 21 stores a relocation non-detection flag = “0” in the relocation non-detection flag storage area 243.

次に、移設検出装置20のフラッシュメモリ24の固有ID記憶エリア241Aが記憶する固有IDについて、図6を参照して説明する。メーカは、数値制御装置1A〜1Cを工場のフロア内に設置する際に、数値制御装置1A〜1Cの操作盤から、数値制御装置1A〜1Cの固有IDを移設検出装置20に登録する。固有ID記憶エリア241Aには、上から順に、「A」で始まるAアドレス、「B」で始まるBアドレス、「C」で始まるCアドレスがそれぞれ登録されている。Aアドレスは、A端子に接続する数値制御装置に割り当てられるものである。Bアドレスは、B端子に間接的に接続する数値制御装置に割り当てられるものである。Cアドレスは、C端子に間接的に接続する数値制御装置に割り当てられるものである。   Next, the unique ID stored in the unique ID storage area 241A of the flash memory 24 of the relocation detection device 20 will be described with reference to FIG. The manufacturer registers the unique IDs 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 when installing the numerical control devices 1A to 1C on the floor of the factory. In the unique ID storage area 241A, an A address starting with “A”, a B address starting with “B”, and a C address starting with “C” are registered in order from the top. The A address is assigned to the numerical controller connected to the A terminal. The B address is assigned to a numerical controller that is indirectly connected to the B terminal. The C address is assigned to a numerical controller that is indirectly connected to the C terminal.

Aアドレスには、数値制御装置1A〜1Cの固有IDが各々記憶されている。4つ目のAアドレスには固有IDが記憶されておらず、空き状態となっている。Bアドレスには、固有IDは記憶されておらず、空き状態となっている。Cアドレスには、移設検出装置30に接続している数値制御装置2A〜2Cの固有IDと、移設検出装置40に接続している数値制御装置3A〜3Cの固有IDとが上から順にそれぞれ記憶されている。Cアドレスには、固有IDが記憶されていない空き状態のものがある。移設検出システム200の設置時において、固有ID記憶エリア241Aには、移設検出システム200を構成する数値制御装置1A〜3A、2A〜2C、3A〜3Cの固有IDが全て記憶される。   A unique ID of each of the numerical control devices 1A to 1C is stored in the A address. The fourth A address does not store a unique ID and is in an empty state. The unique address is not stored in the B address and is in an empty state. In the C address, the unique IDs of the numerical control devices 2A to 2C connected to the relocation detection device 30 and the unique IDs of the numerical control devices 3A to 3C connected to the relocation detection device 40 are stored in order from the top. Has been. Some C addresses have a free state in which no unique ID is stored. When the relocation detection system 200 is installed, the unique ID storage area 241A stores all the unique IDs of the numerical control devices 1A to 3A, 2A to 2C, and 3A to 3C constituting the relocation detection system 200.

次に、移設検出装置30のフラッシュメモリ24の固有ID記憶エリア241Bが記憶する固有IDについて、図7を参照して説明する。固有ID記憶エリア241Bにも、上から順に、「A」で始まるAアドレス、「B」で始まるBアドレス、「C」で始まるCアドレスがそれぞれ登録されている。   Next, the unique ID stored in the unique ID storage area 241B of the flash memory 24 of the relocation detection device 30 will be described with reference to FIG. In the unique ID storage area 241B, an A address starting with “A”, a B address starting with “B”, and a C address starting with “C” are registered in order from the top.

Aアドレスには、数値制御装置2A〜2Cの固有IDが各々記憶されている。4つ目のAアドレスには固有IDが記憶されておらず、空き状態となっている。Bアドレスには、移設検出装置20に接続している数値制御装置1A〜1Cの固有IDが各々記憶されている。4つ目のBアドレスには固有IDが記憶されておらず、空き状態となっている。Cアドレスには、移設検出装置40に接続している数値制御装置3A〜3Cの固有IDが各々記憶されている。4つ目のCアドレスには固有IDが記憶されておらず、空き状態となっている。固有ID記憶エリア241Bにも、移設検出システム200を構成する数値制御装置1A〜3A、2A〜2C、3A〜3Cの固有IDが全て記憶される。   A unique ID of each of the numerical control devices 2A to 2C is stored in the A address. The fourth A address does not store a unique ID and is in an empty state. The unique IDs of the numerical control devices 1A to 1C connected to the relocation detection device 20 are stored in the B address. The fourth B address does not store a unique ID, and is in an empty state. In the C address, the unique IDs of the numerical control devices 3A to 3C connected to the relocation detection device 40 are stored. The fourth C address does not store a unique ID and is in an empty state. Also in the unique ID storage area 241B, all the unique IDs of the numerical control devices 1A to 3A, 2A to 2C, and 3A to 3C constituting the relocation detection system 200 are stored.

次に、移設検出装置40のフラッシュメモリ24の固有ID記憶エリア241Cが記憶する固有IDについて、図8を参照して説明する。固有ID記憶エリア241Cにも、上から順に、「A」で始まるAアドレス、「B」で始まるBアドレス、「C」で始まるCアドレスがそれぞれ登録されている。   Next, the unique ID stored in the unique ID storage area 241C of the flash memory 24 of the relocation detection device 40 will be described with reference to FIG. In the unique ID storage area 241C, an A address starting with “A”, a B address starting with “B”, and a C address starting with “C” are registered in order from the top.

Aアドレスには、数値制御装置3A〜3Cの固有IDが各々記憶されている。4つ目のAアドレスには固有IDが記憶されておらず、空き状態となっている。Bアドレスには、移設検出装置20に接続している数値制御装置1A〜1Cの固有IDと、移設検出装置30に接続している数値制御装置2A〜2Cの固有IDとが上から順にそれぞれ記憶されている。Cアドレスには、固有IDは記憶されておらず、空き状態となっている。固有ID記憶エリア241Cにも、移設検出システム200を構成する数値制御装置1A〜3A、2A〜2C、3A〜3Cの固有IDが全て記憶される。   A unique ID of each of the numerical control devices 3A to 3C is stored in the A address. The fourth A address does not store a unique ID and is in an empty state. In the B address, the unique IDs of the numerical control devices 1A to 1C connected to the relocation detection device 20 and the unique IDs of the numerical control devices 2A to 2C connected to the relocation detection device 30 are stored in order from the top. Has been. The unique address is not stored in the C address and is in an empty state. Also in the unique ID storage area 241C, all the unique IDs of the numerical control devices 1A to 3A, 2A to 2C, and 3A to 3C constituting the relocation detection system 200 are stored.

次に、数値制御装置1Aの通信距離測定回路11について、図9を参照して説明する。通信距離測定回路11は、コンパレータ45と、集積回路であるFPGA56とを備えている。FPGA56は、時間測定回路57と、通信距離算出回路58とを備えている。コンパレータ45の入力端子1(図9では「入力1」)と、入力端子2(図9では「入力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. 9) and the input terminal 2 (“input 2” in FIG. 9) 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.

次に、移設検出システム200における数値制御装置1A〜1Cの起動制限について、図10〜図16のフローチャートを参照して説明する。本システムでは、移設検出器25が移設を検出した場合に加え、移設検出装置20に数値制御装置の固有IDが登録されていない場合に、数値制御装置1A〜1Cの起動を禁止する。以下の説明では、数値制御装置1AのCPU5が実行する処理と、移設検出装置20のCPU21が実行する処理とに分け、本システムの動作の流れに沿って説明する。   Next, the activation restriction of the numerical control devices 1A to 1C in the relocation detection system 200 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の登録を行う。書き込み指令は、メーカのみが知るものである。操作盤の入力操作は、数値制御装置1Aに入力される。本処理は、数値制御装置1Aの固有IDを送信する際に、ROM6に記憶した固有ID登録依頼プログラムが呼び出されて実行する。
<When installing a numerical controller>
The manufacturer of this system performs the operation of registering the unique ID of the numerical control device 1A in the relocation detection device 20 on the operation panel of the machine tool 15 when installing the machine tool equipped with the numerical control device 1A in the factory. The manufacturer registers a unique ID by inputting a write command (password). The write command is known only by the manufacturer. The input operation of the operation panel is input to the numerical controller 1A. 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登録依頼処理について、図10のフローチャートを参照して説明する。メーカが操作盤で固有IDの登録操作を行うと、固有IDの書き込み指令と、フラッシュメモリ8(図3参照)に記憶した固有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 manufacturer performs a registration operation of the unique ID on the operation panel, the unique ID write command and the unique ID stored in the flash memory 8 (see FIG. 3) 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)、S2に戻って、待機状態となる。   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 NG signal is received (S2: NO, S6: NO), the process returns to S2 and enters a standby state.

OK信号を受信した場合(S2:YES)、固有IDが移設検出装置20に正常に登録されている。次に、数値制御装置1Aと移設検出装置20との間の通信距離を測定するために、図9に示す通信距離測定回路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. 9, 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.

図9に示すように、時間測定回路57から距離測定信号が送信されると、それと同時にコンパレータ45の入力端子1に所定の電圧信号が入力される。距離測定信号は、I/Fモジュール12、移設検出装置20の移設検出I/F33を介して信号返信回路29に到達する。信号返信回路29は距離測定信号を数値制御装置1Aに返信する。   As shown in FIG. 9, 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.

次いで、図10に示すように、距離測定信号を受信したか否かが判断される(S4)。図18に示すように、距離測定信号が送信されて返信されるまでのコンパレータ45の出力は、入力端子1で入力された電圧となる。距離測定信号を受信するまでは(S4:NO)、S4に戻って待機状態となる。距離測定信号は、数値制御装置1AのI/Fモジュール12を介してコンパレータ45の入力端子2に入力される。入力端子2に距離測定信号が入力されると、コンパレータ45は、入力端子1に入力した電圧から入力端子2に入力した電圧を差し引く。コンパレータ45の出力はゼロとなる。コンパレータ45の出力が所定値であった時間を、時間測定用クロックでカウントする。それ故、CPU21は、距離測定信号の伝播時間を算出できる。   Next, as shown in FIG. 10, it is determined whether or not a distance measurement signal has been received (S4). As shown in FIG. 18, 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 1A. 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.

次いで、図10のフローに戻り、距離測定信号を受信したので(S4:YES)、算出された伝播時間に基づき、数値制御装置1Aと移設検出装置20との通信距離が算出される。この算出された通信距離が基準通信距離としてフラッシュメモリ8(図2参照)に記憶される(S5)。例えば、配線1a〜1cを同軸ケーブルとし、伝播速度が180(mm/ns)であった場合、通信距離は以下の式で算出される。
・通信距離L=180(mm)×〔伝播時間(ns)/2〕
伝播時間が1000nsであった場合、同軸ケーブルの長さは、L=180×(1000/2)=90(m)となる。この値が基準通信距離となる。移設検出システム200は、数値制御装置1Aの設置時の配線の長さを基準とすることで、配線の長さが変わった場合に異常であると判断できる。
Next, returning to the flow of FIG. 10, since the distance measurement signal has been 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 1a to 1c 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 200 can determine that there is an abnormality 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登録処理について、図11のフローチャートを参照して説明する。本処理は、移設検出装置20を設置して電源を入れたときに、ROM22に記憶した固有ID登録プログラムが呼び出されて実行する。数値制御装置1A(又は1B、1C)から書き込み指令と固有IDとを受信したか否かが判断される(S11)。書き込み指令と固有IDとを受信するまでは(S11:NO)、待機状態となる。書き込み指令と固有IDとを受信した場合(S11:YES)、他の隣接する移設検出装置があるか否かが判断される(S12)。   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. It is determined whether or not a write command and a unique ID are received from the numerical controller 1A (or 1B, 1C) (S11). Until a write command and a unique ID are received (S11: NO), a standby state is entered. When the writing command and the unique ID are received (S11: YES), it is determined whether there is another adjacent moving detection device (S12).

例えば、移設検出装置20には、他の移設検出装置30が接続されているので(S12:YES)、移設検出装置30に対して、数値制御装置1Aから受信した書き込み指令と、固有IDとが送信される(S13)。書き込み指令と固有IDとを受信した移設検出装置30では、その書き込み指令が正しければ、受信した固有IDをフラッシュメモリ24の固有ID記憶エリア241B(図7参照)に記憶する。さらに、フラッシュメモリ24の移設未検出フラグ記憶エリア243に「1」が記憶される。固有IDを正常に記憶した場合は、移設検出装置30から移設検出装置20にOK信号が送信される。書き込み指令が間違っていれば固有IDは記憶せず、フラッシュメモリ24の移設未検出フラグ記憶エリア243に記憶をせず、NG信号が移設検出装置20に送信される。   For example, since another relocation detection device 30 is connected to the relocation detection device 20 (S12: YES), the write command received from the numerical control device 1A and the unique ID are sent to the relocation detection device 30. It is transmitted (S13). The relocation detecting device 30 that has received the write command and the unique ID stores the received unique ID in the unique ID storage area 241B (see FIG. 7) of the flash memory 24 if the write command is correct. Further, “1” is stored in the relocation non-detection flag storage area 243 of the flash memory 24. When the unique ID is normally stored, an OK signal is transmitted from the relocation detection device 30 to the relocation detection device 20. If the write command is incorrect, the unique ID is not stored, and the NG signal is transmitted to the relocation detection device 20 without being stored in the relocation undetected flag storage area 243 of the flash memory 24.

なお、後述するが、移設検出装置30には、移設検出装置20の他に、移設検出装置40が接続されている。移設検出装置30のCPUが実行する固有ID登録処理において、移設検出装置20から受信した書き込み開始指令と、固有IDとは、移設検出装置40に送信される。移設検出装置40でも同様に、その書き込み指令が正しければ、受信した固有IDをフラッシュメモリ24の固有ID記憶エリア241C(図8参照)にそれぞれ記憶する。固有IDを正常に記憶した場合は、移設検出装置40から移設検出装置30を経由して移設検出装置20にOK信号が送信される。書き込み指令が間違っていれば固有IDは記憶せず、NG信号が移設検出装置20に送信される。   As will be described later, in addition to the relocation detection device 20, a relocation detection device 40 is connected to the relocation detection device 30. In the unique ID registration process executed by the CPU of the relocation detection device 30, the write start command received from the relocation detection device 20 and the unique ID are transmitted to the relocation detection device 40. Similarly, in the relocation detection device 40, if the write command is correct, the received unique ID is stored in the unique ID storage area 241C (see FIG. 8) of the flash memory 24, respectively. When the unique ID is normally stored, an OK signal is transmitted from the relocation detection device 40 to the relocation detection device 20 via the relocation detection device 30. If the write command is incorrect, the unique ID is not stored and an NG signal is transmitted to the relocation detection device 20.

次いで、他の移設検出装置30,40からOK信号、NG信号を受信したか否かが判断される(S14)。OK信号、NG信号を受信するまでは、S14に戻って処理が繰り返される。OK信号、NG信号を受信した場合(S14:YES)、続いて、数値制御装置1Aから受信した書き込み指令が正しいか否かが判断される(S15)。なお、他の移設検出装置が接続していない場合(S12:NO)、書き込み指令が正しいか否かが判断される(S15)。書き込み指令が正しい場合(S15:YES)、受信した固有IDがフラッシュメモリ24の固有ID記憶エリア241A(図6参照)に記憶される(S16)。さらに、フラッシュメモリ24の移設未検出フラグ記憶エリア243に「1」が記憶される(S17)。つまり、書き込み指令が正しい場合に限って移設未検出フラグをオンできるので、移設が検出されて移設未検出フラグが「0」の場合は、正しい書き込み指令を知るメーカしか「1」にできない。後述するように、移設未検出フラグが「0」の場合は固有IDを記憶できないが、正しい書き込み指令を入力することで、固有IDの記憶が再度できるようになる。   Next, it is determined whether or not an OK signal and an NG signal have been received from other relocation detection devices 30 and 40 (S14). Until the OK signal and the NG signal are received, the process returns to S14 and is repeated. When the OK signal and the NG signal are received (S14: YES), it is subsequently determined whether or not the write command received from the numerical controller 1A is correct (S15). If no other relocation detection device is connected (S12: NO), it is determined whether or not the write command is correct (S15). If the write command is correct (S15: YES), the received unique ID is stored in the unique ID storage area 241A (see FIG. 6) of the flash memory 24 (S16). Further, “1” is stored in the relocation non-detection flag storage area 243 of the flash memory 24 (S17). That is, the relocation non-detection flag can be turned on only when the write command is correct. Therefore, when relocation is detected and the relocation non-detection flag is “0”, only the manufacturer who knows the correct write command can set “1”. As will be described later, the unique ID cannot be stored when the relocation non-detection flag is “0”, but the unique ID can be stored again by inputting a correct write command.

さらに、他の移設検出装置があるか否かが判断される(S18)。上記したように、移設検出装置20には、移設検出装置30,40が接続しているので(S18:YES)、OK信号と、移設検出装置30,40からそれぞれ受信したOK信号、又はNG信号とが、書き込み指令を送信した数値制御装置1Aに対して送信される(S19)。他の移設検出装置がない場合は(S18:NO)、OK信号が数値制御装置1Aに対して送信される(S25)。   Further, it is determined whether there is another relocation detection device (S18). As described above, since the relocation detection devices 30 and 40 are connected to the relocation detection device 20 (S18: YES), the OK signal and the OK signal or NG signal received from the relocation detection devices 30 and 40, respectively. Is transmitted to the numerical controller 1A that has transmitted the write command (S19). If there is no other relocation detection device (S18: NO), an OK signal is transmitted to the numerical control device 1A (S25).

次いで、数値制御装置1Aから距離測定信号を受信したか否かが判断される(S20)。距離測定信号を受信するまでは(S20:NO)、S20に戻って待機状態となる。距離測定信号を受信した場合(S20:YES)、上記したように、信号返信回路29から距離測定信号が数値制御装置に向けて返信され(S21)、処理を終了する。   Next, it is determined whether or not a distance measurement signal is received from the numerical controller 1A (S20). Until the distance measurement signal is received (S20: NO), the process returns to S20 and enters a standby state. When the distance measurement signal is received (S20: YES), as described above, the distance measurement signal is returned from the signal return circuit 29 to the numerical controller (S21), and the process is terminated.

一方、数値制御装置1Aから受信した書き込み指令が正しくない場合(S15:NO)、他の移設検出装置があるか否かが判断される(S22)。上記したように、移設検出装置20には、移設検出装置30,40が直接的又は間接的に接続しているので(S22:YES)、続いて、移設検出装置30,40から返信された信号にOK信号を含んでいるか否かが判断される(S23)。OK信号を含んでおらず、全てNG信号であった場合(S23:NO)、NG信号が数値制御装置1Aに送信され(S26)、処理を終了する。   On the other hand, when the write command received from the numerical control device 1A is not correct (S15: NO), it is determined whether there is another relocation detection device (S22). As described above, since the relocation detection devices 30 and 40 are directly or indirectly connected to the relocation detection device 20 (S22: YES), subsequently, a signal returned from the relocation detection devices 30 and 40. It is determined whether or not the signal contains an OK signal (S23). If no OK signal is included and all are NG signals (S23: NO), the NG signal is transmitted to the numerical controller 1A (S26), and the process is terminated.

移設検出装置30,40から返信された信号にOK信号を含んでいた場合(S23:YES)、NG信号と、移設検出装置30,40からそれぞれ受信したOK信号、又はNG信号とが、書き込み指令を送信した数値制御装置に対して送信される(S24)。そして、数値制御装置1Aから距離測定信号を受信したか否かが判断される(S20)。距離測定信号を受信するまでは(S20:NO)、S20に戻って待機状態となる。距離測定信号を受信した場合(S20:YES)、上記したように、信号返信回路29から距離測定信号が数値制御装置1Aに向けて返信され(S21)、処理を終了する。このような固有ID登録処理を実行することで、数値制御装置1Aの固有IDを全ての移設検出装置20、30、40に対して1回の作業で登録できる。   When the signal returned from the relocation detection devices 30 and 40 includes an OK signal (S23: YES), the NG signal and the OK signal or the NG signal received from each of the relocation detection devices 30 and 40 are written commands. Is transmitted to the numerical control apparatus that has transmitted (S24). Then, it is determined whether or not a distance measurement signal is received from the numerical controller 1A (S20). Until the distance measurement signal is received (S20: NO), the process returns to S20 and enters a standby state. When the distance measurement signal is received (S20: YES), as described above, the distance measurement signal is returned from the signal return circuit 29 to the numerical controller 1A (S21), and the process is terminated. By executing such a unique ID registration process, the unique ID of the numerical control device 1A can be registered in all the relocation detection devices 20, 30, and 40 in one operation.

次に、他の移設検出装置から送信された固有IDを登録する場合の処理について説明する。本処理は、図11のフローと同様に実行される。まず、他の移設検出装置から書き込み指令と固有IDとを受信したか否かが判断される(S11)。書き込み指令と固有IDとを受信した場合(S11:YES)、さらにその移設検出装置に接続する移設検出装置があるか否かが判断される(S12)。例えば、移設検出装置30において、移設検出装置20から書き込み指令と固有IDとを受信した場合が該当する。この場合、移設検出装置30には移設検出装置40がさらに接続しているので、移設検出装置40に対してさらに書き込み指令と固有IDとが送信される(S13)。   Next, processing when registering a unique ID transmitted from another relocation detection apparatus will be described. This process is executed in the same manner as the flow of FIG. First, it is determined whether or not a write command and a unique ID are received from another relocation detection device (S11). When the write command and the unique ID are received (S11: YES), it is further determined whether or not there is a relocation detection device connected to the relocation detection device (S12). For example, the case where the relocation detection apparatus 30 receives a write command and a unique ID from the relocation detection apparatus 20 is applicable. In this case, since the relocation detection device 40 is further connected to the relocation detection device 30, a write command and a unique ID are further transmitted to the relocation detection device 40 (S13).

つまり、数値制御装置から移設検出装置に送信された書き込み指令と固有IDとは、その数値制御装置に直結する移設検出装置を経由して、隣接する移設検出装置に対して次から次へ順に送信される。他の移設検出装置から書き込み指令と固有IDとを受信した移設検出装置では、受信した固有IDの登録が行われる。その登録結果によって、OK信号又はNG信号が返信される。他の移設検出装置からOK信号又はNG信号を受信した後は(S14:YES)、受信した書き込み開始指令の正誤が判断され(S15)、書き込み開始指令が正しければ(S15:YES)、受信した固有IDがフラッシュメモリ24に記憶され(S16)、フラッシュメモリ24の移設未検出フラグ記憶エリア243に「1」が記憶される(S17)。   That is, the write command and the unique ID transmitted from the numerical control device to the relocation detection device are sequentially transmitted from the next to the next relocation detection device via the relocation detection device directly connected to the numerical control device. Is done. In the relocation detection device that has received the write command and the unique ID from another relocation detection device, the received unique ID is registered. An OK signal or an NG signal is returned depending on the registration result. After receiving an OK signal or an NG signal from another relocation detection device (S14: YES), it is judged whether the received write start command is correct (S15), and if the write start command is correct (S15: YES), it has been received. The unique ID is stored in the flash memory 24 (S16), and “1” is stored in the relocation non-detection flag storage area 243 of the flash memory 24 (S17).

自己の移設検出装置におけるOK信号、又はNG信号と、他の移設検出装置から受信したOK信号、又はNG信号とは、固有IDの登録を依頼した数値制御装置に直結する移設検出装置に全て送信され(S18、S19、S22〜S26)、書き込み開始指令を送信した数値制御装置にまとめて送信される。なお、本処理は、他の移設検出装置に直結する数値制御装置からの登録依頼であるので、移設検出装置と、書き込み指令を送信した数値制御装置とは互いに直結していない。よって、通信距離は測定する必要はなく、距離測定信号を受信することもないので、S20、S21の処理はせず、処理を終了する。   The OK signal or NG signal in its own relocation detection device and the OK signal or NG signal received from another relocation detection device are all transmitted to the relocation detection device directly connected to the numerical control device that requested registration of the unique ID. (S18, S19, S22 to S26) and sent to the numerical controller that has sent the write start command. Since this process is a registration request from a numerical control device directly connected to another relocation detection device, the relocation detection device and the numerical control device that has transmitted the write command are not directly connected to each other. Therefore, there is no need to measure the communication distance and no distance measurement signal is received, so the processing ends without performing the processing of S20 and S21.

<移設検出器25による移設検出>
例えば、数値制御装置1A〜1Cを不正に移設しようとする場合、数値制御装置1A〜1Cは配線1a〜1cでつながれているので、移設検出装置20を移設することが想定される。そのような移設を防止するため、移設検出器25による移設検出が実行される。
<Relocation detection by the relocation detector 25>
For example, when the numerical control devices 1A to 1C are to be transferred illegally, the numerical control devices 1A to 1C are connected by the wirings 1a to 1c, so that the transfer detection device 20 is assumed to be transferred. In order to prevent such relocation, relocation detection by the relocation detector 25 is executed.

移設検出装置20のCPU21による移設検出処理について、図12のフローチャートを参照して説明する。本処理は、移設検出装置20への固有ID登録処理が完了すると、ROM22に記憶した移設検出プログラムが呼び出されて実行する。まず、フラッシュメモリ24の移設未検出フラグ記憶エリア243(図5参照)に移設未検出フラグ=「1」が記憶される(S71)。次いで、移設検出器25によって移設が検出されたか否かが判断される(S72)。移設が検出されるまでは(S72:NO)、S72に戻って待機状態となる。移設が検出された場合(S72:YES)、移設未検出フラグ記憶エリア243(図4参照)に移設未検出フラグ=「0」が記憶される(S73)。次いで、フラッシュメモリ24の固有ID記憶エリア241A(図6参照)に記憶されていた固有IDが全て削除され(S74)、処理を終了する。   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 by calling the relocation detection program stored in the ROM 22 when the unique ID registration process in the relocation detection device 20 is completed. First, the relocation non-detection flag = “1” is stored in the relocation non-detection flag storage area 243 (see FIG. 5) of the flash memory 24 (S71). Next, it is determined whether or not relocation is detected by the relocation detector 25 (S72). Until the relocation is detected (S72: NO), the process returns to S72 and enters a standby state. When relocation is detected (S72: YES), relocation non-detection flag = “0” is stored in relocation non-detection flag storage area 243 (see FIG. 4) (S73). Next, all the unique IDs stored in the unique ID storage area 241A (see FIG. 6) of the flash memory 24 are deleted (S74), and the process ends.

後述するが、数値制御装置1A〜1Cは、移設検出装置20,30,40の何れかに自身の固有IDが記憶されていない場合は起動できない。よって、移設検出装置20が移設された場合は、フラッシュメモリ24に記憶していた固有IDが削除されるので、数値制御装置1A〜1Cの起動を禁止できる。移設検出装置20が移設された日時等の移設情報は、フラッシュメモリ24の移設履歴記憶エリア242(図5参照)に記憶される。   As will be described later, the numerical control devices 1A to 1C cannot be activated if their own unique ID is not stored in any of the relocation detection devices 20, 30, and 40. Therefore, when the relocation detection device 20 is relocated, the unique ID stored in the flash memory 24 is deleted, so that the activation of the numerical control devices 1A to 1C can be prohibited. Relocation information such as the date and time when the relocation detection device 20 is relocated is stored in a relocation history storage area 242 (see FIG. 5) 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が実行する起動判定処理について、図13のフローチャートを参照して説明する。本処理は、電源がオンすると、ROM6に記憶した起動判定プログラムが呼び出されて実行する。まず、固有IDの送付依頼信号が、移設検出装置20に送信される(S31)。自身の固有IDが移設検出装置20に記憶されているかを確認するためである。送付依頼信号は、移設検出装置20に登録されている全ての固有IDについて送信を依頼する指令である。移設検出装置20では、送付依頼信号を受信すると、フラッシュメモリ24の固有ID記憶エリア241A(図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 (S31). 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 241A (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.

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

一方、まだタイムアウトでない場合(S32:NO)、エラー信号を受信したか、又は固有IDを受信したかが判断される(S33、S34)。エラー信号、又は固有IDを受信するまでは(S33:NO、S34:NO)、S32に戻って、処理が繰り返される。エラー信号を受信した場合(S33:YES)、移設検出装置20には固有IDが記憶されていない。この場合、移設検出装置20に対して数値制御装置1Aが不正に接続されている可能性があるので、使用禁止とされ(S45)、処理を終了する。   On the other hand, if it has not yet timed out (S32: NO), it is determined whether an error signal has been received or a unique ID has been received (S33, S34). Until an error signal or unique ID is received (S33: NO, S34: NO), the process returns to S32 and the process is repeated. When the error signal is received (S33: 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 use is prohibited (S45), and the process is terminated.

タイムアウトになる前に、固有IDを受信した場合(S34:YES)、受信した固有IDの中に、自身の固有IDがあるか否かが判断される(S35)。後述するが、受信した固有IDには、数値制御装置1Aに直結する移設検出装置20に記憶された固有IDのみならず、移設検出装置30,40に記憶した固有IDも含まれる。これらの固有IDの中に自身の固有IDがない場合(S35:NO)、その数値制御装置1Aは、移設検出装置20に対して不正に接続されている可能性がある。よって、使用禁止とされ(S45)、処理を終了する。   If the unique ID is received before the time-out (S34: YES), it is determined whether or not the received unique ID has its own unique ID (S35). As will be described later, the received unique ID includes not only the unique ID stored in the relocation detection device 20 directly connected to the numerical controller 1A but also the unique ID stored in the relocation detection devices 30 and 40. When these unique IDs do not have their own unique IDs (S35: NO), the numerical control device 1A may be illegally connected to the relocation detection device 20. Therefore, use is prohibited (S45), and the process is terminated.

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

これに対し、移設検出装置20から送信された距離測定信号が受信された場合(S38:YES)、時間測定が完了し(S39)、距離測定信号の伝播時間が算出される。算出された伝播時間に基づき、通信距離が算出される(S40)。算出された通信距離と、フラッシュメモリ8に記憶された基準通信距離とが比較される(S41)。この比較に基づき、通信距離が正常であるか否かが判断される(S42)。算出された通信距離が、設置時に測定した基準通信距離と同一であれば、配線1aで接続されている。通信距離は正常であるので(S42:YES)、数値制御装置1Aは正常に起動され(S43)、処理を終了する。   On the other hand, when the distance measurement signal transmitted from the relocation detection device 20 is received (S38: YES), the time measurement is completed (S39), and the propagation time of the distance measurement signal is calculated. Based on the calculated propagation time, a communication distance is calculated (S40). The calculated communication distance is compared with the reference communication distance stored in the flash memory 8 (S41). Based on this comparison, it is determined whether or not the communication distance is normal (S42). If the calculated communication distance is the same as the reference communication distance measured at the time of installation, the wires 1a are connected. Since the communication distance is normal (S42: YES), the numerical control apparatus 1A is normally activated (S43), and the process ends.

一方、算出された通信距離が基準通信距離と同一でない場合(S42:NO)、長さが異なる別の配線が付け替えられたか、別の通信網で通信している可能性がある。このような場合、数値制御装置1Aが移設されている可能性があるので、数値制御装置1Aは使用禁止とされ(S45)、処理を終了する。よって、不正に移設された可能性がある数値制御装置の起動を禁止できる。   On the other hand, when the calculated communication distance is not the same as the reference communication distance (S42: 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 moved, so the numerical control apparatus 1A is prohibited from use (S45), and the process is terminated. Accordingly, it is possible to prohibit activation of a numerical control apparatus that may have been moved illegally.

次に、移設検出装置20のCPU21による固有ID送信処理について、図14のフローチャートを参照して説明する。ここでは、移設検出装置20のCPU21による固有ID送信処理を中心に説明する。本処理は、移設検出装置20の電源がオンされたときに、ROM22に記憶した固有ID送信プログラムが呼び出されて実行する。まず、フラッシュメモリ24の移設未検出フラグ記憶エリア243(図5参照)に「0」が記憶されているか否かが判断される(S51)。「0」が記憶されている場合(S51:YES)、続いて、数値制御装置から固有IDの送付依頼信号を受信したか否かが判断される(S60)。送付依頼信号を受信していない場合(S60:NO)、そのまま処理を終了する。例えば、数値制御装置1Aから送付依頼信号を受信した場合(S60:YES)、移設検出装置20の移設が検出されているので、数値制御装置1Aにエラー信号が送信される(S61)。   Next, the unique ID transmission processing by the CPU 21 of the relocation detection device 20 will be described with reference to the flowchart of FIG. Here, the unique ID transmission process by the CPU 21 of the relocation detection apparatus 20 will be mainly described. 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. 5) of the flash memory 24 (S51). If “0” is stored (S51: YES), it is then determined whether a unique ID sending request signal has been received from the numerical controller (S60). If the sending request signal has not been received (S60: NO), the process is terminated as it is. For example, when a transmission request signal is received from the numerical control device 1A (S60: YES), since the relocation of the relocation detection device 20 is detected, an error signal is transmitted to the numerical control device 1A (S61).

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

例えば、数値制御装置1Aから固有IDの送付依頼信号を受信した場合(S52:YES)、続いて、他の移設検出装置があるか否かが判断される(S53)。図2に示す例では、移設検出装置20には移設検出装置30が接続しているので(S53:YES)、その移設検出装置30に対して、固有IDの送付依頼信号が送信される(S57)。   For example, when a unique ID sending request signal is received from the numerical controller 1A (S52: YES), it is subsequently determined whether there is another relocation detection device (S53). In the example shown in FIG. 2, since the relocation detection device 30 is connected to the relocation detection device 20 (S53: YES), a unique ID sending request signal is transmitted to the relocation detection device 30 (S57). ).

ここで、移設検出装置30のCPU21による固有ID送信処理では、移設検出装置30に移設検出装置40が接続されているので(S53:YES)、固有IDの送付依頼信号が移設検出装置40に送信される(S57)。移設検出装置40のCPU21は、フラッシュメモリ24の固有ID記憶エリア241C(図8参照)に記憶された固有IDを移設検出装置30に全て送信する。移設検出装置30のCPU21は、移設検出装置30から受信した固有IDと、自身のフラッシュメモリ24の固有ID記憶エリア241B(図7参照)に記憶された固有IDとを移設検出装置20にまとめて全て送信する。   Here, in the unique ID transmission process by the CPU 21 of the relocation detection device 30, since the relocation detection device 40 is connected to the relocation detection device 30 (S53: YES), a unique ID sending request signal is transmitted to the relocation detection device 40. (S57). The CPU 21 of the relocation detection device 40 transmits all the unique IDs stored in the unique ID storage area 241C (see FIG. 8) of the flash memory 24 to the relocation detection device 30. The CPU 21 of the relocation detection device 30 combines the unique ID received from the relocation detection device 30 and the unique ID stored in the unique ID storage area 241B (see FIG. 7) of its own flash memory 24 in the relocation detection device 20. Send all.

移設検出装置20のCPU21による固有ID登録処理に戻り、移設検出装置30から固有IDが受信される(S58)。そして、固有ID記憶エリア241Aに記憶された固有IDと、移設検出装置30から送信された固有ID(移設検出装置40から送信された固有IDを含む)とが、数値制御装置1Aに送信される(S59)。これにより、数値制御装置1Aは、自身に直結する移設検出装置20に固有IDが記憶されていなくても、他の移設検出装置30、又は40に固有IDが記憶されていれば、正常に起動できる。   Returning to the unique ID registration process by the CPU 21 of the relocation detection device 20, the unique ID is received from the relocation detection device 30 (S58). Then, the unique ID stored in the unique ID storage area 241A and the unique ID transmitted from the relocation detection device 30 (including the unique ID transmitted from the relocation detection device 40) are transmitted to the numerical control device 1A. (S59). Thereby, even if the unique ID is not stored in the relocation detection device 20 directly connected to itself, the numerical control device 1A starts normally if the unique ID is stored in the other relocation detection device 30 or 40. it can.

次いで、送付依頼信号のあった数値制御装置1Aから距離測定信号を受信したか否かが判断される(S55)。距離測定信号を受信するまでは(S55:NO)、S55に戻って待機状態となる。距離測定信号を受信した場合(S55:YES)、上記したように、信号返信回路29から距離測定信号が数値制御装置1Aに向けて返信され(S56)、処理を終了する。   Next, it is determined whether or not a distance measurement signal has been received from the numerical control apparatus 1A that has received the transmission request signal (S55). Until the distance measurement signal is received (S55: NO), the process returns to S55 and enters a standby state. When the distance measurement signal is received (S55: YES), as described above, the distance measurement signal is returned from the signal return circuit 29 to the numerical controller 1A (S56), and the process is terminated.

なお、図1に示すように、他の隣接する移設検出装置がない場合は(S53:NO)、固有ID記憶エリア241Aに記憶された全ての固有IDが、送付依頼信号を送信した数値制御装置に送信される(S54)。その後、送付依頼信号のあった数値制御装置から距離測定信号を受信したか否かが判断される(S55)。距離測定信号を受信するまでは(S55:NO)、S55に戻って待機状態となる。距離測定信号を受信した場合(S55:YES)、上記したように、信号返信回路29から距離測定信号が数値制御装置に向けて返信され(S56)、処理を終了する。   As shown in FIG. 1, when there is no other adjacent relocation detection device (S53: NO), all the unique IDs stored in the unique ID storage area 241A have transmitted the transmission request signal. (S54). Thereafter, it is determined whether or not a distance measurement signal has been received from the numerical control apparatus that has received the transmission request signal (S55). Until the distance measurement signal is received (S55: NO), the process returns to S55 and enters a standby state. When the distance measurement signal is received (S55: YES), as described above, the distance measurement signal is returned from the signal return circuit 29 to the numerical controller (S56), and the process is terminated.

次に、移設検出装置20のCPU21による電源切替処理について、図4と、図15のフローチャートとを参照して説明する。本処理は、移設検出装置20の電源をオンすると、ROM22に記憶した電源切替プログラムが呼び出されて実行する。まず、AC/DC変換機32の出力電圧が正常であるか否かが判断される(S81)。AC/DC変換機32は、交流電源35から供給される交流を直流に変化して出力する。AC/DC変換機32の出力電圧は、異常電圧検出回路26によって検出される。AC/DC変換機32の出力電圧が正常である場合(S81:YES)、スイッチ41がオン、スイッチ42がオフ、スイッチ43がオフされる(S82)。この場合、交流電源35から移設検出装置20に電源が供給される。次いで、S81に戻って、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. 4 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 (S81). 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 (S81: YES), the switch 41 is turned on, the switch 42 is turned off, and the switch 43 is turned off (S82). In this case, power is supplied from the AC power supply 35 to the relocation detection device 20. Next, returning to S81, the output voltage of the AC / DC converter 32 is continuously monitored.

交流電源35が壊れた場合、AC/DC変換機32の出力電圧が変化する。このような電圧異常があった場合(S81:NO)、続いて、AC/DC変換機10の出力電圧は正常であるか否かが判断される(S83)。AC/DC変換機10は、数値制御装置1Aの交流電源16から供給される交流を直流に変化して出力する。AC/DC変換機10の出力電圧は、異常電圧検出回路26によって検出される。AC/DC変換機10の出力電圧が正常である場合(S83:YES)、スイッチ41がオフ、スイッチ42がオン、スイッチ43がオフされる(S84)。この場合、交流電源16、AC/DC変換機10、移設検出I/F33を介して、移設検出装置20に電源が供給される。これにより、交流電源35が利用できない場合でも、数値制御装置の交流電源16を利用でき、移設検出装置20を稼動させることができる。そして、数値制御装置1Aに対して異常信号が送信され(S85)、処理を終了する。異常信号を送信された数値制御装置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 (S81: NO), it is subsequently determined whether or not the output voltage of the AC / DC converter 10 is normal (S83). 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 (S83: YES), the switch 41 is turned off, the switch 42 is turned on, and the switch 43 is turned off (S84). In this case, power is supplied to the relocation detection device 20 via the AC power supply 16, the AC / DC converter 10, 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 (S85), 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の出力電圧が異常であるとして(S83:NO)、スイッチ41がオフ、スイッチ42がオフ、スイッチ43がオンされる(S86)。この場合、バッテリ28は電源が移設検出装置20に電源を供給する。これにより、交流電源16,35が利用できない場合でも、バッテリ28を利用できるので、移設検出装置20を稼動させることができる。そして、数値制御装置1Aに対して異常信号が送信され(S85)、処理を終了する。   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 (S83: NO), the switch 41 is turned off, the switch 42 is turned off, and the switch 43 is turned on (S86). In this case, 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. Then, an abnormal signal is transmitted to the numerical control apparatus 1A (S85), and the process ends.

移設検出装置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によるバッテリ切れ検出処理について、図16のフローチャートを参照して説明する。バッテリ切れ検出処理は、図4に示すスイッチ43がオンされると、ROM22に記憶したバッテリ切れ検出プログラムが呼び出されて実行する。まず、バッテリ28の電圧が所定値未満であって、バッテリ切れであるか否かが判断される(S91)。バッテリ切れでない間は(S91:NO)、S91に戻って待機状態となる。バッテリ切れである場合(S91:YES)、フラッシュメモリ24の固有ID記憶エリア241A(図6参照)に記憶されている固有IDが全て削除され(S92)、処理を終了する。このように、固有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. The battery exhaustion detection process is executed when the battery exhaustion detection program stored in the ROM 22 is called up when the switch 43 shown in FIG. 4 is turned on. First, it is determined whether the voltage of the battery 28 is less than a predetermined value and the battery is dead (S91). While the battery is not exhausted (S91: NO), the process returns to S91 and enters a standby state. If the battery is dead (S91: YES), all the unique IDs stored in the unique ID storage area 241A (see FIG. 6) of the flash memory 24 are deleted (S92), 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.

以上説明したように、本実施形態である移設検出システム200は、複数の数値制御装置が直結する複数の移設検出装置が互いに接続されたものである。メーカが、移設検出システム200を工場に設置する際に、各数値制御装置の識別情報である固有IDを、移設検出装置20〜40に登録する。固有IDは、数値制御装置に直結する移設検出装置のみならず、移設検出装置に接続する他の移設検出装置にも記憶できる。数値制御装置の起動時に、移設検出装置20〜40に登録した固有IDと、数値制御装置の固有IDとが一致しない場合、数値制御装置は起動しない。それ故、工場の管理者は、移設検出装置に不正に接続する数値制御装置の使用を防止でき、かつ複数の数値制御装置をまとめて管理できる。   As described above, in the relocation detection system 200 according to the present embodiment, a plurality of relocation detection devices directly connected by a plurality of numerical control devices are connected to each other. When the manufacturer installs the relocation detection system 200 in a factory, the manufacturer registers a unique ID, which is identification information of each numerical control device, in the relocation detection devices 20 to 40. The unique ID can be stored not only in the moving detection device directly connected to the numerical control device but also in other moving detection devices connected to the moving detection device. If the unique ID registered in the relocation detection devices 20 to 40 and the unique ID of the numerical control device do not match when the numerical control device is activated, the numerical control device is not activated. Therefore, the manager of the factory can prevent the use of the numerical control device that is illegally connected to the relocation detection device, and can manage a plurality of numerical control devices collectively.

例えば、図1に示すように、作業者が、数値制御装置1Aの固有IDを移設検出装置20に登録した場合、移設検出装置30,40にも登録される。例えば、第1グループである数値制御装置1Aを移設検出装置20から外し、移設検出装置30,40に接続した場合でも数値制御装置1Aは正常に起動する。それ故、数値制御装置は、本システム内であれば移動可能である。   For example, as shown in FIG. 1, when the operator registers the unique ID of the numerical control device 1A in the relocation detection device 20, it is also registered in the relocation detection devices 30 and 40. For example, even when the numerical control device 1A as the first group is removed from the relocation detection device 20 and connected to the relocation detection devices 30 and 40, the numerical control device 1A starts normally. Therefore, the numerical control device can be moved within the system.

また、移設検出装置20が不正に移設されるような場合、その振動を検出することで、移設検出装置20の移設を検出する。移設が検出された場合、固有IDが削除されるため、数値制御装置を起動させることを禁止できる。固有IDの登録は、メーカが正しい書き込み指令を数値制御装置に入力することによって、移設検出装置への固有IDの登録が再度可能となる。それ故、不正業者によって固有IDが登録されるのを防止できる。   Further, 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, the unique ID is deleted, so that it is possible to prohibit starting the numerical control device. The unique ID can be registered again when the manufacturer inputs a correct write command to the numerical control device. Therefore, it is possible to prevent the unique ID from being registered by an unauthorized trader.

また、例えば、数値制御装置1Aの固有IDが移設検出装置20に記憶されている場合でも、別の配線に付け替えたり、別の通信網を使って通信している可能性がある。そこで、移設検出装置20と数値制御装置1Aとの通信距離を測定し、基準通信距離と比較を行う。基準通信距離と同一でない場合は、異常であるので、数値制御装置の起動を禁止する。このように移設された可能性の高いあらゆる状況を防止できると共に、一定の範囲内であれば数値制御装置の配置変更ができるので、安全性が高い上に使い勝手のよい移設検出システム200を提供できる。   Further, for example, even when the unique ID of the numerical control device 1A 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 device 1A 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 200 that is highly safe and easy to use. .

以上説明において、数値制御装置1A〜1C、2A〜2C、3A〜3Cが本発明の「機械」に相当し、移設検出装置20,30,40が本発明の「移設検出手段」に相当する。フラッシュメモリ8が本発明の「機械記憶手段」に相当し、フラッシュメモリ24の固有ID記憶エリア241Aが本発明の「識別情報記憶手段」に相当し、移設検出I/F33が本発明の「入出力部」に相当し、AC/DC変換機32が本発明の「変換機」に相当し、バッテリ28が本発明の「補助電池」に相当し、異常電圧検出回路26が本発明の「異常検出手段」に相当する。   In the above description, the numerical control devices 1A to 1C, 2A to 2C, and 3A to 3C correspond to the “machine” of the present invention, and the transfer detection devices 20, 30, and 40 correspond to “transfer detection means” of the present invention. The flash memory 8 corresponds to the “machine storage means” of the present invention, the unique ID storage area 241A of the flash memory 24 corresponds to the “identification information storage means” 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”.

図11のS17の処理を実行するCPU21が本発明の「解除手段」に相当する。図11のS11〜S16の処理を実行するCPU21が本発明の「識別情報取得手段」に相当する。図13のS35の処理を実行するCPU5が本発明の「識別情一致判断手段」に相当する。図13のS43の処理を実行するCPU5が本発明の「稼動許可手段」に相当する。図13のS45の処理を実行するCPU5が本発明の「稼動禁止手段」に相当する。図15のS84の処理を実行するCPU21が本発明の「電源供給手段」に相当し、S86の処理を実行するCPU21が本発明の「切替え手段」に相当し、S85の処理を実行するCPU21が本発明の「報知手段」に相当する。図16のS91の処理を実行するCPU21が本発明の「補助電池供給検出手段」に相当し、S92の処理を実行するCPU21が本発明の「削除手段」に相当する。   The CPU 21 that executes the process of S17 in FIG. 11 corresponds to the “release means” of the present invention. The CPU 21 that executes the processes of S11 to S16 in FIG. 11 corresponds to the “identification information acquisition unit” of the present invention. The CPU 5 that executes the process of S35 in FIG. 13 corresponds to the “identity information matching means” of the present invention. The CPU 5 that executes the process of S43 in FIG. 13 corresponds to the “operation permission unit” of the present invention. The CPU 5 that executes the process of S45 of FIG. 13 corresponds to the “operation prohibiting means” of the present invention. The CPU 21 that executes the process of S84 in FIG. 15 corresponds to the “power supply means” of the present invention, the CPU 21 that executes the process of S86 corresponds to the “switching means” of the present invention, and the CPU 21 that executes the process of S85 It corresponds to “notification means” of the present invention. The CPU 21 that executes the process of S91 in FIG. 16 corresponds to the “auxiliary battery supply detection unit” of the present invention, and the CPU 21 that executes the process of S92 corresponds to the “deletion unit” of the present invention.

なお、本発明の移設検出装置は、上記実施形態に限らず、各種の変形が可能なことはいうまでもない。例えば、上記実施形態において、図4に示すように、移設検出装置20における電源の供給は、3本の電源供給ラインにスイッチ41〜43を設け、それらスイッチ41〜43の開閉を制御することで、電源の供給源を切り替えている。この他に、例えば、図18に示すように、スイッチ41の代わりにダイオード81を設け、スイッチ42の代わりにダイオード82を設け、スイッチ43の代わりにダイオード80を設けてもよい。   In addition, it cannot be overemphasized that the transfer detection apparatus of this invention is not restricted to the said embodiment but various deformation | transformation is possible. For example, in the above embodiment, as shown in FIG. 4, 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. 18, 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から流れる電流を利用できる。つまり、第1実施形態と同様の効果を得ることができる。   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 that of the first embodiment can be obtained.

また、上記実施形態では、異常電圧検出回路26によって、AC/DC変換機32の出力電圧の異常が検出された場合は、スイッチ42(図15:S84参照)をオンして数値制御装置1Aの交流電源16の電力を利用しているが、スイッチ43をオン(図15:S86)してバッテリ28の電力を直接利用するようにしてもよい。   Further, 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. 15: refer to S84) is turned on to turn on the numerical controller 1A. Although the power of the AC power supply 16 is used, the power of the battery 28 may be directly used by turning on the switch 43 (FIG. 15: S86).

また、上記実施形態では、数値制御装置と移設検出装置との通信距離を測定し、その通信距離が正常であるか否かで数値制御装置の起動を決定しているが、通信時間が所定時間以上であるか否かで決定してもよい。   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.

また、数値制御装置と移設検出装置、移設検出装置と他の移設検出装置との接続状態を常時監視し、接続されていない場合、通信が異常であると決定してもよい。上記実施形態においては、配線で接続しているが、無線で接続するものでもよい。   Further, the connection state between the numerical control device and the relocation detection device, and the relocation detection device and another relocation detection device may be constantly monitored, and if not connected, it may be determined that the communication is abnormal. In the embodiment described above, the wiring is used for connection, but wireless connection may be used.

また、削除手段は、識別情報記憶手段に記憶した識別情報を削除しているが、該識別情報を削除することを示すフラグを記憶するようにしてもよい。   In addition, the deletion unit deletes the identification information stored in the identification information storage unit, but may store a flag indicating that the identification information is deleted.

5 CPU
6 ROM
8 フラッシュメモリ
9 入出力インタフェイス
10 変換機
11 通信距離測定回路
16 交流電源
20 移設検出装置
21 CPU
22 ROM
24 フラッシュメモリ
25 移設検出器
26 異常電圧検出回路
27 スイッチ駆動回路
28 バッテリ
29 信号返信回路
32 AC/DC変換機
33 移設検出I/F
35 交流電源
41 スイッチ
42 スイッチ
43 スイッチ
45 コンパレータ
58 通信距離算出回路
81 ダイオード
82 ダイオード
83 ダイオード
200 移設検出システム
5 CPU
6 ROM
8 Flash Memory 9 Input / Output Interface 10 Converter 11 Communication Distance Measuring Circuit 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 45 comparator 58 communication distance calculation circuit 81 diode 82 diode 83 diode 200 relocation detection system

Claims (5)

移設を検出する移設検出手段と、当該移設検出手段と接続した機械と、前記移設検出手段が移設を検出した場合に、前記機械の稼働を禁止する稼動禁止手段とを備えた移設検出システムにおいて、
前記機械は、個別の識別情報を記憶する機械記憶手段を備え、
前記移設検出手段は、
前記機械と、他の移設検出手段と接続可能な入出力部と、
当該入出力部に接続した前記機械と、前記他の移設検出手段に接続する機械の前記識別情報を取得する識別情報取得手段と、
当該識別情報取得手段によって取得された前記識別情報を記憶する識別情報記憶手段と
を備え、
前記機械記憶手段に記憶した識別情報と、前記識別情報記憶手段に記憶した前記識別情報とが一致しているか否かを判断する識別情報一致判断手段と、
当該識別情報一致判断手段によって前記識別情報が互いに一致していると判断された場合にのみ、前記機械に対して稼動を許可する稼動許可手段と
を備えたことを特徴とする移設検出システム。
In a relocation detection system comprising relocation detection means for detecting relocation, a machine connected to the relocation detection means, and an operation prohibiting means for prohibiting operation of the machine when the relocation detection means detects relocation,
The machine includes machine storage means for storing individual identification information,
The relocation detection means includes
An input / output unit connectable to the machine and other moving detection means;
Identification information acquisition means for acquiring the identification information of the machine connected to the input / output unit and the machine connected to the other relocation detection means;
An identification information storage means for storing the identification information acquired by the identification information acquisition means,
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;
A relocation detection system comprising: an 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.
前記移設検出手段は、交流電源から直流電源へ変換する変換機を備え、
前記変換機は、前記機械の電源とは独立した交流電源を直流電源に変換して前記移設検出手段を駆動することを特徴とする請求項1に記載の移設検出システム。
The relocation detection means includes a converter for converting from an AC power source to a DC power source,
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 means.
前記移設検出手段は、
前記変換機の異常を検出する異常検出手段と、
当該異常検出手段が前記異常を検出した場合、前記機械の電源を前記移設検出手段に供給する電源供給手段と、
前記異常検出手段が前記異常を検出した場合、前記機械に異常を報知する報知手段と
を備えたことを特徴とする請求項2に記載の移設検出システム。
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;
The relocation detection system according to claim 2, further comprising notification means for notifying the machine of an abnormality when the abnormality detection means detects the abnormality.
前記移設検出手段は、
当該移設検出手段の電源バックアップをする補助電池と、
前記変換機の異常を検出する異常検出手段と、
当該異常検出手段が前記異常を検出した場合、前記変換機によって変換した直流電源から前記補助電池の電源を前記移設検出手段に供給するように切替える切替え手段と
を備えたことを特徴とする請求項2に記載の移設検出システム。
The relocation detection means includes
An auxiliary battery for power backup of the relocation detection 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. The relocation detection system according to 2.
前記移設検出手段は、前記補助電池の電源供給の有無を検出する補助電池供給検出手段と、補助電池供給検出手段が電源供給の無いことを検出した場合、前記識別情報記憶手段に記憶した前記識別情報を削除する削除手段とを備えたことを特徴とする請求項4に記載の移設検出システム。   The relocation detection means includes an auxiliary battery supply detection means for detecting the presence or absence of power supply of the auxiliary battery, and the identification information stored in the identification information storage means when the auxiliary battery supply detection means detects no power supply. 5. The relocation detection system according to claim 4, further comprising deletion means for deleting information.
JP2010057091A 2010-02-26 2010-03-15 Relocation detection system Active JP5126259B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2010057091A JP5126259B2 (en) 2010-03-15 2010-03-15 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
JP2010057091A JP5126259B2 (en) 2010-03-15 2010-03-15 Relocation detection system

Publications (2)

Publication Number Publication Date
JP2011191984A true JP2011191984A (en) 2011-09-29
JP5126259B2 JP5126259B2 (en) 2013-01-23

Family

ID=44796828

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010057091A Active JP5126259B2 (en) 2010-02-26 2010-03-15 Relocation detection system

Country Status (1)

Country Link
JP (1) JP5126259B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9904276B2 (en) 2013-11-11 2018-02-27 Mitsubishi Electric Corporation Access-level control apparatus
JP2018141704A (en) * 2017-02-28 2018-09-13 ブラザー工業株式会社 Relocation detection device, relocation detection system and relocation detection method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002166019A (en) * 2000-11-30 2002-06-11 Omron Corp Game information control system and information recording medium processor
JP2004132916A (en) * 2002-10-15 2004-04-30 Sokkia Co Ltd Remote controller for survey airplane
JP2004348641A (en) * 2003-05-26 2004-12-09 Nec Corp Backup method for computer and its power supply
JP2005107646A (en) * 2003-09-29 2005-04-21 Mori Seiki Co Ltd System for managing operational state of machine tool
JP2006149029A (en) * 2004-11-17 2006-06-08 Oki Power Tech Co Ltd Power supply
WO2007108127A1 (en) * 2006-03-23 2007-09-27 Mitsubishi Denki Kabushiki Kaisha System program download system
JP2007295409A (en) * 2006-04-26 2007-11-08 Chugoku Electric Power Co Inc:The Line concentrator including antitheft function, and antitheft system
JP2009251694A (en) * 2008-04-01 2009-10-29 Fanuc Ltd Numerical controller having function of releasing automatic operation prohibited state

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002166019A (en) * 2000-11-30 2002-06-11 Omron Corp Game information control system and information recording medium processor
JP2004132916A (en) * 2002-10-15 2004-04-30 Sokkia Co Ltd Remote controller for survey airplane
JP2004348641A (en) * 2003-05-26 2004-12-09 Nec Corp Backup method for computer and its power supply
JP2005107646A (en) * 2003-09-29 2005-04-21 Mori Seiki Co Ltd System for managing operational state of machine tool
JP2006149029A (en) * 2004-11-17 2006-06-08 Oki Power Tech Co Ltd Power supply
WO2007108127A1 (en) * 2006-03-23 2007-09-27 Mitsubishi Denki Kabushiki Kaisha System program download system
JP2007295409A (en) * 2006-04-26 2007-11-08 Chugoku Electric Power Co Inc:The Line concentrator including antitheft function, and antitheft system
JP2009251694A (en) * 2008-04-01 2009-10-29 Fanuc Ltd Numerical controller having function of releasing automatic operation prohibited state

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9904276B2 (en) 2013-11-11 2018-02-27 Mitsubishi Electric Corporation Access-level control apparatus
JP2018141704A (en) * 2017-02-28 2018-09-13 ブラザー工業株式会社 Relocation detection device, relocation detection system and relocation detection method

Also Published As

Publication number Publication date
JP5126259B2 (en) 2013-01-23

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
JP2007501979A (en) Process equipment with loop override
JP5397270B2 (en) Relocation detection system
JP6088049B2 (en) Construction machinery
JP5126259B2 (en) Relocation detection system
WO2017073071A1 (en) Fuel cell device, fuel cell system, method for controlling fuel cell system, and controller
JP5397271B2 (en) Relocation detection system
KR20190001203U (en) Bus duct temperature monitoring system having warning light
KR101765940B1 (en) Power control method and system using wireless communication
JP2009274845A (en) Maintenance center device and elevator control device for remotely monitoring a plurality of kinds of elevators
JP2011093389A (en) Control system, electronic devices, control device, and method for starting devices
JP5397272B2 (en) Relocation detection system
JP4588373B2 (en) Power supply, power authentication system
JP2008126336A (en) Relocation detection device of machine tool
JP6766689B2 (en) Relocation detection device, relocation detection system and relocation detection method
JP2010157011A (en) Report device and elevator basket
CN101349902B (en) Method, controller and system for binding inclination angle sensor
KR101767471B1 (en) Intelligent Power Supplying Device
KR101474848B1 (en) Lifetime estimating and management device of surge protector
KR101499617B1 (en) Auto standby power supply apparatus and method according to user intention understanding
KR20190093526A (en) Factory management server and factory system management method using the same
JP2001142361A (en) Remote centralized control system
JP2009129151A (en) Numerical control device with relocation determination function
KR101410870B1 (en) Structure for Power Supplying for Cluster System of Construction Heavy Machine
JP5970418B2 (en) Electronics

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: 20120704

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120710

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120907

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: 20121002

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121015

R150 Certificate of patent or registration of utility model

Ref document number: 5126259

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20151109

Year of fee payment: 3