JP4869211B2 - Production information linkage device - Google Patents
Production information linkage device Download PDFInfo
- Publication number
- JP4869211B2 JP4869211B2 JP2007298868A JP2007298868A JP4869211B2 JP 4869211 B2 JP4869211 B2 JP 4869211B2 JP 2007298868 A JP2007298868 A JP 2007298868A JP 2007298868 A JP2007298868 A JP 2007298868A JP 4869211 B2 JP4869211 B2 JP 4869211B2
- Authority
- JP
- Japan
- Prior art keywords
- device memory
- information
- production
- logical variable
- document
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Programmable Controllers (AREA)
Description
この発明は、生産制御システムと情報システムとの間のメッセージ通信による連携を実現する生産情報連携システムに関するものである。 The present invention relates to a production information cooperation system that realizes cooperation through message communication between a production control system and an information system.
従来から、生産設備を制御するために製造現場に配置されたPLC(Programmable Logic Controller)システムに代表される生産制御システムと、製造現場から離れて配置された情報システムとの間においてメッセージ通信を用いた情報連携を行う生産情報連携システムが用いられている。 Conventionally, message communication has been used between a production control system represented by a PLC (Programmable Logic Controller) system located at a manufacturing site to control a production facility, and an information system located far from the manufacturing site. The production information linkage system that performs the information linkage is used.
一般に、生産制御システムにおいては、生産制御用データは、センサ/アクチュエータを制御プログラムで動作させるために、デバイスメモリのアドレスで指定される。一方、情報システムにおいては、生産制御用データは、生産管理や品質管理等のアプリケーションを実現するために、生産数量や測定値等の論理的な意味を持つ論理変数で指定される。従って、これらの間でメッセージ通信を行う場合には、データ形式や(通信)プロトコルの差異をなくす必要がある。特許文献1〜2においては、生産制御システムと情報システムとの間に変換ゲートウェイ装置を設けることにより、データ形式やプロトコルの差異をなくす手法が開示されている。
In general, in a production control system, production control data is specified by an address of a device memory in order to operate a sensor / actuator with a control program. On the other hand, in an information system, production control data is designated by logical variables having logical meanings such as production quantities and measured values in order to realize applications such as production management and quality management. Therefore, when performing message communication between them, it is necessary to eliminate the difference in data format and (communication) protocol.
しかし、変換ゲートウェイ装置を設けた場合には、変換ゲートウェイ装置に障害が発生した場合に、メッセージ通信に不具合が生じるという問題がある。 However, when the conversion gateway device is provided, there is a problem that a failure occurs in message communication when a failure occurs in the conversion gateway device.
そこで、このような不具合を回避するために、特許文献3〜5においては、生産制御システムと情報システムとが共通の汎用ファイル(HTMLファイルやXMLファイル)を用いることにより、データ形式やプロトコルの差異をなくす手法が開示されている。
Therefore, in order to avoid such a problem, in
特許文献3〜5においては、汎用ファイルにおける各パラメータ(論理変数やデバイスメモリのアドレス等)間の変換処理は必ずしも明確に記載されていない。従って、汎用ファイルにおける各パラメータ間の変換処理を必ずしも適切に行うことができないという問題点があった。
In
本発明は上記の課題に鑑みてなされたものであり、論理変数やデバイスメモリのアドレス等のパラメータ間の変換処理を適切に行うことができる生産情報連携装置を提供することを目的とする。 The present invention has been made in view of the above problems, and an object of the present invention is to provide a production information linkage apparatus that can appropriately perform conversion processing between parameters such as logical variables and device memory addresses.
本発明に係る生産情報連携装置は、生産制御用データをデバイスメモリのアドレスで指定する生産制御システムと生産制御用データを論理変数で指定する情報システムとが連携してなる生産情報連携システムにて前記生産制御システムに含まれる生産情報連携装置であって、生産制御用データに対応する文書要素を含む構造化文書を前記情報システムと送受信する通信処理部と、前記通信処理部により前記情報システムから受信された、生産制御用データに対応する文書要素を含む構造化文書を、構造化文書と文書要素とを対応付ける構造化文書要素対応ルールに基づき、解析し文書要素を抽出する受信文書解析部と、前記通信処理部により前記情報システムへ送信すべき構造化文書を、前記構造化文書要素対応ルールに基づき、生産制御用データに対応する文書要素から生成する送信文書生成部と、文書要素と論理変数とを相互に変換する処理を、文書要素と論理変数とを対応付ける文書要素論理変数対応ルールに基づき行う文書要素論理変数変換処理部と、論理変数と前記デバイスメモリのアドレスとを相互に変換する処理を、論理変数とデバイスメモリのアドレスとを対応付ける論理変数デバイスメモリ対応ルールに基づき行う論理変数デバイスメモリ変換処理部と、デバイスメモリとの生産制御用データの入出力をアドレスを指定して行うデバイスメモリ入出力部とを備える。 The production information linkage apparatus according to the present invention is a production information linkage system in which a production control system that designates production control data by an address of a device memory and an information system that designates production control data by a logical variable are linked. A production information cooperation apparatus included in the production control system, wherein a communication processing unit that transmits and receives a structured document including a document element corresponding to production control data to and from the information system; and the communication processing unit from the information system A received document analysis unit that analyzes the received structured document including the document element corresponding to the production control data based on the structured document element correspondence rule that associates the structured document with the document element, and extracts the document element; The structured processing document to be transmitted to the information system by the communication processing unit based on the structured document element correspondence rule. Document element logic that performs a process of mutually converting a document element and a logical variable based on a document element logical variable correspondence rule that associates a document element with a logical variable, and a transmission document generation unit that is generated from the document element corresponding to the data A variable conversion processing unit, and a logical variable device memory conversion processing unit that performs a process of mutually converting a logical variable and the address of the device memory based on a logical variable device memory correspondence rule that associates the logical variable with the address of the device memory; A device memory input / output unit that performs input / output of production control data to / from the device memory by designating an address.
本発明に係る生産情報連携装置によれば、XMLファイル等の汎用ファイルにおいて、論理変数やデバイスメモリのアドレス等のパラメータ間の変換処理を適切に行うことができる。 The production information linkage apparatus according to the present invention can appropriately perform conversion processing between parameters such as logical variables and device memory addresses in general-purpose files such as XML files.
<実施の形態1>
図1は本発明の実施の形態1による生産情報連携システムの構成を示すブロック図である。図1の生産情報連携システムは、生産制御システムとしてのPLCシステム100と情報システム200とのメッセージ通信により実現されるシステムである。PLCシステム100は、生産情報連携装置110とデバイスメモリ120と制御ロジック処理部130とを構成要素として含む。生産情報連携装置110は、内部バスや制御用ネットワークケーブル等により、デバイスメモリ120を介して制御ロジック処理部130と結合され、データ交換が可能となっている。生産情報連携装置110は情報システム200との間のメッセージの送受信、あるいは情報連携設定インタフェース300との間の設定情報の入出力を行うための通信処理部1を備える。情報システム200は、例えば生産管理や品質管理を行うアプリケーションが動作するパソコン等である。情報連携設定インタフェース300は、前記情報システム200と同一のハードウェア上で動作してもよいし、別のハードウェア上で動作してもよい。
<
FIG. 1 is a block diagram showing a configuration of a production information linkage system according to
生産情報連携装置110は、通信処理部1のほかに、文書解析生成部10、文書要素論理変数変換処理部4、論理変数入出力処理部11、情報連携設定記憶部12および情報連携設定入出力部13を備える。
In addition to the
文書解析生成部10は受信文書解析部2と送信文書生成部3とを備え、論理変数入出力処理部11は論理変数デバイスメモリ変換処理部5とデバイスメモリ入出力部6とを備える。
The document
情報連携設定インタフェース300は、情報連携設定記憶部12に保存されるべき文書解釈生成処理定義7、文書要素論理変数マッピング定義8、および、論理変数デバイスメモリマッピング定義9の各定義をそれぞれ生成する、文書解釈生成処理定義インタフェース301、文書要素論理変数マッピング定義インタフェース302、および、論理変数デバイスメモリマッピング定義インタフェース303を備える。前記各定義は、情報連携設定入出力部13により、PLCシステム100外部の情報連携設定インタフェース300から情報連携設定記憶部12に保存される。
The information cooperation setting
前記メッセージは、例えばW3C(World Wide Web Consortium)が策定しているXML(Extensible Markup Language)を利用し、前記メッセージのデータ記述方法を定めるための文書解釈生成処理定義7には、例えばSAX(Simple API for XML、API:Application Program Interface)、あるいは、W3Cで策定されているDOM(Document Object Model)等を用いて記述されたプログラムを用いる。前記プログラムとしては、例えばC言語プログラム、あるいは、スクリプト言語プログラム等がある。この場合、文書解釈生成処理定義インタフェース301は、例えば前記プログラムを記述するためのテキストエディタにより実現される。
The message uses, for example, Extensible Markup Language (XML) formulated by W3C (World Wide Web Consortium). For example, SAX (Simple) is included in the document interpretation generation processing definition 7 for determining the data description method of the message. A program described using API for XML, API (Application Program Interface), or DOM (Document Object Model) formulated by W3C is used. Examples of the program include a C language program and a script language program. In this case, the document interpretation generation
特に、前記メッセージが標準規約、あるいはデファクトスタンダードに基づいており、対応する前記プログラムが提供されている場合には、そのプログラムを文書解釈生成処理定義7に利用すればよい。 In particular, when the message is based on a standard rule or a de facto standard and the corresponding program is provided, the program may be used for the document interpretation generation process definition 7.
文書要素論理変数マッピング定義8には、例えばW3Cで策定されているXPath(XML Path Language)によって示された文書要素と論理変数との対応関係を記述したテキストファイルを用いる。この場合、文書要素論理変数マッピング定義インタフェース302は、例えば前記テキストファイルを記述するためのテキストエディタにより実現される。
For the document element logical
例えば、前記メッセージが標準規約、あるいはデファクトスタンダードに基づいている等の理由により、前記メッセージの文書要素を、生産情報連携装置110で扱う論理変数の基準としたい場合に対応するために、文書要素論理変数マッピング定義インタフェース302の実現例である前記テキストエディタに、「/Message/Resource/[@id=‘加工機m1’]/Produce[@type=‘target’]=Resource_加工機m1.Produce_target」のように、Path情報から生成した論理変数名を初期値として表示する機能を持たせることも可能である。これにより、情報連携設定インタフェース300の操作者は、必要部分のみを修正すればよく、設定の手間が省ける。
For example, in order to cope with a case where the document element of the message is to be used as a reference of a logical variable handled by the production
論理変数デバイスメモリマッピング定義9には、例えば論理変数とデバイスメモリ120のアドレス(および変数のデータ型)との対応関係を記述したテキストファイルを用いる。この場合、論理変数デバイスメモリマッピング定義インタフェース303は、例えば前記テキストファイルを記述するためのテキストエディタ、あるいは、表形式の入力ダイアログ等により実現される。
For the logical variable device memory mapping definition 9, for example, a text file describing a correspondence relationship between a logical variable and an address (and variable data type) of the
次に動作について説明する。 Next, the operation will be described.
図2は、実施の形態1による生産情報連携装置110が情報システム200からメッセージを受信した場合の動作のフローチャートである。
FIG. 2 is a flowchart of an operation when the production
ステップST501で、情報システム200から通信処理部1により受信した受信メッセージは、ステップST502で、受信文書解析部2にて文書解釈生成処理定義7を参照して要求内容が解析され、入出力指示が抽出される。ステップST503で、文書要素が抽出される。ステップST504で、文書要素論理変数変換処理部4にて抽出された前記文書要素が、文書要素論理変数マッピング定義8の記述に合致するかどうか、すなわち、前記文書要素が処理対象となる論理変数に関するものかどうかが判定され、合致しない場合には次の文書要素を抽出するためにステップST503に戻る。合致する場合には、ステップST505で、文書要素論理変数マッピング定義8を参照して文書要素に対応する論理変数が抽出される。ステップST506で、前記論理変数は、論理変数デバイスメモリ変換処理部5にて論理変数デバイスメモリマッピング定義9を参照してデバイスメモリ120(のアドレス)に変換され、ステップST507で、全ての文書要素を処理したかどうかの判断が行われる。ステップST503〜ST506は、全ての文書要素を処理するまで繰り返され、前記メッセージで要求対象のデバイスメモリ120が抽出される。
In step ST501, the received message received by the
ステップST508で、前記入出力指示がデバイスメモリ120に対する値の読み出しであるか、あるいは、値の書き込みであるかにより分岐する。
In step ST508, the process branches depending on whether the input / output instruction is to read a value from the
値の読み出しの場合には、ステップST510で、デバイスメモリ入出力部6にて前記要求対象のデバイスメモリ120の値を読み出す。ステップST511で、論理変数デバイスメモリ変換処理部5にて前記デバイスメモリ120(のアドレス)とその値との組が、論理変数デバイスメモリマッピング定義9を参照して、論理変数とその値との組に変換され、さらに、ステップST512で、文書要素論理変数変換処理部4にて文書要素論理変数マッピング定義8を参照して、上記の値を含む文書要素に変換される。値の書き込みの場合には、ステップST509で、デバイスメモリ入出力部6にて前記要求対象のデバイスメモリ120の値を書き込む。
In the case of reading a value, in step ST510, the device memory input /
ステップST513で、送信文書生成部3にて文書解釈生成処理定義7を参照して送信文書を生成し、ステップST514で、通信処理部1にて前記送信文書を情報システム200に送信する。
In step ST513, the transmission
図3は、情報システム200が生産設備における製造実績の取得を要求する場合に生産情報連携装置100が受信する前記受信メッセージの例を示す図である。実施の形態1では、前記受信メッセージの記述方法としてXMLを利用している。メッセージ全体を表す<Message>要素は、生産情報連携装置110に対する要求の種別を表す属性methodを持ち、ここでは前記入出力指示として、データの取得要求を表す「Get」が指定されている。<Message>要素は子要素として、生産設備を表す<Resource>要素を持つ。<Resource>要素は、生産設備の識別を示す属性idを持ち、ここでは生産設備の識別として「加工機m1」が指定されている。<Resource>要素は子要素として、2つの<Produce>要素と1つの<Start>要素と1つの<End>要素とを持つ。<Produce>要素は、その生産設備によって製造された品目の数量を表し、その属性typeが「accepted」の場合には良品の数量を、「defective」の場合には不良品の数量をそれぞれ表す。<Start>要素と<End>要素とは、それぞれ、製造開始時刻と製造終了時刻とを表す。
FIG. 3 is a diagram illustrating an example of the received message received by the production
図4は、文書要素論理変数マッピング定義8の記述例を示す図である。前記受信メッセージの文書要素を指定するXPath式に対して、変数名が割り当てられている。ここでは、加工機m1に対する、目標数量、良品数量、不良品数量、製造数量、製造開始時刻、および製造終了時刻を表す論理変数として、論理変数M1.target、論理変数M1.accepted、論理変数M1.defective、論理変数M1.accepted+M1.defective、論理変数M1.start、および論理変数M1.endがそれぞれ割り当てられている。ここでは、これらの論理変数の取得指示が抽出される。製造数量の取得が要求された場合には、論理変数M1.acceptedと論理変数M1.defectiveとの値を取得して加算された値が返される。
FIG. 4 is a diagram showing a description example of the document element logical
前記論理変数の取得指示は、論理変数入出力処理部11に渡され、論理変数デバイスメモリ変換処理部5にて論理変数デバイスメモリマッピング定義9を参照してデバイスメモリ120の入出力指示に変換され、PLCシステム100用のAPIを用いて実現されるデバイスメモリ入出力部6にてデバイスメモリ120との入出力が実行される。
The logical variable acquisition instruction is transferred to the logical variable input /
図5は、論理変数デバイスメモリマッピング定義9の記述例を示す図である。ここでは、テキストファイルとしてCSV(Comma Separated Values)ファイルを用いており、各行の値は、左から順に、論理変数、デバイスメモリ120のアドレス、デバイスメモリ120の変数のデータ型を表している。ここでは、前記論理変数に対して、D1000等で表されるPLCシステム100のワードデバイスのアドレスが割り当てられ、データ型として、2バイト整数(short)、あるいは、文字列長32バイトの文字列(string[32])を指定されているので、これらのワードデバイスの値がデバイスメモリ入出力部6により取得される。
FIG. 5 is a diagram illustrating a description example of the logical variable device memory mapping definition 9. Here, a CSV (Comma Separated Values) file is used as a text file, and the values in each line indicate the logical variable, the address of the
取得されたデバイスの値は論理変数デバイスメモリ変換処理部5にて論理変数の値に変換される。
The acquired device value is converted into a logical variable value by the logical variable device memory
さらに、文書要素論理変数変換処理部4にて、論理変数とその値との組から文書要素が生成され、送信文書生成部3にて、XML形式の送信メッセージが生成される。前記送信メッセージは、前記受信メッセージへの応答として、前記生産情報連携装置100から前記情報システム200に送信される。
Further, the document element logical variable conversion processing unit 4 generates a document element from the combination of the logical variable and its value, and the transmission
図6は、前記生産情報連携装置110から前記情報システム200への前記XML形式の送信メッセージの例を示す図である。メッセージ全体を表す<MessageResponse>要素は、情報システム200に対する応答の種別を表す属性methodを持ち、ここではデータの取得に対する応答を表す「Show」が指定されている。図3の前記受信メッセージの<Message>要素と同様に、<MessageResponse>要素は子要素として、生産設備を表す<Resource>要素を持つ。<Resource>要素が持つ子要素である、2つの<Produce>要素と1つの<Start>要素と1つの<End>要素の、それぞれのvalue属性の値に、取得された値が格納される。
FIG. 6 is a diagram illustrating an example of the XML format transmission message from the production
図7は、情報システム200が生産設備へ製造指示に関するデータの設定を要求する場合に生産情報連携装置110が受信する前記受信メッセージの例を示す図である。加工機m1に対して目標数量を設定する要求を表している。このメッセージは、図2におけるステップST502〜ST507により、デバイスメモリ120への書き込み指示に変換される。デバイスメモリ120への書き込みが終了すれば、図8に示すようなXML形式のメッセージが、情報システム200への応答として送信される。
FIG. 7 is a diagram illustrating an example of the received message received by the production
このように、本実施の形態による生産情報連携装置は、生産制御用データをデバイスメモリ120のアドレスで指定するPLCシステム100(生産制御システム)と生産制御用データを論理変数で指定する情報システム200とが連携してなる生産情報連携システムにおいて前記生産制御システムに含まれる生産情報連携装置110であって、生産制御用データに対応する文書要素を含む構造化文書を前記情報システムと送受信する通信処理部1と、前記通信処理部により前記情報システムから受信された、生産制御用データに対応する文書要素を含む構造化文書を、構造化文書と文書要素とを対応付ける文書解釈生成処理定義7(構造化文書要素対応ルール)に基づき、解析し文書要素を抽出する受信文書解析部2と、前記通信処理部により前記情報システムへ送信すべき構造化文書を、前記構造化文書要素対応ルールに基づき、生産制御用データに対応する文書要素から生成する送信文書生成部3と、文書要素と論理変数とを相互に変換する処理を、文書要素と論理変数とを対応付ける文書要素論理変数マッピング定義8(文書要素論理変数対応ルール)に基づき行う文書要素論理変数変換処理部4と、論理変数と前記デバイスメモリのアドレスとを相互に変換する処理を、論理変数とデバイスメモリのアドレスとを対応付ける論理変数デバイスメモリマッピング定義9(論理変数デバイスメモリ対応ルール)に基づき行う論理変数デバイスメモリ変換処理部5と、デバイスメモリとの生産制御用データの入出力をアドレスを指定して行うデバイスメモリ入出力部6とを備える。
As described above, the production information linkage apparatus according to the present embodiment includes the PLC system 100 (production control system) that specifies production control data by the address of the
従って、ゲートウェイを用いずに、標準通信規約の拡張やユーザ定義のメッセージ通信に対応する生産情報連携システムが構築できるという効果を奏する。 Therefore, it is possible to construct a production information linkage system that supports expansion of standard communication rules and user-defined message communication without using a gateway.
また、XMLファイル等の汎用ファイルにおいて、論理変数やデバイスメモリのアドレス等のパラメータ間の変換処理を適切に行うことができる。 In addition, in a general-purpose file such as an XML file, it is possible to appropriately perform conversion processing between parameters such as logical variables and device memory addresses.
なお、ここでは生産制御システムの例としてPLCシステムを挙げたが、以下の実施の形態を含め、デバイスメモリのような物理メモリを具備する制御システムであれば、PLCシステムの場合と同様の効果を奏する。 In addition, although the PLC system was mentioned here as an example of a production control system, if it is a control system provided with physical memory like a device memory including the following embodiment, the effect similar to the case of a PLC system will be obtained. Play.
<実施の形態2>
図9は本発明の実施の形態2による生産情報連携システムの構成を示すブロック図である。本実施の形態に係る図9では、実施の形態1に係る図1と異なり、文書解釈生成処理定義7、文書要素論理変数マッピング定義8、および、論理変数デバイスメモリマッピング定義9は、情報連携設定記憶部12にではなく、ネットワーク上のストレージ201に保存されており、情報連携設定記憶部12には、文書解釈生成処理定義の参照先14、文書要素論理変数マッピング定義の参照先15、および、論理変数デバイスメモリマッピング定義の参照先16が、例えばURL(Uniform Resource Locator)形式で記述されている。
<
FIG. 9 is a block diagram showing a configuration of a production information linkage system according to
ネットワーク上のストレージ201に保存された、文書解釈生成処理定義7、文書要素論理変数マッピング定義8、および、論理変数デバイスメモリマッピング定義9は、それぞれ、文書解釈生成処理定義の参照先14、文書要素論理変数マッピング定義の参照先15、および、論理変数デバイスメモリマッピング定義の参照先16に記述された、ネットワーク上のストレージ201内の保存場所を示すURLから、通信処理部1を含む外部設定参照手段により生産情報連携装置110にダウンロードされ、利用される。
The document interpretation generation process definition 7, the document element logical
これにより、複数のPLCシステムから、同一のストレージ201(に保存された文書解釈生成処理定義7、文書要素論理変数マッピング定義8、および、論理変数デバイスメモリマッピング定義9)を共有することが可能となる。
Thereby, it is possible to share the same storage 201 (document interpretation generation process definition 7, document element logical
ここでは、PLCシステム100とは異なる機種のPLCシステム100’内の生産情報連携装置110’に設定された、文書解釈生成処理定義の参照先14と文書要素論理変数マッピング定義の参照先15とが示すURLが、PLCシステム100内の生産情報連携装置110と同じ設定である場合について説明する。
Here, the
上述したように、ネットワーク上のストレージ201に保存された、文書解釈生成処理定義7と文書要素論理変数マッピング定義8とは、生産情報連携装置110と生産情報連携装置110’とで共有されている。PLCシステム100’の機種はPLCシステム100の機種と異なっており、従って参照すべきデバイスメモリのアドレスも異なるので、生産情報連携装置110’は、論理変数デバイスマッピング定義の参照先16に代えて、論理変数デバイスマッピング定義9とは別の場所を示すURL(論理変数デバイスマッピング定義の参照先16’)を利用するか、あるいは、生産情報連携装置110’内の情報連携設定記憶部12’に論理変数デバイスマッピング定義9とは異なる論理変数デバイスマッピング定義9’を保存しておく。このように設定することにより、機種に依存するデバイスメモリのアドレスの違いを吸収することが可能となり、例えばPLCシステムに代表される生産制御システムのアラーム・エラーの情報が機種によって異なるデバイスメモリのアドレスで表されている場合であっても、前記情報システムは同じ(名称の)論理変数によりアクセスできるようになる。
As described above, the document interpretation generation processing definition 7 and the document element logical
なお、図9においては、文書解釈生成処理定義7、文書要素論理変数マッピング定義8、および、論理変数デバイスメモリマッピング定義9を1箇所のネットワーク上のストレージ201に保存した例を示したが、これらは異なるハードウェア上に保存されてもよい。
9 shows an example in which the document interpretation generation process definition 7, the document element logical
このように、本実施の形態による生産情報連携装置は、構造化文書要素対応ルール、文書要素論理変数対応ルール、または、論理変数デバイスメモリ対応ルールを、生産情報連携装置の外部のストレージに外部設定として保存し、生産情報連携装置からダウンロードさせることができるため、同じ設定を利用する複数の生産情報連携装置を動作させる場合に、URLの指定を一致させておけば、外部のストレージに保存された設定を更新するだけで複数の生産情報連携装置の設定を同時に更新することができるという効果を奏する。 As described above, the production information linkage apparatus according to the present embodiment externally sets the structured document element correspondence rule, the document element logical variable correspondence rule, or the logical variable device memory correspondence rule in the storage external to the production information cooperation apparatus. And can be downloaded from the production information linkage device. If multiple production information linkage devices that use the same settings are operated, if the URL designations are matched, they are saved in an external storage. There is an effect that the settings of a plurality of production information linkage apparatuses can be updated at the same time simply by updating the settings.
<実施の形態3>
図10は本発明の実施の形態3による生産情報連携装置システムの構成を示すブロック図である。本実施の形態に係る図10は、実施の形態1に係る図1において、文書要素デバイスメモリマッピング処理部17を、生産情報連携装置110に追加するとともに、文書要素論理変数変換処理部4と論理変数デバイスメモリ変換処理部5との組み合わせに代えて、文書要素デバイスメモリ変換処理部18を設けたものである。
<
FIG. 10 is a block diagram showing a configuration of a production information linkage apparatus system according to
文書要素デバイスメモリマッピング処理部17は、文書要素論理変数マッピング定義8と論理変数デバイスメモリマッピング定義9とが情報連携設定記憶部12に保存されると、文書要素論理変数マッピング定義8と論理変数デバイスメモリマッピング定義9とを参照して、文書要素論理変数マッピング定義8と論理変数デバイスメモリマッピング定義9とから文書要素デバイスメモリマッピング定義19を生成し、情報連携設定記憶部12に保存する。
When the document element logical
図11は、図4に例示した文書要素論理変数マッピング定義8と、図5に例示した論理変数デバイスメモリマッピング定義9とにより生成された、文書要素デバイスメモリマッピング定義19の例を示す図である。
11 is a diagram illustrating an example of the document element device memory mapping definition 19 generated by the document element logical
図10において、文書要素デバイスメモリ変換処理部18は、文書要素デバイスメモリマッピング定義19を参照して、文書要素とデバイスメモリのアドレスとを変換する。また、図11においては、文書要素とデバイスメモリのアドレスとが、論理変数を用いることなく直接に対応付けられている。 In FIG. 10, a document element device memory conversion processing unit 18 refers to a document element device memory mapping definition 19 and converts a document element and an address of a device memory. In FIG. 11, document elements and device memory addresses are directly associated with each other without using logical variables.
このように、本実施の形態による生産情報連携装置は、文書要素とデバイスメモリとの間の変換を、論理変数を経由せずに実行可能とする、文書要素デバイスメモリマッピング処理部と、文書要素デバイスメモリ変換処理部とを具備するので、生産情報連携動作が高速化できるという効果を奏する。 As described above, the production information linkage apparatus according to the present embodiment enables conversion between a document element and a device memory without executing a logical variable, a document element device memory mapping processing unit, and a document element Since the device memory conversion processing unit is provided, the production information linkage operation can be speeded up.
<実施の形態4>
図12は本発明の実施の形態4による生産情報連携システムの構成を示すブロック図である。本実施の形態に係る図12は、実施の形態1に係る図1において、イベントを検出するイベント情報記録処理部20と、検出されたイベントを記録するイベント情報記録部21とを、生産情報連携装置110に追加したものである。
<Embodiment 4>
FIG. 12 is a block diagram showing a configuration of a production information linkage system according to Embodiment 4 of the present invention. FIG. 12 according to the present embodiment is the same as that in FIG. 1 according to the first embodiment except that the event information
生産情報連携装置110が、情報システム200から、イベント通知を要求する受信文書を受信した場合には、論理変数デバイスメモリ変換処理部5により、イベント設定23が情報連携設定記憶部12に保存される。このイベント設定23は、デバイスメモリ120のアドレスに格納された値を含む条件式で表現した、前記イベントの発生条件と、情報システム200が通知を要求する、文書要素に対応するデバイスメモリ120のアドレスとで構成される。
When the production
イベント情報記録処理部20は、前記イベント設定23を参照して、前記イベントの発生を判断し、前記イベントが発生した場合には、イベント情報を、イベント情報記憶部21に保存する。このイベント情報は、デバイスメモリ120から取得できる時刻情報121と、前記文書要素に対応するデバイスメモリ120のアドレスから読み取った値とで構成される。
The event information
さらに、イベント情報記録処理部20は、前記イベント情報を論理変数デバイスメモリ変換処理部5に渡し、文書要素論理変数変換処理部4と、送信文書生成部3と、通信処理部1とを経て、情報システム200が要求するメッセージ形式で、前記イベント通知の送信文書を情報システム200に送信する。
Further, the event information
このように、本実施の形態による生産情報連携装置は、情報システムからの要求に応答してイベントを検出するイベント情報記録処理部20(イベント検出部)と、前記イベント検出部で検出されたイベントに関する情報(イベント情報)を記録するイベント情報記録部21とを具備するので、生産制御システムで検出されるイベントを情報システムが要求する形式で通知することが可能となるという効果を奏する。
As described above, the production information linkage apparatus according to the present embodiment includes the event information recording processing unit 20 (event detection unit) that detects an event in response to a request from the information system, and the event detected by the event detection unit. Since the event
<実施の形態5>
図13は本発明の実施の形態5による生産情報連携システムの構成を示すブロック図である。本実施の形態に係る図13は、実施の形態4に係る図12において、イベント情報記録プログラム生成部24を、生産情報連携装置110に追加したものである。このイベント情報記録プログラム生成部24は、イベント情報記録処理部20を、実施の形態4とは異なり、制御ロジック処理部130において、イベント情報記録プログラムとして生成する。
<
FIG. 13 is a block diagram showing a configuration of a production information linkage system according to
生産情報連携装置110が、実施の形態4と同様に、情報システム200から、イベント通知を要求する受信文書を受信した場合には、実施の形態4と異なり、論理変数デバイスメモリ変換処理部5により、イベント設定23がイベント情報記録プログラム生成部24に渡される。このイベント設定23は、実施の形態4と同様に、デバイスメモリ120のアドレスに格納された値を含む条件式で表現した、前記イベントの発生条件と、情報システム200が通知を要求する、文書要素に対応するデバイスメモリ120のアドレスとで構成される。
As in the fourth embodiment, when the production
イベント情報記録プログラム生成部24は、制御ロジック処理部130上で動作する、イベント情報記録処理部20を生成する。イベント情報記録処理部20は、イベントが発生した場合に、イベント情報を、デバイスメモリ120内の領域として確保されたイベント情報記憶部21に保存する。このイベント情報は、実施の形態4と異なり、デバイスメモリ120から取得できる時刻情報121と、前記イベント情報記録プログラムに記述されたデバイスメモリ120のアドレスから読み取った値とで構成される。
The event information recording
図14は、前記イベント情報記録プログラムを、ラダープログラムで模式的に表した図である。ステップST601で、イベント条件式が成立すると、ステップST602で、前記イベント情報がイベント情報記憶部21に保存され、また、ステップST603で、前記イベントが発生したことを示すトリガとして、例えばビットデバイスがONの状態で保持される。ステップST604で、前記トリガのOFFからONへの立ち上がりを検出して、ステップST605で、イベント通知が実行される。
FIG. 14 is a diagram schematically showing the event information recording program by a ladder program. When the event conditional expression is satisfied in step ST601, the event information is stored in the event
ここに挙げたイベント情報記録プログラム生成部24は、例えばPLCシステム100に対して、前記イベント情報記録プログラムとして図14に示したラダープログラムを生成し、制御ロジック処理部130にダウンロードする機能として実現可能である。
The event information recording
このように、本実施の形態による生産情報連携装置は、イベント検出部を制御ロジック処理部130の内部に生成するイベント情報記録プログラム生成部24(イベント検出部生成部)を具備するので、制御ロジックを扱う高速な演算処理装置である制御ロジック処理部130内でのイベント検出が可能となり、漏れなくイベントを検出できるという効果を奏する。
As described above, the production information linkage apparatus according to the present embodiment includes the event information recording program generation unit 24 (event detection unit generation unit) that generates the event detection unit inside the control
<実施の形態6>
図15は本発明の実施の形態6による生産情報連携システムの構成を示すブロック図である。本実施の形態に係る図15は、実施の形態1に係る図1において、論理変数デバイスメモリ変換処理部5に、時系列データにタイムスタンプとシリアル番号とを付してデバイスメモリ120内の時系列データ保存領域26に保存する、と、時系列データ保存領域26から時系列データを抽出する、時系列データ抽出処理部28とを追加したものである。
<
FIG. 15 is a block diagram showing a configuration of a production information linkage system according to
時系列データ保存処理部27は、情報システム200が指定する周期でデバイスメモリ120から取得できる時刻情報121と、前記周期ごとにカウントアップされるシリアル番号と、情報システム200が指定する文書要素に対応するデバイスメモリ120のアドレスから読み取った値とで構成される、時系列データを、デバイスメモリ120内の領域として確保された時系列データ保存領域26に、前記周期ごとに前記時系列データのサイズ分だけアドレスをオフセットして、順次保存する。前記時系列データの開始および終了の条件は、例えば時刻、あるいは前記文書要素が示すデバイスメモリ120の値の条件式等により、情報システム200から指定される。
The time-series data
生産情報連携装置110が、情報システム200から、所定の時間範囲を指定した時系列データの取得を要求する受信文書を受信した場合に、時系列データ抽出処理部28は、時系列データ保存領域26から、前記所定の時間範囲に合致する前記時系列データを抽出する。そして、論理変数デバイスメモリ変換処理部5と、文書要素論理変数変換処理部4と、送信文書生成部3とを経由して、情報システム200への送信文書が生成され、通信処理部1により、情報システム200に送信される。
When the production
このように、本実施の形態による生産情報連携装置においては、論理変数デバイスメモリ変換処理部5は、デバイスメモリ入出力部6によりデバイスメモリ120へ入力される生産制御データへタイムスタンプまたはシリアル情報を含む付加情報を付与する時系列データ保存処理部27(付加情報付与部)と、デバイスメモリ入出力部6によりデバイスメモリ120から出力される生産制御データからタイムスタンプまたはシリアル情報を含む付加情報を抽出する時系列データ抽出処理部28(付加情報抽出部)とを有する。従って、生産制御システムのデバイスメモリに時系列データを保存することができ、生産制御システム上で高速に変化するデータに対しても、過去のデータを取得することができ、また、時系列データの収集が生産制御システム側で実行できるため、情報システムから時系列データを一括して取得することにより、毎回取得する場合と比較して、生産制御システムと情報システムとの通信回数が削減できるという効果を奏する。
As described above, in the production information linkage apparatus according to this embodiment, the logical variable device memory
1 通信処理部、2 受信文書解析部、3 送信文書生成部、4 文書要素論理変数変換処理部、5 論理変数デバイスメモリ変換処理部、6 デバイスメモリ入出力部、7 文書解釈生成処理定義、8 文書要素論理変数マッピング定義、9 論理変数デバイスメモリマッピング定義、10 文書解析生成部、11 論理変数入出力処理部、12 情報連携設定記憶部、13 情報連携設定入出力部、14 文書解釈生成処理定義の参照先、15 文書要素論理変数マッピング定義の参照先、16 論理変数デバイスメモリマッピング定義の参照先、17 文書要素デバイスメモリマッピング処理部、18 文書要素デバイスメモリ変換処理部、19 文書要素デバイスメモリマッピング定義、20 イベント情報記録処理部、21 イベント情報記録部、23 イベント設定、24 イベント情報記録プログラム生成部、26 時系列データ保存領域、27 時系列データ保存処理部、28 時系列データ抽出処理部、100 PLCシステム、110 生産情報連携装置、120 デバイスメモリ、121 時刻情報、130 制御ロジック処理部、200 情報システム、300 情報連携設定インタフェース、301 文書解釈生成処理定義インタフェース、302 文書要素論理変数マッピング定義インタフェース、303 論理変数デバイスメモリマッピング定義インタフェース。 1 communication processing unit, 2 received document analysis unit, 3 transmission document generation unit, 4 document element logical variable conversion processing unit, 5 logical variable device memory conversion processing unit, 6 device memory input / output unit, 7 document interpretation generation process definition, 8 Document element logical variable mapping definition, 9 logical variable device memory mapping definition, 10 document analysis generation unit, 11 logical variable input / output processing unit, 12 information linkage setting storage unit, 13 information linkage setting input / output unit, 14 document interpretation generation processing definition Reference destination, 15 Document element logical variable mapping definition reference destination, 16 Logical variable device memory mapping definition reference destination, 17 Document element device memory mapping processing section, 18 Document element device memory conversion processing section, 19 Document element device memory mapping Definition, 20 event information recording unit, 21 event information recording unit 23 Event setting, 24 Event information recording program generation unit, 26 Time series data storage area, 27 Time series data storage processing unit, 28 Time series data extraction processing unit, 100 PLC system, 110 Production information linkage device, 120 Device memory, 121 Time information, 130 Control logic processing unit, 200 Information system, 300 Information linkage setting interface, 301 Document interpretation generation process definition interface, 302 Document element logical variable mapping definition interface, 303 Logical variable device memory mapping definition interface
Claims (6)
生産制御用データに対応する文書要素を含む構造化文書を前記情報システムと送受信する通信処理部と、
前記通信処理部により前記情報システムから受信された、生産制御用データに対応する文書要素を含む構造化文書を、構造化文書と文書要素とを対応付ける構造化文書要素対応ルールに基づき、解析し文書要素を抽出する受信文書解析部と、
前記通信処理部により前記情報システムへ送信すべき構造化文書を、前記構造化文書要素対応ルールに基づき、生産制御用データに対応する文書要素から生成する送信文書生成部と、
文書要素と論理変数とを相互に変換する処理を、文書要素と論理変数とを対応付ける文書要素論理変数対応ルールに基づき行う文書要素論理変数変換処理部と、
論理変数と前記デバイスメモリのアドレスとを相互に変換する処理を、論理変数とデバイスメモリのアドレスとを対応付ける論理変数デバイスメモリ対応ルールに基づき行う論理変数デバイスメモリ変換処理部と、
デバイスメモリとの生産制御用データの入出力をアドレスを指定して行うデバイスメモリ入出力部と
を備える生産情報連携装置。 Production information linkage included in the production control system in a production information linkage system in which a production control system that designates production control data by an address of a device memory and an information system that designates production control data by a logical variable are linked. A device,
A communication processing unit that transmits and receives a structured document including a document element corresponding to production control data to and from the information system;
A structured document including a document element corresponding to production control data received from the information system by the communication processing unit is analyzed based on a structured document element correspondence rule that associates the structured document with the document element. A received document analysis unit for extracting elements;
A transmission document generation unit that generates a structured document to be transmitted to the information system by the communication processing unit from a document element corresponding to production control data based on the structured document element correspondence rule;
A document element logical variable conversion processing unit that performs processing for converting document elements and logical variables to each other based on a document element logical variable correspondence rule that associates document elements with logical variables;
A logical variable device memory conversion processing unit that performs a process of mutually converting a logical variable and an address of the device memory based on a logical variable device memory correspondence rule that associates the logical variable and the address of the device memory;
A production information linking apparatus comprising a device memory input / output unit that performs input / output of production control data with a device memory by designating an address.
前記構造化文書要素対応ルール、前記文書要素論理変数対応ルール、および前記論理変数デバイスメモリ対応ルールの少なくとも1つ以上を保存する記憶部と、
前記記憶部へ外部からデータを入出力させる入出力部と
を備える生産情報連携装置。 The production information linkage apparatus according to claim 1,
A storage unit that stores at least one of the structured document element correspondence rule, the document element logical variable correspondence rule, and the logical variable device memory correspondence rule;
A production information linkage apparatus comprising: an input / output unit for inputting / outputting data to / from the storage unit from outside.
前記構造化文書要素対応ルール、前記文書要素論理変数対応ルール、および前記論理変数デバイスメモリ対応ルールの少なくとも1つ以上は、外部に外部設定として保存され、
前記外部設定を参照するための外部設定参照手段をさらに備える
生産情報連携装置。 The production information linkage device according to claim 1 or 2,
At least one of the structured document element correspondence rule, the document element logical variable correspondence rule, and the logical variable device memory correspondence rule is stored as an external setting outside,
A production information linkage apparatus further comprising an external setting reference means for referring to the external setting.
前記情報システムからの要求に応答してイベントを検出するイベント検出部と、
前記イベント検出部で検出されたイベントに関する情報を記録するイベント記録部と
をさらに備える生産情報連携装置。 The production information linkage device according to claim 1 or 2,
An event detector that detects an event in response to a request from the information system;
An event recording unit for recording information about the event detected by the event detection unit;
A production information linkage apparatus further comprising:
前記情報システムからの要求に応答してイベントを検出するイベント検出部を、前記生産情報連携装置の外部かつ前記生産制御システムの内部に配置された制御ロジック処理部の内部に生成するイベント検出部生成部
をさらに備え、
前記イベント検出部で検出されたイベントに関する情報は、前記生産情報連携装置の外部かつ前記生産制御システムの内部に配置された前記デバイスメモリへ記憶される
生産情報連携装置。 The production information linkage device according to claim 1 or 2,
Event detection unit generation for generating an event detection unit that detects an event in response to a request from the information system , inside a control logic processing unit arranged outside the production information linkage apparatus and inside the production control system part <br/> further comprising a
The information relating to the event detected by the event detection unit is stored in the device memory arranged outside the production information linkage apparatus and inside the production control system .
前記論理変数デバイスメモリ変換処理部は、
前記デバイスメモリ入出力部によりデバイスメモリへ入力される前記生産制御用データへタイムスタンプまたはシリアル番号を含む付加情報を付与する付加情報付与部と、
前記デバイスメモリ入出力部によりデバイスメモリから出力される前記生産制御用データからタイムスタンプまたはシリアル番号を含む付加情報を抽出する付加情報抽出部と
を有する生産情報連携装置。 The production information linkage device according to claim 1 or 2,
The logical variable device memory conversion processing unit
An additional information adding unit for adding additional information including a time stamp or a serial number to the production control data input to the device memory by the device memory input / output unit;
An additional information extraction unit for extracting additional information including a time stamp or a serial number from the production control data output from the device memory by the device memory input / output unit;
Production information linkage apparatus having
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2007298868A JP4869211B2 (en) | 2007-11-19 | 2007-11-19 | Production information linkage device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2007298868A JP4869211B2 (en) | 2007-11-19 | 2007-11-19 | Production information linkage device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2009123133A JP2009123133A (en) | 2009-06-04 |
| JP4869211B2 true JP4869211B2 (en) | 2012-02-08 |
Family
ID=40815183
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2007298868A Expired - Fee Related JP4869211B2 (en) | 2007-11-19 | 2007-11-19 | Production information linkage device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4869211B2 (en) |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3931571B2 (en) * | 2001-02-21 | 2007-06-20 | 三菱電機株式会社 | Programmable controller and communication system |
| JP4255727B2 (en) * | 2003-03-28 | 2009-04-15 | 株式会社デジタル | HOST COMPUTER, DISTRIBUTION DATA STORAGE PROGRAM, AND RECORDING MEDIUM CONTAINING THE PROGRAM |
| JP4244677B2 (en) * | 2003-03-31 | 2009-03-25 | 三菱電機株式会社 | FA controller |
| JP2004355506A (en) * | 2003-05-30 | 2004-12-16 | Mitsubishi Electric Corp | Communication information converter and production information system using the same |
-
2007
- 2007-11-19 JP JP2007298868A patent/JP4869211B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2009123133A (en) | 2009-06-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6543380B2 (en) | Method and apparatus for displaying process control information, machine accessible media, and method for creating a script extension in a device description file | |
| CN108351636B (en) | Engineering design tool, system and module | |
| GB2484008B (en) | Methods and apparatus to manage process data | |
| CN112287009A (en) | Interface calling and interface data warehousing method, device, equipment and storage medium | |
| CN107729475B (en) | Web page element collection method, device, terminal and computer-readable storage medium | |
| CN111274781A (en) | Table display method and device, storage medium and electronic equipment | |
| JP2004362557A (en) | System and method for processing instrument data | |
| CN113535587B (en) | Target application detection method and device and computer equipment | |
| WO2022063133A1 (en) | Sensitive information detection method and apparatus, and device and computer-readable storage medium | |
| CN113050921A (en) | Webpage conversion method, device, storage medium and computer equipment | |
| JP2010170453A (en) | Static web site construction method, static web site construction service providing method, dynamic/static conversion processor, and dynamic/static conversion processing program | |
| CN111782993A (en) | Page display method, device and server | |
| CN109815243B (en) | Structured storage method and device during document interface modification | |
| JP4869211B2 (en) | Production information linkage device | |
| CN105793842B (en) | Conversion method and device between serialized messages | |
| CN116074412B (en) | Data high-speed reading and writing method, system, equipment and readable storage medium | |
| JP5263635B2 (en) | Search expression generation system | |
| JP7563044B2 (en) | Information processing device | |
| JP5500968B2 (en) | Information processing apparatus, information processing method, and information processing program | |
| CN115344304A (en) | Method and device for acquiring source code and electronic equipment | |
| CN115686904A (en) | Webpage diagnosis method, equipment and system | |
| CN114764461A (en) | Data acquisition method and device, electronic equipment and computer readable storage medium | |
| JP2017063253A (en) | COMMUNICATION INFORMATION CALCULATION DEVICE, COMMUNICATION INFORMATION CALCULATION METHOD, COMMUNICATION INFORMATION CALCULATION PROGRAM, AND COMMUNICATION MANAGEMENT SYSTEM | |
| CN118643007B (en) | Interface document parsing method, device and storage medium | |
| JP2015095092A (en) | Information processing system, information processing device, information processing method, and program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20100108 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110315 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20110316 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110427 |
|
| 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: 20111018 |
|
| 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: 20111115 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20141125 Year of fee payment: 3 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| LAPS | Cancellation because of no payment of annual fees |