Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4869211B2 - Production information linkage device - Google Patents
[go: Go Back, main page]

JP4869211B2 - Production information linkage device - Google Patents

Production information linkage device Download PDF

Info

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
Application number
JP2007298868A
Other languages
Japanese (ja)
Other versions
JP2009123133A (en
Inventor
賢 岩津
義雄 遠藤
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 JP2007298868A priority Critical patent/JP4869211B2/en
Publication of JP2009123133A publication Critical patent/JP2009123133A/en
Application granted granted Critical
Publication of JP4869211B2 publication Critical patent/JP4869211B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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. Patent Documents 1 and 2 disclose a technique for eliminating a difference in data format and protocol by providing a conversion gateway device between a production control system and an information system.

しかし、変換ゲートウェイ装置を設けた場合には、変換ゲートウェイ装置に障害が発生した場合に、メッセージ通信に不具合が生じるという問題がある。   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 Patent Documents 3 to 5, the production control system and the information system use a common general-purpose file (HTML file or XML file), so that there is a difference in data format or protocol. A method for eliminating the problem is disclosed.

特開2004−86355号公報JP 2004-86355 A 特開2001−251298号公報JP 2001-251298 A 特開2002−251208号公報JP 2002-251208 A 特表2003−515208号公報Special table 2003-515208 gazette 特開2005−251120号公報JP-A-2005-251120

特許文献3〜5においては、汎用ファイルにおける各パラメータ(論理変数やデバイスメモリのアドレス等)間の変換処理は必ずしも明確に記載されていない。従って、汎用ファイルにおける各パラメータ間の変換処理を必ずしも適切に行うことができないという問題点があった。   In Patent Documents 3 to 5, the conversion process between parameters (logical variables, device memory addresses, etc.) in the general-purpose file is not always clearly described. Therefore, there has been a problem that conversion processing between parameters in the general-purpose file cannot always be performed appropriately.

本発明は上記の課題に鑑みてなされたものであり、論理変数やデバイスメモリのアドレス等のパラメータ間の変換処理を適切に行うことができる生産情報連携装置を提供することを目的とする。   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と同一のハードウェア上で動作してもよいし、別のハードウェア上で動作してもよい。
<Embodiment 1>
FIG. 1 is a block diagram showing a configuration of a production information linkage system according to Embodiment 1 of the present invention. 1 is a system realized by message communication between the PLC system 100 as a production control system and the information system 200. The PLC system 100 includes a production information linkage apparatus 110, a device memory 120, and a control logic processing unit 130 as components. The production information linkage apparatus 110 is coupled to the control logic processing unit 130 via the device memory 120 via an internal bus, a control network cable, or the like, and can exchange data. The production information linkage apparatus 110 includes a communication processing unit 1 for transmitting / receiving messages to / from the information system 200 or inputting / outputting setting information to / from the information linkage setting interface 300. The information system 200 is, for example, a personal computer or the like on which an application that performs production management or quality management operates. The information cooperation setting interface 300 may operate on the same hardware as the information system 200 or may operate on another hardware.

生産情報連携装置110は、通信処理部1のほかに、文書解析生成部10、文書要素論理変数変換処理部4、論理変数入出力処理部11、情報連携設定記憶部12および情報連携設定入出力部13を備える。   In addition to the communication processing unit 1, the production information linkage device 110 includes a document analysis generation unit 10, a document element logical variable conversion processing unit 4, a logical variable input / output processing unit 11, an information linkage setting storage unit 12, and an information linkage setting input / output. The unit 13 is provided.

文書解析生成部10は受信文書解析部2と送信文書生成部3とを備え、論理変数入出力処理部11は論理変数デバイスメモリ変換処理部5とデバイスメモリ入出力部6とを備える。   The document analysis generation unit 10 includes a received document analysis unit 2 and a transmission document generation unit 3, and the logical variable input / output processing unit 11 includes a logical variable device memory conversion processing unit 5 and a device memory input / output unit 6.

情報連携設定インタフェース300は、情報連携設定記憶部12に保存されるべき文書解釈生成処理定義7、文書要素論理変数マッピング定義8、および、論理変数デバイスメモリマッピング定義9の各定義をそれぞれ生成する、文書解釈生成処理定義インタフェース301、文書要素論理変数マッピング定義インタフェース302、および、論理変数デバイスメモリマッピング定義インタフェース303を備える。前記各定義は、情報連携設定入出力部13により、PLCシステム100外部の情報連携設定インタフェース300から情報連携設定記憶部12に保存される。   The information cooperation setting interface 300 generates each definition of a document interpretation generation process definition 7, a document element logical variable mapping definition 8, and a logical variable device memory mapping definition 9 to be stored in the information cooperation setting storage unit 12. A document interpretation generation process definition interface 301, a document element logical variable mapping definition interface 302, and a logical variable device memory mapping definition interface 303 are provided. Each definition is stored in the information cooperation setting storage unit 12 from the information cooperation setting interface 300 outside the PLC system 100 by the information cooperation setting input / output unit 13.

前記メッセージは、例えば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 process definition interface 301 is realized by, for example, a text editor for describing the program.

特に、前記メッセージが標準規約、あるいはデファクトスタンダードに基づいており、対応する前記プログラムが提供されている場合には、そのプログラムを文書解釈生成処理定義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 variable mapping definition 8, for example, a text file describing a correspondence relationship between a document element and a logical variable indicated by XPath (XML Path Language) formulated by W3C is used. In this case, the document element logical variable mapping definition interface 302 is realized by, for example, a text editor for describing the text file.

例えば、前記メッセージが標準規約、あるいはデファクトスタンダードに基づいている等の理由により、前記メッセージの文書要素を、生産情報連携装置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 information linkage apparatus 110 because the message is based on a standard rule or a de facto standard, In the text editor which is an implementation example of the variable mapping definition interface 302, “/ Message / Resource / [@ id = 'processing machine m1'] / Product [@ type = 'target'] = Resource_processing machine m1.Product_target" As described above, it is possible to provide a function of displaying the logical variable name generated from the Path information as an initial value. As a result, the operator of the information linkage setting interface 300 only needs to correct the necessary part, and the setting work can be saved.

論理変数デバイスメモリマッピング定義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 device memory 120 is used. In this case, the logical variable device memory mapping definition interface 303 is realized by, for example, a text editor for describing the text file or a tabular input dialog.

次に動作について説明する。   Next, the operation will be described.

図2は、実施の形態1による生産情報連携装置110が情報システム200からメッセージを受信した場合の動作のフローチャートである。   FIG. 2 is a flowchart of an operation when the production information cooperation apparatus 110 according to the first embodiment receives a message from the information system 200.

ステップ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 communication processing unit 1 from the information system 200 is analyzed in step ST502 by the received document analysis unit 2 with reference to the document interpretation generation process definition 7, and an input / output instruction is received. Extracted. In step ST503, document elements are extracted. In step ST504, whether or not the document element extracted by the document element logical variable conversion processing unit 4 matches the description of the document element logical variable mapping definition 8, that is, the logical element that is the processing target of the document element. If it does not match, the process returns to step ST503 to extract the next document element. If they match, in step ST505, the document element logical variable mapping definition 8 is referred to extract a logical variable corresponding to the document element. In step ST506, the logical variable is converted into the device memory 120 (address) by referring to the logical variable device memory mapping definition 9 in the logical variable device memory conversion processing unit 5, and in step ST507, all document elements are converted. A determination is made whether it has been processed. Steps ST503 to ST506 are repeated until all the document elements are processed, and the requested device memory 120 is extracted by the message.

ステップST508で、前記入出力指示がデバイスメモリ120に対する値の読み出しであるか、あるいは、値の書き込みであるかにより分岐する。   In step ST508, the process branches depending on whether the input / output instruction is to read a value from the device memory 120 or to write a value.

値の読み出しの場合には、ステップ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 / output unit 6 reads the value of the requested device memory 120. In step ST511, the logical variable device memory conversion processing unit 5 refers to the logical variable device memory mapping definition 9 to determine the combination of the device memory 120 (the address thereof) and its value. Further, in step ST512, the document element logical variable conversion processing unit 4 refers to the document element logical variable mapping definition 8 and converts the document element to the document element including the above value. In the case of writing a value, in step ST509, the device memory input / output unit 6 writes the value of the requested device memory 120.

ステップST513で、送信文書生成部3にて文書解釈生成処理定義7を参照して送信文書を生成し、ステップST514で、通信処理部1にて前記送信文書を情報システム200に送信する。   In step ST513, the transmission document generation unit 3 refers to the document interpretation generation process definition 7 to generate a transmission document. In step ST514, the communication processing unit 1 transmits the transmission document to the information system 200.

図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 information linkage apparatus 100 when the information system 200 requests acquisition of manufacturing results in the production facility. In the first embodiment, XML is used as the description method of the received message. The <Message> element that represents the entire message has an attribute method that indicates the type of request for the production information cooperation apparatus 110, and here, “Get” that represents a data acquisition request is specified as the input / output instruction. The <Message> element has a <Resource> element representing a production facility as a child element. The <Resource> element has an attribute id indicating the identification of the production facility. Here, “processing machine m1” is designated as the identification of the production facility. The <Resource> element has two <Product> elements, one <Start> element, and one <End> element as child elements. The <Product> element represents the quantity of items manufactured by the production facility, and represents the quantity of non-defective products when the attribute type is “accepted” and the quantity of defective products when the attribute type is “defect”. The <Start> element and the <End> element represent a manufacturing start time and a manufacturing end time, respectively.

図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 variable mapping definition 8. A variable name is assigned to the XPath expression that specifies the document element of the received message. Here, logical variables M1... Are represented as logical variables representing the target quantity, non-defective product quantity, defective product quantity, production quantity, production start time, and production end time for the processing machine m1. target, logical variable M1. accepted, logical variable M1. defective, logical variable M1. accepted + M1. defective, logical variable M1. start, and logical variables M1. Each end is assigned. Here, instructions for acquiring these logical variables are extracted. When acquisition of the production quantity is requested, the logical variables M1. accepted and logical variable M1. The value obtained by adding the value of defective is returned.

前記論理変数の取得指示は、論理変数入出力処理部11に渡され、論理変数デバイスメモリ変換処理部5にて論理変数デバイスメモリマッピング定義9を参照してデバイスメモリ120の入出力指示に変換され、PLCシステム100用のAPIを用いて実現されるデバイスメモリ入出力部6にてデバイスメモリ120との入出力が実行される。   The logical variable acquisition instruction is transferred to the logical variable input / output processing unit 11 and converted into an input / output instruction of the device memory 120 by referring to the logical variable device memory mapping definition 9 in the logical variable device memory conversion processing unit 5. The device memory input / output unit 6 implemented using the API for the PLC system 100 executes input / output with the device memory 120.

図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 device memory 120, and the data type of the variable in the device memory 120 in order from the left. Here, the address of the word device of the PLC system 100 represented by D1000 or the like is assigned to the logical variable, and the data type is a 2-byte integer (short) or a character string (character string length 32 bytes). string [32]) is specified, and the values of these word devices are acquired by the device memory input / output unit 6.

取得されたデバイスの値は論理変数デバイスメモリ変換処理部5にて論理変数の値に変換される。   The acquired device value is converted into a logical variable value by the logical variable device memory conversion processing unit 5.

さらに、文書要素論理変数変換処理部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 document generation unit 3 generates an XML format transmission message. The transmission message is transmitted from the production information cooperation apparatus 100 to the information system 200 as a response to the received message.

図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 information cooperation apparatus 110 to the information system 200. The <MessageResponse> element representing the entire message has an attribute method representing the type of response to the information system 200, and here, “Show” representing the response to data acquisition is specified. Similar to the <Message> element of the received message in FIG. 3, the <MessageResponse> element has a <Resource> element representing a production facility as a child element. The acquired value is stored in each value attribute value of two <Product> elements, one <Start> element, and one <End> element, which are child elements of the <Resource> element.

図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 information linkage apparatus 110 when the information system 200 requests the production facility to set data regarding manufacturing instructions. This represents a request for setting a target quantity for the processing machine m1. This message is converted into a write instruction to the device memory 120 in steps ST502 to ST507 in FIG. When the writing to the device memory 120 is completed, an XML format message as shown in FIG. 8 is transmitted as a response to the information system 200.

このように、本実施の形態による生産情報連携装置は、生産制御用データをデバイスメモリ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 device memory 120 and the information system 200 that specifies production control data by logical variables. Communication information processing apparatus 110 included in the production control system in a production information cooperation system formed by linking with the information processing system for transmitting / receiving a structured document including a document element corresponding to production control data to / from the information system A document interpretation generation process definition 7 (structure) that associates a structured document including a document element corresponding to production control data received from the information system by the unit 1 and the communication processing unit with a structured document and a document element The received document analysis unit 2 for analyzing and extracting the document element based on the rule for the correspondence to the converted document element) and the communication processing unit A transmission document generation unit 3 that generates a structured document to be transmitted to the information system from a document element corresponding to production control data based on the structured document element correspondence rule; and a document element and a logical variable. The document element logical variable conversion processing unit 4 for performing the process of converting the document element and the logical variable on the basis of the document element logical variable mapping definition 8 (document element logical variable correspondence rule) that associates the document element with the logical variable, and the logical variable and the address of the device memory A logical variable device memory conversion processing unit 5 that performs processing for mutually converting the logical variables based on a logical variable device memory mapping definition 9 (logical variable device memory correspondence rule) that associates logical variables with device memory addresses; Device memory input / output unit 6 for performing input / output of production control data by designating an address .

従って、ゲートウェイを用いずに、標準通信規約の拡張やユーザ定義のメッセージ通信に対応する生産情報連携システムが構築できるという効果を奏する。   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)形式で記述されている。
<Embodiment 2>
FIG. 9 is a block diagram showing a configuration of a production information linkage system according to Embodiment 2 of the present invention. In FIG. 9 according to the present embodiment, unlike FIG. 1 according to the first embodiment, the document interpretation generation process definition 7, the document element logical variable mapping definition 8, and the logical variable device memory mapping definition 9 are information linkage settings. Stored in the storage 201 on the network, not in the storage unit 12, and in the information cooperation setting storage unit 12, the reference destination 14 of the document interpretation generation process definition, the reference destination 15 of the document element logical variable mapping definition, and The reference destination 16 of the logical variable device memory mapping definition is described in, for example, a URL (Uniform Resource Locator) format.

ネットワーク上のストレージ201に保存された、文書解釈生成処理定義7、文書要素論理変数マッピング定義8、および、論理変数デバイスメモリマッピング定義9は、それぞれ、文書解釈生成処理定義の参照先14、文書要素論理変数マッピング定義の参照先15、および、論理変数デバイスメモリマッピング定義の参照先16に記述された、ネットワーク上のストレージ201内の保存場所を示すURLから、通信処理部1を含む外部設定参照手段により生産情報連携装置110にダウンロードされ、利用される。   The document interpretation generation process definition 7, the document element logical variable mapping definition 8, and the logical variable device memory mapping definition 9 stored in the storage 201 on the network are the document interpretation generation process definition reference 14 and the document element, respectively. External setting reference means including the communication processing unit 1 from the URL indicating the storage location in the storage 201 on the network described in the reference destination 15 of the logical variable mapping definition and the reference destination 16 of the logical variable device memory mapping definition Is downloaded to the production information linkage apparatus 110 and used.

これにより、複数のPLCシステムから、同一のストレージ201(に保存された文書解釈生成処理定義7、文書要素論理変数マッピング定義8、および、論理変数デバイスメモリマッピング定義9)を共有することが可能となる。   Thereby, it is possible to share the same storage 201 (document interpretation generation process definition 7, document element logical variable mapping definition 8, and logical variable device memory mapping definition 9) stored in a plurality of PLC systems. Become.

ここでは、PLCシステム100とは異なる機種のPLCシステム100’内の生産情報連携装置110’に設定された、文書解釈生成処理定義の参照先14と文書要素論理変数マッピング定義の参照先15とが示すURLが、PLCシステム100内の生産情報連携装置110と同じ設定である場合について説明する。   Here, the reference destination 14 of the document interpretation generation process definition and the reference destination 15 of the document element logical variable mapping definition set in the production information linkage apparatus 110 ′ in the PLC system 100 ′ of a model different from the PLC system 100 are shown. A case where the URL shown is the same setting as that of the production information cooperation apparatus 110 in the PLC system 100 will be described.

上述したように、ネットワーク上のストレージ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 variable mapping definition 8 stored in the storage 201 on the network are shared by the production information cooperation device 110 and the production information cooperation device 110 ′. . Since the model of the PLC system 100 ′ is different from the model of the PLC system 100, and therefore the address of the device memory to be referred to is different, the production information linkage apparatus 110 ′ replaces the reference destination 16 of the logical variable device mapping definition, The URL (reference destination 16 ′ of the logical variable device mapping definition) indicating a location different from the logical variable device mapping definition 9 is used, or the logical information is stored in the information linkage setting storage unit 12 ′ in the production information linkage apparatus 110 ′. A logical variable device mapping definition 9 ′ different from the variable device mapping definition 9 is stored. By setting in this way, it becomes possible to absorb the difference in the device memory address depending on the model. For example, the alarm information of the production control system represented by the PLC system has different device memory addresses depending on the model. The information system can be accessed by the same (named) logical variable.

なお、図9においては、文書解釈生成処理定義7、文書要素論理変数マッピング定義8、および、論理変数デバイスメモリマッピング定義9を1箇所のネットワーク上のストレージ201に保存した例を示したが、これらは異なるハードウェア上に保存されてもよい。   9 shows an example in which the document interpretation generation process definition 7, the document element logical variable mapping definition 8, and the logical variable device memory mapping definition 9 are stored in the storage 201 on one network. May be stored on different hardware.

このように、本実施の形態による生産情報連携装置は、構造化文書要素対応ルール、文書要素論理変数対応ルール、または、論理変数デバイスメモリ対応ルールを、生産情報連携装置の外部のストレージに外部設定として保存し、生産情報連携装置からダウンロードさせることができるため、同じ設定を利用する複数の生産情報連携装置を動作させる場合に、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を設けたものである。
<Embodiment 3>
FIG. 10 is a block diagram showing a configuration of a production information linkage apparatus system according to Embodiment 3 of the present invention. FIG. 10 according to the present embodiment adds the document element device memory mapping processing unit 17 to the production information linkage apparatus 110 in FIG. 1 according to the first embodiment, and at the same time as the document element logical variable conversion processing unit 4. Instead of the combination with the variable device memory conversion processing unit 5, a document element device memory conversion processing unit 18 is provided.

文書要素デバイスメモリマッピング処理部17は、文書要素論理変数マッピング定義8と論理変数デバイスメモリマッピング定義9とが情報連携設定記憶部12に保存されると、文書要素論理変数マッピング定義8と論理変数デバイスメモリマッピング定義9とを参照して、文書要素論理変数マッピング定義8と論理変数デバイスメモリマッピング定義9とから文書要素デバイスメモリマッピング定義19を生成し、情報連携設定記憶部12に保存する。   When the document element logical variable mapping definition 8 and the logical variable device memory mapping definition 9 are stored in the information linkage setting storage unit 12, the document element device memory mapping processing unit 17 stores the document element logical variable mapping definition 8 and the logical variable device. Referring to the memory mapping definition 9, a document element device memory mapping definition 19 is generated from the document element logical variable mapping definition 8 and the logical variable device memory mapping definition 9 and stored in the information linkage setting storage unit 12.

図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 variable mapping definition 8 illustrated in FIG. 4 and the logical variable device memory mapping definition 9 illustrated in FIG. .

図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 recording processing unit 20 that detects an event and the event information recording unit 21 that records the detected event are combined with production information. This is added to the device 110.

生産情報連携装置110が、情報システム200から、イベント通知を要求する受信文書を受信した場合には、論理変数デバイスメモリ変換処理部5により、イベント設定23が情報連携設定記憶部12に保存される。このイベント設定23は、デバイスメモリ120のアドレスに格納された値を含む条件式で表現した、前記イベントの発生条件と、情報システム200が通知を要求する、文書要素に対応するデバイスメモリ120のアドレスとで構成される。   When the production information cooperation device 110 receives a received document requesting event notification from the information system 200, the event setting 23 is stored in the information cooperation setting storage unit 12 by the logical variable device memory conversion processing unit 5. . The event setting 23 includes the event occurrence condition expressed by a conditional expression including a value stored in the address of the device memory 120, and the address of the device memory 120 corresponding to the document element to which the information system 200 requests notification. It consists of.

イベント情報記録処理部20は、前記イベント設定23を参照して、前記イベントの発生を判断し、前記イベントが発生した場合には、イベント情報を、イベント情報記憶部21に保存する。このイベント情報は、デバイスメモリ120から取得できる時刻情報121と、前記文書要素に対応するデバイスメモリ120のアドレスから読み取った値とで構成される。   The event information recording processing unit 20 refers to the event setting 23 to determine the occurrence of the event, and stores the event information in the event information storage unit 21 when the event occurs. This event information includes time information 121 that can be acquired from the device memory 120 and a value read from the address of the device memory 120 corresponding to the document element.

さらに、イベント情報記録処理部20は、前記イベント情報を論理変数デバイスメモリ変換処理部5に渡し、文書要素論理変数変換処理部4と、送信文書生成部3と、通信処理部1とを経て、情報システム200が要求するメッセージ形式で、前記イベント通知の送信文書を情報システム200に送信する。   Further, the event information recording processing unit 20 passes the event information to the logical variable device memory conversion processing unit 5, passes through the document element logical variable conversion processing unit 4, the transmission document generation unit 3, and the communication processing unit 1, The event notification transmission document is transmitted to the information system 200 in a message format requested by the information system 200.

このように、本実施の形態による生産情報連携装置は、情報システムからの要求に応答してイベントを検出するイベント情報記録処理部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 information recording unit 21 that records information (event information) related to the event is included, an event detected by the production control system can be notified in a format requested by the information system.

<実施の形態5>
図13は本発明の実施の形態5による生産情報連携システムの構成を示すブロック図である。本実施の形態に係る図13は、実施の形態4に係る図12において、イベント情報記録プログラム生成部24を、生産情報連携装置110に追加したものである。このイベント情報記録プログラム生成部24は、イベント情報記録処理部20を、実施の形態4とは異なり、制御ロジック処理部130において、イベント情報記録プログラムとして生成する。
<Embodiment 5>
FIG. 13 is a block diagram showing a configuration of a production information linkage system according to Embodiment 5 of the present invention. FIG. 13 according to the present embodiment is obtained by adding an event information recording program generation unit 24 to the production information linkage apparatus 110 in FIG. 12 according to the fourth embodiment. The event information recording program generating unit 24 generates the event information recording processing unit 20 as an event information recording program in the control logic processing unit 130 unlike the fourth embodiment.

生産情報連携装置110が、実施の形態4と同様に、情報システム200から、イベント通知を要求する受信文書を受信した場合には、実施の形態4と異なり、論理変数デバイスメモリ変換処理部5により、イベント設定23がイベント情報記録プログラム生成部24に渡される。このイベント設定23は、実施の形態4と同様に、デバイスメモリ120のアドレスに格納された値を含む条件式で表現した、前記イベントの発生条件と、情報システム200が通知を要求する、文書要素に対応するデバイスメモリ120のアドレスとで構成される。   As in the fourth embodiment, when the production information linkage apparatus 110 receives a received document requesting an event notification from the information system 200, unlike the fourth embodiment, the logical variable device memory conversion processing unit 5 The event setting 23 is passed to the event information recording program generation unit 24. As in the fourth embodiment, the event setting 23 is a document element that is generated by a conditional expression including a value stored in the address of the device memory 120 and the event occurrence condition and the information system 200 requests notification. And the address of the device memory 120 corresponding to.

イベント情報記録プログラム生成部24は、制御ロジック処理部130上で動作する、イベント情報記録処理部20を生成する。イベント情報記録処理部20は、イベントが発生した場合に、イベント情報を、デバイスメモリ120内の領域として確保されたイベント情報記憶部21に保存する。このイベント情報は、実施の形態4と異なり、デバイスメモリ120から取得できる時刻情報121と、前記イベント情報記録プログラムに記述されたデバイスメモリ120のアドレスから読み取った値とで構成される。   The event information recording program generation unit 24 generates the event information recording processing unit 20 that operates on the control logic processing unit 130. The event information recording processing unit 20 stores event information in the event information storage unit 21 secured as an area in the device memory 120 when an event occurs. Unlike the fourth embodiment, this event information includes time information 121 that can be acquired from the device memory 120 and a value read from the address of the device memory 120 described in the event information recording program.

図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 information storage unit 21 in step ST602. In step ST603, for example, a bit device is turned on as a trigger indicating that the event has occurred. It is held in the state. In step ST604, the trigger rising from OFF to ON is detected, and in step ST605, event notification is executed.

ここに挙げたイベント情報記録プログラム生成部24は、例えばPLCシステム100に対して、前記イベント情報記録プログラムとして図14に示したラダープログラムを生成し、制御ロジック処理部130にダウンロードする機能として実現可能である。   The event information recording program generation unit 24 listed here can be realized as a function of generating the ladder program shown in FIG. 14 as the event information recording program and downloading it to the control logic processing unit 130 for the PLC system 100, for example. It is.

このように、本実施の形態による生産情報連携装置は、イベント検出部を制御ロジック処理部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 logic processing unit 130. It is possible to detect an event in the control logic processing unit 130 that is a high-speed arithmetic processing device that handles the event, and it is possible to detect an event without omission.

<実施の形態6>
図15は本発明の実施の形態6による生産情報連携システムの構成を示すブロック図である。本実施の形態に係る図15は、実施の形態1に係る図1において、論理変数デバイスメモリ変換処理部5に、時系列データにタイムスタンプとシリアル番号とを付してデバイスメモリ120内の時系列データ保存領域26に保存する、と、時系列データ保存領域26から時系列データを抽出する、時系列データ抽出処理部28とを追加したものである。
<Embodiment 6>
FIG. 15 is a block diagram showing a configuration of a production information linkage system according to Embodiment 6 of the present invention. FIG. 15 according to the present embodiment is the same as that in FIG. 1 according to the first embodiment, except that the logical variable device memory conversion processing unit 5 adds time stamps and serial numbers to the time series data and A time series data extraction processing unit 28 that saves in the series data storage area 26 and extracts time series data from the time series data storage area 26 is added.

時系列データ保存処理部27は、情報システム200が指定する周期でデバイスメモリ120から取得できる時刻情報121と、前記周期ごとにカウントアップされるシリアル番号と、情報システム200が指定する文書要素に対応するデバイスメモリ120のアドレスから読み取った値とで構成される、時系列データを、デバイスメモリ120内の領域として確保された時系列データ保存領域26に、前記周期ごとに前記時系列データのサイズ分だけアドレスをオフセットして、順次保存する。前記時系列データの開始および終了の条件は、例えば時刻、あるいは前記文書要素が示すデバイスメモリ120の値の条件式等により、情報システム200から指定される。   The time-series data storage processing unit 27 corresponds to time information 121 that can be acquired from the device memory 120 at a cycle specified by the information system 200, a serial number that is counted up for each cycle, and a document element that is specified by the information system 200. Time-series data composed of values read from the address of the device memory 120 to be stored in the time-series data storage area 26 reserved as an area in the device memory 120 for the size of the time-series data for each period. Only save the addresses by offsetting them. The conditions for starting and ending the time series data are specified from the information system 200 by, for example, a time or a conditional expression of the value of the device memory 120 indicated by the document element.

生産情報連携装置110が、情報システム200から、所定の時間範囲を指定した時系列データの取得を要求する受信文書を受信した場合に、時系列データ抽出処理部28は、時系列データ保存領域26から、前記所定の時間範囲に合致する前記時系列データを抽出する。そして、論理変数デバイスメモリ変換処理部5と、文書要素論理変数変換処理部4と、送信文書生成部3とを経由して、情報システム200への送信文書が生成され、通信処理部1により、情報システム200に送信される。   When the production information cooperation apparatus 110 receives from the information system 200 a received document that requests acquisition of time-series data specifying a predetermined time range, the time-series data extraction processing unit 28 selects the time-series data storage area 26. To extract the time-series data that matches the predetermined time range. Then, a transmission document to the information system 200 is generated via the logical variable device memory conversion processing unit 5, the document element logical variable conversion processing unit 4, and the transmission document generation unit 3, and the communication processing unit 1 It is transmitted to the information system 200.

このように、本実施の形態による生産情報連携装置においては、論理変数デバイスメモリ変換処理部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 conversion processing unit 5 adds the time stamp or serial information to the production control data input to the device memory 120 by the device memory input / output unit 6. Additional information including time stamp or serial information is extracted from the production control data output from the device memory 120 by the time series data storage processing unit 27 (additional information adding unit) for adding additional information including the device memory input / output unit 6 And a time-series data extraction processing unit 28 (additional information extraction unit). Therefore, time series data can be stored in the device memory of the production control system, and past data can be acquired even for data that changes at high speed on the production control system. Since collection can be performed on the production control system side, the time series data is acquired from the information system in a lump, and the number of communication between the production control system and the information system can be reduced compared to the case where it is acquired every time. Play.

本発明の実施の形態1による生産情報連携装置の構成を示すブロック図である。It is a block diagram which shows the structure of the production information cooperation apparatus by Embodiment 1 of this invention. 本発明の実施の形態1による生産情報連携装置が情報システムからメッセージを受信した場合の動作のフローチャートである。It is a flowchart of operation | movement when the production information cooperation apparatus by Embodiment 1 of this invention receives the message from an information system. 本発明の実施の形態1による生産情報連携装置が情報システムから受信する製造実績の取得要求メッセージの例を示す図である。It is a figure which shows the example of the acquisition request message of the manufacturing performance which the production information cooperation apparatus by Embodiment 1 of this invention receives from an information system. 本発明の実施の形態1による生産情報連携装置に設定される文書要素論理変数マッピング定義の記述例を示す図である。It is a figure which shows the example of a description of the document element logical variable mapping definition set to the production information cooperation apparatus by Embodiment 1 of this invention. 本発明の実施の形態1による生産情報連携装置に設定される論理変数デバイスメモリマッピング定義の記述例を示す図である。It is a figure which shows the example of a description of the logical variable device memory mapping definition set to the production information cooperation apparatus by Embodiment 1 of this invention. 本発明の実施の形態1による生産情報連携装置が情報システムに送信する製造実績の取得に対する応答メッセージの例を示す図である。It is a figure which shows the example of the response message with respect to acquisition of the manufacture performance which the production information cooperation apparatus by Embodiment 1 of this invention transmits to an information system. 本発明の実施の形態1による生産情報連携装置が情報システムから受信する製造指示の要求メッセージの例を示す図である。It is a figure which shows the example of the request message of the manufacture instruction | indication which the production information cooperation apparatus by Embodiment 1 of this invention receives from an information system. 本発明の実施の形態1による生産情報連携装置が情報システムに送信する製造指示の要求に対する応答メッセージの例を示す図である。It is a figure which shows the example of the response message with respect to the request | requirement of the manufacture instruction | indication which the production information cooperation apparatus by Embodiment 1 of this invention transmits to an information system. 本発明の実施の形態2による生産情報連携装置の構成を示すブロック図である。It is a block diagram which shows the structure of the production information cooperation apparatus by Embodiment 2 of this invention. 本発明の実施の形態3による生産情報連携装置の構成を示すブロック図である。It is a block diagram which shows the structure of the production information cooperation apparatus by Embodiment 3 of this invention. 本発明の実施の形態3による生産情報連携装置が生成する文書要素デバイスメモリマッピング定義の記述例を示す図である。It is a figure which shows the example of a description of the document element device memory mapping definition which the production information cooperation apparatus by Embodiment 3 of this invention produces | generates. 本発明の実施の形態4による生産情報連携装置の構成を示すブロック図である。It is a block diagram which shows the structure of the production information cooperation apparatus by Embodiment 4 of this invention. 本発明の実施の形態5による生産情報連携装置の構成を示すブロック図である。It is a block diagram which shows the structure of the production information cooperation apparatus by Embodiment 5 of this invention. 本発明の実施の形態5による生産情報連携装置が生成するイベント情報記録プログラムの例を示す模式図である。It is a schematic diagram which shows the example of the event information recording program which the production information cooperation apparatus by Embodiment 5 of this invention produces | generates. 本発明の実施の形態6による生産情報連携装置の構成を示すブロック図である。It is a block diagram which shows the structure of the production information cooperation apparatus by Embodiment 6 of this invention.

符号の説明Explanation of symbols

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に記載の生産情報連携装置であって、
前記構造化文書要素対応ルール、前記文書要素論理変数対応ルール、および前記論理変数デバイスメモリ対応ルールの少なくとも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又は請求項2に記載の生産情報連携装置であって、
前記構造化文書要素対応ルール、前記文書要素論理変数対応ルール、および前記論理変数デバイスメモリ対応ルールの少なくとも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.
請求項1又は請求項2に記載の生産情報連携装置であって、
前記情報システムからの要求に応答してイベントを検出するイベント検出部と、
前記イベント検出部で検出されたイベントに関する情報を記録するイベント記録部と
をさらに備える生産情報連携装置。
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:
請求項1又は請求項2に記載の生産情報連携装置であって、
前記情報システムからの要求に応答してイベントを検出するイベント検出部を、前記生産情報連携装置の外部かつ前記生産制御システムの内部に配置された制御ロジック処理部の内部に生成するイベント検出部生成部
をさらに備え
前記イベント検出部で検出されたイベントに関する情報は、前記生産情報連携装置の外部かつ前記生産制御システムの内部に配置された前記デバイスメモリへ記憶される
生産情報連携装置。
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 .
請求項1又は請求項2に記載の生産情報連携装置であって、
前記論理変数デバイスメモリ変換処理部は、
前記デバイスメモリ入出力部によりデバイスメモリへ入力される前記生産制御用データへタイムスタンプまたはシリアル番号を含む付加情報を付与する付加情報付与部と、
前記デバイスメモリ入出力部によりデバイスメモリから出力される前記生産制御用データからタイムスタンプまたはシリアル番号を含む付加情報を抽出する付加情報抽出部と
を有する生産情報連携装置。
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
JP2007298868A 2007-11-19 2007-11-19 Production information linkage device Expired - Fee Related JP4869211B2 (en)

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)

* Cited by examiner, † Cited by third party
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

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