JP2002196816A - Automatic simulation device for control program for plc and its method - Google Patents

Automatic simulation device for control program for plc and its method

Info

Publication number
JP2002196816A
JP2002196816A JP2000391882A JP2000391882A JP2002196816A JP 2002196816 A JP2002196816 A JP 2002196816A JP 2000391882 A JP2000391882 A JP 2000391882A JP 2000391882 A JP2000391882 A JP 2000391882A JP 2002196816 A JP2002196816 A JP 2002196816A
Authority
JP
Japan
Prior art keywords
plc
computer
program
data
input signal
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
JP2000391882A
Other languages
Japanese (ja)
Inventor
Isao Watanabe
功 渡邉
Seiichi Mizutani
聖一 水谷
Tomio Hayashi
富雄 林
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.)
MASTER ENGINEERING KK
Toyota Motor Corp
Original Assignee
MASTER ENGINEERING KK
Toyota Motor 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 MASTER ENGINEERING KK, Toyota Motor Corp filed Critical MASTER ENGINEERING KK
Priority to JP2000391882A priority Critical patent/JP2002196816A/en
Publication of JP2002196816A publication Critical patent/JP2002196816A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To confirm the control program of a PLC by operating a real machine without previously verifying it. SOLUTION: Data constituting a time chart T prepared by a computer 3 are converted into data which can be communicated between a computer 3 and a PLC 2, edited, and stored, and an automatic simulation program is executed based on the storage data. Then, only input signal data to the PLC 2 in the storage data can be used, and the input signal is automatically transmitted from the computer 3 to the PLC 2 successively at a set lapsed time, and an output signal from the PLC is transmitted to the computer 3. Thus, the transmission of the input and output signal between the computer 3 and the PLC 2 can be automatically performed. Then, the control program of the PLC 2 is executed, and the situation is displayed on a screen.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、PLC(プログラ
マブル・ロジック・コントローラ)を使用した自動制御
プログラムを構築、設計する上での基本となる、コンピ
ュータ上で作成された動作図、タイムチャートを利用し
て、PLC内のメモリーに記憶された制御用プログラム
を自動実行させることを可能にしたPLC用の制御プロ
グラムの自動シミュレーション方法、自動シミュレーシ
ョンプログラムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention utilizes an operation diagram and a time chart created on a computer, which are the basis for constructing and designing an automatic control program using a PLC (programmable logic controller). Further, the present invention relates to an automatic simulation method and an automatic simulation program for a control program for a PLC, which can automatically execute a control program stored in a memory in the PLC.

【0002】[0002]

【従来の技術】従来、PLCの制御プログラムにあって
は、最初にタイムチャートを作成し、該タイムチャート
に基づきプログラムを組む様にしている。そして、作成
された制御プログラムが計画通りに論理的に構成されて
いるか否かを検証する場合、入力条件をPLCに操作入
力し、かかる入力信号に対するPLCの出力を確認する
方法か、或いはPLCの出力に対する入力条件を事前に
作成しておく所謂、PLCに対する入力のシナリオを作
成して行う方法がある。
2. Description of the Related Art Conventionally, in a PLC control program, a time chart is first created and a program is constructed based on the time chart. Then, when verifying whether or not the created control program is logically configured as planned, a method of inputting the input conditions to the PLC and confirming the output of the PLC in response to the input signal, or There is a method of creating a so-called PLC input scenario in which input conditions for an output are created in advance.

【0003】[0003]

【発明が解決しようとする課題】しかし、前者の方法に
あっては、1入力に対し1出力とはいかず、複数入力に
対し1出力であったり、或いは1入力に対し複数出力で
あるなど、シーケンス中のステップ数又は工程数の倍以
上の操作をPLCに対して行う必要があり、且つPLC
からの出力の変化の監視も必要であり、而も操作を間違
った場合、又はプログラム上の論理的なミスが生じた場
合、やり直す必要があった。又、後者の方法にあって
は、プログラム量又はステップ数の増加に伴う弊害とし
て、PLC側の制御プログラムのミスなのか、シナリオ
のミスなのかの判断に時間を要し、どちらをチェックし
ているかが判らなくなってしまう恐れがある。よって、
入力条件をPLCに操作入力しながら行う方法、或いは
シナリオを作成し行う方法のいずれにしろ、膨大な時間
と労力を要してしまう等、解決せねばならない課題があ
り、従って、一般的には事前検証せずに実機を作動させ
て確認するのが実情である。
However, in the former method, one input is not one output, but one input is one output for a plurality of inputs, or one output is a plurality of outputs for one input. It is necessary to perform more than twice the number of steps or steps in the sequence on the PLC, and
It is also necessary to monitor the change in the output from, and if the operation is incorrect or a logical mistake occurs in the program, it is necessary to start over. Further, in the latter method, it takes time to determine whether there is a mistake in the control program on the PLC side or a mistake in the scenario as an adverse effect associated with an increase in the program amount or the number of steps. There is a risk that you may not be able to understand. Therefore,
Either the method of inputting the conditions while inputting them into the PLC or the method of creating a scenario requires a lot of time and effort. It is the fact that actual equipment is operated and checked without prior verification.

【0004】[0004]

【課題を解決するための手段】本発明は、上記従来技術
に基づく、PLCの制御プログラムを事前検証せずに実
機を作動させて確認する等の課題に鑑み、コンピュータ
で作成したタイムチャートを構成するデータを、コンピ
ュータ及びPLC相互間を通信可能なデータに変換、編
集、格納すると共に、自動シミュレーションプログラム
を格納データに基づき実行することによって、格納デー
タ中のPLCへの入力信号データのみを利用し、該入力
信号を、設定された経過時間に順次自動的にコンピュー
タからPLCに送信すると共に、PLCからの出力信号
をコンピュータへ送信する様に、コンピュータ及びPL
C間で入出力信号の送信が自動的に行われて、PLCの
制御プログラムを実行させると共に、その状況を画面表
示する様にして、上記課題を解決する。
SUMMARY OF THE INVENTION According to the present invention, there is provided a time chart created by a computer in consideration of the problem that a control program of a PLC is checked by operating an actual machine without prior verification. Is converted, edited, and stored into data that can be communicated between the computer and the PLC, and by executing the automatic simulation program based on the stored data, only the input signal data to the PLC in the stored data is used. The computer and the PLC so that the input signal is automatically transmitted from the computer to the PLC sequentially at the set elapsed time, and the output signal from the PLC is transmitted to the computer.
The above-described problem is solved by automatically transmitting an input / output signal between the C and executing the control program of the PLC and displaying the status on a screen.

【0005】[0005]

【発明の実施の形態】以下本発明の一実施を図面に基づ
いて説明する。本発明のシーケンスプログラムの自動シ
ミュレーションを行うのに必要となるシステム1として
は、図1に示す様に、CPU(中央処理装置)及びメモ
リー(データや命令の記憶装置)を搭載したPLC2
と、パーソナルコンピュータ(パソコン)から成るコン
ピュータ3と、PLC2及びコンピュータ3間の接続装
置4より構成されている。
DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below with reference to the drawings. As shown in FIG. 1, a system 1 required for performing an automatic simulation of a sequence program of the present invention includes a PLC 2 having a CPU (central processing unit) and a memory (storage device for data and instructions).
And a computer 3 composed of a personal computer (personal computer), and a connection device 4 between the PLC 2 and the computer 3.

【0006】又、コンピュータ3としては、出力装置5
としてのCRT表示装置5aとプリンター5b、記憶装置
6、入力装置7としてのキーボード7a又はマウス7b、こ
れらの出力装置5及び入力装置7を制御して処理を実行
し、CPU及びメモリー等を搭載しており、又PLC2
とコンピュータ3を接続する接続装置4としては、例え
ばI/Oポート(input /outputポート)、RSー23
2C、接続ケーブル、インターフェース等としている。
The computer 3 includes an output device 5
A CRT display device 5a and a printer 5b, a storage device 6, a keyboard 7a or a mouse 7b as an input device 7, these output devices 5 and an input device 7 are controlled and executed, and a CPU and a memory are mounted. And PLC2
The connection device 4 for connecting the computer 3 to the computer 3 includes, for example, an I / O port (input / output port), an RS-23
2C, connection cable, interface, etc.

【0007】次に本発明に係る自動シミュレーションを
各段階に分けて説明する。 〔第1段階〕タイムチャート作成 起動状態におけるコンピュータ3上でタイムチャート作
成プログラムを選択、起動して、図1に示す様なタイム
チャートTを作成する。入出力信号のON/OFF状態
については、行番号5以降、列番号H以降に、ON状態
だけを罫線で表示し分かり易くしいる。時間表示は、図
2における行番号4、列番号I以降に自動記入された数
字である。尚、入出力信号のON/OFFとは、PLC
2における入出力リレーの他に、内部リレー、リンクリ
レー、ステップリレー、ラッチリレー等のON/OFF
も含むものとする。又、タイムチャート作成プログラム
にあっては、市販の表計算プログラムを利用して行うの
が簡単である。具体的には、図2に示す様な専用シート
の作成、例えば、列1升に割り当てる時間、即ち単位時
間を設定して自動書込みしたり、罫線を「1」、「0」
に自動変換する等の補助プログラムの作成が必要とな
る。上記専用シートに、実際に使用するデバイス番号、
信号の種類(入力か出力か)、コメント等を入力する。
デバイス番号及び入出力信号の入力は、入力と出力に使
用するデバイスの範囲を設定することで自動入力される
様に成っている。 〔第2段階〕データ変換 タイムチャートを指定データに変換して、例えば図3に
示す様に、入出力信号のON状態を「1」、ON→OF
Fを「0」に置換すると共に、残りを無表示(空欄)と
し、コンピュータ3のメモリーに格納した後、タイムチ
ャート作成プログラムを終了させる。 〔第3段階〕プログラム起動及び初期設定 シーケンスプログラムの自動シミュレーションプログラ
ムを選択、起動して、PLC2からシーケンスプログラ
ム中の、或いはシーケンスプログラム作成時にFD(フ
ロッピィディスク)、HD(ハードディスク)等に格納
しておいた各種データを読み取らせると共に、コンピュ
ータ3のメモリーに格納する。この時、図4、5に示す
様な入出力コメント表を作成する。次に、PLC2の機
種選定、使用されているデバイス番号の範囲の設定等の
初期設定を行う。例えば、本実施例の場合、使用されて
いるデバイス番号の範囲は、入力範囲を“000000
〜000000”、“000100〜000103”と
し、出力範囲を“000200〜000201”、“0
00300〜000302”としている。尚、自動シミ
ュレーションプログラムを起動した時点で、既に上記範
囲が自動設定される様に成っている。 〔第4段階〕実行 第2段階における格納データを読み込むが、格納データ
における全ての「1」を使用しても無意味であり、OF
F→ONになった部分のみを認識し、開始端の「1」と
終了端である「0」の間には「1」があるものとして自
動編集される。かかる自動編集を行うには、先ず、並ん
だ複数個の「1」の開始端のもの、即ち入出力信号の
“OFF→ON”に変化したもの及び終了端である
「0」、即ち入出力信号の“ON→OFF”に変化した
もの(例えば、図3における行番号6で列番号Kの
「1」と列番号Oの「0」等)だけを認識し、該当する
送信時間、デバイス番号、コメント及び「1」又は
「0」だけを抽出する様に自動編集する。そして、図6
に示す様な、上下2段に分割されたタイムチャートが表
示される。具体的には、上方画面のチェック履歴Taに
あっては、対応時間におけるコンピュータ3からPLC
2への設定する入力信号のデバイス番号、コメント、O
N/OFF状態を表示すると共に、その右側下方に、上
記設定した入力信号に対応するPLC2からコンピュー
タ3への変化した出力信号のデバイス番号、コメント、
ON/OFF状態を表示する様に成っている。他方、下
方画面のタイムチャートTbにあっては、〔第1段階〕
で作成したタイムチャートTと略同一のものとして表示
される。又、罫線の色は入出力で異なり、具体的には、
入力を青、出力を赤としている。 〔第5段階〕シミュレーション開始 シミュレーションを実行すると、コンピュータ3からP
LC2に対して条件設定信号及び自動運転信号等を出力
し、信号入力されシーケンスプログラムが起動したPL
C2からシーケンスプログラムのシーケンス逐次制御に
基づく各種起動命令信号を実機の入出力装置に相当する
コンピュータ3に出力し、各種起動命令信号等の出力情
報と後述する入力情報の夫々を、番号・コメント・ON
/OFFの状態等に解析し、これらの入出力、転送に基
づくチェック履歴Ta、タイムチャートTbを作成し、
図7に示す様に、コンピュータ3のCRT表示装置5aで
表示する。表示画面上は、上方画面のチェック履歴Ta
にあっては、常に表示状態のままで、左端に縦列表示さ
れた四角升の色を順次変化させていくことで、下方画面
のタイムチャートTbにあっては、罫線を順次伸長させ
ると共に、「現状」欄に“●(ON)”又は“○(OF
F)”が切替え表示されることで夫々プログラムの進行
を表現する様に成っている。 〔第6段階〕繰り返し試験開始 繰り返し開始位置及び繰り返し回数を設定した後、実行
すると、第5段階における表示画面と同様のチェック履
歴Ta、タイムチャートTbが連続形成され、画面右下
に実行中の回数が表示される。具体的には、上方画面の
チェック履歴Taにあっては、繰り返し開始位置におけ
る左端の四角升の色が変化して再度下方へ移行して行く
様に成っている。他方、下方画面にあっては、1回終了
毎に各罫線が表示消去されて新たに画面表示される様に
成っている。又、動作時間を通常より長く設定して、シ
ミュレーションの推移時間を長くして動作を確認し易く
することも可能にしている。又、シミュレーションのロ
グ(履歴)は、全て格納される様にするのが望ましい
が、コンピュータ3のメモリー容量の関係上、予め格納
する回数を複数選択しておき、それのみを格納する様に
成っている。そして、かかるログをプリントすると、図
8、9に示す様に、上部に年月日、時間、回数及び倍率
が表示されると共に、その下にチャートが表示される様
に成っている。
Next, the automatic simulation according to the present invention will be described for each stage. [First Stage] Time Chart Creation A time chart creation program is selected and activated on the computer 3 in the activated state, and a time chart T as shown in FIG. 1 is created. As for the ON / OFF state of the input / output signal, only the ON state is indicated by a ruled line after the row number 5 and after the column number H for easy understanding. The time display is a number automatically entered after the row number 4 and the column number I in FIG. In addition, ON / OFF of the input / output signal means PLC
ON / OFF of internal relay, link relay, step relay, latch relay, etc., in addition to the input / output relay in 2
Shall be included. Further, the time chart creation program can be easily performed by using a commercially available spreadsheet program. Specifically, creation of a dedicated sheet as shown in FIG. 2, for example, setting the time allocated to one row, that is, the unit time, automatic writing, and setting the ruled lines to “1”, “0”
It is necessary to create an auxiliary program, such as automatic conversion to a program. The device number actually used,
Enter the type of signal (input or output), comment, etc.
The input of the device number and the input / output signal is automatically input by setting the range of the device used for input and output. [Second stage] Data conversion The time chart is converted into designated data, and for example, as shown in FIG.
After replacing F with "0" and leaving the rest blank (blank) and storing it in the memory of the computer 3, the time chart creation program is terminated. [Third stage] Program start and initial setting An automatic simulation program of the sequence program is selected and started, and stored in the FD (floppy disk), HD (hard disk) or the like during the sequence program from the PLC 2 or when the sequence program is created. The read various data is read and stored in the memory of the computer 3. At this time, an input / output comment table as shown in FIGS. Next, initial settings such as selection of the model of the PLC 2 and setting of a range of used device numbers are performed. For example, in the case of the present embodiment, the input range is “000000”
0000000 ”to“ 000100 to 000103 ”, and the output range is“ 000200 to 200001 ”,“ 0 ”.
The range is automatically set when the automatic simulation program is started. [Fourth Step] Execution The storage data in the second step is read. It is meaningless to use all “1” in
Only the portion where F → ON has been recognized, and automatic editing is performed assuming that "1" exists between "1" at the start end and "0" at the end end. In order to perform such automatic editing, first, a plurality of "1" s arranged at the start end, that is, an input / output signal changed from "OFF to ON" and an end end thereof "0", that is, the input / output signal Recognize only the signal changed from “ON → OFF” (for example, “1” of column number K and “0” of column number O in row number 6 in FIG. 3), and the corresponding transmission time and device number , Comment and "1" or "0" are automatically edited. And FIG.
The time chart divided into upper and lower two stages as shown in FIG. Specifically, in the check history Ta on the upper screen, the PLC 3
Device number, comment, O
The N / OFF state is displayed, and the device number, comment, and the like of the changed output signal from the PLC 2 to the computer 3 corresponding to the set input signal are displayed on the lower right side.
The ON / OFF state is displayed. On the other hand, in the time chart Tb on the lower screen, [First stage]
Is displayed as substantially the same as the time chart T created in the step (a). Also, the color of the ruled line differs between input and output, and specifically,
The input is blue and the output is red. [Fifth stage] Start of simulation When the simulation is executed, P
A condition setting signal, an automatic operation signal, and the like are output to the LC2, the signal is input, and the sequence program is started.
From C2, various start command signals based on the sequence sequential control of the sequence program are output to the computer 3 corresponding to the input / output device of the actual machine. ON
/ OFF state, etc., and a check history Ta and a time chart Tb based on these input / output and transfer are created.
As shown in FIG. 7, the image is displayed on the CRT display device 5a of the computer 3. On the display screen, the check history Ta of the upper screen
In the time chart Tb on the lower screen, the ruled lines are sequentially extended by sequentially changing the color of the square cells displayed in a column at the left end while keeping the display state. "● (ON)" or "○ (OF)
F) is switched to display the progress of the program respectively. [Sixth step] Start of repetition test After setting the repetition start position and the number of repetitions, the display is displayed in the fifth step. A check history Ta and a time chart Tb similar to those on the screen are continuously formed, and the number of executions is displayed at the lower right of the screen. In the lower screen, each ruled line is erased and displayed on a new screen each time it is completed. It is also possible to set the operation time longer than usual to make the transition time of the simulation longer so that the operation can be easily confirmed.The simulation log (history) It is desirable to store all of them, but in consideration of the memory capacity of the computer 3, a plurality of storage times are selected in advance, and only those numbers are stored, and such a log is printed. Then, as shown in FIGS. 8 and 9, the date, time, number of times, and magnification are displayed at the top, and a chart is displayed below them.

【0008】又、オプションとして下記の機能を具備さ
せるのが望ましい。具体的には、シミュレーションの途
中で、図10に示す様に画面上に表示したボタンをクリ
ックしたり、図示しないが、予め割り当てられたキーボ
ード7aにおけるファンクションキーを押すことにより、
任意の入力信号をPLC2に送信し、その後どの様に作
動するかを確認して、支承無くシーケンスプログラムが
進行するか否かの検証を行える様にしている。而も、予
め別の設定で、一工程を等時間に分割し、任意の入力信
号を自動的且つ経時的に順次入力する様にして、あらゆ
る事態に対応出来るか否かを検証可能にするのが望まし
い。具体的には、図10に示す設定ボックスにおける記
入欄に「0」、「1」、「2」の様な数字を記入し、シ
ミュレーション中に、各記入欄の左側に表示されたボタ
ンをクリックすることで実行する様に成っている。因み
に、本実施例にあっては、「0」はデバイス番号“00
0000”で“起動PB”、「1」はデバイス番号“0
00001”で“非常停止PB”、「2」はデバイス番
号“000002”で“非常解除PB”と成っており、
“非常停止PB”が割り当てられたボタン(図面上、ボ
タン○)をクリックすると、図10に示す様に、シミュ
レーションの途中でデバイス番号“000001 非常
停止PB”が“★1”として割込み表示される。
It is desirable to provide the following functions as options. Specifically, during the simulation, the user clicks a button displayed on the screen as shown in FIG. 10 or presses a function key on a keyboard 7a (not shown), which is assigned in advance.
An arbitrary input signal is transmitted to the PLC 2, and thereafter, it is confirmed how the operation is performed, so that it can be verified whether or not the sequence program proceeds without any support. In addition, it is possible to verify whether or not all situations can be dealt with by dividing one process into equal time by another setting in advance and inputting an arbitrary input signal automatically and sequentially with time. Is desirable. Specifically, enter numbers such as “0”, “1”, and “2” in the entry fields in the setting box shown in FIG. 10, and click the buttons displayed on the left of each entry field during the simulation. It is made to execute by doing. Incidentally, in the present embodiment, “0” is the device number “00”.
“0000”, “start PB”, “1” is device number “0”
“00001” is “emergency stop PB”, and “2” is device number “000002” is “emergency release PB”.
When the button (button o in the drawing) to which "emergency stop PB" is assigned is clicked, the device number "000001 emergency stop PB" is interrupted and displayed as "★ 1" during the simulation as shown in FIG. .

【0009】ここで、シーケンスプログラムを搭載した
PLC2を接続し、シーケンス制御する実機の一例とし
て、図11に示す様に、2系統の前後上下作動被制御体
を実施例として、以下詳細に説明する。2基のエアーシ
リンダー11、11a のエアー供給口にソレノイドバルブ1
2、12a、13、13a (SOL1、2、3、4)を介在した
供給パイプを夫々接続し、エアーシリンダー11、11a の
ロッドの先端にプッシャ15及びリフタ15a 等を取付けて
いる。リフタ15a の下降端及び上昇端等、プッシャ15の
前進端及び後退端を検知するセンサー及び付属装置16、
16a 、17、17a (PX1、2、AS1、2)を夫々設け
ている。ソレノイドバルブ13a (SOL4)はエアーシ
リンダー11a の起動に関係し、ソレノイドバルブ13(S
OL3)は作動解除に関係したものと成し、又センサー
17a (AS2)は下降端の検知に関係し、センサー17
(AS1)は上昇端の検知に関係するものと成してい
る。そして、起動ボタン(図示せず)を押すと、先ずリ
フタ15a が上昇し、上昇終了後にプッシャ15が前進し、
前進終了後にプッシャ15が後退すると共に、リフタ15a
が下降する様に成っている。
Here, as an example of a real machine for connecting a PLC 2 loaded with a sequence program and performing sequence control, as shown in FIG. 11, a two-way front and rear up-and-down controlled object will be described in detail as an embodiment. . Solenoid valve 1 for air supply port of two air cylinders 11 and 11a
2, 12a, 13 and 13a (SOL1, 2, 3 and 4) are respectively connected to supply pipes, and a pusher 15 and a lifter 15a are attached to the tip of the rod of the air cylinders 11 and 11a. A sensor for detecting the forward end and the backward end of the pusher 15, such as the descending end and the rising end of the lifter 15a, and an auxiliary device 16,
16a, 17, 17a (PX1, 2, AS1, 2) are provided respectively. The solenoid valve 13a (SOL4) is related to the activation of the air cylinder 11a, and the solenoid valve 13 (S
OL3) shall be related to the deactivation and the sensor
17a (AS2) relates to the detection of the falling edge, and the sensor 17
(AS1) relates to detection of the rising end. Then, when a start button (not shown) is pressed, the lifter 15a first rises, and the pusher 15 moves forward after the lifting is completed,
After the forward movement is completed, the pusher 15 retreats and the lifter 15a
Descends.

【0010】又、プッシャ15及びリフタ15a の上下進退
動に関するシーケンス制御回路におけるリレー回路は図
示省略し、リレー番号及びそのON/OFF命令の一例
を説明する。被制御体“プッシャ”に関し、SOL3、
4の出力リレー番号は夫々Y302、Y303であり、
一方が出力された時には他方が出力停止となる様に回路
設計されており、又AS1、2の入力リレー番号はX1
02、X103であり、本願のシーケンスプログラムの
チェックにおいては、夫々の入出力番号として“000
0302”、“000303”、“000102”、
“000103”と成している。被制御体“リフタ”に
関し、SOL1、2、PX1、2も同様にY300、Y
301、X100、X101、“000300”、“0
00301”、“000100”、“000101”と
夫々成している。
A relay circuit in the sequence control circuit relating to the vertical movement of the pusher 15 and the lifter 15a is not shown, and an example of a relay number and its ON / OFF command will be described. Regarding the controlled object “pusher”, SOL3,
The output relay numbers of No. 4 are Y302 and Y303, respectively.
The circuit is designed so that when one is output, the other stops output, and the input relay number of AS1, 2 is X1
02 and X103, and in the check of the sequence program of the present application, the respective input / output numbers are “000”.
0302 "," 000303 "," 000102 ",
"000103". Regarding the controlled object “lifter”, SOL1, PX2 and PX1 and PX2 are also Y300 and YPX.
301, X100, X101, “000300”, “0”
00301 ”,“ 000100 ”, and“ 000101 ”.

【0011】ここで、自動シミュレーションに戻って説
明する(図6参照)。 (1)項番
Here, description will return to the automatic simulation (see FIG. 6). (1) Item number

〔0000〕 初期条件として、“000101〜ON”“00010
3〜ON”の入力信号をPLC2へ送信し、該PLC2
より“000200〜ON”の出力信号がコンピュータ
3へ転送される。即ち、“リフタ下降端”及び“プッシ
ャ後退端”が“OFF”から“ON”になり、それがP
LC2へ送信されて、仮想実機が原位置状態に戻る。 (2)項番〔0001〕 “000000〜ON”の入力信号をPLC2へ送信
し、該PLC2より“000201〜ON”及び“00
0300〜ON”の出力信号がコンピュータ3へ転送さ
れる。即ち、“起動PB”が“ON”になり、それがP
LC2へ送信されて、仮想実機の自動運転が始まりリフ
タ15a が上昇を開始する。 (3)項番〔0002〕 “000000〜OFF”の入力信号と、リフタ15a の
上昇に伴う“000101〜OFF”の入力信号をPL
C2へ送信し、該PLC2より“000200〜OF
F”の出力信号がコンピュータ3へ転送される。即ち、
“リフタ下降端”が“ON”から“OFF”になり、そ
れがPLC2へ送信されて、仮想実機が原位置でなくな
る。 (4)項番〔0003〕 “000100〜ON”の入力信号をPLC2へ送信
し、該PLC2より“000302〜ON”の出力信号
がコンピュータ3へ転送される。即ち、“リフタ上昇
端”が“OFF”から“ON”になり、それがPLC2
へ送信されて、プッシャ15が前進を開始する。しかし、
リフタ15a はまだ上昇中である。 (5)項番〔0004〕 プッシャ15の前進に伴う“000103〜OFF”の入
力信号をPLC2へ送信する。即ち、“プッシャ後退
端”が“OFF”になり、それがPLC2へ送信され
る。 (6)項番〔0005〕 “000102〜ON”の入力信号をPLC2へ送信
し、該PLC2より“000300〜OFF”、“00
0302〜OFF”及び“000301〜ON”の出力
信号がコンピュータ3へ転送される。即ち、“プッシャ
前進端”が“OFF”から“ON”になり、それがPL
C2へ送信されて、リフタ15a の上昇及びプッシャ15の
前進が停止すると共に、リフタ15a の下降及びプッシャ
15の後退が開始する。 (7)項番〔0006〕 プッシャ15の後退に伴う“000102〜OFF”の入
力信号をPLC2へ送信する。即ち、“プッシャ前進
端”が“OFF”になり、それがPLC2へ送信され
る。 (8)項番〔0007〕 リフタ15a の下降に伴う“000100〜OFF”、
“000103〜ON”の入力信号をPLC2へ送信す
る。即ち、“リフタ上昇端”が“OFF”に、“プッシ
ャ後退端”が“ON”になり、それがPLC2へ送信さ
れて、プッシャ15の後退が停止する。しかし、リフタ15
a はまだ下降中である。 (9)項番〔0008〕 “000101〜ON”の入力信号をPLC2へ送信
し、該PLC2より“000200〜ON”、“000
201〜OFF”及び“000301〜OFF”の出力
信号がコンピュータ3へ転送される。即ち、“リフタ下
降端”が“ON”になり、それがPLC2へ送信され
て、リフタ15a の下降が停止すると共に、仮想実機が原
位置状態に戻り自動運転が終わる。
[0000] As initial conditions, “000101 to ON” “00010
3 to “ON” input signal to the PLC 2,
The output signal of “000200 to ON” is transferred to the computer 3. That is, the “lifter lower end” and the “retractor pusher end” change from “OFF” to “ON”,
Sent to LC2, the virtual real machine returns to the home position. (2) Item number [0001] An input signal of “000000 to ON” is transmitted to the PLC 2, and “000201 to ON” and “00” are transmitted from the PLC 2.
The output signal of “0300 to ON” is transferred to the computer 3. That is, the “start PB” is turned “ON”, and
Sent to LC2, automatic operation of the virtual real machine starts, and lifter 15a starts to rise. (3) Item No. [0002] The input signal of “000000 to OFF” and the input signal of “000101 to OFF” due to the rise of the lifter 15a are PL
C2, and "000200-OF" from the PLC2.
The output signal of F ″ is transferred to the computer 3. That is,
The “lifter lower end” changes from “ON” to “OFF”, which is transmitted to the PLC 2 so that the virtual real machine is not at the original position. (4) Item No. [0003] An input signal of “000100 to ON” is transmitted to the PLC 2, and an output signal of “000302 to ON” is transferred from the PLC 2 to the computer 3. That is, the “lifter rising end” changes from “OFF” to “ON”, and this is
And the pusher 15 starts moving forward. But,
Lifter 15a is still rising. (5) No. [0004] An input signal of “000103 to OFF” is transmitted to the PLC 2 when the pusher 15 advances. That is, the “pushing backward end” becomes “OFF”, which is transmitted to the PLC 2. (6) Item No. [0005] An input signal of “000102 to ON” is transmitted to the PLC 2, and “000300 to OFF”, “00”
The output signals of “0302 to OFF” and “000301 to ON” are transferred to the computer 3. That is, the “pusher advance end” changes from “OFF” to “ON”, which is the PL.
Sent to C2, the lifter 15a stops moving up and the pusher 15 moves forward, while the lifter 15a moves down and pusher 15a.
15 retreat begins. (7) Item No. [0006] An input signal of “000102 to OFF” accompanying the retreat of the pusher 15 is transmitted to the PLC 2. That is, the “pusher forward end” is turned “OFF” and transmitted to the PLC 2. (8) No. [0007] “000100 to OFF” accompanying the lowering of the lifter 15a,
The input signal “000103 to ON” is transmitted to the PLC 2. That is, the “lifter rising end” is turned “OFF” and the “pushing-back retreat end” is turned “ON”, which is transmitted to the PLC 2 and the retraction of the pusher 15 is stopped. But lifter 15
a is still descending. (9) Item No. [0008] An input signal of “000101 to ON” is transmitted to the PLC 2, and “000200 to ON”, “000”
The output signals of "201-OFF" and "000301-OFF" are transferred to the computer 3. That is, the "lifter lower end" is turned "ON", transmitted to the PLC 2, and the lowering of the lifter 15a is stopped. At the same time, the virtual machine returns to the original position and the automatic operation ends.

【0012】[0012]

【発明の効果】要するに本発明は、PLC2における複
数のリレーのON/OFF状態を経時的に表示するタイ
ムチャートTの作成プログラムと、作成されたタイムチ
ャートTを構成するデータをコンピュータ3及びPLC
2相互間で通信可能なデータに変換するプログラムと、
変換データにおける入力信号を、設定された経過時間毎
にPLC2に送信すると共に、該入力信号により変化し
た出力信号を基に必要データを抽出し画面表示するPL
C2の自動シミュレーションプログラムとが格納された
コンピュータ3、及び該コンピュータ3にオンライン接
続された、制御プログラムが格納された、実機に接続さ
れるべきPLC2により構成されたので、要するに従来
よりPLC用の制御プログラムを作成するにあたり作成
されているタイムチャートTを利用して、自動シミュレ
ーション用のデータを作成することが出来るため、確実
なシミュレーションを実行することが出来る。
In short, the present invention provides a program for creating a time chart T for displaying the ON / OFF states of a plurality of relays in the PLC 2 with time, and a computer 3 and a PLC for creating the data constituting the time chart T.
A program for converting the data into data communicable between the two,
A PL that transmits an input signal in the converted data to the PLC 2 at every set elapsed time, extracts necessary data based on an output signal changed by the input signal, and displays the data on a screen.
Since it is composed of a computer 3 in which an automatic simulation program of C2 is stored and a PLC 2 which is connected online to the computer 3 and in which a control program is stored and which is to be connected to a real machine, in short, control for PLC has been conventionally performed Since the data for the automatic simulation can be created using the time chart T created when the program is created, a reliable simulation can be executed.

【0013】又、PLC2の自動シミュレーションプロ
グラムを、繰り返し戻し位置における入力信号と繰り返
し終了位置における入力信号を設定することで、PLC
2を連続シミュレーションする様にしたので、実機を使
用して長時間の試験運転を行う必要がなく、簡単にコン
ピュータ3とPLC2間の通信だけで行うことが出来
る。
Further, by setting an input signal at the repetition return position and an input signal at the repetition end position, the PLC 2 automatic simulation program can be used.
2 is continuously simulated, so that it is not necessary to perform a long-time test operation using an actual machine, and the operation can be easily performed only by communication between the computer 3 and the PLC 2.

【0014】又、PLC2の自動シミュレーションプロ
グラムを、シミュレーション中に任意の入力信号を送信
する様にしたので、実機を使用せずに、実機の稼動時に
おける緊急事態に対応出来るか否かを検証することを簡
単に行うことが出来る等その実用的効果甚だ大である。
Since the automatic simulation program of the PLC 2 transmits an arbitrary input signal during the simulation, it is verified whether or not it is possible to cope with an emergency during the operation of the actual machine without using the actual machine. That is, the practical effect is extremely large.

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

【図1】本発明に係るPLC用制御プログラムの自動シ
ミュレーション装置の概略図である。
FIG. 1 is a schematic diagram of an automatic simulation device for a PLC control program according to the present invention.

【図2】タイムチャートの表示画面の一例を示す図であ
る。
FIG. 2 is a diagram illustrating an example of a display screen of a time chart.

【図3】変換後のタイムチャートの表示画面の一例を示
す図である。
FIG. 3 is a diagram showing an example of a display screen of a time chart after conversion.

【図4】入力コメントの一覧を示す図である。FIG. 4 is a diagram showing a list of input comments.

【図5】出力コメントの一覧を示す図である。FIG. 5 is a diagram showing a list of output comments.

【図6】格納データを開いた状態のシミュレーション画
面を示す図である。
FIG. 6 is a diagram showing a simulation screen in a state where stored data is opened.

【図7】自動シミュレーションの実行状態の表示画面を
示す図である。
FIG. 7 is a diagram showing a display screen of an execution state of an automatic simulation.

【図8】図7の結果をプリントアウトした状態を示す図
である。
8 is a diagram showing a state in which the result of FIG. 7 is printed out.

【図9】図8の他の実施例を示す図である。FIG. 9 is a view showing another embodiment of FIG. 8;

【図10】自動シミュレーション画面に割込みキーを表
示し、且つ割込みを実行した状態の図である。
FIG. 10 is a diagram showing a state in which an interrupt key is displayed on an automatic simulation screen and an interrupt is executed.

【図11】実施例であるリフタの模式図である。FIG. 11 is a schematic view of a lifter according to an embodiment.

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

2 PLC 3 コンピュータ T タイムチャート 2 PLC 3 Computer T Time chart

───────────────────────────────────────────────────── フロントページの続き (72)発明者 林 富雄 愛知県豊田市トヨタ町1番地 トヨタ自動 車株式会社内 Fターム(参考) 5H220 BB12 CX06 CX08 HH01 JJ12 JJ31 JJ53 KK08 LL06 5H223 AA15 CC03 CC08 DD03 EE19 FF05  ────────────────────────────────────────────────── ─── Continued on the front page (72) Inventor Tomio Hayashi 1 Toyota Town, Toyota City, Aichi Prefecture Toyota Motor Corporation F-term (reference) 5H220 BB12 CX06 CX08 HH01 JJ12 JJ31 JJ53 KK08 LL06 5H223 AA15 CC03 CC08 DD03 EE19 FF05

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 PLCにおける複数のリレーのON/O
FF状態を経時的に表示するタイムチャートの作成プロ
グラムと、 作成されたタイムチャートを構成するデータをコンピュ
ータ及びPLC相互間で通信可能なデータに変換するプ
ログラムと、 変換データにおける入力信号を、設定された経過時間毎
にPLCに送信すると共に、該入力信号により変化して
コンピュータに送信された出力信号を基に必要データを
抽出し画面表示するPLCの自動シミュレーションプロ
グラムとが格納されたコンピュータ、 及び該コンピュータにオンライン接続された、制御プロ
グラムが格納された、実機に接続されるべきPLCによ
り構成されたことを特徴とするPLC用制御プログラム
の自動シミュレーション装置。
1. ON / O of a plurality of relays in a PLC
A program for creating a time chart for displaying the FF status over time, a program for converting the data constituting the created time chart into data communicable between a computer and a PLC, and an input signal in the converted data are set. A computer which stores a PLC automatic simulation program for transmitting necessary data to the PLC at every elapsed time, extracting necessary data based on the output signal changed by the input signal and transmitted to the computer, and displaying the data on a screen; An automatic simulation device for a PLC control program, comprising a PLC connected online to a computer, storing a control program, and connected to an actual machine.
【請求項2】 PLCの自動シミュレーションプログラ
ムを、繰り返し戻し位置における入力信号と繰り返し終
了位置における入力信号を設定することで、PLCを連
続シミュレーションする様にしたことを特徴とする請求
項1記載のPLC用制御プログラムの自動シミュレーシ
ョン装置。
2. The PLC according to claim 1, wherein an automatic simulation program for the PLC sets an input signal at a repetition return position and an input signal at a repetition end position to continuously simulate the PLC. Automatic simulation device for control program for the computer.
【請求項3】 PLCの自動シミュレーションプログラ
ムを、シミュレーション中に任意の入力信号を送信する
様にしたことを特徴とする請求項1又は2記載のPLC
用制御プログラムの自動シミュレーション装置。
3. The PLC according to claim 1, wherein the PLC automatic simulation program transmits an arbitrary input signal during the simulation.
Automatic simulation device for control program for the computer.
【請求項4】 PLCにおける複数のリレーのON/O
FF状態を経時的に表示するタイムチャートの作成ステ
ップと、 作成されたタイムチャートを構成するデータをコンピュ
ータ及びPLC相互間で通信可能なデータに変換するス
テップと、 変換データにおける入力信号を、設定された経過時間毎
にPLCに送信すると共に、該入力信号により変化して
コンピュータに送信された出力信号を基に必要データを
抽出し画面表示するステップから成ることを特徴とする
PLC用制御プログラムの自動シミュレーション方法。
4. ON / O of a plurality of relays in a PLC
A step of creating a time chart for displaying the FF state over time; a step of converting data constituting the created time chart into data that can be communicated between the computer and the PLC; and setting an input signal in the converted data. Transmitting the necessary data based on the output signal changed by the input signal and transmitted to the computer, and displaying the screen on the screen. Simulation method.
JP2000391882A 2000-12-25 2000-12-25 Automatic simulation device for control program for plc and its method Pending JP2002196816A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000391882A JP2002196816A (en) 2000-12-25 2000-12-25 Automatic simulation device for control program for plc and its method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000391882A JP2002196816A (en) 2000-12-25 2000-12-25 Automatic simulation device for control program for plc and its method

Publications (1)

Publication Number Publication Date
JP2002196816A true JP2002196816A (en) 2002-07-12

Family

ID=18857960

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000391882A Pending JP2002196816A (en) 2000-12-25 2000-12-25 Automatic simulation device for control program for plc and its method

Country Status (1)

Country Link
JP (1) JP2002196816A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007058367A (en) * 2005-08-23 2007-03-08 Yokogawa Electric Corp Monitor for program
CN102799510A (en) * 2011-04-27 2012-11-28 Ls产电株式会社 PLC simulator based on reconfigurable components

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63121906A (en) * 1986-11-12 1988-05-26 Hitachi Ltd Simulation device
JPH03286303A (en) * 1990-04-02 1991-12-17 Hitachi Ltd Sequence control test system
JPH07175839A (en) * 1993-12-16 1995-07-14 Nippon Steel Corp Cad device
JPH08305418A (en) * 1995-04-28 1996-11-22 Omron Corp Device and method for debugging sequence program
JPH0991028A (en) * 1995-09-22 1997-04-04 Fuji Electric Co Ltd Method for testing sequence control of power protection controller
JPH09230923A (en) * 1996-02-22 1997-09-05 Nissan Motor Co Ltd Simulation device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63121906A (en) * 1986-11-12 1988-05-26 Hitachi Ltd Simulation device
JPH03286303A (en) * 1990-04-02 1991-12-17 Hitachi Ltd Sequence control test system
JPH07175839A (en) * 1993-12-16 1995-07-14 Nippon Steel Corp Cad device
JPH08305418A (en) * 1995-04-28 1996-11-22 Omron Corp Device and method for debugging sequence program
JPH0991028A (en) * 1995-09-22 1997-04-04 Fuji Electric Co Ltd Method for testing sequence control of power protection controller
JPH09230923A (en) * 1996-02-22 1997-09-05 Nissan Motor Co Ltd Simulation device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007058367A (en) * 2005-08-23 2007-03-08 Yokogawa Electric Corp Monitor for program
CN102799510A (en) * 2011-04-27 2012-11-28 Ls产电株式会社 PLC simulator based on reconfigurable components
KR101243441B1 (en) * 2011-04-27 2013-03-13 엘에스산전 주식회사 Simulator based on reconfigurable components

Similar Documents

Publication Publication Date Title
EP0261853A2 (en) System for monitoring operation of object-oriented programs
US5970243A (en) Online programming changes for industrial logic controllers
CN103345446B (en) A kind of automated testing method being applicable to remote control series products
EP2816427B1 (en) Plc simulation system, plc simulator, recording medium, and simulation method
JPH04318618A (en) Apparatus and method for displaying and processing action bar and pull-down menu at workstation
US20120022673A1 (en) Dynamic Views in a Modeling of an Automation System
CN104160343A (en) Multi-axis control system setting/adjustment function assistance device
CN104503442A (en) Fault diagnosis training method for ordnance equipment
CN101479734A (en) Simulation apparatus, method and program
JP5552300B2 (en) Sequence control apparatus, method, and program for connected device simulator
JPS62229343A (en) Program counter display system
JP5498446B2 (en) Ladder program creation device and ladder program creation method
US6725449B1 (en) Semiconductor test program debugging apparatus
JP2002196816A (en) Automatic simulation device for control program for plc and its method
KR101706029B1 (en) System-setup assistance apparatus
CN103365750B (en) Automatic test platform for remote-control products
CN116755720A (en) Chip burning method, device, equipment and medium
CN115543835A (en) Method and device for testing front-end page, testing equipment and storage medium
CN101887087B (en) Automatic test system and operating method and instrument control device thereof
CN113075915A (en) Em-plant based virtual simulation implementation method, system and equipment
CN107679264B (en) Method for assisting in checking dislocation of bit numbers in PCB design
CN110580207A (en) Logic test application generation method based on QT framework
JP3757342B2 (en) Data processing device
CN100465885C (en) Graphic component of character interface artificial terminal and graphic method thereof
KR100936670B1 (en) Graphical expression apparatus for system requirement

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070907

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090908

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090915

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20100202