JP2023173619A - Control program testing device - Google Patents
Control program testing device Download PDFInfo
- Publication number
- JP2023173619A JP2023173619A JP2022085992A JP2022085992A JP2023173619A JP 2023173619 A JP2023173619 A JP 2023173619A JP 2022085992 A JP2022085992 A JP 2022085992A JP 2022085992 A JP2022085992 A JP 2022085992A JP 2023173619 A JP2023173619 A JP 2023173619A
- Authority
- JP
- Japan
- Prior art keywords
- test pattern
- equipment
- control program
- cycle diagram
- normal operation
- 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.)
- Pending
Links
- 238000012360 testing method Methods 0.000 claims abstract description 96
- 238000010586 diagram Methods 0.000 claims abstract description 47
- 238000011156 evaluation Methods 0.000 claims abstract description 25
- 230000002159 abnormal effect Effects 0.000 claims description 9
- 239000010720 hydraulic oil Substances 0.000 description 11
- 230000005856 abnormality Effects 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 239000002184 metal Substances 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 239000003921 oil Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Abstract
Description
本発明は、設備を制御するための制御プログラムの試験装置に関する。 The present invention relates to a testing device for a control program for controlling equipment.
従来、工作機械等の設備を制御するプログラマブルコントローラは、例えばIEC61131-3で規定されているラダーダイアグラム言語で記載されたシーケンスプログラムを実行することで制御対象の設備を制御する。シーケンスプログラムを作製するプログラマは、設備の動作順序を示すサイクル線図を作製した後、このサイクル線図に沿ってシーケンスプログラムを記述することが多い。 Conventionally, a programmable controller that controls equipment such as a machine tool controls the equipment to be controlled by executing a sequence program written in a ladder diagram language defined by IEC61131-3, for example. A programmer who creates a sequence program often creates a cycle diagram showing the operating order of equipment and then writes the sequence program along this cycle diagram.
このようなシーケンスプログラムは、設備の可動部同士の衝突等を避けるためのインターロックを含んでおり、これによって例えば異常処理の際に作業者が不適切な操作をした場合にも設備の破損等を防ぐことが可能であるが、シーケンスプログラムの作製の際にプログラムミスがないことは保証し得ない。このため、例えば特許文献1、2に記載されているように、コンピュータを用いた動作シミュレーションによってシーケンスプログラムの試験(デバッグ)を行う方法やシステムが提案されている。
Such sequence programs include interlocks to prevent collisions between moving parts of the equipment, and this prevents damage to the equipment even if a worker performs an inappropriate operation when handling an abnormality. However, it cannot be guaranteed that there will be no programming errors when creating a sequence program. Therefore, as described in
上記のようにシーケンスプログラムの試験を行う場合、設備の可動部が多いほど試験項目数が増大し、試験に要する時間も長くなる。また、試験項目を抽出する作業にも長い時間が必要となる。このため、試験項目の抽出ならびに試験を実施する作業の一部分でも自動化をすることができれば、プログラマや試験を実施する作業者等の人員の負担を軽減することができる。 When testing a sequence program as described above, the more moving parts there are in the equipment, the more test items there are and the longer the time required for the test. Furthermore, the work of extracting test items also requires a long time. Therefore, if even part of the work of extracting test items and conducting tests can be automated, the burden on personnel such as programmers and test workers can be reduced.
本発明者らは、設備の動作順序を示すサイクル線図を用いれば、設備を制御するための制御プログラムの試験項目の抽出や試験の実施を自動化できるとの着想を得て本発明をなすに至った。すなわち、本発明の目的は、設備を動作させるための制御プログラムの試験の省力化を行うことにある。 The present inventors developed the present invention based on the idea that by using a cycle diagram showing the operating sequence of equipment, it is possible to automate the extraction of test items and the implementation of tests for control programs for controlling equipment. It's arrived. That is, an object of the present invention is to save labor in testing a control program for operating equipment.
本発明は、上記の目的を達成するため、信号の入出力により設備を動作させる制御装置の制御プログラムを試験する試験装置であって、前記設備の動作順序を示すサイクル線図の情報を受け付ける受付手段と、前記サイクル線図の情報を基に前記制御プログラムのテストパターンを生成するテストパターン生成手段と、前記テストパターンを実行して前記制御プログラムの評価を行う評価手段と、を備えた制御プログラムの試験装置を提供する。 In order to achieve the above object, the present invention provides a test device that tests a control program of a control device that operates equipment by inputting and outputting signals, and which accepts information on a cycle diagram indicating the operating order of the equipment. a control program comprising: a test pattern generating means for generating a test pattern of the control program based on information of the cycle diagram; and an evaluation means for executing the test pattern and evaluating the control program. We provide testing equipment for
本発明に係る制御プログラムの試験装置によれば、設備を動作させる制御プログラムの試験の省力化を行うことができる。 According to the control program testing device according to the present invention, it is possible to save labor when testing a control program for operating equipment.
[実施の形態]
本発明の実施の形態について、図面を参照して説明する。なお、以下に説明する実施の形態は、本発明を実施する上での好適な具体例として示すものであり、技術的に好ましい種々の技術的事項を具体的に例示している部分もあるが、本発明の技術的範囲は、この具体的態様に限定されるものではない。
[Embodiment]
Embodiments of the present invention will be described with reference to the drawings. The embodiments described below are shown as preferred specific examples for carrying out the present invention, and some portions specifically illustrate various technical matters that are technically preferable. However, the technical scope of the present invention is not limited to this specific embodiment.
図1は、本発明の実施の形態に係る試験装置を用いた制御プログラムの試験構成を示すブロック図である。本実施の形態における制御プログラムの試験は、コンピュータによって構成される試験装置1に、ディスプレイ2及び制御装置の一例としてのプログラマブルコントローラ3を接続し、プログラマブルコントローラ3に操作盤4を接続して行う。
FIG. 1 is a block diagram showing a test configuration of a control program using a test device according to an embodiment of the present invention. Testing of the control program in this embodiment is performed by connecting a
試験装置1は、マイクロプロセッサが記憶部100に記憶されたプログラム101を実行することにより、受付手段11、テストパターン生成手段12、評価手段13、及び評価結果提示手段14として機能する。記憶部100は、記憶内容を追加・変更・削除可能なものであり、例えばHDD(ハード・ディスク・ドライブ)あるいはSSD(ソリッド・ステート・ドライブ)である。ディスプレイ2は、評価結果提示手段14が生成する評価結果を示す画像情報を表示画面20に表示する。
The test apparatus 1 functions as a reception means 11, a test pattern generation means 12, an evaluation means 13, and an evaluation result presentation means 14 by a microprocessor executing a
プログラマブルコントローラ3は、ユーザが作製した制御プログラムであるシーケンスプログラム30を記憶し、信号の入出力により設備を動作させる。シーケンスプログラム30は、例えばIEC61131-3で規定されているラダーダイアグラム言語で記述されており、制御対象の設備の動作を、主としてリレーのA接点(ノーマルオープン)及びB接点(ノーマルクローズ)、ならびにコイルを模擬したリレー回路の形式で表現したものである。
The
操作盤4は、オペレータが設備の操作を行うためのものであり、タッチパネルディスプレイ40と、自動運転モードで設備を動作させるか各個操作モードで設備を動作させるかを選択するためのセレクトスイッチ41と、サーボモータの動力源であるサーボ電源や油圧を発生させる油圧ポンプを作動させる運転準備スイッチ42と、自動運転モードにおいて設備の自動運転の起動を指示するための起動スイッチ43と、各個操作モードでの動作を実行させるための実行スイッチ44と、設備の動作を即時停止させるための非常停止スイッチ45とを有している。
The
図1では、セレクトスイッチ41によって各個操作モードが選択された状態を示している。各個操作モードは、例えば異常処理や動作確認のためにオペレータが設備の可動部を個別に動作させることができるモードである。各個操作モードでは、操作盤4のタッチパネルディスプレイ40に可動部の名称及び動作内容を示す複数のボタンが表示される。オペレータは、これらのボタンの何れかをタッチ操作することにより、該当する可動部の動作を行わせることができる。図1では、複数のボタンのうち、「センタ前進」を示す第1のボタン401、「センタ後退」を示す第2のボタン402、「振れ止め前進」を示す第3のボタン403、「振れ止め後退」を示す第4のボタン404、「駆動金具入り」を示す第5のボタン405、及び「駆動金具抜き」を示す第6のボタン406を示している。
FIG. 1 shows a state in which each individual operation mode is selected by the
受付手段11は、設備の動作順序を示すサイクル線図の情報を受け付ける。サイクル線図は、例えばシーケンスプログラム30のプログラマが作製するものであり、自動運転モードにおける設備の動作順序をプログラマブルコントローラ3の入出力信号の信号名又はアドレスと共に線図で記述したものである。受付手段11は、例えば通信によってサイクル線図の情報を受け付けてもよく、可搬型の記憶媒体によってサイクル線図の情報を受け付けてもよい。受付手段11は、受け付けたサイクル線図の情報を記憶部100にサイクル線図情報102として記憶する。
The
テストパターン生成手段12は、サイクル線図情報102として記憶されたサイクル線図の情報を基に、シーケンスプログラム30のテストパターンを生成する。より具体的には、サイクル線図の情報に示された設備の正規の動作順序に沿って設備を動作させる場合の正常動作のテストパターンを生成し、記憶部100に正常動作テストパターン103として記憶すると共に、サイクル線図の情報に示された設備の正規の動作順序とは異なる動作順序で設備を動作させる場合の異常動作のテストパターンを生成し、記憶部100に異常動作テストパターン104として記憶する。
The test pattern generation means 12 generates a test pattern for the
評価手段13は、テストパターン生成手段12によって作製されたテストパターンを実行してシーケンスプログラム30の評価を行う。より具体的には、正常動作のテストパターンを実行したときにプログラマブルコントローラ3がサイクル線図の情報に示された正規の動作順序で設備を動作させる信号を出力することを確認し、異常動作のテストパターンを実行したときにプログラマブルコントローラ3が正規の動作順序とは異なる動作順序で設備を動作させる信号を出力しないことを確認する。
The evaluation means 13 evaluates the
評価手段13は、評価の結果を記憶部100に評価結果情報105として記憶する。評価手段13は、正常動作のテストパターンを実行したときにプログラマブルコントローラ3が正規の動作順序で設備を動作させる信号を出力した場合、及び異常動作のテストパターンを実行したときにプログラマブルコントローラ3が正規の動作順序とは異なる動作順序で設備を動作させる信号を出力しなかった場合をOK判定とする。また、評価手段13は、正常動作のテストパターンを実行したときにプログラマブルコントローラ3が正規の動作順序で設備を動作させる信号を出力しなかった場合、及び異常動作のテストパターンを実行したときにプログラマブルコントローラ3が正規の動作順序とは異なる動作順序で設備を動作させる信号を出力した場合をNG判定とする。これらのOK判定及びNG判定の評価結果は、評価結果情報105として記憶部100に記憶される。
The evaluation means 13 stores the evaluation results in the
(試験装置1の動作の具体例)
次に、図2乃至図5を参照し、試験装置1の動作の具体例について詳細に説明する。図2は、プログラマブルコントローラ3が制御対象とする研削盤5の一部を模式的に示す説明図である。この研削盤5は、円筒状の工作物50を砥石500によって研削加工するものであり、主軸台51と、心押台52と、振れ止め装置53とを備えている。工作物50における長手方向の両端面には、センタ穴50a,50bがそれぞれ形成されている。工作物50における主軸台51側の端部には、円盤状の駆動金具501が相対回転不能に取り付けられている。工作物50は、図示しない仮置台に載置された状態で研削盤5にセットされる。
(Specific example of operation of test device 1)
Next, a specific example of the operation of the test apparatus 1 will be described in detail with reference to FIGS. 2 to 5. FIG. 2 is an explanatory diagram schematically showing a part of the
主軸台51は、シャフト511を介して図示しないモータによって回転駆動される回転面板512と、回転面板512に設けられた主軸台センタ513と、回転面板512と一体に回転する油圧シリンダ514と、油圧シリンダ514内に配置されたピストン515と、ピストン515と共に進退移動する駆動ピン516とを備えている。主軸台センタ513は、その先端部が工作物50の一方のセンタ穴50aに嵌合する。駆動ピン516は、油圧シリンダ514に供給される作動油の圧力によって前進し、駆動金具501に形成された嵌合穴501aにそれぞれ嵌合する。
The
心押台52は、心押台センタ521と、油圧シリンダ522と、油圧シリンダ522内に配置されたピストン523と、油圧シリンダ522の外部に配置され、ピストン523と一体に進退移動するドグ部524と、心押台センタ521が前進端にあるときにドグ部524と対向する位置に配置された近接スイッチ525とを備えている。
The
心押台センタ521は、油圧シリンダ522に供給される作動油の圧力によってピストン523と共に前進し、その先端部が工作物50の他方のセンタ穴50bに嵌合する。工作物50は、油圧シリンダ522にピストン523を前進させる作動油が供給されたとき、心押台センタ521と主軸台センタ513との間に挟まれて支持される。心押台センタ521が前進端に移動したことの確認は、近接スイッチ525によって行われる。近接スイッチ525の出力信号は、プログラマブルコントローラ3に入力される。
The
振れ止め装置53は、油圧シリンダ531と、油圧シリンダ531内に配置されたピストン532と、ピストン532と共に進退移動するロッド533とを備え、ロッド533の先端部が工作物50の外周面50cに接触するシュー533aとなっている。振れ止め装置53は、油圧シリンダ531に供給される作動油の圧力によってロッド533が工作物50を押圧することにより、砥石500が工作物50の外周面50cに押し当てられることによる工作物50の撓みを抑制する。
The
主軸台51、心押台52、及び振れ止め装置53のそれぞれの油圧シリンダ514,522,531には、電磁制御弁54,55,56を介して油圧ポンプ57から作動油が供給される。油圧ポンプ57は、ドレンタンク58から作動油を吸入して吐出する。電磁制御弁54,55,56は、プログラマブルコントローラ3から出力される信号によって動作し、作動油の流路を切り替える。
Hydraulic oil is supplied from a
なお、図示は省略しているが、主軸台51の駆動ピン516、及び振れ止め装置53のロッド533についても、それぞれの位置が前進端又は後退端であることを検出する位置センサ(リミットスイッチや近接スイッチ等)が設けられており、これらの位置センサの信号がプログラマブルコントローラ3に入力される。また、図2では、逆止弁や固定絞り弁等の補助的な油圧回路要素の図示を省略している。
Although not shown, the
図3は、研削盤5の自動運転モード時における動作順序を示すサイクル線図の一部である。ここでは、研削盤5の各可動部のうち、主軸台51の駆動ピン516、心押台52の心押台センタ521、及び振れ止め装置53のロッド533の動作順序を示している。サイクル線図には、可動部の動作順序と共に、可動部を動作させるためにプログラマブルコントローラ3が出力する出力信号のアドレスが示される。
FIG. 3 is a part of a cycle diagram showing the operation sequence of the grinding
図3に示す例では、心押台センタ521を前進させるための出力信号のアドレスがD1であり、この出力信号がオン状態となることによって心押台52の油圧シリンダ522の前進側に作動油が供給され、心押台センタ521が前進する。振れ止め装置53のロッド533を前進させるための出力信号のアドレスはD2であり、この出力信号がオン状態となることによって振れ止め装置53の油圧シリンダ531の前進側に作動油が供給され、ロッド533が前進する。また、主軸台51の駆動ピン516を前進させるための出力信号のアドレスはD3であり、この出力信号がオン状態となることによって主軸台51の油圧シリンダ514の前進側に作動油が供給され、駆動ピン516が前進する。
In the example shown in FIG. 3, the address of the output signal for moving the
シーケンスプログラム30は、自動運転モードにおいて、心押台センタ521を前進させるときにD1の出力信号がオン状態となり、心押台センタ521が前進端まで移動したときにD2の出力信号がオン状態となり、振れ止め装置53のロッド533が前進端まで移動したときにD3の出力信号がオン状態となるように記述される。
In the
また、シーケンスプログラム30は、各個操作モードにおいて、操作盤4のタッチパネルディスプレイ40の「センタ前進」を示す第1のボタン401が押されたときにD1の出力信号がオン状態となり、「振れ止め前進」を示す第3のボタン403が押されたときにD2の出力信号がオン状態となり、「駆動金具入り」を示す第5のボタン405が押されたときにD3の出力信号がオン状態となるように記述されるが、サイクル線図に示された動作順序とは異なる動作順序で動作させるようにこれらのボタン401,403,405がタッチ操作された場合には、その動作が行われないことが望ましい。例えば、心押台センタ521が前進する前に「振れ止め前進」を示す第3のボタン403や「駆動金具入り」を示す第5のボタン405が押されても、その動作が行われないことが望ましい。
Furthermore, in each individual operation mode, the
図4は、テストパターン生成手段12が生成するテストパターンの一例を表形式で示す図である。このテストパターンは、研削盤5の状態が図3に示すサイクル線図上の各位置P1,P2,P3において第1のボタン401、第3のボタン403、及び第5のボタン405がタッチ操作されたとき、シーケンスプログラム30を実行するプログラマブルコントローラ3がどのように動作すべきかを示している。図4に示す表において、「動作する」のセルは、サイクル線図に示された設備の正規の動作順序に沿って設備を動作させる場合の正常動作のテストパターンであり、「動作せず」のセルは、正規の動作順序とは異なる動作順序で設備を動作させる場合の異常動作のテストパターンである。
FIG. 4 is a diagram showing an example of a test pattern generated by the test pattern generation means 12 in a table format. This test pattern shows that the state of the grinding
試験装置1は、実際の研削盤5を動作させることなく、机上でシーケンスプログラム30の試験を行えるように、プログラマブルコントローラ3が出力する信号を読み取ってシーケンスプログラム30の動作を確認する。また、試験装置1は、研削盤5の各部に配置された位置センサの信号を模擬してプログラマブルコントローラ3に送信する。
The test device 1 reads the signal output from the
例えば、研削盤5の状態がサイクル線図上のP1の位置にあるときのシーケンスプログラム30の動作を確認する際には、心押台52の心押台センタ521、振れ止め装置53のロッド533、及び主軸台51の駆動ピン516のそれぞれの位置が後退端であることを示す信号を、試験装置1がプログラマブルコントローラ3に送信する。そして、この状態で作業者が操作盤4のタッチパネルディスプレイ40の第1のボタン401、第3のボタン403、及び第5のボタン405をそれぞれタッチ操作し、評価手段13がプログラマブルコントローラ3の出力信号のオン・オフ状態を確認する。
For example, when checking the operation of the
評価手段13は、プログラマブルコントローラ3の出力信号のオン・オフ状態が図4の表に示すとおりであればOK判定とし、異なっていればNG判定とする。つまり、研削盤5の状態がサイクル線図上のP1の位置にあるときには、第1のボタン401のタッチ操作に応じて「センタ前進」の動作がなされればOK判定となるが、第3のボタン403のタッチ操作に応じて「振れ止め前進」の動作がなされたり、第5のボタン405のタッチ操作に応じて「駆動金具入り」の動作がなされれば、正規の動作順序とは異なる動作順序で設備を動作させることとなるので、NG判定となる。
The evaluation means 13 determines OK if the on/off state of the output signal of the
また、研削盤5の状態がサイクル線図上のP2の位置にあるときのシーケンスプログラム30の動作を確認する際には、心押台52の心押台センタ521が前進端にあり、振れ止め装置53のロッド533及び主軸台51の駆動ピン516が後退端であることを示す信号を試験装置1がプログラマブルコントローラ3に送信する。そして、作業者がタッチパネルディスプレイ40の第1のボタン401、第3のボタン403、及び第5のボタン405をそれぞれタッチ操作し、評価手段13がプログラマブルコントローラ3の出力信号のオン・オフ状態を確認する。なお、「センタ前進」を示す第1のボタン401が押されたときには、心押台センタ521を前進させるためのD1の出力信号がオン状態のままであることでOK判定となる。
Also, when checking the operation of the
また、研削盤5の状態がサイクル線図上のP3の位置にあるときのシーケンスプログラム30の動作を確認する際には、心押台52の心押台センタ521及び振れ止め装置53のロッド533が前進端にあり、主軸台51の駆動ピン516が後退端であることを示す信号を試験装置1がプログラマブルコントローラ3に送信する。そして、作業者がタッチパネルディスプレイ40の第1のボタン401、第3のボタン403、及び第5のボタン405をそれぞれタッチ操作し、評価手段13がプログラマブルコントローラ3の出力信号のオン・オフ状態を確認する。「センタ前進」を示す第1のボタン401が押されたときには、心押台センタ521を前進させるためのD1の出力信号がオン状態のままであり、「振れ止め前進」を示す第3のボタン403が押されたときには、ロッド533を前進させるためのD2の出力信号がオン状態のままであることでOK判定となる。
In addition, when checking the operation of the
このように、テストパターン生成手段12は、サイクル線図の各位置において、研削盤5の各可動部の全ての動作を対象にテストパターンを自動的に総当たりで生成し、評価手段13は、生成された各テストパターンを実行したときのプログラマブルコントローラ3の出力信号によってOK/NGの判定を行う。
In this way, the test pattern generation means 12 automatically generates test patterns for all the operations of each movable part of the grinding
なお、テストパターン生成手段12が生成したテストパターンを、例えばシーケンスプログラム30のプログラマが変更できるようにしてもよい。この場合、例えばテストパターン生成手段12が生成したテストパターンをディスプレイ2の表示画面20に表示し、試験装置1に接続されたキーボードやマウス等のポインティングデバイスを用いてプログラマがテストパターンを変更する。この変更は、サイクル線図の動作順序にかかわらず、研削盤5の異常処置や動作確認の作業を現場のオペレータが行いやすいように各個操作の自由度を高めるためのものであり、例えば研削盤5の扉を開けたまま心押台センタ521を前進又は後退させたり、振れ止め装置53のロッド533が後退端にある状態で主軸台51の回転面板512を回転させたりすることを可能とするものである。
Note that the test pattern generated by the test pattern generation means 12 may be changed by, for example, a programmer of the
図5は、各個操作モードにおいてタッチパネルディスプレイ40の第1のボタン401がタッチ操作されたときにD1(センタ前進)の出力信号をオン状態とするためのシーケンスプログラム例を示す図である。図5に示すシーケンスプログラムにおいて、「起動条件」のA接点(EX101)は、研削盤5の自動運転を起動するための条件が満たされていることを示す接点である。「自動運転中」のA接点(M1D2G)は、自動運転モードであることを示す接点である。「運転条件」のA接点(EL201)は、自動運転モードにおいて心押台センタ521を前進させるための条件が満たされていることを示す接点である。「動力供給」のA接点(M1R2M)は、研削盤5を動作させるための動力の供給がなされていることを示す接点である。「指令」のコイル(D1(EL301))は、電磁制御弁56を動作させて油圧シリンダ522にピストン523を前進させる作動油を供給するめの出力信号である。
FIG. 5 is a diagram showing an example of a sequence program for turning on the D1 (center forward) output signal when the
また、図5に示すシーケンスプログラムにおいて、「押しボタン」のA接点(EX601)は、タッチパネルディスプレイ40の第1のボタン401がタッチ操作されたことを示す接点である。「実行ボタン」のA接点(X60)は、操作盤4の実行スイッチ44が押されたことを示す接点である。「各個」のA接点(M1D1H)は、操作盤4の実行スイッチ44が押されたことを示す接点である。「動作端」のA接点(D2P(EL001))は、近接スイッチ525がオン状態になったこと、すなわち心押台センタ521が前進端にあることを示す接点である。また、「反対指令」のB接点(D11)は、心押台センタ521を前進させることの反対動作、すなわち心押台センタ521の後退指令がなされていないことを示す接点である。
In the sequence program shown in FIG. 5, the A contact (EX601) of the "push button" is a contact that indicates that the
このシーケンスプログラムでは、例えば各個操作モード(M1D1H:オン)においてタッチパネルディスプレイ40の第1のボタン401がタッチ操作され(EX601:オン)、実行スイッチ44が押された(X60:オン)とき、運転条件が満たされており(EL201:オン)かつ動力供給がなされていれば(M1R2M:オン)、「指令」のコイル(D1(EL301))がオン状態となり、心押台センタ521が前進する。心押台センタ521が前進端まで移動して「動作端」のA接点(D2P(EL001))がオン状態となれば、その後に実行スイッチ44がオフ状態(X60:オフ)となっても、「指令」のコイル(D1(EL301))のオン状態が維持される。これの一連の動作は、研削盤5の状態がサイクル線図上のP1の位置にあるときの正常動作の一例である。
In this sequence program, for example, when the
ここで、「運転条件」のA接点(EL201)は、心押台センタ521を前進させる動作のインターロックであり、例えば工作物50が仮置台に載置されていることが条件として含まれる。したがって、「運転条件」のA接点(EL201)がオフ状態であるのに、プログラムミスにより、タッチパネルディスプレイ40の第1のボタン401をタッチ操作して実行スイッチ44を押したときに「指令」のコイル(D1(EL301))がオン状態となれば、NG判定となる。このようなプログラムミスがあった場合には、そのNG判定の結果を評価結果提示手段14によって提示し、プログラマにシーケンスプログラム30の修正を促す。
Here, the A contact (EL201) of "operating condition" is an interlock for the operation of advancing the
(実施の形態の効果)
以上説明したように、本実施の形態によれば、テストパターン生成手段12がサイクル線図の情報を基にシーケンスプログラム30のテストパターンを生成し、このテストパターンに基づいて評価手段13がシーケンスプログラム30の評価を行うので、シーケンスプログラム30の試験の省力化を行うことができ、プログラマや作業者等の負担を軽減できる。
(Effects of embodiment)
As explained above, according to the present embodiment, the test pattern generation means 12 generates the test pattern of the
(付記)
以上、本発明を実施の形態に基づいて説明したが、この実施の形態は特許請求の範囲に係る発明を限定するものではない。また、実施の形態の中で説明した特徴の組合せの全てが発明の課題を解決するための手段に必須であるとは限らない点に留意すべきである。また、本発明は、その趣旨を逸脱しない範囲で、一部の構成を省略し、あるいは構成を追加もしくは置換して、適宜変形して実施することが可能である。またさらに、上記した複数の実施の形態の一部の構成を互いに組み合わせることも可能であると共に、例えば下記のように変形することも可能である。
(Additional note)
Although the present invention has been described above based on the embodiments, the embodiments do not limit the invention according to the claims. Furthermore, it should be noted that not all combinations of features described in the embodiments are essential for solving the problems of the invention. Moreover, the present invention can be implemented with appropriate modifications by omitting some configurations, or adding or replacing configurations, without departing from the spirit thereof. Further, it is also possible to combine some of the configurations of the plurality of embodiments described above, and it is also possible to modify, for example, as described below.
上記の実施の形態では、実際の操作盤4を用いてシーケンスプログラム30の試験を行う場合について説明したが、これに限らず、試験装置1において操作盤4が出力する信号を模擬的にプログラマブルコントローラ3に出力してシーケンスプログラム30の試験を行ってもよい。また、上記の実施の形態では、実際のプログラマブルコントローラ3を用いてシーケンスプログラム30の試験を行う場合について説明したが、これに限らず、試験装置1においてプログラマブルコントローラ3の動作をシミュレートしてシーケンスプログラム30の試験を行ってもよい。
In the above embodiment, the case where the
また、上記の実施の形態では、実際の研削盤5を動作させることなく、プログラマブルコントローラ3と試験装置1との信号の送受信によってシーケンスプログラム30の試験を行う場合について説明したが、これに限らず、プログラマブルコントローラ3によって実際の研削盤5を動作させながら、試験装置1によってプログラマブルコントローラ3の入出力信号をモニタしてシーケンスプログラム30の試験を行ってもよい。あるいは、試験装置1において研削盤5の3Dモデルをシミュレーション動作させてシーケンスプログラム30の試験を行ってもよい。
Further, in the above embodiment, a case has been described in which the
また、上記の実施の形態では、制御対象の設備が研削盤5である場合を例にとって説明したが、制御対象の設備は研削盤に限らず、切削機や組立機等の工作機械であってもよいし、プログラマブルコントローラによって制御される設備であれば、搬送機やエレベータあるいは自動販売機等の各種の機器を対象とすることも可能である。
Furthermore, in the above embodiment, the case where the equipment to be controlled is the grinding
1…試験装置
11…受付手段
12…テストパターン生成手段
13…評価手段
103…正常動作テストパターン
104…異常動作テストパターン
3…プログラマブルコントローラ(制御装置)
30…シーケンスプログラム(制御プログラム)
5…研削盤(設備)
1...Testing
30...Sequence program (control program)
5...Grinding machine (equipment)
Claims (3)
前記設備の動作順序を示すサイクル線図の情報を受け付ける受付手段と、
前記サイクル線図の情報を基に前記制御プログラムのテストパターンを生成するテストパターン生成手段と、
前記テストパターンを実行して前記制御プログラムの評価を行う評価手段と、
を備えた制御プログラムの試験装置。 A test device that tests a control program of a control device that operates equipment by inputting and outputting signals,
reception means for receiving information on a cycle diagram indicating the operating order of the equipment;
test pattern generation means for generating a test pattern for the control program based on information on the cycle diagram;
evaluation means for evaluating the control program by executing the test pattern;
Control program testing equipment equipped with
前記評価手段は、前記正常動作のテストパターンを実行したときに前記制御装置が前記正規の動作順序で前記設備を動作させる信号を出力することを確認し、前記異常動作のテストパターンを実行したときに前記制御装置が前記正規の動作順序とは異なる動作順序で前記設備を動作させる信号を出力しないことを確認する、
請求項1に記載の制御プログラムの試験装置。 The test pattern generating means generates a test pattern of normal operation when the equipment is operated in accordance with the normal operation order of the equipment shown in the information of the cycle diagram, and a test pattern of an operation different from the normal operation order. generating a test pattern for abnormal operation when operating the equipment in sequence;
The evaluation means verifies that the control device outputs a signal for operating the equipment in the normal operation order when the normal operation test pattern is executed, and when the abnormal operation test pattern is executed. confirming that the control device does not output a signal that causes the equipment to operate in an operation order different from the normal operation order;
The control program testing device according to claim 1.
請求項1又は2に記載の制御プログラムの試験装置。 The test pattern generation means generates the test pattern for all operations of each movable part of the equipment at each position of the cycle diagram.
A control program testing device according to claim 1 or 2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2022085992A JP2023173619A (en) | 2022-05-26 | 2022-05-26 | Control program testing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2022085992A JP2023173619A (en) | 2022-05-26 | 2022-05-26 | Control program testing device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2023173619A true JP2023173619A (en) | 2023-12-07 |
Family
ID=89030493
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2022085992A Pending JP2023173619A (en) | 2022-05-26 | 2022-05-26 | Control program testing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2023173619A (en) |
-
2022
- 2022-05-26 JP JP2022085992A patent/JP2023173619A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5479486B2 (en) | Safety controller for controlling automated equipment and control method thereof | |
US7218989B2 (en) | Machine tool control apparatus | |
JP5450644B2 (en) | Safety controller for controlling automation system and control method thereof | |
JP5436660B2 (en) | Method and apparatus for generating application program for safety-related control unit | |
CN101470430B (en) | Control method of machine tool and device therefor | |
US7102622B2 (en) | Production equipment monitoring device | |
US20080021591A1 (en) | Numerical controller having interference check function | |
CN103529753B (en) | Possesses the numerical control device that program restarts function | |
CN104570920A (en) | Numerical controller provided with operation setting screen | |
WO2020012547A1 (en) | Numerical control device | |
JP5391675B2 (en) | Machine tool controller | |
CN111558842A (en) | Machine control device and control method | |
JP2023173619A (en) | Control program testing device | |
JP2006338165A (en) | Machine tool operating method and operating device | |
JPWO2004061537A1 (en) | Machining program creation device | |
JP2003316405A (en) | Machine tool operation training device | |
US20110202146A1 (en) | Method for triggering actions of a machine using secure input elements | |
CN104575601B (en) | Device for copying operating parameters recorded in a memory of an industrial tool | |
JP7167607B2 (en) | Machine Tools | |
JP6705848B2 (en) | Control device and control system | |
JP2537424B2 (en) | Control program generator | |
JP2001042907A (en) | Sequence controller | |
KR20100065595A (en) | Machining center having automatic table transfer apparatus | |
JP5483894B2 (en) | Measuring program checking method and measuring function machine | |
JP2001282314A (en) | Device for displaying ladder circuit at the time of abnormality generation in programmable controller |