JP3580347B2 - Data management method, data management device, and their recording media - Google Patents

Data management method, data management device, and their recording media Download PDF

Info

Publication number
JP3580347B2
JP3580347B2 JP20302698A JP20302698A JP3580347B2 JP 3580347 B2 JP3580347 B2 JP 3580347B2 JP 20302698 A JP20302698 A JP 20302698A JP 20302698 A JP20302698 A JP 20302698A JP 3580347 B2 JP3580347 B2 JP 3580347B2
Authority
JP
Japan
Prior art keywords
trigger
action
setting
execution program
type
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 - Lifetime
Application number
JP20302698A
Other languages
Japanese (ja)
Other versions
JP2000035811A (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.)
Omron Corp
Original Assignee
Omron 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 Omron Corp filed Critical Omron Corp
Priority to JP20302698A priority Critical patent/JP3580347B2/en
Publication of JP2000035811A publication Critical patent/JP2000035811A/en
Application granted granted Critical
Publication of JP3580347B2 publication Critical patent/JP3580347B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Description

【0001】
【発明の属する技術分野】
この発明は、データ管理方法、データ管理装置及びそれらの記録媒体に関し、詳しくは、PLC(プログラマブルロジックコントローラ)と該PLCから収集したデータを蓄積するデータベース若しくは該PLCの制御に係るアプリケーションとの間のデータの流れの制御を、トリガとアクションとの対応付け設定により自動実行するようにしたデータ管理方法、データ管理装置及びそれらの記録媒体に関する。
【0002】
【従来の技術】
最近のFA(ファクトリオートメーション)でのアプリケーションでは、「何か必要なタイミング」が発生したときに、「それに対応するする処理」を実行するという形で構築される場合が多い。
【0003】
例えば、
1)所定の時間が経過する毎にPLCのデータをユーザが指定する形で収集してデータベースに蓄積する
2)PLCによる生産が開始される時に、レシピデータ、マスタデータ、作業指示等の必要なデータを検索してPLCにダウンロードする
という形でアプリケーションが構築される。
【0004】
【発明が解決しようとする課題】
しかし、上記アプリケーションのプログラミングは、「何か必要なタイミング」が発生したとき、すなわち、トリガが発生したとき、「それに対応するする処理」を実行する、すなわち、アクションを実行するというように、各トリガ種別、各アクション種別に対応してそれぞれ別々にプログラミングしており、また、この種のプログラミングにおいては他のユーザアプリケーションとの連携が要求されることも多いので、その結果、この種のアプリケーションの開発コストが高くなり、また、処理変更時の対応にも時間がかかるという問題があった。
【0005】
そこで、この発明は、トリガ種別やアクション種別が増加しても容易に対応することができ、しかもその開発コストも低く抑えることのできるデータ管理方法、データ管理装置及びそれらの記録媒体を提供することを目的とする。
【0006】
【課題を解決するための手段】
上記目的を達成するため、請求項1記載の発明は、FAネットワークを介してプログラマブルロジックコントローラに接続し、上記プログラマブルロジックコントローラのデータを管理するデータ管理装置におけるデータ管理方法において、上記プログラマブルロジックコントローラに対する各処理の開始タイミングを示す複数のトリガのそれぞれに対して、トリガを発生するためのトリガ種別実行プログラムと一意のトリガID対応させて設定し、上記プログラマブルロジックコントローラに対する各処理の実際の内容を示す複数のアクションのそれぞれに対して、アクションを実行するためのアクション種別実行プログラムと一意のアクションID対応させて設定し、上記複数のトリガの中から発生させるトリガが選択され、そのトリガが発生したときに実行するアクションが選択され、その選択されたトリガとアクションとの組み合わせを上記トリガIDと上記アクションIDとを対応させて記憶することにより、ジョブを設定し、上記トリガ種別実行プログラムを起動して実行することによって、対応するトリガIDを付加したトリガを発生し、そのトリガIDを元に上記設定したジョブを検索して対応するアクションIDを特定し、その特定のアクションIDに対応するアクション種別実行プログラムを実行して、上記ジョブ設定にしたがって所望のアクションを自動実行する。
【0007】
また、請求項2記載の発明は、FAネットワークを介してプログラマブルロジックコントローラに接続し、上記プログラマブルロジックコントローラのデータを管理するデータ管理装置において、上記プログラマブルロジックコントローラに対する各処理の開始タイミングを示す複数のトリガのそれぞれに対して、トリガを発生するためのトリガ種別実行プログラムと一意のトリガIDとを対応させて設定するトリガ設定手段と、上記プログラマブルロジックコントローラに対する各処理の実際の内容を示す複数のアクションのそれぞれに対して、アクションを実行するためのアクション種別実行プログラムと一意のアクションIDとを対応させて設定するアクション設定手段と、上記複数のトリガのいずれかのトリガと、そのトリガが発生したときに実行するアクションとの組み合わせのジョブを、上記トリガIDと上記アクションIDとを対応付けて設定し、それを記憶するジョブ設定手段と、上記トリガ設定手段からトリガ種別実行プログラムを読み出し、そのトリガ種別実行プログラムを実行することによって対応するトリガIDを付加してイベント通知をし、イベント通知によりそのトリガIDを元に上記ジョブ設定手段を検索することによって対応するアクションIDを取得し、上記アクション設定手段から取得した特定のアクションIDに対応するアクション種別実行プログラムを取得し、そのアクション種別実行プログラムの実行処理を行う制御手段と、を具備する。
【0011】
【発明の実施の形態】
以下、この発明に係るデータ管理方法、データ管理装置及びそれらの記録媒体の一実施の形態を添付図面を参照して詳細に説明する。
【0012】
図1は、この発明に係るデータ管理方法、データ管理装置及びそれらの記録媒体を適用して構成したデータフロー制御システムの一実施の形態を示すシステム構成図である。
【0013】
図1において、このデータフロー制御システムは、FAネットワーク30に接続された複数のPLC20−1、20−2と、データファイル40およびユーザアプリケーション50との間にデータフロー制御装置10を接続し、このデータフロー制御装置10は、各種トリガと該トリガに対応する各種アクションとを対応付けて設定し、トリガの発生に対応して該トリガに対応する所望のアクションを自動実行することにより、複数のPLC20−1、20−2とデータファイル40およびユーザアプリケーション50との間のデータの流れを制御するように構成される。
【0014】
ここで、データフロー制御装置10は、FAパーソナルコンピュータ(FAパソコン)から構成され、複数のPLC20−1、20−2とデータファイル40およびユーザアプリケーション50との間のミドルウエアとして機能し、各種トリガの発生により起動され、複数のPLC20−1、20−2から収集したデータをデータファイル40に格納したり、ユーザアプリケーション50に通知したりする処理、およびデータファイル40およびユーザアプリケーション50のデータを複数のPLC20−1、20−2にダウンロードする処理等をユーザの設定に対応して自動実行する。
【0015】
図2は、図1に示したデータフロー制御装置の詳細構成を示すブロック図である。
【0016】
図2において、このデータフロー制御装置10は、このデータフロー制御装置10に対する各種設定を行う装置設定ツール11、装置設定ツール11で設定された設定内容を格納する設定テーブル12、このデータフロー制御装置10によるデータ転送のタグの設定を行うタグ設定ツール13、タグ設定ツール13で設定されたタグを格納するタグデータベース14、このデータフロー制御装置10によるデータ流れ制御のサービスを実行するサービス処理部15を具備して構成される。
【0017】
ここで、サービス処理部15は、このデータフロー制御装置10によるデータ流れ制御を実行する制御モジュール16、各種トリガを発生するトリガモジュール17、各種アクションを実行するアクションモジュール18を具備して構成される。
【0018】
また、サービス処理部15の制御モジュール16に対して、ユーザアプリケーション50からデータ収集開始、停止等の指令が通知され、トリガモジュール17に対して、ユーザアプリケーション50からトリガ発生等の指令が通知され、アクションモジュール18からユーザアプリケーション50に対してアプリケーションの通知(アプリ通知)がなされる。
【0019】
また、アクションモジュール18は、ユーザデータファイル40との間でデータの送受を行う。
【0020】
また、サービス処理部15は、ゲートウエイ60を介して複数のPLC20−1、20−2との間でデータの送受を行う。
【0021】
ここで、サービス処理部15によるサービスは、データのロギング処理、ダウンロード処理等を実現する。すなわち、サービス処理部15では、あるトリガが発生したときに、そのトリガに対応するアクションを実行する。これにより
1)PLC20−1、20−2のデータをユーザデータファイル40に格納する
2)ユーザ作成のデータベースを、指定した条件で検索し、その結果をPLC20−1、20−2に書込む
3)トリガが発生した際に、アクションとしてユーザアプリケーション50に通知する
等の処理を実現する。
【0022】
また、装置設定ツール11は、
1)サービス処理部15のサービスに必要な設定データの登録
2)サービス処理部15のサービスの開始、停止
3)あるトリガとそのときにロギングするアクション(作業)のまとまりの単位であるジョブの登録、開始、終了
等の機能を提供する。
【0023】
また、タグ設定ツール13は、
1)対象機器の変数エリアに対するタグの設定
2)対象機器との間でのイベントメモリのマッピングの設定
等の機能を提供する。
【0024】
また、タグデータベース14は、タグ設定ツール13で設定したタグ情報を格納するデータベースである。
【0025】
また、設定テーブル12は、サービス処理部15のサービスの実行に必要なデータの集まりを格納するデータベースである。
【0026】
また、ユーザデータファイル40は、実際にデータがロギングされるデータが格納されるデータベース、またはダウンロードするデータが格納されるデータベースである。このデータベースのテーブル構成(スキーマ)は、ユーザが設計、作成することができる。
【0027】
図3は、図2に示したデータフロー制御装置の詳細動作を示す機能ブロック図である。
【0028】
図3において、トリガ設定部111は、トリガ種別の設定プログラム、すなわち、トリガ種別1設定プログラム151−1、トリガ種別2設定プログラム151−2、トリガ種別3設定プログラム151−3を実行し、その結果をトリガ設定データベース(トリガ設定DB)121に設定する。
【0029】
また、ジョブ設定部112は、トリガとアクションを対応付けたジョブをジョブ設定データベース(ジョブ設定DB)122に設定する。
【0030】
アクション設定部113は、アクション種別の設定プログラム、すなわち、アクション種別1設定プログラム152−1、アクション種別2設定プログラム152−2、アクション種別3設定プログラム152−3を実行し、その結果をアクション設定データベース(アクション設定DB)123に設定する。
【0031】
トリガ起動部151は、トリガ設定データベース(トリガ設定DB)121に設定されたトリガおよびジョブ設定データベース(ジョブ設定DB)122に設定されたジョブを読み込み、トリガ種別の実行プログラム、すなわち、トリガ種別1実行プログラム153−1、トリガ種別2実行プログラム153−2、トリガ種別3実行プログラム153−3、トリガ種別4実行プログラム153−4に対してその開始/停止の指令を通知する。
【0032】
トリガ種別1実行プログラム153−1、トリガ種別2実行プログラム153−2、トリガ種別3実行プログラム153−3、トリガ種別3実行プログラム153−4の実行により、イベントが発生すると、そのイベントをフローコントロール部152に通知する。
【0033】
イベントを実行するフローコントロール部152は、アクション設定データベース(アクション設定DB)123に設定されたアクションおよびジョブ設定データベース(ジョブ設定DB)122に設定されたジョブを読み込み、アクション種別の実行プログラム、すなわち、アクション種別1実行プログラム154−1、アクション種別2実行プログラム154−2、アクション種別3実行プログラム154−3、アクション種別4実行プログラム154−4に対してその実行の指令を通知する。
【0034】
図4は、図3に示したジョブ設定データベース(ジョブ設定DB)の一例を示す図である。
【0035】
図4において、ジョブ設定データベース(ジョブ設定DB)122は、ジョブテーブル122−1を具備して構成される。
【0036】
図4に示すジョブテーブル122−1は、トリガIDに対してアクションIDが対応して記憶されるテーブルである。
【0037】
すなわち、図4に示すジョブテーブル122−1においては、トリガID「100」に対してアクションID「200」が設定され、トリガID「100」に対してアクションID「210」が設定され、トリガID「110」に対してアクションID「230」が設定されていることを示している。
【0038】
図5は、図3に示したトリガ設定データベース(トリガ設定DB)の一例を示す図である。
【0039】
図5において、トリガ設定データベース(トリガ設定DB)121は、トリガテーブル121−1、トリガプログラム情報テーブル121−2、トリガ種別ごとのテーブル121−3を具備して構成される。
【0040】
図5に示すトリガテーブル121−1は、トリガIDに対してトリガ名、トリガ種別IDが対応して記憶されるテーブルである。
【0041】
すなわち、図5に示すトリガテーブル121−1においては、トリガID「100」に対してトリガ名「30秒ごと」、トリガ種別ID「1」が設定され、トリガID「110」に対してトリガ名「生産開始」、トリガ種別ID「3」が設定されていることを示している。
【0042】
また、図5に示すトリガプログラム情報テーブル121−2は、トリガ種別IDに対してトリガ種別名、設定プログラム、実行プログラムが対応して記憶されるテーブルである。
【0043】
すなわち、図5に示すトリガプログラム情報テーブル121−2においては、トリガ種別ID「1」に対してトリガ種別名「定周期」、設定プログラム「SetCyclic」、実行プログラム「CyclicExe」が設定され、トリガ種別ID「2」に対してトリガ種別名「指定時刻」、設定プログラム「SetTime」、実行プログラム「TimeExe」が設定され、トリガ種別ID「3」に対してトリガ種別名「条件一致」、設定プログラム「SetTag」、実行プログラム「TagExe」が設定されていることを示している。
【0044】
また、図5に示すトリガ種別ごとのテーブル121−3は、定周期トリガ用のテーブルを示すもので、トリガIDに対して定周期が対応して記憶されるテーブルである。
【0045】
すなわち、図5に示すトリガ種別ごとのテーブル121−3においては、トリガID「100」に対して定周期「0:0:30」が設定され、トリガID「101」に対して定周期「0:1:0」が設定されていることを示している。
【0046】
図6は、図3に示したアクション設定データベース(アクション設定DB)の一例を示す図である。
【0047】
図6において、アクション設定データベース(アクション設定DB)123は、アクションテーブル123−1、アクションプログラム情報テーブル123−2、アクション種別ごとのテーブル123−3を具備して構成される。
【0048】
図6に示すアクションテーブル123−1は、アクションIDに対してアクション名、アクション種別IDが対応して記憶されるテーブルである。
【0049】
すなわち、図6に示すアクションテーブル123−1においては、アクションID「200」に対してアクション名「実績データ収集」、アクション種別ID「1」が設定され、アクションID「210」に対してアクション名「設備異常」、アクション種別ID「1」が設定され、アクションID「230」に対してアクション名「指示ダウンロード」、アクション種別ID「3」が設定されていることを示している。
【0050】
また、図6に示すアクションプログラム情報テーブル123−2は、アクション種別IDに対してアクション種別名、設定プログラム、実行プログラムが対応して記憶されるテーブルである。
【0051】
すなわち、図6に示すアクションプログラム情報テーブル123−2においては、アクション種別ID「1」に対してアクション種別名「データ収集(ファイル)」、設定プログラム「SetCollectFile」、実行プログラム「CollectFileExe」が設定され、アクション種別ID「2」に対してアクション種別名「データ収集(DB)」、設定プログラム「SetCollectDB」、実行プログラム「CollectDBExe」が設定され、アクション種別ID「3」に対してアクション種別名「データダウンロード」、設定プログラム「SetDownLoadFile」、実行プログラム「DownLoadFileExe」が設定されていることを示している。
【0052】
また、図6に示すアクション種別ごとのテーブル123−3は、データ収集用のテーブルを示すもので、アクションIDに対してデータ収集ファイル、収集内容が対応して記憶されるテーブルである。
【0053】
すなわち、図6に示すアクション種別ごとのテーブル123−3においては、アクションID「200」に対してデータ収集ファイル「Collect1.log」が設定されていることを示している。
【0054】
図7は、図3に示したトリガ設定部の処理を示すフローチャートである。
【0055】
図7において、図3に示したトリガ設定部111の処理が開始されると、まず、図5に示したトリガプログラム情報テーブル121−2に登録されているトリガ種別名から1つをユーザに選択させる(ステップ201)。
【0056】
そして、登録されたトリガ種別名に対応する設定プログラムを実行する(ステップ202)。その後、このジョブ設定部111の処理を終了する。
【0057】
図8は、図7に示した処理で選択された種別ごとのトリガ設定プログラムにより実行される処理の一例を示すフローチャートである。
【0058】
なお、図8に示す処理は、トリガ種別が「定周期」の場合の設定プログラムにより実行される処理を示している。
【0059】
図8において、この処理が開始されると、まず、トリガ名を入力する(ステップ211)。次に、定周期で発生させる間隔を入力する(ステップ212)。
【0060】
そして、図5に示したトリガテーブル121−1を設定する(ステップ213)。ここで、トリガ名は、本プログラムで入力したトリガの名前、すなわちステップ211で入力されたトリガ名に設定され、トリガIDは、一意のIDを生成して設定され、トリガ種別は、定周期をあらわす種別IDに設定される。
【0061】
次に、図5に示したトリガ種別ごとのテーブル(定周期トリガテーブル)121−3を設定する(ステップ214)。ここで、トリガIDは、トリガテーブル121−1に設定したトリガIDと同じID、すなわち、ステップ213で設定したIDと同じIDが設定され、定周期は、ステップ212で入力された定周期の値が設定される。その後、この処理を終了する。
【0062】
図9は、図3に示したアクション設定部の処理を示すフローチャートである。
【0063】
図9において、図3に示したアクション設定部113の処理が開始されると、まず、図6に示したアクションプログラム情報テーブル123−2に登録されているアクション種別名から1つをユーザに選択させる(ステップ221)。
【0064】
そして、登録されたアクション種別名に対応する設定プログラムを実行する(ステップ202)。その後、このアクション設定部113の処理を終了する。
【0065】
図10は、図9に示した処理で選択された種別ごとのアクション設定プログラムにより実行される処理の一例を示すフローチャートである。
【0066】
なお、図10に示す処理は、アクション種別が「収集」の場合の設定プログラムにより実行される処理を示している。
【0067】
図10において、この処理が開始されると、まず、アクション名を入力する(ステップ231)。次に、データ収集に必要な情報を入力する(ステップ232)。
【0068】
そして、図6に示したアクションテーブル123−1を設定する(ステップ233)。ここで、アクション名は、本プログラムで入力したアクションの名前、すなわちステップ231で入力されたアクション名に設定され、アクションIDは、一意のIDを生成して設定され、アクション種別は、収集をあらわす種別IDに設定される。
【0069】
次に、図6に示したアクション種別ごとのテーブル(データ収集テーブル)123−3を設定する(ステップ234)。ここで、アクションIDは、アクションテーブル123−1に設定したアクションIDと同じID、すなわち、ステップ233で設定したIDと同じIDが設定され、ファイル名は、データ収集するファイル名に設定され、データ収集フォーマットは、どのデータをどのように収集するかを設定する。その後、この処理を終了する。
【0070】
図11は、図3に示したジョブ設定部の処理を示すフローチャートである。 図11において、図3に示したジョブ設定部112の処理が開始されると、まず、図5に示したトリガテーブル121−1に登録されているトリガの一覧を表示し、その中で発生させるトリガを選択する(ステップ241)。
【0071】
次に、図6に示したアクションテーブル123−1に登録されているアクションの一覧を表示し、その中で先ほど選択したトリガが発生したときに実行させるアクションを選択する(ステップ242)。
【0072】
そして、選択したトリガとアクションの組み合わせの各IDを図4に示したジョブテーブル122−1に登録し(ステップ243)、このジョブ設定部112の処理を終了する。
【0073】
図12は、図3に示したトリガ起動部による起動処理を示すフローチャートである。
【0074】
図12に示す起動処理においては、まず、図4に示したジョブテーブル122−1に登録されているジョブのトリガIDを取得する(ステップ251)。
【0075】
次に、上記トリガIDを図4に示したジョブテーブル122−1より検索し、トリガ種別を知る(ステップ252)。
【0076】
そして、上記トリガ種別に対応した実行プログラムを図5に示したトリガプログラム情報テーブル121−2より検索し対応する実行プログラムを起動する。この時、実行プログラムの起動パラメータとしてトリガIDを渡す(ステップ253)。
【0077】
次に、全てのジョブを終了したかを調べ(ステップ226)、全てのジョブを終了しない場合は(ステップ254でNO)、ステップ251に戻るが、全てのジョブを終了したと判断した場合は(ステップ254でYES)、ステップ255に進む。
【0078】
ステップ255では、図4に示したジョブテーブル122−1に登録されているジョブアクションIDを取得する。
【0079】
そして、上記アクションIDを図6に示したアクションテーブル123−1より検索し、アクション種別を知る(ステップ256)。
【0080】
次に、上記アクション種別に対応した実行プログラムを図6に示したアクションプログラム情報テーブル123−2より検索し対応する実行プログラムを起動する。この時、実行プログラムの起動パラメータとして、アクションIDを渡す(ステップ257)。
【0081】
そして、全てのジョブを終了したかを調べ(ステップ258)、全てのジョブを終了していない場合は(ステップ258でNO)、ステップ255に戻るが、全てのジョブを終了したと判断した場合は(ステップ258でYES)、この処理を終了する。
【0082】
図13は、図12に示した処理により起動された各トリガごとの実行プログラムによる処理を示すフローチャートである。
【0083】
図13において、この処理が開始されると、ます、起動時に渡されたトリガIDより図5に示したトリガ種別ごとのテーブル121−3、すなわち、例えば、定周期トリガテーブルよりなるトリガ種別ごとの設定テーブルを検索する(ステップ261)。
【0084】
そして、検索したトリガIDに対応する種別ごとの設定内容を取得する(ステップ261)。ここで、取得するトリガIDに対応する種別ごとの設定内容とは、例えば、定周期トリガテーブルでは定周期にトリガを発生させる間隔である。
【0085】
次に、取得した情報を元にトリガを発生させるための準備を行う(ステップ263)。ここで、取得した情報を元にトリガを発生させるための準備とは、例えば、トリガ種別が定周期である場合は、周期ごとにトリガを発生させるタイマを開始させることになる。
【0086】
そして、トリガが発生したことを認識すると、例えば、定周期トリガで、定周期にタイマ割り込みが発生すると、図3に示したフローコントロール部152に対してイベント通知を行う。このイベント通知においてはトリガIDを付加して通知する(ステップ264)。
【0087】
次にこの処理を終了するかを調べ(ステップ265)、終了しない場合は(ステップ264でNO)、ステップ263に戻るが、終了と判断されると(ステップ265でYES)、この処理を終了する。
【0088】
図14は、図3に示したフローコントロール部の処理を示すフローチャートである。
【0089】
図14において、図3に示したフローコントロール部152の処理が開始されると、まず、イベント受信待ちになる(ステップ271)。
【0090】
そして、次に、イベント受信かを調べる(ステップ272)。ここで、イベント受信でないと判断されると(ステップ272でNO)、ステップ271に戻るが、イベント受信と判断されると(ステップ272でYES)、渡されたトリガIDを元に図4に示したジョブテーブル122−1を検索し、対応するアクションIDを取得し(ステップ273)、図6に示したアクションテーブル123−1を検索し、対応するアクション種別実行プログラムを取得する(ステップ274)。
【0091】
そして、図12に示した起動処理で起動したアクションIDごとのアクション実行プログラムにトリガ発生を通知する(ステップ275)。
【0092】
次に、この処理を終了するかを調べ(ステップ276)、終了しないと判断されると(ステップ276でNO)、ステップ271に戻るが、終了すると判断されると(ステップ276でYES)、この処理を終了する。
【0093】
図15は、図12の処理により起動した各アクション種別ごとの実行プログラム初期化処理を示すフローチャートである。
【0094】
図15において、この処理が開始されると、まず、起動時に渡されたアクションIDにより、図6に示したアクションごとのテーブル123−3、すなわち、例えば、データ収集アクションテーブルからなるアクションごとの設定テーブルを検索する(ステップ281)。
【0095】
次に、検索したアクションIDに対応する種別ごとの設定内容、例えば、データ収集アクションテーブルでは、収集ファイル名と収集フォーマットの情報を取得する(ステップ282)。
【0096】
そして、各種別ごとの処理を行う(ステップ283)。例えば、データ収集では、指定データ収集ファイルをオープンするなどの処理を行う。
【0097】
この状態で、図3に示したフローコントロール部152からトリガ発生が通知されると、設定内容にしたがってデータ収集など、アクション種別固有の実行処理を行う(ステップ284)。
【0098】
次に、この処理を終了するかを調べ(ステップ285)、終了しないと判断されると(ステップ285でNO)、ステップ284に戻るが、終了すると判断されると(ステップ285でYES)、この処理を終了する。
【0099】
このように、この実施の形態においては、複数のPLC20−1、20−2と、データファイル40およびユーザアプリケーション50との間にデータフロー制御装置10を接続し、このデータフロー制御装置10は、各種トリガと該トリガに対応する各種アクションとを対応付けて設定し、トリガの発生に対応して該トリガに対応する所望のアクションを自動実行するように構成したので、複数のPLC20−1、20−2とデータファイル40およびユーザアプリケーション50との間のデータの流れ制御を、トリガ種別やアクション種別が増加しても容易に行うことができ、しかもその開発コストも低く抑えることのできる。
【0100】
【発明の効果】
以上説明したように、請求項1の発明によれば、処理の開始タイミングを示すトリガと該処理の実際の内容を示すアクションとを関連付けて設定し、上記トリガの発生に基づき該トリガに対応して設定されたアクションを自動実行するように構成したので、トリガ種別やアクション種別が増加しても容易に対応することができ、しかもその開発コストも低く抑えることのできるデータ管理方法を提供することができる。
【0101】
また、請求項2の発明によれば、処理の開始タイミングを示すトリガを設定するトリガ設定手段と、上記処理の実際の内容を示すアクションを設定するアクション設定手段と、上記トリガ設定手段で設定したトリガに対応して前記アクション設定手段で設定したアクションを関連付けることによりジョブを設定するジョブ設定手段と、上記トリガ設定手段で設定したトリガの発生に対応して上記ジョブ設定手段で関連付けられたアクションを実行する制御手段とを具備して構成したので、トリガ数やアクション数が増加しても容易に対応することができ、しかもその開発コストも低く抑えることのできるデータ管理装置を提供することができる。
【図面の簡単な説明】
【図1】この発明に係るデータ管理方法、データ管理装置及びそれらの記録媒体を適用して構成したデータフロー制御システムの一実施の形態を示すシステム構成図。
【図2】図1に示したデータフロー制御装置の詳細構成を示すブロック図。
【図3】図2に示したデータフロー制御装置の詳細動作を示す機能ブロック図。
【図4】図3に示したジョブ設定データベース(ジョブ設定DB)の一例を示す図。
【図5】図3に示したトリガ設定データベース(トリガ設定DB)の一例を示す図。
【図6】図3に示したアクション設定データベース(アクション設定DB)の一例を示す図。
【図7】図3に示したトリガ設定部の処理を示すフローチャート。
【図8】図7に示した処理で選択された種別ごとのトリガ設定プログラムにより実行される処理の一例を示すフローチャート。
【図9】図3に示したアクション設定部の処理を示すフローチャート。
【図10】図9に示した処理で選択された種別ごとのアクション設定プログラムにより実行される処理の一例を示すフローチャート。
【図11】図3に示したジョブ設定部の処理を示すフローチャート。
【図12】図3に示したトリガ起動部による起動処理を示すフローチャート。
【図13】図12に示した処理により起動された各トリガごとの実行プログラムによる処理を示すフローチャート。
【図14】図3に示したフローコントロール部の処理を示すフローチャート。
【図15】図12の処理により起動した各アクション種別ごとの実行プログラム初期化処理を示すフローチャート。
【符号の説明】
10 データフロー制御装置
11 装置設定ツール
12 設定テーブル
13 タグ設定ツール
14 タグデータベース
15 サービス処理部
16 制御モジュール
17 トリガモジュール
18 アクションモジュール
20−1、20−2 PLC(プログラマブルロジックコントローラ)
30 FAネットワーク
40 データファイル
50 ユーザアプリケーション
60 ゲートウエイ
111 トリガ設定部
112 ジョブ設定部
113 アクション設定部
121 トリガ設定データベース(トリガ設定DB)
121−1 トリガテーブル
121−2 トリガプログラム情報テーブル
121−3 トリガ種別ごとのテーブル
122 ジョブ設定データベース(ジョブ設定DB)
122−1 ジョブテーブル
123 アクション設定データベース(アクション設定DB)
123−1 アクションテーブル
123−2 アクションプログラム情報テーブル
123−3 アクション種別ごとのテーブル
151 トリガ起動部
151−1 トリガ種別1設定プログラム
151−2 トリガ種別2設定プログラム
151−3 トリガ種別3設定プログラム
152 フローコントロール部
152−1 アクション種別1設定プログラム
152−2 アクション種別2設定プログラム
152−3 アクション種別3設定プログラム
153−1 トリガ種別1実行プログラム
153−2 トリガ種別2実行プログラム
153−3 トリガ種別3実行プログラム
153−4 トリガ種別4実行プログラム
154−1 アクション種別1実行プログラム
154−2 アクション種別2実行プログラム
154−3 アクション種別3実行プログラム
154−4 アクション種別4実行プログラム
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a data management method, a data management device, and a recording medium thereof, and more particularly, relates to a method for controlling a PLC (Programmable Logic Controller) and a database for storing data collected from the PLC or an application for controlling the PLC. The present invention relates to a data management method, a data management device, and a recording medium for automatically executing data flow control by setting an association between a trigger and an action.
[0002]
[Prior art]
In recent FA (factory automation) applications, when "something necessary timing" occurs, it is often constructed in such a way that "processing corresponding to it" is executed.
[0003]
For example,
1) Every time a predetermined time elapses, PLC data is collected in a form specified by the user and stored in a database.
2) When production by the PLC is started, necessary data such as recipe data, master data, work instructions, etc. are searched and downloaded to the PLC.
The application is built in the form.
[0004]
[Problems to be solved by the invention]
However, the programming of the above-mentioned application is performed such that when "a necessary timing" occurs, that is, when a trigger occurs, a "corresponding process" is executed, that is, an action is executed. Programming is performed separately for each trigger type and each action type, and in this type of programming, it is often required to cooperate with other user applications. There has been a problem that the development cost is high and that it takes time to deal with the processing change.
[0005]
Therefore, the present invention provides a data management method, a data management device, and a recording medium thereof that can easily cope with an increase in trigger types and action types, and that can reduce the development cost. With the goal.
[0006]
[Means for Solving the Problems]
In order to achieve the above object, the invention according to claim 1 is:A data management method for connecting to the programmable logic controller via an FA network and managing data of the programmable logic controller;Indicates the start timing of processingpluralTriggerTrigger type execution program for generating a trigger for each ofUnique trigger IDWhenToCorrespondingSet,Each of the above programmable logic controllersIndicates the actual content of the operationpluralactionAction type execution program to execute an action for each ofUnique action IDWhenToCorrespondingSet,A trigger to be generated is selected from the plurality of triggers, an action to be performed when the trigger is generated is selected, and a combination of the selected trigger and the action is selected.The above trigger IDAnd aboveAction IDBy storing in correspondence withSet up the job,By starting and executing the above-mentioned trigger type execution program, a corresponding trigger ID is added.TriggerAnd itsTrigger IDSearch and respond to the job set above based onIdentify the action ID, That particularAction IDAnd execute the action type execution program corresponding toActionAutomaticExecute.
[0007]
The invention according to claim 2 isIn the data management device connected to the programmable logic controller via the FA network and managing the data of the programmable logic controller, a trigger is generated for each of a plurality of triggers indicating a start timing of each process for the programmable logic controller. Trigger setting means for setting a trigger type execution program and a unique trigger ID in association with each other, and executing an action for each of a plurality of actions indicating the actual contents of each processing for the programmable logic controller. Setting means for setting an action type execution program and a unique action ID in association with each other, one of the plurality of triggers, and an action to be executed when the trigger occurs And sets the trigger ID and the action ID in association with each other, reads a trigger type execution program from the job setting means for storing the trigger ID and the action ID, and executes the trigger type execution program. The event notification is performed by adding the corresponding trigger ID, and the corresponding action ID is obtained by searching the job setting means based on the trigger ID by the event notification, and the specific action acquired from the action setting means is obtained. A control unit for acquiring an action type execution program corresponding to the action ID and performing an execution process of the action type execution program;Is provided.
[0011]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, an embodiment of a data management method, a data management device, and a recording medium according to the present invention will be described in detail with reference to the accompanying drawings.
[0012]
FIG. 1 is a system configuration diagram showing one embodiment of a data flow control system configured by applying a data management method, a data management device, and their recording media according to the present invention.
[0013]
In FIG. 1, the data flow control system connects a data flow control device 10 between a plurality of PLCs 20-1 and 20-2 connected to an FA network 30 and a data file 40 and a user application 50. The data flow control device 10 associates and sets various triggers and various actions corresponding to the triggers, and automatically executes a desired action corresponding to the triggers in response to the generation of the triggers. -1, 20-2 and the data file 40 and the user application 50.
[0014]
Here, the data flow control device 10 is constituted by an FA personal computer (FA personal computer), functions as middleware between the plurality of PLCs 20-1 and 20-2, the data file 40 and the user application 50, and generates various triggers. Is triggered by the occurrence of the error, stores data collected from the plurality of PLCs 20-1 and 20-2 in the data file 40, and notifies the user application 50. And the like for downloading to the PLCs 20-1 and 20-2 are automatically executed in accordance with the setting of the user.
[0015]
FIG. 2 is a block diagram showing a detailed configuration of the data flow control device shown in FIG.
[0016]
2, the data flow control device 10 includes a device setting tool 11 for performing various settings for the data flow control device 10, a setting table 12 for storing setting contents set by the device setting tool 11, and a data flow control device 10. A tag setting tool 13 for setting tags for data transfer by the tag 10, a tag database 14 for storing tags set by the tag setting tool 13, and a service processing unit 15 for executing a service of data flow control by the data flow control device 10. It comprises.
[0017]
The service processing unit 15 includes a control module 16 for executing data flow control by the data flow control device 10, a trigger module 17 for generating various triggers, and an action module 18 for executing various actions. .
[0018]
Further, a command such as data collection start and stop is notified from the user application 50 to the control module 16 of the service processing unit 15, and a command such as generation of a trigger is notified from the user application 50 to the trigger module 17. The action module 18 notifies the user application 50 of the application (application notification).
[0019]
The action module 18 sends and receives data to and from the user data file 40.
[0020]
The service processing unit 15 transmits and receives data to and from the plurality of PLCs 20-1 and 20-2 via the gateway 60.
[0021]
Here, the service by the service processing unit 15 realizes a data logging process, a download process, and the like. That is, when a certain trigger occurs, the service processing unit 15 executes an action corresponding to the trigger. This
1) Store the data of the PLCs 20-1 and 20-2 in the user data file 40
2) Search the database created by the user under specified conditions, and write the results to the PLCs 20-1 and 20-2.
3) Notify the user application 50 as an action when a trigger occurs
And so on.
[0022]
In addition, the device setting tool 11
1) Registration of setting data required for service of service processing unit 15
2) Starting and stopping the service of the service processing unit 15
3) Registration, start, and end of a job, which is a unit of a trigger and an action (work) to be logged at that time
And other functions.
[0023]
In addition, the tag setting tool 13
1) Setting tags for the variable area of the target device
2) Setting of event memory mapping with target device
And other functions.
[0024]
The tag database 14 is a database that stores tag information set by the tag setting tool 13.
[0025]
The setting table 12 is a database that stores a collection of data necessary for executing the service of the service processing unit 15.
[0026]
The user data file 40 is a database in which data for actually logging data is stored or a database in which data to be downloaded is stored. The table configuration (schema) of this database can be designed and created by the user.
[0027]
FIG. 3 is a functional block diagram showing a detailed operation of the data flow control device shown in FIG.
[0028]
In FIG. 3, the trigger setting unit 111 executes a trigger type setting program, that is, a trigger type 1 setting program 151-1, a trigger type 2 setting program 151-2, and a trigger type 3 setting program 151-3. Is set in the trigger setting database (trigger setting DB) 121.
[0029]
The job setting unit 112 sets a job in which a trigger and an action are associated with each other in a job setting database (job setting DB) 122.
[0030]
The action setting unit 113 executes an action type setting program, that is, an action type 1 setting program 152-1, an action type 2 setting program 152-2, and an action type 3 setting program 152-3, and stores the results in an action setting database. (Action setting DB) 123 is set.
[0031]
The trigger starting unit 151 reads the trigger set in the trigger setting database (trigger setting DB) 121 and the job set in the job setting database (job setting DB) 122, and executes the execution program of the trigger type, that is, the execution of the trigger type 1 The start / stop command is notified to the program 153-1, the trigger type 2 execution program 153-2, the trigger type 3 execution program 153-3, and the trigger type 4 execution program 153-4.
[0032]
When an event occurs due to execution of the trigger type 1 execution program 153-1, the trigger type 2 execution program 153-2, the trigger type 3 execution program 153-3, and the trigger type 3 execution program 153-4, the event is transmitted to the flow control unit. 152 is notified.
[0033]
The flow control unit 152 that executes the event reads the action set in the action setting database (action setting DB) 123 and the job set in the job setting database (job setting DB) 122, and executes the execution program of the action type, that is, The execution instruction is notified to the action type 1 execution program 154-1, the action type 2 execution program 154-2, the action type 3 execution program 154-3, and the action type 4 execution program 154-4.
[0034]
FIG. 4 is a diagram showing an example of the job setting database (job setting DB) shown in FIG.
[0035]
4, a job setting database (job setting DB) 122 includes a job table 122-1.
[0036]
The job table 122-1 shown in FIG. 4 is a table in which an action ID is stored in correspondence with a trigger ID.
[0037]
That is, in the job table 122-1 shown in FIG. 4, the action ID "200" is set for the trigger ID "100", the action ID "210" is set for the trigger ID "100", and the trigger ID This indicates that the action ID “230” is set for “110”.
[0038]
FIG. 5 is a diagram showing an example of the trigger setting database (trigger setting DB) shown in FIG.
[0039]
5, a trigger setting database (trigger setting DB) 121 includes a trigger table 121-1, a trigger program information table 121-2, and a table 121-3 for each trigger type.
[0040]
The trigger table 121-1 illustrated in FIG. 5 is a table in which a trigger name and a trigger type ID are stored in association with a trigger ID.
[0041]
That is, in the trigger table 121-1 shown in FIG. 5, the trigger name "every 30 seconds" and the trigger type ID "1" are set for the trigger ID "100", and the trigger name "1" is set for the trigger ID "110". This indicates that “production start” and the trigger type ID “3” are set.
[0042]
The trigger program information table 121-2 shown in FIG. 5 is a table in which a trigger type name, a setting program, and an execution program are stored in correspondence with a trigger type ID.
[0043]
That is, in the trigger program information table 121-2 shown in FIG. 5, the trigger type name "fixed period", the setting program "SetCyclic", and the execution program "CyclicExec" are set for the trigger type ID "1". The trigger type name “specified time”, the setting program “SetTime”, and the execution program “TimeExe” are set for the ID “2”, and the trigger type name “condition match” and the setting program “ SetTag ”and the execution program“ TagExe ”are set.
[0044]
Further, a table 121-3 for each trigger type shown in FIG. 5 is a table for a fixed period trigger, and is a table in which a fixed period is stored in correspondence with a trigger ID.
[0045]
That is, in the table 121-3 for each trigger type shown in FIG. 5, the fixed period “0: 0: 30” is set for the trigger ID “100”, and the fixed period “0” is set for the trigger ID “101”. : 1: 0 "is set.
[0046]
FIG. 6 is a diagram showing an example of the action setting database (action setting DB) shown in FIG.
[0047]
6, the action setting database (action setting DB) 123 includes an action table 123-1, an action program information table 123-2, and a table 123-3 for each action type.
[0048]
The action table 123-1 shown in FIG. 6 is a table in which an action name and an action type ID are stored in association with the action ID.
[0049]
That is, in the action table 123-1 shown in FIG. 6, the action name "Result data collection" and the action type ID "1" are set for the action ID "200", and the action name "210" is set for the action ID "210". "Facility abnormality", action type ID "1" are set, and action name "instruction download" and action type ID "3" are set for action ID "230".
[0050]
Also shown in FIG.actionThe program information table 123-2 is a table in which an action type name, a setting program, and an execution program are stored in correspondence with the action type ID.
[0051]
That is, in the action program information table 123-2 shown in FIG. 6, the action type name "data collection (file)", the setting program "SetCollectFile", and the execution program "CollectFileExec" are set for the action type ID "1". For the action type ID "2", the action type name "Data collection (DB)", the setting program "SetCollectDB", and the execution program "CollectDBExe" are set. "Download", a setting program "SetDownLoadFile", and an execution program "DownLoadFileExe" are set.
[0052]
The table 123-3 for each action type shown in FIG. 6 shows a table for data collection, and is a table in which a data collection file and collection contents are stored in correspondence with an action ID.
[0053]
That is, the table 123-3 for each action type shown in FIG. 6 indicates that the data collection file "Collect1.log" is set for the action ID "200".
[0054]
FIG. 7 is a flowchart showing the processing of the trigger setting unit shown in FIG.
[0055]
7, when the processing of the trigger setting unit 111 shown in FIG. 3 is started, first, the user selects one of the trigger type names registered in the trigger program information table 121-2 shown in FIG. (Step 201).
[0056]
Then, a setting program corresponding to the registered trigger type name is executed (Step 202). Then, the process of the job setting unit 111 ends.
[0057]
FIG. 8 is a flowchart showing an example of a process executed by the trigger setting program for each type selected in the process shown in FIG.
[0058]
The process shown in FIG. 8 indicates a process executed by the setting program when the trigger type is “fixed period”.
[0059]
In FIG. 8, when this process is started, first, a trigger name is input (step 211). Next, an interval to be generated at a fixed period is input (step 212).
[0060]
Then, the trigger table 121-1 shown in FIG. 5 is set (step 213). Here, the trigger name is set to the name of the trigger input in this program, that is, the trigger name input in step 211, the trigger ID is set by generating a unique ID, and the trigger type is set to a fixed period. It is set to the type ID that represents.
[0061]
Next, a table (periodic trigger table) 121-3 for each trigger type shown in FIG. 5 is set (step 214). Here, the trigger ID is set to the same ID as the trigger ID set in the trigger table 121-1, that is, the same ID as the ID set in step 213, and the fixed cycle is the value of the fixed cycle input in step 212. Is set. After that, this processing ends.
[0062]
FIG. 9 is a flowchart showing the processing of the action setting unit shown in FIG.
[0063]
In FIG. 9, when the processing of the action setting unit 113 shown in FIG. 3 is started, first, the user selects one of the action type names registered in the action program information table 123-2 shown in FIG. (Step 221).
[0064]
Then, a setting program corresponding to the registered action type name is executed (step 202). Then, the process of the action setting unit 113 ends.
[0065]
FIG. 10 is a flowchart illustrating an example of a process executed by the action setting program for each type selected in the process illustrated in FIG. 9.
[0066]
Note that the processing illustrated in FIG. 10 indicates processing executed by the setting program when the action type is “collect”.
[0067]
In FIG. 10, when this processing is started, first, an action name is input (step 231). Next, information necessary for data collection is input (step 232).
[0068]
Then, the action table 123-1 shown in FIG. 6 is set (step 233). Here, the action name is set to the name of the action input in this program, that is, the action name input in step 231, the action ID is set by generating a unique ID, and the action type represents collection. Set to the type ID.
[0069]
Next, a table (data collection table) 123-3 for each action type shown in FIG. 6 is set (step 234). Here, the action ID is set in the action table 123-1.actionThe same ID as the ID, that is, the same ID as the ID set in step 233 is set, the file name is set to the file name for data collection, and the data collection format sets which data is collected and how. . After that, this processing ends.
[0070]
FIG. 11 is a flowchart showing the processing of the job setting unit shown in FIG. In FIG. 11, when the processing of the job setting unit 112 shown in FIG. 3 is started, first, a list of triggers registered in the trigger table 121-1 shown in FIG. 5 is displayed and generated therein. A trigger is selected (step 241).
[0071]
Next, a list of actions registered in the action table 123-1 shown in FIG. 6 is displayed, and an action to be executed when the previously selected trigger occurs is selected from the list (step 242).
[0072]
Then, each ID of the selected combination of the trigger and the action is registered in the job table 122-1 shown in FIG. 4 (step 243), and the processing of the job setting unit 112 is ended.
[0073]
FIG. 12 is a flowchart illustrating a starting process by the trigger starting unit illustrated in FIG. 3.
[0074]
In the activation process shown in FIG. 12, first, the trigger ID of the job registered in the job table 122-1 shown in FIG. 4 is obtained (step 251).
[0075]
Next, the trigger ID is searched from the job table 122-1 shown in FIG. 4 to know the trigger type (step 252).
[0076]
Then, an execution program corresponding to the trigger type is searched from the trigger program information table 121-2 shown in FIG. 5, and the corresponding execution program is started. At this time, a trigger ID is passed as a start parameter of the execution program (step 253).
[0077]
Next, it is checked whether all jobs have been completed (step 226). If not completed (NO in step 254), the process returns to step 251. If it is determined that all jobs have been completed, (YES in step 254), and proceeds to step 255.
[0078]
In step 255, a job action ID registered in the job table 122-1 shown in FIG. 4 is obtained.
[0079]
Then, the action ID is searched from the action table 123-1 shown in FIG. 6 to know the action type (step 256).
[0080]
Next, an execution program corresponding to the action type is searched from the action program information table 123-2 shown in FIG. 6, and the corresponding execution program is started. At this time, an action ID is passed as a start parameter of the execution program (step 257).
[0081]
Then, it is checked whether all the jobs have been completed (step 258). If not all the jobs have been completed (NO in step 258), the process returns to step 255, but if it is determined that all the jobs have been completed, (YES in step 258), and ends this process.
[0082]
FIG. 13 is a flowchart showing processing by the execution program for each trigger activated by the processing shown in FIG.
[0083]
In FIG. 13, when this process is started, the table 121-3 for each trigger type shown in FIG. 5 based on the trigger ID passed at the time of activation, that is, for example, for each trigger type consisting of a fixed-cycle trigger table, A setting table is searched (step 261).
[0084]
Then, the setting contents for each type corresponding to the searched trigger ID are acquired (step 261). Here, the setting content for each type corresponding to the acquired trigger ID is, for example, an interval at which a trigger is generated at a fixed cycle in the fixed cycle trigger table.
[0085]
Next, preparations are made for generating a trigger based on the acquired information (step 263). Here, the preparation for generating a trigger based on the acquired information means that, for example, when the trigger type is a fixed period, a timer for generating a trigger is started for each period.
[0086]
Then, upon recognizing that the trigger has occurred, for example, when a timer interrupt occurs at a fixed period due to a fixed period trigger, an event notification is performed to the flow control unit 152 shown in FIG. In this event notification, a trigger ID is added and notified (step 264).
[0087]
Next, it is determined whether or not to end the processing (step 265). If not (NO in step 264), the process returns to step 263. If it is determined that the processing is ended (YES in step 265), the processing ends. .
[0088]
FIG. 14 is a flowchart showing the processing of the flow control unit shown in FIG.
[0089]
In FIG. 14, when the process of the flow control unit 152 shown in FIG. 3 is started, first, it waits for event reception (step 271).
[0090]
Then, it is checked whether an event has been received (step 272). If it is determined that the event has not been received (NO in step 272), the process returns to step 271. If it is determined that the event has been received (YES in step 272), the process returns to FIG. 4 based on the passed trigger ID. The corresponding job ID is obtained by searching the job table 122-1 (step 273), and searching the action table 123-1 shown in FIG.Type execution programIs acquired (step 274).
[0091]
Then, the occurrence of a trigger is notified to the action execution program for each action ID activated in the activation process shown in FIG. 12 (step 275).
[0092]
Next, it is determined whether or not to end the processing (step 276). If it is determined that the processing is not to be ended (NO in step 276), the process returns to step 271; The process ends.
[0093]
FIG. 15 is a flowchart showing the execution program initialization process for each action type started by the process of FIG.
[0094]
In FIG. 15, when this process is started, first, the action ID passed at the time of activation is used to set the table 123-3 for each action shown in FIG. 6, that is, for example, the setting for each action consisting of a data collection action table. The table is searched (step 281).
[0095]
Next, the setting contents for each type corresponding to the searched action ID, for example, the information of the collection file name and the collection format are acquired in the data collection action table (step 282).
[0096]
Then, processing for each type is performed (step 283). For example, in data collection, processing such as opening a specified data collection file is performed.
[0097]
In this state, when a trigger is notified from the flow control unit 152 shown in FIG. 3, execution processing specific to the action type such as data collection is performed in accordance with the settings (step 284).
[0098]
Next, it is determined whether or not to end the process (step 285). If it is determined that the process is not to be ended (NO in step 285), the process returns to step 284. The process ends.
[0099]
As described above, in the present embodiment, the data flow control device 10 is connected between the plurality of PLCs 20-1 and 20-2, the data file 40 and the user application 50, and the data flow control device 10 Since various triggers and various actions corresponding to the triggers are set in association with each other and a desired action corresponding to the triggers is automatically executed in response to the occurrence of the triggers, a plurality of PLCs 20-1 and 20-20 are configured. -2, the data flow between the data file 40 and the user application 50 can be easily controlled even if the number of trigger types and action types increases, and the development cost can be kept low.
[0100]
【The invention's effect】
As described above, according to the first aspect of the present invention, a trigger indicating the start timing of a process and an action indicating the actual content of the process are set in association with each other, and the trigger corresponding to the trigger is generated based on the occurrence of the trigger. To provide a data management method that can easily cope with an increase in the number of trigger types and action types, and that can keep the development cost low, because the configured actions are automatically executed. Can be.
[0101]
According to the second aspect of the present invention,Trigger setting means for setting a trigger indicating the start timing of the processing, action setting means for setting an action indicating the actual content of the processing, and setting in the action setting means corresponding to the trigger set in the trigger setting means Job setting means for setting a job by associating the set actions with each other, and control means for executing the action associated with the job setting means in response to occurrence of a trigger set by the trigger setting means. Therefore, it is possible to provide a data management apparatus that can easily cope with an increase in the number of triggers and the number of actions and that can reduce the development cost.
[Brief description of the drawings]
FIG. 1 is a system configuration diagram showing an embodiment of a data flow control system configured by applying a data management method, a data management device, and a recording medium thereof according to the present invention.
FIG. 2 is a block diagram showing a detailed configuration of the data flow control device shown in FIG.
FIG. 3 is a functional block diagram showing a detailed operation of the data flow control device shown in FIG. 2;
FIG. 4 is a view showing an example of a job setting database (job setting DB) shown in FIG. 3;
FIG. 5 is a view showing an example of a trigger setting database (trigger setting DB) shown in FIG. 3;
FIG. 6 is a view showing an example of an action setting database (action setting DB) shown in FIG. 3;
FIG. 7 is a flowchart showing the processing of a trigger setting unit shown in FIG. 3;
FIG. 8 is a flowchart showing an example of a process executed by a trigger setting program for each type selected in the process shown in FIG. 7;
FIG. 9 is a flowchart showing the processing of the action setting unit shown in FIG. 3;
FIG. 10 is a flowchart showing an example of a process executed by an action setting program for each type selected in the process shown in FIG. 9;
FIG. 11 is a flowchart illustrating processing of a job setting unit illustrated in FIG. 3;
FIG. 12 is a flowchart showing activation processing by a trigger activation unit shown in FIG. 3;
FIG. 13 is a flowchart showing processing by an execution program for each trigger activated by the processing shown in FIG. 12;
FIG. 14 is a flowchart showing the processing of the flow control unit shown in FIG. 3;
FIG. 15 is a flowchart showing an execution program initialization process for each action type started by the process of FIG. 12;
[Explanation of symbols]
10 Data flow control device
11 Device setting tool
12 Setting table
13 Tag setting tool
14 Tag database
15 Service processing unit
16 Control module
17 Trigger module
18 Action Module
20-1, 20-2 PLC (Programmable Logic Controller)
30 FA Network
40 data files
50 User Application
60 Gateway
111 Trigger setting section
112 Job setting section
113 Action setting section
121 Trigger setting database (Trigger setting DB)
121-1 Trigger table
121-2 Trigger program information table
121-3 Table for Each Trigger Type
122 Job Setting Database (Job Setting DB)
122-1 Job table
123 Action Setting Database (Action Setting DB)
123-1 Action table
123-2 Action program information table
123-3 Table for each action type
151 Trigger activation unit
151-1 Trigger type 1 setting program
151-2 Trigger type 2 setting program
151-3 Trigger type 3 setting program
152 Flow control section
152-1 Action type 1 setting program
152-2 Action type 2 setting program
152-3 Action type 3 setting program
153-1 Trigger type 1 execution program
153-2 Trigger Type 2 Execution Program
153-3 Trigger Type 3 Execution Program
153-4 Trigger Type 4 Execution Program
154-1 Action type 1 execution program
154-2 Action type 2 execution program
154-3 Action type 3 execution program
154-4 Action type 4 execution program

Claims (2)

FAネットワークを介してプログラマブルロジックコントローラに接続し、上記プログラマブルロジックコントローラのデータを管理するデータ管理装置におけるデータ管理方法において、
上記プログラマブルロジックコントローラに対する各処理の開始タイミングを示す複数のトリガのそれぞれに対して、トリガを発生するためのトリガ種別実行プログラムと一意のトリガID対応させて設定し、
上記プログラマブルロジックコントローラに対する各処理の実際の内容を示す複数のアクションのそれぞれに対して、アクションを実行するためのアクション種別実行プログラムと一意のアクションID対応させて設定し、
上記複数のトリガの中から発生させるトリガが選択され、そのトリガが発生したときに実行するアクションが選択され、その選択されたトリガとアクションとの組み合わせを上記トリガIDと上記アクションIDとを対応させて記憶することにより、ジョブを設定し、
上記トリガ種別実行プログラムを起動して実行することによって、対応するトリガIDを付加したトリガを発生し、そのトリガIDを元に上記設定したジョブを検索して対応するアクションIDを特定し、その特定のアクションIDに対応するアクション種別実行プログラムを実行して、上記ジョブ設定にしたがって所望のアクションを自動実行する
ことを特徴とするデータ管理方法。
A data management method in a data management device that connects to a programmable logic controller via an FA network and manages data of the programmable logic controller,
For each of a plurality of trigger indicating the start timing of each process for the programmable logic controller, in association with the unique trigger ID and the trigger type execution program for generating the trigger set,
For each of a plurality of action that indicates the actual content of each process for the programmable logic controller, and a unique action ID and the action type execution program for executing the action to set corresponding,
Said plurality of triggers to be generated from the trigger is selected, the trigger is selected action to be performed when an error occurs, the combination of the selected triggers and actions made to correspond to the aforementioned trigger ID and the action ID By setting and storing the job,
By executing by activating the trigger type execution program, generating a trigger added with corresponding trigger ID, to identify the action ID corresponding to search the job the set based on the trigger ID, the specific A data management method characterized by executing an action type execution program corresponding to the action ID of (1) and automatically executing a desired action according to the job setting .
FAネットワークを介してプログラマブルロジックコントローラに接続し、上記プログラマブルロジックコントローラのデータを管理するデータ管理装置において、
上記プログラマブルロジックコントローラに対する各処理の開始タイミングを示す複数のトリガのそれぞれに対して、トリガを発生するためのトリガ種別実行プログラムと一意のトリガIDとを対応させて設定するトリガ設定手段と、
上記プログラマブルロジックコントローラに対する各処理の実際の内容を示す複数のアクションのそれぞれに対して、アクションを実行するためのアクション種別実行プログラムと一意のアクションIDとを対応させて設定するアクション設定手段と、
上記複数のトリガのいずれかのトリガと、そのトリガが発生したときに実行するアクションとの組み合わせのジョブを、上記トリガIDと上記アクションIDとを対応付けて設定し、それを記憶するジョブ設定手段と、
上記トリガ設定手段からトリガ種別実行プログラムを読み出し、そのトリガ種別実行プログラムを実行することによって対応するトリガIDを付加してイベント通知をし、イベント通知によりそのトリガIDを元に上記ジョブ設定手段を検索することによって対応するアクションIDを取得し、上記アクション設定手段から取得した特定のアクションIDに対応するアクション種別実行プログラムを取得し、そのアクション種別実行プログラムの実行処理を行う制御手段と、
を具備することを特徴とするデータ管理装置。
A data management device that connects to the programmable logic controller via an FA network and manages data of the programmable logic controller,
Trigger setting means for setting a trigger type execution program for generating a trigger and a unique trigger ID in association with each of the plurality of triggers indicating the start timing of each process for the programmable logic controller,
Action setting means for setting an action type execution program for executing an action and a unique action ID in association with each of a plurality of actions indicating the actual contents of each process for the programmable logic controller,
Job setting means for setting a job of a combination of any one of the plurality of triggers and an action to be executed when the trigger occurs by associating the trigger ID with the action ID and storing the job When,
The trigger type execution program is read from the trigger setting means, the corresponding trigger ID is added by executing the trigger type execution program, an event notification is performed, and the job setting means is searched based on the trigger ID by the event notification. Control means for acquiring an action ID corresponding to the specified action ID, acquiring an action type execution program corresponding to the specific action ID acquired from the action setting means, and executing the action type execution program.
A data management device comprising:
JP20302698A 1998-07-17 1998-07-17 Data management method, data management device, and their recording media Expired - Lifetime JP3580347B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20302698A JP3580347B2 (en) 1998-07-17 1998-07-17 Data management method, data management device, and their recording media

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20302698A JP3580347B2 (en) 1998-07-17 1998-07-17 Data management method, data management device, and their recording media

Publications (2)

Publication Number Publication Date
JP2000035811A JP2000035811A (en) 2000-02-02
JP3580347B2 true JP3580347B2 (en) 2004-10-20

Family

ID=16467128

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20302698A Expired - Lifetime JP3580347B2 (en) 1998-07-17 1998-07-17 Data management method, data management device, and their recording media

Country Status (1)

Country Link
JP (1) JP3580347B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015162794A1 (en) * 2014-04-25 2015-10-29 三菱電機株式会社 Information linkage assistance device and information linkage assistance program
KR20150134418A (en) 2013-04-10 2015-12-01 미쓰비시덴키 가부시키가이샤 Numerical-value control device, information coordination system, and information coordination program

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004005302A (en) * 2002-06-03 2004-01-08 Yaskawa Electric Corp Motion program execution device and motion program debugging device
JP4538713B2 (en) * 2003-10-22 2010-09-08 オムロン株式会社 Data collection unit and display system
JP6444932B2 (en) 2016-04-15 2018-12-26 ファナック株式会社 Server-based application software execution system

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150134418A (en) 2013-04-10 2015-12-01 미쓰비시덴키 가부시키가이샤 Numerical-value control device, information coordination system, and information coordination program
KR101703466B1 (en) 2013-04-10 2017-02-06 미쓰비시덴키 가부시키가이샤 Numerical-value control device, information coordination system, and computer readable medium for information coordination program
US10108179B2 (en) 2013-04-10 2018-10-23 Mitsubishi Electric Corporation Numerical control device, information coordination system, and information coordination program
DE112013006836B4 (en) * 2013-04-10 2019-04-11 Mitsubishi Electric Corporation Numerical control device and information coordination system
WO2015162794A1 (en) * 2014-04-25 2015-10-29 三菱電機株式会社 Information linkage assistance device and information linkage assistance program
KR20160020569A (en) 2014-04-25 2016-02-23 미쓰비시덴키 가부시키가이샤 Information linkage assistance device and information linkage assistance program
JP5875737B1 (en) * 2014-04-25 2016-03-02 三菱電機株式会社 Information cooperation support device, information cooperation support program
CN105393181A (en) * 2014-04-25 2016-03-09 三菱电机株式会社 Information linkage assistance device and information linkage assistance program
KR101665300B1 (en) 2014-04-25 2016-10-11 미쓰비시덴키 가부시키가이샤 Information linkage assistance device and recording medium recording information linkage assistance program
CN105393181B (en) * 2014-04-25 2017-06-09 三菱电机株式会社 Information synergism servicing unit, information synergism auxiliary program
US9841754B2 (en) 2014-04-25 2017-12-12 Mitsubishi Electric Corporation Information-linkage supporting apparatus and information-linkage supporting program
DE112014002981B4 (en) * 2014-04-25 2020-03-12 Mitsubishi Electric Corporation Information linkage system

Also Published As

Publication number Publication date
JP2000035811A (en) 2000-02-02

Similar Documents

Publication Publication Date Title
CN100442176C (en) Control system setting device
US7630777B2 (en) Apparatus and method for configurable process automation in a process control system
US8290627B2 (en) Dynamically extensible and automatically configurable building automation system and architecture
US8060223B2 (en) Editing lifecycle and deployment of objects in an industrial automation environment
US7930639B2 (en) Contextualization for historians in industrial systems
JP5583305B2 (en) Programmable logic controller, programming tool, and program parameter editing system
CN1849582A (en) Method and apparatus for providing automatic software updates
JP2005327263A (en) Control system setting device
JP5512051B1 (en) Numerical control device, information linkage system, and information linkage program
EP2256635B1 (en) System and method for storing data from an industrial controller
JP3580347B2 (en) Data management method, data management device, and their recording media
WO2007024573A2 (en) Dynamically extensible and automatically configurable building automation system and architecture
JP2003076405A (en) Control display device, control system, control program and recording medium recording the same
JP6337956B2 (en) Control device, control system, control device control method, and control system control method
JP2000268016A (en) Distributed control system and its constituting element
WO2019176336A1 (en) Control system, development assistance device, and development assistance program
EP3104236B1 (en) Control device, control system, support apparatus, and control-device maintenance management method
JP3988605B2 (en) Setting tool device
JP3738803B2 (en) Data collection controller
JP3580348B2 (en) Data download control method, data download control device, and their recording media
WO2008005446A1 (en) Apparatus and method for configurable process automation in a process control system
US20180267492A1 (en) Method and System For An Automated Configuration Of An Industrial Controller
CN104714776A (en) Electronic device and baseboard management controller input simplified system and simplified method
EP1738235B1 (en) Control system, method and computer program
JP2002055713A (en) Plant control system

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040329

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040528

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040713

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

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20080730

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090730

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090730

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100730

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110730

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20110730

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20120730

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20130730

Year of fee payment: 9

EXPY Cancellation because of completion of term