JP2005033670A - Field network system, its device id setting method, setting tool, and motor drive - Google Patents

Field network system, its device id setting method, setting tool, and motor drive Download PDF

Info

Publication number
JP2005033670A
JP2005033670A JP2003272845A JP2003272845A JP2005033670A JP 2005033670 A JP2005033670 A JP 2005033670A JP 2003272845 A JP2003272845 A JP 2003272845A JP 2003272845 A JP2003272845 A JP 2003272845A JP 2005033670 A JP2005033670 A JP 2005033670A
Authority
JP
Japan
Prior art keywords
node
setting
field network
communication
motor drive
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.)
Pending
Application number
JP2003272845A
Other languages
Japanese (ja)
Inventor
Takeshi Asanuma
毅 浅沼
Kumar Sarkar Pritam
プリタム・クマール・サルカール
Noboru Fujiwara
昇 藤原
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.)
Yaskawa Electric Corp
Original Assignee
Yaskawa Electric Corp
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 Yaskawa Electric Corp filed Critical Yaskawa Electric Corp
Priority to JP2003272845A priority Critical patent/JP2005033670A/en
Publication of JP2005033670A publication Critical patent/JP2005033670A/en
Pending legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To provide a system for setting a new device ID via a network even when a device ID of each of nodes is the same, in the case of initially starting a field network system. <P>SOLUTION: Each of the nodes comprises a node ID holding means 9j for holding the node IDs for designating a communication destination and a communication source, a device ID holding means 10j for holding a device ID that becomes identification information as an FA apparatus, and a device ID setting value holding means 11j for holding a preset value. A communication means low-order layer 4j in each of the nodes comprises an automatic node ID assigning means 6j for automatically assigning a value of the node ID when initiating the field network and a topology information collecting means 7j for collecting topology information in the assignment, and a communication means high-order layer in each of the nodes comprises a device ID setting means 8j for setting the value of the device ID when initiating each of the nodes. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、モータードライブとモータードライブのデバイスIDを設定する設定ツールを結合するフィールドネットワークシステムに関し、特にデバイスIDを設定する方法に関する。   The present invention relates to a field network system that combines a motor drive and a setting tool for setting a device ID of the motor drive, and more particularly to a method for setting a device ID.

フィールドネットワークの通信機能をサポートするサーボドライブやインバータドライブなどの複数のモータードライブで構成されるFAシステムでは、一般的にフィールドネットワーク経由で各モータードライブのパラメータ設定やデータの表示などを行える設定ツール(エンジニアリングツールともいう)を備えている。
設定ツールは、入力操作用のキーボードと、画面表示を行うモニタと、マウス等のポインティングデバイスを備えている。
In an FA system consisting of multiple motor drives such as servo drives and inverter drives that support field network communication functions, a setting tool that can generally set parameters and display data for each motor drive via the field network ( (Also called engineering tools).
The setting tool includes a keyboard for input operation, a monitor for displaying a screen, and a pointing device such as a mouse.

図6は、従来のFAシステムのフィールドネットワークシステムのブロック図である。図において1はシリアルケーブルによるフィールドネットワークであり、2は設定ツールで、31、3iはモータードライブである。ここで、iは1、2、・・・nで、1軸目、2軸目、・・・n軸目のモータードライブを表す。2、3iは通信のノードの1つである。200、201、20jはデバイスIDを表す。ここでjは0、1、2・・・nで0のとき設定ツール、1以上は1軸目、2軸目・・・n軸目のモータドライブを表す。   FIG. 6 is a block diagram of a field network system of a conventional FA system. In the figure, 1 is a field network using a serial cable, 2 is a setting tool, and 31 and 3i are motor drives. Here, i is 1, 2,... N, and represents the first axis, the second axis,. 2, 3i are one of communication nodes. 200, 201, and 20j represent device IDs. Here, j is 0, 1, 2,..., N and 0 is a setting tool, 1 or more represents the first axis, second axis,... N axis motor drive.

ここで、ノード間通信用アドレスであるノードIDと、その上位機能であるFAシステム内で各機器を識別するためのデバイスID(軸番号など)は区別がなく兼用しており、あらかじめ初期設定されているデバイスIDは1つのFAシステム内の各モータードライブで同一である。このため、FAシステムの初期立ち上げ時は設定ツールは各モータードライブと正常な通信ができないため、モータードライブ上に設定スイッチや操作パネルを設けそこからデバイスIDを設定したり、ローカル設定ツール接続用通信ポートを別に準備し、ローカル設定ツールを接続してそれによりデバイスIDを設定したりしている。   Here, the node ID, which is an inter-node communication address, and the device ID (axis number, etc.) for identifying each device in the FA system, which is a higher function of the node ID, are used without distinction and are preset in advance. The device ID is the same for each motor drive in one FA system. For this reason, since the setting tool cannot communicate normally with each motor drive at the initial startup of the FA system, a setting switch or operation panel is provided on the motor drive to set the device ID or connect to the local setting tool. A communication port is prepared separately, and a local setting tool is connected to set a device ID.

または、特開平09−200210で開示されている機能を利用して、設定ツール2に1台づつモータードライブ3iをフィールドネットワークに接続して、順次デバイスIDを設定していく。(例えば特許文献1、非特許文献1、非特許文献2参照)
特開平09−200210号公報(第3−3頁、図1) PROFIBUS Specification(No.0.032)Edition1.0、1998年、p.704 発行:PNO(PROFIBUS International) DeviceNet Specifications(Release2.0) 、1997年、VolumeI p.5−51〜5−52発行:Open DeviceNet Vendor Association, Inc.
Alternatively, using the function disclosed in Japanese Patent Laid-Open No. 09-200210, one motor drive 3i for each setting tool 2 is connected to the field network, and device IDs are sequentially set. (For example, see Patent Document 1, Non-Patent Document 1, and Non-Patent Document 2)
JP 09-200210 (page 3-3, FIG. 1) PROFIBUS Specification (No. 0.032) Edition 1.0, 1998, p. 704 Issue: PNO (PROFIBUS International) DeviceNet Specifications (Release 2.0), 1997, Volume I p. 5-51-5-52: Open DeviceNet Vendor Association, Inc.

従来のフィールドネットワークシステムでは、FAシステム初期立上げ時には、モータードライブ上に設定スイッチや操作パネル、ローカル設定ツール接続用通信ポートを別に備える等の手段で、通信に先立ちノードID兼デバイスIDを設定しておく必要があった。または、一台ずつフィールドネットワークに接続して順次デバイスIDを設定していくという方法もあるが、いずれにしても設定作業が煩雑であり負荷が大きいという問題があった。
本発明はこのような問題点に鑑みてなされたものであり、FAシステムの初期立上げの時点から、フィールドネットワークに接続された設定ツールを使い、フィールドネットワーク経由でモータードライブのデバイスID設定をすることができる方法を提供することを目的とする。
In the conventional field network system, at the initial startup of the FA system, the node ID and device ID are set prior to communication by means such as a separate setting switch, operation panel, and communication port for local setting tool connection on the motor drive. It was necessary to keep. Alternatively, there is a method in which device IDs are sequentially set by connecting to the field network one by one, but in any case, there is a problem that the setting work is complicated and the load is large.
The present invention has been made in view of such problems. From the initial startup of the FA system, a setting tool connected to the field network is used to set the device ID of the motor drive via the field network. It aims to provide a method that can be used.

上記問題を解決するため、請求項1に記載の発明は、FAシステムを構成する複数のモータドライブと、前記モータードライブのデバイスIDを設定する設定ツールと、シリアルケーブルが用いられて前記複数のモータードライブと前記設定ツールをノードとして該ノード間を相互に接続するフィールドネットワークと、からなり、他のノードとの間で通信をする通信手段下位層と、FAシステム機能によって指令とパラメータの送受信をする通信手段上位層と、からなる2階層の通信手段を前記各ノードに備えたフィールドネットワークシステムにおいて、前記各ノードには、通信先、通信元をアドレス指定するノードIDをRAMに保持するノードID保持手段と、FA機器としての識別情報となるデバイスIDをRAM上に保持するデバイスID保持手段と、あらかじめ設定された値を不揮発性メモリ上に保持するデバイスID設定手段とを備え、前記各ノードの前記通信手段下位層には、前記ノードIDを前記フィールドネットワーク起動時に自動的に割付けるノードID自動割付け手段と、割付け時のトポロジー情報を収集するトポロジー情報収集手段とを備え、前記各ノードの前記通信手段上位層には、前記デバイスIDを前記各ノード起動時に設定するデバイスID設定手段とを備えることを特徴としている。
また、請求項2に記載の発明は、請求項1に記載のフィールドネットワークシステムにおいて、前記通信手段下位層がIEEE1394であることを特徴としている。
また、請求項3に記載の発明は、FAシステムを構成する複数のモータドライブと、前記モータードライブのデバイスIDを設定する設定ツールと、シリアルケーブルが用いられて前記複数のモータードライブと前記設定ツールをノードとして該ノード間を相互に接続するフィールドネットワークと、からなり、他のノードとの間で通信をする通信手段下位層と、FAシステム機能によって指令とパラメータの送受信をする通信手段上位層と、からなる2階層の通信手段を前記各ノードに備えたフィールドネットワークシステムにおいて、前記デバイスIDの設定値を読み込み、読み込まれた前記設定値が所定のコードであれば、前記ノードIDの値に所定の演算を行ない、演算結果をデバイスIDとすることを特徴としている。
また、請求項4に記載の発明は、請求項1に記載のフィールドネットワークシステムに前記通信ノードのひとつとして接続されるモータドライブにおいて、前記通信手段上位層サービスによって前記デバイスIDの設定値を読み出し、書き込みを行うことを特徴としている。
また、請求項5に記載の発明は、請求項1に記載のフィールドネットワークシステムに前記通信ノードのひとつとして接続されるモータードライブのデバイスIDを設定する設定ツールにおいて、前記通信手段上位層サービスによって、同じく前記フィールドネットワークに接続された請求項4記載の前記モータードライブに対し前記デバイスID設定値の読み出しを指令し、読み出した値に所定の演算を行い、演算後の値を前記モータドライブに対し書き込み指令を行うことを特徴としている。
このため、モータードライブはFAシステムの初期立上げ時、フィールドネットワーク経由でデバイスIDが設定できるため、あらかじめデバイスIDの設定をしておく必要がなくなり、初期立上げ時のデバイスID設定作業負荷を軽減させることができるのである。
In order to solve the above problem, the invention described in claim 1 is directed to a plurality of motor drives using a plurality of motor drives constituting an FA system, a setting tool for setting a device ID of the motor drives, and a serial cable. It consists of a drive and a field network that connects the nodes to each other using the setting tool as a node, and communicates with other nodes, and transmits and receives commands and parameters by the FA system function. In a field network system in which each node includes two layers of communication means comprising a communication means upper layer, each node holds a node ID for holding a node ID for addressing a communication destination and a communication source in a RAM. And a device that holds the device ID that is identification information as the FA device on the RAM. A device ID holding unit and a device ID setting unit for holding a preset value in a nonvolatile memory, and the node ID is automatically assigned to the lower layer of the communication unit of each node when the field network is activated. A device for setting the device ID at the time of starting each node in the upper layer of the communication means of each node. And an ID setting means.
The invention according to claim 2 is the field network system according to claim 1, wherein the lower layer of the communication means is IEEE1394.
According to a third aspect of the present invention, there are provided a plurality of motor drives constituting the FA system, a setting tool for setting a device ID of the motor drive, and the plurality of motor drives and the setting tool using a serial cable. A communication device lower layer that communicates with other nodes, and a communication means upper layer that transmits and receives commands and parameters by the FA system function. In the field network system provided with the two-layer communication means consisting of the above, each node reads the setting value of the device ID, and if the read setting value is a predetermined code, the node ID value is predetermined. The calculation is performed, and the calculation result is used as the device ID.
According to a fourth aspect of the present invention, in the motor drive connected as one of the communication nodes to the field network system according to the first aspect, the setting value of the device ID is read by the communication means upper layer service, It is characterized by writing.
According to a fifth aspect of the present invention, in the setting tool for setting a device ID of a motor drive connected as one of the communication nodes to the field network system according to the first aspect, the communication means upper layer service provides: 5. The motor drive according to claim 4, which is also connected to the field network, commands the device ID setting value to be read, performs a predetermined calculation on the read value, and writes the calculated value to the motor drive. It is characterized by giving a command.
For this reason, since the motor drive can set the device ID via the field network at the initial startup of the FA system, it is not necessary to set the device ID in advance, and the device ID setting work load at the initial startup is reduced. It can be made.

本発明のフィールドネットワークシステムによれば、モータードライブのデバイスID設定値の初期設定を所定のコードにしておけば、FAシステムの初期立上げ時にフィールドネットワークに接続された全モータードライブのデバイスID設定値が同一であっても、ノードID自動割付け手段によって自動的に割付けられたフィールドネットワーク内でユニークなノードIDを基にテンポラリなデバイスIDを設定することができ、正常な通信を行うことができるため、デバイスIDの設定をローカルで行ったり、1台づつフィールドネットワークに接続して順次デバイスIDの設定する必要がなく、初期立上げ時のデバイスID設定作業負荷を軽減させることができる。また、モータードライブ自体に設定スイッチ、操作パネル、ローカル設定ツール接続用通信ポートなどを備えなくとも、フィールドネットワーク経由で設定ツールを使って全モータードライブのデバイスIDの設定が行えることから、モータードライブの小型化、軽量化、コスト削減に有効である。特に、30軸〜100軸といった極めて多軸のモータードライブシステムの立上げ、調整時に非常に高い効果が得られる。   According to the field network system of the present invention, if the initial setting of the device ID setting value of the motor drive is set to a predetermined code, the device ID setting value of all the motor drives connected to the field network at the initial startup of the FA system. Even if the same, the temporary device ID can be set based on the unique node ID in the field network automatically assigned by the node ID automatic assigning means, and normal communication can be performed. It is not necessary to set the device ID locally or connect to the field network one by one and sequentially set the device ID, so that the device ID setting work load at the initial startup can be reduced. In addition, even if the motor drive itself does not have a setting switch, operation panel, communication port for connecting the local setting tool, etc., the device ID of all motor drives can be set using the setting tool via the field network. Effective for downsizing, weight reduction, and cost reduction. In particular, a very high effect can be obtained when starting up and adjusting an extremely multi-axis motor drive system of 30 to 100 axes.

以下、本発明の具体的実施例について、図に基づいて説明する。   Hereinafter, specific examples of the present invention will be described with reference to the drawings.

図1は、本発明のFAシステムのフィールドネットワークシステムのブロック図である。本図は、設定ツールとモータードライブのフィールドネットワークに関する部分のみを抽出したものである。図において1、2、3iは図6と同一であるので説明を省略する。RAM上には、ノードIDを一時保管するノードID保持手段9jと、デバイスIDを一時保管するデバイスID保持手段10jがあり、不揮発性メモリ上には、あらかじめ初期設定されているデバイスIDを保管するデバイスID設定値保持手段11jがある。4jは通信手段下位層、5jは通信手段上位層であり、通信手段下位層4jには、FAシステム立ち上げ時のフィールドネットワーク起動時に各ノードのノードIDを自動的に割付けるノードID自動割付け手段6j、各ノードのトポロジー情報を収集するトポロジー情報収集手段7jがある。通信手段上位層5jには、デバイスID設定手段8jがあり、ノードID保持手段9jの値と、デバイスID設定値保持手段11jの値から各ノードのデバイスIDを算出し、デバイスID保持手段10jに格納する。ここで、jは0、1、2・・・nで0の時設定ツール、1以上は1軸目、2軸目・・・n軸目のモータドライブを表す。   FIG. 1 is a block diagram of a field network system of the FA system of the present invention. This figure shows only the part related to the field network of the setting tool and motor drive. In the figure, 1, 2, and 3i are the same as those in FIG. On the RAM, there are a node ID holding unit 9j for temporarily storing the node ID and a device ID holding unit 10j for temporarily storing the device ID, and a device ID that is initialized in advance is stored on the nonvolatile memory. There is a device ID set value holding means 11j. 4j is a communication means lower layer, 5j is a communication means upper layer, and node ID automatic assignment means for automatically assigning the node ID of each node to the communication means lower layer 4j when the field network is activated when the FA system is started up. 6j, there is topology information collecting means 7j for collecting topology information of each node. The communication means upper layer 5j has a device ID setting means 8j, which calculates the device ID of each node from the value of the node ID holding means 9j and the value of the device ID setting value holding means 11j, and sends it to the device ID holding means 10j. Store. Here, j is 0, 1, 2,..., N and 0 when the setting tool, 1 or more represents the first axis, the second axis,... N-axis motor drive.

図4は通信手段上位層5j間で授受される上位層通信サービス電文例1000と通信手段下位層4j間で授受される下位層通信サービス電文例1010を示している。本実施例において上位層通信サービス電文は、送信先デバイスID1001、送信元デバイスID1002、電文の種別すなわち通信サービスの内容を示す上位層制御コード1003、上位層PDU(プロトコル・データ・ユニット)1004、上位層トレーラから構成されており、通信時アドレスとしてデバイスIDが使用される。上位層通信サービスの例としてパラメータ読出しサービス、パラメータ書込みサービスなどがあり、これらのサービスを使って、デバイスID設定値保持手段11jの内容を設定・変更できる。また、下位層通信サービス電文は、送信先ノードID1011、送信元ノードID1012、下位層制御コード1013、下位層PDU1014、下位層トレーラ1015から構成されており、通信時アドレスとしてはノードIDが使用される。下位層通信サービスの例としては、単に上位層パケットを下位層PDUに乗せて伝送する上位層パケット伝送サービスの他に、デバイスID読出しサービスなどがある。   FIG. 4 shows an upper layer communication service message example 1000 exchanged between the communication means upper layer 5j and a lower layer communication service message example 1010 exchanged between the communication means lower layer 4j. In this embodiment, the upper layer communication service message includes a transmission destination device ID 1001, a transmission source device ID 1002, an upper layer control code 1003 indicating the content of the message, that is, the communication service, an upper layer PDU (protocol data unit) 1004, and an upper layer. It consists of a layer trailer, and a device ID is used as an address during communication. Examples of the upper layer communication service include a parameter read service and a parameter write service, and the contents of the device ID set value holding unit 11j can be set / changed using these services. The lower layer communication service message includes a transmission destination node ID 1011, a transmission source node ID 1012, a lower layer control code 1013, a lower layer PDU 1014, and a lower layer trailer 1015. The node ID is used as an address during communication. . As an example of the lower layer communication service, there is a device ID read service in addition to an upper layer packet transmission service that simply transmits an upper layer packet on a lower layer PDU.

図2、3、5を用いて、以下に本発明の動作を順を追って説明する。
図3はFAシステムの立ち上げ時のフィールドネットワーク起動時のデバイスID設定フローチャートである。フィールドネットワーク1に接続されたデバイスID設定ツール2、モータードライブ3iは、起動するとステップ3001、4001において通信手段下位層のノードID自動割付け手段6j同士の働きによりフィールドネットワークに接続された全ノードのノードID割付けがなされ、その結果は各ノード(2および3i)内のノードID保持手段9j内に書きこまれる。通信手段下位層としてIEEE1394を採用する場合、このステップにおいて同時にトポロジー情報収集手段7jが働き、ネットワーク全体のトポロジーマップを編集する。(IEEE Std.1394−1995参照)
The operation of the present invention will be described step by step with reference to FIGS.
FIG. 3 is a device ID setting flowchart when the field network is activated when the FA system is started up. When the device ID setting tool 2 and the motor drive 3i connected to the field network 1 are activated, the nodes of all the nodes connected to the field network are activated by the actions of the node ID automatic assigning means 6j in the communication means lower layer in steps 3001 and 4001. An ID is assigned and the result is written in the node ID holding means 9j in each node (2 and 3i). When IEEE1394 is adopted as the communication means lower layer, the topology information collecting means 7j works simultaneously in this step to edit the topology map of the entire network. (See IEEE Std. 1394-1995)

次にステップ3002、4002で通信手段上位層5jのデバイスID設定手段8jが各ノード内で個別に働き自ノードのデバイスID保持手段10jにデバイスIDを設定する。この際の詳細フローチャートが図2に示してあり、説明は後述する。   Next, in steps 3002 and 4002, the device ID setting means 8j of the communication means upper layer 5j works individually in each node and sets the device ID in the device ID holding means 10j of the own node. A detailed flowchart in this case is shown in FIG. 2 and will be described later.

図5は、以下のステップの操作を行う際の設定ツールのデバイスID設定画面5000である。画面は、トポロジー表示パネル部5006と、選択ノード情報表示パネル部5007に分れる。トポロジー表示パネル部5006には、トポロジーマップを基に設定ツール2、モータードライブ3iの接続関係とIDの情報が表示される。(5001〜5005)このパネル上でデバイスIDを設定したいノードをマウスやカーソルで選択すると、選択されたノードのID情報が、選択ノード情報表示パネル部5006に表示され、設定ツール2のキーボードからデバイスID入力欄5008に設定値を入力することにより、デバイスIDが設定できる。   FIG. 5 shows a device ID setting screen 5000 of the setting tool when performing the following steps. The screen is divided into a topology display panel unit 5006 and a selected node information display panel unit 5007. The topology display panel unit 5006 displays connection information and ID information of the setting tool 2 and the motor drive 3i based on the topology map. (5001 to 5005) When a node for which a device ID is to be set is selected on this panel by using a mouse or a cursor, the ID information of the selected node is displayed on the selected node information display panel unit 5006. A device ID can be set by inputting a set value in the ID input field 5008.

次に図3の次ステップの説明に戻ると、設定ツール2はステップ3003で、モータードライブ3iのノードIDを基に下位層通信サービス電文(1010)中のデバイスID読出し要求を全てのモータードライブ3iに送信する。これを受信したモータードライブ3iはステップ4003で自デバイスID保持手段10jの値を読出し、下位層通信サービス電文のデバイスID読出し応答中に読み出したデバイスID値を応答として返す。設定ツール2は、デバイスID設定画面5000のトポロジー表示パネル部5006上に全てのモータードライブのデバイスIDを表示させる。全体のデバイスIDの情報を知った操作者は、デバイスIDを変更したい対象をトポロジー表示パネル部5006でマウス等で選択する。選択された対象のノードIDとデバイスIDは選択ノード情報表示パネル部5007に表示され、操作者はデバイスID入力欄5008に表示されているデバイスIDをキーボードにより変更する。すると設定ツール2は、上位層通信サービス電文(1001)中のパラメータ書込み要求をセットし現在のデバイスID宛てに送信する。ステップ4004でこの要求を受信したモータードライブ3iはパラメータ書込み要求にセットされた操作者の設定したいデバイスID値を読出し、自デバイスID設定値保持手段11jに書きこむ。さらにパラメータ書込み応答を返信する。このようにして、モータードライブ3iの1ノードのデバイスID設定が変更される。   Next, returning to the explanation of the next step in FIG. 3, the setting tool 2 sends a device ID read request in the lower layer communication service message (1010) based on the node ID of the motor drive 3i in step 3003 to all the motor drives 3i. Send to. Receiving this, the motor drive 3i reads the value of its own device ID holding means 10j in step 4003, and returns the device ID value read during the device ID read response of the lower layer communication service message as a response. The setting tool 2 displays the device IDs of all motor drives on the topology display panel unit 5006 of the device ID setting screen 5000. The operator who knows the information on the entire device ID selects the object whose device ID is to be changed with the mouse or the like on the topology display panel unit 5006. The selected target node ID and device ID are displayed on the selected node information display panel unit 5007, and the operator changes the device ID displayed in the device ID input field 5008 using the keyboard. Then, the setting tool 2 sets a parameter write request in the upper layer communication service message (1001) and transmits it to the current device ID. In step 4004, the motor drive 3i receives this request, reads the device ID value that the operator wants to set set in the parameter write request, and writes it in its own device ID setting value holding means 11j. Furthermore, a parameter write response is returned. In this way, the device ID setting of one node of the motor drive 3i is changed.

次に、図2のデバイスID設定手段8jのフローチャートを説明する。デバイスID設定手段8jは図3のステップ3002、4002で各ノード個別に起動され、まずステップ2001で自ノードのデバイスID設定値保持手段11jの値を読む。ステップ2002でこの値(デバイスID設定値)を判定し、所定のコード(例えば0xFFなど)であった場合には、このノードを出荷時の初期設定のままのノードと見なしてステップ2004に進み、ノードID保持手段9jから値を読む。ステップ2005にてこの値(ノードID自動設定手段のセットしたフィールドネットワーク内でユニークなノードID値)を基に所定の演算を行い(例えばノードID+0x80、あるいはノードID値そのままでもよい)、ステップ2006で、その演算結果をテンポラリなデバイスIDとし、デバイスID保持手段10jに書きこむ。一方ステップ2002の判定にて所定のコードでなかった場合には既に1回以上のデバイスID設定値設定が行われているものと判断し、ステップ2003で、その値をそのままデバイスID保持手段10jに書きこむ。   Next, a flowchart of the device ID setting unit 8j in FIG. 2 will be described. The device ID setting unit 8j is activated individually for each node in steps 3002 and 4002 in FIG. 3. First, in step 2001, the value of the device ID setting value holding unit 11j of the own node is read. In step 2002, this value (device ID setting value) is determined. If it is a predetermined code (for example, 0xFF, etc.), this node is regarded as a node that has been initially set at the time of shipment, and the process proceeds to step 2004. The value is read from the node ID holding means 9j. In step 2005, a predetermined calculation is performed based on this value (a unique node ID value in the field network set by the node ID automatic setting means) (for example, the node ID + 0x80 or the node ID value may be used as it is). The calculation result is set as a temporary device ID and written in the device ID holding means 10j. On the other hand, if the predetermined code is not determined in step 2002, it is determined that one or more device ID setting values have already been set. In step 2003, the value is directly stored in the device ID holding unit 10j. Write.

このように、出荷時の初期設定のままのモータードライブ3iが複数台ある場合でも、フィールドネットワーク内でユニークに割り付けられたノードIDを基にユニークなデバイスIDを自動付番するので、同じフィールドネットワークに接続された設定ツール2はこのデバイスIDを使って、設定したい新たなデバイスIDをフィールドネットワーク経由で書きこむことができるのである。これにより、モータードライブ3iのデバイスID設定値の初期設定を所定のコードにしておけば、FAシステムの初期立上げ時にフィールドネットワークに接続された全モータードライブ3iのデバイスID設定値が同一であっても、ノードID割付け手段6jによって自動的に割付けられたフィールドネットワーク内でユニークなノードIDを基にテンポラリなデバイスIDを設定することができ、正常な通信を行うことができるため、デバイスIDの設定をローカルで行ったり、1台づつフィールドネットワークに接続して順次デバイスIDを設定する必要がなく、初期立上げ時のデバイスID設定作業負荷を軽減させることができる。   In this way, even when there are a plurality of motor drives 3i that are initially set at the time of shipment, unique device IDs are automatically assigned based on the node IDs uniquely assigned in the field network. The setting tool 2 connected to can write a new device ID to be set via the field network using this device ID. Thus, if the initial setting of the device ID setting value of the motor drive 3i is set to a predetermined code, the device ID setting values of all the motor drives 3i connected to the field network at the initial startup of the FA system are the same. In addition, the temporary device ID can be set based on the unique node ID in the field network automatically assigned by the node ID assigning means 6j, and normal communication can be performed. It is not necessary to set the device ID sequentially by connecting to the field network one by one, and the device ID setting work load at the initial startup can be reduced.

本発明が従来技術である特許文献1と異なる部分は、ノードIDとデバイスIDを区別し、ノードIDを基にテンポラリなデバイスIDを作成できるようにした点である。従来技術ではデバイスIDが同一のモータードライブが複数あった場合フィールドネットワークによる通信はできないが、本発明ではテンポラリのデバイスIDを使い通信手段上位層による通信が可能となる。   The difference between the present invention and Patent Document 1 that is the prior art is that a node ID and a device ID are distinguished, and a temporary device ID can be created based on the node ID. In the prior art, when there are a plurality of motor drives having the same device ID, communication by a field network is not possible. However, in the present invention, communication by an upper layer of communication means is possible using a temporary device ID.

本発明はフィールドネットワークシステムのデバイスIDが同一な機器が複数台あっても正しく通信が可能であるので、モータードライブに限らず、ロボット、NC、PLC等のFA機器をフィールドネットワークで接続したシステムにも適用できる。   Since the present invention can communicate correctly even when there are a plurality of devices having the same device ID in the field network system, the present invention is not limited to a motor drive, and is a system in which FA devices such as robots, NCs, PLCs, etc. are connected by a field network. Is also applicable.

本発明の実施例のFAシステムのフィールドネットワークシステムのブロック図The block diagram of the field network system of FA system of the Example of this invention 本発明の実施例のデバイスID設定手段フローチャートDevice ID setting means flowchart of the embodiment of the present invention 本発明の実施例のデバイスID設定フローチャート (a)設定ツールのフローチャート (b)モータードライブのフローチャートDevice ID setting flowchart according to an embodiment of the present invention (a) Setting tool flowchart (b) Motor drive flowchart 本発明の実施例の通信データフォーマットCommunication data format of an embodiment of the present invention 本発明の実施例の設定ツールのデバイスID設定画面Device ID setting screen of setting tool of embodiment of the present invention 従来例のFAシステムのフィールドネットワークシステムのブロック図Block diagram of a field network system of a conventional FA system

符号の説明Explanation of symbols

1 フィールドネットワーク
2 設定ツール
3i モータードライブ(サーボ、インバータなど)
(i=1、2、・・・n)
4j 通信手段 下位層
(j=0、1、2、・・・n)
5j 通信手段 上位層
6j ノードID自動割付手段
7j トポロジー情報収集手段
8j デバイスID設定手段
9j ノードID保持手段(RAM上)
10j デバイスID保持手段(RAM上)
11j デバイスID設定値保持手段(不揮発メモリ上)
20j デバイスID
1000 上位層通信サービス電文
1001 データフォーマット:送信先デバイスIDフィールド
1002 データフォーマット:送信元デバイスIDフィールド
1003 データフォーマット:上位層制御コード
1004 データフォーマット:上位層PDU(プロトコルデータユニット)
1005 データフォーマット:上位層トレーラ
1010 下位層通信サービス電文
1011 データフォーマット:送信先ノードIDフィールド
1012 データフォーマット:送信元ノードIDフィールド
1013 データフォーマット:下位層制御コード
1014 データフォーマット:下位層PDU(プロトコルデータユニット)
1015 データフォーマット:下位層トレーラ
2000〜2007 デバイスID設定手段処理フローの各ステップ
3000〜3005 設定ツール側デバイスID設定手順の各ステップ
4000〜4005 モータードライブ側デバイスID設定手順の各ステップ
5000 デバイスID設定画面
5001〜5005 ノード情報
5006 トポロジー表示パネル部
5007 選択ノード情報表示パネル部
5008 デバイスID入力欄
1 Field network 2 Setting tool 3i Motor drive (servo, inverter, etc.)
(I = 1, 2,... N)
4j communication means lower layer (j = 0, 1, 2,... N)
5j Communication means Upper layer 6j Node ID automatic assignment means 7j Topology information collection means 8j Device ID setting means 9j Node ID holding means (on RAM)
10j Device ID holding means (on RAM)
11j Device ID setting value holding means (on nonvolatile memory)
20j Device ID
1000 Upper layer communication service message 1001 Data format: Destination device ID field 1002 Data format: Source device ID field 1003 Data format: Upper layer control code 1004 Data format: Upper layer PDU (protocol data unit)
1005 Data format: Upper layer trailer 1010 Lower layer communication service message 1011 Data format: Destination node ID field 1012 Data format: Source node ID field 1013 Data format: Lower layer control code 1014 Data format: Lower layer PDU (protocol data unit )
1015 Data format: Lower layer trailer 2000 to 2007 Steps 3000 to 3005 of the device ID setting means processing flow Steps 4000 to 4005 of the setting tool side device ID setting procedure Steps 5000 to 4005 of the motor drive side device ID setting procedure Device ID setting screen 5001 to 5005 Node information 5006 Topology display panel section 5007 Selected node information display panel section 5008 Device ID input field

Claims (5)

FAシステムを構成する複数のモータドライブと、
前記モータードライブのデバイスIDを設定する設定ツールと、
シリアルケーブルが用いられて前記複数のモータードライブと前記設定ツールをノードとして該ノード間を相互に接続するフィールドネットワークと、
からなり、
他のノードとの間で通信をする通信手段下位層と、
FAシステム機能によって指令とパラメータの送受信をする通信手段上位層と、
からなる2階層の通信手段を前記各ノードに備えたフィールドネットワークシステムにおいて、
前記各ノードには、通信先、通信元をアドレス指定するノードIDをRAM上に保持するノードID保持手段と、
FA機器としての識別情報となるデバイスIDをRAM上に保持するデバイスID保持手段と、
あらかじめ設定された値を不揮発性メモリ上に保持するデバイスID設定手段とを備え、
前記各ノードの前記通信手段下位層には、前記ノードIDを前記フィールドネットワーク起動時に自動的に割付けるノードID自動割付け手段と、
割付け時のトポロジー情報を収集するトポロジー情報収集手段とを備え、
前記各ノードの前記通信手段上位層には、前記デバイスIDを前記各ノード起動時に設定するデバイスID設定手段とを備えることを特徴とするフィールドネットワークシステム。
A plurality of motor drives constituting the FA system;
A setting tool for setting the device ID of the motor drive;
A field network that interconnects the plurality of motor drives and the setting tool as nodes by using a serial cable;
Consists of
A communication means lower layer for communicating with other nodes;
Upper layer of communication means for sending and receiving commands and parameters by FA system function;
In the field network system provided with the two-layer communication means comprising:
Each node has a node ID holding means for holding a node ID for addressing the communication destination and the communication source on the RAM;
Device ID holding means for holding a device ID serving as identification information as an FA device on the RAM;
Device ID setting means for holding a preset value on the nonvolatile memory,
Node ID automatic assigning means for automatically assigning the node ID at the time of starting the field network to the communication means lower layer of each node;
Topology information collecting means for collecting topology information at the time of allocation,
A field network system comprising: a device ID setting unit configured to set the device ID when each node is activated in the upper layer of the communication unit of each node.
前記通信手段下位層がIEEE1394であることを特徴とする請求項1に記載のフィールドネットワークシステム。     The field network system according to claim 1, wherein the communication means lower layer is IEEE1394. FAシステムを構成する複数のモータドライブと、
前記モータードライブのデバイスIDを設定する設定ツールと、
シリアルケーブルが用いられて前記複数のモータードライブと前記設定ツールをノードとして該ノード間を相互に接続するフィールドネットワークと、
からなり、
他のノードとの間で通信をする通信手段下位層と、
FAシステム機能によって指令とパラメータの送受信をする通信手段上位層と、
からなる2階層の通信手段を前記各ノードに備えたフィールドネットワークシステムにおいて、
前記デバイスIDの設定値を読み込み、読み込まれた前記設定値が所定のコードであれば、前記ノードIDの値に所定の演算を行ない、演算結果をデバイスIDとすることを特徴とするフィールドネットワークシステムのデバイスID設定方法。
A plurality of motor drives constituting the FA system;
A setting tool for setting the device ID of the motor drive;
A field network that interconnects the plurality of motor drives and the setting tool as nodes by using a serial cable;
Consists of
A communication means lower layer for communicating with other nodes;
Upper layer of communication means for sending and receiving commands and parameters by FA system function;
In the field network system provided with the two-layer communication means comprising:
A field network system that reads a set value of the device ID, performs a predetermined calculation on the value of the node ID if the read set value is a predetermined code, and sets the calculation result as a device ID Device ID setting method.
請求項1に記載のフィールドネットワークシステムに前記通信ノードのひとつとして接続され、前記通信手段上位層サービスによって前記デバイスIDの設定値を読み出し、書き込みを行うことを特徴としたモータードライブ。   2. A motor drive connected to the field network system according to claim 1 as one of the communication nodes, wherein a set value of the device ID is read and written by the communication means upper layer service. 請求項1に記載のフィールドネットワークシステムに前記通信ノードのひとつとして接続され、前記通信手段上位層サービスによって、同じく前記フィールドネットワークに接続された請求項4記載の前記モータードライブに対し前記デバイスID設定値の読み出しを指令し、読み出した値に所定の演算を行い、演算後の値を前記モータドライブに対し書き込み指令を行うことを特徴としたモータードライブのデバイスIDを設定する設定ツール。   5. The device ID set value for the motor drive according to claim 4, wherein the device ID is connected to the field network system according to claim 1 as one of the communication nodes and is also connected to the field network by the communication means upper layer service. A setting tool for setting a device ID of a motor drive, which performs a predetermined calculation on the read value, and issues a write command to the motor drive after the calculation.
JP2003272845A 2003-07-10 2003-07-10 Field network system, its device id setting method, setting tool, and motor drive Pending JP2005033670A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003272845A JP2005033670A (en) 2003-07-10 2003-07-10 Field network system, its device id setting method, setting tool, and motor drive

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003272845A JP2005033670A (en) 2003-07-10 2003-07-10 Field network system, its device id setting method, setting tool, and motor drive

Publications (1)

Publication Number Publication Date
JP2005033670A true JP2005033670A (en) 2005-02-03

Family

ID=34210277

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003272845A Pending JP2005033670A (en) 2003-07-10 2003-07-10 Field network system, its device id setting method, setting tool, and motor drive

Country Status (1)

Country Link
JP (1) JP2005033670A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113228618A (en) * 2020-07-31 2021-08-06 深圳市大疆创新科技有限公司 Motor control method, device and system and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113228618A (en) * 2020-07-31 2021-08-06 深圳市大疆创新科技有限公司 Motor control method, device and system and computer readable storage medium

Similar Documents

Publication Publication Date Title
US20130262714A1 (en) Fieldbus gateway using virtual serial filedbus port and data transmission method thereof
JP4271160B2 (en) Network opening method in production system
US8588943B2 (en) Method for parameterizing operating means
JP2001016662A (en) Data collection system, data collection method, and recording medium recording program for data collection
EP2378713B1 (en) Register configurator, register configuration method and field control system
JP2005033670A (en) Field network system, its device id setting method, setting tool, and motor drive
JP2002023813A (en) Host computer and recording medium with its program recorded and control system using the same
JP2010219736A (en) Method of controlling robot system
JP6054008B1 (en) Data management apparatus, data management method, and data management program
JP3345361B2 (en) Control device
JP2007310571A (en) Control program creating device, editing program and program creating method
JP2019179475A (en) Support apparatus, support program, and setting method
JP4634026B2 (en) Remote I / O system, data communication method, data communication control program, and recording medium
JP5565624B2 (en) Parameter setting tool
JPH10164113A (en) System, device and method for data communication
JP4544422B2 (en) Programmable controller
JP7147808B2 (en) Engineering device, engineering method and program
JP5720330B2 (en) Control system, operation terminal and program
JP2000242313A (en) Method and device for automatic address allocation
JP3155258B1 (en) Data collection system, data collection method, and recording medium on which data collection program is recorded
JP2002108731A (en) Network setting method for computer, recording medium recorded with program thereof, and computer capable of performing network setting by the method
JP3155254B2 (en) Application software start-up system and start-up method, and recording medium on which a program for the start-up is recorded
JPH07131502A (en) Communication controller
CN103403629B (en) The control method of control system, operating terminal and control system
JP6907929B2 (en) Data equivalence method, programmable controller and duplex system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060612

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080618

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080623

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20081114