JP2008257400A - Programmable controller and unit - Google Patents

Programmable controller and unit Download PDF

Info

Publication number
JP2008257400A
JP2008257400A JP2007097723A JP2007097723A JP2008257400A JP 2008257400 A JP2008257400 A JP 2008257400A JP 2007097723 A JP2007097723 A JP 2007097723A JP 2007097723 A JP2007097723 A JP 2007097723A JP 2008257400 A JP2008257400 A JP 2008257400A
Authority
JP
Japan
Prior art keywords
address
dhcp
bootp
programmable controller
network
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
JP2007097723A
Other languages
Japanese (ja)
Other versions
JP4849340B2 (en
Inventor
Tatsuhiko Naito
辰彦 内藤
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.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
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 Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP2007097723A priority Critical patent/JP4849340B2/en
Publication of JP2008257400A publication Critical patent/JP2008257400A/en
Application granted granted Critical
Publication of JP4849340B2 publication Critical patent/JP4849340B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a programmable controller for easily setting an IP address to a device (a node device) constituting other node such as an I/O device or a PLC. <P>SOLUTION: In this programmable controller, a CPU unit 11 is installed with a memory card 15 storing a DHCP (Dynamic Host Configuration Protocol)/BOOTP (Bootstrap Protocol) table wherein a MAC address of the device based on the industrial Ethernet standard and the IP address set to the device are associated. An IE communication unit 12 periodically sends requests to read the table to the CPU unit, and stores it into its own nonvolatile memory. When receiving a request to allocate the IP address from the node devices 20, 30, 40 each having a DHCP/BOOTP client function connected to an IE network 1, the nonvolatile memory is accessed, the IP address corresponding to the MAC address of the device having made the request is read, and the IP address is automatically set by returning the read IP address to the device. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

この発明は、IPアドレスを使用して通信を行うFAネットワークに接続されるプログラマブルコントローラ及びユニットに関するものである。   The present invention relates to a programmable controller and a unit connected to an FA network that performs communication using an IP address.

FA(Factory Automation)におけるネットワークシステムは、生産設備の制御を司る1または複数のPLC(プログラマブルコントローラ)と、そのPLCにより動作が制御される機器とが、制御系のネットワークに接続される。それらPLCと機器は、その制御系のネットワークを介してサイクリックに通信を行なうことで、IOデータの送受を行ない、生産設備を制御する。   In a network system in FA (Factory Automation), one or a plurality of PLCs (programmable controllers) that control production facilities and devices whose operations are controlled by the PLCs are connected to a control system network. These PLCs and devices communicate with each other cyclically via the network of the control system, thereby transmitting / receiving IO data and controlling production facilities.

PLCは、制御プログラムに基づいて演算実行するCPUユニット、センサやスイッチなどの入力機器を接続してそれらのオン・オフ信号を入力信号として取り込む入力ユニット、アクチュエータやリレーなどの出力機器を接続してそれらに対して出力信号を送り出す出力ユニット、ネットワークに接続された他の装置とデータの送受を行なう通信ユニット、マスタスレーブ通信をするためのマスタユニット、各ユニットに電源を供給する電源ユニット、などの複数のユニットを組み合わせることにより構成されている。   The PLC connects a CPU unit that executes calculations based on a control program, an input device such as a sensor or a switch and inputs an on / off signal as an input signal, and an output device such as an actuator or a relay. Output units that send output signals to them, communication units that send and receive data to and from other devices connected to the network, master units for master-slave communication, power supply units that supply power to each unit, etc. It is configured by combining a plurality of units.

1または複数のPLCや、I/O機器を接続するネットワークの一つとして産業用イーサネット(登録商標)がある。このネットワークに接続する機器は、EtherNet/IPやPROFINETに代表される産業用Ethernet規格に対応する必要がある。つまり、当該規格に準拠した機器は、IPアドレスを用い手通信を行なうため、使用開始に先立ちネットワークに接続された機器に対してIPアドレスを設定する必要がある。そして、このIPアドレスの設定は、専用のコンフィグレーションツール装置を用意し、そのツール装置を当該機器に接続して行なう。   Industrial Ethernet (registered trademark) is one of networks connecting one or more PLCs and I / O devices. A device connected to this network needs to support industrial Ethernet standards represented by EtherNet / IP and PROFINET. That is, since a device compliant with the standard performs manual communication using an IP address, it is necessary to set an IP address for a device connected to the network prior to the start of use. The IP address is set by preparing a dedicated configuration tool device and connecting the tool device to the device.

上述したように、専用のコンフィグレーションツール装置を用いたIPアドレスの設定を行なうようにした場合、設定対象の各機器ごとに係る処理を行なう必要があり、ユーザにとって非常に煩雑となる。しかも、産業用イーサネット(登録商標)に対応する全ての機器に共通のコンフィグレーションツール装置があるわけではないので、各機器ごと(少なくとも製造メーカーごと)にコンフィグレーションツール装置の操作性が異なることがあり、その点でもユーザにとって使い勝手が悪い。   As described above, when an IP address is set using a dedicated configuration tool device, it is necessary to perform a process for each device to be set, which is very complicated for the user. In addition, since there is not a common configuration tool device for all devices that support Industrial Ethernet (registered trademark), the operability of the configuration tool device may differ for each device (at least for each manufacturer). In that respect, it is not convenient for the user.

また、各機器に、ディップスイッチやロータリースイッチなどのメカスイッチを所定数設置し、そのメカスイッチを操作して機器に対して直接IPアドレスを設定することも考えられる。しかし、IPアドレスを設定するためには8個のメカスイッチが必要となり、コスト高となるばかりでなく、FAネットワークを構成するI/O機器の場合、その機器の物理的な大きさから8個ものメカスイッチを実装することが困難となる。   It is also conceivable that a predetermined number of mechanical switches such as dip switches and rotary switches are installed in each device, and the IP address is directly set to the device by operating the mechanical switch. However, in order to set an IP address, eight mechanical switches are required, which increases the cost, and in the case of an I / O device that constitutes an FA network, eight pieces are required due to the physical size of the device. It becomes difficult to implement a mechanical switch.

この発明は、I/O機器やPLCその他のノードを構成する機器(ノード機器)に対してIPアドレスを容易に設定することができるプログラマブルコントローラ及びユニットを提供することを目的とする。   An object of this invention is to provide the programmable controller and unit which can set an IP address easily with respect to the apparatus (node apparatus) which comprises I / O apparatus, PLC, and other nodes.

上述した目的を達成するため、本発明のプログラマブルコントローラでは、(1)産業用Ethernet(登録商標)規格に準拠した機器のMACアドレスと、その機器に設定するIPアドレスを関連づけたテーブルを記憶するテーブル記憶手段と、ネットワークに接続された機器にIPアドレスの割り当てを行うDHCP/BOOTPサーバを備え、そのDHCP/BOOTPサーバは、ネットワークに接続された機器からその機器のMACアドレスとともにIPアドレスの割り当て要求を受信した場合に、前記テーブル記憶手段をアクセスし、取得したMACアドレスに対応するIPアドレスを読み出し、その読み出したIPアドレスを前記機器に返信する機能を備えるようにした。   In order to achieve the above-described object, in the programmable controller of the present invention, (1) a table for storing a table in which a MAC address of a device compliant with the industrial Ethernet (registered trademark) standard and an IP address set for the device are associated with each other. A storage unit and a DHCP / BOOTP server for assigning an IP address to a device connected to the network, and the DHCP / BOOTP server sends an IP address assignment request together with the MAC address of the device from the device connected to the network. When receiving, the table storage means is accessed, the IP address corresponding to the acquired MAC address is read, and the read IP address is returned to the device.

このようにすると、IPアドレスが割り当てられていない機器は、ネットワークに接続した状態で割り当て要求を送信することで、DHCP/BOOTPサーバ機能を備えたプログラマブルコントローラから自動的にIPアドレスが返信されてくるので、以後、それに基づいて通信を行うことができる。よって、ユーザは個々の機器ごとにそれぞれIPアドレスの設定を行う必要が無く、IPアドレスを容易に設定することができる。   In this way, a device to which no IP address is assigned transmits an assignment request in a state where it is connected to the network, whereby an IP address is automatically returned from a programmable controller having a DHCP / BOOTP server function. Therefore, communication can be performed based on that. Therefore, the user does not need to set an IP address for each device, and can easily set an IP address.

プログラマブルコントローラは、複数のユニットを連結して構成されるタイプと、必要な機能が実装された一体型のいずれも含む。テーブル記憶手段に格納されるテーブルのデータは、ユーザが別途作成したものを、各種の方法で格納する。格納するための手段は、例えば、コンフィグレーションツール装置を用いて直接プログラマブルコントローラにダウンロードしたり、(2)前記テーブルは、プログラマブルコントローラに装着可能な外部補助記憶媒体に保存され、その外部補助記憶媒体から読み出したテーブルを前記テーブル記憶手段に記憶するようにしたりすることができる。外部補助記憶媒体は、実施形態ではCPUユニットに装着するメモリカードに対応する。メモリカードを用いることで、ユーザは係るテーブルを簡単に登録・更新することができる。また、外部補助記憶媒体に格納されたテーブルを定期的或いは所定のタイミングで読み出し、テーブル記憶手段に格納するようにするとよい。   The programmable controller includes both a type configured by connecting a plurality of units and an integrated type in which necessary functions are mounted. The table data stored in the table storage means is created separately by the user and stored by various methods. The means for storing can be downloaded directly to the programmable controller using, for example, a configuration tool device, or (2) the table is stored in an external auxiliary storage medium that can be attached to the programmable controller, and the external auxiliary storage medium The table read from can be stored in the table storage means. In the embodiment, the external auxiliary storage medium corresponds to a memory card attached to the CPU unit. By using the memory card, the user can easily register / update the table. The table stored in the external auxiliary storage medium may be read periodically or at a predetermined timing and stored in the table storage means.

(3)テーブルに格納するIPアドレスは、交換対象となる異なる機器に対して同一のIPアドレスの重複登録を許容するとよい。このようにすると、ある機器が故障して交換する場合、交換後の機器に対するIPアドレスを同じにしておくことで、交換後の機器からのIP割り当て要求に対し、係る同一のIPアドレスを返信する。よって、他の機器やプログラマブルコントローラは、この交換処理に際して特に変更処理をすることなく交換後の機器に対して通信処理が行なえる。   (3) The IP addresses stored in the table may be allowed to allow duplicate registration of the same IP address for different devices to be exchanged. In this way, when a certain device fails and is replaced, the same IP address is returned in response to an IP allocation request from the replaced device by keeping the same IP address for the replaced device. . Therefore, other devices and programmable controllers can perform communication processing with respect to the replaced device without any particular change processing during the replacement processing.

(4)テーブルは、MACアドレスとIPアドレスに加え、機器に設定する機器名称を関連づけるようにし、プログラマブルコントローラが実行するユーザプログラムは、通信相手の機器を特定する情報として前記機器名称を用いて記述され、実際に機器と通信する際に、前記テーブルを参照してIPアドレスを取得し、その取得したIPアドレスを使用して通信を行うようにするとよい。このようにすると、通信相手のIPアドレスを知らなくてもユーザプログラムを作成でき、利便性が向上する。   (4) The table associates the device name to be set to the device in addition to the MAC address and the IP address, and the user program executed by the programmable controller is described using the device name as information for identifying the communication partner device. Then, when actually communicating with the device, it is preferable to obtain an IP address by referring to the table and perform communication using the obtained IP address. In this way, a user program can be created without knowing the IP address of the communication partner, and convenience is improved.

(5)本発明のユニットは、産業用Ethernet規格に準拠した機器のMACアドレスと、その機器に設定するIPアドレスを関連づけたテーブルを記憶するテーブル記憶手段と、ネットワークに接続された機器にIPアドレスの割り当てを行うDHCP/BOOTPサーバを備え、そのDHCP/BOOTPサーバは、ネットワークに接続された機器からその機器のMACアドレスとともにIPアドレスの割り当て要求を受信した場合に、前記テーブル記憶手段をアクセスし、取得したMACアドレスに対応するIPアドレスを読み出し、その読み出したIPアドレスを前記機器に対して返信する機能を備えるようにした。実施形態では、IE通信ユニットにより実現されているが、CPUユニット等の他のユニットにより実現することもできる。   (5) The unit of the present invention includes a table storage means for storing a table in which a MAC address of a device compliant with the industrial Ethernet standard and an IP address set for the device are associated, and an IP address for a device connected to the network. A DHCP / BOOTP server that, when receiving an IP address assignment request together with the MAC address of the device from a device connected to the network, accesses the table storage means; An IP address corresponding to the acquired MAC address is read out, and a function of returning the read IP address to the device is provided. In the embodiment, it is realized by the IE communication unit, but may be realized by another unit such as a CPU unit.

本発明は、I/O機器やPLCその他のノードを構成する機器(ノード機器)に対してIPアドレスを容易に設定することができる。   According to the present invention, an IP address can be easily set for an I / O device, a PLC, and other devices (node devices) constituting a node.

図1は、本発明が適用されるFAネットワークシステムの一例を示している。産業用Ethernet(以下、「IE」と省略する)ネットワーク1に、IPアドレスの設定を行なうDHCP(Dynamic Host Configuration Protocol)(またはBOOTP(Bootstrap Protocol))サーバ機能を持つPLC10またはPT(プログラム表示器)を1台以上接続する。また、このIEネットワーク1には、IEに対応するノード機器が接続される。このノード機器は、DHCP(またはBOOTP)クライアント機能を持つPLC20や、DHCP(またはBOOTP)クライアント機能を持つI/Oターミナル30や、DHCP(またはBOOTP)クライアント機能を持つI/O機器40などがある。   FIG. 1 shows an example of an FA network system to which the present invention is applied. PLC 10 or PT (program display) having a DHCP (Dynamic Host Configuration Protocol) (or BOOTP (Bootstrap Protocol)) server function for setting an IP address in an industrial Ethernet (hereinafter abbreviated as “IE”) network 1 Connect one or more units. The IE network 1 is connected to node equipment corresponding to the IE. Examples of the node device include a PLC 20 having a DHCP (or BOOTP) client function, an I / O terminal 30 having a DHCP (or BOOTP) client function, and an I / O device 40 having a DHCP (or BOOTP) client function. .

PLC10は、ビルディングブロックタイプであり、CPUユニット11と、IE通信ユニット12と、その他のユニット13と、を備えている。同様にPLC20は、ビルディングブロックタイプであり、CPUユニット21と、IE通信ユニット22と、その他のユニット23と、を備えている。IE通信ユニット12には、DHCP(またはBOOTP)サーバ機能が実装され、IE通信ユニット22には、DHCP(またはBOOTP)クライアント機能が実装される。これら両機能は、ともにファームウェアで実現される。また、その他のユニット11,22は、PLCの機能を実現するための各種のユニットであり、図では便宜上1個のみ描画しているが、その設定数は任意であり、必要に応じて増減される。   The PLC 10 is a building block type and includes a CPU unit 11, an IE communication unit 12, and other units 13. Similarly, the PLC 20 is a building block type, and includes a CPU unit 21, an IE communication unit 22, and other units 23. The IE communication unit 12 is provided with a DHCP (or BOOTP) server function, and the IE communication unit 22 is provided with a DHCP (or BOOTP) client function. Both of these functions are realized by firmware. The other units 11 and 22 are various units for realizing the functions of the PLC. In the figure, only one is drawn for convenience, but the number of settings is arbitrary, and can be increased or decreased as necessary. The

I/Oターミナル30は、センサやリレーなどの入出力機器31を接続するI/O端子32と、IEネットワーク1に接続され他のノード機器と通信をする通信カプラ33と、を備えている。この通信カプラ33にDHCP(またはBOOTP)クライアント機能が実装される。   The I / O terminal 30 includes an I / O terminal 32 that connects an input / output device 31 such as a sensor or a relay, and a communication coupler 33 that is connected to the IE network 1 and communicates with other node devices. The communication coupler 33 is provided with a DHCP (or BOOTP) client function.

IEネットワーク1に接続されるI/O機器40は、高機能(インテリジェント)I/Oなどとも称されるもので、通信機能を備えた入力機器(装置)や出力機器(装置)である。一例としては、バーコードリーダ,モーションコントローラ,画像処理装置,センサなどがある。このI/O機器40は、DHCP(またはBOOTP)クライアント機能が実装された通信アダプタ41を備えている。   The I / O device 40 connected to the IE network 1 is also called a high function (intelligent) I / O or the like, and is an input device (device) or an output device (device) having a communication function. Examples include a barcode reader, a motion controller, an image processing device, and a sensor. The I / O device 40 includes a communication adapter 41 in which a DHCP (or BOOTP) client function is implemented.

次に、IPアドレスの自動設定機能について説明する。まず、PLC10のCPUユニット11に装着する外部補助記憶媒体であるメモリカード15に、DHCP/BOOTPテーブルを格納しておく。このDHCP/BOOTPテーブルは、各機器・装置にユニークに設定されたMACアドレスと、そのMACアドレスの機器に対して割り当てるIPアドレスを関連づけたテーブルである。具体的には、図2に示すようなテーブル構造となっており、本実施形態では、さらに機器名称と、ネットマスクと、を関連づけている。   Next, the IP address automatic setting function will be described. First, a DHCP / BOOTP table is stored in a memory card 15 that is an external auxiliary storage medium mounted on the CPU unit 11 of the PLC 10. This DHCP / BOOTP table is a table in which a MAC address uniquely set for each device / device is associated with an IP address assigned to the device having the MAC address. Specifically, the table structure is as shown in FIG. 2, and in this embodiment, the device name and the net mask are further associated with each other.

このテーブルを構成する各データは、ユーザが予め各種のツール装置を用いて作成し、メモリカード15に登録しておく。ユーザは、自己が作成するFAネットワークを構築する各機器のMACアドレスを取得し、その取得したMACアドレスと関連づけてIPアドレスと、その機器を人間が特定(認識)しやすくするための名称である機器名称と、を、任意に決定する。そして、メモリカード15に登録されたDHCP/BOOTPテーブルは、CPUユニットからアクセスし、読み出すことができる。   Each data constituting this table is created in advance by a user using various tool devices and registered in the memory card 15. The user acquires the MAC address of each device that constructs the FA network created by the user, associates the acquired MAC address with the IP address, and is a name for facilitating human identification (recognition) of the device. The device name is arbitrarily determined. The DHCP / BOOTP table registered in the memory card 15 can be accessed and read from the CPU unit.

図3は、IE通信ユニット12の内部構造を示している。このIE通信ユニット12は、IEネットワーク1に接続され値通信コントローラ12aと、不揮発性メモリ12bと、MPU12cと、ROM12dと、RAM12eと、バックプレーンバス12fと、を備え、それらは内部バス12gにより相互に通信可能に接続されている。   FIG. 3 shows the internal structure of the IE communication unit 12. The IE communication unit 12 is connected to the IE network 1 and includes a value communication controller 12a, a nonvolatile memory 12b, an MPU 12c, a ROM 12d, a RAM 12e, and a backplane bus 12f, which are mutually connected by an internal bus 12g. Is communicably connected.

ROM12dには、Ethernet(登録商標)標準プロトコルであるTCP/IP及びUDP/IP、さらにこのプロトコルスタック上で動作するDHCP/BOOTPサーバが書き込まれている。RAM12eは、これらのプロトコルが動作するのに必要なワーク領域である。MPU12cは、ROM12dに格納された各種のプログラムを読み出し、RAM12eをワークメモリとして使用し、所定の処理を実行する。本実施形態との関係で言うと、MPU12cは、IPアドレスの設定処理を実行する。また、不揮発性メモリ12bには、専用コマンドにてパックプレーンバスを介してCPUユニット11から読み出したDHCP/BOOTPテーブルを格納する。なお、係る不揮発性メモリ11bに格納するDHCP/BOOTPテーブルは、コンフィグレーションツール装置によって、不揮発性メモリ12bに直接書き込むことも可能である。   The ROM 12d is written with TCP / IP and UDP / IP, which are Ethernet (registered trademark) standard protocols, and also a DHCP / BOOTP server operating on this protocol stack. The RAM 12e is a work area necessary for these protocols to operate. The MPU 12c reads various programs stored in the ROM 12d, uses the RAM 12e as a work memory, and executes predetermined processing. In terms of the relationship with this embodiment, the MPU 12c executes an IP address setting process. Further, the non-volatile memory 12b stores a DHCP / BOOTP table read from the CPU unit 11 via a pack plane bus by a dedicated command. Note that the DHCP / BOOTP table stored in the nonvolatile memory 11b can be directly written into the nonvolatile memory 12b by the configuration tool device.

なお、IE通信ユニット22のハードウェア構造は、図3に示すものと同様である。但し、ROMには、TCP/IP及びUDP/IP、さらにこのプロトコルスタック上で動作するDHCP/BOOTPクライアントが書き込まれる点でIE通信ユニット12と相違する。   The hardware structure of the IE communication unit 22 is the same as that shown in FIG. However, the ROM is different from the IE communication unit 12 in that TCP / IP and UDP / IP and a DHCP / BOOTP client operating on the protocol stack are written in the ROM.

図4は、IPアドレスの自動設定の処理手順を示しており、図5,図6は、IE通信ユニット12と、IO機器におけるIPアドレス設定のための機能を示すフローチャートである。まず、図4に示すように、PLC10のIE通信ユニット12とCPUユニット11とは、バックプレーンバス16により接続されている。つまり、このバックプレーンバス16は、IE通信ユニット12とCPUユニット11をつなぐ内部バスであり、専用コマンドによって双方向でデータ交換を行なうことができる。例えば、CPUユニット11内に装着されたメモリカード内のデータを読み出すことも、専用コマンドを使用する。そして、実際のIPアドレスの設定手順は、以下の(1)〜(4)の通りである。   FIG. 4 shows a processing procedure for automatic IP address setting, and FIGS. 5 and 6 are flowcharts showing functions for setting an IP address in the IE communication unit 12 and the IO device. First, as shown in FIG. 4, the IE communication unit 12 of the PLC 10 and the CPU unit 11 are connected by a backplane bus 16. That is, the backplane bus 16 is an internal bus that connects the IE communication unit 12 and the CPU unit 11, and can exchange data bidirectionally by a dedicated command. For example, reading out data in a memory card mounted in the CPU unit 11 also uses a dedicated command. The actual IP address setting procedure is as follows (1) to (4).

(1)DHCP/BOOTPサーバ機能を持つIE通信ユニット12は、予め(または定期的に)CPUユニット11に対し、メモリカード15内にあるDHCP/BOOTPテーブルの読み出しを専用コマンドにて要求する。   (1) The IE communication unit 12 having the DHCP / BOOTP server function requests the CPU unit 11 in advance (or periodically) to read out the DHCP / BOOTP table in the memory card 15 with a dedicated command.

(2)CPUユニット11は、専用コマンドを解釈して、メモリカード15内にあるDHCP/BOOTPテーブルを読み出し、バックプレーンバス16を介してIE通信ユニット12に返信する。この返信を受けたIE通信ユニット12は、取得したDHCP/BOOTPテーブルを不揮発性メモリ12bに格納する。この(1),(2)の処理が、処理ステップS1を実行することで行なわれる。   (2) The CPU unit 11 interprets the dedicated command, reads the DHCP / BOOTP table in the memory card 15, and sends it back to the IE communication unit 12 via the backplane bus 16. Upon receiving this reply, the IE communication unit 12 stores the acquired DHCP / BOOTP table in the nonvolatile memory 12b. The processes (1) and (2) are performed by executing process step S1.

(3)DHCP/BOOTPプロトコルのクライアント機能を持つノード機器(PLC,20,I/Oターミナル30,I/O機器40)は、自身にIPアドレスが設定されていない場合に、自己のMACアドレスとともにIPアドレス割り当ての要求をDHCP/BOOTPサーバに対して行なう。つまり、DISCOVERフレームを送信する。DISCOVERフレームには、送信元のMACアドレスが含まれる。係る処理は、ノード機器が図6の処理ステップS11,S12を実行することで行なわれる。   (3) A node device (PLC, 20, I / O terminal 30, I / O device 40) having a client function of the DHCP / BOOTP protocol, together with its own MAC address, when an IP address is not set in itself. A request for IP address assignment is made to the DHCP / BOOTP server. That is, a DISCOVER frame is transmitted. The DISCOVER frame includes the source MAC address. Such processing is performed by the node device executing the processing steps S11 and S12 of FIG.

(4)IE通信ユニットは、IPアドレス割り当て要求(DISCOVERフレーム)を受信するのを待ち(S2)、受信したならば、先に読み出したDHCP/BOOTPテーブルを参照しMACアドレスに対応するIPアドレスを読み出す(S3)。そして、読み出したIPアドレスを、要求したノード機器へDHCP/BOOTPプロトコルに従ってOFFERフレームを返信する(S4)。ノード機器は、自身のIPアドレスを取得するのを待ち(S13)、DHCP/BOOTPサーバ機能を持つIE通信ユニット12からOFFERフレームによりIPアドレスが返信されてきたならば、それを獲得し(S13でYes)、処理を終了する。なお、実際には、ノード機器は返信されたOFFERフレームを自身のIPアドレスとして認識し、再度REQUESTフレームを送信する。この後、DHCPサーバからPACKが返送されれば自身のIPアドレスとして設定する(内部メモリに値を保持する)。   (4) The IE communication unit waits to receive an IP address allocation request (DISCOVER frame) (S2). If received, the IE communication unit refers to the previously read DHCP / BOOTP table and determines the IP address corresponding to the MAC address. Read (S3). Then, the OFFER frame is returned to the requested node device according to the DHCP / BOOTP protocol (S4). The node device waits to acquire its own IP address (S13), and if an IP address is returned by the OFFER frame from the IE communication unit 12 having the DHCP / BOOTP server function, acquires it (S13). Yes), the process ends. In practice, the node device recognizes the returned OFFER frame as its own IP address, and transmits the REQUEST frame again. Thereafter, if a PACK is returned from the DHCP server, it is set as its own IP address (a value is stored in the internal memory).

また、DHCP/BOOTPテーブルを持たないIE通信ユニット22(DHCP(またはBOOTP)クライアント機能を実装)は、上述した手順により、IE通信ユニット12から自身のIPアドレスを獲得し、さらに、IE通信ユニット12からDHCP/BOOTPテーブルをダウンロードし、係るテーブルを自身の不揮発性メモリに保存する機能を備えている。   Further, the IE communication unit 22 (which implements the DHCP (or BOOTP) client function) that does not have a DHCP / BOOTP table acquires its own IP address from the IE communication unit 12 according to the above-described procedure, and further, the IE communication unit 12 A DHCP / BOOTP table is downloaded from, and the table is stored in its own nonvolatile memory.

つまり、図8に示すように、処理ステップS11からS13を実行して自身のIPアドレスをIE通信ユニット12に設定してもらう。次いで、IE通信ユニット22は、自身がDHCP/BOOTPテーブルを持っているか否かを判断し(S14)、テーブルを持っていない場合にはDHCP/BOOTPサーバに対して、DHCP/BOOTPテーブル読出しコマンドを発行して、DHCP/BOOTPテーブルを読出し、内部メモリ(不揮発性メモリ)に保存する(S15)。   That is, as shown in FIG. 8, processing steps S11 to S13 are executed to have the IE communication unit 12 set its own IP address. Next, the IE communication unit 22 determines whether or not it has a DHCP / BOOTP table (S14), and if it does not have a table, sends a DHCP / BOOTP table read command to the DHCP / BOOTP server. Issued, the DHCP / BOOTP table is read and stored in the internal memory (non-volatile memory) (S15).

上述のようにしてIEネットワーク1に接続された各機器にIPアドレスが設定された後は、そのIPアドレスを用いて通信を行なう。本実施形態では、CPUユニット内のユーザプログラムから、メッセージ通信を行なう際に指定する相手ノードのIPアドレスについては、DHCP/BOOTPテーブル内にある機器名称を使用して指定することができる。すなわち、例えば図8(a)に示すようなメッセージ送信のユーザプログラム(ラダー図)が記述された場合、DM01000のメモリエリアには送信先の相手ノードのIPアドレスが格納され、DM02000のメモリエリアには送信データが格納される。しかし、本実施形態では、図8(b)に示すように、DM01000には、送信先アドレスとして、“Machine5”を格納している。そして、図8(c)に示すように、DM02000には、実際の送信データを格納する。   After an IP address is set for each device connected to the IE network 1 as described above, communication is performed using the IP address. In the present embodiment, the IP address of the partner node specified when performing message communication can be specified from the user program in the CPU unit using the device name in the DHCP / BOOTP table. That is, for example, when a message transmission user program (ladder diagram) as shown in FIG. 8A is described, the IP address of the destination partner node is stored in the DM01000 memory area, and the DM02000 memory area is stored in the DM02000 memory area. Stores transmission data. However, in this embodiment, as shown in FIG. 8B, DM01000 stores “Machine 5” as the transmission destination address. Then, as shown in FIG. 8C, the actual transmission data is stored in DM02000.

係るユーザプログラム内のメッセージ送信命令を実行すると、CPUユニットはIE通信ユニットに対して、専用コマンド(図9参照)にてこの命令のデータ(送信先アドレスなどの通信パラメータ、送信データなど)を渡す。すると、バックプレーンバスを通して、IE通信ユニットに渡されたデータ内にある、送信先パラメータには、送信先アドレスとして、機器名称が記載されているので、IE通信ユニットは、DHCP/BOOTPテーブルを参照し、機器名称に関連づけられた送信先IPアドレスを読み出す。そして、IE通信ユニットは、この読出したIPアドレスを使って、通信メッセージを作成して、IEネットワークに送り出すといった手順に従いIPアドレスを用いたメッセージ送信が行なわれる。   When the message transmission command in the user program is executed, the CPU unit passes data (communication parameters such as a transmission destination address, transmission data, etc.) of this command to the IE communication unit by a dedicated command (see FIG. 9). . Then, since the device name is described as the transmission destination address in the transmission destination parameter in the data passed to the IE communication unit through the backplane bus, the IE communication unit refers to the DHCP / BOOTP table. The destination IP address associated with the device name is read out. Then, the IE communication unit transmits a message using the IP address according to a procedure of creating a communication message using the read IP address and sending it to the IE network.

上記によれば、CPUユニットでは送信先アドレスは機器名称がそのまま専用コマンド内に埋め込まれてIE通信ユニットに渡されるため、CPUユニットでは送信先IPアドレスは解決されている必要はない。そして、送信先IPアドレスは、IE通信ユニット内でDHCP/BOOTPテーブルを参照して解決されるため、送信先IPアドレスが変更になった場合は、DHCP/BOOTPテーブルだけを変更すれば良い。このため、CPUユニット内のユーザプログラム自体を変更する必要はない。   According to the above, in the CPU unit, since the device name is embedded in the dedicated command as it is and the device name is passed to the IE communication unit, the CPU unit does not need to resolve the transmission destination IP address. Since the destination IP address is resolved with reference to the DHCP / BOOTP table in the IE communication unit, when the destination IP address is changed, only the DHCP / BOOTP table needs to be changed. For this reason, it is not necessary to change the user program itself in the CPU unit.

一方、メッセージ受信時は、この処理フローの逆を実行することで、送信元ノードの機器名称がCPUユニットに渡される。即ち、図10に示すようなユーザプログラムが記述されているとする。すると、IE通信ユニットは、受信した通信メッセージ内から送信元IPアドレスを取り出す。そして、IE通信ユニットは、DHCP/BOOTPテーブルを参照し、送信元IPアドレスから機器名称を読み出す。送信元アドレスとして機器名称を送信元パラメータ内に設定して、バックプレーンバスを介して、専用コマンド(図11参照)にてCPUユニットに受信メッセージ(送信元アドレスなどの通信パラメータ、受信データなど)を渡す。すると、CPUユニットは、ユーザプログラム内の受信命令を実行すると、この命令で指定されたエリア(DM03000)に送信元アドレスとして機器名称を書き込む(図11(a)参照)とともに、エリア(DM04000)に受信データを置き込む)(図11(b)参照)。   On the other hand, when a message is received, the device name of the transmission source node is passed to the CPU unit by executing the reverse of this processing flow. That is, assume that a user program as shown in FIG. 10 is described. Then, the IE communication unit extracts the transmission source IP address from the received communication message. Then, the IE communication unit refers to the DHCP / BOOTP table and reads the device name from the transmission source IP address. The device name is set in the transmission source parameter as the transmission source address, and the received message (communication parameters such as the transmission source address, reception data, etc.) is sent to the CPU unit by a dedicated command (see FIG. 11) via the backplane bus. give. Then, when the CPU unit executes the reception command in the user program, it writes the device name as the transmission source address in the area (DM03000) specified by this command (see FIG. 11 (a)) and also in the area (DM04000). Received data is inserted) (see FIG. 11B).

よってユーザは、相手ノードのIPアドレスを知る必要がなく、また相手ノードのIPアドレスが変更になった場合でも、このDHCP/BOOTPテーブルを変更するだけで良く、ユーザプログラム自体の変更は不要になる。   Therefore, the user does not need to know the IP address of the counterpart node, and even if the IP address of the counterpart node is changed, it is only necessary to change the DHCP / BOOTP table, and the user program itself does not need to be changed. .

一方、本実施形態では、DHCP/BOOTPテーブルに、重複する機器名称や重複するIPアドレスの登録を許容している。すなわち、故障などの原因により特定のI/O機器を交換する必要がある場合も、予めこのテーブルに交換用の機器についてのMACアドレスと機器名称とIPアドレスの関連づけを登録しておくことで対応可能となる。例えば図13に示すように、“Device_123”という機器名称を二重登録しておくと、当初はMACアドレスが123456789ACFを持つ機器を使用していたが、それをMACアドレスが123456789AD0の機器に交換した場合、その交換後の機器に対しても同一のIPアドレスを割り当てることができる。そして、係る機器の交換に伴いIPアドレスが変わっていないので、IEネットワークに接続された他の機器は、ユーザプログラムを変更することなくそのまま対応できる。   On the other hand, in the present embodiment, registration of duplicate device names and duplicate IP addresses is permitted in the DHCP / BOOTP table. In other words, if a specific I / O device needs to be replaced due to a cause such as a failure, it is possible to register the MAC address, device name, and IP address association for the replacement device in this table in advance. It becomes possible. For example, as shown in FIG. 13, when the device name “Device_123” is registered twice, the device having the MAC address of 12345789 ACF was initially used, but it was replaced with the device having the MAC address of 1234578989 AD0. In this case, the same IP address can be assigned to the replaced device. Since the IP address does not change with the replacement of the device, other devices connected to the IE network can cope with the user program without changing them.

ネットワーク構成の一例を示す図である。It is a figure which shows an example of a network structure. DHCP/BOOTPテーブルの一例を示す図である。It is a figure which shows an example of a DHCP / BOOTP table. IE通信ユニットの内部構成を示す図である。It is a figure which shows the internal structure of IE communication unit. IPアドレスの割り当て処理機能を説明する図である。It is a figure explaining the allocation processing function of an IP address. サーバ側のIPアドレスの割り当て処理機能を説明する図である。It is a figure explaining the allocation processing function of the server side IP address. クライアント側のIPアドレスの割り当て処理機能を説明する図である。It is a figure explaining the assignment processing function of the IP address on the client side. クライアント側のIE通信ユニットの機能を説明する図である。It is a figure explaining the function of IE communication unit by the side of a client. メッセージ送信処理の作用を説明する図である。It is a figure explaining the effect | action of a message transmission process. メッセージ送信の専用コマンドのデータ構造を示す図である。It is a figure which shows the data structure of the exclusive command of message transmission. メッセージ受信処理の作用を説明する図である。It is a figure explaining the effect | action of a message reception process. メッセージ受信の専用コマンドのデータ構造を示す図である。It is a figure which shows the data structure of the command for exclusive use of message reception. メッセージ受信処理の作用を説明する図である。It is a figure explaining the effect | action of a message reception process. DHCP/BOOTPテーブルの一例を示す図である。It is a figure which shows an example of a DHCP / BOOTP table.

符号の説明Explanation of symbols

10 PLC(DHCP/BOOTPサーバ機能付)
11 CPUユニット
12 IE通信ユニット
12a 通信コントローラ
12b 不揮発性メモリ(テーブル記憶手段)
12c MPU
12d ROM
12e RAM
12f バックプレーンバスI/F
12g 内部バス
13 その他のユニット
15 メモリカード
16 バックプレーンバス
20 PLC(DHCP/BOOTPクライアント機能付)
21 CPUユニット
22 IE通信ユニット
23 その他のユニット
30 I/Oターミナル
40 I/O機器
10 PLC (with DHCP / BOOTP server function)
11 CPU unit 12 IE communication unit 12a communication controller 12b nonvolatile memory (table storage means)
12c MPU
12d ROM
12e RAM
12f Backplane bus I / F
12g Internal bus 13 Other unit 15 Memory card 16 Backplane bus 20 PLC (with DHCP / BOOTP client function)
21 CPU unit 22 IE communication unit 23 Other unit 30 I / O terminal 40 I / O device

Claims (5)

産業用Ethernet規格に準拠した機器のMACアドレスと、その機器に設定するIPアドレスを関連づけたテーブルを記憶するテーブル記憶手段と、
ネットワークに接続された機器にIPアドレスの割り当てを行うDHCP/BOOTPサーバを備え、
そのDHCP/BOOTPサーバは、ネットワークに接続された機器からその機器のMACアドレスとともにIPアドレスの割り当て要求を受信した場合に、前記テーブル記憶手段をアクセスし、取得したMACアドレスに対応するIPアドレスを読み出し、その読み出したIPアドレスを前記機器に返信する機能を備えたことを特徴とするプログラマブルコントローラ。
Table storage means for storing a table in which a MAC address of a device compliant with the industrial Ethernet standard and an IP address set for the device are associated with each other;
A DHCP / BOOTP server that assigns IP addresses to devices connected to the network
When the DHCP / BOOTP server receives an IP address assignment request together with the MAC address of the device from the device connected to the network, the DHCP / BOOTP server accesses the table storage unit and reads the IP address corresponding to the acquired MAC address. A programmable controller comprising a function of returning the read IP address to the device.
前記テーブルは、プログラマブルコントローラに装着可能な外部補助記憶媒体に保存され、その外部補助記憶媒体から読み出したテーブルを前記テーブル記憶手段に記憶するようにしたことを特徴とする請求項1に記載のプログラマブルコントローラ。   The programmable table according to claim 1, wherein the table is stored in an external auxiliary storage medium that can be attached to a programmable controller, and the table read from the external auxiliary storage medium is stored in the table storage means. controller. 前記テーブルに格納するIPアドレスは、交換対象となる異なる機器に対して同一のIPアドレスの重複登録を許容したことを特徴とする請求項1または2に記載のプログラマブルコントローラ。   The programmable controller according to claim 1 or 2, wherein the IP address stored in the table allows the same IP address to be registered repeatedly for different devices to be exchanged. 前記テーブルは、前記MACアドレスと前記IPアドレスに加え、機器に設定する機器名称を関連づけるようにし、
プログラマブルコントローラが実行するユーザプログラムは、通信相手の機器を特定する情報として前記機器名称を用いて記述され、
実際に機器と通信する際に、前記テーブルを参照してIPアドレスを取得し、その取得したIPアドレスを使用して通信を行うようにしたことを特徴とする請求項1から3のいずれか1項に記載のプログラマブルコントローラ。
In addition to the MAC address and the IP address, the table associates a device name set to the device,
The user program executed by the programmable controller is described using the device name as information for specifying the communication partner device,
4. When actually communicating with a device, an IP address is acquired by referring to the table, and communication is performed using the acquired IP address. Programmable controller given in the paragraph.
産業用Ethernet規格に準拠した機器のMACアドレスと、その機器に設定するIPアドレスを関連づけたテーブルを記憶するテーブル記憶手段と、
ネットワークに接続された機器にIPアドレスの割り当てを行うDHCP/BOOTPサーバを備え、
そのDHCP/BOOTPサーバは、ネットワークに接続された機器からその機器のMACアドレスとともにIPアドレスの割り当て要求を受信した場合に、前記テーブル記憶手段をアクセスし、取得したMACアドレスに対応するIPアドレスを読み出し、その読み出したIPアドレスを前記機器に対して返信する機能を備えたことを特徴とするプログラマブルコントローラ用のユニット。
Table storage means for storing a table in which a MAC address of a device compliant with the industrial Ethernet standard and an IP address set for the device are associated with each other;
A DHCP / BOOTP server that assigns IP addresses to devices connected to the network
When the DHCP / BOOTP server receives an IP address assignment request together with the MAC address of the device from the device connected to the network, the DHCP / BOOTP server accesses the table storage unit and reads the IP address corresponding to the acquired MAC address. A programmable controller unit comprising a function of returning the read IP address to the device.
JP2007097723A 2007-04-03 2007-04-03 Programmable controller and unit Expired - Fee Related JP4849340B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007097723A JP4849340B2 (en) 2007-04-03 2007-04-03 Programmable controller and unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007097723A JP4849340B2 (en) 2007-04-03 2007-04-03 Programmable controller and unit

Publications (2)

Publication Number Publication Date
JP2008257400A true JP2008257400A (en) 2008-10-23
JP4849340B2 JP4849340B2 (en) 2012-01-11

Family

ID=39980928

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007097723A Expired - Fee Related JP4849340B2 (en) 2007-04-03 2007-04-03 Programmable controller and unit

Country Status (1)

Country Link
JP (1) JP4849340B2 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013010165A (en) * 2011-06-29 2013-01-17 Honda Motor Co Ltd Distributed control system
JP2013242629A (en) * 2012-05-18 2013-12-05 Omron Corp Control device, control method and instruction set
JP2014119912A (en) * 2012-12-14 2014-06-30 Omron Corp Control apparatus and control program
JP2017229051A (en) * 2016-06-23 2017-12-28 キーランド テクノロジー カンパニー リミテッド Method for achieving setting management of broadband bus in industrial internet site
KR101869233B1 (en) * 2016-03-08 2018-06-20 주식회사 로제타텍 Operating method of process management system for distributed programmable logic controllers adopting internet-of-things configuration
CN111897284A (en) * 2020-08-21 2020-11-06 湖南匡安网络技术有限公司 Safety protection method and system for PLC (programmable logic controller) equipment
JP7374379B1 (en) * 2022-10-14 2023-11-06 三菱電機株式会社 Data collection device, data collection system, database creation method and program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000165407A (en) * 1998-11-30 2000-06-16 Hitachi Cable Ltd Network management system
JP2002149211A (en) * 2000-11-15 2002-05-24 Yokogawa Electric Corp Signal name managing method for program for programmable controller and device using the same
JP2003167606A (en) * 2001-11-30 2003-06-13 Omron Corp Programmable controller or programmable display unit and its user authentication method
JP2004503150A (en) * 2000-07-11 2004-01-29 スコーピオン・コントロールス・インコーポレーテッド Industrial automation network system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000165407A (en) * 1998-11-30 2000-06-16 Hitachi Cable Ltd Network management system
JP2004503150A (en) * 2000-07-11 2004-01-29 スコーピオン・コントロールス・インコーポレーテッド Industrial automation network system
JP2002149211A (en) * 2000-11-15 2002-05-24 Yokogawa Electric Corp Signal name managing method for program for programmable controller and device using the same
JP2003167606A (en) * 2001-11-30 2003-06-13 Omron Corp Programmable controller or programmable display unit and its user authentication method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013010165A (en) * 2011-06-29 2013-01-17 Honda Motor Co Ltd Distributed control system
JP2013242629A (en) * 2012-05-18 2013-12-05 Omron Corp Control device, control method and instruction set
JP2014119912A (en) * 2012-12-14 2014-06-30 Omron Corp Control apparatus and control program
KR101869233B1 (en) * 2016-03-08 2018-06-20 주식회사 로제타텍 Operating method of process management system for distributed programmable logic controllers adopting internet-of-things configuration
JP2017229051A (en) * 2016-06-23 2017-12-28 キーランド テクノロジー カンパニー リミテッド Method for achieving setting management of broadband bus in industrial internet site
US10341136B2 (en) 2016-06-23 2019-07-02 Kyland Technology Co., Ltd. Method for managing configuration of industrial internet field broadband bus
CN111897284A (en) * 2020-08-21 2020-11-06 湖南匡安网络技术有限公司 Safety protection method and system for PLC (programmable logic controller) equipment
JP7374379B1 (en) * 2022-10-14 2023-11-06 三菱電機株式会社 Data collection device, data collection system, database creation method and program

Also Published As

Publication number Publication date
JP4849340B2 (en) 2012-01-11

Similar Documents

Publication Publication Date Title
JP4849340B2 (en) Programmable controller and unit
KR100906504B1 (en) Wireless communication system, wireless lan access point and settings confirmation/change method used therefor
JP4454539B2 (en) IP telephone automatic setting system and method
US10412042B2 (en) Topology based internet protocol (IP) addressing
JP4948839B2 (en) Method and apparatus for allocating network subscriber device addresses in a ProfitetIO network
WO2013137884A1 (en) Device address management in an automation control system
US7599393B1 (en) Architecture for emulating an ethernet network interface card
JP2007080286A (en) Data collecting apparatus
CN104780054A (en) Gateway used for controlling local area network to wake up or sleep
CN104518910B (en) Apparatus for configuring Ethernet device and method for configuring Ethernet device
CN111052009B (en) Control system, controller and control method
WO2013080475A1 (en) Relay server device and relay communication system
US20130103843A1 (en) Method for establishing a communication link between a programming device and an automation technology field device
JP2015119389A (en) Communication adapter
KR101332726B1 (en) Controller-field bus data converter
JP6192873B1 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD
WO2021033356A1 (en) Control system and control method
JP2009104283A (en) System for transmitting/receiving data by modbus and control equipment such as programmable controller
JP2005079672A (en) Ip address converter
JP7163657B2 (en) Support device, setting method and setting program
KR20190062214A (en) Communication controlling apparatus
JP3590329B2 (en) Control network system
WO2022254953A1 (en) Control system and control method
JP3550677B2 (en) Personal computer and communication method of personal computer
JP5213029B2 (en) Configuration information transmission method, configuration information transmission system, router and terminal

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100208

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110323

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110323

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110520

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

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

R150 Certificate of patent or registration of utility model

Ref document number: 4849340

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

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees