JP2004171540A - Production facility control device, production facility control system, and control method of production facility with production facility control device - Google Patents

Production facility control device, production facility control system, and control method of production facility with production facility control device Download PDF

Info

Publication number
JP2004171540A
JP2004171540A JP2003370105A JP2003370105A JP2004171540A JP 2004171540 A JP2004171540 A JP 2004171540A JP 2003370105 A JP2003370105 A JP 2003370105A JP 2003370105 A JP2003370105 A JP 2003370105A JP 2004171540 A JP2004171540 A JP 2004171540A
Authority
JP
Japan
Prior art keywords
control device
service
network
production equipment
data
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
JP2003370105A
Other languages
Japanese (ja)
Other versions
JP4479220B2 (en
Inventor
Tetsuo Noda
哲男 野田
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2003370105A priority Critical patent/JP4479220B2/en
Publication of JP2004171540A publication Critical patent/JP2004171540A/en
Application granted granted Critical
Publication of JP4479220B2 publication Critical patent/JP4479220B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Classifications

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

Abstract

<P>PROBLEM TO BE SOLVED: To provide a production facility control device capable of automatically performing a setting work without requiring manual work. <P>SOLUTION: This control device 2 is installed to control a production facility through a network 1. This control device 2 is constituted of a network connection means 9 allocated to connect with the network 1; a service means 5 executing a prescribed processing program on the basis of fetched data; an own service distribution means 6 for transmitting one or more of at least its own IP address and port number, its unique identification number, and its unique identification name in a fixed period; a universal service connecting means 8 for performing input and output of data to the other production facility control device 2 through the network 1; and an other service searching means 7 for retrieving data of the other production facility control device 2 through the network 1. As the communication method between the own service distribution means 6 of the other production facility control device 2 and the other service searching means 7 through the network 1, a multi-cast communication is applied, and as the communication method between the universal service connection means 8, uni-cast communication is applied. <P>COPYRIGHT: (C)2004,JPO

Description

この発明は、生産設備用制御装置、生産設備制御システムおよび生産設備用制御装置による生産設備の制御方法に関し、特にネットワークに接続された生産設備用制御装置、生産設備制御システムおよび生産設備用制御装置による生産設備の制御方法に関するものである。   The present invention relates to a production equipment control device, a production equipment control system, and a production equipment control method using the production equipment control device, and more particularly to a production equipment control device, a production equipment control system, and a production equipment control device connected to a network. And a method for controlling a production facility.

従来の生産設備用制御装置(以下、制御装置と言う)による生産ラインは、例えば、特許文献1の図1に示されるような構成を有していた。図中の各制御装置にはTCP/IP通信におけるIPアドレスが割り当てられている。かかるIPアドレス付与後、所定の動作が起動され、稼動状態の集計およびNCプログラムの選択的ダウンロードが開始されて、生産活動が進行する。特許文献1記載の発明では、このとき収集されるデータの整理方法を工夫することで通信量を減らそうというものであった。   A production line using a conventional production equipment control device (hereinafter, referred to as a control device) has, for example, a configuration as shown in FIG. Each control device in the figure is assigned an IP address in TCP / IP communication. After the assignment of the IP address, a predetermined operation is started, the tallying of the operating state and the selective download of the NC program are started, and the production activity proceeds. In the invention described in Patent Document 1, the amount of communication is reduced by devising a method of organizing the data collected at this time.

また、特許文献2の図1には、従来の他の制御装置が示されている。図中の生産設備制御手段はプロトコル変換器としての制御装置を介してネットワークに接続されており、各生産設備制御手段はTCP/IP通信におけるIPアドレスおよびポート番号により識別される。従来の他の制御装置は、予め設計された生産計画を表すガントチャートと、実際に生産設備を稼動させて得られる生産実績データに基づくガントチャートを比較することで正確な状況把握と生産計画の立案を行なうものであった。   FIG. 1 of Patent Document 2 shows another conventional control device. The production equipment control means in the figure is connected to a network via a control device as a protocol converter, and each production equipment control means is identified by an IP address and a port number in TCP / IP communication. Other conventional control devices compare the Gantt chart representing a pre-designed production plan with the Gantt chart based on actual production data obtained by actually operating production equipment, to grasp the exact situation and determine the production plan. Planning was done.

さらに、特許文献3の図1には、従来の他の制御装置が示されている。図中の各制御装置にはTCP/IP通信におけるIPアドレスが割り当てられている。かかる従来の他の制御装置は、生産ラインを流れるワークの現在位置やラインとしての稼動状態を把握するために、制御装置間で「ワークオブジェクト」と称するデータをやり取りするように構成されていた。これにより生産設備において、現在到着しているワークに適した制御が可能で、メモリ容量を削減できる効果があった。   FIG. 1 of Patent Document 3 shows another conventional control device. Each control device in the figure is assigned an IP address in TCP / IP communication. Such other conventional control devices are configured to exchange data called "work objects" between the control devices in order to grasp the current position of the work flowing on the production line and the operating state as a line. As a result, in the production equipment, it is possible to perform control suitable for the currently arriving work, and to reduce the memory capacity.

特開平5−20227号公報JP-A-5-20227 特開平9−272047号公報JP-A-9-27247 特開平11−249717号公報JP-A-11-249717

従来の制御装置は、各生産設備に直接接続している生産設備制御手段あるいは制御装置に対しては、以下の設定作業を生産開始前に実施する必要があった。例えば、稼動情報を表すデータの送信先はメインデータベースを持った制御装置であることを、各制御装置に対して個別に、システムエンジニアあるいはメンテナンス要員らが人手作業でパラメータ設定して回る必要があった。具体的には、どの装置にどのIPアドレスおよびホスト名を割り当てるのかというTCP/IPネットワークの設計を行なった後、割り当てられた各IPアドレスを表す文字列を各装置の設定画面に対して入力したり、各ホスト名を表す文字列を打ち込む等の作業である。さらに、NCプログラムをどのIPアドレスの制御装置からダウンロードすればよいかについても同様に人手を使って設定して回る必要があった。さらに、生産ラインの構成が変更されたときにも人手作業で設定変更を実施する必要があった。このため、制御装置の数が多くなるにつれて、人手による設定作業は一層困難になっていくという問題があった。   The conventional control device needs to perform the following setting work before the start of production for the production equipment control means or the control device directly connected to each production equipment. For example, it is necessary for a system engineer or a maintenance person to manually set parameters for each control device and send the data representing the operation information to a control device having a main database. Was. Specifically, after designing a TCP / IP network, which IP address and host name are to be assigned to which device, a character string representing each assigned IP address is input to the setting screen of each device. Or inputting a character string representing each host name. Further, it is necessary to manually set and rotate the control program of which IP address should be used to download the NC program. Further, even when the configuration of the production line is changed, it is necessary to manually change the setting. For this reason, there has been a problem that as the number of control devices increases, manual setting work becomes more difficult.

また、設定作業を行なうメンテナンス要員はネットワークに関する知識、生産設備に関する知識、アプリケーションソフトに関する知識を併せ持つ必要がありその教育に時間がかかる、人により能力差が大きくメンテナンスにむらができるなどの問題点があった。   In addition, maintenance personnel who perform the setting work need to have knowledge of the network, knowledge of the production equipment, and knowledge of the application software, and it takes time to educate them. there were.

さらに、近年インターネットの発展普及によってこれまで述べてきたような構内のネットワークをインターネットにも接続し、インターネット側から構内の制御装置にアクセスして情報のやり取りを行なうことが一般化しつつある。しかしながら、IPアドレスの設定、ルータと呼ばれるインターネット接続装置の設定、アプリケーションのインターネット対応設定など、複数の専門領域の知識を必要とする設定作業は増える方向にあり、一層その教育に時間がかかるという問題があった。   Further, in recent years, it has become common to connect a campus network, which has been described above, to the Internet due to the development and spread of the Internet, and to exchange information by accessing a campus control device from the Internet. However, there is a tendency that setting work requiring knowledge of a plurality of specialized fields, such as setting of an IP address, setting of an Internet connection device called a router, setting of an application for the Internet, and the like, is increasing, and it takes more time for education. was there.

一方、ネットワーク内のすべての制御装置が受信すべきデータパケットを流すことでネットワーク内の制御装置の所在を確認することも可能である。要するに、いわゆるブロードキャスト通信を用いる方式である。しかし、このようなブロードキャスト通信を制御装置間の通信手段として適用すると、以下の問題が生じた。   On the other hand, it is also possible to confirm the location of the control device in the network by flowing a data packet to be received by all the control devices in the network. In short, this is a method using so-called broadcast communication. However, when such broadcast communication is applied as communication means between control devices, the following problem occurs.

まず、ネットワークの通信量が増加することと、データパケットの到達範囲の制御が困難になること等の問題が生じた。近年のネットワーク、とりわけイーサネット(登録商標)を用いたIPネットワークはスイッチング・ハブとルータにより構成されることが一般的である。これらのネットワーク機器はデータパケットの到達範囲、流通先を制御することで通信量の抑制を行なっている。しかしながら、ブロードキャスト通信はこのようなスイッチング・ハブを素通りするので、通信量の抑制の効果が全く得られなくなり、他のデータ通信に悪影響を及ぼす旧態なネットワークに逆戻りする事態となった。   First, there are problems such as an increase in network traffic and difficulty in controlling the reach of data packets. 2. Description of the Related Art In recent years, a network, particularly an IP network using Ethernet (registered trademark), generally includes a switching hub and a router. These network devices control the communication amount by controlling the reach and distribution destination of data packets. However, since broadcast communication passes through such a switching hub, the effect of suppressing the amount of communication cannot be obtained at all, and the situation returns to an old-fashioned network that adversely affects other data communication.

また、各装置のネットワーク通信インターフェース回路は、通常、マルチキャストパケットはインターフェース回路内で処理してOS(オペレーティングシステム、基本ソフト)にそのパケットを引き渡すか、無関係なパケットとして破棄するかの処理を行なう一方、ブロードキャストパケットは引渡しあるいは破棄の判断処理を行なわずに通過させる処理が行なわれる。この結果、同報通信の目的にマルチキャストもしくはブロードキャスト通信のいずれかを使用した場合、一見同じように目的が達成されるかに見えて、ブロードキャスト通信ではOSに不要なパケットの処理をゆだねており、ある装置にとって無関係なブロードキャスト通信が多くなるにつれ、その装置は無意味な処理の負荷が増すことになる。このようにブロードキャスト通信では、最新のネットワーク技術を享受できないばかりか、他の演算処理に無意味に悪影響を及ぼすという重大な問題があった。   Also, the network communication interface circuit of each device normally processes a multicast packet in the interface circuit and performs a process of delivering the packet to an OS (operating system, basic software) or discarding the packet as an unrelated packet. In this case, the broadcast packet is passed without passing or discarding. As a result, when either multicast or broadcast communication is used for the purpose of broadcast communication, it seems at first glance that the purpose is achieved in the same way, and in broadcast communication, the OS is entrusted with processing of unnecessary packets, As more broadcast communications are irrelevant to a device, the load on the device for meaningless processing increases. As described above, the broadcast communication has a serious problem that not only cannot enjoy the latest network technology, but also has other meaningless effects on other arithmetic processing.

さらに、ネットワーク内に複数の種類のサービスを存在させたい場合に、ブロードキャスト通信で自己のサービスの存在やサービス内容を公布することにすると、データパケット上にそれなりのデータフォーマットを設計しておき、そのフォーマットに適応した利用を行わねばならない。よって、新しいサービスを実行するアプリケーションを後から付け加えたい場合には、それが可能になるようにデータフォーマットの再設計が必要となった。簡単な再設計で済むのなら問題は生じないが、大幅に変更したくなったときに変更しきれなくなる場合があった。なお、ここでいうサービスとは、例えば、ある装置が他の装置からの依頼に応じて提供することが可能な演算処理などを指しているが詳細は後述する。   Furthermore, when it is desired to have a plurality of types of services in a network, if the existence and service contents of the own service are to be promulgated by broadcast communication, a proper data format is designed on the data packet, and the It must be adapted to the format. Therefore, when it is desired to add an application that executes a new service later, it is necessary to redesign the data format so that the application can be added. There was no problem if a simple redesign was enough, but in some cases it was not possible to completely change when a significant change was desired. Note that the service here refers to, for example, arithmetic processing that can be provided by a certain device in response to a request from another device, which will be described in detail later.

上述のように、ブロードキャスト通信の適用は他のデータ通信との干渉、サービスの追加の面に問題が生じた。要するに、最初に設計したアプリケーションのみが利用され、新しいアプリケーションの追加を許さず、ネットワークもこの目的のデータ通信のみを行なうことにするという独善的システムになってしまう問題が生じた。   As described above, the application of the broadcast communication has caused a problem in terms of interference with other data communication and additional services. In short, there is a problem that only the originally designed application is used, no new application is allowed to be added, and the network becomes a self-righting system in which only the data communication for this purpose is performed.

また、複数の制御装置の動作状態を表すデータを収集して複数の生産設備からなる生産ラインの稼動状態を把握するための情報システムを構築する際は、制御装置側をいわゆるサーバとし、生産ラインの統括制御装置側をいわゆるクライアントとして、クライアント―サーバの形態をとるが、かかる形態では、各制御装置でごくまれに発生するエラー状態を検知するために統括制御装置が複数の制御装置に順番に問い合わせていくことになる。各制御装置の数が少ないうちはよいが装置数が多くなってくると、全く無駄な問い合わせデータが大量に流れて通信量が増大するので、統括制御装置の計算能力も極めて高性能である必要があった。   Also, when building an information system for collecting the data representing the operating states of a plurality of control devices and grasping the operating conditions of a production line composed of a plurality of production facilities, the control device side is a so-called server, In the form of a client-server, where the general control device side is a so-called client, in such a configuration, the general control device sequentially sends a message to a plurality of control devices in order to detect an error state that occurs very rarely in each control device. I will contact you. While the number of each control device is small, it is good, but as the number of devices increases, a large amount of useless inquiry data flows and the amount of communication increases. was there.

この発明は、上記のような問題点を解決するためになされたものであり、従来と同様、物理的にネットワーク配線は行なうが、その次の段階の各制御装置の設定作業を、メンテナンス要員あるいはシステムエンジニアらの人手を煩わすことなく、自動的に実行可能な制御装置、制御装置システムおよび生産設備の制御方法の提供を目的とする。また、ネットワーク上の通信量を抑制し、かつデータパケットの到達範囲の制御が容易である制御装置、制御装置システムおよび生産設備の制御方法の提供を目的とする。   The present invention has been made in order to solve the above-described problems. As in the related art, network wiring is physically performed, but the setting work of each control device in the next stage is performed by maintenance personnel or It is an object of the present invention to provide a control device, a control device system, and a method of controlling production equipment that can be automatically executed without the need for system engineers. It is another object of the present invention to provide a control device, a control device system, and a method of controlling a production facility, in which the amount of communication on a network is suppressed and the reach of data packets is easily controlled.

本発明に係る生産設備用制御装置は、ネットワークを介して生産設備を制御すべく設けられた生産設備用制御装置であって、上記ネットワークに接続すべく設けられたネットワーク接続手段と、他の生産設備用制御装置から上記ネットワークを介して送信され上記ネットワーク接続手段を経由して取得されたデータおよび/または直結された上記生産設備から取得されたデータに基づき所定の処理プログラムを実行するサービス手段と、上記ネットワーク接続手段を経由して上記ネットワークを介して少なくとも自己のIPアドレスおよびポート番号、自己の固有識別番号、自己の固有識別名のいずれか一つ以上を上記他の生産設備用制御装置に対して一定周期で送信する自サービス公布手段と、上記ネットワーク接続手段を経由して上記ネットワークを介して上記他の生産設備用制御装置に対してデータの入出力を行う自他サービス接続手段と、上記ネットワーク接続手段を経由して上記ネットワークを介して上記他の生産設備用制御装置に対してデータを検索する他サービス探知手段と、を備え、上記ネットワークを介した上記他の生産設備用制御装置における上記自サービス公布手段と上記他サービス探知手段との間の通信方法としてマルチキャスト通信を、かつ上記自他サービス接続手段間の通信方法としてユニキャスト通信を適用することとした。   The production equipment control device according to the present invention is a production equipment control device provided to control the production equipment via a network, and includes a network connection means provided to connect to the network, and other production equipment. Service means for executing a predetermined processing program based on data transmitted from the equipment control device via the network and obtained via the network connection means and / or data obtained from the directly connected production equipment; Via the network connection means via the network, at least one of its own IP address and port number, its own unique identification number, its own unique identification name to the other production equipment control device The self-service promulgation means that transmits data at fixed intervals to the network and the network connection means Self-other service connection means for inputting / outputting data to the other production equipment control device via the network, and the other production equipment control device via the network via the network connection means. And other service detection means for searching data for the other production equipment control device via the network, a multicast communication as a communication method between the own service promulgation means and the other service detection means In addition, unicast communication is applied as a communication method between the self-other service connection means.

本発明に係る生産設備用制御装置は上述のように構成されるので、生産設備用制御装置の設定作業において、メンテナンス要員あるいはシステムエンジニアらの人手を煩わすことなく、設定作業が自動的に実行可能となる効果がある。また、ネットワーク上の通信量を抑制し、かつデータパケットの到達範囲の制御が容易となる効果がある。   Since the production equipment control device according to the present invention is configured as described above, the setting operation of the production equipment control device can be automatically performed without the need for maintenance personnel or system engineers. The effect is as follows. Further, there is an effect that the traffic on the network is suppressed and the control of the reach of the data packet is facilitated.

実施の形態1.
図1は、この発明を実施するための実施の形態1による生産設備用制御装置(以下、制御装置と言う)であり、図2は本実施の形態の制御装置が複数存在する際の動作を説明するための構成図である。
Embodiment 1 FIG.
FIG. 1 is a production equipment control device (hereinafter, referred to as a control device) according to a first embodiment for carrying out the present invention, and FIG. 2 is a diagram illustrating an operation when a plurality of control devices of the present embodiment exist. It is a block diagram for description.

図1中、1はネットワーク、2は制御装置、3は制御装置2により制御される生産設備、4は生産設備制御手段、5はサービス手段、6は自サービス公布手段、7は他サービス探知手段、8は自他サービス接続手段、9はネットワーク接続手段、をそれぞれ示す。   In FIG. 1, 1 is a network, 2 is a control unit, 3 is a production facility controlled by the control unit 2, 4 is a production facility control unit, 5 is a service unit, 6 is a service promulgation unit, and 7 is another service detection unit. , 8 denotes own and other service connection means, and 9 denotes network connection means.

図2では、図1の制御装置2が複数台設置され、複数の生産設備を制御するよう構成された形態を示す。図2中、2Aは第1制御装置、2Bは第2制御装置、2Cは第3制御装置、2Dは第4制御装置、3Aは第1生産設備、3Bは第2生産設備、5Aは第1制御装置のサービス手段、5Bは第2制御装置のサービス手段、5Cは第3制御装置のサービス手段、5Dは第4制御装置のサービス手段、をそれぞれ示す。   FIG. 2 shows an embodiment in which a plurality of control devices 2 of FIG. 1 are installed and configured to control a plurality of production facilities. In FIG. 2, 2A is a first control device, 2B is a second control device, 2C is a third control device, 2D is a fourth control device, 3A is a first production facility, 3B is a second production facility, and 5A is a first production facility. The service means of the control device, 5B indicates the service means of the second control device, 5C indicates the service means of the third control device, and 5D indicates the service means of the fourth control device.

次に、本実施の形態の制御装置2の動作について説明する。まず、図1に示した制御装置2の各手段の個別の役割について述べる。   Next, the operation of the control device 2 of the present embodiment will be described. First, the individual role of each means of the control device 2 shown in FIG. 1 will be described.

(1)ネットワーク
ネットワーク1は後述するサービス手段5による通信を行なうために設けられたもので、主としてIP(Internet Protocol)通信が実行可能なネットワーク設備を意味し、例えば、イーサネット(登録商標)や無線LAN、ハブ、リピータ、ブリッジ、スイッチ、ルータ、モデム、電話回線、DSL(Digital Subscriber Line)回線、ISDN回線、光ファイバー回線、電力線LAN、赤外線、USB(Universal Serial Bus)、IEEE1394等で構成される。
(1) Network The network 1 is provided for performing communication by the service means 5 described later, and mainly means network equipment capable of executing IP (Internet Protocol) communication, for example, Ethernet (registered trademark) or wireless communication. It comprises a LAN, hub, repeater, bridge, switch, router, modem, telephone line, DSL (Digital Subscriber Line) line, ISDN line, optical fiber line, power line LAN, infrared ray, USB (Universal Serial Bus), IEEE 1394, and the like.

(2)制御装置
制御装置2は、CPU、主メモリ、例えばハードディスクのような2次記憶装置を備え(図示せず)、ネットワーク接続手段9を備える。さらに、キーボード、マウス、タブレット等の入力装置、CRTや液晶等のディスプレイ装置(画像表示装置)を備える場合もある(図示せず)。また、制御装置2に直結された生産設備3を直接制御する場合には生産設備制御手段4を備える。例えばPLC(Programmable Logic Controller)、NC(Numerical Controller)、プラント制御装置等がこれに該当する。
(2) Control Device The control device 2 includes a CPU, a main memory, a secondary storage device such as a hard disk (not shown) (not shown), and includes a network connection unit 9. Further, there may be a case where an input device such as a keyboard, a mouse, and a tablet, and a display device (image display device) such as a CRT and a liquid crystal are provided (not shown). In the case where the production equipment 3 directly connected to the control device 2 is directly controlled, a production equipment control means 4 is provided. For example, a PLC (Programmable Logic Controller), an NC (Numerical Controller), a plant control device, and the like correspond to this.

(3)生産設備制御手段
生産設備制御手段4は、後述する生産設備3を制御するために設けられており、前述の制御装置2と同一のCPUで生産設備3を制御できるようなソフトウェアと生産設備3との物理インターフェースから構成されている場合と、制御装置2を構成するハードウェアとは独立した制御専用CPU、メモリ、2次記憶装置、生産設備3との物理インターフェース等から構成された独立専用ハードウェアの場合がある。後者の装置構成では、制御装置2と生産設備制御手段4の間は内部バス、シリアルあるいはパラレル回線接続、共有2ポートメモリ等、なんらかの通信可能な手段により接続される。
(3) Production Equipment Control Means The production equipment control means 4 is provided for controlling the production equipment 3 to be described later, and is provided with software and production that can control the production equipment 3 with the same CPU as the control device 2 described above. In the case where it is constituted by a physical interface with the equipment 3, and in the case where it is constituted by a control-dedicated CPU, a memory, a secondary storage device, and a physical interface with the production equipment 3 which are independent of the hardware constituting the control device 2. There may be dedicated hardware. In the latter device configuration, the control device 2 and the production equipment control means 4 are connected by any communicable means such as an internal bus, a serial or parallel line connection, and a shared two-port memory.

なお、本実施の形態の制御装置は上述したように生産設備3を制御するためのものであるが、単に生産設備3と上記通信手段を介して通信し、生産設備3の稼動状態を取得しサービス手段5でその稼動状態データを利用させるという機能に限定する構成が可能であり、この場合は例えば生産ラインのモニタリングという機能を果たす。   Note that the control device of the present embodiment is for controlling the production facility 3 as described above, but simply communicates with the production facility 3 via the communication means to acquire the operation state of the production facility 3. It is possible to adopt a configuration in which the service means 5 is limited to a function of using the operation state data. In this case, the function of monitoring the production line is achieved.

(4)生産設備
生産設備3は、具体例を挙げると工場内に設置された切削加工機、放電加工機、レーザー加工機、プレス加工機等の各種加工装置、反応槽等のバッチ処理装置、ロボット、搬送機など、水処理プラント、化学合成プラント等の連続系生産プラント等、半導体や液晶、プリント基盤組み立てなどの組み立て装置であり、制御装置2により制御される各種設備を指している。なお、上述の生産設備制御手段4は、それぞれの生産設備3の制御を直接的に行なう目的で設けられている。
(4) Production Equipment The production equipment 3 includes, for example, various processing devices such as a cutting machine, an electric discharge machine, a laser machine, and a press machine, a batch processing device such as a reaction tank, and the like, which are installed in a factory. It is an assembly device such as a robot, a transporter, a water treatment plant, a continuous production plant such as a chemical synthesis plant or the like, and is an assembling device for assembling a semiconductor, a liquid crystal, or a printed circuit board. The above-mentioned production equipment control means 4 is provided for the purpose of directly controlling each production equipment 3.

(5)サービス手段
サービス手段5はソフトウェア(各種プログラム)で構成される。但し、ハードウェアで構成することも可能である。
(a)サービス手段の動作例1
サービス手段5は、生産に必要なデータ、例えばNCプログラム、あるいは加工条件と呼ばれる制御パラメータの組み合わせを保持しつつ、他のサービス手段5からの要請に応じてこれらをデータとして提供し、あるいは他のサービス手段5に要請を行なって他のサービス手段5の保持するデータを取得するような動作を実施する。かかるデータの提供や要請はネットワーク接続手段9を経由してネットワーク1を介して行うデータ交換を指す。なお、通信に必要な手順における送受信の部分を除いて、注目するデータの送信元を提供側、受信側を要請側とここでは呼ぶ。
(5) Service means The service means 5 is composed of software (various programs). However, it is also possible to configure with hardware.
(A) Operation example 1 of service means
The service means 5 holds data necessary for production, for example, an NC program, or a combination of control parameters called machining conditions, and provides these as data in response to a request from another service means 5, or provides other data. An operation is performed to make a request to the service means 5 and obtain data held by the other service means 5. The provision or request of such data refers to data exchange performed via the network 1 via the network connection means 9. Note that, except for a transmission / reception part in a procedure necessary for communication, a transmission source of data of interest is referred to as a providing side, and a reception side is referred to as a requesting side.

(b)サービス手段の動作例2
サービス手段5の別の動作例として、生産設備設備2を加工機とし、かかる加工機でワークを加工する場合を以下に説明する。この加工機はその可動部を所定の軌道もしくは加工経路で動かすよう制御されることでワークの加工を行なうが、加工時間あるいは仕上がりは軌道もしくは加工経路の良し悪しに依存する。したがって、加工時の軌道もしくは加工経路の最適化ないし準最適化が必要となる。このとき、サービス手段5によって、ワークの加工開始前に軌道もしくは加工経路を最適化ないし準最適化するための演算を実行できるように準備しておく。かかる演算はある制御装置のサービス手段5が、他の制御装置のサービス手段5からの要請に応じて実施し、その制御装置に結果を返すよう動作する。あるいは自己の制御装置のサービス手段5に対しこの演算を要請する。これらの演算の結果、サービス手段5が取得した最適ないし準最適な軌道もしくは加工経路が生産設備制御手段4に渡され、生産設備3たる加工機が加工を開始する。
(B) Operation example 2 of service means
As another operation example of the service means 5, a case where the production equipment 2 is a processing machine and a work is processed by the processing machine will be described below. This processing machine processes a workpiece by controlling its movable portion to move along a predetermined track or processing path, but the processing time or finish depends on the quality of the track or processing path. Therefore, it is necessary to optimize or quasi-optimize the trajectory or machining path during machining. At this time, preparation is made so that the service means 5 can execute an operation for optimizing or quasi-optimizing the trajectory or the machining path before starting the machining of the work. Such an operation is performed by the service means 5 of one control apparatus in response to a request from the service means 5 of another control apparatus, and operates so as to return a result to the control apparatus. Alternatively, this calculation is requested to the service means 5 of the own control device. As a result of these calculations, the optimal or suboptimal trajectory or machining path obtained by the service means 5 is passed to the production equipment control means 4, and the processing machine as the production equipment 3 starts machining.

(c)サービス手段の動作例3
さらに、サービス手段5の別の動作の一例として、生産設備制御手段4が加工機の軌道を利用して制御動作している最中に、必要な演算を他のサービス手段5からの要請に応じて実行し、あるいは他のサービス手段5にこれを要請するような動作が挙げられる。
(C) Operation example 3 of service means
Further, as another example of the operation of the service means 5, while the production equipment control means 4 is performing a control operation using the trajectory of the processing machine, necessary operations are performed in response to a request from the other service means 5. An operation to execute the request or request the other service means 5 to execute the request.

(d)サービス手段の動作例4
さらに、サービス手段5の別の動作例の一例として、ある特定の制御装置2から他の生産設備制御手段4の動作状態を外部からモニタリングする際、モニタリング周期や複雑な動作をモニタリングするとき大量のデータが流れることになるが、このデータの流通配信を中継して他の制御装置のサービス手段5に送るように特定の制御装置のサービス手段5が動作し、あるいは中継を実行している他の制御装置のサービス手段5からのデータを特定の制御装置が受け取る動作が挙げられる。データの中継ということで、自分から次の中継先を知る必要があるが、これは他のサービス手段5と同じ制御装置内にある自サービス公布手段6と他サービス探知手段7により与えられる。本動作例の制御装置の適用により、データ中継先は動的に、つまり複数の制御装置に対して適宜中継先を変化させるような構成が可能となる。
(D) Operation example 4 of service means
Further, as an example of another operation example of the service means 5, when monitoring the operation state of another production equipment control means 4 from a specific control device 2 from outside, when monitoring a monitoring cycle or complicated operation, a large amount of The data will flow, but the service means 5 of the specific control device operates to relay the distribution of the data and send it to the service means 5 of another control device, or the other device that is performing the relaying. An operation in which a specific control device receives data from the service unit 5 of the control device is exemplified. It is necessary to know the next relay destination from itself because of the data relay, which is given by the own service promulgating means 6 and the other service detecting means 7 in the same control device as the other service means 5. By applying the control device of the present operation example, a configuration is possible in which the data relay destination is dynamically changed, that is, the relay destination is appropriately changed for a plurality of control devices.

(e)サービス手段の動作例5
さらに、サービス手段5の別の動作の一例として、生産設備制御手段4から得られる生産設備3の動作状態を他の制御装置のサービス手段5に提供し、もしくは他の制御装置のサービス手段5から提供された動作状態を保持することで工場全体の稼動情況情報としてまとめるような動作も挙げられる。
(E) Operation example 5 of service means
Further, as another example of the operation of the service unit 5, the operation state of the production facility 3 obtained from the production facility control unit 4 is provided to the service unit 5 of another control device, or the operation state of the service unit 5 of another control device is provided. There is also an operation in which the provided operation state is held to combine the operation state information of the entire factory.

(f)サービス手段の動作例6
さらに、サービス手段5の別の動作の一例として、ネットワーク・システム内にどのようなサービス手段5が存在するかの一覧を保持し、これを提供するような動作も挙げられる。
(F) Operation example 6 of service means
Further, as another example of the operation of the service means 5, there is an operation of maintaining a list of what service means 5 exist in the network system and providing the list.

なお、上述の各サービスの内容はサービス手段5の中に、一つだけ備える場合もあり得るし、複数備える場合もあり得る。また、それぞれのサービスについての提供と要請は、各制御装置2のサービス手段5が提供と要請を両方とも行なう場合もあり得るし、いずれか一方のみ行なうこともあり得る。これらサービス手段5の様々な動作内容はコンピュータのソフトウェア(プログラム)として実装される。   The service means 5 may include only one of the above-described services, or may include a plurality of contents. The provision and request for each service may be performed by the service means 5 of each control device 2 in both cases, or only one of them may be performed. Various operation contents of the service means 5 are implemented as software (program) of a computer.

(6)自サービス公布手段
自サービス公布手段6は、上記のようなサービス手段5が他の制御装置2のサービス手段5に対して提供可能な内容をネットワーク1を介して他の制御装置2のサービス手段5に公知する手段で、ソフトウェアで実装される。例えば、ネットワーク1としてイーサネット上でTCP/IP通信を使用している場合には、一定の周期でネットワーク1内にマルチキャスト通信を行なう方法により実施される。あるいは、ネットワーク1上の他の制御装置2のサービス手段5が提供可能なサービス内容の一覧を保持する動作を行なう。IPマルチキャスト送信においては、送信を行なう制御装置のIPアドレスは通信の規約上必ず含まれることになるが、送信する制御装置のIPアドレス、ホスト名、ポート番号等の通信上の識別番号、あらかじめ取り決めた記号、文字列を含めて送信することもできる。
(6) Self-service promulgation means The self-service promulgation means 6 transmits the contents that the above-described service means 5 can provide to the service means 5 of the other control apparatus 2 to the other control apparatus 2 via the network 1. The means known to the service means 5 is implemented by software. For example, when TCP / IP communication is used on the Ethernet as the network 1, the method is performed by a method of performing multicast communication in the network 1 at a fixed cycle. Alternatively, an operation of holding a list of service contents that can be provided by the service means 5 of another control device 2 on the network 1 is performed. In the IP multicast transmission, the IP address of the transmitting control device is always included in the protocol of communication, but the communication identification number such as the IP address, host name, and port number of the transmitting control device is determined in advance. You can also send symbols and character strings.

さらに、他の制御装置2のサービス手段5に対し、自己の制御装置2のサービス手段5が提供可能なサービス内容を通知する方法もある。この場合は、保持動作を行なっているサービス手段5を備えた制御装置2のIPアドレス、ホスト名、ポート番号等の通信上の識別番号、記号、文字列を予め知っておくか、あるいは後述する他サービス探知手段7により保持動作を行なっているサービス手段5を備える制御装置2のIPアドレス、ホスト名、ポート番号等を知る必要がある。前述したようにIPアドレス、ホスト名、ポート番号等の通信上の識別番号、予め取り決めた記号、文字列を含めて送信することで、このような目的に利用することができる。なお、ホスト名、ポート番号等の通信上の識別番号、予め取り決めた記号、文字列は固有識別名と呼ばれる。このようにして得られたIPアドレス、ホスト名、ポート番号等に対し自サービスの内容を送信する。異なるIPアドレス体系のネットワークをアクセスする際に、IPアドレスが重複している事態もありえるが、識別番号や固有識別名の適用により、そのような場合にも本発明の目的とする動作が可能となる。つまり、例えIPアドレスが重複していても、ホスト名、ポート番号等の通信上の識別番号、固有識別名が重複していなければ動作可能である。   Furthermore, there is a method of notifying the service means 5 of the other control device 2 of the service contents that can be provided by the service means 5 of the own control device 2. In this case, the communication identification number such as the IP address, the host name, and the port number, the symbol, and the character string of the control device 2 having the service unit 5 performing the holding operation are known in advance, or will be described later. It is necessary to know the IP address, host name, port number, and the like of the control device 2 including the service unit 5 performing the holding operation by the other service detection unit 7. As described above, by transmitting a communication identification number such as an IP address, a host name, and a port number, a predetermined symbol, and a character string, the data can be used for such a purpose. Note that a communication identification number such as a host name and a port number, a predetermined symbol, and a character string are called unique identification names. The contents of the own service are transmitted to the IP address, host name, port number, etc. obtained in this way. When accessing networks of different IP address systems, there may be a case where IP addresses are duplicated. However, by applying an identification number or a unique identifier, the operation intended by the present invention can be performed even in such a case. Become. In other words, even if the IP address is duplicated, operation is possible as long as the communication identification number such as the host name and the port number and the unique identification name do not duplicate.

(7)他サービス探知手段
他サービス探知手段7は、他の制御装置2のサービス手段5、および自己の制御装置2のサービス手段5に要請可能なサービス内容を知るための手段である。他サービス探知手段7では、他の制御装置2のサービス手段5が公布している内容、すなわちマルチキャスト通信により送信しているデータを受信し、そのデータを記憶する。また、他サービス探知手段7では、上述した他の制御装置の自サービス公布手段6により送信された内容の保持動作を行なっているサービス手段5からデータを転送する。
(7) Other Service Detecting Means The other service detecting means 7 is a means for knowing service contents that can be requested from the service means 5 of the other control device 2 and the service means 5 of the own control device 2. The other service detection means 7 receives the contents promulgated by the service means 5 of the other control device 2, that is, data transmitted by multicast communication, and stores the data. Further, the other service detecting means 7 transfers data from the service means 5 which is carrying out the operation of retaining the contents transmitted by the own service promulgating means 6 of the other control device described above.

(8)自他サービス接続手段
自他サービス接続手段8は、2つ以上のサービス手段5同士の間で、サービスに関するデータ通信を行なうための手段であり、ソフトウェアで実装される。例えば、上述の経路最適化計算の場合では、自他サービス接続手段8により、要請側のサービス手段5から最適化前の加工経路を表すデータが提供側に送り込まれ、最適化ないし準最適化後の加工経路データが返されてくる。要請側のサービス手段5は、他の複数のサービス手段5に対し、この自他サービス接続手段8を用いて最適化前加工経路データを送信し、帰ってきた複数の最適ないし準最適加工経路の中から最も優秀な経路を選択する。自他サービス接続手段8間の通信手段としては、ユニキャスト通信が用いられる。これは、該当するサービス手段間のみでデータパケットがやり取りされれば充分だからである。
(8) Self-other service connection means The self-other service connection means 8 is means for performing data communication relating to services between two or more service means 5 and is implemented by software. For example, in the case of the above-described route optimization calculation, the data representing the machining route before optimization is sent from the service unit 5 on the requesting side to the providing side by the service unit 5 on the request side, and after the optimization or sub-optimization, Is returned. The requesting service means 5 transmits the pre-optimization processing route data to the other plurality of service means 5 using the own / other service connection means 8, and returns the plurality of returned optimum or sub-optimal processing routes. Select the best route from among them. Unicast communication is used as communication means between the self-other service connection means 8. This is because it is sufficient if data packets are exchanged only between the corresponding service means.

(9)ネットワーク接続手段
最後に、ネットワーク接続手段9は、上述のネットワーク1に使用するハードウェアに適合したハードウェアで構成される。例えば、ネットワーク1としてイーサネットを用いて、ネットワーク接続手段9にイーサネット用のICチップ群を用いることが一般的である。ネットワーク接続手段9は、一般的にこれらのイーサネット用ICチップを動作させるためのいわゆるデバイスドライバソフトウェアおよびIP通信を行なうための通信プロトコルスタックと呼ばれるソフトウェアにより構成される。上述の通り、イーサネット以外のハードウェアがネットワーク1に使用される場合は、それ相応のハードウェアチップとデバイスドライバソフトウェアに変更する。
(9) Network Connection Means Finally, the network connection means 9 is composed of hardware suitable for the hardware used for the network 1 described above. For example, it is common to use Ethernet as the network 1 and use an IC chip group for Ethernet as the network connection means 9. The network connection means 9 is generally composed of so-called device driver software for operating these Ethernet IC chips and software called a communication protocol stack for performing IP communication. As described above, when hardware other than Ethernet is used for the network 1, the hardware is changed to a corresponding hardware chip and device driver software.

制御装置2を複数台使用する場合における上述の各手段の動作を以下に説明する。図2は、2台の生産設備3A,3Bが4台の制御装置2A〜2Dにより制御されている形態を表している。まず、第1生産設備3Aおよび第2生産設備3Bから構成される加工セルの稼動状態を第3制御装置2Cにて集計する場合について説明する。この場合、第3制御装置2Cのサービス手段5Cは稼動状態の集計データベースを備えることになる。また、第1制御装置2Aのサービス手段5Aと第2制御装置2Bのサービス手段5Bは、それぞれの生産設備制御手段4A、4Bからそれぞれの生産設備3A、3Bの稼動状態を表すデータを得て、自他サービス接続手段8、ネットワーク接続手段9、ネットワーク1を介して、ユニキャスト通信によって第3制御装置2Cのサービス手段5Cにそのデータを送信する動作を行なう。しかしながら、かかる動作は以下に述べるような手順に従った自動構成動作が行なわれた後の動作である。本実施の形態の制御装置の特徴の一つは、以下に説明するような自動構成動作が行なわれる点にあり、かかる自動構成動作によって、各制御装置2A〜2Dの設定作業をメンテナンス要員あるいはシステムエンジニアらの人手を煩わすことなく、自動的に実行できる。   The operation of each unit described above when a plurality of control devices 2 are used will be described below. FIG. 2 shows a mode in which two production facilities 3A and 3B are controlled by four control devices 2A to 2D. First, a case will be described in which the operation states of the processing cells including the first production facility 3A and the second production facility 3B are totaled by the third control device 2C. In this case, the service means 5C of the third control device 2C has a total database of operating states. Further, the service means 5A of the first control device 2A and the service means 5B of the second control device 2B obtain data representing the operating state of each of the production facilities 3A, 3B from the respective production facility control means 4A, 4B, An operation of transmitting the data to the service unit 5C of the third control device 2C by unicast communication is performed via the own / other service connection unit 8, the network connection unit 9, and the network 1. However, this operation is an operation after the automatic configuration operation according to the procedure described below is performed. One of the features of the control device of the present embodiment is that an automatic configuration operation as described below is performed, and the automatic configuration operation allows the setting work of each of the control devices 2A to 2D to be performed by a maintenance person or a system. It can be executed automatically without the need for engineers.

まず、はじめに第3制御装置2Cの自サービス公布手段6Cの動作を説明する。図3のフローチャートに示すように、予め指定されているマルチキャストIPアドレスの指定ポートにデータパケットをマルチキャスト通信によって送信し(ステップST301)、その後、予め定められた時間待ちを行い(ステップST302)、再びデータパケットの送信(ステップST301)を繰り返している。要するに、マルチキャスト通信によって一定周期でデータパケットを送信している。因みに、本動作例では15秒に1回送信するように設定されている。マルチキャストIPアドレスは、例えば、234.5.6.7とし、ポート番号は5670とする。データパケットの中身は、本動作例では“p2p-mon"という文字列を送信している。ただしこの場合は、文字列として意味のある利用はしていない。文字列自体は、何ら動作に影響しないからである。   First, the operation of the own service promulgating means 6C of the third control device 2C will be described. As shown in the flowchart of FIG. 3, a data packet is transmitted by multicast communication to a designated port of a previously designated multicast IP address (step ST301), and after that, a predetermined time is waited for (step ST302), and again. The transmission of the data packet (step ST301) is repeated. In short, data packets are transmitted at a fixed period by multicast communication. Incidentally, in the present operation example, it is set to transmit once every 15 seconds. The multicast IP address is, for example, 234.5.6.7, and the port number is 5670. The contents of the data packet transmit a character string “p2p-mon” in this operation example. However, in this case, it is not used meaningfully as a character string. This is because the character string itself has no effect on the operation.

このIPアドレス、ポート番号は本実施の形態における他の動作例とは異なるアドレス、番号を選択している。このように特定の動作に対して固有のアドレス、番号を付与することにより、他のサービスおよびアプリケーションと何ら不都合なく共存できる。   As the IP address and the port number, an address and a number different from those of the other operation examples in the present embodiment are selected. By assigning a unique address and number to a specific operation in this way, it can coexist with other services and applications without any inconvenience.

第3制御装置2Cの自サービス公布手段6Cは、第3制御装置2Cの電源が入ると同時に動作を開始する。例えば、タスクあるいはスレッドあるいはプロセスと呼ばれるコンピュータプログラムの実行形態にて他の手段の動作とは独立した実行を行なうようにすれば、スレッドであってもプロセスであっても同等の効果が得られる。因みに、本動作例ではスレッドと呼ばれる態様で実装している。なお、IPアドレス234.5.6.7のポート番号5670にデータを送出する制御装置2では、稼動状態の集計データベースを備えることは、各制御装置が動作する前に予め取り決めておく。また、マルチキャストIPアドレスと、各制御装置2に割り当てられたIPアドレスは異なる。マルチキャストIPアドレスはラジオやテレビジョン放送におけるチャンネルのようなもので、そのIPアドレスの特定ポート番号にデータパケットを送信すれば、そこにチューニングをあわせてデータパケットの到着を待っている機器全てで、データが受信される仕組みである。一方、他の通信方法としてブロードキャスト送信があるが、こちらは待っていてもいなくても、好むと好まざるに関わらず全ての機器に一律にデータが届けられる方式である。   The own service promulgating means 6C of the third control device 2C starts operation at the same time when the power of the third control device 2C is turned on. For example, if the execution form of a computer program called a task, a thread, or a process is executed independently of the operation of other means, the same effect can be obtained regardless of whether it is a thread or a process. Incidentally, in the present operation example, it is implemented in a mode called a thread. It should be noted that the control device 2 that sends data to the port number 5670 of the IP address 2345.5.6.7 is provided with a running status totaling database before each control device operates. Further, the multicast IP address and the IP address assigned to each control device 2 are different. A multicast IP address is like a channel in a radio or television broadcast. If a data packet is transmitted to a specific port number of the IP address, all devices that are tuned there and wait for the arrival of the data packet will be used. This is the mechanism by which data is received. On the other hand, there is broadcast transmission as another communication method, and this is a method in which data is uniformly delivered to all devices regardless of whether or not the user prefers to wait.

マルチキャスト通信によって第3制御装置2Cから送信されたマルチキャストのデータパケットは、第1制御装置2Aおよび第2制御装置2Bの他サービス探知手段7A,7Bにより受信されて処理される。この第1制御装置2Aおよび第2制御装置2Bの他サービス探知手段7A,7Bの動作を図4に示す。他サービス探知手段7A,7Bも各制御装置の電源が入ると同時に動作を始める。これもスレッドとして実装されている。図4のフローチャートに示すとおり、予め指定されているマルチキャストIPアドレスの指定ポートにてデータパケットの到着を待ち(ステップST401)、データパケット到着の際には、予め定められたディレクトリ(記憶)領域(ステップST402)(ファイルシステムの構成によるが、本動作例では予め取り決めておいたディレクトリ領域にファイルを作成するようにしている)に送信元のIPアドレスをファイル名としたファイルを作成するような動作(ステップST403)を行なっている。同一ファイル名のファイルが既に存在するときは、そのファイルに付加されている更新日付情報が更新される。ファイルの更新日付情報の存在はファイルシステムに依存するが、本動作例のファイルシステムはこれを備えているものとしている。マルチキャストIPアドレス234.5.6.7のポート番号5670でデータパケットの到着を待っている。届けられたデータパケットの中身が作成されたファイルに書き込まれるようにしている。   The multicast data packet transmitted from the third control device 2C by the multicast communication is received and processed by the other service detection means 7A and 7B of the first control device 2A and the second control device 2B. FIG. 4 shows the operation of the other service detecting means 7A, 7B of the first control device 2A and the second control device 2B. The other service detection means 7A and 7B also start operating as soon as the power of each control device is turned on. This is also implemented as a thread. As shown in the flow chart of FIG. 4, a data packet is waited for at a designated port of a multicast IP address designated in advance (step ST401). When the data packet arrives, a predetermined directory (storage) area ( Step ST402: An operation of creating a file with the file name of the IP address of the transmission source in (in the present operation example, the file is created in a predetermined directory area, depending on the configuration of the file system). (Step ST403). If a file with the same file name already exists, the update date information added to that file is updated. The existence of the file update date information depends on the file system, but the file system of this operation example is provided with this. It is waiting for the arrival of a data packet at the port number 5670 of the multicast IP address 234.5.6.7. The contents of the received data packet are written to the created file.

さらに、第1制御装置2Aおよび第2制御装置2Bの他サービス探知手段7A,7Bでは、図5に示すような手順を実行するスレッドが実装されている。この手順では、送信元IPアドレスをファイル名にしたファイルが書き込まれるディレクトリ領域(記憶領域)を15秒に1回調べ、ファイルの最終更新から60秒以上経過している場合はそのファイルを削除する動作を行なう。これにより送信元からマルチキャストデータパケットが15秒に1回送信されているはずのところ、最後にその送信元からの送信を受信してから60秒以上経過した場合にその送信元は何らかの都合でネットワーク1内に存在しなくなったか、ネットワーク1が分断されたと判断する。以下、図5のフローチャートに基づき、詳細な動作を説明する。   Further, in the other service detection means 7A and 7B of the first control device 2A and the second control device 2B, a thread for executing a procedure as shown in FIG. 5 is mounted. In this procedure, a directory area (storage area) in which a file having a source IP address as a file name is written is checked once every 15 seconds, and if 60 seconds or more have passed since the last update of the file, the file is deleted. Perform the operation. As a result, the multicast data packet should have been transmitted from the source once every 15 seconds, but if more than 60 seconds have elapsed since the last transmission from the source was received, the source will be sent to the network for some reason. 1 is determined to be no longer present, or that the network 1 has been disconnected. Hereinafter, the detailed operation will be described based on the flowchart of FIG.

まず、上述のディレクトリ領域(ステップST501)に保持されているファイル名の一覧リストを取得する(ステップST502)。そして一覧リストの中の個々のファイル名についてループを回している(ステップST503)。個々のファイル名の指し示すファイルの更新日時と現在日時をそれぞれ取得し、個々のファイルについての作成後の経過時間を計算して(ステップST504)、両者を比較する(ステップST505)。時間差が60秒以上ある場合にはそのファイルをディレクトリ領域(ステップST501)から削除して(ステップST506)、次のファイル名の処理を行う(ステップST503)。経過時間が60秒未満の場合は何もせず、次のファイル名の処理を行う(ステップST503)。すべてのファイル名の処理を終えたらループを抜け出して、15秒の時間待ちに入り(ステップST507)、その後、先頭から処理を繰り返す(ステップST502)。   First, a list of file names stored in the directory area (step ST501) is obtained (step ST502). Then, a loop is performed for each file name in the list (step ST503). The update date and time and the current date and time of the file indicated by each file name are obtained, the elapsed time after creation of each file is calculated (step ST504), and the two are compared (step ST505). If the time difference is 60 seconds or more, the file is deleted from the directory area (step ST501) (step ST506), and the process of the next file name is performed (step ST503). If the elapsed time is less than 60 seconds, nothing is performed and the processing of the next file name is performed (step ST503). When all the file names have been processed, the process exits from the loop and waits for a time of 15 seconds (step ST507). Thereafter, the process is repeated from the beginning (step ST502).

さらに、第1制御装置2Aおよび第2制御装置2Bの他サービス探知手段7A,7Bは別のスレッドを実装している。上述した2つのスレッドの動作は他の制御装置2のサービス手段5を利用するための準備段階を示すものであったが、以下に説明するスレッドは他のサービス手段5を直接的に利用する段階のものである。かかるスレッドの動作を図6のフローチャートに示す。なお、図6のフローチャートには他サービス探知手段7以外の部分も記載されている。図6のフローチャートにおける他サービス探知手段7の動作は点線四角で囲んだ範囲である。それ以外の部分は後述するサービス手段5で実行される範囲を表している。図6のフローチャートで示される動作では、ユニキャスト通信によって60秒に1回、自己が制御している生産設備3の稼動状態を表すデータを送信する。その送信先は、他サービス探知手段7を用いて探した他の制御装置2のサービス手段5である。   Further, the other service detection units 7A and 7B of the first control device 2A and the second control device 2B have different threads. Although the operations of the two threads described above indicate a preparation stage for using the service means 5 of the other control device 2, the threads described below are steps for directly using the other service means 5. belongs to. The operation of such a thread is shown in the flowchart of FIG. In the flowchart of FIG. 6, parts other than the other service detecting means 7 are also described. The operation of the other service detection means 7 in the flowchart of FIG. 6 is a range surrounded by a dotted-line square. Other parts represent the range executed by the service means 5 described later. In the operation shown in the flowchart of FIG. 6, once every 60 seconds, data representing the operating state of the production facility 3 controlled by itself is transmitted by unicast communication. The transmission destination is the service means 5 of another control device 2 searched using the other service detection means 7.

図6のフローチャートに従って、動作を詳細に説明する。まず、生産設備3の稼動状態を表すデータを取得する(ステップST601)。次に、上述した所定のディレクトリ領域(ステップST602)からファイル名一覧を取得する(ステップST603)。続いて、各ファイル名について処理を行なうループを回す(ステップST604)。ループの中では各ファイル名の指し示すIPアドレスに向かって、先に取得された稼動状態データを送信する(ステップST605)。すべてのファイル名を処理し終えると60秒間待機する(ステップST606)。その後、再び処理の先頭に戻って稼動状態の取得が開始される(ステップST601)。本スレッドはすべてのファイル名についてのループに関して実行されるが、上述の動作例では第3制御装置2CのIPアドレスをファイル名とするファイルのみであるので、ループはかかるファイルに対してのみ、すなわち1回だけ実行される。因みに、第3制御装置2CのIPアドレスすら入っていない場合は、ネットワーク1か第3制御装置2Cになんらかの障害発生の可能性があり、この場合は稼動状態の送信は行なわれない。   The operation will be described in detail with reference to the flowchart of FIG. First, data representing the operation state of the production facility 3 is obtained (step ST601). Next, a file name list is obtained from the above-mentioned predetermined directory area (step ST602) (step ST603). Subsequently, a loop for performing processing for each file name is turned (step ST604). In the loop, the operation status data acquired earlier is transmitted to the IP address indicated by each file name (step ST605). When all file names have been processed, the process waits for 60 seconds (step ST606). After that, the process returns to the beginning of the process and acquisition of the operating state is started (step ST601). This thread is executed with respect to a loop for all file names. However, in the above-described operation example, since only a file whose file name is the IP address of the third control device 2C, the loop is performed only for such a file, Executed only once. Incidentally, if the IP address of even the third control device 2C is not included, there is a possibility that some failure may occur in the network 1 or the third control device 2C, and in this case, the transmission of the operating state is not performed.

さて、上記動作例においては稼動状態を表すデータを「送信する」と単に述べたが、かかるデータパケットを作成し、所定のプロトコルによってユニキャスト通信により送受信する部分が自他サービス接続手段8の役割である。図6に示した動作は、ファイル一つという非常に単純な場合であるので、送信側は稼動状態を一つのパケットに書き込んでユニキャストソケットで送信するだけであるし、受信側もユニキャストソケットを受信モードで開けて待機し、届けられた一つのパケットを受け取って、中身を解釈するだけである。   In the above operation example, the data indicating the operating state is simply described as "transmitting". However, a part which creates such data packet and transmits / receives the data packet by unicast communication according to a predetermined protocol is the role of the own / other service connecting means 8. It is. Since the operation shown in FIG. 6 is a very simple case of one file, the transmitting side simply writes the operation status into one packet and transmits the packet through the unicast socket, and the receiving side also transmits the unicast socket. It simply waits after opening in the receiving mode, receiving a single received packet, and interpreting the contents.

例えば、送信したいデータが加工経路の場合のように、X座標、Y座標の組み合わせが複数在るような場合にはこの自他サービス接続手段8に予めそれを送受信するプロトコルを定めればよい。例えば、X座標、Y座標をテキスト形式にてスペースで区切って、1つの点は1行で送信、最終行を送り終えたら行頭にピリオドだけの行が送られる、等と取り決めればよい。   For example, when there is a plurality of combinations of the X coordinate and the Y coordinate, such as when the data to be transmitted is a machining route, a protocol for transmitting and receiving the combination to the own / other service connection means 8 may be determined in advance. For example, the X coordinate and the Y coordinate may be separated by a space in a text format, and one point may be transmitted by one line, and when the last line is transmitted, a line including only a period may be transmitted at the beginning of the line.

なお、第1制御装置2Aおよび第2制御装置2Bのサービス手段5の動作は、図6で示したフローチャートそのものである。   Note that the operation of the service means 5 of the first control device 2A and the second control device 2B is the flowchart itself shown in FIG.

第3制御装置2Cのサービス手段5Cの動作を図7のフローチャートに示す。図7に示すとおり、自分のIPアドレスの5550番ポートにおいてIPユニキャストパケットの受信待ちを行なっている(ステップST701)。受信されたIPユニキャストパケットは第1制御装置2Aあるいは第2制御装置2Bからの稼動状態のパケットであるので、受信時刻、送信元、受信パケットデータを一つのレコードに仕立て、リレーショナルデータベース(ステップST702)の所定の記録用テーブルに格納し(ステップST703)、次のデータパケット受信待機状態になる(ステップST701)。   The operation of the service means 5C of the third control device 2C is shown in the flowchart of FIG. As shown in FIG. 7, reception of an IP unicast packet is waited for at port 5550 of its own IP address (step ST701). Since the received IP unicast packet is an operation state packet from the first control device 2A or the second control device 2B, the reception time, the transmission source, and the reception packet data are tailored into one record, and the relational database (step ST702). ) Is stored in a predetermined recording table (step ST703), and a standby state for receiving the next data packet is entered (step ST701).

以上述べた本実施の形態における制御装置の全体の動作を図8のフローチャートに示す。かかるフローチャートから、稼動状態の記録システムが動作していることが分かる。しかも、生産設備3A,3Bを制御している各第1制御装置2Aおよび第2制御装置2Bには予めマルチキャストIPアドレス、ユニキャストIPアドレス、ポート番号を設定しておく必要があるが、それだけ決定した上でネットワーク1に接続すれば、稼動状態を収集している制御装置が第3制御装置2Cであることを自動的に検知し、第3制御装置2Cに向けて稼動状態を送信し始める。かかる動作により自動的に稼動状態の記録システムを構成することができる。   The overall operation of the control device according to the present embodiment described above is shown in the flowchart of FIG. From this flowchart, it can be seen that the recording system in the operating state is operating. In addition, it is necessary to set a multicast IP address, a unicast IP address, and a port number in advance in each of the first control device 2A and the second control device 2B which control the production facilities 3A, 3B. Then, when connecting to the network 1, it automatically detects that the control device that is collecting the operation status is the third control device 2C, and starts transmitting the operation status to the third control device 2C. By such an operation, a recording system in an operating state can be automatically configured.

本動作例において、マルチキャスト通信で送受信されるデータパケットの中身の文字列は利用されていない場合を説明したが、この文字列として第3制御装置2Cが稼動状態を待っているポート番号を追加することで、第1制御装置2Aおよび第2制御装置2Bに予め設定する情報が一つ減る効果が得られる。さらに、この文字列に、サービス手段5の提供するサービスを利用するための手順を実装することもできる。提供されるサービスが関数であるのなら、その引数並びに関する情報が実装される。あるいはサービス提供側で実行できるコンピュータプログラムそのものが実装されており、サービス利用側は自己のサービス手段にそのプログラムをコピーした上で実行することもできる。つまり、かかる実行により他のサービス手段が提供しているサービスを利用できる。   In the present operation example, the case where the character string in the data packet transmitted / received in the multicast communication is not used has been described. However, as this character string, the port number for which the third control device 2C is waiting for the operation state is added. As a result, an effect is obtained that the information set in advance in the first control device 2A and the second control device 2B is reduced by one. Further, a procedure for using the service provided by the service means 5 can be implemented in this character string. If the service provided is a function, information about its argument list is implemented. Alternatively, a computer program itself that can be executed on the service providing side is mounted, and the service using side can copy the program to its own service means and execute it. That is, the service provided by the other service means can be used by the execution.

一方、第3制御装置2Cと同時に第4制御装置2D(図2)が起動した場合、第1制御装置2Aおよび第2制御装置2Bは、第3制御装置2Cおよび第4制御装置2Dの両方に稼動状態を表すデータパケットをユニキャスト通信によって送信する。この場合、第3制御装置2Cあるいは第4制御装置2Dの一方が何らかの障害により停止したとしても、正常に動いている他方にデータが蓄積されていく。   On the other hand, when the fourth control device 2D (FIG. 2) is activated simultaneously with the third control device 2C, the first control device 2A and the second control device 2B are connected to both the third control device 2C and the fourth control device 2D. A data packet indicating the operation state is transmitted by unicast communication. In this case, even if one of the third control device 2C and the fourth control device 2D stops due to some failure, data is accumulated in the other normally operating one.

通常は第3制御装置2Cで運用し、第3制御装置2Cをメンテナンスするために停止する直前に第4制御装置2Dを起動し、その後、第3制御装置2Cを停止してメンテナンスした後、第3制御装置2Cを起動、第4制御装置2Dの自サービス公布手段6Dを停止し、第4制御装置2Dのリレーショナルデータベースに蓄積されたデータを第3制御装置2Cのリレーショナルデータベースに転送し、第4制御装置2Dを停止という運用手段をとる。   Normally, the third control device 2C is operated, the fourth control device 2D is started immediately before the third control device 2C is stopped for maintenance, and after the third control device 2C is stopped and maintained, the fourth control device 2C is stopped. The third control device 2C is activated, the own service promulgation means 6D of the fourth control device 2D is stopped, and the data stored in the relational database of the fourth control device 2D is transferred to the relational database of the third control device 2C. An operation means of stopping the control device 2D is used.

なお、上述したように本実施の形態では、各制御装置側から発信し、リレーショナルデータベースを持つ制御装置にデータパケットを送信する例を示している。つまり、各制御装置がクライアント側となり、リレーショナルデータベースを持つ制御装置がサーバ側として動作する。   As described above, in the present embodiment, an example is shown in which a signal is transmitted from each control device side and a data packet is transmitted to a control device having a relational database. That is, each control device operates as a client, and a control device having a relational database operates as a server.

なお、上述の動作説明では生産設備3A,3Bを制御する制御装置が第1制御装置2A、第2制御装置2Bの2台の場合(図2)について述べたが、かかる仕様の制御装置が何台あっても同様に動作するし、生産設備と直接接続されていない第3制御装置2C、第4制御装置2Dのような仕様の制御装置に関しても何台あったとしても同様に動作する。   In the above description of the operation, the case where the number of control devices for controlling the production facilities 3A and 3B is two (the first control device 2A and the second control device 2B) (FIG. 2) is described. The same operation will be performed even if there are any units, and the same operation will be performed even if there are any number of control units having specifications such as the third control unit 2C and the fourth control unit 2D which are not directly connected to the production equipment.

また、制御装置の自他サービス接続手段8をユニキャストソケットにより構成する例について説明してきたが、HTTPプロトコル、SOAPプロトコル、WebDAVプロトコル、FTPプロトコル、SMTPプロトコル、POPプロトコル、IMAPプロトコル、XMLプロトコル、DCOM(登録商標)プロトコル、CORBA(登録商標)プロトコルであっても同様の効果が得られる。   Also, an example has been described in which the self-other service connection means 8 of the control device is configured by a unicast socket. However, the HTTP protocol, the SOAP protocol, the WebDAV protocol, the FTP protocol, the SMTP protocol, the POP protocol, the IMAP protocol, the XML protocol, the DCOM The same effect can be obtained with the (registered trademark) protocol and the CORBA (registered trademark) protocol.

本動作例ではIPアドレス、ポート番号は本実施の形態における制御装置2の他の動作例とは異なるものを選択している。こうすることにより、他のサービスおよびアプリケーションとなんら無理なく共存することができるのであるが、サービスの内容がほとんど同じ場合には他のIPアドレス、ポート番号と同一のものであってもよい。ただし、似ているが異なるサービスであることを区別するためには送信されるデータパケットのデータフォーマットを予め設計する必要がある。   In this operation example, an IP address and a port number different from those of the other operation examples of the control device 2 in the present embodiment are selected. By doing so, it is possible to coexist with other services and applications without any difficulty. However, if the contents of the services are almost the same, they may be the same as other IP addresses and port numbers. However, it is necessary to design the data format of the transmitted data packet in advance in order to discriminate between similar but different services.

また、本実施例では自サービス公布手段6において、一定周期でパケットを送出する例について説明したが、これを可変周期としても良い。例えば、制御装置の電源投入直後には10秒周期で送信を行ない、電源投入からたとえば5分経過したら、30秒ごとに行なうようにする、などの動作を行なっても良い。この場合にはネットワークの付加を減らす効果が得られる。しかし、他サービス探知手段7が探し出すのに、より時間がかかる欠点も生じる。その他にも10秒周期でパケットを送信している他の制御装置が検出された場合には、自分の送出周期も5分間は10秒間にする、などの手段を実施することもできる。この場合は、他の制御装置より後から電源が投入された制御装置があった場合に、後から電源を投入された制御装置が先に電源が投入されてすでに動いている制御装置を発見するのを迅速に完了させる効果がある。   Further, in the present embodiment, an example has been described in which the own service promulgating means 6 transmits packets at a constant cycle, but this may be a variable cycle. For example, an operation may be performed such that transmission is performed every 10 seconds immediately after the power supply of the control device is turned on, and the transmission is performed every 30 seconds when, for example, 5 minutes have elapsed since the power supply was turned on. In this case, an effect of reducing network addition can be obtained. However, there is also a disadvantage that it takes more time for the other service detecting means 7 to find out. In addition, when another control device transmitting a packet at a cycle of 10 seconds is detected, a means such as setting its own transmission cycle to 10 seconds for 5 minutes can be implemented. In this case, if there is a control device that is powered on later than another control device, the control device that is powered on later finds a control device that is powered on first and is already running. Has the effect of completing it quickly.

また、これらIP通信はIPのバージョン4による例で説明したがバージョン6(IPv6)であっても同様に動作し、同様の効果がある。   In addition, these IP communications have been described using the example of IP version 4, but the same operation can be performed even in version 6 (IPv6), and the same effect is obtained.

以上、実施の形態1の制御装置によると、各制御装置の設定作業が、メンテナンス要員あるいはシステムエンジニアらの人手を煩わすことなく自動的に実行可能となる。また、各制御装置間における自サービス公布手段と他サービス探知手段間の通信手段としてマルチキャスト通信を適用し、かつ自他サービス接続手段間の通信手段としてユニキャスト通信を適用することにより、ネットワーク上の通信量が抑制でき、かつデータパケットの到達範囲の制御が容易となる。   As described above, according to the control device of the first embodiment, the setting operation of each control device can be automatically performed without the need for maintenance personnel or system engineers. In addition, by applying multicast communication as a communication means between the own service promulgating means and other service detecting means between the control devices, and applying unicast communication as a communication means between the own and other service connecting means, the network can be controlled. The communication amount can be suppressed, and the control of the arrival range of the data packet becomes easy.

実施の形態2.
上述の実施の形態1においては第1制御装置2Aおよび第2制御装置2Bが自己の制御する生産設備3A、3Bの稼働状態を第3制御装置2Cあるいは第4制御装置2Dに送信する形態について説明したが、実施の形態2においては図2の構成図に示すような第1制御装置2Aおよび第2制御装置2Bが、他からの稼働状態の問い合わせに対して稼働状態を表すデータを返送するようなサービス内容を具備するサービス手段5A,5Bをそれぞれ有している。さらに、自サービス公布手段6A,6Bにより、このような問い合わせに対して返送する動作を行なうサービス手段5A,5Bが存在することをネットワーク1にIPマルチキャストパケットとして送信し、第3制御装置2Cあるいは第4制御装置2DがそのIPマルチキャストパケットを受信して、どの制御装置に問い合わせてデータを集めるかを決定するように構成している。要するに、所定のIPマルチキャストパケットの送信元を、ネットワーク1上に存在する制御装置として記憶する。この場合も実施の形態1に示したのと同様に、第1制御装置2Aおよび第2制御装置2Bの稼動状態を収集する制御装置が自動的に得られる効果がある。
Embodiment 2 FIG.
In the above-described first embodiment, a description will be given of a mode in which the first control device 2A and the second control device 2B transmit the operation states of the production facilities 3A and 3B controlled by themselves to the third control device 2C or the fourth control device 2D. However, in the second embodiment, the first control device 2A and the second control device 2B as shown in the configuration diagram of FIG. 2 return data indicating the operation state in response to an inquiry about the operation state from another. Service means 5A and 5B having various service contents. Further, the own service promulgating means 6A, 6B transmits to the network 1 the presence of the service means 5A, 5B performing an operation of returning such an inquiry as an IP multicast packet, and sends the information to the third control device 2C or the third control device 2C. 4 The control device 2D is configured to receive the IP multicast packet and determine which control device to inquire to collect data. In short, the transmission source of a predetermined IP multicast packet is stored as a control device existing on the network 1. Also in this case, similarly to the first embodiment, there is an effect that a control device that collects the operating states of the first control device 2A and the second control device 2B is automatically obtained.

さらに、実施の形態2においては、稼働情報を集める対象となる第1制御装置2Aおよび第2制御装置2Bが正常に稼動しており、かつネットワーク1に障害が発生していないことが明らかな時間帯に、第3制御装置2Cおよび第4制御装置2Dにおける他サービス探知手段7C,7D中の図5のフローチャートに示すような削除手順を動作させ、その後、一定時間経過後にこの削除手順のみを停止するよう構成している。各制御装置が正常に稼動していること、およびネットワークに障害が発生していないことの確認は人間が行なうことにしている。一定時間経過後、というのは人間が確認作業を完了したときに経過する時間を指す。   Furthermore, in the second embodiment, it is clear that the first control device 2A and the second control device 2B from which the operation information is to be collected are operating normally, and it is clear that no failure has occurred in the network 1. In the band, a deletion procedure as shown in the flowchart of FIG. 5 in the other service detection means 7C and 7D in the third control apparatus 2C and the fourth control apparatus 2D is operated, and thereafter, only after a predetermined time elapses, only this deletion procedure is stopped. It is configured to It is assumed that a human checks that each control device is operating normally and that no failure has occurred in the network. After a certain time has elapsed, it means the time that elapses when a human completes the confirmation work.

削除手順が動作している間は、新たな制御装置が設置されたこと、及びそれまで存在していた制御装置の撤去されたことが、IPマルチキャストパケットを受信することで得られている存在情報に反映されることになる。例えば、第1制御装置2Aおよび第2制御装置2Bが存在することが、第3制御装置2Cあるいは第4制御装置2Dにより検知されて全体の稼動が始まり、その後、第1制御装置2Aが撤去された場合、第3制御装置2Cあるいは第4制御装置2Dは第1制御装置2Aが存在していることを表すデータを削除し、第2制御装置2Bのみが存在していることを表すデータを保持するようになる。このようにして、存在情報に反映される。つまり、各制御装置の設定作業が、メンテナンス要員あるいはシステムエンジニアらの人手を煩わすことなく、自動的に実行可能となる効果が得られる。   While the deletion procedure is running, presence information obtained by receiving the IP multicast packet indicates that a new control device has been installed and that the previously existing control device has been removed. Will be reflected in For example, the presence of the first control device 2A and the second control device 2B is detected by the third control device 2C or the fourth control device 2D, and the whole operation starts, and thereafter, the first control device 2A is removed. In this case, the third control device 2C or the fourth control device 2D deletes the data indicating that the first control device 2A exists, and retains the data indicating that only the second control device 2B exists. I will do it. In this way, it is reflected in the presence information. In other words, an effect is obtained that the setting work of each control device can be automatically executed without the need for maintenance personnel or system engineers.

削除手順が停止させたときは、制御装置が新たに設置された場合には存在情報が変化するが、撤去されるか、あるいはなんらかの障害が発生してIPマルチキャストパケットが受信できなくなった場合でも存在情報は変化しなくなる。つまり、第1制御装置2A、第2制御装置2Bあるいはネットワーク1に何らかの障害が発生して所定のディレクトリ領域(記憶領域)のファイルが更新されなくなったとしても、第1制御装置2Aあるいは第2制御装置2Bの存在を表すデータが削除されなくなる。削除されないので自他サービス接続手段8は接続できない相手と通信しようとするが、当然通信できないので、この結果、第1制御装置2Aあるいは第2制御装置2Bに障害が発生しているか、ネットワーク1に障害が発生していることを検知できる。削除手段を動作させている場合、障害が発生した制御装置の存在を表すデータが削除されるので、その制御装置とは通信しなくなるので障害の発生がわからない。本実施の形態では削除手段を停止しているので存在を示すデータの表す制御装置と通信しようとするので障害を検知することが可能となる。また、削除手段は任意のタイミングで動作を再開させる。これにより最新の設置、撤去情報を更新する。   When the deletion procedure is stopped, the presence information changes when the control device is newly installed, but the presence information is changed even if it is removed or some failure occurs and the IP multicast packet cannot be received. The information will not change. In other words, even if a failure occurs in the first control device 2A, the second control device 2B or the network 1 and the files in the predetermined directory area (storage area) are not updated, the first control device 2A or the second control Data indicating the existence of the device 2B is not deleted. Since the service is not deleted, the own / other service connection means 8 tries to communicate with the unreachable partner. However, since the communication is not possible, as a result, whether a failure has occurred in the first control device 2A or the second control device 2B or whether the network 1 It can detect that a failure has occurred. When the deletion means is operated, data indicating the existence of the failed control device is deleted, and communication with the control device is stopped, so that the occurrence of the failure cannot be recognized. In the present embodiment, since the deletion unit is stopped, it tries to communicate with the control device represented by the data indicating the existence, so that a failure can be detected. The deletion means restarts the operation at an arbitrary timing. This updates the latest installation and removal information.

なお、本実施の形態では生産設備3を制御する制御装置を第1制御装置2A、第2制御装置2Bの2台で構成する場合について説明したが、かかる仕様の制御装置が何台あっても同様に動作するし、第3制御装置2C、第4制御装置2Dについても、かかる仕様の制御装置が何台あっても同様に動作する。   In this embodiment, a case has been described in which the control device for controlling the production equipment 3 is composed of two units, the first control unit 2A and the second control unit 2B. However, no matter how many control units have such specifications. The same operation is performed, and the third control device 2C and the fourth control device 2D operate similarly regardless of the number of control devices having such specifications.

さらに、本実施の形態においては削除手段を停止および動作することにして説明したが、以下の動作方法でも、制御装置もしくはネットワークの障害を検知することができる。   Furthermore, in the present embodiment, the description has been made assuming that the deletion unit is stopped and operated. However, a failure of the control device or the network can be detected by the following operation method.

まず、上述したような人間の確認作業が行なわれる。このときに得られたIPマルチキャストパケット受信データによる制御装置の存在情報を「正」として記憶保持しておく。確認作業終了後に、先の動作例では削除時手段を停止することにしていたが、本動作例では削除手段を停止しない。したがって、障害が発生した制御装置の存在を表すデータは削除される。ネットワークに障害が発生した場合にあってはすべてのデータが削除されることになる。このような各時点での制御装置の存在を表すデータと、先に記憶保持した「正」のデータを比較することで制御装置の撤去、障害発生、ネットワークの障害発生を判定する。この動作例によれば、実際に対象となる制御装置と通信を試みて、通信できないことで障害の発生等を知るのに比して、通信を試みる前に障害等を知ることができる効果が得られる。よって、メンテナンス要員あるいはシステムエンジニアらの人手を煩わすことなく、通信障害を事前に察知できる。   First, the above-described human confirmation work is performed. The presence information of the control device based on the IP multicast packet reception data obtained at this time is stored and held as “correct”. After the confirmation operation is completed, the deletion means is stopped in the previous operation example, but the deletion means is not stopped in this operation example. Therefore, the data indicating the presence of the failed control device is deleted. In the event of a network failure, all data will be deleted. By comparing the data indicating the existence of the control device at each point in time with the “positive” data stored and held in advance, the removal of the control device, the occurrence of a failure, and the occurrence of a network failure are determined. According to this operation example, compared to actually trying to communicate with the target control device and not being able to communicate and knowing the occurrence of a failure or the like, it is possible to know the failure or the like before attempting the communication. can get. Therefore, it is possible to detect a communication failure in advance without bothering maintenance personnel or system engineers.

実施の形態3.
図9は実施の形態3の制御装置の構成図である。図9において10は広域ネットワークである。1は構内ネットワークとしているが、他の実施の形態におけるネットワーク1と同一のものである。
Embodiment 3 FIG.
FIG. 9 is a configuration diagram of a control device according to the third embodiment. In FIG. 9, reference numeral 10 denotes a wide area network. Reference numeral 1 denotes a private network, which is the same as the network 1 in the other embodiments.

図9における第1制御装置2Aは、第1生産設備3Aの制御を実行しつつ、サービス手段5Aが構内ネットワーク1あるいは広域ネットワーク(インターネット)10上の第3制御装置2Cのサービス手段5Cを利用したり、逆に第3制御装置2Cが第1制御装置2Aのサービス手段5Aを利用する場合を示している。通常、構内ネットワーク1と広域ネットワーク10はルータと呼ばれる接続装置で結合されるが、そのルータを第2制御装置2Bで構成した例について説明する。かかる構成では、第2制御装置2Bは構内ネットワーク1用と広域ネットワーク10用の2つのネットワーク接続手段9B1,9B2を備えている。第2制御装置2Bはこれら2つのネットワーク間のデータパケットの転送を制御する機能を具備しており、あるパケットは転送するし、あるパケットは転送しないという振り分けを行なう。これがルータ機能であり、広域ネットワーク10側からの不正なデータ通信要求を選択的に排除する振り分けを行なう機能を前面に出せばファイヤーウォールとして使用できる。   In the first control device 2A in FIG. 9, the service means 5A uses the service means 5C of the third control device 2C on the private network 1 or the wide area network (Internet) 10 while controlling the first production equipment 3A. Alternatively, the third control device 2C uses the service means 5A of the first control device 2A. Normally, the private network 1 and the wide area network 10 are connected by a connection device called a router. An example in which the router is configured by the second control device 2B will be described. In such a configuration, the second control device 2B includes two network connection units 9B1 and 9B2 for the private network 1 and the wide area network 10. The second control device 2B has a function of controlling the transfer of data packets between these two networks, and sorts such that certain packets are transferred and certain packets are not transferred. This is the router function, and if a function of performing the sorting for selectively excluding an illegal data communication request from the wide area network 10 is brought to the front, it can be used as a firewall.

さて、第1制御装置2Aが第3制御装置2Cのサービス手段5Cのサービスにユニキャスト通信で接続したいとする。通常は第2制御装置2Bの2つのネットワーク接続手段9B1,9B2のデータ転送は実施されないようにし、第1制御装置2Aが第3制御装置2Cに接続するときのみデータ転送を実行するようにすることで広域ネットワーク10からの不正な侵入、構内ネットワーク1の中からの意図せぬデータ漏洩、不正な通信を防ぐことができる。そして、第2制御装置2Bのサービス手段5Bはこのデータ転送を行なうか、止めるかに関するサービスを行っている。第1制御装置2Aの自他サービス接続手段8Aは第2制御装置2Bの自他サービス接続手段8Bに接続し、自分から第3制御装置2Cへの通信データの転送を実行してもらうように依頼する。すなわち、第2制御装置2Bの2つのネットワーク接続手段9B1,9B2の間のデータ転送の実行を依頼する。   Now, suppose that the first control device 2A wants to connect to the service of the service means 5C of the third control device 2C by unicast communication. Normally, the data transfer between the two network connection means 9B1 and 9B2 of the second control device 2B is not performed, and the data transfer is performed only when the first control device 2A is connected to the third control device 2C. Thus, unauthorized intrusion from the wide area network 10, unintended data leakage from the local area network 1, and unauthorized communication can be prevented. Then, the service means 5B of the second control device 2B provides a service regarding whether to perform or stop the data transfer. The own / other service connecting means 8A of the first control device 2A connects to the own / other service connecting means 8B of the second control device 2B and requests that the communication data transfer from itself to the third control device 2C be performed. I do. That is, it requests execution of data transfer between the two network connection units 9B1 and 9B2 of the second control device 2B.

次に、第1制御装置2Aは第3制御装置2Cへの接続を行なう。データ転送が実行されているので通信路が確立する。データ通信が完了すれば、再び第2制御装置2Bに接続し、データ転送を停止する依頼をする。一方、外部から第1制御装置2Aのサービス手段5Aを利用させるために、やはり第2制御装置2Bの自他サービス接続手段8Bに接続し、第3制御装置2Cから自分への通信データの転送を実行してもらうように依頼する。そして以下同様の手順でデータ転送は終了する。なお、第2制御装置2Bがデータ転送を行なうサービスを実行できることは自サービス公布手段6Bにより、第1制御装置2Aの知るところとなっていることはいうまでもない。以上の一連の動作はすべて自動的に行われるので、各制御装置の設定作業が、メンテナンス要員あるいはシステムエンジニアらの人手を煩わすことなく、自動的に実行可能となる効果が得られる。   Next, the first control device 2A makes a connection to the third control device 2C. Since data transfer is being performed, a communication path is established. When the data communication is completed, the second communication device 2B is again connected to the second control device 2B, and a request to stop data transfer is made. On the other hand, in order to use the service means 5A of the first control device 2A from the outside, it is also connected to the own / other service connection means 8B of the second control device 2B, and transfer of communication data from the third control device 2C to itself is performed. Ask them to do it. Then, the data transfer ends in the same procedure. Needless to say, the fact that the second control device 2B can execute the service for performing data transfer is known to the first control device 2A by the own service promulgating means 6B. Since all of the above series of operations are performed automatically, an effect is obtained that the setting work of each control device can be automatically executed without the need for maintenance personnel or system engineers.

さらに、ネットワーク接続手段9B1がIPv6通信を行ない、ネットワーク接続手段9B2がIPv4通信を行なっている場面を考えることができる。また、その逆も可能である。かかる場合は、構内はIPv6通信を行なう一方で、インターネット上のIPv4通信を利用する必要のある場面に対応できる効果が得られる。   Further, it is possible to consider a situation where the network connection unit 9B1 performs IPv6 communication and the network connection unit 9B2 performs IPv4 communication. The reverse is also possible. In such a case, while the premises performs IPv6 communication, an effect of being able to cope with a scene where it is necessary to use IPv4 communication on the Internet is obtained.

実施の形態4.
図10の構成図は、生産設備3を2台の制御装置2A、2Bで制御している実施の形態4の制御装置の例である。本実施の形態における第1制御装置2Aの生産設備制御手段4Aは生産設備3Aの状態の計測信号およびモーターなどアクチュエータへのエネルギー供給指令信号あるいは位置指令信号、速度指令信号、接点開閉信号等の制御指令信号を自他サービス接続手段6Aおよびサービス手段5Aを介して第2制御装置2Bの生産設備制御手段4Bに接続している。これにより第2制御装置2Bが生産設備3Aの状態に対応した制御指令を、第1制御装置2Aの生産設備3Aに送ることで制御動作が実現する。以上の一連の動作はすべて自動的に行われるので、各制御装置の設定作業が、メンテナンス要員あるいはシステムエンジニアらの人手を煩わすことなく、自動的に実行可能となる効果が得られる。
Embodiment 4 FIG.
The configuration diagram of FIG. 10 is an example of the control device according to the fourth embodiment in which the production facility 3 is controlled by two control devices 2A and 2B. The production equipment control means 4A of the first control device 2A in the present embodiment controls a measurement signal of a state of the production equipment 3A and an energy supply command signal or a position command signal, a speed command signal, a contact opening / closing signal, etc. to an actuator such as a motor. The command signal is connected to the production equipment control means 4B of the second control device 2B via the service connection means 6A and the service means 5A. Thereby, the control operation is realized by the second control device 2B sending a control command corresponding to the state of the production equipment 3A to the production equipment 3A of the first control device 2A. Since all of the above series of operations are performed automatically, an effect is obtained that the setting work of each control device can be automatically executed without the need for maintenance personnel or system engineers.

実施の形態5.
実施の形態5における制御装置の構成図を図11に示す。生産設備3が2台で制御装置2は4台で構成されている。本実施の形態では第1生産設備3Aおよび第2生産設備3Bは、レーザー穴あけ加工機のような加工経路の良し悪しが加工時間に影響する加工機である。以下に加工機の動作を説明する。図12はワークの平面図であり、四角いワークに5つの穴を開ける様相を示す図である。このとき、図12(a)に示すような順番でワークに穴を開けていくより、図12(b)に示すような順番でワークに穴を開けたほうが、加工経路が短い。したがって、第1生産設備3Aあるいは第2生産設備3Bにおいて図12に示すような加工を実際に行なう前に、図12(b)のように穴の配置に対して最適な加工順番を得ておくことが重要である。加工経路が短いと加工時間が短縮され、この結果、例えば1日の操業でより多くのワークを加工することができ、生産性が一層向上するからである。図11中の第1生産設備3Aが、このような最適な加工順番、言い換えると加工経路の最適化ないし準最適化演算を必要としている場合に、かかる最適化演算を4台の制御装置2A〜2Dにより実行するのが本実施の形態における各制御装置の機能である。
Embodiment 5 FIG.
FIG. 11 shows a configuration diagram of a control device according to the fifth embodiment. The production equipment 3 is composed of two units, and the control device 2 is composed of four units. In the present embodiment, the first production facility 3A and the second production facility 3B are processing machines such as laser drilling machines in which the quality of the processing path affects the processing time. The operation of the processing machine will be described below. FIG. 12 is a plan view of the work, showing a manner in which five holes are formed in a square work. At this time, the machining path is shorter when holes are drilled in the work as shown in FIG. 12B than when holes are drilled in the work as shown in FIG. Therefore, before actually performing the machining shown in FIG. 12 in the first production facility 3A or the second production facility 3B, an optimal machining order for the hole arrangement is obtained as shown in FIG. 12B. This is very important. If the machining path is short, the machining time is shortened. As a result, for example, more work can be machined in one day of operation, and the productivity is further improved. When the first production facility 3A in FIG. 11 needs such an optimal machining order, in other words, an optimization or a sub-optimization operation of the machining path, the optimization operation is performed by the four control devices 2A to 2A. The function of each control device in the present embodiment is executed by 2D.

まず、最短な加工経路を求める演算について説明する。通常は、ワークとそのワークに開けるべき穴の配置のみが与えられたところから加工経路の計画が開始される。最初は乱数等によって穴の順番を適当に並べ、その後、いわゆる最適化アルゴリズムを適用して、最も加工経路が短くなる最適加工経路、あるいは最も加工経路が短いものに近いであろう準最適化経路を求める。これは、巡回セールスマン問題と呼ばれる問題そのものである。   First, the calculation for finding the shortest machining path will be described. Usually, the planning of the machining path is started from the point where only the work and the arrangement of holes to be drilled in the work are given. At first, the order of the holes is appropriately arranged by random numbers, etc., and then the so-called optimization algorithm is applied to determine the optimal machining path with the shortest machining path or the quasi-optimized path that will be closest to the shortest machining path. Ask. This is a problem itself called the traveling salesman problem.

このような巡回セールスマン問題を解くための最適化アルゴリズムには、例えば山登り法、シミュレーテッドアニーリング法、遺伝的アルゴリズム法、全探索法等の方法がある。開ける穴の数が少ないときには全探索も可能であるが、通常、実用的な加工における穴の数において、実用的な時間内に全探索が完了することは無く、全探索法が使われることは無い。そこで、他のアルゴリズムによるが、それぞれ得失があるので、ここでは複数の手法を組み合わせることで、各手法の長所を活かすような動作例を説明する。   Optimization algorithms for solving such a traveling salesman problem include, for example, a hill-climbing method, a simulated annealing method, a genetic algorithm method, and a full search method. When the number of holes to be drilled is small, full search is also possible, but in general, in the number of holes in practical machining, full search is not completed within a practical time, and the full search method is not used. There is no. Therefore, although there are other algorithms, each has its own advantages and disadvantages. Here, an operation example in which a plurality of methods are combined to take advantage of each method will be described.

上述した各方法のうち、比較的局所的な最適解に陥ることが無く、迅速に最適化が進行するのはシミュレーテッドアニーリング法(第1の最適化プログラム)である。しかし、このシミュレーテッドアニーリング法はある程度最適化が進行した後は、計算を続けても良い解が得られなくなってくる。そこで、シミュレーテッドアニーリング法で演算を始めて、しばらくはかかる演算方法を続行し、そしてあるところで得られた解(第1の最適解)に基づき、山登り法(第2の最適化プログラム)に切り替えて最適化を継続し、さらなる最適解(第2の最適解)を求める。ここで一つ問題がある。つまり、山登り法は局所最適解に容易に陥ってしまい、良い解が得られなくなることが多い一方、驚くほど良い解が短時間で得られる場合もある。このような問題を解決するためには、山登り法に切り替えた後は複数の山登り法演算スレッドを複数同時に動かして最終的に最も良い解を出している山登り法の解(第2の最適解)のみ採用すればよい。1000回計算すれば1000通りの答になるので、できるだけ多くのスレッドを同時に動かすことが好適である。   Among the above-described methods, the simulated annealing method (first optimization program) is such that optimization proceeds rapidly without falling into a relatively local optimum solution. However, in the simulated annealing method, after the optimization has progressed to some extent, a good solution cannot be obtained even if the calculation is continued. Therefore, the operation is started by the simulated annealing method, the operation method is continued for a while, and based on the solution obtained at a certain point (the first optimum solution), the operation is switched to the hill climbing method (the second optimization program). The optimization is continued, and a further optimal solution (second optimal solution) is obtained. There is one problem here. That is, the hill-climbing method easily falls into a local optimum solution, and often a good solution cannot be obtained. On the other hand, a surprisingly good solution may be obtained in a short time. In order to solve such a problem, after switching to the hill-climbing method, a plurality of hill-climbing method operation threads are simultaneously operated to finally obtain the best solution (second optimal solution). Only adopt it. Since 1000 calculations yield 1000 answers, it is preferable to run as many threads as possible simultaneously.

図13のグラフは本動作例による演算結果を表している。横軸が山登り法の繰り返し演算の回数、縦軸は加工経路の総延長距離である。複数のプロット曲線は複数のスレッドの各実行結果を表している。図13のグラフでは10個のスレッドで計算しているので、スレッドに対応して曲線も10本ある。図13のグラフから判るように、ある演算回数において比較すると、各スレッドの加工経路の総延長距離はばらついている。よって、より最適な解を得るために、ばらついている各演算結果中から総延長距離が最小となっているようなスレッドの解(第2の最適解)を選択する。   The graph in FIG. 13 shows the calculation result according to this operation example. The horizontal axis represents the number of repetitions of the hill-climbing method, and the vertical axis represents the total extension distance of the machining path. Multiple plot curves represent the results of each execution of multiple threads. In the graph of FIG. 13, since the calculation is performed with ten threads, there are also ten curves corresponding to the threads. As can be seen from the graph of FIG. 13, when compared at a certain number of operations, the total extension distance of the machining path of each thread varies. Therefore, in order to obtain a more optimal solution, a solution (second optimal solution) of the thread having the minimum total extension distance is selected from among the calculation results that vary.

一方、遺伝的アルゴリズムにより最適化演算を行なった場合には、このような複数スレッド山登り法に比べて繰り返し演算を重ねることで最終的には良い解が得られるにせよ、解が得られるまでの時間は長くなることが実験的に判っている。複数スレッド山登り法と同じ時間で遺伝低アルゴリズムの演算を打ち切ることもできるが、その場合には複数スレッド山登り法よりも良い解が得られないことも実験的に判っている。   On the other hand, when an optimization operation is performed by a genetic algorithm, a good solution can be finally obtained by repeating the operation repeatedly as compared with such a multi-thread hill-climbing method. It has been experimentally found that the time is longer. It is possible to terminate the operation of the genetic low algorithm in the same time as the multi-thread hill-climbing method, but it has been experimentally found that in this case, a better solution than the multi-thread hill-climbing method cannot be obtained.

以上で述べたようなシミュレーテッドアニーリング法(第1の最適化プログラム)と複数スレッド山登り法(第2の最適化プログラム)を組み合わせた方法の手順を図14のフローチャートに示す。以下、図14のフローチャートに従って説明する。加工は2次元平面に複数の穴を指定された位置にあけていくというものである。したがって、各穴はX,Y座標の組み合わせが複数並べられたものとして表現される(ステップST1401)。演算の開始は複数のX,Y座標の組み合わせで表現されている問題を取得することである(ステップST1402)。次に、初期解として開ける穴の順番を乱数により決定する(ステップST1403)。続いて、この乱数による初期解を出発点とするシミュレーテッドアニーリング法を実行する(ステップST1404)。このシミュレーテッドアニーリング法は一定時間で打ち切られる。他の打ち切り方としては、一定の演算回数で打ち切る方法、解が徐々に良い値(この場合は総延長距離がより短い値)になっていく速さがある値より小さくなったときに打ち切る方法が挙げられる。   FIG. 14 is a flowchart showing the procedure of a method that combines the simulated annealing method (first optimization program) and the multiple thread hill-climbing method (second optimization program) described above. Hereinafter, description will be given according to the flowchart of FIG. The processing is to form a plurality of holes in a specified position on a two-dimensional plane. Therefore, each hole is expressed as a plurality of combinations of X and Y coordinates arranged (step ST1401). The start of the calculation is to acquire a problem represented by a combination of a plurality of X and Y coordinates (step ST1402). Next, the order of holes to be drilled as an initial solution is determined by random numbers (step ST1403). Subsequently, a simulated annealing method starting from the initial solution using the random numbers is executed (step ST1404). This simulated annealing method is terminated in a fixed time. Other methods of aborting include a method of aborting with a fixed number of calculations and a method of aborting when the speed at which the solution gradually becomes a good value (in this case, the total extension distance is a shorter value) becomes smaller than a certain value. Is mentioned.

続いて、山登り法に移行する。上述したように、山登り法は複数のスレッドで実行する(ステップST1405)。因みに、図14のフローチャートでは4つのスレッドで演算した例を示している(ステップST1406,ステップST1407,ステップST1408,ステップST1409)。各スレッドはそれぞれ山登り法で繰り返し演算を行なうが、演算の中で乱数を使用するので既述の図3のフローチャートに示したとおりで、同じ初期解から演算を開始しても、その経過と結果は異なるものになる。この山登り法は予め定められた演算回数で打ち切られる。他の打ち切りかたとして、一定時間で打ち切る、解の改善速度が鈍ったら打ち切るなどの方法も挙げられる。   Then, it moves to the hill climbing method. As described above, the hill-climbing method is executed by a plurality of threads (step ST1405). Incidentally, the flowchart of FIG. 14 shows an example in which calculation is performed by four threads (step ST1406, step ST1407, step ST1408, step ST1409). Each thread repeatedly performs the operation by the hill-climbing method. However, since random numbers are used in the operation, as shown in the flowchart of FIG. 3 described above, even if the operation is started from the same initial solution, the progress and the result are obtained. Will be different. This hill-climbing method is terminated after a predetermined number of calculations. Other methods of discontinuation include a method of discontinuing in a fixed time and a method of discontinuing when a solution improvement speed becomes slow.

すべてのスレッドが終了したことを判定し(ステップST1410)、それぞれのスレッドの解が出揃う。その後、すべての解を総延長距離でソートし、最短の値を最終的な解(第2の最適解)として(ステップST1411)、穴を開ける順番とともに結果記録ファイルに記録して(ステップST1412)、終了する。   It is determined that all the threads have ended (step ST1410), and the solutions of the respective threads are obtained. After that, all the solutions are sorted by the total extension distance, the shortest value is set as the final solution (second optimal solution) (step ST1411), and the result is recorded in the result recording file together with the order in which holes are formed (step ST1412). ,finish.

本実施の形態では図14のフローチャートに示した演算方法の中で、複数スレッドによる山登り法(第2の最適化プログラム)の実際の演算部分を複数の制御装置2により実行する。すなわち、複数の制御装置によって山登り法を並列に処理している。図11に示すように、上記の山登り法を計算するサービスが第1ないし第4制御装置2A〜2Dそれぞれのサービス手段5A〜5Dで並列に実行可能であるように予め構成する。そして、4つの制御装置2A〜2Dそれぞれの自サービス公布手段6A〜6Dによってネットワーク1内に向けて、IPマルチキャストアドレス234.5.6.7、ポート番号4567にて、データパケットがマルチキャスト送信される。このIPマルチキャストアドレスとポート番号は予め定めておく。   In the present embodiment, the actual calculation part of the hill-climbing method (second optimization program) using a plurality of threads is executed by the plurality of control devices 2 in the calculation method shown in the flowchart of FIG. That is, the hill-climbing method is processed in parallel by a plurality of control devices. As shown in FIG. 11, the service for calculating the above-mentioned hill-climbing method is configured in advance so that it can be executed in parallel by the service means 5A to 5D of the first to fourth control devices 2A to 2D. Then, the data packets are multicast-transmitted toward the inside of the network 1 by the own service promulgating means 6A to 6D of each of the four control devices 2A to 2D at the IP multicast address 2345.5.6.7 and the port number 4567. . The IP multicast address and the port number are determined in advance.

ここで、このIPアドレス、ポート番号は本発明の他の実施の形態における動作例とは異なる値を選択している。つまり、このIPアドレス、ポート番号は固有の値を有している。この結果、他のサービスおよびアプリケーションと異なるIPアドレス、ポート番号を有することになるため、各サービスおよびアプリケーションは互いになんら無理なく共存できる。   Here, values different from those of the operation example in the other embodiment of the present invention are selected for the IP address and the port number. That is, the IP address and the port number have unique values. As a result, the service and the application have different IP addresses and port numbers from other services and applications, so that each service and the application can coexist with each other without any difficulty.

上述のサービスで、送信されるデータパケットは“P2P-TSP”という文字列を含んでいる。第1制御装置2Aの他サービス探知手段7AはこのIPマルチキャスト送信データパケットを受信し(図4のフローチャートと同等の動作。ただし、受信待ちIPアドレスおよびポート番号は異なる)、ディレクトリ領域に順次記憶する。マルチキャストパケットの受信が第1制御装置2Aにて観測されないときにディレクトリ領域から削除される動作も図5のフローチャートと同様である。   In the above service, the transmitted data packet includes a character string “P2P-TSP”. The other service detecting means 7A of the first control device 2A receives this IP multicast transmission data packet (operation equivalent to the flowchart of FIG. 4; however, the reception waiting IP address and port number are different) and sequentially stores them in the directory area. . The operation of deleting the multicast packet from the directory area when the reception of the multicast packet is not observed by the first control device 2A is the same as that in the flowchart of FIG.

さて、第1制御装置2Aにおいて、これから加工するワークに関するデータの取り扱いが始まったとする。そして、図14のフローチャートに示したような動作が第1制御装置2Aのサービス手段5Aで実施される。まず、第1制御装置2Aのサービス手段5Aにおいて乱数による初期解が演算され、それに続いてシミュレーテッドアニーリング法による最適化演算が実行され、第1の最適解が得られる。次に、図6のフローチャート中に点線で囲んだ領域に示した他サービス探知手段7Aと同等の動作により、記憶領域から山登り法を実行可能な制御装置2Aのサービス手段5Aが読み出される。図6のフローチャートに示すように各サービス手段5AのIPアドレスがファイル名として得られる。   Now, it is assumed that the first control device 2A has started handling data on a work to be processed. Then, the operation as shown in the flowchart of FIG. 14 is performed by the service unit 5A of the first control device 2A. First, the service unit 5A of the first control device 2A calculates an initial solution based on a random number, and subsequently performs an optimization calculation based on a simulated annealing method to obtain a first optimum solution. Next, the service means 5A of the control device 2A capable of executing the hill-climbing method is read from the storage area by the same operation as that of the other service detection means 7A shown in the area surrounded by the dotted line in the flowchart of FIG. As shown in the flowchart of FIG. 6, the IP address of each service means 5A is obtained as a file name.

続いて、各サービス手段5A〜5Dに対し、シミュレーテッドアニーリング法にて得られている解が配信される。かかる解の配信に際しては、自他サービス接続手段8Aが用いられる。上述したように、自他サービス接続手段8Aは自己以外の他の制御装置2B〜2Dのサービス手段5B〜5Dを利用するために必要なデータのやり取りを行なうために設けられた手段である。本実施の形態においては、第1制御装置2Aの自他サービス接続手段8Aは、まずは複数のX,Y座標の組み合わせを他のサービス手段5B〜5Dに配信するために用いられる。   Subsequently, a solution obtained by the simulated annealing method is distributed to each of the service means 5A to 5D. When distributing such a solution, the self-other service connection means 8A is used. As described above, the own / other service connecting means 8A is provided for exchanging data necessary for using the service means 5B to 5D of the other control devices 2B to 2D other than the own. In the present embodiment, the own / other service connection means 8A of the first control device 2A is used for first delivering a combination of a plurality of X, Y coordinates to the other service means 5B to 5D.

以下、図15のフローチャートに従って、本実施の形態の制御装置の動作を説明する。第1制御装置2Aの動作においてシミュレーテッドアニーリング法を終えたら(ステップST1504)、他サービス探知手段7B〜7Dにより得られた(ステップST1506)山登り法を担当できる他の制御装置2B〜2Dのサービス手段5B〜5Dに対して、それぞれスレッドを起動し(ステップST1508)、各スレッド毎に、複数のX、Y座標の組み合わせを自他サービス接続手段8Aを用いてユニキャスト通信によって送信する(ステップST1510)。かかる送信が完了したら、その印として行頭に『.』(ピリオド)を持ったデータをさらにユニキャスト通信によって送信する(ステップST1511)。送信後は、結果が返ってくるまで待機する(ステップST1512)。各スレッドを起動し終えた元スレッドは各スレッドが終了するまで待機する(ステップST1516)。各スレッドにおいては自他サービス接続手段8B〜8Dにより最短の総延長距離(ステップST1512)、その距離を与える複数のX、Y座標の組み合わせ(ステップST1515)、行頭に『.』(ピリオド)(ステップST1514)、の順でデータが帰ってくるのでこの順序に従ってデータを受け取り、終了する。すべてのスレッドが終了したら、各スレッドの返してきた総延長距離をソートして(ステップST1517)その中から最短のものを選択し、同時にその最短距離を与えるX、Y座標を選び出して(ステップST1518)演算を終える。   Hereinafter, the operation of the control device of the present embodiment will be described with reference to the flowchart of FIG. When the simulated annealing method is completed in the operation of the first control device 2A (step ST1504), the service means of the other control devices 2B to 2D which can take charge of the hill-climbing method obtained by the other service detection means 7B to 7D (step ST1506). A thread is started for each of 5B to 5D (step ST1508), and a plurality of combinations of X and Y coordinates are transmitted by unicast communication using the own / other service connection means 8A for each thread (step ST1510). . When such transmission is completed, ". (Period) is further transmitted by unicast communication (step ST1511). After the transmission, it waits until a result is returned (step ST1512). The original thread that has started each thread waits until each thread ends (step ST1516). In each thread, the shortest total extension distance (step ST1512), a combination of a plurality of X and Y coordinates giving the distance (step ST1515) by the own / other service connection means 8B to 8D, and ". (Period) (step ST1514), data is returned in this order, so data is received according to this order, and the process ends. When all the threads are finished, the total extension distance returned by each thread is sorted (step ST1517), and the shortest one is selected from the sorted distances, and at the same time, the X and Y coordinates giving the shortest distance are selected (step ST1518). ) Finish the operation.

一方、山登り法を担当できる各制御装置2A〜2Dの自他サービス接続手段8A〜8Dにおいては同様のデータ伝送手順を実装しており(ステップST1520からステップST1522)、受け取ったX、Y座標の並びを初期解とする山登り計算を所定回数行ない(ステップST1513)、結果を先に述べたような手順で送信元に送り返す(ステップST1524からステップST1526)。以上により、最適な加工経路が得られたので第1生産設備3Aにおいて加工を開始することができる。   On the other hand, the self-other service connecting means 8A to 8D of each of the control devices 2A to 2D capable of handling the hill-climbing method implements a similar data transmission procedure (step ST1520 to step ST1522), and the arrangement of the received X and Y coordinates. Is performed a predetermined number of times (step ST1513), and the result is sent back to the transmission source according to the procedure described above (steps ST1524 to ST1526). As described above, since the optimum processing path has been obtained, the processing can be started in the first production facility 3A.

なお、本実施の形態では加工経路が問題になる加工機の場合について説明したが、加工開始前に加工パラメータを演算する加工機、プラント、組み立てラインなどの生産設備の場合であっても、サービス手段におけるサービスの中身を、問題に対応した最適化演算に変更することで、同様の効果が得られる。   Although the present embodiment has been described with respect to a processing machine in which a processing path is a problem, even in the case of a production machine such as a processing machine, a plant, an assembly line, or the like, which calculates a processing parameter before starting processing, a service can be provided. A similar effect can be obtained by changing the contents of the service in the means to an optimization operation corresponding to the problem.

また、これらIP通信はIPのバージョン4による例で説明したが、バージョン6(IPv6)であっても同様に動作し、また、同様の効果がある。   In addition, although the IP communication has been described using the example of the version 4 of the IP, the same operation can be performed in the case of the version 6 (IPv6), and the same effect can be obtained.

本実施の形態ではIPアドレス、ポート番号は他の動作例とは異なる値を選択している。こうすることにより、他のサービスおよびアプリケーションとなんら無理なく共存することができるのであるが、サービスの内容がほとんど同じ場合には他のIPアドレス、ポート番号と同一のものであってもよい。ただし、似ているが異なるサービスであることを区別するためには送信されるデータパケットのデータフォーマットを予め設計する必要がある。   In the present embodiment, values different from those of the other operation examples are selected for the IP address and the port number. By doing so, it is possible to coexist with other services and applications without any difficulty. However, if the contents of the services are almost the same, they may be the same as other IP addresses and port numbers. However, it is necessary to design the data format of the transmitted data packet in advance in order to discriminate between similar but different services.

以上、本実施の形態の制御装置による生産設備の制御方法によると、複数の制御装置を用いて最適化プログラムの一部を実行したので、生産設備の一種である加工機において最適ないし準最適な加工経路による加工を実行できる効果がある。   As described above, according to the control method of the production equipment by the control device of the present embodiment, since a part of the optimization program is executed by using a plurality of control devices, an optimal or sub-optimal There is an effect that machining can be performed by the machining path.

実施の形態6.
実施の形態6における制御装置は、構成としては上述の図2に示すような生産ラインとほぼ同一である。図2における制御装置の構成では、第1制御装置2Aのサービス手段5Aは、第1生産設備3Aの現在の動作状態を表すデータを他の制御装置2B〜2Dのサービス手段5B〜5Dに対して送出するが、3台の制御装置2B〜2Dにのみ送信することで自分の負荷を押さえている。一方、制御装置2B〜2Dのサービス手段5B〜5Dは受け取った動作状態を表すデータをさらに他の制御装置のサービス手段に中継転送するサービスを具備している。それぞれの自サービス公布手段8A〜8Dは動作状態を送出できる旨、もしくは中継できる旨をネットワーク1内にマルチキャスト送信している。さらに、それぞれの他サービス探知手段7A〜7Dは中継してくれる制御装置を探すし、元データを送出できる制御装置を探す。
Embodiment 6 FIG.
The control device according to the sixth embodiment has substantially the same configuration as the production line as shown in FIG. 2 described above. In the configuration of the control device in FIG. 2, the service means 5A of the first control device 2A sends data representing the current operation state of the first production facility 3A to the service means 5B to 5D of the other control devices 2B to 2D. Although it is transmitted, it transmits to only the three control devices 2B to 2D to suppress its own load. On the other hand, the service means 5B to 5D of the control devices 2B to 2D have a service for relay-transferring the data indicating the received operation state to the service means of another control device. Each of the own service promulgating means 8A to 8D multicasts in the network 1 that the operation state can be transmitted or relayed. Further, each of the other service detection means 7A to 7D searches for a control device to relay, and searches for a control device capable of transmitting original data.

かかる動作をするように各制御装置が構成されている場合に、ネットワーク1に制御装置2A〜2Kの計11台が接続されると、これら一群の制御装置2A〜2Kは、それぞれの自サービス公布手段6、他サービス探知手段7により、どの制御装置からデータを受け取って、どこの制御装置に送信することにするのかが、人手作業を介することなく自動的に決定されていく。制御装置2B〜2Kは、自己は中継可能であると自サービス公布手段6でマルチキャスト通信によって送信する。このとき、第1制御装置2Aは中継を実行可能な制御装置として、例えば、制御装置2B〜2Dの3台を選択する。そして自他サービス接続手段8同士が接続を開始する。次に、制御装置2B〜2Dの3台は、それぞれ中継を実行可能な制御装置として例えば、制御装置2E〜2G,制御装置2H〜2Jおよび制御装置2Kを選択する。この際、各制御装置2E〜2Kは中経路の末端にあることを自サービス公布手段6でマルチキャスト通信によって送信する。各制御装置2E〜2Kが末端ではなく中継点になったときには、末端であることの公布は中止される。これで図16に模式的に示すような中経路が完成する。   When each control device is configured to perform such an operation, when a total of 11 control devices 2A to 2K are connected to the network 1, these groups of control devices 2A to 2K issue their own service announcements. The means 6 and the other service detection means 7 automatically determine from which control device data is to be received and to which control device the data is to be transmitted without manual operation. The control devices 2B to 2K transmit by their own service promulgation means 6 by multicast communication that they can relay. At this time, the first control device 2A selects, for example, three control devices 2B to 2D as the control devices capable of executing the relay. Then, the self-other service connection means 8 start connection. Next, the three control devices 2B to 2D respectively select, for example, the control devices 2E to 2G, the control devices 2H to 2J, and the control device 2K as the control devices capable of executing the relay. At this time, each of the control devices 2E to 2K transmits the fact that it is at the end of the middle route by the own service promulgation means 6 by multicast communication. When each of the control devices 2E to 2K becomes a relay point instead of a terminal, the promulgation of the terminal is stopped. This completes the middle path as schematically shown in FIG.

第1制御装置2Aの稼動状態をモニタリングしたい制御装置はこれら末端の制御装置に接続することでモニタリングを行なう。このあたりの中継点、末端の選択と接続は「早い者勝ち」としている。   A control device that wants to monitor the operation state of the first control device 2A performs monitoring by connecting to the terminal control devices. The selection and connection of relay points and terminals in this area are "first come, first served".

上述の「早い者勝ち」の意味について詳細に説明する。モニタリング作業を実行したい制御装置が現れたとき、他サービス探知手段7で「中継の末端である」と公布している制御装置を探知し、複数の「末端」が見つかったとき、どれか一つを選択して接続する。ランダムに制御装置を選択するという方法を行っているので、各制御装置の接続関係は、予め決まった順序にならないし、ネットワーク1内に現れる順番が変わればできあがっていく中経路も毎回同じにはならない。   The meaning of the above "first-come, first-served" will be described in detail. When a control device that wants to execute a monitoring operation appears, the other service detection means 7 detects a control device proclaiming "the end of the relay", and when a plurality of "terminals" are found, any one is detected. Select and connect. Since the method of selecting a control device at random is performed, the connection relationship between the control devices does not become a predetermined order, and if the order in which the devices appear in the network 1 changes, the intermediate route that is completed is always the same. No.

「早い者勝ち」という情況が生じるのは、例えば中継路の、より始まりに近い所に位置する「末端」に接続したほうがデータの遅延が少ないことが予想されるので、そのようなデータの遅延が少ない上流の、接続可能な「末端」が早い者勝ちで取られていくからである。   The situation of "first-come-first-served" occurs because, for example, it is expected that connecting to the "end" located closer to the beginning of the relay route will reduce the data delay, so such data delay This is because the "terminal" that can be connected upstream, where there is little, is taken on a first-come, first-served basis.

つまり、各制御装置の自サービス公布手段6を通して自分が「末端」であって接続可能である、と公布するときに、最上流から数えて何番目であるかをデータとして同時に公布するので、この公布データを受信した他の制御装置の自他サービス接続手段8は、複数の公布データの中から最も最上流に近い、すなわち何番目という値が最も少ないサービス手段5に接続するように構成されているので、早くネットワーク1に現れた制御装置が上流に近い「末端」と接続でき、この結果、上述の如く「早い者勝ち」となる状況が生じる。   In other words, when proclaiming that the user is "end" and connectable through the self service promulgation means 6 of each control device, the number of the device counted from the most upstream is promulgated simultaneously as data. The self-other service connection means 8 of the other control device that has received the promulgation data is configured to connect to the service means 5 that is closest to the most upstream among the plurality of promulgation data, that is, has the smallest value. Therefore, the control device that appears on the network 1 earlier can be connected to the “terminal” near the upstream, and as a result, a situation occurs in which “first-come, first-served” occurs as described above.

本実施の形態の制御装置は、以上のように構成し動作することで、第1生産設備3Aの動作状態をモニタリングしたい制御装置が複数台あった場合に、従来ならその台数分データを送出する必要があるが、本実施の形態の制御装置では制御装置2B〜2Dに送るだけですむので3台分の送出負荷しかかからないので、ネットワーク上の通信量を抑制し、かつデータパケットの到達範囲の制御が容易となる。また、モニタリングしたい制御装置がさらに増加した場合には中継できるサービス手段5を具備する制御装置を単に増やすだけで自動的に中経路が広がり、簡単に対応でき、各制御装置の設定作業が、メンテナンス要員あるいはシステムエンジニアらの人手を煩わすことなく、自動的に実行可能となる効果が得られる。   The control device according to the present embodiment is configured and operated as described above, and when there are a plurality of control devices for which the operation state of the first production facility 3A is to be monitored, conventionally, data is transmitted for the number of control devices. Although it is necessary, the control device of the present embodiment only needs to send data to the control devices 2B to 2D, so that only three transmission loads are applied. Therefore, the communication amount on the network is suppressed, and the reach of the data packet is limited. Control becomes easy. Further, when the number of control devices to be monitored further increases, the intermediate route is automatically expanded simply by increasing the number of control devices provided with the service means 5 that can be relayed. The effect that the program can be automatically executed without troublesome personnel or system engineers is obtained.

実施の形態7.
実施の形態7における制御装置では、上述の図2に示すような制御装置の構成において、各サービス手段5における動作内容はソフトウェアで実装される。ソフトウェアであるのでネットワーク1上のデータとして容易に伝送可能となる。このとき、サービス手段5で実行される動作手順を他の制御装置に対し伝送するサービスを、サービス手段5に予め具備させておく。これにより、他のサービス手段5の内容をコピーして同じ動作を行なえる制御装置が得られる。あるいは他の複数の制御装置に対してサービス手段5の中身を配布するよう動作する制御装置が得られる。
Embodiment 7 FIG.
In the control device according to the seventh embodiment, in the configuration of the control device as shown in FIG. 2 described above, the operation content of each service means 5 is implemented by software. Since it is software, it can be easily transmitted as data on the network 1. At this time, the service means 5 is provided with a service for transmitting an operation procedure executed by the service means 5 to another control device in advance. As a result, a control device capable of performing the same operation by copying the contents of the other service means 5 is obtained. Alternatively, a control device that operates to distribute the contents of the service means 5 to a plurality of other control devices is obtained.

この結果、あるサービスを実行するサービス手段5を増やしたいときに簡単にそれを実現する制御装置が得られる効果がある。また、全く新しいサービス手段5の内容であるソフトウェア(プログラム)の配布、バージョンアップしたソフトウェアを配布することで人手作業によるインストール作業に依存しない制御装置が得られる効果がある。   As a result, when it is desired to increase the number of service means 5 for executing a certain service, there is an effect that a control device which can easily realize the service is obtained. Further, by distributing software (program), which is the content of the completely new service means 5, and distributing upgraded software, there is an effect that a control device that does not depend on manual installation work can be obtained.

実施の形態8.
実施の形態8における制御装置では、上述の図2に示すような制御装置の構成において、自他サービス接続手段8をHTTP(Hyper Text Transfer Protocol)クライアント、もしくはSOAP(Simple Object Access Protocol) クライアント、もしくはWebDAV(Web-based Distributed Authoring and Versioning) クライアントにより構成する。いわゆる上位情報系がWebアプリケーションサーバに実装される場合が多く、HTTPプロトコルあるいはWebDAVプロトコルのサーバ側として動作するので、制御装置はこのような上位情報系に対し直接データを送信できる。もしくは上位情報系がWebサービスとして実装され始めており、同様に制御装置はこのような上位情報系に対し直接データを送信でき、各制御装置の設定作業が、メンテナンス要員あるいはシステムエンジニアらの人手を煩わすことなく、自動的に実行可能となる効果が得られる。
Embodiment 8 FIG.
In the control device according to the eighth embodiment, in the configuration of the control device as shown in FIG. 2 described above, the own / other service connection means 8 is connected to an HTTP (Hyper Text Transfer Protocol) client, a SOAP (Simple Object Access Protocol) client, or It is composed of a WebDAV (Web-based Distributed Authoring and Versioning) client. In many cases, a so-called higher-level information system is implemented in a Web application server, and operates as a server of the HTTP protocol or the WebDAV protocol. Therefore, the control device can directly transmit data to such a higher-level information system. Alternatively, a higher-level information system has begun to be implemented as a Web service, and similarly, the control device can directly transmit data to such a higher-level information system, and setting work of each control device requires maintenance personnel or system engineers. Without this, an effect that can be automatically executed is obtained.

実施の形態9.
実施の形態9における制御装置は、図17に示すような複数の制御装置により制御されている生産ラインのモニタリングシステム、つまり画像表示装置を具備する。各制御装置のサービス手段5は自己の制御する生産設備3の稼動状態を表すデータを他の制御装置からの要求に応じて送信することができるよう構成されている。送信可能なデータは自サービス公布手段6によりネットワーク1内にIPマルチキャスト送信されるように構成される。要求と送信は自他サービス接続手段8により実装されている。
Embodiment 9 FIG.
The control device according to Embodiment 9 includes a production line monitoring system controlled by a plurality of control devices as shown in FIG. 17, that is, an image display device. The service means 5 of each control device is configured to be able to transmit data representing the operating state of the production facility 3 controlled by itself in response to a request from another control device. The transmittable data is configured to be transmitted by IP multicast transmission within the network 1 by the own service promulgating means 6. The request and the transmission are implemented by the own / other service connection means 8.

かかる構成では、第4制御装置2Dにはグラフィックディスプレー(画像表示装置)とマウスに代表されるポインティングデバイスにより構成されたグラフィカルユーザーインターフェースを備える(図示せず)。そして、このグラフィカルユーザーインターフェース上には図18に示すような図形情報が描画され、オペレーターが図形情報をマウスの操作により選択指示を行なうことで描画状態を変化させるよう、サービス手段5にプログラミングされている。図18に示したグラフィカルユーザーインターフェースの左側には、他サービス探知手段7により得られた他の制御装置のネットワーク構成情報を元に、生産ラインのネットワーク構成間略図が描画されている。ここに描かれる四角や丸がそれぞれ一つの制御装置を表している。オペレーターはマウスによりこれらのうちの一つを選択している。この選択により、グラフィカルユーザーインターフェースの右上にその制御装置が送信可能な稼動状態を表すデータの種類がツリー上に表示される。ツリー情報は、その制御装置2のサービス手段5に自他サービス接続手段8を用いて接続して要求することで得られる。例えばXML(eXtended Markup Language)と呼ばれるデータ形式はここで述べているようなツリー構造を表現するのに好適である。そしてツリー上に描かれた図形の中で、例えばZ座標をマウスで選択することで図18の右下部分に実際の値が表示される。データはやはり自他サービス接続手段8を介して得たものである。   In such a configuration, the fourth control device 2D includes a graphical user interface configured by a graphic display (image display device) and a pointing device represented by a mouse (not shown). Then, graphic information as shown in FIG. 18 is drawn on the graphical user interface, and the service means 5 is programmed to change the drawing state by instructing the operator to select the graphic information by operating the mouse. I have. On the left side of the graphical user interface shown in FIG. 18, a schematic diagram of the network configuration of the production line is drawn based on the network configuration information of another control device obtained by the other service detection means 7. Each square or circle depicted here represents one control device. The operator has selected one of these with the mouse. By this selection, the type of data representing the operating state that the control device can transmit is displayed on the tree at the upper right of the graphical user interface. The tree information is obtained by connecting and requesting the service means 5 of the control device 2 by using the own / other service connection means 8. For example, a data format called XML (extended Markup Language) is suitable for expressing a tree structure as described herein. Then, by selecting, for example, the Z coordinate in the graphic drawn on the tree with the mouse, the actual value is displayed in the lower right part of FIG. The data is also obtained through the self-other service connection means 8.

さらに、ネットワーク構成図を図19に示すように3次元的に表示することもできる。そしてマウスで制御装置2の一つを選択すると、その制御装置2から送信することのできるデータ名をツリー上に表示する図形が選択している図形から、あたかもにょきにょき生えてきたかのようにアニメーション表示することもできる。かかるモニタリングシステムを具備することにより、各制御装置の設定作業を、メンテナンス要員あるいはシステムエンジニアらの人手をなるべく煩わすことなく、より円滑に実行できる。   Further, the network configuration diagram can be displayed three-dimensionally as shown in FIG. Then, when one of the control devices 2 is selected with the mouse, the data name that can be transmitted from the control device 2 is displayed on the tree as an animated display from the selected shape as if it had grown. You can also. By providing such a monitoring system, the setting work of each control device can be performed more smoothly without the need for maintenance personnel or system engineers.

実施の形態10.
実施の形態9で選んだ制御装置において、選択したデータの実際の値は、選択している実際の制御装置2からネットワーク1を介して取得するものであることは上述したとおりである。その選択されたデータを取得するためのプログラムコードが存在して、データとして取り出し自在である。そのようなプログラムコードに対して、注目している制御装置2のIPアドレスと取り出したいデータ種類がプログラムコードに対するパラメータとして付与される。このプログラムコードは、自他サービス接続手段8にて利用されるが、プロシージャ、クラス、関数など(プログラミング言語により異なる)として実装されている。各プログラムコードに対しては、これらの引数等としてパラメータがそれぞれ付与される。
Embodiment 10 FIG.
As described above, in the control device selected in the ninth embodiment, the actual value of the selected data is obtained from the selected actual control device 2 via the network 1 as described above. There is a program code for acquiring the selected data, which can be taken out as data. For such a program code, the IP address of the control device 2 of interest and the type of data to be extracted are given as parameters for the program code. This program code is used by the own / other service connection means 8, and is implemented as a procedure, class, function, or the like (depending on the programming language). Parameters are assigned to each program code as these arguments and the like.

本実施の形態では、図20のモニタリングシステム(画像表示装置)に示したように、注目する制御装置および欲しいデータを、これまでの動作例と同様の操作でマウスで選択した場合に、各種プログラミング言語による引数を含んだプログラムのソースコードを自動生成し、画面上に表示するか、ファイルに保存するよう構成されている。これによりモニタリングシステムを記述する際にプログラミングの補助に有効な効果がある。モニタリングシステムのプログラマーは表示されたコードを自分のプログラムにカット&ペーストすればよい。かかるモニタリングシステムを具備することにより、各制御装置の設定作業を、メンテナンス要員あるいはシステムエンジニアらの人手をなるべく煩わすことなく、より円滑に実行できる。   In the present embodiment, as shown in the monitoring system (image display device) of FIG. 20, when a control device of interest and desired data are selected by a mouse in the same operation as in the operation example so far, various programming is performed. It is configured to automatically generate the source code of the program including the language arguments and display it on the screen or save it to a file. This has the effect of assisting programming when describing the monitoring system. Monitoring system programmers can cut and paste the displayed code into their program. By providing such a monitoring system, the setting work of each control device can be performed more smoothly without the need for maintenance personnel or system engineers.

実施の形態11.
本実施の形態では、各制御装置は図2に示すがごとく構成される。すなわち生産設備Aを制御するために設けられた第1制御装置2A、生産設備Bを制御するために設けられた第2制御装置2B、その他の制御装置、第3制御装置2C、第4制御装置2Dがネットワーク1を介してデータを交換するようにしてある。各制御装置2は、それぞれ自サービス公布手段6、他サービス探知手段7、自他サービス接続手段8、ネットワーク接続手段9を備えている。それぞれの制御装置の自サービス公布手段6は図3に示すように、IPマルチキャスト通信の方法に従ってパケットを送信することを一定時間毎に繰り返し行なう(ST301およびST302)。ここでは、IPアドレスは234.5.6.7とし、ポート番号5670、送信間隔は15秒毎としているが、これらの値はシステム全体であらかじめ定めておけば別の値でも差し支えない。送信間隔は実施の形態1において述べたように可変にしても良い。これと同時に各制御装置2の他サービス探知手段は図4に示した動作を行ない、上述のマルチキャストパケットを受信し(ST401)、それを送信した制御装置のIPアドレスおよび送信されてきた内容をディレクトリ領域に記憶する(ST402)。これらの受信動作は繰り返し行なわれる。
Embodiment 11 FIG.
In the present embodiment, each control device is configured as shown in FIG. That is, a first control device 2A provided for controlling the production equipment A, a second control device 2B provided for controlling the production equipment B, other control devices, a third control device 2C, a fourth control device The 2D exchanges data via the network 1. Each control device 2 includes its own service promulgation means 6, other service detection means 7, own and other service connection means 8, and network connection means 9. As shown in FIG. 3, the own service promulgating means 6 of each control device repeatedly transmits packets according to the IP multicast communication method at regular time intervals (ST301 and ST302). Here, the IP address is set to 234.5.6.7, the port number is set to 5670, and the transmission interval is set to every 15 seconds. However, these values may be different as long as they are predetermined in the entire system. The transmission interval may be variable as described in the first embodiment. At the same time, the other service detecting means of each control device 2 performs the operation shown in FIG. 4, receives the above-mentioned multicast packet (ST401), and stores the IP address of the control device that transmitted the packet and the transmitted content in the directory. It is stored in the area (ST402). These receiving operations are repeatedly performed.

ここで送信されてくる内容について説明する。本実施の形態は、ファイルの格納領域をお互いに供出しあうことを実現するためのものであるので、この目的のための情報を送信内容に含めることにしている。   The contents transmitted here will be described. In the present embodiment, since the storage areas of the files are provided to each other, information for this purpose is included in the transmission contents.

送信内容の第1の例としてはある制御装置2が、他の制御装置2に対して供出可能なファイル格納領域の大きさを送信内容に含めることであり、格納可能なバイト数を用いることにしている。後述するが、この格納可能なバイト数がわかると、ある制御装置が今から他の制御装置に格納したいファイルのサイズと、他の制御装置がそれぞれ公布している内容、すなわち格納可能なサイズとを比較し、自分のファイルをどの制御装置に送れば格納可能かを判断できるようになる。あるいは、各制御装置が公布しているシステム全体としてまんべんなく均等にファイルの分散を行なうことができるか、などの計画をすることができるようになる。   A first example of the transmission content is that one control device 2 includes the size of a file storage area that can be provided to another control device 2 in the transmission content, and the number of bytes that can be stored is used. ing. As will be described later, when the number of storable bytes is known, the size of a file that a certain control device now wants to store in another control device, and the contents promulgated by the other control devices, that is, the storable size, Can be determined to determine to which control device the user's file can be sent and stored. Alternatively, it is possible to make a plan as to whether or not files can be distributed evenly and uniformly in the entire system promulgated by each control device.

内容の第2の例としては、送信している制御装置の地理的な位置をその内容に含めることである。これにより各制御装置は、他の制御装置の公布する地理的位置と自分の地理的位置からそれぞれの間の地理的な距離を計算し、自分の近くにある制御装置、遠くにある制御装置を把握することが可能となる。この演算の後、例えば他の制御装置群の中から最も近い位置にある制御装置と最も遠くに位置する制御装置を選んで、送りたいファイルを送信するように動作する。これはデータのバックアップを作るという観点から理にかなっている。つまり、バックアップを取り出して使いたい場面が訪れたときに通信路が不達となるリスクの少ない近所のバックアップデータを利用するという考え方、および天災、火事の被害などを同時に受けるリスクの少ない地理的に離れた場所存在するバックアップデータを利用するという考え方の2つを実現しているのである。   A second example of content is to include the geographical location of the transmitting control device in its content. This allows each control device to calculate the geographic distance between each of the other control devices from the promulgated geographical position and its own geographical position, and to determine which control device is closer to itself and which is farther away. It becomes possible to grasp. After this calculation, for example, a control device located closest and a control device located farthest from other control device groups are selected, and an operation is performed to transmit a file to be sent. This makes sense from a data backup perspective. In other words, the idea of using backup data from a nearby location that is less likely to cause a communication path failure when a backup comes out and the scene you want to use, and a geographical location that is less likely to be simultaneously affected by natural disasters and fires This realizes two concepts of using backup data existing in a remote place.

図21および図22は本実施の形態の一連の動作を表す説明図(フローチャート)である。図に示すとおり一連の動作は複数のスレッド(もしくはプロセスあるいはタスク)から構成されている。まず、常駐させるスレッドが起動される(ST2101)。以下、起動されるスレッドをそれぞれ説明する。ここで起動されるスレッドはST2102、ST2107、ST2111、ST2133の4つである。
(1)スレッドST2102
ST2101により、ST2102スレッドが起動される。ST2102スレッドは、他の制御装置が公布する内容を受信するスレッドの開始点である。ST2103にてIPマルチキャストパケットの受信待ちをする。IPアドレスは234.5.6.7というIPv4のマルチキャストIPアドレスで、ポート番号は5670である。マルチキャストパケットが他の制御装置から送信されてくると(ST2104)、ST2105にて受信内容を取り出し、ST2106の記憶領域Aに受信内容を格納する。受信内容とは前述したように例えば他の制御装置それぞれが格納可能なファイル容量であったり、地理的な位置であったりする。
(2)スレッドST2107
さらにST2101により起動されるスレッドST2107について説明する。ST2108においてIPマルチキャストパケットを送信する。このIPマルチキャストパケットは他の制御装置のST2103において受信されるのである(ST2109)。送信後はST2110において15秒間の時間待ちをした後、再びST2108に戻る。
(3)スレッドST2111
ST2101により、さらにST2111が起動される。ST2111はFTPサーバのスレッドである。ST2112にてFTPサーバであり、他の制御装置の備えるFTPクライアント(ST2117およびST2131:後述)からの接続に備える。接続があった場合には、その要求にしたがってファイルを受け取ってファイル領域ST2113に格納したり、ファイル領域ST2113に格納されているファイルのファイル名の一覧を送り返したり、要求されたファイルそのものを送り返したりといった動作を行なうのであるが、FTP動作の詳細については例えばIETF(Internet Engineering TaskForce)のRFC959、RFC1579等の文献に示された内容の手順にしたがって動作を実行するものである。
FIGS. 21 and 22 are explanatory diagrams (flowcharts) showing a series of operations of the present embodiment. As shown in the figure, a series of operations includes a plurality of threads (or processes or tasks). First, a resident thread is activated (ST2101). Hereinafter, each of the activated threads will be described. The threads activated here are ST2102, ST2107, ST2111, and ST2133.
(1) Thread ST2102
The ST2102 thread is activated by ST2101. The ST2102 thread is a starting point of a thread that receives contents promulgated by another control device. The mobile terminal, in ST2103, waits for reception of an IP multicast packet. The IP address is an IPv4 multicast IP address of 234.5.6.7, and the port number is 5670. When the multicast packet is transmitted from another control device (ST2104), the received content is extracted in ST2105, and the received content is stored in storage area A in ST2106. As described above, the received content is, for example, a file capacity that can be stored in each of the other control devices or a geographical location.
(2) Thread ST2107
Further, the thread ST2107 started by ST2101 will be described. In Step ST2108, an IP multicast packet is transmitted. This IP multicast packet is received in ST2103 of another control device (ST2109). After the transmission, after waiting for 15 seconds in ST2110, the process returns to ST2108 again.
(3) Thread ST2111
ST2111 is further activated by ST2101. ST2111 is a thread of the FTP server. It is an FTP server in ST2112 and prepares for connection from an FTP client (ST2117 and ST2131: described later) provided in another control device. If there is a connection, the file is received according to the request and stored in the file area ST2113, a list of file names of the files stored in the file area ST2113 is returned, or the requested file itself is returned. Such an operation is performed. For details of the FTP operation, the operation is performed according to a procedure described in a document such as RFC 959 and RFC 1579 of the IETF (Internet Engineering Task Force).

さらに、スレッドST2133が起動されるのであるが、他のスレッドST2120の説明後のほうがST2133の動きを理解しやすいので、詳細については後述する。   Furthermore, although the thread ST2133 is activated, the movement of the ST2133 is easier to understand after the description of the other thread ST2120, and thus the details will be described later.

以上の手順、ST2102、ST2107、ST2111、ST2133の起動により、全体の動作としてはとりあえず安定した状態に入る。この次の段階としては、ある制御装置が自分のデータファイルを他の制御装置に送ろうとする時、および他の制御装置がST2113に格納しているファイルを取り出して自分のST2113に格納しようとするときにスレッドが起動される段階である。以下、これら2つのスレッドついて説明する。
(4)スレッドST2114
まず、ある制御装置が自分のデータファイルを他の制御装置に送ろうとする時に起動されるスレッドST2114について説明する。起動直後のST2115にて、記憶領域A(ST2106)から各制御装置の公布内容を取り出す。次に、ST2116にて制御装置のIPアドレスを一つ、もしくは複数選択する。続いて、ST2117にてFTPクライアントを用いて、送信したいデータファイルを選択した制御装置に送信する。ST2118にて複数選択した場合にはST2117を繰り返す判定を行ない、全て繰り返した場合にはST2119にて本スレッドは終了する。
(5)スレッドST2120
続いて、他の制御装置がST2113に格納しているファイルを取り出して自分のST2113に格納しようとするときに起動されるスレッドST2120について説明する。まず、ST2121にてユニキャストパケットを受信待ちするための準備が行なわれる。ソフトウェア的にはTCP/IPのソケットを用意し(socket()システムコール)、パケット待ちポート番号を割り当てて(bind()システムコール)、実際にパケット到着を待ち始める(listen()システムコール)、などといった処理が行なわれる。この準備が済んだときにST2122スレッドが起動され、ST2123でIPマルチキャストパケットが他の制御装置に向けて送信される(ST2124)。送信後は、このスレッドは終了する(ST2125)。
With the above procedure and the activation of ST2102, ST2107, ST2111, and ST2133, the whole operation enters a stable state for the time being. As the next stage, when a certain control device tries to send its data file to another control device, another control device tries to take out the file stored in ST2113 and store it in its own ST2113. Sometimes it is the stage where the thread is started. Hereinafter, these two threads will be described.
(4) Thread ST2114
First, a description will be given of the thread ST2114 started when a certain control device attempts to send its data file to another control device. In ST2115 immediately after startup, the promulgated contents of each control device are extracted from storage area A (ST2106). Next, one or more IP addresses of the control device are selected in ST2116. Subsequently, in ST2117, the data file to be transmitted is transmitted to the selected control device using the FTP client. If a plurality is selected in ST2118, it is determined that ST2117 is repeated, and if all are selected, the thread ends in ST2119.
(5) Thread ST2120
Next, a description will be given of a thread ST2120 that is started when another control device retrieves a file stored in ST2113 and attempts to store the file in its own ST2113. First, in ST2121, preparations are made for waiting for reception of a unicast packet. In terms of software, a TCP / IP socket is prepared (socket () system call), a packet waiting port number is assigned (bind () system call), and actual waiting for packet arrival is started (listen () system call). Processing such as is performed. When this preparation is completed, the ST2122 thread is activated, and an IP multicast packet is transmitted to another control device in ST2123 (ST2124). After the transmission, this thread ends (ST2125).

一方ST2126にて、IPユニキャストパケットの受信待ちに入っているのであるが、他の制御装置からパケットが送信されると(ST2127:ST2127は他の制御装置のST2138と接続される)、ST2128にて送信された内容を記憶領域Bに記憶する(ST2129)。本実施の形態においてはST2128にて受信したパケットから、それを送信した制御装置のIPアドレスを抽出して記憶するようにしているが、その他の実施例としては保持しているファイル名のファイルサイズ、各種日付(最初のファイル作成日時、ファイルの最終更新日時、写真撮影日時などファイルの内容に関する日時など)、ファイルの内容のチェックサム、制御装置の地理的な位置、ファイル作成者情報、ファイルの来歴(どの制御装置からいつ受信したか、どの制御装置にいつ送出したか)をやり取りすることもできる。その後、再びST2126にて受信待ちに入る。   On the other hand, in ST2126, it is waiting to receive an IP unicast packet. When a packet is transmitted from another control device (ST2127: ST2127 is connected to ST2138 of another control device), the process proceeds to ST2128. The transmitted contents are stored in storage area B (ST2129). In the present embodiment, the IP address of the control device that transmitted the packet is extracted and stored from the packet received in ST2128. However, in another embodiment, the file size of the file name stored is , Various dates (the date and time of the first file creation, the date and time of the last update of the file, the date and time related to the file content such as the date and time of the photograph), the checksum of the file contents, the geographical location of the control device, It is also possible to exchange the history (when and from which control device it was received and when and to which control device it was sent). After that, it waits for reception again in ST2126.

さて、ST2126にて、受信開始から10秒間受信待ちを行なうが、その後、いずれかの制御装置が送信してきたか否かにかかわらず、10秒後にはST2130に進む。ST2130では記憶領域B(ST2129)に記憶された制御装置から任意の一つを選択することにしている。このとき上述の他の実施例によれば、任意の一つを選ぶのでなく、何らかの意図を持って選択をすることができる効果がある。例えば最も新しい日付をもつもの、チェックサムが正しいものを多数決で選ぶ、地理的に最も近くにあるもの、最も遠くにあるもの、作成者から見て正しそうなもの、等の意図をもって選択できるようになるのである。もちろん、記憶領域B(ST2129)に何も格納されていない場合は、どの制御装置も指定したファイルを持っていなかったのであるから、本スレッドはそこで終了する(図示せず)。ST2130で一つ制御装置を選んだのち、ST2131に移行する。ST2131はFTPクライアントである。一つ選んだ制御装置のFTPサーバ(ST2112)と通信して目的のファイルを自己のファイル領域(ST2113)にコピーする動作を行なう。以上で本スレッドの動作は完了しST2132で終了する。
(6)ST2133スレッド
最後に、説明を保留してきたスレッドST2133の動作について説明する。このスレッドST2133は初期動作として起動される4スレッド(ST2102、ST2107、ST2111、ST2133)のうちの一つである。スレッドST2114やST2120、ST2122が起動される頃にはすでに動作を開始しているものである。ST2134ではIPマルチキャストパケットの受信動作待ちをしている。ここに、先に説明したスレッドST2122において、他の制御装置に送られるIPマルチキャストパケットST2124が受信される。すなわち、指定されたファイルがあるかどうかを探索する目的のパケットである。パケットが受信されたらファイル領域ST2113に対して、パケットに含まれるファイル名のデータ・ファイルが存在するかどうかをファイルサーチする(ST2136)。例えばマイクロソフト社のWin32 APIではFindFirstFile()というOSへのシステムコールを発行することで実装できる。ファイルが見つからなければST2134に戻る(図示せず)が、ファイルが見つかった場合にはIPユニキャスト通信を行なって、先のST2135のパケットを送信してきた制御装置にその結果を送信する(ST2138)。ST2138が接続される先は他の制御装置のST2127である。その後ST2134に戻る。以上がスレッドST2133の動作である。本スレッドの目的は、他の制御装置上のスレッドST2120に対してファイルが存在するかどうかの問い合わせの返事を行なうことにある。
By the way, in ST2126, reception is waited for 10 seconds from the start of reception. Thereafter, regardless of whether any of the control devices has transmitted, the process proceeds to ST2130 after 10 seconds. In ST2130, any one of the control devices stored in storage area B (ST2129) is selected. At this time, according to the other embodiment described above, there is an effect that a selection can be made with some intention instead of selecting an arbitrary one. For example, the one with the newest date, the one with the correct checksum by majority vote, the geographically closest, the farthest, the one that is likely to be correct from the creator's intention, etc. It becomes. Of course, if nothing is stored in the storage area B (ST2129), since none of the control devices has the specified file, this thread ends there (not shown). After selecting one control device in ST2130, the mobile terminal shifts to ST2131. ST2131 is an FTP client. An operation of communicating with the FTP server (ST2112) of the selected control device and copying the target file to its own file area (ST2113) is performed. Thus, the operation of this thread is completed, and ends in ST2132.
(6) ST2133 Thread Finally, the operation of the thread ST2133 whose description has been suspended will be described. This thread ST2133 is one of four threads (ST2102, ST2107, ST2111, ST2133) started as an initial operation. The operation has already started when the threads ST2114, ST2120, and ST2122 are activated. In ST2134, it waits for an IP multicast packet reception operation. Here, in the thread ST2122 described above, the IP multicast packet ST2124 sent to another control device is received. That is, it is a packet for the purpose of searching whether the specified file exists. When the packet is received, a file search is performed on file area ST2113 to determine whether a data file having the file name included in the packet exists (ST2136). For example, Microsoft's Win32 API can be implemented by issuing a system call to the OS called FindFirstFile (). If the file is not found, the process returns to ST2134 (not shown). If the file is found, IP unicast communication is performed and the result is transmitted to the control device that transmitted the packet in ST2135 (ST2138). . The destination to which ST2138 is connected is ST2127 of another control device. Thereafter, the process returns to ST2134. The above is the operation of the thread ST2133. The purpose of this thread is to reply to the thread ST2120 on another control device whether or not the file exists.

以上ですべての動作を説明したが、すべての制御装置は、図21および図22に示す一連の動作が可能である。すなわち同一構造のソフトウェアを搭載している。同一構造の通信上のクライアントとサーバを対向させることで、システム全体として、目的に沿った動作を行なっているのである。   Although all the operations have been described above, all the control devices can perform a series of operations shown in FIGS. 21 and 22. That is, it has software of the same structure. By opposing a client and a server on the same structure in communication, the operation of the system as a whole is performed according to the purpose.

本実施の形態によれば、各制御装置の動作上必要な初期設定の内容、もしくは動作結果として収集蓄積されたロギングファイルを、お互いのファイル記憶領域を共用して保存保持するシステムが実現するので、パソコンサーバなど新たに特別なファイル記憶領域を設けることなく、データファイルを保存・保持できる効果がある。   According to the present embodiment, a system is realized in which the contents of the initial settings necessary for the operation of each control device or the logging files collected and accumulated as the operation results are saved and shared by sharing the file storage areas with each other. There is an effect that the data file can be saved and held without providing a new special file storage area such as a personal computer server.

実施の形態12.
制御装置は電源が投入されると、いわゆるファームウェアが起動し、ハードウェアチェック(無いこともある)したのち、OSが起動して、TCP/IP通信上のパラメータ(IPアドレス、ネットマスク、ゲートウェイIPアドレス、DNSサーバIPアドレス、時刻サーバIPアドレス、メールサーバIPアドレスなど)がOSの通信プロトコルスタックに対して設定され、その後、計測制御のためのアプリケーションプログラムが各種設定パラメータを読み込みつつ、起動される。このときの通信上のパラメータおよびアプリケーションプログラムのパラメータは不揮発性のメモリかファイルシステムに記憶されているもので、通常は制御装置の据付調整時に作業者が設計に従って決定後、制御装置の設定画面に打ち込んだり、パラメータファイルとして制御装置にコピーするのである。これに対し、本実施の形態においては、制御装置の起動時に、通信上のパラメータ、アプリケーションのパラメータを自動設定することにしている。
Embodiment 12 FIG.
When the control device is turned on, the so-called firmware starts up, and after a hardware check (may not exist), the OS starts up, and parameters (IP address, netmask, gateway IP) on TCP / IP communication are started. Address, DNS server IP address, time server IP address, mail server IP address, etc.) are set for the communication protocol stack of the OS, and then an application program for measurement control is started while reading various setting parameters. . At this time, the communication parameters and application program parameters are stored in a non-volatile memory or a file system. It is typed in or copied to the control device as a parameter file. On the other hand, in the present embodiment, communication parameters and application parameters are automatically set when the control device is started.

まず通信上のパラメータであるが、ネットワーク内にDHCPサーバ(Dynamic Host Configration Protocol Server)が存在するときには、通信プロトコルスタックの初期化時に問い合わせパケットをネットワークに向けて送出、DHCPサーバが返答してきたパケットから通信パラメータを取り出して、自分の通信上のパラメータとして利用する。これはIETFのRFC2131示された手順による。また、DNS解決のため、自己の「ホスト名」と呼ばれるパラメータをダイナミックDNSと呼ばれる手順によりDNSサーバに自己のIPアドレスと組み合わせて登録する(RFC2136)。なおこのDNS登録についてはDHCPサーバがIPアドレスを割り当ててくれたときにDNSサーバにも同時に登録してくれることもある。DHCPサーバが無い場合には例えばIETFのRFC2462に示されたAutoIPの手順により、IPアドレスを自動決定する。   First, parameters for communication. When a DHCP server (Dynamic Host Configuration Protocol Server) is present in the network, an inquiry packet is sent to the network when the communication protocol stack is initialized. The communication parameters are extracted and used as parameters for the own communication. This is in accordance with the procedure set forth in IETF RFC2131. In addition, in order to resolve the DNS, a parameter called its own “host name” is registered in a DNS server in combination with its own IP address by a procedure called dynamic DNS (RFC2136). In addition, about this DNS registration, when a DHCP server assigns an IP address, it may register with a DNS server at the same time. If there is no DHCP server, the IP address is automatically determined by, for example, the AutoIP procedure described in RFC2462 of IETF.

さらにアプリケーションが動作を開始する際にも各種パラメータの事前設定が必要となる。その一つはIPマルチキャストIPアドレス、ポート番号である。これについてどのような値をネットワーク・システム内で利用するかについて、アプリケーション起動前に、各制御装置が合議制で決めてからアプリケーションを起動すればよい。すなわち、OSが起動し、アプリケーション起動の準備が整った段階で、あるサービスに関するマルチキャストIPアドレスはいくつかを問い合わせるブロードキャストあるいはマルチキャストパケットを送信する。これに対して返事があった場合にはその値を利用する。所定時間内にどの制御装置も返事を返してこない場合には自己決定してアプリケーションを起動し、同時に前記問い合わせに対して今決めた値を返答するサーバ動作を開始する。   Further, when the application starts operating, it is necessary to set various parameters in advance. One of them is an IP multicast IP address and a port number. Before starting the application, what value should be used in the network system may be decided by each control device by a joint system and then the application may be started. That is, at the stage when the OS is started and the application is ready to be started, a broadcast or multicast packet for inquiring about some multicast IP addresses related to a certain service is transmitted. If there is a reply, use that value. If no control device returns a response within a predetermined time, the control device self-determines and starts the application, and at the same time, starts a server operation for responding to the inquiry with the value determined just now.

さらに、本実施の形態では、システム上の機能分担も合議制で決定する。例えば、システムの監視データを蓄積するサーバをどの制御装置にするかを決定する際に、いずれかの制御装置から、「合議の実施要求」パケットが送信される。受信した各制御装置は合議に参加するモードに移行し、自己のファイル容量を「公約」としてパケット送信する。各制御装置は「公約」パケットを受信し、最も容量の大きなファイルを有する制御装置を「認許」したパケットを送信し、合議は終了する。以降蓄積サーバとして、各制御装置は認許された制御装置にデータを送信することになる。「合議」の後から起動された制御装置は、蓄積サーバの有無を問い合わせるパケットを送出し、蓄積サーバがこれに答えて、それ以降後から起動された制御装置は蓄積サーバにデータを送信するようになる。あるいは「合議の実施要求」パケットを送信してもよい。   Further, in the present embodiment, the sharing of functions on the system is also determined by a collaborative system. For example, when deciding which control device is to be the server that stores the monitoring data of the system, a "consultation request" packet is transmitted from one of the control devices. Each of the received control devices shifts to a mode of participating in the discussion, and transmits packets with its own file capacity set as a “commitment”. Each controller receives the "commitment" packet and transmits a packet "authorizing" the controller with the largest file, and the consultation ends. Thereafter, as a storage server, each control device transmits data to an authorized control device. The control device started after the "consultation" sends a packet inquiring about the presence or absence of the storage server, and the storage server responds to this, and the control device started later transmits data to the storage server. become. Alternatively, a “consultation execution request” packet may be transmitted.

以上述べてきたように本実施の形態によれば、IPアドレスをはじめ各種通信上のパラメータ、アプリケーションのパラメータをあらかじめ決定しておかなくても自動決定できる制御装置が得られる効果があり、さらに、制御装置を追加する際にも通信パラメータの再設定が必要でなくなる効果がある。   As described above, according to the present embodiment, there is an effect that a control device that can automatically determine parameters of various communication such as an IP address and an application parameter without having to determine them in advance is obtained. There is an effect that it is not necessary to reset communication parameters even when a control device is added.

実施の形態1の生産設備用制御装置の構成図である。1 is a configuration diagram of a production equipment control device according to a first embodiment. 実施の形態1、2、7および8の生産設備用制御装置の構成図である。FIG. 3 is a configuration diagram of a control device for a production facility according to the first, second, seventh, and eighth embodiments. 実施の形態1の生産設備用制御装置の動作を示すフローチャートである。4 is a flowchart illustrating an operation of the production equipment control device according to the first embodiment. 実施の形態1の生産設備用制御装置の動作を示すフローチャートである。4 is a flowchart illustrating an operation of the production equipment control device according to the first embodiment. 実施の形態1の生産設備用制御装置の動作を示すフローチャートである。4 is a flowchart illustrating an operation of the production equipment control device according to the first embodiment. 実施の形態1の生産設備用制御装置の動作を示すフローチャートである。4 is a flowchart illustrating an operation of the production equipment control device according to the first embodiment. 実施の形態1の生産設備用制御装置の動作を示すフローチャートである。4 is a flowchart illustrating an operation of the production equipment control device according to the first embodiment. 実施の形態1の生産設備用制御装置の動作を示すフローチャートである。4 is a flowchart illustrating an operation of the production equipment control device according to the first embodiment. 実施の形態3の生産設備用制御装置の構成図である。It is a block diagram of the control apparatus for production facilities of Embodiment 3. 実施の形態4の生産設備用制御装置の構成図である。It is a block diagram of the control apparatus for production facilities of Embodiment 4. 実施の形態5の生産設備用制御装置の構成図である。It is a block diagram of the control apparatus for production facilities of Embodiment 5. 生産設備(加工機)における加工経路を示す模式図である。It is a schematic diagram which shows the processing path in a production facility (processing machine). 加工経路の総延長距離と繰り返し演算の回数を示す図である。It is a figure which shows the total extension distance of a machining path and the number of times of repeated calculation. 実施の形態5の生産設備用制御装置の動作を示すフローチャートである。15 is a flowchart illustrating the operation of the production equipment control device according to the fifth embodiment. 実施の形態5の生産設備用制御装置の動作を示すフローチャートである。15 is a flowchart illustrating the operation of the production equipment control device according to the fifth embodiment. 実施の形態6の生産設備用制御装置の構成図である。It is a block diagram of the control apparatus for production facilities of Embodiment 6. 実施の形態9の生産設備用制御装置の構成図である。It is a block diagram of the control apparatus for production facilities of Embodiment 9. 実施の形態9の生産設備用制御装置における画像表示装置上の画像の模式図である。FIG. 21 is a schematic diagram of an image on an image display device in a control device for a production facility according to a ninth embodiment. 実施の形態9の生産設備用制御装置における画像表示装置上の画像の模式図である。FIG. 21 is a schematic diagram of an image on an image display device in a control device for a production facility according to a ninth embodiment. 実施の形態10の生産設備用制御装置における画像表示装置上の画像の模式図である。FIG. 22 is a schematic diagram of an image on an image display device in the control device for a production facility according to the tenth embodiment. 実施の形態11の生産設備用制御装置の一連の動作を示すフローチャートである。33 is a flowchart showing a series of operations of the production equipment control device of the eleventh embodiment. 実施の形態11の生産設備用制御装置の一連の動作を示すフローチャートである。33 is a flowchart showing a series of operations of the production equipment control device of the eleventh embodiment.

符号の説明Explanation of reference numerals

1 ネットワーク、 2,2A〜2K 生産設備用制御装置、 3,3A〜3D 生産設備、 4 生産設備制御手段、 5,5A〜5D サービス手段、 6、6A〜6D 自サービス公布手段、 7、7A〜7D 他サービス探知手段、 8、8A〜8D 自他サービス接続手段、 9、9A〜9D、9B1,9B2 ネットワーク接続手段、 10 広域ネットワーク。
DESCRIPTION OF SYMBOLS 1 Network, 2, 2A-2K Production equipment control equipment, 3, 3A-3D production equipment, 4 Production equipment control means, 5, 5A-5D service means, 6, 6A-6D Self-service promulgation means, 7, 7A- 7D other service detecting means, 8, 8A to 8D own / other service connecting means, 9, 9A to 9D, 9B1, 9B2 network connecting means, 10 wide area network.

Claims (17)

ネットワークを介して生産設備を制御すべく設けられた生産設備用制御装置であって、
前記ネットワークに接続すべく設けられたネットワーク接続手段と、
他の生産設備用制御装置から前記ネットワークを介して送信され前記ネットワーク接続手段を経由して取得されたデータおよび/または直結された前記生産設備から取得されたデータに基づき所定の処理プログラムを実行するサービス手段と、
前記ネットワーク接続手段を経由して前記ネットワークを介して少なくとも自己のIPアドレスおよびポート番号、自己の固有識別番号、自己の固有識別名のいずれか一つ以上を前記他の生産設備用制御装置に対して一定周期もしくは可変周期で送信する自サービス公布手段と、
前記ネットワーク接続手段を経由して前記ネットワークを介して前記他の生産設備用制御装置に対してデータの入出力を行う自他サービス接続手段と、
前記ネットワーク接続手段を経由して前記ネットワークを介して前記他の生産設備用制御装置に対してデータを検索する他サービス探知手段と、を備え、
前記ネットワークを介した前記他の生産設備用制御装置における前記自サービス公布手段と前記他サービス探知手段との間の通信方法としてマルチキャスト通信を、かつ前記自他サービス接続手段間の通信方法としてユニキャスト通信を適用することを特徴とする生産設備用制御装置。
A production equipment control device provided to control the production equipment via a network,
Network connection means provided to connect to the network;
A predetermined processing program is executed based on data transmitted from the control device for another production facility via the network and acquired via the network connection means and / or data acquired from the directly connected production facility. Service means;
At least one of its own IP address and port number, its own unique identification number, and its own unique identifier through the network via the network connection means to the other production equipment control device. Self-service promulgation means to transmit at a fixed or variable period
Self-other service connection means for inputting and outputting data to the other production equipment control device via the network via the network connection means,
Other service detection means for searching for data for the other production equipment control device via the network via the network connection means,
Multicast communication is used as a communication method between the own service promulgating means and the other service detecting means in the other production facility control device via the network, and unicast is used as a communication method between the own and other service connecting means. A control device for production equipment, characterized by applying communication.
前記生産設備に対してデータを入出力すべく設けられ、前記データの入出力を実行するプログラムおよび/またはハードウェアを具備した生産設備制御手段を備えたことを特徴とする請求項1記載の生産設備用制御装置。 2. The production system according to claim 1, further comprising a production facility control means provided to input and output data to and from the production facility, and comprising a program and / or hardware for executing the input and output of the data. Equipment control equipment. 前記生産設備制御手段が、少なくとも前記IPアドレス、前記固有識別番号、前記固有識別名、前記ポート番号のいずれかのデータを保持する記憶領域を有し、前記データは前記一定周期毎もしくは可変周期毎に送信されたデータによって更新され、一定経過時間以上前記データが送信されない場合は前記記憶領域の前記データが削除されることを特徴とする請求項1または2記載の生産設備用制御装置。 The production equipment control means has a storage area for holding at least any one of the IP address, the unique identification number, the unique identification name, and the port number, and the data is stored at every fixed cycle or at every variable cycle. 3. The control device for a production facility according to claim 1, wherein the data is updated by the data transmitted to the storage device, and the data in the storage area is deleted when the data is not transmitted for a predetermined elapsed time or more. 4. 前記サービス手段内のプログラムおよび/またはハードウェア毎に固有の前記IPアドレスと前記ポート番号が付与されていることを特徴とする請求項1または2記載の生産設備用制御装置。 3. The production equipment control device according to claim 1, wherein the unique IP address and the port number are assigned to each program and / or hardware in the service means. 前記ネットワークが、相互に直接接続されていない複数のネットワークで構成されている場合に、前記複数のネットワークを相互に結合させる複数のネットワーク接続手段を具備し、双方のネットワーク間で行なわれるべきデータ通信の中継および中継拒否をすることを特徴とする請求項1または2記載の生産設備用制御装置。 When the network is composed of a plurality of networks that are not directly connected to each other, the network includes a plurality of network connection means for coupling the plurality of networks to each other, and data communication to be performed between both networks 3. The control device for a production facility according to claim 1, wherein the relay of the relay is performed. 前記生産設備が加工機であり、前記サービス手段が最適な加工パラメータあるいは加工経路あるいは加工手順を算出するプログラムを有し、前記ネットワークを介して前記複数の生産設備用制御装置間で前記プログラムを並列に処理する機能を具備することを特徴とする請求項1または2記載の生産設備用制御装置。 The production equipment is a processing machine, the service means has a program for calculating an optimal processing parameter or a processing path or a processing procedure, and the program is executed in parallel between the plurality of production equipment control devices via the network. The control device for a production facility according to claim 1 or 2, wherein the control device has a function of performing processing. 複数の生産設備用制御装置が、前記ネットワーク接続手段を介して前記ネットワークに接続されている場合に、前記自サービス公布手段によって自己の前記IPアドレス、固有識別番号、固有識別名、前記ポート番号のいずれか1つ以上および生産設備用制御装置間の接続順序を表すデータを他の生産設備用制御装置にマルチキャスト送信あるいはユニキャスト送信することによって、生産設備用制御装置間の接続形態を順次決定する機能を具備することを特徴とする請求項1または2記載の生産設備用制御装置。 When a plurality of production equipment control devices are connected to the network via the network connection means, the own service promulgation means uses the own IP address, unique identification number, unique identification name, and port number. Any one or more of the data representing the connection order between the production equipment control devices is transmitted to other production equipment control devices by multicast transmission or unicast transmission, thereby sequentially determining the connection form between the production equipment control devices. 3. The production equipment control device according to claim 1, further comprising a function. 複数の生産設備用制御装置における前記各サービス手段内で自己のサービス手段が有していないプログラムがある場合に、必要に応じて前記プログラムを有する他の生産設備用制御装置から前記ネットワークを介して送信することによって前記プログラムを前記自己のサービス手段内にコピーする機能を具備することを特徴とする請求項1または2記載の生産設備用制御装置。 In the case where there is a program that its own service means does not have in each of the service means in the plurality of production equipment control devices, if necessary, from another production equipment control device having the program via the network 3. The production equipment control device according to claim 1, further comprising a function of copying the program into the service means by transmitting the program. 前記サービス手段の内容を表示する画像表示装置を備えたことを特徴とする請求項1または2記載の生産設備用制御装置。 3. The production equipment control device according to claim 1, further comprising an image display device for displaying the contents of said service means. 前記画像表示装置が、画像上に表示された複数の生産設備用制御装置のうち1台を選択した場合に、前記選択された生産設備用制御装置に関するデータがさらに表示される機能を具備することを特徴とする請求項9記載の生産設備用制御装置。 When the image display device selects one of the plurality of production equipment control devices displayed on the image, the image display device has a function of further displaying data on the selected production equipment control device. 10. The control device for production equipment according to claim 9, wherein: 前記画像表示装置が、前記各生産設備用制御装置と前記ネットワークによって構成されたネットワーク接続図を画像上に表示し、前記各生産設備用制御装置に関するデータをツリー構造として固定的あるいはアニメーション的に表示し、前記データを取得するためのコンピュータプログラムコードを併せて表示することを特徴とする請求項10記載の生産設備用制御装置。 The image display device displays, on an image, a network connection diagram configured by the production equipment control devices and the network, and displays data relating to the production equipment control devices as a tree structure in a fixed or animated manner. 11. The production equipment control device according to claim 10, wherein a computer program code for acquiring the data is also displayed. 前記自他サービス接続手段が、HTTP(Hyper Text Transfer Protocol)クライアント、もしくはSOAP(Simple Object Access Protocol)クライアント、もしくはWebDAV(Web-based Distributed Authoring and Versioning) クライアント、もしくはFTP(File Transfer Protocol) クライアント、もしくはSMTP(Simple Mail Transfer Protocol)、
もしくはXML(eXtensible Markup Language)プロトコルクライアント、もしくはIMAP(Internet Mail Access)クライアント、もしくはPOP(Post Office Protocol)クライアント、DCOM(登録商標:Distributed Component Object Model)クライアント、CORBA(登録商標:Common Object Request Broker Architecture)クライアント、で構成されていることを特徴とする請求項1または2記載の生産設備用制御装置。
The self-other service connection means is an HTTP (Hyper Text Transfer Protocol) client, a SOAP (Simple Object Access Protocol) client, a WebDAV (Web-based Distributed Authoring and Versioning) client, an FTP (File Transfer Protocol) client, or SMTP (Simple Mail Transfer Protocol),
Alternatively, an XML (extensible Markup Language) protocol client, an IMAP (Internet Mail Access) client, or a POP (Post Office Protocol) client, a DCOM (registered trademark: Registered Component OBJECTRectBridge) 3. The control device for a production facility according to claim 1, wherein the control device comprises a client.
ネットワークを介して生産設備を制御すべく設けられた複数の生産設備用制御装置による生産設備の制御方法であって、
ネットワーク接続手段によって前記ネットワークと前記生産設備用制御装置を接続するステップと、
前記他の生産設備用制御装置から前記ネットワークを介して送信され前記ネットワーク接続手段を経由して前記生産設備用制御装置に取り込まれたデータおよび/または直結された前記生産設備から取得されたデータに基づきサービス手段内の所定の処理プログラムを実行するステップと、
自サービス公布手段によって前記ネットワーク接続手段を経由して前記ネットワークを介して一定周期で、少なくとも自己のIPアドレス、ポート番号、固有識別番号、固有識別名のいずれか1つ以上を前記他の生産設備用制御装置に送信するステップと、
自他サービス接続手段によって前記ネットワーク接続手段を経由して前記ネットワークを介して前記他の生産設備用制御装置に対してデータの入出力を行うステップと、
他サービス探知手段によって前記ネットワーク接続手段を経由して前記ネットワークを介して前記他の生産設備用制御装置に対してデータを検索するステップと、を含んでなり、
前記ネットワークを介した前記複数の生産設備用制御装置における前記自サービス公布手段と前記他サービス探知手段との間の通信方法としてマルチキャスト通信を、かつ前記自他サービス接続手段間の通信方法としてユニキャスト通信を適用することを特徴とする生産設備用制御装置による生産設備の制御方法。
A method for controlling a production facility by a plurality of production facility control devices provided to control the production facility via a network,
Connecting the network and the production equipment control device by network connection means;
Data transmitted from the other production equipment control device via the network and taken into the production equipment control device via the network connection means and / or data obtained from the directly connected production equipment. Executing a predetermined processing program in the service means based on the
At least one of its own IP address, port number, unique identification number, and unique identification name is sent to the other production facility at regular intervals via the network via the network connection means by its own service promulgating means. Transmitting to the control device for
Performing data input / output to / from the other production facility control device via the network via the network connection means by the own / other service connection means;
Searching for data for the other production facility control device via the network via the network connection means by another service detection means,
Multicast communication as a communication method between the own service promulgating means and the other service detecting means in the plurality of production equipment control devices via the network, and unicast as a communication method between the own and other service connecting means. A method for controlling a production facility by a production facility control device, characterized by applying communication.
ネットワークを介して生産設備を制御すべく設けられた複数の生産設備用制御装置による生産設備の制御方法であって、
前記複数の生産設備用制御装置中の特定の1台のサービス手段に実装された第1の最適化プログラムにより前記生産設備である加工機の加工経路を最適化する第1の最適解を演算するステップと、
自他サービス接続手段を経由して前記ネットワークを介して他の生産設備用制御装置のサービス手段に前記第1の最適解をユニキャスト送信するステップと、
前記複数の生産設備用制御装置のサービス手段に実装された第2の最適化プログラムによって前記第1の最適解に基づき各生産設備用制御装置毎に第2の最適解を演算するステップと、
前記各生産設備用制御装置毎に演算された前記第2の最適解を前記特定の1台の生産設備用制御装置にユニキャスト送信するステップと、
前記各生産設備用制御装置毎に演算された前記第2の最適解に基づきそれぞれ前記加工機の加工経路を演算し、最短の加工経路が得られる第2の最適解を選択するステップと、を含んでなる生産設備用制御装置による生産設備の制御方法。
A method for controlling a production facility by a plurality of production facility control devices provided to control the production facility via a network,
A first optimal solution for optimizing a processing path of a processing machine as the production equipment is calculated by a first optimization program mounted on one specific service means in the plurality of production equipment control devices. Steps and
Unicast transmission of the first optimal solution to service means of another production equipment control device via the network via the own / other service connection means;
Calculating a second optimal solution for each production equipment control device based on the first optimal solution by a second optimization program implemented in a service means of the plurality of production equipment control devices;
Unicast transmission of the second optimal solution calculated for each of the production facility control devices to the specific one production facility control device;
Calculating the machining path of the processing machine based on the second optimal solution computed for each of the production equipment control devices, and selecting a second optimal solution that provides the shortest machining path. A method for controlling a production facility by using the production facility control device.
前記各生産設備用制御装置のサービス手段の一部に前記ネットワークを介して共用するファイル記憶領域が設けられていることを特徴とする請求項1または2記載の生産設備用制御装置。 3. The production equipment control device according to claim 1, wherein a file storage area shared via the network is provided in a part of service means of each of the production equipment control devices. ネットワークを介して生産設備を制御すべく設けられた生産設備用制御装置であって、
前記生産設備用制御装置の電源投入後に通信上のパラメータあるいはアプリケーションの動作パラメータについて、自動決定もしくは前記生産設備用制御装置間で合議制で決定するための手段を設けたことを特徴とする生産設備用制御装置。
A production equipment control device provided to control the production equipment via a network,
Means for automatically determining a parameter on communication or an operation parameter of an application after power-on of the control device for the production equipment, or a means for jointly determining between the control devices for the production equipment. Control device.
請求項1または2記載の生産設備制御装置がネットワークを介して複数台接続されたことを特徴とする生産設備制御システム。

A production equipment control system, wherein a plurality of the production equipment control devices according to claim 1 or 2 are connected via a network.

JP2003370105A 2002-11-06 2003-10-30 Production equipment control device, production equipment control system, and production equipment control method using production equipment control device Expired - Fee Related JP4479220B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003370105A JP4479220B2 (en) 2002-11-06 2003-10-30 Production equipment control device, production equipment control system, and production equipment control method using production equipment control device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2002322382 2002-11-06
JP2003370105A JP4479220B2 (en) 2002-11-06 2003-10-30 Production equipment control device, production equipment control system, and production equipment control method using production equipment control device

Publications (2)

Publication Number Publication Date
JP2004171540A true JP2004171540A (en) 2004-06-17
JP4479220B2 JP4479220B2 (en) 2010-06-09

Family

ID=32715981

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003370105A Expired - Fee Related JP4479220B2 (en) 2002-11-06 2003-10-30 Production equipment control device, production equipment control system, and production equipment control method using production equipment control device

Country Status (1)

Country Link
JP (1) JP4479220B2 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7291806B2 (en) * 2005-07-29 2007-11-06 Fanuc Ltd. Robot laser processing system
JP2007311983A (en) * 2006-05-17 2007-11-29 Nippon Telegr & Teleph Corp <Ntt> Consulting support system and method therefor
CN100427296C (en) * 2005-09-23 2008-10-22 清华大学 Polymer photon crystal fiber drawing tower control system and method
CN100452749C (en) * 2005-03-23 2009-01-14 发那科株式会社 Network opening method in manufacturing system
CN102267284A (en) * 2010-06-03 2011-12-07 上海海泰克系统工程有限公司 Control system for rotary screen printing machines
KR101697299B1 (en) * 2015-10-19 2017-01-17 박인철 Method and apparatus for transmitting data to USB(universal serial bus) device based on WLAN(wireless local area network)
US11157333B2 (en) 2018-06-21 2021-10-26 Mitsubishi Electric Corporation Data processing device, data processing system, data processing method, and program

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100452749C (en) * 2005-03-23 2009-01-14 发那科株式会社 Network opening method in manufacturing system
US7291806B2 (en) * 2005-07-29 2007-11-06 Fanuc Ltd. Robot laser processing system
CN100427296C (en) * 2005-09-23 2008-10-22 清华大学 Polymer photon crystal fiber drawing tower control system and method
JP2007311983A (en) * 2006-05-17 2007-11-29 Nippon Telegr & Teleph Corp <Ntt> Consulting support system and method therefor
JP4565658B2 (en) * 2006-05-17 2010-10-20 日本電信電話株式会社 Consulting support system and method
CN102267284A (en) * 2010-06-03 2011-12-07 上海海泰克系统工程有限公司 Control system for rotary screen printing machines
KR101697299B1 (en) * 2015-10-19 2017-01-17 박인철 Method and apparatus for transmitting data to USB(universal serial bus) device based on WLAN(wireless local area network)
US11157333B2 (en) 2018-06-21 2021-10-26 Mitsubishi Electric Corporation Data processing device, data processing system, data processing method, and program

Also Published As

Publication number Publication date
JP4479220B2 (en) 2010-06-09

Similar Documents

Publication Publication Date Title
JP4957225B2 (en) Relay server and relay communication system
EP1959635B1 (en) Relay server and relay communication system
EP1688758B1 (en) Construction equipment discovery on a network
JP4416035B2 (en) Relay server and relay communication system
JP4479647B2 (en) Route generation system, route generation method, route management server, relay device, terminal device, and control program
JP4558139B2 (en) Network management device
JPH09153011A (en) Network management system
US9344399B2 (en) Relay server and relay communication system
JP4479220B2 (en) Production equipment control device, production equipment control system, and production equipment control method using production equipment control device
JP4433877B2 (en) Virtual network control system and method, network terminal device and program
JP2004306200A (en) Robot control system
JP4932272B2 (en) Chat system
US20240028021A1 (en) Network system and control device
WO2012111745A1 (en) Communication system, switching hub, router, and communication method
JP2008301159A (en) Inter-network mediating device
JP5282625B2 (en) RELAY DEVICE AND CLIENT SERVER SYSTEM CONTROL METHOD
JP4215072B2 (en) Communications system
JP4416592B2 (en) Supervisory control system and supervisory control data input / output program
JP6899741B2 (en) Power line communication system, terminal equipment, programs and maintenance method of power line communication system
JP2002369264A (en) Service providing method by distributed system
JP4596153B2 (en) Programmable controller, controller system, and variable solution method
KR20170051408A (en) Methods and systems for facilitating communication in a work tools network environmen
JP4543883B2 (en) LOCAL INFORMATION TRANSMISSION DEVICE, PROGRAM FOR THE SAME, AND LOCAL INFORMATION TRANSMISSION METHOD
JP2004280281A (en) Data moving system and method interlocked with movement of moving person
JP2005086449A (en) Terminal device, repeating device, and terminal control system

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20040712

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20051021

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080820

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080909

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20081105

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090421

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090617

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

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

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

Free format text: PAYMENT UNTIL: 20130326

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130326

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20140326

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees