JP6460807B2 - Device ID assignment system - Google Patents
Device ID assignment system Download PDFInfo
- Publication number
- JP6460807B2 JP6460807B2 JP2015010167A JP2015010167A JP6460807B2 JP 6460807 B2 JP6460807 B2 JP 6460807B2 JP 2015010167 A JP2015010167 A JP 2015010167A JP 2015010167 A JP2015010167 A JP 2015010167A JP 6460807 B2 JP6460807 B2 JP 6460807B2
- Authority
- JP
- Japan
- Prior art keywords
- allocation
- assignment
- devices
- input
- port
- 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.)
- Active
Links
- 238000004891 communication Methods 0.000 claims description 36
- 238000000034 method Methods 0.000 claims description 26
- 238000012545 processing Methods 0.000 description 13
- 230000005540 biological transmission Effects 0.000 description 6
- 238000012790 confirmation Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Landscapes
- Small-Scale Networks (AREA)
Description
本発明は、通信ラインで接続した複数の機器にID(識別番号)を自動的に割り付ける機器ID割り付けシステムに関する発明である。 The present invention relates to a device ID assignment system that automatically assigns IDs (identification numbers) to a plurality of devices connected via a communication line.
特許文献1(特許第2959403号公報)に記載されたネットワーク機器の自動ID割り付け方法では、各ポート毎にパケットが通るデータ線とは別の管理情報を通信するための管理用データ線を有し、各ポート毎に、接続されているLAN機器を管理する接続台数テーブルと接続されているLAN機器にID番号を割り付ける通信手段を有するマスターLAN機器と、前記管理用データ線に接続可能な上位LAN機器接続用ポートと、下位のLAN機器の管理用データ線に接続可能な下位LAN機器接続用ポートと、IDを保存するためのレジスタと、管理用データ線からのデータに含まれる送信先のIDを検出する手段と、検出された送信先のIDを前記レジスタのIDと比較する手段と、比較した結果によって上位LAN機器接続用ポートと下位LAN機器接続用ポートの接続又は切り離しを制御する手段と、IDを検出するまで管理用データ線からのデータを格納する手段と、格納されたデータをID検出後に順次送信する手段を有し、マスターLAN機器の各ポートに複数台接続可能なスレーブLAN機器とで構成され、ID未割り付け状態のスレーブLAN機器は前記レジスタに初期値としてスレーブLAN機器が接続可能な台数よりも大きなIDを設定し、上位LAN機器接続用ポートと下位LAN機器接続用ポートの管理用データ線を切り離しており、マスターLAN機器は各ポート毎に接続台数テーブルを参照してスレーブLAN機器識別のためのID番号をID割り付けコマンド信号として管理用データ線に送信し、スレーブLAN機器は前記ID割り付けコマンド信号を受信し、この管理用データの受信過程で送信先のIDを検出して前記レジスタのIDと比較し、送信先のIDの方が小さいならば受信したID番号を自己IDとして前記レジスタに保存し、自己ID割り付け確認信号を上位LAN機器接続用ポートを通してマスターLAN機器に送信し、前記比較結果が送信先のIDの方が大きいならば上位LAN機器接続用ポートと下位LAN機器接続用ポートの管理用データ線を接続して下位LAN機器接続用ポートに管理用データを送信し、自己ID割り付け確認信号を受信したマスターLAN機器はそのポートの接続台数テーブルを更新し、スレーブLAN機器識別のための別のID番号を含んだID割り付けコマンド信号を管理用データ線に送信し、既に自己IDを割り付けられたスレーブLAN機器は下位ポートへ送信する動作を繰り返すことによって各スレーブLAN機器のID番号を割り付けるようにしている。 In the automatic ID assignment method for network devices described in Patent Document 1 (Japanese Patent No. 2959403), each port has a management data line for communicating management information different from the data line through which the packet passes. A master LAN device having communication means for assigning an ID number to a connected LAN device, and a host LAN that can be connected to the management data line, for each port; Device connection port, lower LAN device connection port connectable to lower LAN device management data line, register for storing ID, and transmission destination ID included in data from management data line Detecting means, means for comparing the ID of the detected transmission destination with the ID of the register, and for connecting the upper LAN device according to the comparison result A means for controlling connection or disconnection between a port and a lower LAN device connection port, a means for storing data from the management data line until an ID is detected, and a means for sequentially transmitting the stored data after detecting the ID. The slave LAN device is configured with a plurality of slave LAN devices that can be connected to each port of the master LAN device, and the ID of the slave LAN device that is not assigned an ID is larger than the number of slave LAN devices that can be connected to the register as an initial value. And the management data line of the upper LAN device connection port and the lower LAN device connection port are separated, and the master LAN device refers to the connection number table for each port and identifies the ID for identifying the slave LAN device. The number is sent to the management data line as an ID assignment command signal, and the slave LAN device assigns the ID assignment Receiving the command signal, detecting the ID of the transmission destination in the process of receiving the management data and comparing it with the ID of the register. If the ID of the transmission destination is smaller, the received ID number is set as the self ID. And the self ID assignment confirmation signal is transmitted to the master LAN device through the upper LAN device connection port, and if the comparison result shows that the destination ID is larger, the upper LAN device connection port and the lower LAN device connection Connect the management data line of the port, send the management data to the lower LAN device connection port, and the master LAN device that has received the self ID assignment confirmation signal updates the connection number table of that port and identifies the slave LAN device. An ID assignment command signal including another ID number for the ID is transmitted to the management data line, and the self ID is assigned. The slave LAN device assigns the ID number of each slave LAN device by repeating the operation of transmitting to the lower port.
上記特許文献1の構成では、通信ラインで接続した複数の機器にIDを割り付けるための構成と制御が複雑であり、その分、トラブル発生の頻度が多くなると共に、トラブル発生時の原因究明の難易度が高くなるという欠点があった。
In the configuration of
そこで、本発明が解決しようとする課題は、通信ラインで接続した複数の機器にIDを割り付けるための構成と制御を簡単化できる機器ID割り付けシステムを提供することである。 Therefore, the problem to be solved by the present invention is to provide a device ID assignment system capable of simplifying the configuration and control for assigning IDs to a plurality of devices connected by a communication line.
上記課題を解決するために、本発明は、通信ラインで接続した複数の機器にIDを自動的に割り付ける機器ID割り付けシステムにおいて、前記複数の機器の各々にID割り付け用入力ポートとID割り付け用出力ポートを設けると共に、各機器のID割り付け用出力ポートと各機器のID割り付け用入力ポートとの間をID割り付け用I/Oラインで接続して、前記複数の機器を前記ID割り付け用I/Oラインでデイジーチェーン接続し、前記各機器の制御部は、各機器のID割り付け用入力ポートの入力レベルに基づいて前記複数の機器にIDを順番に割り付けると共に、電源投入後に自身のID割り付け用入力ポートの入力レベルに基づいて自身のID割り付け用入力ポートに他の機器が接続されていない1台目の機器か2台目以降の機器かを判定し、1台目の機器と判定した場合には、1台目のIDを自身のIDに割り付けて前記通信ラインで2台目以降の機器にID割り付け開始コマンドを送信し、2台目以降の機器と判定した場合には、前記ID割り付け開始コマンドを受信したときに、自身のID割り付け用入力ポートの入力レベルに基づいて自身のID割り付け用入力ポートに接続した機器のIDの次の順番のIDを自身のIDに割り付けて前記通信ラインで他の機器にID割り付け開始コマンドを送信するという処理を繰り返すことで前記2台目以降の機器にIDを順番に割り付ける、機器ID割り付けシステムであって、前記複数の機器は、電源投入が同時に行われ、前記各機器の制御部は、電源投入により各機器のID割り付け用出力ポートの出力レベルをローレベルからハイレベルに反転させ、自身のID割り付け完了後に自身のID割り付け用出力ポートの出力レベルをローレベルに反転させ、更に、前記2台目以降の各機器の制御部は、自身のID割り付け用入力ポートの入力レベルがローレベルになっている状態で、前記ID割り付け開始コマンドを受信したときに、自身のID割り付け用入力ポートに接続した機器のIDの次の順番のIDを自身のIDに割り付けると共に、自身のID割り付け完了後に他の機器に前記通信ラインでID割り付け完了コマンドを送信し、自身のID割り付け完了からID割り付け処理に必要十分な所定時間経過しても他の機器からID割り付け完了コマンドを受信しないときに、自身のID割り付け用出力ポートに他の機器が接続されていない最後尾の機器と判断して前記通信ラインで他の機器に最後尾機器ID割り付け完了コマンドを送信して全ての機器のID割り付け処理を終了するようにしたものである。
In order to solve the above-described problems, the present invention provides an apparatus for assigning IDs to a plurality of devices connected via a communication line, and an ID assignment input port and an ID assignment output for each of the plurality of devices. In addition to providing a port, an ID allocation output port of each device and an ID allocation input port of each device are connected by an ID allocation I / O line, and the plurality of devices are connected to the ID allocation I / O. The control unit of each device assigns IDs to the plurality of devices in order based on the input level of the ID assignment input port of each device, and inputs its own ID assignment after power-on. Based on the input level of the port, the first device that has no other device connected to its input port for ID assignment, or the second device or later If it is determined that the device is the first device, the first device ID is assigned to its own ID and an ID assignment start command is transmitted to the second and subsequent devices via the communication line. When it is determined that the device is a device subsequent to the ID, when the ID allocation start command is received, the ID of the device connected to the input port for ID allocation based on the input level of the input port for ID allocation Device ID allocation that assigns IDs in order to the second and subsequent devices by repeating the process of assigning the next ID to its own ID and sending an ID assignment start command to other devices via the communication line In the system, the plurality of devices are simultaneously turned on, and the control unit of each device outputs the output level of the ID allocation output port of each device when the power is turned on. Inverting from low level to high level, after completing the ID allocation of itself, the output level of its own ID allocation output port is inverted to low level. When the input level of the input port for allocation is at a low level and the ID allocation start command is received, the ID in the next order of the ID of the device connected to the input port for ID allocation of itself is set. In addition to assigning the ID, the ID assignment completion command is transmitted to the other device after the completion of the assignment of the own ID through the communication line. When the ID assignment complete command is not received, the last device to which no other device is connected to its own ID assignment output port A device ID assignment completion command is transmitted to other devices via the communication line by judging that the device is the device, and the ID assignment processing for all devices is completed .
本発明では、複数の機器をID割り付け用I/Oラインでデイジーチェーン接続し、各機器の制御部によって各機器のID割り付け用入力ポートの入力レベルに基づいて複数の機器にIDを順番に割り付けるようにしているため、通信ラインで接続した複数の機器にIDを割り付けるための構成と制御を簡単化することが可能となる。 In the present invention, a plurality of devices are daisy-chain connected by ID allocation I / O lines, and IDs are sequentially allocated to the plurality of devices based on the input level of the ID allocation input port of each device by the control unit of each device. Therefore, the configuration and control for assigning IDs to a plurality of devices connected via a communication line can be simplified.
以下、本発明を実施するための形態を具体化した一実施例を説明する。 Hereinafter, an embodiment embodying a mode for carrying out the present invention will be described.
まず、図1に基づいて本実施例の機器ID割り付けシステムのハードウエア構成を説明する。 First, the hardware configuration of the device ID assignment system of this embodiment will be described with reference to FIG.
本実施例では、3台の機器1〜3の通信ポート4〜6を通信ライン11で相互に通信可能に接続した例について説明するが、機器の接続台数は、3台に限定されず、2台又は4台以上であっても良いことは言うまでもない。各機器1〜3は、部品実装機に搭載されたモータ制御ユニット、モータ以外のアクチュエータ制御ユニット等、IDを割り付ける必要がある機器である。
In this embodiment, an example in which the
各機器1〜3には、それぞれID割り付け用入力ポートIN1〜IN3とID割り付け用出力ポートOUT1〜OUT3が設けられている。各機器1,2のID割り付け用出力ポートOUT1,OUT2と各機器2,3のID割り付け用入力ポートIN2,IN3との間をID割り付け用I/Oライン12,13で接続して、3台の機器1〜3をID割り付け用I/Oライン12,13でデイジーチェーン接続方式で数珠つなぎに接続している。
The
各機器1〜3の制御部7〜9は、それぞれマイクロコンピュータを主体として構成され電源投入時に後述する図3及び図4の機器ID割り付けプログラムを実行することで、図2に示すように、各機器1〜3のID割り付け用入力ポートIN1〜IN3の入力レベルに基づいて3台の機器1〜3にIDを順番に割り付ける。
As shown in FIG. 2, each of the
3台の機器1〜3は、部品実装機への電源投入により同時に電源投入されるように構成されている。各機器1〜3の制御部7〜9は、電源投入により図3及び図4の機器ID割り付けプログラムを起動して機器ID割り付け処理を開始し、次のようにして3台の機器1〜3にIDを順番に割り付ける。電源投入により本プログラムが起動されると、各機器1〜3の制御部7〜9は、まず、ステップ101で、ID割り付け用出力ポートOUT1〜OUT3の出力をLow(ローレベル)からHigh(ハイレベルレベル)に反転させる。これにより、3台の機器1〜3のID割り付け用出力ポートOUT1〜OUT3の出力が電源投入と同時にHighに反転する。
The three
この後、各機器1〜3の制御部7〜9は、ステップ102に進み、自身のID割り付け用入力ポートIN1〜IN3の入力がLowであるか否かで1台目(デイジーチェーン接続の先頭)の機器1であるか2台目以降の機器2,3であるかを判定する。1台目の機器1のID割り付け用入力ポートIN1には他の機器2,3のID割り付け用出力ポートOUT2,OUT3が接続されていないため、電源投入後も1台目の機器1のID割り付け用入力ポートIN1の入力はLowに維持されるが、2台目以降の機器2,3のID割り付け用入力ポートIN2,IN3には他の機器1,2のID割り付け用出力ポートOUT1,OUT2が接続されているため、2台目以降の機器2,3のID割り付け用入力ポートIN2,IN3の入力は電源投入と同時にHighに反転する。
Thereafter, the
従って、1台目の機器1の制御部7は、電源投入後もID割り付け用入力ポートIN1の入力がLowに維持されるため、上記ステップ102で、「Yes」と判定して、1台目の機器1であることを認識して、ステップ103〜110の処理を次のように実行する。1台目の機器1の制御部7は、まず、ステップ103で、通信ライン11を使用して2台目以降の機器2,3にID割り付け開始コマンドを送信する(1回目のID割り付け開始コマンド送信)。
Therefore, the
この後、1台目の機器1の制御部7は、ステップ104に進み、1台目のID(ID_1)を自身のIDに割り付けた後、ステップ105に進み、1台目の機器1のID割り付け用出力ポートOUT1の出力をLowに反転する。これにより、2台目の機器2のID割り付け用入力ポートIN2の入力がLowに反転する。
Thereafter, the
その後、1台目の機器1の制御部7は、ステップ106に進み、通信ライン11を使用して2台目以降の機器2,3にID割り付け開始コマンドを送信する(2回目のID割り付け開始コマンド送信)。この後、1台目の機器1の制御部7は、ステップ107に進み、2台目以降の機器2,3からのID割り付け開始コマンドを無視する。
Thereafter, the
この後、1台目の機器1の制御部7は、ステップ108に進み、自身のID割り付け完了から2台目の機器2のID割り付け処理に必要十分な所定時間経過するまでに2台目の機器2からID割り付け完了コマンドを受信したか否かを判定する。ここで、所定時間経過するまでに2台目の機器2からID割り付け完了コマンドを1台目の機器1の制御部7が受信しない場合は、2台目の機器2が接続されていないか(機器2の接続が外れているか)、又は2台目の機器2のID割り付け機能が正常に動作していないことを意味するため、上記ステップ108で、所定時間経過するまでに2台目の機器2からID割り付け完了コマンドを1台目の機器1の制御部7が受信していないと判定すれば、ステップ110に進み、機器ID割り付け処理を終了する。この場合は、表示装置(図示せず)に2台目の機器2の接続エラーを表示して作業者に2台目の機器2の接続を確認するように促すようにしても良い。
Thereafter, the
上述したステップ108で、所定時間経過するまでに2台目の機器2からID割り付け完了コマンドを1台目の機器1の制御部7が受信したと判定すれば、ステップ109に進み、デイジーチェーン接続の最後尾(末尾)の機器である3台目の機器3のID割り付け完了後に通信ライン11で送信されてくる最後尾機器ID割り付け完了コマンドを1台目の機器1の制御部7が受信するまで待機する。その後、1台目の機器1の制御部7が最後尾機器ID割り付け完了コマンドを受信した時点で、ステップ110に進み、機器ID割り付け処理を終了する。
If it is determined in
一方、2台目以降の機器2,3の制御部8,9は、ID割り付け用入力ポートIN2,IN3の入力が電源投入と同時にHighに反転するため、上記ステップ102で、「No」と判定して、2台目以降の機器2,3であることを認識して、図4のステップ111以降の処理を次のように実行する。2台目以降の機器2,3の制御部8,9は、まず、ステップ111で、1台目の機器1から送信されてくる1回目のID割り付け開始コマンドを無視する。
On the other hand, the
この後、2台目以降の機器2,3の制御部8,9は、ステップ112に進み、自身のID割り付け用入力ポートIN2,IN3の入力がLowであるか否かを判定する。1台目の機器1のID割り付けが完了するまでは、2台目以降の機器2,3のID割り付け用入力ポートIN2,IN3の入力がHighに維持されるため、ID割り付け用入力ポートIN2,IN3の入力がLowに反転するまで上記ステップ112で待機する。
Thereafter, the
その後、1台目の機器1のID割り付けが完了すると、1台目の機器1のID割り付け用出力ポートOUT1の出力がLowに反転するため、2台目の機器2のID割り付け用入力ポートIN2の入力がLowに反転する。この段階では、3台目の機器3のID割り付け用入力ポートIN3の入力はHighに維持されたままである。
Thereafter, when the ID assignment of the
1台目の機器1のID割り付けが完了して2台目の機器2のID割り付け用入力ポートIN2の入力がLowに反転した時点で、2台目の機器2の制御部8は、上記ステップ112で「Yes」と判定して、ステップ113に進み、ID割り付け開始コマンドの受信回数(この時点では2回)に応じて増加させた2台目のID(ID_2)を自身のIDに割り付ける。この際、ID割り付け開始コマンドの受信回数に応じてIDを1ずつ増やしても良いし、2以上の数ずつ増やしても良い。
When the ID assignment of the
この後、2台目の機器2の制御部8は、ステップ114に進み、通信ライン11を使用してID割り付け完了コマンドを1台前の機器である1台目の機器1へ送信した後、ステップ115に進み、2台目の機器2のID割り付け用出力ポートOUT2の出力をLowに反転する。これにより、3台目の機器3のID割り付け用入力ポートIN3の入力がLowに反転する。
Thereafter, the
その後、2台目の機器2の制御部8は、ステップ116に進み、通信ライン11を使用してID割り付け開始コマンドを他の機器1,3へ送信する(3回目のID割り付け開始コマンド送信)。この後、2台目の機器2の制御部8は、ステップ117に進み、他の機器1,3から送信されてくるID割り付け開始コマンドを無視する。
Thereafter, the
この後、2台目の機器2の制御部8は、ステップ118に進み、自身のID割り付け完了から3台目の機器3のID割り付け処理に必要十分な所定時間経過するまでに3台目の機器3からID割り付け完了コマンドを受信したか否かを判定する。3台目の機器3のID割り付けが正常に完了すれば、2台目の機器2の制御部8は、所定時間経過するまでに3台目の機器3からID割り付け完了コマンドを受信するため、上記ステップ118で「Yes」と判定して、ステップ120に進み、最後尾の機器である3台目の機器3のID割り付け完了後に通信ライン11で送信されてくる最後尾機器ID割り付け完了コマンドを2台目の機器2の制御部8が受信するまで待機する。その後、2台目の機器2の制御部8が最後尾機器ID割り付け完了コマンドを受信した時点で、ステップ121に進み、機器ID割り付け処理を終了する。
Thereafter, the
これに対し、所定時間経過するまでに3台目の機器3からID割り付け完了コマンドを2台目の機器2の制御部8が受信しない場合は、3台目の機器3が接続されていないか(機器3の接続が外れているか)、又は3台目の機器3のID割り付け機能が正常に動作していないことを意味するため、上記ステップ118で、所定時間経過するまでに3台目の機器3からID割り付け完了コマンドを2台目の機器2の制御部8が受信していないと判定すれば、2台目の機器2の制御部8は、ステップ119に進み、通信ライン11を使用して最後尾機器ID割り付け完了コマンドを他の機器1,3へ送信した後、ステップ121に進み、機器ID割り付け処理を終了する。この場合は、2台の機器1,2のIDのみが割り付けられて、3台目の機器3のIDが割り付けられずに、ID割り付け処理が終了するため、表示装置(図示せず)に3台目の機器3の接続エラーを表示して作業者に3台目の機器3の接続を確認するように促すようにしても良い。
On the other hand, if the
一方、2台目の機器2のID割り付けが完了して3台目の機器3のID割り付け用入力ポートIN3の入力がLowに反転した時点で、3台目の機器3の制御部9は、上記ステップ112で「Yes」と判定して、ステップ113に進み、ID割り付け開始コマンドの受信回数(この時点では3回)に応じて増加させた3台目のID(ID_3)を自身のIDに割り付ける。この際、ID割り付け開始コマンドの受信回数に応じてIDを1ずつ増やしても良いし、2以上の数ずつ増やしても良い。
On the other hand, when the ID assignment of the
この後、3台目の機器3の制御部9は、ステップ114に進み、通信ライン11を使用してID割り付け完了コマンドを1台前の機器である2台目の機器2へ送信した後、ステップ115に進み、3台目の機器3のID割り付け用出力ポートOUT3の出力をLowに反転する。この後、3台目の機器3の制御部9は、ステップ116に進み、通信ライン11を使用してID割り付け開始コマンドを他の機器1,2へ送信した後、ステップ117に進み、他の機器1,2から送信されてくるID割り付け開始コマンドを無視する。
Thereafter, the
この後、3台目の機器3の制御部9は、ステップ118に進み、自身のID割り付け完了から次の機器(1台後)のID割り付け処理に必要十分な所定時間経過するまでに次の機器からID割り付け完了コマンドを受信したか否かを判定する。本実施例では、3台目の機器3は、最後尾の機器で、4台目以降の機器が接続されていないため、3台目の機器3の制御部9は、所定時間経過するまでにID割り付け完了コマンドを受信しない。これにより、3台目の機器3の制御部9は、上記ステップ118で、「No」と判定して、3台目の機器3が最後尾の機器であると認識して、ステップ119に進み、通信ライン11を使用して最後尾機器ID割り付け完了コマンドを他の機器1,2へ送信した後、ステップ121に進み、機器ID割り付け処理を終了する。これにより、全ての機器1〜3のID割り付け処理を終了する。部品実装機の制御装置(図示せず)は、各機器1〜3に割り付けられたIDに基づいて各機器1〜3を識別して各機器1〜3の制御部7〜9に制御信号を出力する。
Thereafter, the
4台以上の機器が接続されている場合は、4台目以降の機器の制御部も、3台目の機器の制御部と同様に図4のステップ111以降の処理を実行すれば良い。
When four or more devices are connected, the control units of the fourth and subsequent devices may execute the processing after
以上説明した本実施例によれば、複数の機器1〜3をID割り付け用I/Oライン12,13でデイジーチェーン接続し、各機器1〜3の制御部7〜9によって各機器1〜3のID割り付け用入力ポートIN1〜IN3の入力レベルに基づいて複数の機器1〜3にIDを順番に割り付けるようにしているため、通信ライン11で接続した複数の機器1〜3にIDを割り付けるための構成と制御を簡単化することが可能となり、トラブル発生の頻度が少なくなると共に、トラブル発生時の原因究明が容易となる。
According to the present embodiment described above, a plurality of
更に、本実施例では、各機器1〜3の制御部7〜9は、電源投入後に自身のID割り付け用入力ポートIN1〜IN3の入力レベルに基づいて自身のID割り付け用入力ポートIN1〜IN3に他の機器が接続されていない1台目の機器1か2台目以降の機器2,3かを判定し、1台目の機器1と判定した場合には、1台目のIDを自身のIDに割り付けて前記通信ライン11で2台目以降の機器2,3にID割り付け開始コマンドを送信し、2台目以降の機器2,3と判定した場合には、前記ID割り付け開始コマンドを受信したときに、自身のID割り付け用入力ポートIN2,IN3の入力レベルに基づいて自身のID割り付け用入力ポートIN2,IN3に接続した機器1,2のIDの次の順番のIDを自身のIDに割り付けて前記通信ライン11で他の機器にID割り付け開始コマンドを送信するという処理を繰り返すことで前記2台目以降の機器2,3にIDを順番に割り付けるようにした。これにより、2台目以降の機器2,3にIDを順番に自動的に割り付けることができる。
Furthermore, in the present embodiment, the
更に、本実施例では、複数の機器1〜3は、電源投入が同時に行われ、各機器1〜3の制御部7〜9は、電源投入により各機器1〜3のID割り付け用出力ポートOUT1〜OUT3の出力レベルをローレベルからハイレベルに反転させ、自身のID割り付け完了後に自身のID割り付け用出力ポートOUT1〜OUT3の出力レベルをローレベルに反転するようにしたので、電源投入後に、いずれかの機器1〜3のID割り付け用出力ポートOUT1〜OUT3の出力レベルがハイレベルからローレベルに反転した時点で、当該機器1〜3のIDの割り付けが完了したことが他の機器にも分かる。
Further, in the present embodiment, the plurality of
また、本実施例では、2台目以降の各機器2,3の制御部8,9は、自身のID割り付け用入力ポートIN2,IN3の入力レベルがローレベルになっている状態(つまり自身のID割り付け用入力ポートIN2,IN3に接続した機器1,2のIDの割り付けが完了した状態)で、前記ID割り付け開始コマンドを受信したときに、自身のID割り付け用入力ポートIN2,IN3に接続した機器1,2のIDの次の順番のIDを自身のIDに割り付けるようにした。これにより、2台目以降の機器2,3にIDを順番に自動的に割り付けることができる。
In the present embodiment, the
また、本実施例では、2台目以降の各機器2,3の制御部8,9は、自身のID割り付け完了後に他の機器に通信ライン11でID割り付け完了コマンドを送信し、自身のID割り付け完了からID割り付け処理に必要十分な所定時間経過しても他の機器からID割り付け完了コマンドを受信しないときに、自身のID割り付け用出力ポートOUT2,OUT3に他の機器が接続されていない最後尾の機器3と判断して通信ライン11で他の機器1,2に最後尾機器ID割り付け完了コマンドを送信して全ての機器1〜3のID割り付け処理を終了するようにした。これにより、最後尾の機器3を正確に判断して、全ての機器1〜3のID割り付け処理を終了することができる。
In the present embodiment, the
また、本実施例では、2台目以降の各機器2,3の制御部8,9は、前記ID割り付け開始コマンドに含まれるIDに+1増加させたIDを自身のIDに割り付けるようにしたので、2台目以降の各機器2,3に+1ずつ増加させたIDを自動的に割り付けることができる。
Further, in the present embodiment, the
本発明は、通信ラインで接続した複数の機器にIDを自動的に割り付けるシステムであれば、様々な機器に適用可能であり、また、複数の機器は、1つの装置内に搭載されたものであっても良く、例えば、複数の機器は、部品実装機に搭載されていても良い。 The present invention can be applied to various devices as long as the system automatically assigns IDs to a plurality of devices connected via a communication line, and the plurality of devices are mounted in one apparatus. For example, a plurality of devices may be mounted on a component mounter.
尚、本発明は、部品実装機に搭載された機器に限定されず、通信ラインで接続した複数の機器にIDを自動的に割り付けるシステムであれば、様々な機器に適用可能であり、勿論、1つの装置に搭載されない複数の機器のID割り付けにも適用可能である等、要旨を逸脱しない範囲内で種々変更して実施できることは言うまでもない。 The present invention is not limited to a device mounted on a component mounter, and can be applied to various devices as long as the system automatically assigns IDs to a plurality of devices connected via a communication line. Needless to say, various modifications can be made without departing from the gist of the invention, such as being applicable to ID assignment of a plurality of devices not mounted on a single device.
1〜3…機器、4〜6…通信ポート、7〜9…制御部、11…通信ライン、12,13…ID割り付け用I/Oライン、IN1〜IN3…ID割り付け用入力ポート、OUT1〜OUT3…ID割り付け用出力ポート DESCRIPTION OF SYMBOLS 1-3 ... Apparatus, 4-6 ... Communication port, 7-9 ... Control part, 11 ... Communication line, 12, 13 ... ID allocation I / O line, IN1-IN3 ... ID allocation input port, OUT1-OUT3 ... Output port for ID assignment
Claims (3)
前記複数の機器の各々にID割り付け用入力ポートとID割り付け用出力ポートを設けると共に、前記複数の機器について各機器のID割り付け用出力ポートと各機器のID割り付け用入力ポートとの間をID割り付け用I/Oラインで接続して、前記複数の機器を前記ID割り付け用I/Oラインでデイジーチェーン接続し、
前記各機器の制御部は、各機器のID割り付け用入力ポートの入力レベルに基づいて前記複数の機器にIDを順番に割り付けると共に、電源投入後に自身のID割り付け用入力ポートの入力レベルに基づいて自身のID割り付け用入力ポートに他の機器が接続されていない1台目の機器か2台目以降の機器かを判定し、1台目の機器と判定した場合には、1台目のIDを自身のIDに割り付けて前記通信ラインで2台目以降の機器にID割り付け開始コマンドを送信し、2台目以降の機器と判定した場合には、前記ID割り付け開始コマンドを受信したときに、自身のID割り付け用入力ポートの入力レベルに基づいて自身のID割り付け用入力ポートに接続した機器のIDの次の順番のIDを自身のIDに割り付けて前記通信ラインで他の機器にID割り付け開始コマンドを送信するという処理を繰り返すことで前記2台目以降の機器にIDを順番に割り付ける、機器ID割り付けシステムであって、
前記複数の機器は、電源投入が同時に行われ、
前記各機器の制御部は、電源投入により各機器のID割り付け用出力ポートの出力レベルをローレベルからハイレベルに反転させ、自身のID割り付け完了後に自身のID割り付け用出力ポートの出力レベルをローレベルに反転させ、
前記2台目以降の各機器の制御部は、自身のID割り付け用入力ポートの入力レベルがローレベルになっている状態で、前記ID割り付け開始コマンドを受信したときに、自身のID割り付け用入力ポートに接続した機器のIDの次の順番のIDを自身のIDに割り付けると共に、自身のID割り付け完了後に他の機器に前記通信ラインでID割り付け完了コマンドを送信し、自身のID割り付け完了からID割り付け処理に必要十分な所定時間経過しても他の機器からID割り付け完了コマンドを受信しないときに、自身のID割り付け用出力ポートに他の機器が接続されていない最後尾の機器と判断して前記通信ラインで他の機器に最後尾機器ID割り付け完了コマンドを送信して全ての機器のID割り付け処理を終了することを特徴とする機器ID割り付けシステム。 In a device ID assignment system that automatically assigns IDs to a plurality of devices connected via a communication line,
Each of the plurality of devices is provided with an input port for ID allocation and an output port for ID allocation, and for the plurality of devices, an ID is allocated between the output port for ID allocation of each device and the input port for ID allocation of each device. A plurality of devices connected in a daisy chain via the ID allocation I / O line,
The control unit of each device sequentially assigns IDs to the plurality of devices based on the input level of the ID assignment input port of each device, and based on the input level of its own ID assignment input port after power-on. If it is determined whether it is the first device or other devices after the other device is not connected to its own ID assignment input port, and it is determined as the first device, the first device ID Is assigned to its own ID and an ID assignment start command is transmitted to the second and subsequent devices on the communication line, and when it is determined as the second and subsequent devices, when the ID assignment start command is received, Based on the input level of its own ID allocation input port, the ID in the next order of the ID of the device connected to its own ID allocation input port is allocated to its own ID, and other communication is performed on the communication line. Vessels to assign the ID to the second or successive devices by repeating the process of transmitting the ID allocation start command in order and a device ID assignment system,
The plurality of devices are simultaneously turned on,
The control unit of each device inverts the output level of the output port for ID allocation of each device from low level to high level upon power-on, and lowers the output level of its own ID allocation output port after completion of its own ID allocation. Flip to level,
When the control unit of each of the second and subsequent devices receives the ID allocation start command while the input level of its own ID allocation input port is at a low level, its own ID allocation input The ID in the next order of the ID of the device connected to the port is assigned to its own ID, and after completion of its own ID assignment, an ID assignment completion command is transmitted to the other device via the communication line. When the ID allocation completion command is not received from another device even after a predetermined time sufficient for the allocation process, it is determined that the other device is not connected to its own ID allocation output port. and characterized in that ends the ID allocation process of all devices by sending a last device ID assignment completion command to other devices in the communication line Device ID allocation system that.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2015010167A JP6460807B2 (en) | 2015-01-22 | 2015-01-22 | Device ID assignment system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2015010167A JP6460807B2 (en) | 2015-01-22 | 2015-01-22 | Device ID assignment system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2016134879A JP2016134879A (en) | 2016-07-25 |
| JP6460807B2 true JP6460807B2 (en) | 2019-01-30 |
Family
ID=56464694
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2015010167A Active JP6460807B2 (en) | 2015-01-22 | 2015-01-22 | Device ID assignment system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6460807B2 (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP3562027B1 (en) | 2016-12-22 | 2024-02-21 | Nidec Corporation | Multi-motor system |
| JP7403332B2 (en) * | 2020-01-28 | 2023-12-22 | 本田技研工業株式会社 | operating device |
| JP7504654B2 (en) * | 2020-04-27 | 2024-06-24 | 株式会社ミツトヨ | Network Devices |
| KR102268139B1 (en) * | 2020-05-29 | 2021-06-22 | (주)엔텍시스템 | Automatic ID allocation method of slave devices according to distance order |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2005217945A (en) * | 2004-01-30 | 2005-08-11 | Mitsumi Electric Co Ltd | Communicating method of communication apparatus and communication system |
| JP5466990B2 (en) * | 2010-05-06 | 2014-04-09 | 株式会社メガチップス | Communication unit, communication system, display unit and display system |
| JP5648846B2 (en) * | 2011-01-31 | 2015-01-07 | 株式会社パトライト | Identification code automatic setting system and method |
| JP2012195900A (en) * | 2011-03-18 | 2012-10-11 | Denso Wave Inc | Production apparatus system, and components thereof |
| WO2013038554A1 (en) * | 2011-09-16 | 2013-03-21 | Necディスプレイソリューションズ株式会社 | Electronic device system |
| JP2014230097A (en) * | 2013-05-22 | 2014-12-08 | 株式会社 日立産業制御ソリューションズ | Master-slave system and node control method thereof |
-
2015
- 2015-01-22 JP JP2015010167A patent/JP6460807B2/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| JP2016134879A (en) | 2016-07-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6460807B2 (en) | Device ID assignment system | |
| US20170091130A1 (en) | Bus system | |
| JPWO2020039844A1 (en) | In-vehicle communication device and in-vehicle system | |
| JP2013219655A (en) | Protocol conversion device and protocol conversion method | |
| EP1701271A1 (en) | Electronic apparatus system with master node and slave node | |
| US11784848B2 (en) | Method of assigning an operative address | |
| JP6894043B2 (en) | A method for operating a sensor device in an automated vehicle based on the DSI protocol | |
| CN107734082B (en) | Address allocation method and system | |
| JP2001282701A (en) | Device and method for processing information | |
| EP3157155A1 (en) | Method of controlling inverters | |
| JP6391373B2 (en) | Master / slave network device | |
| US9959231B2 (en) | Data bus coupler and method of operation | |
| US12332623B2 (en) | Method for modifying a control software of an automation system | |
| CN102347878A (en) | Multi-point communication system, method and equipment | |
| CN111147612B (en) | Fan group control address automatic allocation method based on position information | |
| US9971326B2 (en) | Sequencer system and address setting method | |
| US9843637B2 (en) | Method and apparatus for controlling transmission and reception of data among plurality of devices in communication system | |
| KR100883861B1 (en) | Automatic addressing method for data display of LED module | |
| JPWO2013183140A1 (en) | Motion controller device and communication method in the same device | |
| CN110608502B (en) | Air conditioner communication method based on single-wire half-duplex communication and air conditioner | |
| US10673492B2 (en) | Point-to-multipoint communication system in which automatic ID allocation is possible | |
| US7565166B2 (en) | Non-interacting transmission of identification information on communication lines | |
| JP6286259B2 (en) | Network device, network device control program | |
| JP5104222B2 (en) | Serial communication system | |
| KR20120089931A (en) | Automatic system comprising apparatus for communication interlock |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20180105 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20181017 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20181031 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20181207 |
|
| 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: 20181217 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20181225 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 6460807 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |