JPH09114689A - Plc test support system - Google Patents

Plc test support system

Info

Publication number
JPH09114689A
JPH09114689A JP7272839A JP27283995A JPH09114689A JP H09114689 A JPH09114689 A JP H09114689A JP 7272839 A JP7272839 A JP 7272839A JP 27283995 A JP27283995 A JP 27283995A JP H09114689 A JPH09114689 A JP H09114689A
Authority
JP
Japan
Prior art keywords
plc
data
test
support system
program
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
Application number
JP7272839A
Other languages
Japanese (ja)
Inventor
Yuji Sano
優治 佐野
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.)
Toyo Engineering Corp
Original Assignee
Toyo Engineering 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 Toyo Engineering Corp filed Critical Toyo Engineering Corp
Priority to JP7272839A priority Critical patent/JPH09114689A/en
Publication of JPH09114689A publication Critical patent/JPH09114689A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a PLC test support system which saves trouble of test preparation and specification change and has a reproducibility and a general usefulness by providing a PLC emulator. SOLUTION: An operation console 1 consisting of a personal computer implements and operates various test programs purposing to effectively support the PLC test and displays the test result. A logging console 2 consisting of a personal computer always scans values of various monitor data, which are mounted on a PLC, at a high speed and arranges and stores data. A PLC emulator 3 consisting of a personal computer transmits/receives data to/from a personal computer group in an object system and emulates the data storage function instead of the PLC. A printer 4 records the test result. Preparation and adjustment for the test are easily performed as text editing on the CRT picture of the personal computer.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、パソコン、FAコ
ンピュータ、WS(WORK STATION)、PLC(PROGRAMA
BLE LOGIC CONTROLLER)等を主要な構成要素とする分散
型システム構成の各種の対象システムに係るソフトウェ
ア開発業務におけるテスト(デバッグを含む)支援シス
テムに関し、特にPLCの模擬テスト及びPLCのエミ
ュレーションを含むPLCテスト支援システムに関す
る。
TECHNICAL FIELD The present invention relates to a personal computer, FA computer, WS (WORK STATION), PLC (PROGRAMA).
BLE LOGIC CONTROLLER) is a main component, and it is related to the test (including debug) support system in software development work related to various target systems of the distributed system configuration, especially PLC test including PLC simulation test and PLC emulation. Regarding support system.

【0002】[0002]

【従来の技術】従来技術について図13に基づいて説明
する。図13は、従来のPLCテスト支援システムを分
散型制御システムに適用した場合の概略構成を示すブロ
ック図である。
2. Description of the Related Art A conventional technique will be described with reference to FIG. FIG. 13 is a block diagram showing a schematic configuration when a conventional PLC test support system is applied to a distributed control system.

【0003】従来、PLC131のシーケンス・ロジツ
ク設計やラダー・プログラムの作成・テスト(特にイン
ターフェイス部分)を進めるに当たっては、通常は図1
3に示すようなスイッチ・パネル132Aやランプ・パ
ネル132Bと呼ばれるテスト用の操作表示パネル13
2を利用するのが一般的だった。
Conventionally, the sequence logic design of the PLC 131 and the creation and testing of the ladder program (especially the interface portion) are usually carried out as shown in FIG.
A test operation display panel 13 called a switch panel 132A or a lamp panel 132B as shown in FIG.
It was common to use 2.

【0004】これは、沢山の小さい操作スイツチAまた
は表示ランプBを設置した一種の計装パネルで、それを
PLC131の各種入出力ボードとケーブル接続するこ
とにより、実プラントの現場計器や制御機器との入出力
信号を模擬的に生成したり結果を表示したりするもので
ある。
This is a kind of instrumentation panel equipped with many small operation switches A or indicator lamps B. By connecting it to various input / output boards of PLC131 by cables, it can be used as a field instrument or a control device in an actual plant. The input / output signal of is simulated and the result is displayed.

【0005】実際に操作表示パネル132を利用したP
LCテストでは、図13中のスイッチ・パネル132A
上に並ベられた小型スイッチAを順次オン/オフしてP
LC131ヘの擬似入力信号を生成してPLC内部のシ
ーケンス・ロジックを進め、またランプ・パネル132
B上に並ベられたLEDランプBの点灯/消灯ステータ
スを見てPLC131からの出力信号の値を調ベる、と
いう方法でテストを実行する。
P actually using the operation display panel 132
In the LC test, the switch panel 132A in FIG.
Turn on / off the small switches A lined up above one by one to P
Generates a pseudo input signal to the LC 131 to advance the sequence logic inside the PLC, and also to the lamp panel 132.
The test is executed by a method of adjusting the value of the output signal from the PLC 131 by observing the ON / OFF status of the LED lamps B arranged on the B side.

【0006】また、パソコン134、FAコンピュータ
135の制御ロジックのテストや、パソコン134、F
Aコンピュータ135、PLC131間の接続テストを
行うためには、多くの場合プロジェクト毎に専用のテス
ト・プログラムを新規開発する必要があった。
In addition, the control logic of the personal computer 134 and FA computer 135 is tested, and the personal computer 134 and F
In order to perform a connection test between the A computer 135 and the PLC 131, it was often necessary to newly develop a dedicated test program for each project.

【0007】もともと、PLCや分散型計装制御システ
ム(DCS)等を出している計装機器メーカーでは、自
社製の機器向けに各種のテスト・ツールやサポート・プ
ログラムを用意するのが普通である。最近ではそれ以外
にも、スイッチ・パネルやランプ・パネルを小型化し
て、DIPスイッチや表示ランプを組み込んでパッケー
ジ化したテスト機器を販売したり、一部のテスト機能を
組み込んだ自社の特定PLCに対応したテスト・プログ
ラム等を提供する例も見られる。
Originally, an instrumentation equipment maker that produces PLCs or distributed instrumentation control systems (DCS) usually prepares various test tools and support programs for its own equipment. . Recently, other than that, we have miniaturized the switch panel and lamp panel to sell the test equipment packaged by incorporating the DIP switch and the indicator lamp, or to our own specific PLC that incorporates some test functions. There are also examples of providing corresponding test programs.

【0008】[0008]

【発明が解決しようとする課題】上に述ベたようなスイ
ッチ・パネルやランプ・パネルを利用する方法では、大
規模のバッチ・プラント等で使われる数多くの入出力デ
ータを模擬しようと試みた場合、下記のような問題が発
生する。
In the method of utilizing the switch panel or lamp panel as described above, an attempt was made to simulate many input / output data used in a large-scale batch plant or the like. In this case, the following problems will occur.

【0009】1、大量の接続ケーブルの配線・検査作業
が必要となり、準備のために多くの手間がかかるのに加
えて、配線ミスの可能性も非常に高い。実際のテスト業
務に当たっては、テスト要員が人手でスイッチ操作やラ
ンプの点灯確認をしながらテストを進めるため、その操
作自体やテスト結果を記録する際の間違いも多く、スイ
ッチ操作にも時間がかかり、またタイミングの設定・調
整も困難である。
1. A large amount of connection cables need to be wired and inspected, which requires a lot of time and effort for preparation, and the possibility of wiring mistakes is very high. In the actual test work, the test personnel proceed with the test while manually operating the switch and checking the lighting of the lamp, so there are many mistakes in recording the operation itself and the test result, and the switch operation also takes time, It is also difficult to set and adjust the timing.

【0010】2、この方法では、システム開発の途中で
一度全てのテスト用配線作業を完了した後では、操作表
示パネルは接続ケーブルが極度に入り組んだ状態となっ
ていて取り外し難いため、その後で入出力データを変更
したり追加したりすることは困難である。
2. According to this method, after all the test wiring work is completed once during the system development, the operation display panel is in a state in which the connection cables are extremely complicated and it is difficult to remove the operation display panel. It is difficult to change or add output data.

【0011】3、対象システムを設置作業のために現場
に出荷する前には、操作表示パネルとのケーブル配線は
全て取り除くため、それ以降の開発元でのPLCテスト
は不可能となる。また、客先への検収・引き渡しの後で
のシステム保守作業を考えた時にも、手元に充分な量の
PLC等のテスト用器材が残されているケースは稀であ
り、元の開発環境を再現するのに大変な苦労をする羽目
になる。
3. Before the target system is shipped to the site for installation work, all the cable wiring with the operation display panel is removed, so that the subsequent PLC test by the developer becomes impossible. Also, even when considering the system maintenance work after inspection and delivery to the customer, it is rare that a sufficient amount of test equipment such as PLC is left at hand, and the original development environment is used. It will be very difficult to reproduce.

【0012】4、一方、特定のPLC等を対象にしたテ
スト用のハード機器やソフトウェアはいずれも、前もっ
て決められた極めて単純な信号テスト等の目的に使用出
来るに過ぎない。
On the other hand, all of the test hardware and software intended for a specific PLC or the like can be used only for the purpose of an extremely simple signal test determined in advance.

【0013】5、各メーカーが自社製のシステムを対象
として提供するテスト・ツールは、テスト機能自体が簡
単なものに限られている上に種類もかなり少なく、また
使用条件・環境も相当限定されている。
5. The test tools provided by each manufacturer for their own systems are limited to simple test functions, the types are considerably small, and the usage conditions and environment are considerably limited. ing.

【0014】本発明の課題は、従来技術の上記欠点に鑑
みて、テストの準備、仕様変更に手間がかからず、また
再現性、汎用性あるPLCテスト支援システムを提供す
ることにある。
An object of the present invention is to provide a PLC test support system which is reproducible and versatile in view of the above-mentioned drawbacks of the prior art and which does not require test preparation and specification change.

【0015】[0015]

【課題を解決するための手段】上記の課題を解決するた
めに、本発明は、通信ネットワーク上で接続され、分散
型システムを構成するパーソナル・コンピュータ、ワー
クステーション、プログラマブル・ロジツク・コントロ
ーラおよび通信インターフェイス等を対象とするPLC
テスト支援システムであって、PLCテストを目的とす
る各種のテスト・プログラム部と、要求によりテスト結
果を表示、記録する手段とを含むオペレーション・コン
ソールと、PLCに搭載された各種の監視データの値を
高速で常時スキャンして、要求により指定されたテスト
項目・方法に従つてデータを整理・格納するためのロギ
ング・コンソールと、通信ネットワーク上のPLCの代
わりに、対象パソコン群とのデータ送受信およびデータ
格納機能を模擬するためのPLCエミユレータとを具備
することを特徴とするPLCテスト支援システムであ
る。
In order to solve the above problems, the present invention provides a personal computer, a workstation, a programmable logic controller and a communication interface which are connected on a communication network and constitute a distributed system. PLC for etc.
A test support system, which is a test program section for the purpose of PLC testing, an operation console including a means for displaying and recording a test result upon request, and various monitoring data values mounted on the PLC. Logging console to scan data constantly and at high speed to organize and store data according to the test items and methods specified by the request, and to send and receive data to and from the target PC group instead of the PLC on the communication network. A PLC test support system including a PLC emulator for simulating a data storage function.

【0016】また、上記ロギング・コンソールが模擬デ
ータ出力領域を具有し、対象とするPLCが前記模擬デ
ータを転記するデータ・バッファ領域を具有し、PLC
への入力信号を模擬的にエコーバックする機能を具有す
ることを特徴とするPLCテスト支援システムである。
The logging console has a simulated data output area, and the target PLC has a data buffer area for transferring the simulated data.
A PLC test support system having a function of echoing back an input signal to the PLC.

【0017】上記ロギング・コンソールがPLCの対象
データ領域を監視するPLC監視プログラム、対象デー
タの変化情報を書込む記録テーブルを具有し、上記オペ
レーション・コンソールがシーケンス表示プログラムお
よび対象データの変化情報の検索機能を具有することを
特徴とするPLCテスト支援システムである。
The logging console has a PLC monitoring program for monitoring the target data area of the PLC and a recording table for writing change information of the target data, and the operation console searches for a sequence display program and change information of the target data. A PLC test support system characterized by having functions.

【0018】さらに、上記オペレーション・コンソール
が、PLCデータ・シミュレーション用のプログラムお
よびPLCデータ書き換え用のデータファイルを具有す
ることを特徴とするPLCテスト支援システムである。
Further, the above-mentioned operation console further comprises a program for PLC data simulation and a data file for rewriting PLC data, which is a PLC test support system.

【0019】上記PLCエミユレータが、PLCに代わ
るエミュレーション用のプログラム、ポインタ・テーブ
ルおよび疑似PLCデータ領域を具有することを特徴と
するPLCテスト支援システムである。
The PLC test support system is characterized in that the PLC emulator has a program for emulation, a pointer table, and a pseudo PLC data area in place of the PLC.

【0020】[0020]

【発明の実施の形態】本発明について図面を参照して説
明する。図1は、本発明のPLCテスト支援システムを
分散型制御システムに適用した場合の概略構成を示すブ
ロック図である。
BEST MODE FOR CARRYING OUT THE INVENTION The present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing a schematic configuration when the PLC test support system of the present invention is applied to a distributed control system.

【0021】同図において、1はパソコンからなるオペ
レーション・コンソール(以下O/Cと略す)で、PL
Cテストを効果的に支援することを目的とした各種のテ
スト・プログラムを搭載・稼動させ、要求によりテスト
・プログラム機能に応じて得られるテスト結果を表示す
るためのものである。2はパソコンからなるロギング・
コンソール(以下L/Cと略す)で、PLCに搭載され
た各種の監視データの値を高速で常時スキャンして、要
求により指定されたテスト項目・方法に従つてデータを
整理・格納するためのものである。3はパソコンからな
るPLCエミュレータで、PLCの代わりに対象システ
ム中のパソコン群とのデータ送受信およびデータ格納機
能を模擬(エミュレート)するためのものである。4は
プリンタで、要求によりテスト・プログラム機能に応じ
て得られるテスト結果を記録するためのものである。こ
れらからPLCテスト支援システム10が構成されてい
る。また、5はテスト対象の1つであるPLCで、専用
LAN6を介してテスト対象の1つであるパソコン7、
FAコンピュータ8等と接続されて分散型制御システム
を構築している。
In the figure, 1 is an operation console (hereinafter abbreviated as O / C) consisting of a personal computer.
This is for loading and operating various test programs for the purpose of effectively supporting the C test, and displaying the test results obtained according to the test program function upon request. 2 is a personal computer logging
A console (hereinafter abbreviated as L / C) that constantly scans the values of various monitoring data mounted on the PLC at high speed, and organizes and stores the data according to the test items and methods specified by the request. It is a thing. Reference numeral 3 is a PLC emulator composed of a personal computer for simulating (emulating) the data transmission / reception and data storage functions with the personal computer group in the target system instead of the PLC. A printer 4 is for recording the test results obtained according to the test program function upon request. The PLC test support system 10 is composed of these. Further, 5 is a PLC which is one of the test targets, and a personal computer 7 which is one of the test targets through the dedicated LAN 6.
It is connected to the FA computer 8 etc. to construct a distributed control system.

【0022】この分散型制御システムが、一例としてバ
ッチ・プラントの制御システムであれば、製造管理コン
ピュータ(FAコン、WS)は実績管理、製造情報管
理、データ転送等の製造管理機能を持ち、また現場端未
や自動倉庫端未(いずれもパソコン)はプラント監視、
レポーティング、ライン管理、ロット管理等の工程管理
機能を持ち、さらにシーケンサー(PLC)ではシーケ
ンス制御やインターロックをはじめとする機器制御機能
を持ち、これら管理・制御機能がテスト対象になるとい
うことである。
If this distributed control system is, for example, a batch plant control system, the manufacturing management computer (FA controller, WS) has manufacturing management functions such as performance management, manufacturing information management, and data transfer. On-site end and automatic warehouse end (both PCs) are plant monitoring,
It has process control functions such as reporting, line control, lot control, etc., and sequencer (PLC) also has equipment control functions such as sequence control and interlock, and these control functions are subject to testing. .

【0023】本発明に述ベる「PLCテスト」とは、P
LCを構成要素として含む対象システムにおける全ての
テストの総称だが、特にパソコン・FAコンピュータ内
部の制御ロジックのテストや、パソコン・FAコンピュ
ータとPLC間の接続インターフェイスのテストや、P
LC内部のシーケンス・ロジックのテストの各段階に適
用される。
The "PLC test" described in the present invention means P
This is a general term for all tests in the target system that includes LC as a component, but especially tests for control logic inside the personal computer / FA computer, tests for connection interfaces between the personal computer / FA computer and PLC, and P
It applies to each stage of testing the sequence logic inside the LC.

【0024】本発明のテスト機能の種類及びプログラム
について具体的に説明する。
The types of test functions and programs of the present invention will be described in detail.

【0025】PLCテスト支援システムに含まれるテス
ト機能とテスト・プログラムの関係を図2に示し、テス
ト機能の種類およびその関連を図3A、Bに示し、また
幾つかのデータ表示機能の出力例を図4A、B〜図5
A、Bに示す。
The relationship between the test function and the test program included in the PLC test support system is shown in FIG. 2, the types of the test function and their relationships are shown in FIGS. 3A and 3B, and the output examples of some data display functions are shown. 4A, B to 5
Shown in A and B.

【0026】図2と図3A、Bから分かる通り、PLC
テスト支援システムのプログラム構成は各種のテスト・
プログラムの集合体で、一番上位にメインメニューがあ
り、その下に各テスト機能単位のサブメニューが並んで
おり、更にその下に具体的なPLCデータと対応付けら
れた表示・設定等のテスト・プログラムが配置された階
層構造になっている。
As can be seen from FIGS. 2 and 3A and 3B, the PLC
The program structure of the test support system consists of various tests.
In the collection of programs, there is a main menu at the top, and submenus for each test function unit underneath it, and below that there are tests for display and settings associated with concrete PLC data. -It has a hierarchical structure in which programs are arranged.

【0027】PLCテスト支援システムは、元々図3
A、Bに示された各種のデータ収集、表示、記録、印
刷、検索、設定、模擬などの高度なPLCテスト機能を
実現するテスト・プログラムを標準として内包するが、
その大部分はテスト制御用の「枠組みプログラム」とテ
スト実行用の「処理プログラム」から構成される。
The PLC test support system is originally shown in FIG.
A test program that realizes advanced PLC test functions such as various data collection, display, recording, printing, search, setting, and simulation shown in A and B is included as standard.
Most of them consist of "framework program" for test control and "processing program" for test execution.

【0028】次に、テストメニューに基づくテスト機能
の選択・処理プログラム起動について簡単に説明する。
ひとたびメインメニューから特定のPLCテスト機能が
選択されると、それに対応する枠組みプログラムが動作
する。
Next, the selection of test functions and the activation of the processing program based on the test menu will be briefly described.
Once a particular PLC test function is selected from the main menu, the corresponding framework program runs.

【0029】枠組みプログラムは、図3A、Bのサブメ
ニュー(1ー1〜5、2ー1〜6)に対応してあり、選
ばれたテスト機能に特有なサブメニューを表示してか
ら、ユーザーからの実行パラメータの設定とテスト・ケ
ースの選択を受け付け、その後で選ばれたテスト機能に
対応する処理プログラムを起動する。
The framework program corresponds to the submenus (1-1 to 5 and 2-1 to 6) shown in FIGS. 3A and 3B, and after displaying the submenu specific to the selected test function, the user It accepts the setting of execution parameters and the selection of test cases from, and then starts the processing program corresponding to the selected test function.

【0030】また処理プログラムは、全般的なテストの
処理ロジックを記述した「標準モジュール」が、個別の
テスト条件やテスト・データを例えば弊社が開発した簡
易言語ALMIGHTY(SOFTIC登録済み)等で
記述した「データ・ファイル」を読み込んで、1ステッ
プ単位で解釈・実行していく形になっている。
In the processing program, the "standard module" which describes the processing logic of the general test describes individual test conditions and test data in, for example, the simplified language ALMIGHTY (SOFTIC registered) developed by us. It reads the "data file" and interprets and executes it in steps.

【0031】このように、処理プログラムのプログラム
部分とデータ部分が分離されているので、たとえ一部の
テスト機能を変更または追加する必要が起こっても、対
応する簡易言語のデータ・ファイルを市販の編集プログ
ラム(エディター)で修正するだけで済み、時間のかか
る本システム全体の再コンパイルや再リンクは不要であ
る。
As described above, since the program part and the data part of the processing program are separated, even if it is necessary to change or add some test functions, the corresponding simple language data file is commercially available. It only needs to be modified with an editing program (editor), and does not require time-consuming recompilation and relinking of the entire system.

【0032】図3A、Bのテスト機能は、全てPLC内
部の各種データ/レジスターの値をO/C上で表示・設
定するもので、その具体的な内容は下記の通りである。 ・ビットデータ表示 :ビットデータの通常モード
でのリアルタイム表示とデータ設定 ・高速ビットデータ表示 :ビットデータの高速モード
でのリアルタイム表示とデータ設定 ・ビツトトレンド表示 :ビットデータのリアルタイ
ム・トレンド表示 ・事象ビットトレンド表示:ビツトデータの事象発生
(対象データの変化)時のみ進行するトレンド表示 ・シーケンス表示 :L/CのPLC監視プログ
ラムと組み合わせた対象データ変化の検索・表示・記録 ・アナログデータ表示 :アナログデータのリアルタ
イム表示とデータ設定 ・アナログトレンド表示 :アナログデータのリアルタ
ィム・トレンド表示 ・アナログデータ一覧1 :アナログデータの簡易型リ
アルタイム表示(中容量) ・アナログデータ一覧2 :アナログデータの簡易型リ
アルタイム表示(大容量) ・アナログデータ・ロギング :O/C単独でのデータ
変化監視およびデータ検索・表示・記録 ・データロード :簡易言語による、PLCデータ領域
を対象としたデータ入力 ・処理・出力ロジックの実行 次に、本発明のテスト機能の実施について、具体的に説
明する。 A)L/Cによるテスト機能 PLCテスト支援システムは、図3A、Bに示したもの
以外に、ロギング・コンソールL/Cによる下記の二種
類のテスト機能を持つ。
The test functions of FIGS. 3A and 3B all display and set the values of various data / registers inside the PLC on the O / C, and the specific contents are as follows. -Bit data display: Real-time display and data setting of bit data in normal mode-High-speed bit data display: Real-time display and data setting of bit data in high-speed mode-Bit trend display: Real-time trend display of bit data-Event bit Trend display: Trend display that progresses only when a bit data event occurs (change in target data) -Sequence display: Search / display / record of target data change combined with L / C PLC monitoring program-Analog data display: Analog data Real-time display and data setting of-Analog trend display: Real-time / trend display of analog data-Analog data list 1: Simplified real-time display of analog data (medium capacity) -Analog data list 2: Simplified analog data list Real-time display (large capacity) -Analog data logging: Data change monitoring and data retrieval / display / recording by O / C alone-Data load: Data input / processing / output in PLC data area by simple language Execution of Logic Next, the implementation of the test function of the present invention will be specifically described. A) Test function by L / C The PLC test support system has the following two types of test functions by the logging console L / C in addition to those shown in FIGS. 3A and 3B.

【0033】一つは、図6に示すように、I/Oボード
を介して現場の各種計装機器(不図示)からの入力信号
を模擬的に発生する、簡単なエコーバック機能(模擬デ
ータ設定機能)である。
One is, as shown in FIG. 6, a simple echo back function (simulated data) for generating input signals from various instrumentation devices (not shown) on site via the I / O board. Setting function).

【0034】図6は、ロギング・コンソールL/Cによ
るエコーバック機能を実行する図である。
FIG. 6 is a diagram for executing the echo back function by the logging console L / C.

【0035】L/C61の中には、PLC62の対象デ
ータ領域623を常時監視するPLC監視プログラム6
11と、それがPLCのビット変化を記録するためのビ
ット変化記録テーブル612および模擬データ出力領域
613とがある。
The L / C 61 has a PLC monitoring program 6 for constantly monitoring the target data area 623 of the PLC 62.
11 and a bit change recording table 612 and a simulated data output area 613 for recording bit changes of the PLC.

【0036】L/C61がエコーバック機能の対象とす
るPLC62のデータ領域の中には、外部信号とのイン
ターフェイスをとる各種I/Oボード64とのデータ受
け渡し場所である入出力データ・チャネル625や、他
のPLC63との通信機能のデータを格納する通信エリ
ア625などの、ハードウェア機能と直結したものがあ
る。それとは別に、PLC出力データ領域621やPL
C入力データ領域623のように、それぞれ対応する入
出力データ・チャネル/通信エリア625と同じ大きさ
のデータ・バッファー領域624をあらかじめ用意して
おき、PLCの制御プログラムであるシーケンス・ロジ
ック628で外部信号の入出力を行う場合には、入出力
データ・チャネル/通信エリア625の代わりにデータ
・バッファー領域624をアクセスする。
In the data area of the PLC 62 for which the L / C 61 performs the echo back function, the input / output data channel 625, which is a data transfer place with various I / O boards 64 for interfacing with external signals, and , A communication area 625 for storing data of a communication function with another PLC 63, and the like, which are directly connected to the hardware function. Apart from that, PLC output data area 621 and PL
Like the C input data area 623, a data buffer area 624 having the same size as the corresponding input / output data channel / communication area 625 is prepared in advance, and the sequence logic 628 which is a PLC control program externally For signal input / output, the data buffer area 624 is accessed instead of the input / output data channel / communication area 625.

【0037】PLCが現場機器・計器や他のPLC63
との接続626がされている場合には、入出力データ・
チャネル/通信エリア625とデータ・バッファー領域
624との対応するデータ領域同士間ではシーケンス・
ロジック628による一連のブロック転送命令627に
よって同一内容を保持している。
PLC is a field device / instrument or other PLC 63
When the connection 626 with the
There is a sequence between the corresponding data areas of the channel / communication area 625 and the data buffer area 624.
The same contents are held by a series of block transfer instructions 627 by the logic 628.

【0038】エコーバック機能は、もしも現場機器・計
器や他のPLC63との接続がされていない場合には、
PLC62の各種入出力データ・チヤネル/通信エリア
625とビット単位で対応した同じ大きさのデータ・バ
ッファー領域624をあらかじめPLC内に用意してお
くことで、実ハードウェア環境とのデータ入出力動作の
代りに、パソコン上のプログラムから指定された模擬デ
ータ613をPLCのデータ・バッファー領域623に
書き込むことに依って実現する。これは、L/C61の
PLC監視プログラム611が、I/Oボード64に接
続の各種機器(不図示)ヘの制御信号のPLC出力デー
タ領域621を常時スキャンして、それをビット変化記
録テーブル612の内容と照合し、もしもデータ変化が
あればそれを指定された時間遅れを伴って、当該機器か
らのエコーバツク信号として模擬データ613をPLC
入力データ領域623に書き込むものである。
The echo back function is used when the field equipment / instrument or other PLC 63 is not connected.
By preparing a data buffer area 624 of the same size corresponding to each input / output data channel / communication area 625 of the PLC 62 on a bit-by-bit basis in the PLC in advance, data input / output operation with an actual hardware environment can be performed. Instead, it is realized by writing the simulated data 613 designated by the program on the personal computer into the data buffer area 623 of the PLC. This is because the PLC monitoring program 611 of the L / C 61 constantly scans the PLC output data area 621 of the control signal to various devices (not shown) connected to the I / O board 64 and sets it in the bit change recording table 612. If there is a data change, the simulated data 613 is converted into a PLC as an echo back signal from the device with a specified time delay.
The data is written in the input data area 623.

【0039】この環境変化に対応したPLCロジックの
切り替えによってシーケンス・ロジックを実ハードウェ
ア環境と分離する。
The sequence logic is separated from the actual hardware environment by switching the PLC logic corresponding to this environmental change.

【0040】二つには、図7に示すように、大量のビツ
ト・データの変化を監視・記録し、また検索する機能で
ある。
Secondly, as shown in FIG. 7, there is a function of monitoring / recording a large amount of changes in bit data and retrieving.

【0041】図7は、ロギング・コンソールL/Cによ
る監視・検索機能を実行する図である。
FIG. 7 is a diagram for executing the monitoring / searching function by the logging console L / C.

【0042】L/C71の中には、PLC72の対象デ
ータ領域721を常時監視するPLC監視プログラム7
11と、それが変化ビットの情報を書き込む記録テーブ
ル712とがある。その一方で、O/C73の中にはC
RT画面表示・プリント出力機能733を含むシーケン
ス表示機能プログラムがあり、それらに与えられる指定
パラメータ734に従って動作する。L/C71とO/
C73の間のデータ送信は、L/Cの記録テーブル71
2からPLC72内のファイル・メモリー722または
フロッピー・ディスク723に格納されたロギング・フ
ァイルを介してO/C73内のファイル・データ731
に読み込んで行われる。
The L / C 71 has a PLC monitoring program 7 for constantly monitoring the target data area 721 of the PLC 72.
11 and a record table 712 in which the information of the change bit is written. On the other hand, C in O / C73
There is a sequence display function program including an RT screen display / print output function 733, which operates according to designated parameters 734 given to them. L / C71 and O /
Data transmission during C73 is performed by the L / C recording table 71.
2 to the file data 731 in the O / C 73 via the logging file stored in the file memory 722 in the PLC 72 or the floppy disk 723.
Read in.

【0043】この監視・検索機能は、L/C71のPL
C監視プログラム711が指定されたPLC72のデー
タ領域721を常時スキャンして、前回スキャン入力し
たデータ値と異なったPLCビット・データを検出する
と、タイム・スタンプと共にL/C71内に常駐した記
録テーブル712に書き込むものである。記録テーブル
712内のデータは後にロギング・ファイル(PLC7
2内のファイル・メモリー722またはフロッピーディ
スク723)を介してO/C73に渡される。
This monitoring / retrieval function is performed by the PL of L / C71.
When the C monitoring program 711 constantly scans the designated data area 721 of the PLC 72 and detects PLC bit data different from the data value input by the previous scan, the recording table 712 resident in the L / C 71 together with the time stamp. To write to. The data in the recording table 712 will be recorded later in the logging file (PLC7
2 is transferred to the O / C 73 via the file memory 722 or the floppy disk 723) in the No. 2 memory.

【0044】O/C73のシーケンス表示機能では、こ
のデータを利用して、指定パラメータに従ったデータ検
索、その結果のCRT画面表示・プリント出力機能73
3等を行なう。 B)PLCデータ・シミュレーション機能 PLCテスト支援システムのデータロード機能では、P
LC内部の各種のデータ領域やレジスタ領域の内容を順
次書き換えていく。これは、PLCデータの値の変化を
仲立ち(インターフェイス)として、PLCの制御プロ
グラムの流れおよび実プラントの挙動をリアルタイムで
模擬(シミュレーション)したことに相当する。これに
より、オフィス環境での出荷前テスト段階でも実際のシ
ステム運用状況に似せた条件でのテストが実現される。
The sequence display function of the O / C 73 utilizes this data to retrieve data according to designated parameters, and display the result on the CRT screen / print output function 73.
Perform 3rd grade. B) PLC data simulation function In the data load function of the PLC test support system, P
The contents of various data areas and register areas inside the LC are sequentially rewritten. This corresponds to simulating the flow of the PLC control program and the behavior of the actual plant in real time using the change in the PLC data value as an intermediary (interface). As a result, even in the pre-shipment test stage in the office environment, the test can be realized under the condition similar to the actual system operation status.

【0045】図8は、オぺレーション・コンソールO/
Cによるシミュレーションを実行する図である。
FIG. 8 shows the operation console O /
It is a figure which performs the simulation by C.

【0046】O/C81の中には、PLCデータ・シミ
ュレーション機能を実現するための一群のテスト・プロ
グラムが存在する。データロード機能に対応するサブメ
ニュー812から呼ばれるテスト・プログラムは、テス
ト制御用の枠組みプログラム813とテスト実行用の処
理プログラム814(標準モジュール)から成ってい
る。処理プログラム814の入力データは、簡易言語で
記述されたデータ・ファイル815で、これは各々のテ
スト・ケース(模擬シナリオ)との対応付けがなされて
おり、そこで指定された模擬シナリオに従ってPLCの
データ領域に順次データが書き込まれていく。
In the O / C 81, there is a group of test programs for realizing the PLC data simulation function. The test program called from the sub menu 812 corresponding to the data load function is composed of a framework program 813 for test control and a processing program 814 (standard module) for test execution. The input data of the processing program 814 is a data file 815 described in a simple language, which is associated with each test case (simulated scenario), and the data of the PLC according to the simulated scenario specified there. Data is sequentially written in the area.

【0047】ある程度の規模の制御・監視・管理システ
ムでは、運転側の要請から様々なプラント運用シナリオ
が存在する。PLCテスト支援システムでは多数の模擬
用シナリオ821の名称と対応するデータ・ファイル8
15の名称を指定する機構を用意して、テスト担当者が
容易にテスト・ケースを選ぶための手段を提供する。そ
こで指定された模擬用シナリオの本体(データファイ
ル)は、簡易言語で記述された別のテキスト・ファイル
として作成されたもので、それがデータロード機能の標
準モジュールで実行される。
In a control / monitoring / management system of a certain scale, there are various plant operation scenarios due to requests from the operating side. In the PLC test support system, data files 8 corresponding to the names of many simulation scenarios 821
A mechanism for designating 15 names is prepared to provide a means for the tester to easily select a test case. The main body (data file) of the simulation scenario specified there is created as another text file described in a simple language, which is executed by the standard module of the data load function.

【0048】簡易言語では、単純に各種のPLCデータ
を読み書きする基本機能に加えて、柔軟かつ高度な処理
ロジックを記述出来るように、数多くのプログラム機能
(演算子)が用意されている。たとえばPLCデータの
スケール変換、四則等のデータ演算、ビット・データ処
理、内部レジスター制御、行き先制御、画面表示、外部
ファイル入力、時間待ち等がある。また、テストの途中
での実行結果の確認やデータ変更を許すために、ブレー
ク・ポイント設定やデータ手入力も行なえる。更に、も
しも幾つかの模擬用シナリオが参照データは違っても実
行ロジックが殆ど同一の場合には、比較的短い模擬プロ
グラムのループ(繰り返し)によってこれを実現する目
的で、任意のプログラム機能の一部分(インデックス、
参照データ、PLCチャネル番号など)を書き換える特
殊命令も用意されている。模擬用のテキスト・ファイル
を作るに当たっては上記のプログラム機能群を自由に組
み合わせて、必要とされる模擬用シナリオを作成する。
In the simple language, in addition to the basic function of simply reading and writing various PLC data, a large number of program functions (operators) are prepared so that flexible and sophisticated processing logic can be described. For example, there are scale conversion of PLC data, data operation such as four rules, bit / data processing, internal register control, destination control, screen display, external file input, time waiting, etc. You can also set breakpoints and manually enter data to allow confirmation of execution results and data changes during the test. Further, if some simulation scenarios have different reference data but almost the same execution logic, a part of an arbitrary program function is used for the purpose of realizing this by a relatively short simulation program loop (repetition). (index,
Special instructions for rewriting reference data, PLC channel numbers, etc.) are also prepared. In creating a text file for simulation, the above-mentioned program function groups are freely combined to create a required simulation scenario.

【0049】この模擬機能を使用して、対象システムの
パソコン・FAコンピュータ・PLC等が本来想定され
た運転条件に従って正常な動作を行なうことが確認され
るのに加えて、プラント異常やトラブル発生を模擬する
ために、意識的に模擬プログラムの一部に誤ったロジッ
クを加えたりエラー・データを入力することが簡単に出
来る。
Using this simulation function, it is confirmed that the personal computer, FA computer, PLC, etc. of the target system operate normally according to the originally assumed operating conditions, and in addition, a plant abnormality or trouble occurs. In order to simulate, it is easy to intentionally add wrong logic or input error data to a part of the simulation program.

【0050】なお、通常は順次処理(シーケンシャル)
の模擬ロジックで用が足りるケースが大部分だが、もし
も本質的に複数の模擬ロジックが時間的に並列動作して
初めて実現されるような複雑な運用シナリオがあるなら
ば、マルチタスクOS(オペレーティング・システム)
の下で各々の模擬用シナリオをそれぞれ別個のタスクと
して、相互に同期のために連携を取りながら実行すれば
良い。 C)PLCエミュレーション機能 PLCテスト支援システムのプログラム本体とは別に、
PLCエミュレータと呼ばれる独立したプログラムが用
意されている。これは複数台のPLCに代わって、対象
システムのネットワークに接続された複数台のパソコン
・FAコンピュータとの間で、各種のデータ送受信機能
を実行するプログラムである。PLCエミュレータを使
えば、たとえ対象システムの出荷後でパソコン・FAコ
ンピュータだけしか手許になくPLCのハードウェアが
存在しない状態でも、容易に通信データ内容やデータ・
シーケンスの確認テストを実施することが可能である。
Normally, sequential processing (sequential)
In most cases, it is sufficient to use the simulation logic of, but if there is a complicated operation scenario that is essentially realized only when multiple simulation logics operate in parallel in time, the multitasking OS (operating system)
It is sufficient to execute each of the simulation scenarios as separate tasks under [1] while synchronizing with each other for synchronization. C) PLC emulation function Separate from the program body of the PLC test support system,
An independent program called a PLC emulator is prepared. This is a program that executes various data transmission / reception functions with a plurality of personal computers / FA computers connected to the network of the target system, instead of a plurality of PLCs. If you use a PLC emulator, you can easily communicate the contents of communication data and data even if only the personal computer / FA computer is available and the PLC hardware does not exist after the target system is shipped.
It is possible to carry out a sequence confirmation test.

【0051】PLCエミュレータのネットワーク制御
は、次のような方法で実現される。ネットワークを介し
てデータ通信を行なう場合、その構成要素間の通信メッ
セージは各メーカーが提供する標準の通信プロトコルに
従って組み立てられる。メッセージの内容をより詳しく
述ベると、メッセージ本体(送りたいデータそのもの)
以外に、通信制御の目的に付加されてドライバー・ソフ
トに参照されるへッダー部分(送信元・送信先アドレス
その他)やトレイラー部分(エラーチェックその他)か
ら成っている。本来であれば、ネットワークに接続され
たPLC等の機器は1台1台がユニークなネットワーク
(ポート)・アドレスを持つため、1台のパソコンで複
数台のPLC向けの通信メッセージを受けることは論理
的に不可能の筈だが、送信元のパソコン・FAコンピュ
ータの送信先PLCアドレス(先に述ベたへッダー部分
の一部で指定される)を書き換えて、PLCエミュレー
タのネットワーク・アドレスを指定する。それに加え
て、同じへッダー部分の未使用領域を利用または差し支
えない領域を借用して、本来の送信先アドレスをコメン
トとして付加する。PLCエミュレータ側でも回答デー
タ送信の際に同様のアドレス修飾操作を行なうので、送
信元のパソコン・FAコンピュータでは受信した回答デ
ータが本来はどのPLCから来る筈だったものかを認識
出来る。これらのアドレス修飾及び再修飾は、対応する
通信プロトコルの処理ルーチン(PLCテスト支援シス
テムの一部)の中でメッセージを組み立てたり分解した
りする処理の一環として実行されるので、通信ドライバ
ーやアプリケーション機能には何ら影響を与えない。
Network control of the PLC emulator is realized by the following method. When performing data communication via a network, communication messages between the components are assembled according to the standard communication protocol provided by each manufacturer. To describe the contents of the message in more detail, the message body (the data itself you want to send)
Besides, it consists of a header part (source / destination address etc.) and a trailer part (error check etc.) that is added to the purpose of communication control and referred to by the driver software. Normally, each device such as PLC connected to the network has a unique network (port) address, so it is logical that one PC receives communication messages for multiple PLCs. It should not be possible, but rewrite the destination PLC address of the source PC / FA computer (specified by a part of the header part mentioned above) to specify the network address of the PLC emulator. . In addition, the unused area of the same header portion is used or borrowed, and the original destination address is added as a comment. Since the PLC emulator side also performs the same address modification operation when transmitting the response data, the sender personal computer / FA computer can recognize from which PLC the received response data originally should have come. These address modification and remodification are executed as part of the process of assembling and disassembling the message in the processing routine of the corresponding communication protocol (a part of the PLC test support system), so the communication driver and application function Has no effect on

【0052】図9は、PLCエミュレータの内部構成を
示す構成図である。
FIG. 9 is a block diagram showing the internal structure of the PLC emulator.

【0053】PLCエミュレータを設けたパソコンに
は、ネットワークとの接続インターフェイスである通信
ドライバー901が入れられている。
A communication driver 901, which is a connection interface with a network, is installed in a personal computer provided with a PLC emulator.

【0054】PLCエミュレータを構成するオンライン
・プログラムには、環境条件を設定(コンフィギュレー
ション)する環境条件設定902、接続インターフェイ
スの通信方式に対応した通信プロトコル・ルーチン90
3、受信メッセージを取り出して返信を作成するLAN
リンクユニット・ソフト904、メッセージを解析・実
行(PLCデータ領域の更新)するコマンド解釈・実行
905、データ・トレース処理をするトレース・データ
格納906、CRT画面上に疑似PLCデータ領域の内
容を表示/設定するリアルタイム表示908/データ領
域の設定909等がある。
The online program constituting the PLC emulator includes environmental condition setting 902 for setting environmental conditions, and a communication protocol routine 90 corresponding to the communication system of the connection interface.
3. LAN that retrieves received message and creates reply
Link unit software 904, command interpretation / execution 905 that analyzes / executes messages (updates PLC data area), trace data storage 906 that performs data trace processing, displays contents of pseudo PLC data area on CRT screen / There is a real time display 908 / data area setting 909 to be set.

【0055】これ以外にオフライン・プログラムとし
て、データ初期化、コンフィギュレーション定義、デー
タ領域の設定などの各種定義機能910と、トレース・
データの検索機能を行うトレース機能912がある。
In addition to the above, various definition functions 910 such as data initialization, configuration definition, and data area setting, and a trace
There is a trace function 912 that performs a data search function.

【0056】これらのプログラムが利用するテーブル/
ファイル類には、エミュレートしたいPLCの設定条件
を表現する主メモリ上のポインター・テーブル913、
指定された疑似PLCデータ領域が割り当てられる巨大
なデータ領域テーブル914、主メモリ上でトレース・
データを格納するトレース・テーブル907、それをデ
ィスク装置上に移したトレース・ファイル911等があ
る。
Tables used by these programs /
The files include a pointer table 913 on the main memory that expresses the setting conditions of the PLC to be emulated,
Huge data area table 914 to which the specified pseudo PLC data area is allocated, trace on main memory
There are a trace table 907 that stores data, a trace file 911 that moves it to a disk device, and the like.

【0057】ネットワークとの通信ドライバー(I/
F)901からメッセージを受け取ると、まず環境設定
条件(コンフイギュレーション)902に対応した通信
プロトコル・ルーチン903が実行される。ここで、通
信方式に従ったアドレス修飾・再修飾が行われる。次
に、LANリンクユニット・ソフト904によりメッセ
ージ部分が取り出されてから、コマンド解釈・実行ルー
チン905がメッセージの内容を解析・エラーチェック
・実行して、指定に従つて疑似PLCデータ領域914
を更新する。その一方で、LANリンクユニット・ソフ
ト904からは通信メッセージ全体がトレースデータ格
納ルーチン906に送られ、主メモリー常駐のトレース
・テーブル907に順次格納される。また、これらと並
行して疑似PLCデータ領域の内容がCRT画面上にリ
アルタイム表示908され、ユーザーの指定によりマニ
ュアルでのデータ設定909も許される。これ以外に、
データ初期化、コンフィギュレーション定義、データ領
域の設定などの各種定義機能910がある。全ての通信
データは主メモリー上のトレース・テーブル907中に
動的に順次格納されていくが、後で指定によりデイスク
装置上のトレース・ファイル911に移され各種の指定
キーに応じたオフラインの検索処理912に使われる。
Communication driver with network (I /
F) Upon receiving a message from the 901, the communication protocol routine 903 corresponding to the environment setting condition (confg) 902 is first executed. Here, address modification / remodification according to the communication method is performed. Next, after the message portion is taken out by the LAN link unit software 904, the command interpretation / execution routine 905 analyzes the contents of the message, checks for errors, and executes the pseudo PLC data area 914 according to the designation.
To update. On the other hand, the entire communication message is sent from the LAN link unit software 904 to the trace data storage routine 906 and sequentially stored in the trace table 907 resident in the main memory. In addition, in parallel with these, the contents of the pseudo PLC data area are displayed 908 on the CRT screen in real time, and manual data setting 909 is also permitted by the user's designation. Besides this,
There are various definition functions 910 such as data initialization, configuration definition, and data area setting. All communication data is dynamically and sequentially stored in the trace table 907 on the main memory, but later moved to the trace file 911 on the disk device by designation, and offline search according to various designated keys. Used in process 912.

【0058】上記の機能は、リアルタイム・マルチタス
クOSの元で通信ドライバー群901、通信プロトコル
903、LANリンクユニット904、コマンド解釈・
実行(エラー処理を含む)と疑似PLCデータ領域更新
905、データ領域の表示908及び入力909、トレ
ース・データ格納906等のタスク群が、相互に連携を
取りながら並列動作する。これらのタスクが利用するデ
ータは、あらかじめエミュレートしたい複数台のPLC
のデータ領域の種類・サイズを必要に応じて自由に設定
すると、それに従って主メモリー上のポインター・テー
ブル913と巨大なデータ領域テーブル914の上に、
指定された大きさの当該データ領域が割り当てられる。
The above-mentioned functions are based on the real-time multitasking OS, the communication driver group 901, the communication protocol 903, the LAN link unit 904, the command interpretation /
Task groups such as execution (including error processing), pseudo PLC data area update 905, data area display 908 and input 909, and trace data storage 906 operate in parallel while cooperating with each other. The data used by these tasks are the PLCs that you want to emulate in advance.
If you freely set the type and size of the data area of, the pointer table 913 on the main memory and the huge data area table 914 are
The data area of the designated size is allocated.

【0059】次に、これまで説明したPLCテスト支援
システムにとって、他の特徴ある点について説明する。 1)ネットワーク接続の通信インターフェイス もともとPLCテスト支援システムは、幅広いシステム
構成の各種の制御・監視・管理システムに対応すること
を目標として開発されたので、それを容易にするために
複数種類の機器とネットワーク接続出来るように設計さ
れている。
Next, other features of the PLC test support system described above will be described. 1) Communication interface for network connection The PLC test support system was originally developed with the goal of supporting various control, monitoring and management systems with a wide range of system configurations. It is designed for network connection.

【0060】初めに、PLCテスト支援システムは階層
的なモジュール構造をとっているが、特にデータ通信処
理の部分は下位レベルから物理層サポート(ドライバ
ー)、通信プロトコル・サポート、テスト機能サポート
の3階層に分けて設計している。通常は、使用する通信
ハードのメーカーや種類に対応して物理層は1種類に決
まるが、メーカーによっては2種類以上の通信プロトコ
ルを提供している場合がある。またテスト機能は殆ど通
信ハードには関係なく、個別のプロジェクトで要求され
る用途・機能のプログラムを用意する。実際のプロジェ
クトにおいては、これらのサポート・レベル毎に必要と
なるプログラム・モジュールを、PLCテスト支援シス
テムに組み込んで利用する。特にある階層に対して2種
類以上の選択肢がある場合には、あらかじめ全ての対応
モジュールをPLCテスト支援システムに組み込んでお
いて、別のコンフィギュレーション設定用ファイルで、
どのモジュールを使うかを実行時にパラメータ設定す
る。
First, the PLC test support system has a hierarchical module structure. Especially, in the data communication processing part, from the lower level, three layers of physical layer support (driver), communication protocol support, and test function support are provided. It is designed separately. Normally, one type of physical layer is determined according to the manufacturer and type of communication hardware to be used, but some manufacturers may provide two or more types of communication protocols. Also, the test function has almost no relation to communication hardware, and prepares a program for the purpose and function required for each project. In an actual project, the program modules required for each of these support levels are used by incorporating them into the PLC test support system. In particular, if there are two or more types of choices for a given layer, pre-install all the corresponding modules in the PLC test support system and use a different configuration setting file.
Parameterize which module to use at runtime.

【0061】次に、PLCテスト支援システムに含まれ
るテスト機能は非常に汎用的なものなので、対象システ
ムで採用されたPLCのメーカーや機種には殆ど依存し
ない。ただし、PLC内部の各種データ領域の名称はメ
ーカーや機種に特有のものなので、もしも見易さのため
に特定のデータ領域名称等を使用したい場合には、その
名称等を別のテキスト・ファイルに登録することによっ
て対応する。 2)テスト条件の設定 使いやすい簡易言語の採用により、テスト対象とするP
LCデータ種類やアドレス/データの処理方法、画面表
示ロジック、データ模擬ロジック、プログラム・ロジッ
ク等のテスト実行レベルの各種パラメータ類は、必要に
応じて(プログラム・ロジックの変更でなく)テキスト
・ファイルの編集によって、容易かつ柔軟に指定でき
る。
Next, since the test function included in the PLC test support system is very general, it hardly depends on the manufacturer or model of the PLC adopted in the target system. However, the names of various data areas inside the PLC are unique to the manufacturer and model, so if you want to use a specific data area name, etc., for ease of viewing, put that name in another text file. Respond by registering. 2) Setting of test conditions P that is a test target by adopting an easy-to-use simple language
Various parameters such as LC data type, address / data processing method, screen display logic, data simulation logic, program logic, etc. at the test execution level are stored in a text file as needed (instead of changing the program logic). It can be specified easily and flexibly by editing.

【0062】一方で、各種機器のネットワーク・アドレ
ス、データ通信/入出力実行の可否、デバック方法/出
力先の指定、プロセッサー速度の指定、ロギング・ファ
イル名など、PLCテスト支援システム全体のコントロ
ールに係わる全般的な処理パラメータ類は、プログラム
本体とは別のテキスト・ファイルに格納されており、P
LCテスト支援システムの起動時に設定される。このフ
ァイルは、市販の編集プログラム(エディター)で修正
することにより自由に変更出来る。頻繁に使用される処
理パラメータの組み合せが何セットかある場合には、あ
らかじめそれらを別々の名称のテキスト・ファイルとし
て用意しておき、PLCテスト支援システムの起動に先
立って利用したいファイル名称を指定すれば良い。
On the other hand, it is concerned with the control of the whole PLC test support system such as network addresses of various devices, data communication / input / output execution availability, debug method / output destination specification, processor speed specification, logging file name, etc. General processing parameters are stored in a text file other than the program itself.
It is set when the LC test support system is started. This file can be changed freely by modifying it with a commercially available editing program (editor). If there are several combinations of frequently used processing parameters, prepare them as text files with different names in advance and specify the file name you want to use before starting the PLC test support system. Good.

【0063】[0063]

【実施例】ここに述べるPLCテスト支援システムは大
変柔軟なシステム構造を持つため、プロジェクト毎の使
用目的に応じて様々な応用動作が可能である。以下に本
発明の具体的な適用例について説明する。 「適用例1」例として、図10に示すような簡単な反応
系を考える。下記の項目1&2に、実反応系の概略仕様
を示す。
EXAMPLES The PLC test support system described here has a very flexible system structure, so that various application operations are possible depending on the purpose of use for each project. Specific application examples of the present invention will be described below. As an “application example 1”, consider a simple reaction system as shown in FIG. Items 1 & 2 below show the general specifications of the actual reaction system.

【0064】 1、主なシステム構成要素 ・原料タンク(A、B):Rー101,Rー102 ・流量計 :FIー101,FIー102 ・電磁弁(入口側) :Vー101,Vー102 ・反応槽 :Rー201 ・重量計 :Wー201 ・レベル計 :LIー201(HH,H,M,L,LLレベル) ・撹拌モーター :M201 ・温調ユニット :CW、HW ・電磁弁(出口側) :Vー201 ・ポンプ :Pー201 2、主な単位操作(ユニット・オペレーション) ・原料Aの仕込み(Rー101→Rー201) ・原料Bの仕込み(Rー102→Rー201) ・撹拌 (Mー201) ・温度調節(温調ユニット) ・中間製品の移送 (Rー201→下流工程) ・反応槽の洗浄 3、「中間製品の移送」操作のテスト実施例および検証
方法 上記の各種単位操作のうち、ここでは「中間製品の移
送」操作を取り上げて、PLCテスト支援システムの各
種テスト機能がどのように利用可能かについて簡単に説
明する。
1. Main system components-Raw material tanks (A, B): R-101, R-102-Flow meter: FI-101, FI-102-Solenoid valve (inlet side): V-101, V -102-Reaction tank: R-201-Weigh scale: W-201-Level gauge: LI-201 (HH, H, M, L, LL levels) -Agitation motor: M201-Temperature control unit: CW, HW-Electromagnetic Valve (outlet side): V-201-Pump: P-202, main unit operation (unit operation) -Preparation of raw material A (R-101 → R-201) -Preparation of raw material B (R-102 → R-201) -Stirring (M-201) -Temperature control (Temperature control unit) -Transfer of intermediate product (R-201 → downstream process) -Cleaning of reaction tank 3. Test example of "transfer of intermediate product" operation And verification method Each of the above Among the unit-based operations, the "transfer of intermediate product" operation is taken up here to briefly explain how various test functions of the PLC test support system can be used.

【0065】3−1、「中間製品の移送」操作に関連す
るPLCデータの割り付け例 (注)それぞれ、出力(指令)、入力(ステータス/数
値)の順に記載。 ・Vー201(ON/OFF):RL-0100,RL-0200 ・P-201(ON/OFF):RL-0101,RL-0201 ・LI-201(LL) :・・・・・・, RLー0500 ・移送スタート :RL-0600,RL-0700 ・移送ストツプ :RLー0601,RLー0701 ・Wー201 :・・・・・・, DTー0100 ・撹拌タイマー :RLー0615,TMー0100(RLー0615 はタイマー・リセツト)
3-1 Example of PLC data allocation related to "transfer of intermediate product" (Note) Described in the order of output (command) and input (status / numerical value), respectively.・ V-201 (ON / OFF): RL-0100, RL-0200 ・ P-201 (ON / OFF): RL-0101, RL-0201 ・ LI-201 (LL) ・ ・ ・ ・ ・ ・ ・ ・, RLー 0500 ・ Transfer start: RL-0600, RL-0700 ・ Transfer stop: RL-0601, RL-0701 ・ W-201 ・ ・ ・ ・ ・ ・ ・ ・, DT-0100 ・ Agitation timer: RL-0615, TM-0100 (RL-0615 is a timer reset)

【0066】3−2、全般的に利用可能なテスト機能3-2, Test function generally available

【0067】(1)ビットデータ表示 あらかじめ第3−1項のビットデータRLーxxxx を
任意のビットデータ表示画面に割り付けておく。何らか
のPLCテストの実行中に当該画面を選ベば、これらの
ビツトデータのON/OFF状態がリアルタイムで常時
表示されるのを監視して、想定される正常なテスト結果
と比較・確認することが出来る。
(1) Bit data display The bit data RL-xxx of item 3-1 is assigned to an arbitrary bit data display screen in advance. If you select this screen during execution of any PLC test, you can monitor that the ON / OFF status of these bit data is always displayed in real time, and compare and confirm with the expected normal test result. I can.

【0068】(2)アナログデータ表示 あらかじめ第3−1項のアナログデータTMーxxx
x,DTーxxxxを任意のアナログデータ表示画面に
割り付けておく。何らかのPLCテストの実行中に当該
画面を選ベば、これらのアナログデータの数値がリアル
タイムで表示されるのを監視して、想定される正常なテ
スト結果と比較・確認することが出来る。
(2) Analog data display Analog data TM-xxx of the item 3-1 in advance.
Allocate x, DT-xxxx to any analog data display screen. If the screen is selected during execution of any PLC test, it is possible to monitor the numerical values of these analog data displayed in real time and compare / confirm with the expected normal test result.

【0069】(3)事象ビットトレンド表示 あらかじめ第3−1項のビツトデータRLーxxxx を
任意の事象ビットトレンド表示画面に割り付けておく。
特定の制御シーケンス中におけるビツトデータの変化順
序を知りたい場合に当該画面を選ベば、これらのビツト
データのON/OFF 変化の順番が自動的に画面上にグ
ラフイツク表示で記録されていくので、想定される正常
な時間シーケンスと比較・確認出来る。
(3) Event Bit Trend Display The bit data RL-xxx of item 3-1 is assigned to an arbitrary event bit trend display screen in advance.
If you want to know the change order of the bit data in a specific control sequence, select the screen and the ON / OFF change order of these bit data will be recorded automatically on the screen as a graphic display. You can compare and confirm with the expected normal time sequence.

【0070】(4)アナログデータ・ロギング あらかじめ監視したい第3−1項の全てのビット/アナ
ログデータ(ワード単位)をロギングデータ設定ファイ
ルに割り付けておく。ビツトデータのON/OFF変化
やアナログデータの数値変化の順序やデータ値を知りた
い場合に当該画面を選ベば、設定されたビツト/アナロ
グデータの変化状況がタイムスタンプと共に、自動的に
O/C内のロギングテーブルに順次記録されていく。デ
ータ収集期間が終わったら、PLC番号、データ種類、
データアドレスその他のキーワードを指定してO/C内
のロギングテーブルを検索して、目的とするPLCデー
タ(ワード単位)の変化記録が入手されるので、想定さ
れる正常な時間シーケンスおよびデータ値と比較・確認
出来る。
(4) Analog data logging All bits / analog data (word unit) of the item 3-1 to be monitored are allocated in advance to the logging data setting file. If you want to know the order of ON / OFF change of bit data or numerical value change of analog data and the data value, select the screen and the change status of the set bit / analog data will be automatically displayed with the time stamp. It is sequentially recorded in the logging table in C. After the data collection period, PLC number, data type,
By specifying the data address and other keywords and searching the logging table in the O / C to obtain the change record of the target PLC data (word unit), the expected normal time sequence and data value You can compare and confirm.

【0071】3−3、「データロード」機能を利用した
PLCシミュレーション
3-3, PLC simulation using "data load" function

【0072】(1)データロード機能の概略説明 この機能はPLCデータの表示や記録を行うものではな
く、簡易言語を利用してO/C内にPLC内部のロジッ
クの流れを模擬的に作成して実行し、その結果としてP
LC内の各種ビット/アナログデータ領域に、指定され
た内容のデータ値を指定された順番・論理条件に従って
順次書き込んでいく。それにより、たとえ当該PLCの
内部に対応するシーケンス・ロジックが入っていなかっ
たり、当該PLCが現場の測定器や制御機器と接続され
ていない開発環境の下でも、模擬的にPLC内の各種デ
ータ領域をリアルタイムで変化させて、他のPLCやパ
ソコンとのインターフェース・テストを可能にすること
が出来る。
(1) Outline of data load function This function does not display or record PLC data, but creates a simulated flow of logic inside the PLC in the O / C using a simple language. Run as a result, and as a result P
Data values having specified contents are sequentially written in various bit / analog data areas in the LC in accordance with a specified order / logical condition. As a result, even in the development environment where the sequence logic corresponding to the PLC is not included or the PLC is not connected to the measuring instrument or control device in the field, various data areas in the PLC are simulated. Can be changed in real time to enable interface testing with other PLCs and personal computers.

【0073】 (2)「中間製品の移送」操作の制御シーケンス例 ・初期条件のチエツク(機器インターロック、反応槽の液面レベル、機器ステー タス、工程操作の状況 etc.) ・電磁弁Vー201 オープン ・ポンプPー201 スタート ・反応槽の空検(LL)チエック ・電磁弁Vー201 クローズ (注)全ての動作指示はエコーバツク信号を ・ポンプPー201 ストツプ 確認する。(2) Example of control sequence of "transfer of intermediate product" operation-Check of initial conditions (equipment interlock, liquid level of reaction tank, equipment status, status of process operation etc.)-Solenoid valve V- 201 Open ・ Pump P-201 start ・ Lack check (LL) check of reaction tank ・ Solenoid valve V-201 closed (Note) All operation instructions are echo back signal ・ Check pump P-201 stop.

【0074】(3)PLCシミュレーションの手順. 「データロード」機能で利用するデータ・ファイルの一
つとして、簡易言語で次のような制御ロジックを定義し
て登録する。 ・初期条件に合うデータ・パターンを設定:(B)初期条件のセット ・RLー0100をセツトする :(A)電磁弁V-201オープン ・時間遅れ後にRL-0200をセットする:(B)同上のエコーバック信号 ・RL-0101をセットする :(A)ポンプP-201スタート ・時間遅れ後にRL-0201をセットする:(B)同上のエコーバック信号 ・Wー201の数値を0まで少しづつ減らす:(B)反応槽の内容の減少 ・RLー0500をセットする :(B)空検(LL)オン ・RLー0100をリセツトする :(A)電磁弁Vー201クローズ ・時間遅れ後にRLー0200をリセツトする:(B)同上のエコーバック信号 ・RLー0101をリセツトする :(A)ポンプPー201ストツプ ・時間遅れ後にRLー0201をリセツトする:(B)同上のエコーバック信号
(3) PLC simulation procedure. Define and register the following control logic in a simple language as one of the data files used in the "data load" function.・ Set the data pattern that matches the initial conditions: (B) Set the initial conditions ・ Set RL-0100: (A) Open solenoid valve V-201 ・ Set RL-0200 after a time delay: (B) Same as above Echo back signal ・ Set RL-0101: (A) Pump P-201 start ・ Set RL-0201 after a time delay: (B) Echo back signal same as above ・ W-201 value is incremented to 0 Decrease: (B) Decrease the contents of the reaction tank ・ Set RL-0500: (B) Blank inspection (LL) on ・ Reset RL-0100: (A) Solenoid valve V-201 closed ・ RL after a time delay -Reset 0200: (B) Echo back signal same as above-Reset RL-0101: (A) Pump P-201 stop-RL-020 after time delay The To reset: (B) Same as above echo back signal

【0075】上記の制御ロジックをデータロード機能で
実行することによって、あたかも実プロジェクトにおけ
るプラント側の機器・設備と信号のやり取りを行ってい
るのと同じ条件下でPLCのシーケンス・ロジックが順
次進められて、その結果としてPLCの各種データ領域
中にI/0信号と対応するビット/アナログデータが設
定されていく。それを利用して、対象システムに属する
他の構成要素(パソコンやPLC)は、実際のプラント
の現場テストと殆ど同じ環境の下で任意のPLCテスト
を行うことが出来る。
By executing the above control logic with the data load function, the PLC sequence logic is sequentially advanced under the same conditions as if signals are exchanged with the equipment / equipment on the plant side in the actual project. As a result, bit / analog data corresponding to the I / 0 signal is set in various data areas of the PLC. Utilizing this, other components (personal computer or PLC) belonging to the target system can perform an arbitrary PLC test under almost the same environment as a field test of an actual plant.

【0076】上記のコメント欄で(A)と書かれたステ
ツプは、本来PLC内部の制御ロジックにより生成され
る出力信号であり、また(B)と書かれたステップは、
実プラント側での機器稼働の結果としてPLCに戻され
るべき入力信号である。従ってPLCテストの実行環境
(例えば現場からの信号を受けられるのか)に応じて、
データロード機能でどこの部分のPLCデータを生成す
る必要があるかは変わり、その結果として(A)、
(B)またはその両方の制御ロジックをデータロード機
能に盛り込むことになる。
The step described as (A) in the comment section above is an output signal originally generated by the control logic inside the PLC, and the step described as (B) is
It is an input signal to be returned to the PLC as a result of equipment operation on the actual plant side. Therefore, depending on the execution environment of the PLC test (for example, whether signals from the site can be received),
Which part of the PLC data needs to be generated by the data load function changes, and as a result (A),
The control logic of (B) or both of them will be incorporated in the data load function.

【0077】より高度なPLCテストを実現するため
に、下記のようなシーケンス・ロジックを作ることも可
能である。 ・信号の発生タイミングの影響を調ベるために、上記の
シーケンス・ロジックの1ステツプ毎に適当な時間遅れ
を入れる。 ・意識的にエラー状態を作るために、一部のシーケンス
の流れを変える。 ・途中にブレークポイント(一時停止する点)を定義し
て、テスト者がO/Cのキーボードから任意のシーケン
ス・ステツプを指定する。 「適用例2」例として、大規模な組立加工プラントの物
流・搬送系向けの物流制御システムの開発を取り上げ、
図11にもとづいてPLCデータ・シミュレーションの
例について説明する。
In order to realize a more advanced PLC test, it is possible to make the following sequence logic. -In order to check the influence of the signal generation timing, insert an appropriate time delay for each step of the sequence logic described above. -Change the flow of some sequences to intentionally create an error condition. -Define a break point (point to pause) on the way, and the tester specifies an arbitrary sequence step from the O / C keyboard. As an example of "Application 2", the development of a physical distribution control system for a large-scale assembly / processing plant physical distribution / transportation system is taken up,
An example of PLC data simulation will be described with reference to FIG.

【0078】このような物流・搬送プロジェクトでは、
現場における機器設置・テスト作業の日程が大幅に遅延
して現場で長期間にわたり実機器と接続して物流制御シ
ステムのオンライン・テストを実施することが不可能と
なるケースが多い。そういう場合には、代替手段として
物流制御システムのオフィスからの出荷時期を遅らせ
て、現場で行なう筈だった各種の物流機器との接続テス
ト(インターフェイス・テスト)を仮想的に実施するこ
とを検討する。
In such a logistics / transportation project,
In many cases, the schedule of equipment installation / testing work on the site is significantly delayed, making it impossible to connect to actual equipment for a long time on-site to perform an online test of the physical distribution control system. In such a case, consider delaying the shipment timing of the physical distribution control system from the office as an alternative, and virtually conducting a connection test (interface test) with various physical distribution equipment that should have been done on site. .

【0079】実プラントでは、製品の原材料、半製品、
加工品等が、長いべルト・コンベヤーの上を搬送されな
がら各種の組立・加工機械で順次処理されていく。ま
た、多数の半製品を一括処理する都合上、搬送経路の途
中には何組ものパレタイザー、デパレタイザーを初めと
した移載設備が設置されている。
In an actual plant, raw materials of products, semi-finished products,
Processed products are sequentially processed by various assembling / processing machines while being conveyed on a long belt conveyor. Further, for the convenience of collectively processing a large number of semi-finished products, a number of sets of transfer equipment including a palletizer and a depalletizer are installed in the middle of the transfer route.

【0080】実プラントを制御するために、図11に示
すように数多くの機器制御用PLC111がLANに接
続されており、本来ならば現場の各種物流機器からの実
信号を受けて、PLC同士で作業指示・インターロック
等の各種信号をリアルタイムで送受信しながら、一連の
物流業務を進めていくものである。また、物流制御シス
テムの中核であるコンピュータ端未(WS)112が、
それらのPLC間の信号を取り込んで物流制御システム
全体に関わる動作指示を与えたり、データ管理を行う。
また、半製品の一時的格納のために実プラント内に自動
倉庫が設置され、専用の自動倉庫管理コントローラ(パ
ソコン)113によって制御されている。
In order to control the actual plant, as shown in FIG. 11, a large number of device control PLCs 111 are connected to the LAN, and normally, the PLCs receive the actual signals from various physical distribution devices on site. While transmitting and receiving various signals such as work instructions and interlocks in real time, a series of logistics operations are carried out. In addition, the computer end (WS) 112, which is the core of the physical distribution control system,
The signals between the PLCs are fetched to give operation instructions relating to the entire physical distribution control system and perform data management.
An automatic warehouse is installed in the actual plant for temporary storage of semi-finished products, and is controlled by a dedicated automatic warehouse management controller (personal computer) 113.

【0081】しかしここで想定しているケースでは、オ
フィスでの接続テストのために本当の物流機器は1台も
用意出来ないため、その代りにPLCテスト支援システ
ムのPLCデータ・シミュレーション機能(データロー
ド機能)を使う。
However, in the case assumed here, since no real physical distribution equipment can be prepared for the connection test in the office, the PLC data simulation function (data load) of the PLC test support system is used instead. Function).

【0082】本実施例では、想定される数多くの工場オ
ペレーションの運用シナリオとPLCの制御ロジックを
整理してまとめ、テスト用の模擬シナリオを作成する。
PLCテスト支援システムのO/C114上のデータロ
ード機能115を利用して、模擬シナリオに従ったプロ
セス信号を順次自動的に発生させて、対応する機器制御
用PLC111のデータ領域に書き込んでいく。その一
方で、別のO/C116のアナログデータ・ロギング機
能やアナログデータ一覧機能を利用して、コンピュータ
端末が取り込んだプロセス信号の順番・内容などの確認
を行う。また、そのシミュレーション・データを一部修
正することによって、組立加工システムの異常状態や種
々の例外状態をも簡単にシミュレーションさせることが
可能となる。 「適用例3」別の例として、ファイン・ケミカル分野に
おけるパソコン・ベースの典型的な大規模バッチ・プラ
ントの制御システムを取り上げ、図12にもとづいてP
LCエミュレーションの例について説明する。
In this embodiment, a large number of expected factory operation scenarios and PLC control logic are organized and summarized to create a simulated scenario for testing.
Using the data load function 115 on the O / C 114 of the PLC test support system, process signals according to the simulated scenario are automatically generated sequentially and written in the data area of the corresponding device control PLC 111. On the other hand, the analog data logging function and the analog data list function of another O / C 116 are used to confirm the order and contents of the process signals captured by the computer terminal. Further, by partially modifying the simulation data, it becomes possible to easily simulate abnormal states and various exceptional states of the assembly processing system. As another example of "Application 3", a control system for a typical large-scale batch plant based on a personal computer in the field of fine chemicals is taken up, and based on FIG.
An example of LC emulation will be described.

【0083】実プラント全体のデータ管理・処理はFA
コンピュータ121が担当し、実際の日常的なプラント
監視・運転操作は複数台のパソコン122で行う。ま
た、プラントを構成する種々の撹拌釜、反応槽、搬送系
などの機器のシーケンス制御は多数のPLC群123で
実行する。
The data management / processing of the entire actual plant is FA
The computer 121 is in charge, and a plurality of personal computers 122 perform actual daily plant monitoring and operation. A large number of PLC groups 123 execute sequence control of various devices such as an agitator, a reaction tank, and a transport system that constitute the plant.

【0084】通常は、このような制御システムは一度客
先に納入すると、ハード構成やシステム機能を殆ど変更
せずに何年間もずっと客先プラントの運転・監視用に稼
動を続けていく。しかし時として、運転上の要請により
何年も後になって客先よりシステム機能(パソコンの部
分)の一部改造・追加を求められるケースがあるが、オ
フィスには当時の開発環境(ハードウェア、ソフトウェ
ア)は何一つ残っていない状況であり、また多くの場合
には現場テストのために客先のプラントを止めることは
事実上出来ないという制約が付けられる。そういう場合
には代替策として、ソフト改造後の本番用パソコンをP
LCエミュレータを搭載した別パソコンと1:1で接続
して、エミユレーション機能を利用して接続テストをす
ることを検討する。
Normally, such a control system, once delivered to a customer, continues to operate for operation / monitoring of the customer's plant for many years without changing the hardware configuration or the system function. However, in some cases, customers may be required to modify or add some of the system functions (PC part) many years later due to operational requirements. No software remains, and in many cases there is a constraint that it is virtually impossible to stop the customer's plant for on-site testing. In such a case, as an alternative measure, P
We will consider connecting 1: 1 with another PC equipped with an LC emulator and using the emulation function to perform a connection test.

【0085】この方法では、図12に示すように、1台
のPLCエミュレータ124で全てのPLC123のデ
ータ通信機能を模擬することになる。本番用パソコン1
22の上で修正済みの応用プログラムを走らせて、その
出力データをPLCエミュレータ124で受信して対象
PLC123用の模擬データ領域のデータ読み書きを実
行して内容を確認・検索する。また逆に、テスト用の模
擬PLCデータをオンラインでPLCエミュレータ12
4に手入力して、本番用パソコン122側で正しく受信
・処理出来るかを確認する。このようにして、本番用パ
ソコン122のプログラム改造部分を簡単にテストする
ことが可能となる。
In this method, as shown in FIG. 12, one PLC emulator 124 simulates the data communication functions of all the PLCs 123. Production PC 1
The modified application program is run on 22, the output data is received by the PLC emulator 124, the data is read and written in the simulated data area for the target PLC 123, and the contents are confirmed and searched. On the contrary, the simulated PLC data for the test can be sent online to the PLC emulator 12
Manually enter 4 to check whether the production personal computer 122 can correctly receive and process. In this way, it becomes possible to easily test the program modification portion of the production personal computer 122.

【0086】[0086]

【発明の効果】前記のように、[従来の技術]によるP
LCテストが計装パネルと人手によって遂行されたのと
比ベて、パソコン上のPLCテスト支援システムの利用
によりコンピュータ化されたテストでは、以下の顕著な
効果を得ることが出来る。
As described above, P according to the "prior art" is used.
Compared with the LC test performed by the instrument panel and manually, the computerized test by using the PLC test support system on the personal computer has the following remarkable effects.

【0087】1、テスト・ロジックやテスト・データが
完全に分離されて、それぞれコンピュータ・プログラム
とテキスト・データの形で用意されるため、テストのた
めの準備・調整がパソコンのCRT画面上でのテキスト
編集として簡単に行なえる。また、テスト・データの設
定や記録が自動化されるため、テストの手間が大幅に省
けまた確実なテスト記録が簡単に残せる。
1. Since the test logic and test data are completely separated and prepared in the form of computer program and text data respectively, preparations and adjustments for the test are made on the CRT screen of the personal computer. Easy to edit as text. Also, since the setting and recording of test data is automated, the labor of testing can be greatly saved and reliable test records can be easily left.

【0088】2、上記と同じ理由により、システム開発
の途中でテスト・ロジックやテスト・データを任意に変
更・追加することが出来るので、対象システムの仕様変
更に対して柔軟な対処が可能となる。また、対象システ
ムを出荷した後の開発環境がない状況においても、フォ
ローアップや保守・変更作業用のためのテスト環境をい
わばソフトウェア的に提供することができる。
2. For the same reason as above, the test logic and the test data can be arbitrarily changed / added during the system development, so that it is possible to flexibly deal with the specification change of the target system. . Further, even if there is no development environment after shipping the target system, a test environment for follow-up, maintenance, and modification work can be provided as software.

【0089】3、パソコン、LANなど現在の最新のシ
ステム分野で広く認められた一般的なハードウェア、ソ
フトウエアを採用した、汎用的なオープン化されたプラ
ツトフォームであるため、多くのメーカーおよび種類の
パソコン、FAコンピュータ、PLC、LAN等から成
る対象システムとの接続にも容易かつ柔軟に対応出来
る。
3. Since it is a general-purpose open platform that adopts general hardware and software widely recognized in the latest system fields such as personal computers and LANs, many manufacturers and It can easily and flexibly connect to target systems such as personal computers, FA computers, PLCs, LANs, etc.

【0090】4、PLCテストに必要とされる、各種の
データ収集、表示、記録、印刷、検索、設定、模擬など
の高度なPLCテスト機能を網羅しているため、高いテ
スト効率が得られる。
4. Since high-level PLC test functions such as various data collection, display, recording, printing, retrieval, setting and simulation required for the PLC test are covered, high test efficiency can be obtained.

【0091】5、簡単なシンボル形式の簡易言語によ
り、テストの対象となるPLCデータの種類やアドレ
ス、データ処理方法、画面表示ロジック、データ模擬ロ
ジック、プログラム・ロジック等を、容易かつ柔軟に指
定出来る。
5. A simple language of simple symbol format allows easy and flexible designation of the type and address of PLC data to be tested, data processing method, screen display logic, data simulation logic, program logic, etc. .

【0092】6、モジュール化の徹底、プログラム部分
とデータ部分の分離、データ記述用の簡易言語の採用な
どの方法により、テスト・プログラムとしての卓越した
高品質、汎用性、保守性等が保証される。
6. By the method such as thorough modularization, separation of program part and data part, and adoption of simple language for data description, excellent high quality, versatility, maintainability, etc. as a test program are guaranteed. It

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明のPLCテスト支援システムを分散型制
御システムに適用した場合の概略構成を示すブロック図
FIG. 1 is a block diagram showing a schematic configuration when a PLC test support system of the present invention is applied to a distributed control system.

【図2】テスト機能とプログラムとの対応関係を示す図FIG. 2 is a diagram showing a correspondence relationship between a test function and a program.

【図3】A、B テスト・プログラムの種類とその関連
を示す図
FIG. 3 is a diagram showing types of A and B test programs and their relations.

【図4】Aビット・データ表示画面、B事象ビット・ト
レンド表示画面
[Figure 4] A bit data display screen, B event bit trend display screen

【図5】Aアナログ・データ表示画面、Bアナログ・ト
レンド表示画面
[Figure 5] A analog data display screen, B analog trend display screen

【図6】ロギング・コンソールによるエコーバック機能
を実行する図
[Figure 6] Diagram for executing the echo back function by the logging console

【図7】ロギング・コンソールによる監視・検索機能を
実行する図
[Fig.7] Diagram for executing monitoring / search function by logging console

【図8】オぺレーション・コンソールによるシミュレー
ションを実行する図
[Figure 8] Diagram of executing a simulation using the operation console

【図9】PLCエミュレータの内部構成を示す構成図FIG. 9 is a configuration diagram showing an internal configuration of a PLC emulator.

【図10】本発明のPLCテスト支援システムを適用す
る反応系の概略図
FIG. 10 is a schematic diagram of a reaction system to which the PLC test support system of the present invention is applied.

【図11】本発明のPLCテスト支援システムを適用す
る物流制御システムの概略図
FIG. 11 is a schematic diagram of a physical distribution control system to which the PLC test support system of the present invention is applied.

【図12】本発明のPLCテスト支援システムを適用す
るバッチ制御システムの概略図
FIG. 12 is a schematic diagram of a batch control system to which the PLC test support system of the present invention is applied.

【図13】従来のPLCテスト支援システムを分散型制
御システムに適用した場合の概略構成を示すブロック図
FIG. 13 is a block diagram showing a schematic configuration when a conventional PLC test support system is applied to a distributed control system.

【符号の説明】[Explanation of symbols]

1 オぺレーション・コンソール(O/C) 2 ロギング・コンソール(L/C) 3 PLCエミュレータ 4 プリンタ 5 PLC(プログラマブル・ロジック・コントロ
ーラ) 6 通信ネットワーク(LAN)
1 Operation Console (O / C) 2 Logging Console (L / C) 3 PLC Emulator 4 Printer 5 PLC (Programmable Logic Controller) 6 Communication Network (LAN)

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 通信ネットワーク上で接続され、分散型
システムを構成するパーソナル・コンピュータ、ワーク
ステーション、プログラマブル・ロジツク・コントロー
ラおよび通信インターフェイス等を対象とするPLCテ
スト支援システムであって、 PLCテストを目的とする各種のテスト・プログラム部
と、要求によりテスト結果を表示、記録する手段とを含
むオペレーション・コンソールと、 PLCに搭載された各種の監視データの値を高速で常時
スキャンして、要求により指定されたテスト項目・方法
に従つてデータを整理・格納するためのロギング・コン
ソールと、 通信ネットワーク上のPLCの代わりに、対象パソコン
群とのデータ送受信およびデータ格納機能を模擬するた
めのPLCエミユレータとを具備することを特徴とする
PLCテスト支援システム。
1. A PLC test support system for a personal computer, a workstation, a programmable logic controller, a communication interface, etc., which is connected on a communication network and constitutes a distributed system, and which is intended for PLC testing. The operation console including various test program parts to be displayed and means for displaying and recording the test results upon request, and various monitoring data values mounted on the PLC are constantly scanned at high speed and specified by request. A logging console for organizing and storing data according to the specified test items and methods, and a PLC emulator for simulating data transmission / reception and data storage functions with the target PC group instead of PLC on the communication network. Characterized in that PLC test support system.
【請求項2】 上記ロギング・コンソールが模擬データ
出力領域を具有し、対象とするPLCが前記模擬データ
を転記するデータ・バッファ領域を具有し、PLCへの
入力信号を模擬的にエコーバックすることを特徴とする
請求項1記載のPLCテスト支援システム。
2. The logging console has a simulated data output area, and the target PLC has a data buffer area for transferring the simulated data, and echoes back an input signal to the PLC in a simulated manner. The PLC test support system according to claim 1, wherein:
【請求項3】 上記ロギング・コンソールがPLCの対
象データ領域を監視するPLC監視プログラム、対象デ
ータの変化情報を書込む記録テーブルを具有し、上記オ
ペレーション・コンソールがシーケンス表示プログラム
を具有し、対象データの変化情報を検索できることを特
徴とする請求項1乃至2記載のPLCテスト支援システ
ム。
3. The logging console has a PLC monitoring program for monitoring the target data area of the PLC, a recording table for writing change information of the target data, and the operation console has a sequence display program for the target data. 3. The PLC test support system according to claim 1, wherein the change information can be retrieved.
【請求項4】 上記オペレーション・コンソールが、P
LCデータ・シミュレーション用のプログラムおよびP
LCデータ書き換え用のデータファイルを具有し、PL
Cデータ・シミュレートすることを特徴とする請求項1
乃至3記載のPLCテスト支援システム。
4. The operation console is P
Program and P for LC data simulation
It has a data file for rewriting LC data, and PL
The C data simulating method according to claim 1,
The PLC test support system according to any one of 3 to 3.
【請求項5】 上記PLCエミユレータが、PLCに代
わるエミュレーション用のプログラム、ポインタ・テー
ブルおよび疑似PLCデータ領域を具有し、PLCエミ
ユレートすることを特徴とする請求項1乃至4記載のP
LCテスト支援システム。
5. The PLC emulator according to claim 1, wherein the PLC emulator has a program for emulation instead of a PLC, a pointer table and a pseudo PLC data area for PLC emulation.
LC test support system.
JP7272839A 1995-10-20 1995-10-20 Plc test support system Pending JPH09114689A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7272839A JPH09114689A (en) 1995-10-20 1995-10-20 Plc test support system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7272839A JPH09114689A (en) 1995-10-20 1995-10-20 Plc test support system

Publications (1)

Publication Number Publication Date
JPH09114689A true JPH09114689A (en) 1997-05-02

Family

ID=17519497

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7272839A Pending JPH09114689A (en) 1995-10-20 1995-10-20 Plc test support system

Country Status (1)

Country Link
JP (1) JPH09114689A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100464255B1 (en) * 2002-02-14 2005-01-03 엘지산전 주식회사 Remote controlling method for programmable logic controller
DE102010020279A1 (en) 2009-08-20 2011-03-03 Mitsubishi Electric Corp. Monitoring and control device
KR101252358B1 (en) * 2011-04-01 2013-04-08 엘에스산전 주식회사 Apparatus and method for testing plc command
WO2016056080A1 (en) * 2014-10-08 2016-04-14 三菱電機株式会社 Test device for monitoring control device
KR20160059175A (en) * 2014-11-18 2016-05-26 주식회사 세기산전 Installation for examinating programmable logic controller
CN113126516A (en) * 2019-12-30 2021-07-16 比亚迪股份有限公司 Virtual test equipment for turnout

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100464255B1 (en) * 2002-02-14 2005-01-03 엘지산전 주식회사 Remote controlling method for programmable logic controller
DE102010020279A1 (en) 2009-08-20 2011-03-03 Mitsubishi Electric Corp. Monitoring and control device
US8204608B2 (en) 2009-08-20 2012-06-19 Mitsubishi Electric Corporation Monitoring and control apparatus
KR101252358B1 (en) * 2011-04-01 2013-04-08 엘에스산전 주식회사 Apparatus and method for testing plc command
WO2016056080A1 (en) * 2014-10-08 2016-04-14 三菱電機株式会社 Test device for monitoring control device
JPWO2016056080A1 (en) * 2014-10-08 2017-06-08 三菱電機株式会社 Test equipment for monitoring and control equipment
US10295996B2 (en) 2014-10-08 2019-05-21 Mitsubishi Electric Corporation Test device for monitoring control device
KR20160059175A (en) * 2014-11-18 2016-05-26 주식회사 세기산전 Installation for examinating programmable logic controller
CN113126516A (en) * 2019-12-30 2021-07-16 比亚迪股份有限公司 Virtual test equipment for turnout

Similar Documents

Publication Publication Date Title
US6625504B2 (en) Auxiliary power unit engine monitoring system
US6442515B1 (en) Process model generation independent of application mode
US7913170B2 (en) System and method for performing type checking for hardware device nodes in a graphical program
US6634008B1 (en) Methodology server based integrated circuit design
US6405145B1 (en) Instrumentation system and method which performs instrument interchangeability checking
US6282699B1 (en) Code node for a graphical programming system which invokes execution of textual code
US6961871B2 (en) Method, system and program product for testing and/or diagnosing circuits using embedded test controller access data
US5557559A (en) Universal burn-in driver system and method therefor
US20080168092A1 (en) Systems and methods for turbine control simulation
EP1560087A2 (en) Method and apparatus for translation of process models to facilitate usage by plural simulation applications
US7213207B2 (en) System and method for accessing registers of a hardware device in a graphical program
US20040128003A1 (en) System and method for model based control of a neural network
KR20000005243A (en) Stimulated simulator for a distributed process control system
US7356773B1 (en) Wizard builder, for application software, building a setup wizard which sets up a defacto interface between the application program and monitoring or control equipment
US6085156A (en) Instrumentation system and method having instrument interchangeability
CN100465840C (en) Method for simulating a technical installation
CN106201803A (en) A kind of general automation based on tested object model test system and method
US4914567A (en) Design system using visual language
JPH09114689A (en) Plc test support system
CN113126993B (en) Automatic test method and system applied to vehicle detection software
CN111862869A (en) Automatic testing method and system for flight simulator cabin display equipment
CN111310313A (en) IAP-based simulation method and device and wafer cleaning equipment
EP0315002A2 (en) Design system using visual language
Anderson et al. Using ATE simulation to develop test procedures and verify testability for the STANDARD missile
CN117330103A (en) Automatic testing method and system for modularized micro-inertia measurement assembly