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
JP3750549B2 - Connection confirmation device, connection confirmation method, connection confirmation program, and computer-readable recording medium recording the program - Google Patents
[go: Go Back, main page]

JP3750549B2 - Connection confirmation device, connection confirmation method, connection confirmation program, and computer-readable recording medium recording the program - Google Patents

Connection confirmation device, connection confirmation method, connection confirmation program, and computer-readable recording medium recording the program Download PDF

Info

Publication number
JP3750549B2
JP3750549B2 JP2001084867A JP2001084867A JP3750549B2 JP 3750549 B2 JP3750549 B2 JP 3750549B2 JP 2001084867 A JP2001084867 A JP 2001084867A JP 2001084867 A JP2001084867 A JP 2001084867A JP 3750549 B2 JP3750549 B2 JP 3750549B2
Authority
JP
Japan
Prior art keywords
input
output
address
connection confirmation
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2001084867A
Other languages
Japanese (ja)
Other versions
JP2002287806A (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.)
Nissan Motor Co Ltd
Original Assignee
Nissan Motor Co Ltd
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 Nissan Motor Co Ltd filed Critical Nissan Motor Co Ltd
Priority to JP2001084867A priority Critical patent/JP3750549B2/en
Publication of JP2002287806A publication Critical patent/JP2002287806A/en
Application granted granted Critical
Publication of JP3750549B2 publication Critical patent/JP3750549B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Testing And Monitoring For Control Systems (AREA)
  • Programmable Controllers (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、制御機器と、この制御機器に接続される機器との接続が正しく行われているかどうかを確認するための接続確認装置、接続確認方法、接続確認プログラム、およびこのプログラムを記録したコンピュータ読み取り可能な記録媒体に関する。
【0002】
【従来の技術】
いわゆるシーケンサやプログラマブルコントローラなどの制御機器には、数多くの機械やスイッチ、信号灯などの機器が配線により接続されている。
【0003】
そして、制御機器の入出力端子と各種機器とが計画どおりに接続されているか否かを確認することは、これら機器を正常の動作させるために必要不可欠な重要事項である。
【0004】
従来は多くの場合、このような接続確認の作業を、作業員の目視によって確かめていた。
【0005】
また、特開平7−182421号公報では、制御機器に接続された各種機器を動作させ、そのとき点灯する表示灯などが、決められたチェックテーブルどおりか否かを作業員が確かめることにより、計画どおりに接続されているか否かを確認することが開示されている。
【0006】
【発明が解決しようとする課題】
ところが一つの制御機器には、多数の入出力端子があり、そこに様々な機器が接続されている。たとえば、制御機器であるシーケンサによって一つのアクチュエータを動作させる場合、アクチュエータを出限に動作させるための指令を出力するシーケンサの出力端子にアクチュエータを出限に動作させるソレノイドを接続し、同様に戻限の動作指令を出力するシーケンサの出力端子にアクチュエータを戻限に動作させるソレノイドを接続し、各出力端子にはそれぞれの動作を指令する出力アドレスが設定される。そして、アクチュエータが出限に到達したことを検出するリミットスイッチとその信号を受けるシーケンサの入力端子、同様に戻限に到達したことを検出するリミットスイッチと入力端子を接続し、これらの入力端子の信号を受けるための入力アドレスをそれぞれの入力端子に設定する。
【0007】
このように一つのアクチュエータを動作させるだけで、4個の接続があり、これを計画どおりに接続されているか否かを確認するだけでも多くの作業時間と労力を有するものであるが、通常はアクチュエータの数だけでも数十個あり、したがって、接続確認を行わなければならない箇所は数百に及ぶことになる。
【0008】
このため、従来のように作業員の目視によるチェックでは、どうしてもチェック漏れなどが生じるおそれがあるため、一つひとつ慎重に確認する必要があり、また場合によっては、二重、三重の度重なるチェックも必要となるため、この配線確認の作業は、膨大な作業時間と労力を要するものとなっていた。
【0009】
また、前記公報のように、動作確認をモニター上で行えるとしても目視によるチェックであるため、ある動作に対して、モニター上の点灯(または消灯)したポイントが計画どおりのものであるか否かを判断するのは作業員が行っているため、やはりチェック漏れを回避するためには、慎重かつ細心の注意が必要であり、作業負担が大きなものである。
【0010】
そこで、本発明の目的は、制御機器と、それに接続されている様々な機器との接続確認を自動的に行うことのできる接続確認装置、およびその方法を提供することであり、また、本発明の目的は、このような接続確認をコンピュータにより自動的に行うためのプログラムと、そのプログラムを記録した記録媒体を提供することである。
【0011】
【課題を解決するための手段】
本発明の目的は、以下の構成により達成される。
【0012】
(1)第1の機器と、該第1の機器の動作に従って信号を出力する複数の第2の機器と、該第1の機器および該第2の機器が接続された制御機器と、を有する設備群における、前記第1の機器および前記第2の機器と前記制御機器との間の接続を確認する接続確認装置であって、前記第1の機器へ信号を出力する前記制御機器の出力アドレスと、前記第2の機器からの信号が入力される前記制御機器の入力アドレスとを設定したパラメータ群を記憶するパラメータ記憶手段と、前記第2の機器のそれぞれについて前記入力アドレスが設定されているか否かを前記パラメータ群から調べて、その結果を前記第2の機器に対応させた任意の順番に並べた元データを作成する元データ作成手段と、前記出力アドレスから動作指令信号を出力する動作指令信号出力手段と、前記動作指令信号出力後、前記パラメータ群に設定されている入力アドレスに現在入力があるか否かを調べて、その結果を前記順番で並べた動作データを作成する動作データ作成手段と、前記元データにおける入力アドレスの設定の有無と、前記動作データにおける入力の有無とが同じ順番で並んでいるか否かを比較して接続状態を判定する接続判定手段と、を有することを特徴とする接続確認装置。
【0013】
(2)前記(1)記載の接続確認装置を用いて、第1の機器と、該第1の機器の動作に従って信号を出力する複数の第2の機器と、該第1の機器および該第2の機器が接続された制御機器と、を有する設備群における、前記第1の機器および前記第2の機器と前記制御機器との間の接続を確認する接続確認方法であって、前記第1の機器へ信号を出力する前記制御機器の出力アドレスと、前記第2の機器からの信号が入力される前記制御機器の入力アドレスとを設定したパラメータ群から、前記第2の機器のそれぞれについて前記入力アドレスが設定されているか否かを調べて、その結果を前記第2の機器に対応させた任意の順番に並べた元データを作成する段階と、前記出力アドレスから動作指令信号を出力する段階と、前記動作指令信号出力後、前記パラメータ群に設定されている入力アドレスに入力があるか否かを調べて、その結果を前記順番で並べた動作データを作成する段階と、前記元データにおける入力アドレスの設定の有無と前記動作データにおける入力の有無とが同じ順番で並んでいるか否かを比較して接続状態を判定する段階と、を有することを特徴とする接続確認方法。
【0014】
(3)第1の機器と、該第1の機器の動作に従って信号を出力する複数の第2の機器と、該第1の機器および該第2の機器が接続された制御機器と、を有する設備群における、前記第1の機器および前記第2の機器と前記制御機器との間の接続を確認するために、コンピュータによって実行される接続確認プログラムであって、前記第1の機器へ信号を出力する前記制御機器の出力アドレスと、前記第2の機器からの信号が入力される前記制御機器の入力アドレスとを設定したパラメータ群から、前記第2の機器のそれぞれについて前記入力アドレスが設定されているか否かを調べて、その結果を前記第2の機器に対応させた任意の順番に並べた元データを作成する手順と、前記元データを記憶手段に記憶する手順と、前記出力アドレスから動作指令信号を出力する手順と、前記動作指令信号出力後、前記パラメータ群に設定されている入力アドレスに現在入力があるか否かを調べて、その結果を前記順番で並べた動作データを作成する手順と、前記動作データを記憶手段に記憶する手順と、前記元データと前記動作データを記憶手段から読み出して、前記元データにおける入力アドレスの設定の有無と、前記動作データにおける入力の有無とが同じ順番で並んでいるか否かを比較して接続状態を判定する手順と、を有することを特徴とする接続確認プログラム。
【0015】
(4)前記接続確認プログラムにおいて、前記元データは、入力アドレスの設定がある場合に第1の符号がセットされ、入力アドレスの設定がない場合に第2の符号がセットされて、前記順番に並べられた構造のデータであり、前記動作データは、入力アドレスに入力がある場合に第1の符号がセットされ、入力アドレスに入力がない場合に第2の符号がセットされて前記順番に並べられた構造のデータであることを特徴とする。
【0016】
(5)前記(3)または(4)記載の接続確認プログラムを記憶したことを特徴とするコンピュータ読み取り可能な記憶媒体。
【0017】
【発明の効果】
本発明は、請求項ごとに以下の効果を奏する。
【0018】
請求項1記載の本発明によれば、第1の機器へ信号を出力する出力アドレスと、第2の機器からの入力を受ける入力アドレスをパラメータ群として記憶し、このパラメータ群を参照して、第2の機器に対して入力アドレスが割り当てられているか否かを調べて、その結果を第2の機器に対応させた任意の順番に並べた元データを作成することで、入力アドレスの設定されている第2の機器が任意の順番で並んだデータを得る一方、出力アドレスから動作指令信号出力を出力後、前記パラメータ群により調べた入力アドレスの状態を前記の順番で並べた動作データを作成することで、第2の機器を対応させた順番で動作指令信号出力後の入力アドレスの状態が並んだデータを得て、元データにおける入力アドレスの設定の有無と動作データにおける入力の有無との順番を比較することとしたので、制御機器内で設定される入出力アドレスに対して計画どおりに各機器が接続されているか否か自動的に確認することができる。
【0019】
請求項2記載の本発明によれば、第1の機器へ信号を出力する出力アドレスと、第2の機器からの入力を受ける入力アドレスをパラメータ群から、第2の機器に対して入力アドレスが割り当てられているか否かを調べて、その結果を第2の機器に対応させた任意の順番に並べた元データを作成することで、入力アドレスの設定されている第2の機器が任意の順番で並んだデータを得る一方、出力アドレスから動作指令信号出力を出力後、前記パラメータ群により調べた入力アドレスの状態を前記の順番で並べた動作データを作成することで、第2の機器を対応させた順番で動作指令信号出力後の入力アドレスの状態が並んだデータを得て、元データにおける入力アドレスの設定の有無と動作データにおける入力の有無との順番を比較することとしたので、制御機器内で設定される入出力アドレスに対して計画どおりに各機器が接続されているか否か自動的に確認することができる。
【0020】
請求項3記載の本発明によれば、第1の機器へ信号を出力する出力アドレスと、第2の機器からの入力を受ける入力アドレスをパラメータ群として記憶し、このパラメータ群を参照して、第2の機器に対して入力アドレスが割り当てられているか否かを調べて、その結果を第2の機器に対応させた任意の順番に並べた元データを作成することで、入力アドレスの設定されている第2の機器が任意の順番で並んだデータを得る一方、出力アドレスから動作指令信号出力を出力後、前記パラメータ群により調べた入力アドレスの状態を前記の順番で並べた動作データを作成することで、第2の機器を対応させた順番で動作指令信号出力後の入力アドレスの状態が並んだデータを得て、元データにおける入力アドレスの設定の有無と動作データにおける入力の有無との順番を比較することとしたので、制御機器内で設定されている出力アドレスに対して計画どおりに各機器が接続されているか否か自動的に確認することができる。
【0021】
請求項4記載の本発明によれば、元データを、入力アドレスの設定がある場合に第1の符号がセットされ、入力アドレスの設定がない場合に第2の符号がセットされて、前記順番に並べられた構造とし、動作データを、入力アドレスに入力がある場合に第1の符号がセットされ、入力アドレスに入力がない場合に第2の符号がセットされて前記順番に並べられた構造としたので、元データと動作データを比較する際に、第1の符号と第2の符号による単純な構造のデータを比較するだけでよいので、接続の状態を判定する手順を非常に速く、かつ簡単に行うことができる。
【0022】
請求項5記載の本発明によれば、請求項3または4に記載の接続確認プログラムを記録したコンピュータ読み取り可能な記憶媒体であるので、自動的に機器間の接続確認を行うためのコンピュータプログラムを提供することができる。
【0023】
【発明の実施の形態】
以下添付した図面を参照して本発明の一実施の形態を説明する。
【0024】
図1は、本発明を適用した接続確認装置の機能を備えたシーケンサの機能構成を示すブロック図であり、図2には本実施の形態によって接続の確認作業を行う設備例を示す図面である。
【0025】
このシーケンサ1は、プログラムの実行や各種処理を行う演算処理部11と、様々な機器と接続が行われるI/Oポート12と、各機器との入出力アドレスを設定したパラメータ群を記憶するパラメータ記憶部13と、各入出力アドレスの信号の状態を記憶する状態一時記憶部14と、各機器ごとの入力アドレスの設定の有無を記憶する元データ記憶部15、動作後の入力アドレスの信号状態を記憶する動作データ記憶部16と、とからなる。また、このシーケンサ1には、シーケンサとしてのプログラムや各種設定、および接続確認のための指示を入力する入力装置17と、プログラムの進行状況や設備の状態、および接続確認の結果などを表示するためのモニター18が接続されている。
【0026】
演算処理部11は、シーケンサとしての基本機能であるプログラムの実行と共に、本発明による配線接続確認のためのプログラムを実行する。
【0027】
I/Oポート12は、様々な機器、たとえばアクチュエータを動作させるためのシリンダやソレノイド、リミットスイッチなどとシーケンサを接続するための複数の入出力端子が備えられている。各入出力端子には、入出力アドレスがソフト的に割り当てられる。
【0028】
パラメータ記憶部13は、設備設計計画書あるいはシーケンサの動作設計書などにしたがって、シーケンサの入出力アドレスと各機器との接続関係を設定するパラメータ群を記憶したものである(詳細後述)。
【0029】
状態一時記憶部14は、各入力アドレスの現在の状態を一時的に記憶しておくものである(詳細後述)。
【0030】
元データ記憶部15は、パラメータ記憶部13に基づいて作成された元データを記憶するものであり、この元データは機器ごとに入力アドレスの設定があるか否かを符号化し、任意の順番に並べたものである。なお、元データの作成手順については後述する。
【0031】
動作データ記憶部16は、動作出力が行われた後における、入力端子の信号状態を符号化して記憶しておくものである。なお、動作データの作成手順については後述する。
【0032】
なお、これら各部は、実際にはシーケンサ内部のCPUやメモリなどが、CPUによって本発明を適用したプログラムを実行することにより機能するものである。また、このプログラムは、光記録媒体や光磁気記録媒体、あるいは磁気記録媒体などの記録媒体に記録されて、シーケンサに提供され、あるいは、ネットワークによって接続されているシーケンサでは、このネットワークを介して提供される。
【0033】
ここで本実施の形態によって接続確認を行う設備構成例について、図2を参照して説明する。
【0034】
この設備例は、2つのアクチュエータを動作させるもので、第1アクチュエータと第2アクチュエータよりなる。第1アクチュエータは、第1シリンダ51および第2シリンダ52の2つのシリンダによって動作する。これら2つのシリンダ51および52は第1ソレノイド61に接続されていて、第1ソレノイド61の動作によって2つのシリンダが同時に動く。一方、第2アクチュエータは、一つのシリンダ53により動作し、シリンダ53は、第2ソレノイド62に接続されている。なお、アクチュエータ本体については図示省略した。
【0035】
各アクチュエータを動作させるシリンダには、それぞれ出限、戻限を検出するためのリミットスイッチ(LS)が設けられている。ここでは、第1アクチュエータの第1シリンダ51の出限を検出するための出限LS1、同戻限を検出する戻限LS1、第2シリンダ52の出限を検出するための出限LS2、同戻限を検出する戻限LS2、第2アクチュエータのシリンダ53の出限を検出するための出限LS3、同戻限を検出する戻限LS3である。ここで、リミットスイッチLSには、各LSを識別するためにLS1、LS2、LS3、…LSnと、任意の順番が割り当てられている。
【0036】
これら各ソレノイドおよびリミットスイッチと、シーケンサ1との接続は、シーケンサ1のI/Oポート12において行われる。
【0037】
図3は、I/Oポート12内の各入出力端子に設定されているアドレスと、各ソレノイドおよびリミットスイッチとの接続関係を示す図面である。
【0038】
シーケンサ1の入力は、図示するように、入力アドレスX300が出限LS1、X301が戻限LS1、X302が出限LS2、X303が戻限LS2、X400が出限LS3、X401が戻限LS3にそれぞれ接続されている。一方、シーケンサ1の出力は、出力アドレスY700が第1ソレノイド61の出限側に、Y701が第1ソレノイド61の戻限側に、Y702が第2ソレノイド62の出限側に、Y703が第2ソレノイド62の戻限側に、それぞれ接続されている。
【0039】
このような設備構成において、パラメータ記憶部13に記憶されるパラメータ群は、図4に示すように、動作主体であるアクチュエータを中心にまとめられている。
【0040】
このパラメータ群で、出力関係は、第1アクチュエータを出限へ動作させるためのソレノイド出の指示が出力アドレスY700から出力され、第2アクチュエータを出限へ動作させるためのソレノイド出の指示が出力端子Y702から出力されることがわかるようになっている。同様に、第1アクチュエータを戻限へ動作させるためのソレノイド戻の指示が出力端子Y701から出力され、第2アクチュエータを戻限へ動作させるためのソレノイド戻の指示が出力端子Y703から出力されることがわかるようになっている。
【0041】
一方、入力に関しては、出限LS1の信号が入力アドレスX300に、出限LS2の信号がX302に、出限LS3の信号がX400に、戻限LS1の信号がX301に、戻限LS2の信号がX303に、戻限LS3の信号がX401に、それぞれ入力されることがわかるようになっている。
【0042】
以下、このような設備構成を前提にして、本実施の形態におけるシーケンサ1の接続確認装置としての作用を説明する。
【0043】
まず、元データの作成手順について説明する。
【0044】
図5は、元データの作成手順を示すフローチャートである。
【0045】
この元データの作成は、一つのアクチュエータごとに行う。
【0046】
まず、元データ記憶部15のデータをすべて「0」クリアする(S1)。ここで、元データ記憶部15に記憶される元データは、出限側8ビット、戻限側8ビットの合計16ビット構成としている(図6参照)。なお、元データのビット数は、本実施の形態の場合、出限リミットスイッチと戻限リミットスイッチのすべてをあわせても合計6個であるため、16ビットあれば十分である。しかし、さらに設備群に存在する機器の数が多ければ、それにあわせて元データのビット数を多くしてもよい。
【0047】
続いて、繰り返し変数nを1にする(S2)。ここで繰り返し変数nは、LSに割り当てた順番であるとともに、元データのビット位置を示す。
【0048】
続いて、nが最終値8を越えたか否かを判断し(S3)、越えた場合には処理終了となる。一方、越えていなければ、続いて、入出力パラメータ記憶部13のパラメータ群を参照して、出限LSnに設定されている入力アドレスがあるか否かを判断する(S4)。ここで、はじめはn=1であるから、出限LS1に入力アドレスが設定されているか否かを判断することになり、第1アクチュエータでは、ここにX300が設定されているので、「設定あり」と判断される。なお、ここで設定なしの場合には、そのままステップS6へ進む。
【0049】
設定ありの場合は、続いて、元データの第nビット目を「1」にする(S5)。はじめのn=1のときは、前記のように設定ありであるので、元データの第1ビット目を「1」にする。
【0050】
続いて、戻限LSnに設定されている入力アドレスがあるか否かを判断する(S6)。ここでも、はじめはn=1であるから、戻限LS1に入力アドレスが設定されているか否かを判断することになり、第1アクチュエータでは、ここにX301が設定されているので、「設定あり」と判断される。なお、ここで設定なしの場合には、そのままステップS8へ進む。
【0051】
設定ありの場合は、続いて、元データの第n+8ビット目を「1」にする(S7)。はじめのn=1のときは、前記のように設定ありであるので、元データの第9ビット目を「1」にする。
【0052】
そして、変数nをインクリメントして(S7)、前記ステップS3へ戻り、n>8となるまでステップS3〜8までの処理を繰り返し実行する。
【0053】
以上の処理は、第1アクチュエータと第2アクチュエータのそれぞれに対応するように実行する。
【0054】
図6は、このようにして作成された元データの一例である。図6Aに示す元データは、第1アクチュエータ用のものである。したがって、出限側の入力アドレスの有無を示している第1ビット目と第2ビット目が「1」であり、これらは第1アクチュエータの出限LS1およびLS2に対応している。また、第9ビット目と第10ビット目が「1」であり、これらは第1アクチュエータの戻限LS1および2に対応している。同様に、図6Bに示すものは、第2アクチュエータ用のもので、第3ビット目が「1」で出限LS3に対応しており、第11ビット目が「1」で戻限LS3に対応している。
【0055】
この元データは、パラメータ群から作成されたものであるため、計画に従って接続が行われるリミットスイッチに対応した入力アドレスの有無が「1」、「0」に符号化されて並んだデータとなる。
【0056】
次に、実際に計画どおりに各機器が接続されているか否か判断する手順について説明する。
【0057】
図7〜9は、接続確認手順を示すフローチャートである。
【0058】
この接続確認についても、アクチュエータごとに以下の処理を行う。
【0059】
まず、すべてのソレノイドに対して戻り動作が行われるようにソレノイド戻りの指令を出力する(S11)。この処理は、初期状態としてすべてのアクチュエータの位置を戻り位置に復帰させておくためである。
【0060】
続いて、すべての入力アドレス(X300、X301、X302、X303、X400、X401(以下同様))の現在の状態を、状態一時記憶部14に第1状態保存として記憶する(S12)。ここでは、信号がある場合を「1」、ない場合を「0」とする(以下同様)。
【0061】
続いて、接続確認対象のアクチュエータを動作させるために必要な出力アドレスからソレノイド出の指令を出力する(S13)。ここでは、接続確認の対象が第1アクチュエータの場合には、出力アドレスY700がオンになる。同様に第2アクチュエータが接続確認の対象の場合には、出力アドレスY702がオンになる。
【0062】
続いて、すべての入力アドレスの現在の状態を状態一時記憶部14に、第2状態保存として記憶する(S14)。
【0063】
続いて、第1状態保存と第2状態保存に記憶された信号状態を比較し、変化があった入力アドレスがあるか否かを調べる(S15)。ここで、変化がなければ接続確認対象としているアクチュエータの出限側の配線系統に、たとえば断線や未接続などの接続不良があるものとして、接続確認対象アクチュエータ名と出限側の接続不良がある旨、警告を表示する(S101)。
【0064】
これは、出力アドレスからの動作指令出力の前後において、入力アドレスの状態に変化がないということであり、アクチュエータの出限側の配線系統、たとえば接続確認対象が第1アクチュエータの場合は、I/Oポート12の出力アドレスY700が設定されている出力端子と第1ソレノイド61の出限側の配線、出限LS1とX300が設定されている入力端子との間の配線、および出限LS2とX302が設定されている入力端子との間の配線において、この系統のどこかに断線や未接続状態などがあり、このためにソレノイド51が動いていないか、または出限LS1および2からの信号がまったく入力されていないかのいずれかの状態である。
【0065】
ステップS15において、第1状態保存と第2状態保存で信号状態に変化があったアドレスがある場合は、以降のステップS16〜20によって動作データ記憶部16に記憶される動作データのうち出限側のデータを作成する。動作データも元データと同じように出限側8ビット、戻限側8ビットの合計16ビットのデータである(図10参照)
まず、繰り返し変数nを1にする(S16)。繰り返し変数nは先の元データ作成に使用したものと同じように1〜8である。
【0066】
続いて、nが最終値8を越えたか否かを判断し(S17)、n>8の場合は、後述のステップS21へ進む。ここで、nが8を越えていなければ、続いて、入出力パラメータ記憶部13のパラメータ群を参照して、出限LSnに設定されている入力アドレスがあるか否かを判断する(S18)。ここで、はじめはn=1であるから、出限LS1に入力アドレスが設定されているか否かを判断することになり、第1アクチュエータでは、ここにX300が設定されているので、「設定あり」と判断される。なお、ここで設定なしの場合には、そのままステップS20へ進む。
【0067】
続いて、設定ありの場合は、動作データの第nビット目に、第2状態保存として記憶されている入力アドレスのうち、出限LSnに対応しているアドレスの現在値を入れる(S19)。はじめのn=1のときは、前記のように出限LS1の入力アドレスはX300であるから、第2状態保存のX300の現在値が、動作データの第1ビット目にセットされる。
【0068】
ここで、接続が正常に行われていれば、X300には入力があるはずであるから、動作データの第1ビット目には「1」が入る。一方、X300に対して、入力がない状態となっている場合には、動作データの第1ビット目に「0」が入ることになる。
【0069】
続いて、変数nをインクリメントして(S20)、前記ステップS17へ戻り、n>8となるまでステップS17〜20までの処理を繰り返し実行する。
【0070】
ここまでで出限側の動作データが作成されたので、続いて戻限側の動作データの作成に進む。
【0071】
まず、接続確認対象のアクチュエータを動作させるためにソレノイド戻の指令を出力する(S21)。接続確認の対象が第1アクチュエータの場合には、ここで、出力アドレスY701がオンになる。同様に第2アクチュエータが接続確認の対象の場合には、出力アドレスY703がオンになる。
【0072】
続いて、すべての入力アドレスの現在の状態を状態一時記憶部14に、第3状態保存として記憶する(S22)。
【0073】
続いて、第2状態保存と第3状態保存に記憶された信号状態に変化があったアドレスがあるか否かを調べる(S23)。ここで、変化がなければ接続確認対象としているアクチュエータの戻限側の配線系統に、たとえば断線や未接続などの接続不良があるものとして、接続確認対象アクチュエータ名と「戻限側接続不良」を表示する(S102)。
【0074】
ここで、アクチュエータの出限側の配線系統とは、たとえば接続確認対象が第1アクチュエータの場合は、I/Oポート12の出力アドレスY701が設定されている出力端子と第1ソレノイド61の戻限側の信号配線、戻限LS1とX301が設定されている入力端子との間、および戻限LS2とX303が設定されている入力端子との間である。そして、これらの接続不良とは、断線や未接続状態であり、この系統の信号経路がどこかで途切れているような場合である。
【0075】
ステップS23において、第2状態保存と第3状態保存に記憶された各入力端子の信号状態のいずれかに変化がある場合は、以降ステップS24〜28まで、動作データ記憶部16に記憶される動作データのうち戻限側のデータを作成する。 まず、繰り返し変数nを1にする(S24)。続いて、nが最終値8を越えたか否かを判断し(S25)、越えた場合には、後述するステップS29へ進む。一方、越えていなければ、続いて、入出力パラメータ記憶部13のパラメータ群を参照して、戻限LSnに設定されている入力アドレスがあるか否かを判断する(S26)。ここで、はじめはn=1であるから、戻限LS1に入力アドレスが設定されているか否かを判断することになり、第1アクチュエータでは、ここにX301が設定されているので、「設定あり」と判断される。なお、ここで設定なしの場合には、そのままステップS28へ進む。
【0076】
続いて、設定ありの場合は、動作データの第n+8ビット目に、第3状態保存として記憶されている入力アドレスのうち、戻限LSnに対応しているアドレスの現在値を入れる(S27)。はじめのn=1のときは、前記のように戻限LS1の設定アドレスはX301であるから、第3状態保存のX301の現在値が、動作データの第1ビット目に入れられる。
【0077】
ここで、接続が正常に行われていれば、X301には入力があるはずであるから、動作データの第9ビット目には「1」が入る。一方、X301に対して、入力がない状態となっている場合には、動作データの第9ビット目に「0」が入ることになる。
【0078】
続いて、変数nをインクリメントして(S28)、前記ステップS25へ戻り、n>8となるまでステップS25〜28までの処理を繰り返し実行する。
【0079】
以上により動作データが完成する。完成した動作データは、各リミットスイッチからの信号が実際に入力されている入力アドレスと対応付けたものである。したがって、たとえば、第1のアクチュエータについて、すべての接続が正常であれば、図10Aに示すようなデータとなるが、もし誤配線があり、どこかの信号が適切な入力端子に入っていなければ、その部分のビットのデータが「1」、あるいは適切な入力アドレスに対応した部分のデータが「0」になる。たとえば、出限LS1が誤って入力アドレスX400に入力されていた場合には、作成された動作データは、図10Bに示すように、出限LS1に対応する順番の第2ビット目が「0」で、入力アドレスX400が設定されている第3ビット目が「1」となったデータとなる。
【0080】
ここまでの段階で、リミットスイッチにつけた順番に、入力アドレスの現在の状態が、「1」、「0」で符号化されて並んだ動作データが得られる。得られたデータは動作データ記憶部16へ記憶されている。
【0081】
続いて、元データと動作データをそれぞれ元データ記憶部15と動作データ記憶部16から読み出して、これらを比較して一致しているか否かを判断する(S29)。ここで、元データと動作データが一致していれば、誤配線はないので、接続確認対象となっているアクチュエータ名と配線が正常に行われている旨表示して(S30)、処理を終了する。
【0082】
一方、元データと動作データが一致していなければ、誤配線が発生しているため、接続確認対象となっているアクチュエータ名と誤配線による配線不良がある旨の警告を表示して(S103)、処理を終了する。
【0083】
以上の処理は、第1アクチュエータと第2アクチュエータのそれぞれに対応するように実行する。
【0084】
以上のように、本実施の形態では、パラメータ群から入力アドレスの設定がある各リミットスイッチを「1」、「0」に符号化して任意の順番(ここではLSにつけた番号順)に並べた元データを作成し、アクチュエータを動作させたときに変化した入力アドレスを、同様の順番に「1」、「0」に符号化して並べた動作データを作成して、これらの元データと動作データが一致するか否かを判定することで、各リミットスイッチとシーケンサの接続が計画どおりに行われているか否かを、自動的に確認することができるのである。
【0085】
以上本発明の実施の形態を説明したが、本発明はこのような実施の形態に限定されるものではない。上述の実施の形態では、本発明の第1の機器として線形動作を行うアクチュエータを例に、第2の機器として、このアクチュエータの出限、戻限を検出するためのリミットスイッチを例にして、これらと制御機器であるシーケンサとの接続状態を確認する事例を説明したが、この他に、第1の機器としてはモータやコンベヤなどのような非線形の動作を行うもであっても良いし、さらにはロボットなどでも良く、これらに対して、第2の機器としてはこれらの動作に従って信号を出力しているスイッチやセンサーなどでもよい。あるいは、第1の機器としては、作業員に所定の動作を指示するための表示装置であり、第2の機器としては、この指示に従って作業員が入力するスイッチであってもよい。
【0086】
また、前述した実施の形態では、元データおよび動作データに並ぶ符号を第1アクチュエータ用を第1ビット目からはじめて、第2アクチュエータ用は第1アクチュエータ用が終わるビットの次のビットからはじめるようにしているが、元データおよび動作データは、上述した実施の形態のとおり、それぞれのアクチュエータ用に独立としているため、たとえば、第1アクチュエータ用の元データと動作データは第1ビット目から第1アクチュエータ用の入力アドレスに対応した符号が並び、同じように第2アクチュエータ用の元データと動作データも、第1ビット目から第2アクチュエータ用のリミットスイッチなどからの入力アドレスに対応した符号が並ぶようにしてもよい。これにより、第1アクチュエータと第2アクチュエータで連続させていないため、元データや動作データのビット数が少なくても済む。
【0087】
さらに、元データおよび動作データを並べる際の順番は、上述の実施の形態では、リミットスイッチにあらかじめつけた番号と同じ順番にしたが、この順番はリミットスイッチなどの機器に対して一つひとつ対応したものであればどのようなものでもよく、リミットスイッチにつけた番号の順番と同じである必要はない。
【図面の簡単な説明】
【図1】 本発明を適用したシーケンサにおける機能構成を示すブロック図である。
【図2】 設備構成例を示すブロック図である。
【図3】 上記シーケンサのI/Oポートと機器の接続関係を示すブロック図である。
【図4】 各機器がどのアドレスに接続されているかを表すパラメータ群を示す図面である。
【図5】 上記シーケンサによる元データの作成手順を示すフローチャートである。
【図6】 上記シーケンサによって作成される元データの例を示す図面である。
【図7】 上記シーケンサによる接続確認の手順を示すフローチャートである。
【図8】 図7に続く、接続確認の手順を示すフローチャートである。
【図9】 図8に続く、接続確認の手順を示すフローチャートである。
【図10】 上記シーケンサによって作成される動作データの例を示す図面である。
【符号の説明】
1…シーケンサ
11…演算処理部
12…I/Oポート
13…入出力パラメータ記憶部
14…状態一時記憶部
15…元データ記憶部
16…動作データ記憶部
17…入力装置
18…モニター
51、51、53…シリンダ
61、62…ソレノイド
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a connection confirmation device, a connection confirmation method, a connection confirmation program, and a computer in which this program is recorded for confirming whether or not the control device and the device connected to the control device are correctly connected. The present invention relates to a readable recording medium.
[0002]
[Prior art]
Many machines, switches, signal lights, and other devices are connected to control devices such as so-called sequencers and programmable controllers by wiring.
[0003]
Confirming whether or not the input / output terminals of the control device and the various devices are connected as planned is an important matter indispensable for the normal operation of these devices.
[0004]
Conventionally, in many cases, such connection confirmation work has been confirmed by visual inspection of workers.
[0005]
In JP-A-7-182421, various devices connected to a control device are operated, and an operator confirms whether or not the indicator lamps that are turned on at that time are in accordance with a predetermined check table. It is disclosed that it is confirmed whether or not it is connected as expected.
[0006]
[Problems to be solved by the invention]
However, a single control device has a large number of input / output terminals to which various devices are connected. For example, when one actuator is operated by a sequencer that is a control device, a solenoid that operates the actuator to the limit is connected to the output terminal of the sequencer that outputs a command for operating the actuator to the limit, and the return limit is similarly set. A solenoid that operates the actuator to the return limit is connected to the output terminal of the sequencer that outputs the operation command, and an output address that commands each operation is set to each output terminal. Then, connect the limit switch that detects that the actuator has reached the limit and the input terminal of the sequencer that receives the signal, and also connects the limit switch and input terminal that detects that the return limit has been reached. An input address for receiving a signal is set to each input terminal.
[0007]
There are four connections just by operating one actuator in this way, and it takes a lot of work time and labor just to check whether this is connected as planned, but usually There are dozens of actuators alone, so there are hundreds of places where connection confirmation has to be performed.
[0008]
For this reason, there is a risk that check omissions may occur by visual inspection by workers as in the past, so it is necessary to check carefully one by one, and in some cases, double and triple repeated checks are also required. For this reason, this wiring confirmation work requires a large amount of work time and labor.
[0009]
In addition, as described in the above publication, even if the operation can be confirmed on the monitor, it is a visual check, so whether or not the point on (or turned off) on the monitor is as planned for a certain operation. Since it is performed by the worker, it is necessary to be careful and careful in order to avoid omission of the check, and the work load is large.
[0010]
Accordingly, an object of the present invention is to provide a connection confirmation apparatus and method for automatically confirming connection between a control device and various devices connected thereto, and the present invention. An object of the present invention is to provide a program for automatically performing such connection confirmation by a computer and a recording medium on which the program is recorded.
[0011]
[Means for Solving the Problems]
The object of the present invention is achieved by the following configurations.
[0012]
(1) having a first device, a plurality of second devices that output signals according to the operation of the first device, and a control device to which the first device and the second device are connected In the equipment group, a connection confirmation device for confirming a connection between the first device and the second device and the control device, wherein the output address of the control device outputs a signal to the first device And parameter storage means for storing a parameter group in which the input address of the control device to which a signal from the second device is input is set, and whether the input address is set for each of the second devices Whether or not from the parameter group, original data creating means for creating original data in which the results are arranged in an arbitrary order corresponding to the second device, and an operation command signal output from the output address Command signal output means, and after outputting the operation command signal, check whether there is a current input at the input address set in the parameter group, and generate operation data in which the results are arranged in the order Creating means, and connection determination means for comparing the presence / absence of the input address setting in the original data and the presence / absence of the input in the operation data to determine the connection state by comparing them. A device for confirming connection.
[0013]
(2) Using the connection confirmation device described in (1) above, In a facility group having a first device, a plurality of second devices that output signals according to the operation of the first device, and a control device to which the first device and the second device are connected. A connection confirmation method for confirming a connection between the first device and the second device and the control device, the output address of the control device outputting a signal to the first device, It is checked whether or not the input address is set for each of the second devices from the parameter group in which the input address of the control device to which a signal from the second device is input is set, and the result is obtained. A step of creating original data arranged in an arbitrary order corresponding to the second device, a step of outputting an operation command signal from the output address, and after the operation command signal is output, are set in the parameter group Input It is determined whether or not there is an input in the dress, and the operation data in which the results are arranged in the order is created, and the presence or absence of the input address setting in the original data and the presence or absence of the input in the operation data are the same order And a step of determining a connection state by comparing whether or not they are arranged side by side.
[0014]
(3) having a first device, a plurality of second devices that output signals according to the operation of the first device, and a control device to which the first device and the second device are connected. Check the connection between the first device, the second device, and the control device in the facility group. To be executed by the computer A connection confirmation program comprising a parameter group in which an output address of the control device that outputs a signal to the first device and an input address of the control device that receives a signal from the second device are set. A procedure for checking whether or not the input address is set for each of the second devices, and creating original data in which the results are arranged in an arbitrary order corresponding to the second devices; A procedure for storing original data in a storage means, a procedure for outputting an operation command signal from the output address, and whether or not there is a current input at an input address set in the parameter group after the operation command signal is output. And a procedure for creating operation data in which the results are arranged in the order, a procedure for storing the operation data in the storage means, and the original data and the operation data stored in the storage means A step of reading and comparing the presence / absence of the setting of the input address in the original data and the presence / absence of the input in the operation data in the same order to determine the connection state, Connection confirmation program.
[0015]
(4) In the connection confirmation program, the original data is set with the first code when the input address is set, and with the second code when the input address is not set. The operation data is arranged in the order in which the first code is set when there is an input at the input address, and the second code is set when there is no input at the input address. It is characterized by being data of a specified structure.
[0016]
(5) A computer-readable storage medium storing the connection confirmation program according to (3) or (4).
[0017]
【The invention's effect】
The present invention has the following effects for each claim.
[0018]
According to the first aspect of the present invention, an output address for outputting a signal to the first device and an input address for receiving an input from the second device are stored as a parameter group. With reference to this parameter group, The input address is set by checking whether or not an input address is assigned to the second device and creating original data in which the results are arranged in an arbitrary order corresponding to the second device. While the second device is obtaining data arranged in an arbitrary order, the operation command signal output is output from the output address, and then the operation data in which the state of the input address examined by the parameter group is arranged in the order is created. As a result, data in which the state of the input address after the output of the operation command signal is arranged in the order corresponding to the second device is obtained. Since it was decided to compare the order of the presence or absence of input that may be whether to automatically check each device in the planned relative output address set in the control device is connected.
[0019]
According to the second aspect of the present invention, an input address for outputting a signal to the first device and an input address for receiving an input from the second device are input from the parameter group to the second device. By checking whether it is assigned or not, and creating the original data in which the results are arranged in an arbitrary order corresponding to the second device, the second device with the input address set in the arbitrary order While outputting the operation command signal output from the output address, the operation data is arranged in the order described above after the output of the operation command signal output from the output address. Obtain the data in which the status of the input address after the operation command signal is output in the order in which they were set, and compare the order of the input address setting in the original data with the input in the operation data Since the can whether to automatically check each device in the planned relative output address set in the control device is connected.
[0020]
According to the third aspect of the present invention, an output address for outputting a signal to the first device and an input address for receiving an input from the second device are stored as a parameter group. With reference to this parameter group, The input address is set by checking whether or not an input address is assigned to the second device and creating original data in which the results are arranged in an arbitrary order corresponding to the second device. While the second device is obtaining data arranged in an arbitrary order, the operation command signal output is output from the output address, and then the operation data in which the state of the input address examined by the parameter group is arranged in the order is created. As a result, data in which the state of the input address after the output of the operation command signal is arranged in the order corresponding to the second device is obtained. Since the the comparing the order of the presence or absence of input that may be whether to automatically check each device to plan the output address set in the control device is connected.
[0021]
According to the fourth aspect of the present invention, the original data is set with the first code when the input address is set, and with the second code when the input address is not set. In which the first code is set when the input is input at the input address, and the second code is set when the input is not input at the input address. Therefore, when comparing the original data and the operation data, it is only necessary to compare the data of the simple structure of the first code and the second code, so the procedure for determining the connection state is very fast, And it can be done easily.
[0022]
According to the present invention described in claim 5, since the computer-readable storage medium stores the connection confirmation program according to claim 3 or 4, a computer program for automatically confirming connection between devices is provided. Can be provided.
[0023]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, an embodiment of the present invention will be described with reference to the accompanying drawings.
[0024]
FIG. 1 is a block diagram showing a functional configuration of a sequencer having a function of a connection confirmation device to which the present invention is applied, and FIG. 2 is a diagram showing an example of equipment for performing connection confirmation work according to this embodiment. .
[0025]
The sequencer 1 is a parameter that stores a parameter group in which an arithmetic processing unit 11 that executes a program and various processes, an I / O port 12 that is connected to various devices, and an input / output address for each device are set. A storage unit 13, a state temporary storage unit 14 that stores the signal state of each input / output address, an original data storage unit 15 that stores whether or not an input address is set for each device, and a signal state of the input address after operation And an operation data storage unit 16 for storing. In addition, the sequencer 1 displays a program as a sequencer, various settings, an input device 17 for inputting instructions for connection confirmation, the progress of the program, the state of equipment, the result of connection confirmation, and the like. The monitor 18 is connected.
[0026]
The arithmetic processing unit 11 executes a program for wiring connection confirmation according to the present invention along with the execution of a program which is a basic function as a sequencer.
[0027]
The I / O port 12 is provided with a plurality of input / output terminals for connecting various devices, for example, cylinders, solenoids, limit switches, etc., for operating an actuator and a sequencer. An input / output address is assigned to each input / output terminal by software.
[0028]
The parameter storage unit 13 stores a parameter group for setting the connection relationship between the input / output address of the sequencer and each device in accordance with the facility design plan or the operation design document of the sequencer (details will be described later).
[0029]
The state temporary storage unit 14 temporarily stores the current state of each input address (details will be described later).
[0030]
The original data storage unit 15 stores original data created based on the parameter storage unit 13. The original data encodes whether or not an input address is set for each device, and in an arbitrary order. They are arranged. The original data creation procedure will be described later.
[0031]
The operation data storage unit 16 encodes and stores the signal state of the input terminal after the operation output is performed. The operation data creation procedure will be described later.
[0032]
Note that each of these units actually functions when a CPU or a memory in the sequencer executes a program to which the present invention is applied by the CPU. In addition, this program is recorded on a recording medium such as an optical recording medium, a magneto-optical recording medium, or a magnetic recording medium, and is provided to a sequencer, or is provided via a network in a sequencer connected by a network. Is done.
[0033]
Here, an example of an equipment configuration for performing connection confirmation according to the present embodiment will be described with reference to FIG.
[0034]
This example of equipment operates two actuators and includes a first actuator and a second actuator. The first actuator is operated by two cylinders, a first cylinder 51 and a second cylinder 52. These two cylinders 51 and 52 are connected to the first solenoid 61, and the two cylinders move simultaneously by the operation of the first solenoid 61. On the other hand, the second actuator is operated by one cylinder 53, and the cylinder 53 is connected to the second solenoid 62. The actuator body is not shown.
[0035]
Each cylinder that operates each actuator is provided with a limit switch (LS) for detecting the limit and return limit. Here, the limit LS1 for detecting the limit of the first cylinder 51 of the first actuator, the limit LS1 for detecting the limit limit, the limit LS2 for detecting the limit of the second cylinder 52, A return limit LS2 for detecting the return limit, an output limit LS3 for detecting the limit of the cylinder 53 of the second actuator, and a return limit LS3 for detecting the return limit. Here, LS1, LS2, LS3,... LSn and an arbitrary order are assigned to the limit switch LS in order to identify each LS.
[0036]
These solenoids and limit switches are connected to the sequencer 1 at the I / O port 12 of the sequencer 1.
[0037]
FIG. 3 is a diagram showing the connection relationship between the addresses set in the input / output terminals in the I / O port 12 and the solenoids and limit switches.
[0038]
As shown in the figure, the input of the sequencer 1 is that the input address X300 is the output limit LS1, X301 is the return limit LS1, X302 is the output limit LS2, X303 is the return limit LS2, X400 is the output limit LS3, and X401 is the return limit LS3. It is connected. On the other hand, the output of the sequencer 1 is that the output address Y700 is on the limit limit side of the first solenoid 61, Y701 is on the limit limit side of the first solenoid 61, Y702 is on the limit limit side of the second solenoid 62, and Y703 is the second limit. The solenoid 62 is connected to the return limit side.
[0039]
In such an equipment configuration, the parameter group stored in the parameter storage unit 13 is gathered around the actuator that is the subject of operation, as shown in FIG.
[0040]
In this parameter group, the output relation is that the solenoid output instruction for operating the first actuator to the limit is output from the output address Y700, and the solenoid output instruction for operating the second actuator to the limit is the output terminal. It can be seen that the data is output from Y702. Similarly, a solenoid return instruction for operating the first actuator to the return limit is output from the output terminal Y701, and a solenoid return instruction for operating the second actuator to the return limit is output from the output terminal Y703. Can be understood.
[0041]
On the other hand, regarding the input, the signal of the output limit LS1 is the input address X300, the signal of the output limit LS2 is X302, the signal of the output limit LS3 is X400, the signal of the return limit LS1 is X301, and the signal of the return limit LS2 is It can be seen that the signal of the return limit LS3 is input to X401 in X303.
[0042]
Hereinafter, on the premise of such an equipment configuration, the operation of the sequencer 1 in the present embodiment as a connection confirmation device will be described.
[0043]
First, a procedure for creating original data will be described.
[0044]
FIG. 5 is a flowchart showing a procedure for creating original data.
[0045]
This original data is created for each actuator.
[0046]
First, all the data in the original data storage unit 15 is cleared to “0” (S1). Here, the original data stored in the original data storage unit 15 has a total of 16 bits including 8 bits on the output limit side and 8 bits on the return limit side (see FIG. 6). In the case of the present embodiment, the total number of bits of the original data is six, even if all of the limit limit switch and the return limit switch are combined, so 16 bits are sufficient. However, if there are more devices in the equipment group, the number of bits of the original data may be increased accordingly.
[0047]
Subsequently, the repetition variable n is set to 1 (S2). Here, the repetition variable n is the order assigned to the LS and indicates the bit position of the original data.
[0048]
Subsequently, it is determined whether or not n has exceeded the final value 8 (S3). On the other hand, if it does not exceed, it is determined whether there is an input address set in the output limit LSn by referring to the parameter group in the input / output parameter storage unit 13 (S4). Here, since n = 1 at first, it is determined whether or not an input address is set in the output limit LS1, and in the first actuator, X300 is set here. Is determined. If there is no setting here, the process proceeds to step S6.
[0049]
If there is a setting, then the nth bit of the original data is set to “1” (S5). When n = 1 at the beginning, since the setting is made as described above, the first bit of the original data is set to “1”.
[0050]
Subsequently, it is determined whether there is an input address set in the return limit LSn (S6). Again, since n = 1 at the beginning, it is determined whether or not an input address is set in the return limit LS1. In the first actuator, X301 is set here, Is determined. If there is no setting here, the process directly proceeds to step S8.
[0051]
If there is a setting, then the n + 8th bit of the original data is set to “1” (S7). When n = 1 at the beginning, since the setting is made as described above, the ninth bit of the original data is set to “1”.
[0052]
Then, the variable n is incremented (S7), the process returns to step S3, and the processes from steps S3 to S8 are repeatedly executed until n> 8.
[0053]
The above processing is executed so as to correspond to each of the first actuator and the second actuator.
[0054]
FIG. 6 is an example of the original data created in this way. The original data shown in FIG. 6A is for the first actuator. Therefore, the first bit and the second bit indicating the presence or absence of the input address on the limit side are “1”, and these correspond to the limit LS1 and LS2 of the first actuator. The ninth bit and the tenth bit are “1”, which correspond to the return limits LS1 and LS2 of the first actuator. Similarly, the one shown in FIG. 6B is for the second actuator, the third bit is “1” corresponding to the output limit LS3, and the eleventh bit is “1” corresponding to the return limit LS3. is doing.
[0055]
Since the original data is created from the parameter group, the presence / absence of the input address corresponding to the limit switch to be connected according to the plan is encoded and arranged as “1” and “0”.
[0056]
Next, a procedure for determining whether or not each device is actually connected as planned will be described.
[0057]
7 to 9 are flowcharts showing a connection confirmation procedure.
[0058]
For this connection check, the following processing is performed for each actuator.
[0059]
First, a solenoid return command is output so that the return operation is performed for all solenoids (S11). This process is for returning the positions of all actuators to the return position as an initial state.
[0060]
Subsequently, the current state of all input addresses (X300, X301, X302, X303, X400, and X401 (hereinafter the same)) is stored in the state temporary storage unit 14 as the first state storage (S12). Here, the case where there is a signal is “1”, and the case where there is no signal is “0” (the same applies hereinafter).
[0061]
Subsequently, a solenoid output command is output from an output address necessary for operating the actuator to be connected (S13). Here, when the connection confirmation target is the first actuator, the output address Y700 is turned on. Similarly, when the second actuator is a connection confirmation target, the output address Y702 is turned on.
[0062]
Subsequently, the current state of all input addresses is stored in the state temporary storage unit 14 as second state storage (S14).
[0063]
Subsequently, the signal states stored in the first state storage and the second state storage are compared, and it is checked whether there is a changed input address (S15). If there is no change, the wiring system on the limit side of the actuator that is the connection confirmation target has a connection failure such as disconnection or no connection, and the connection confirmation target actuator name and the connection limit side fault are present. A warning is displayed (S101).
[0064]
This means that there is no change in the state of the input address before and after the operation command output from the output address. If the wiring system on the limit side of the actuator, for example, the connection confirmation target is the first actuator, The output terminal of the O port 12 where the output address Y700 is set and the wiring on the output limit side of the first solenoid 61, the wiring between the output terminal LS1 and the input terminal where X300 is set, and the output limits LS2 and X302 In the wiring with the input terminal to which is set, there is a disconnection or unconnected state somewhere in this system. For this reason, the solenoid 51 is not moving or the signal from the limit limit LS1 and 2 is Either one of them is not entered at all.
[0065]
In step S15, when there is an address whose signal state has changed between the first state storage and the second state storage, the limit side of the operation data stored in the operation data storage unit 16 in the subsequent steps S16 to S20 Create data for. Similarly to the original data, the operation data is 8 bits on the limit side and 8 bits on the return limit side for a total of 16 bits (see FIG. 10).
First, the repetition variable n is set to 1 (S16). The repetition variable n is 1 to 8, similar to the one used for creating the original data.
[0066]
Subsequently, it is determined whether or not n exceeds the final value 8 (S17). If n> 8, the process proceeds to step S21 described later. Here, if n does not exceed 8, it is subsequently determined by referring to the parameter group in the input / output parameter storage unit 13 whether there is an input address set in the output limit LSn (S18). . Here, since n = 1 at first, it is determined whether or not an input address is set in the output limit LS1, and in the first actuator, X300 is set here. Is determined. If there is no setting here, the process proceeds to step S20.
[0067]
Subsequently, when there is a setting, the current value of the address corresponding to the output limit LSn among the input addresses stored as the second state storage is entered in the nth bit of the operation data (S19). When n = 1 for the first time, since the input address of the limit LS1 is X300 as described above, the current value of X300 for storing the second state is set to the first bit of the operation data.
[0068]
Here, if the connection is normally performed, since there should be an input in X300, “1” is entered in the first bit of the operation data. On the other hand, when there is no input for X300, “0” is entered in the first bit of the operation data.
[0069]
Subsequently, the variable n is incremented (S20), the process returns to step S17, and the processes of steps S17 to S20 are repeatedly executed until n> 8.
[0070]
The operation data on the limit limit side has been created so far, and the process proceeds to the creation of operation data on the return limit side.
[0071]
First, a solenoid return command is output to operate the actuator to be connected (S21). When the connection confirmation target is the first actuator, the output address Y701 is turned on here. Similarly, when the second actuator is a connection confirmation target, the output address Y703 is turned on.
[0072]
Subsequently, the current state of all input addresses is stored in the state temporary storage unit 14 as third state storage (S22).
[0073]
Subsequently, it is checked whether there is an address in which the signal state stored in the second state storage and the third state storage is changed (S23). If there is no change, assume that there is a connection failure such as disconnection or no connection in the return limit side wiring system of the actuator that is the connection check target, and the connection check target actuator name and `` return limit side connection failure '' It is displayed (S102).
[0074]
Here, the wiring system on the extension limit side of the actuator is, for example, when the connection confirmation target is the first actuator, the output terminal where the output address Y701 of the I / O port 12 is set and the return limit of the first solenoid 61. Side signal wiring, between the return limit LS1 and the input terminal set with X301, and between the return limit LS2 and the input terminal set with X303. These poor connections are cases where the signal path of this system is interrupted somewhere, such as disconnection or unconnected state.
[0075]
In step S23, when there is a change in any of the signal states of the input terminals stored in the second state storage and the third state storage, the operations stored in the operation data storage unit 16 are thereafter performed in steps S24 to S28. Create the data on the return limit side of the data. First, the repetition variable n is set to 1 (S24). Subsequently, it is determined whether or not n exceeds the final value 8 (S25). If it exceeds, the process proceeds to step S29 described later. On the other hand, if not, it is determined whether there is an input address set in the return limit LSn with reference to the parameter group in the input / output parameter storage unit 13 (S26). Here, since n = 1 at the beginning, it is determined whether or not an input address is set in the return limit LS1, and in the first actuator, X301 is set here. Is determined. If there is no setting here, the process proceeds to step S28.
[0076]
Subsequently, when there is a setting, the current value of the address corresponding to the return limit LSn among the input addresses stored as the third state storage is entered in the (n + 8) th bit of the operation data (S27). When n = 1 for the first time, the set address of the return limit LS1 is X301 as described above, so the current value of X301 for storing the third state is put in the first bit of the operation data.
[0077]
Here, if the connection is normally performed, since there should be an input to X301, “1” is entered in the ninth bit of the operation data. On the other hand, if there is no input for X301, "0" is entered in the ninth bit of the operation data.
[0078]
Subsequently, the variable n is incremented (S28), the process returns to step S25, and the processes from steps S25 to S28 are repeatedly executed until n> 8.
[0079]
The operation data is thus completed. The completed operation data is associated with the input address where the signal from each limit switch is actually input. Thus, for example, if all connections are normal for the first actuator, the data will be as shown in FIG. 10A, but if there is a miswiring and some signal is not in the appropriate input terminal The data of the bit of that part becomes “1”, or the data of the part corresponding to the appropriate input address becomes “0”. For example, when the limit LS1 is erroneously input to the input address X400, the generated operation data includes “0” in the second bit in the order corresponding to the limit LS1, as shown in FIG. 10B. As a result, the third bit for which the input address X400 is set becomes data “1”.
[0080]
Up to this stage, operation data is obtained in which the current state of the input address is encoded with “1” and “0” in the order of the limit switches. The obtained data is stored in the operation data storage unit 16.
[0081]
Subsequently, the original data and the operation data are read from the original data storage unit 15 and the operation data storage unit 16, respectively, and are compared to determine whether or not they match (S29). Here, if the original data and the operation data match, there is no miswiring, so the actuator name and wiring that are subject to connection confirmation are displayed normally (S30), and the process ends. To do.
[0082]
On the other hand, if the original data and the operation data do not match, an incorrect wiring has occurred, so that a warning that there is a wiring defect due to the incorrect actuator name and the connection confirmation target is displayed (S103). The process is terminated.
[0083]
The above processing is executed so as to correspond to each of the first actuator and the second actuator.
[0084]
As described above, in the present embodiment, each limit switch having an input address set from the parameter group is encoded into “1” and “0” and arranged in an arbitrary order (here, the order of numbers assigned to LS). Create the original data, and create the operation data in which the input addresses changed when the actuator is operated are encoded and arranged in the same order as “1” and “0”. It is possible to automatically confirm whether or not the connection between each limit switch and the sequencer is performed as planned by determining whether or not they match.
[0085]
Although the embodiment of the present invention has been described above, the present invention is not limited to such an embodiment. In the above-described embodiment, an actuator that performs a linear operation as the first device of the present invention is taken as an example, and a limit switch for detecting the limit and return limit of this actuator is taken as an example as the second device, Although the example which confirms the connection state of these and the sequencer which is a control apparatus was demonstrated, besides this, as a 1st apparatus, you may perform a non-linear operation like a motor or a conveyor, Furthermore, a robot or the like may be used. On the other hand, the second device may be a switch or a sensor that outputs a signal according to these operations. Alternatively, the first device may be a display device for instructing a worker to perform a predetermined operation, and the second device may be a switch input by the worker in accordance with this instruction.
[0086]
In the above-described embodiment, the codes arranged in the original data and the operation data start for the first actuator from the first bit, and for the second actuator, start from the bit after the end of the first actuator. However, since the original data and the operation data are independent for each actuator as in the above-described embodiment, for example, the original data and operation data for the first actuator are from the first bit to the first actuator. The code corresponding to the input address for the second actuator is arranged, and the code corresponding to the input address from the limit switch for the second actuator is also arranged from the first bit to the original data and the operation data for the second actuator. It may be. Accordingly, since the first actuator and the second actuator are not continuous, the number of bits of the original data and operation data can be reduced.
[0087]
Furthermore, the order in which the original data and the operation data are arranged is the same as the number previously assigned to the limit switch in the above-described embodiment, but this order corresponds to each device such as a limit switch. Any number can be used, and it is not necessary to be in the same order as the numbers assigned to the limit switches.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a functional configuration of a sequencer to which the present invention is applied.
FIG. 2 is a block diagram showing an example of equipment configuration.
FIG. 3 is a block diagram showing a connection relationship between the I / O port of the sequencer and a device.
FIG. 4 is a drawing showing a parameter group indicating to which address each device is connected.
FIG. 5 is a flowchart showing a procedure for creating original data by the sequencer.
FIG. 6 is a diagram showing an example of original data created by the sequencer.
FIG. 7 is a flowchart showing a procedure of connection confirmation by the sequencer.
FIG. 8 is a flowchart illustrating a connection confirmation procedure following FIG. 7;
FIG. 9 is a flowchart showing a connection confirmation procedure following FIG. 8;
FIG. 10 is a diagram illustrating an example of operation data created by the sequencer.
[Explanation of symbols]
1 ... Sequencer
11 ... arithmetic processing part
12 ... I / O port
13. Input / output parameter storage unit
14 ... Status temporary storage unit
15 ... Original data storage
16 ... operation data storage unit
17 ... Input device
18 ... Monitor
51, 51, 53 ... Cylinder
61, 62 ... Solenoid

Claims (5)

第1の機器と、該第1の機器の動作に従って信号を出力する複数の第2の機器と、該第1の機器および該第2の機器が接続された制御機器と、を有する設備群における、前記第1の機器および前記第2の機器と前記制御機器との間の接続を確認する接続確認装置であって、
前記第1の機器へ信号を出力する前記制御機器の出力アドレスと、前記第2の機器からの信号が入力される前記制御機器の入力アドレスとを設定したパラメータ群を記憶するパラメータ記憶手段と、
前記第2の機器のそれぞれについて前記入力アドレスが設定されているか否かを前記パラメータ群から調べて、その結果を前記第2の機器に対応させた任意の順番に並べた元データを作成する元データ作成手段と、
前記出力アドレスから動作指令信号を出力する動作指令信号出力手段と、
前記動作指令信号出力後、前記パラメータ群に設定されている入力アドレスに現在入力があるか否かを調べて、その結果を前記順番で並べた動作データを作成する動作データ作成手段と、
前記元データにおける入力アドレスの設定の有無と、前記動作データにおける入力の有無とが同じ順番で並んでいるか否かを比較して接続状態を判定する接続判定手段と、
を有することを特徴とする接続確認装置。
In a facility group having a first device, a plurality of second devices that output signals according to the operation of the first device, and a control device to which the first device and the second device are connected. A connection confirmation device for confirming a connection between the first device and the second device and the control device,
Parameter storage means for storing a parameter group in which an output address of the control device that outputs a signal to the first device and an input address of the control device that receives a signal from the second device are set;
A source that checks whether or not the input address is set for each of the second devices from the parameter group and creates original data in which the results are arranged in an arbitrary order corresponding to the second device Data creation means;
An operation command signal output means for outputting an operation command signal from the output address;
After the operation command signal is output, check whether there is a current input at the input address set in the parameter group, operation data creation means for creating operation data in which the results are arranged in the order;
Connection determination means for comparing the presence / absence of setting of the input address in the original data and the presence / absence of input in the operation data to determine the connection state by comparing whether or not they are arranged in the same order;
A connection confirmation device characterized by comprising:
請求項1記載の接続確認装置を用いて、第1の機器と、該第1の機器の動作に従って信号を出力する複数の第2の機器と、該第1の機器および該第2の機器が接続された制御機器と、を有する設備群における、前記第1の機器および前記第2の機器と前記制御機器との間の接続を確認する接続確認方法であって、
前記第1の機器へ信号を出力する前記制御機器の出力アドレスと、前記第2の機器からの信号が入力される前記制御機器の入力アドレスとを設定したパラメータ群から、前記第2の機器のそれぞれについて前記入力アドレスが設定されているか否かを調べて、その結果を前記第2の機器に対応させた任意の順番に並べた元データを作成する段階と、
前記出力アドレスから動作指令信号を出力する段階と、
前記動作指令信号出力後、前記パラメータ群に設定されている入力アドレスに入力があるか否かを調べて、その結果を前記順番で並べた動作データを作成する段階と、
前記元データにおける入力アドレスの設定の有無と前記動作データにおける入力の有無とが同じ順番で並んでいるか否かを比較して接続状態を判定する段階と、
を有することを特徴とする接続確認方法。
A first device, a plurality of second devices that output signals according to operations of the first device , the first device, and the second device using the connection confirmation device according to claim 1 . A connection confirmation method for confirming a connection between the first device, the second device, and the control device in a facility group having a connected control device,
From the parameter group in which the output address of the control device that outputs a signal to the first device and the input address of the control device that receives the signal from the second device are set, the second device Checking whether or not the input address is set for each, and creating original data in which the results are arranged in any order corresponding to the second device;
Outputting an operation command signal from the output address;
After the operation command signal is output, checking whether there is an input to the input address set in the parameter group, and creating operation data in which the results are arranged in the order;
Comparing the presence / absence of the setting of the input address in the original data and the presence / absence of the input in the operation data in the same order to determine a connection state;
The connection confirmation method characterized by having.
第1の機器と、該第1の機器の動作に従って信号を出力する複数の第2の機器と、該第1の機器および該第2の機器が接続された制御機器と、を有する設備群における、前記第1の機器および前記第2の機器と前記制御機器との間の接続を確認するために、コンピュータによって実行される接続確認プログラムであって、
前記第1の機器へ信号を出力する前記制御機器の出力アドレスと、前記第2の機器からの信号が入力される前記制御機器の入力アドレスとを設定したパラメータ群から、前記第2の機器のそれぞれについて前記入力アドレスが設定されているか否かを調べて、その結果を前記第2の機器に対応させた任意の順番に並べた元データを作成する手順と、
前記元データを記憶手段に記憶する手順と、
前記出力アドレスから動作指令信号を出力する手順と、
前記動作指令信号出力後、前記パラメータ群に設定されている入力アドレスに現在入力があるか否かを調べて、その結果を前記順番で並べた動作データを作成する手順と、
前記動作データを記憶手段に記憶する手順と、
前記元データと前記動作データを記憶手段から読み出して、前記元データにおける入力アドレスの設定の有無と、前記動作データにおける入力の有無とが同じ順番で並んでいるか否かを比較して接続状態を判定する手順と、
を有することを特徴とする接続確認プログラム。
In a facility group having a first device, a plurality of second devices that output signals according to the operation of the first device, and a control device to which the first device and the second device are connected. A connection confirmation program executed by a computer to confirm the connection between the first device and the second device and the control device,
From the parameter group in which the output address of the control device that outputs a signal to the first device and the input address of the control device that receives the signal from the second device are set, the second device Checking whether or not the input address is set for each, and creating original data in which the results are arranged in any order corresponding to the second device;
A procedure for storing the original data in a storage means;
A procedure for outputting an operation command signal from the output address;
After the operation command signal is output, check whether there is a current input at the input address set in the parameter group, and create operation data in which the results are arranged in the order;
A procedure for storing the operation data in a storage means;
Read the original data and the operation data from the storage means, compare the presence or absence of the input address setting in the original data and the presence or absence of input in the operation data in the same order to determine the connection state A procedure for judging;
A connection confirmation program characterized by comprising:
前記元データは、入力アドレスの設定がある場合に第1の符号がセットされ、入力アドレスの設定がない場合に第2の符号がセットされて、前記順番に並べられた構造のデータであり、
前記動作データは、入力アドレスに入力がある場合に第1の符号がセットされ、入力アドレスに入力がない場合に第2の符号がセットされて前記順番に並べられた構造のデータであることを特徴とする請求項3記載の接続確認プログラム。
The original data is data having a structure arranged in the order in which the first code is set when the input address is set, the second code is set when the input address is not set, and
The operation data is data having a structure in which the first code is set when there is an input at the input address, and the second code is set when there is no input at the input address and is arranged in the order. The connection confirmation program according to claim 3, wherein:
請求項3または4記載の接続確認プログラムを記憶したことを特徴とするコンピュータ読み取り可能な記憶媒体。A computer-readable storage medium storing the connection confirmation program according to claim 3 or 4.
JP2001084867A 2001-03-23 2001-03-23 Connection confirmation device, connection confirmation method, connection confirmation program, and computer-readable recording medium recording the program Expired - Fee Related JP3750549B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001084867A JP3750549B2 (en) 2001-03-23 2001-03-23 Connection confirmation device, connection confirmation method, connection confirmation program, and computer-readable recording medium recording the program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001084867A JP3750549B2 (en) 2001-03-23 2001-03-23 Connection confirmation device, connection confirmation method, connection confirmation program, and computer-readable recording medium recording the program

Publications (2)

Publication Number Publication Date
JP2002287806A JP2002287806A (en) 2002-10-04
JP3750549B2 true JP3750549B2 (en) 2006-03-01

Family

ID=18940477

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001084867A Expired - Fee Related JP3750549B2 (en) 2001-03-23 2001-03-23 Connection confirmation device, connection confirmation method, connection confirmation program, and computer-readable recording medium recording the program

Country Status (1)

Country Link
JP (1) JP3750549B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5214867B2 (en) * 2006-09-20 2013-06-19 東芝シュネデール・インバータ株式会社 Inverter device
JP5357235B2 (en) * 2011-10-31 2013-12-04 東芝シュネデール・インバータ株式会社 Inverter device
JP5357234B2 (en) * 2011-10-31 2013-12-04 東芝シュネデール・インバータ株式会社 Inverter device

Also Published As

Publication number Publication date
JP2002287806A (en) 2002-10-04

Similar Documents

Publication Publication Date Title
GB2244573A (en) Programmable controller
KR101056761B1 (en) Debug system of diagram of programmable controller, its programming device and computer readable recording medium having recorded its program
JP3750549B2 (en) Connection confirmation device, connection confirmation method, connection confirmation program, and computer-readable recording medium recording the program
JP5155829B2 (en) Programmable controller diagram debugging system, programming device and program thereof
JP7000703B2 (en) Information processing equipment, information processing methods, and information processing programs
US7308327B2 (en) Method of application protocol monitoring for programmable logic controllers
JPH0262606A (en) Cnc diagnosing system
JP2008242818A (en) Digital controller
JPH10296592A (en) Incorrect work prevention device
CN106629397A (en) Crane slew angle zero point calibration method, system and crane
CN101611358B (en) Method for exchanging structural components for an automation system
JP3444080B2 (en) Simulation equipment
US5323308A (en) Programmable control system
JP2734176B2 (en) How to create a sequence program
JP4659467B2 (en) Control device update method
JP3999477B2 (en) Control program creation system, apparatus, method, recording medium, and program
JPH06309014A (en) Programmable controller and method for setting address conversion table thereof
JP2020087328A (en) Plant control equipment
US20040138767A1 (en) System and method for device sequencing using discrete PLC control
WO1992021073A1 (en) Method for debugging sequential program
JPH06262482A (en) Abnormality countermeasure instruction device
JP2760158B2 (en) Input/Output Signal Code Converter
JP2743630B2 (en) Inspection method of each component configuration of automatic control operation system
JPH11134010A (en) Program execution method in programmable controller
JPH11134008A (en) Programmable controller

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050721

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050816

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051013

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20051128

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20091216

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20101216

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20111216

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20121216

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20121216

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20131216

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees