JP2002358114A - Simulation device and simulation method - Google Patents

Simulation device and simulation method

Info

Publication number
JP2002358114A
JP2002358114A JP2001167881A JP2001167881A JP2002358114A JP 2002358114 A JP2002358114 A JP 2002358114A JP 2001167881 A JP2001167881 A JP 2001167881A JP 2001167881 A JP2001167881 A JP 2001167881A JP 2002358114 A JP2002358114 A JP 2002358114A
Authority
JP
Japan
Prior art keywords
equipment
simulation
sequencer
work
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.)
Granted
Application number
JP2001167881A
Other languages
Japanese (ja)
Other versions
JP4465920B2 (en
Inventor
Shinya Takimura
真也 滝村
Hiroyuki Takano
裕行 高野
Mitsuoku Yamamoto
充億 山本
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.)
Mazda Motor Corp
Original Assignee
Mazda 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 Mazda Motor Corp filed Critical Mazda Motor Corp
Priority to JP2001167881A priority Critical patent/JP4465920B2/en
Publication of JP2002358114A publication Critical patent/JP2002358114A/en
Application granted granted Critical
Publication of JP4465920B2 publication Critical patent/JP4465920B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To reduce any time or labor required for verification to be executed by the simulation of a sequence program for controlling a facility. SOLUTION: The operation models of an actuator and a work changing according to the lapse of a time are set in response to an operation command from a sequencer 1, and the detection condition of a detector for detecting the positions is set, and the change of the positions of the actuator and the work is calculated in each prescribed time based on the operation models, and when the detection condition of the detector is fulfilled as the result of the calculation, a pseudo signal is outputted to the sequencer.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、シーケンサのプロ
グラムによる設備動作のシミュレーション装置及びシミ
ュレーション方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a device and a method for simulating equipment operation using a sequencer program.

【0002】[0002]

【従来の技術】ワークの移動装置やこのワークに加工を
行なうロボット等を備えた生産設備はPLC(プログラ
マブルラダーコントローラ)等のシーケンサによって制
御されている。このPLCのプログラムは人手によって
作成されているが、長いプログラムになると不備を生ず
ることがある。その場合、例えば、アクチュエータAの
次にアクチュエータBが作動すべきところ、その予定の
作動をしないとか、アクチュエータに異常があって設備
の作動が直ちに停止すべきときに停止しないとか、ある
いは、設備の作動停止に伴って復旧作業を行なったが再
起動しない、という問題を生ずる。
2. Description of the Related Art Production equipment including a device for moving a work and a robot for processing the work is controlled by a sequencer such as a PLC (programmable ladder controller). Although the PLC program is manually created, a long program may cause defects. In this case, for example, when the actuator B is to be operated after the actuator A, the scheduled operation is not performed, or when there is an abnormality in the actuator and the operation of the equipment should be stopped immediately, or when the equipment does not stop. A problem arises in that a recovery operation is performed in response to the stoppage of operation but is not restarted.

【0003】生産設備を実際に作動させてプログラムに
異常がないかを検証することもできるが、時間及びコス
トが大となる。また、そのプログラムでは実際の設備が
予定通りに作動しないということがわかっても、そのプ
ログラムのどこに不備が存在するのかを発見することは
難しい。さらに、生産設備の組立が完成する前に制御プ
ログラムを完成させる必要があるときは、現場での検証
はできない。
[0003] Although it is possible to verify whether there is any abnormality in a program by actually operating a production facility, time and cost are increased. Also, even if it is known that the actual equipment does not operate as planned in the program, it is difficult to find out where the defect exists in the program. Further, when the control program needs to be completed before the assembly of the production equipment is completed, on-site verification cannot be performed.

【0004】これに対して、従来から図4に示すように
設備側PLC1とシミュレータ側PLC32とを接続
し、設備側PLC1の出力(動作指令)に応じてシミュ
レータ側PLC32で擬似信号を生成して設備側PLC
1に与える、という信号のやりとりにより、設備側PL
C1にダウンロードされているプログラムを検証するこ
とが行なわれている。すなわち、シミュレータ側PLC
32は、タイマー設定、時間算出、擬似信号生成、入出
力アドレス変換の各プログラム33〜37を備え、設備
側PLC1の出力に基づいて時間算出プログラム34に
より経過時間を算出し、タイマー設定プログラム33で
設定された応答時間になったときに擬似信号生成プログ
ラム35により擬似信号を生成して設備側PLC1に与
えるようになっている。タイマー設定プログラムによる
応答時間の設定は入力手段を有するコンピュータ5によ
って行なわれる。
On the other hand, conventionally, as shown in FIG. 4, the equipment-side PLC 1 is connected to the simulator-side PLC 32, and the simulator-side PLC 32 generates a pseudo signal according to the output (operation command) of the equipment-side PLC 1. Equipment side PLC
1 to the equipment side PL
Verification of a program downloaded to C1 is performed. That is, the PLC on the simulator side
32 includes respective programs 33 to 37 for timer setting, time calculation, pseudo signal generation, and input / output address conversion, and calculates the elapsed time by the time calculation program 34 based on the output of the equipment-side PLC 1. When the set response time is reached, a pseudo signal is generated by the pseudo signal generation program 35 and given to the equipment-side PLC 1. The setting of the response time by the timer setting program is performed by the computer 5 having input means.

【0005】また、特開平9−230923号公報に
は、図4に示すようなシミュレータ側PLCに関し、上
記応答時間を可変にする回路を設けることにより、実際
の設備の応答時間に近い環境条件を作り、あるいは実際
の設備応答時間とは異なる応答時間を設定してシミュレ
ーションを行なうこと、設備の異常を擬似的に発生させ
る異常発生回路等を設けて設備異常発生時のシミュレー
ションを行なうことが記載されている。
Japanese Unexamined Patent Application Publication No. 9-230923 discloses a simulator-side PLC as shown in FIG. 4, which is provided with a circuit for varying the response time so that environmental conditions close to the response time of actual equipment are provided. It is described that the simulation is performed by setting the response time different from the actual equipment response time, or by performing the simulation when the equipment abnormality occurs by providing an abnormality generating circuit etc. that simulates the equipment abnormality. ing.

【0006】従って、上述の如き設備側PLCの出力に
対して単に時間で応答するようにしたシミュレーション
装置の場合、シミュレーションの流れは図5に示すよう
なものになる。
Accordingly, in the case of a simulation apparatus which simply responds to the output of the equipment-side PLC with time as described above, the flow of the simulation is as shown in FIG.

【0007】すなわち、設備が異常なく作動すると想定
した正常動作用の信号出力設定(タイマー設定)を行な
ってシミュレーションを実行し、プログラム異常の有無
をチェックする(S1〜S4)。プログラム異常があれ
ば、これを修正して再度、正常動作用の信号出力設定を
行なってシミュレーションを実行し(S4→S5→S
1)、プログラム異常がなくなるまでプログラムの修
正、信号出力設定、シミュレーションを繰り返すことに
なる。
That is, a signal output setting (timer setting) for normal operation is performed assuming that the equipment operates without abnormality, and a simulation is executed to check for a program abnormality (S1 to S4). If there is a program error, correct it, set the signal output for normal operation again, and execute the simulation (S4 → S5 → S
1) The correction of the program, the setting of the signal output, and the simulation are repeated until the program is no longer abnormal.

【0008】正常動作用のプログラム検証が終了する
と、設備に発生するおそれがある異常を想定して異常発
生用の信号出力設定を行なってシミュレーションを最初
から実行し、プログラム異常の有無をチェックする(S
6-1〜S9-1)。つまり、シミュレーション装置側から
異常な擬似信号が出力されたときに、その擬似信号を制
御プログラムが異常と認識して設備動作を停止させるな
どの対応をするかの検証を行なう。プログラムが適切な
対応をしないとき、すなわち、プログラム異常があれ
ば、これを修正して再度、正常動作用の信号出力設定を
行なってシミュレーションを実行し(S9-1→S5→S
1)、正常動作時のプログラム異常の有無をチェックす
る。そうして、正常動作時にプログラム異常を生じない
ことを確認した後、再度、異常発生時のシミュレーショ
ンを実行する(S6〜S9)。
When the verification of the program for the normal operation is completed, a signal output for the occurrence of an abnormality is set assuming an abnormality which may occur in the equipment, a simulation is executed from the beginning, and the presence or absence of a program abnormality is checked ( S
6-1 to S9-1). That is, when an abnormal pseudo signal is output from the simulation device side, it is verified whether the control program recognizes the pseudo signal as abnormal and stops the equipment operation. If the program does not respond appropriately, that is, if there is a program error, correct it, set the signal output for normal operation again, and execute the simulation (S9-1 → S5 → S5).
1) Check for a program error during normal operation. Then, after confirming that no program abnormality occurs during normal operation, the simulation at the time of abnormality occurrence is executed again (S6 to S9).

【0009】種々の異常発生を想定してプログラムの検
証をする場合は、異常発生シミュレーションを終了して
プログラム異常が無いことを確認する度に、全検証項目
が完了したか否かをチェックして(S10-1)、検証す
べき異常項目があれば、そのための信号出力設定を行な
ってシミュレーションを実行する、という作業を繰り返
していくことになる(S10-1→S6-2〜S10-2→…
→S6-N〜S9-N→S11)。
When verifying a program assuming occurrence of various abnormalities, every time the abnormality occurrence simulation is completed and it is confirmed that there is no program abnormality, it is checked whether or not all verification items have been completed. (S10-1) If there is an abnormal item to be verified, the operation of setting the signal output therefor and executing the simulation is repeated (S10-1 → S6-2 to S10-2 →). …
→ S6-N to S9-N → S11).

【0010】[0010]

【発明が解決しようとする課題】上述の如き従来のシミ
ュレーション装置では次のような問題がある。
The above-mentioned conventional simulation apparatus has the following problems.

【0011】まず、シミュレーションの結果、シーケン
サのプログラムに異常が発見された場合、その異常を生
じたときの設備の状態との関係で原因を解明しプログラ
ムの修正を行なうことになるが、設備側PLCの出力に
対して単に時間を監視して応答(擬似信号の出力を)す
るだけであるから、異常を生じたときの設備の状態を再
現することはできず、また、当該設備がどのような状態
にあったかを解明することも難しく、そのプログラムの
修正に手間がかかる。
First, as a result of the simulation, if an abnormality is found in the sequencer program, the cause is clarified in relation to the state of the equipment at the time of occurrence of the abnormality, and the program is corrected. Since it only monitors time and responds (outputs a pseudo signal) to the output of the PLC, it is not possible to reproduce the state of the equipment when an abnormality has occurred, It is also difficult to find out if it was in a bad state, and it takes time to modify the program.

【0012】また、複数のアクチュエータが時間的に少
しずつずれて作動するなど、相互に関連してワークに対
する処理を実行する設備である場合、シミュレーション
を途中で止めようとしても、応答時間の経過途中で止ま
る結果となって応答時間の管理ができなくなる。すなわ
ち、シミュレーションは、設備の起動から所定の段階ま
で一連の流れとして途切れることなく行なう必要があ
る。そのため、プログラム異常を発見してその修正を行
なった場合、その都度シミュレーションを最初からやり
直す必要があり、多大の時間を要する。
Further, in the case of a facility that performs processing on a workpiece in relation to each other, such as when a plurality of actuators operate with a slight shift in time, even if an attempt is made to stop the simulation in the middle, the response time may be lost. As a result, the response time cannot be managed. That is, the simulation needs to be performed without interruption as a series of flows from the start of the equipment to a predetermined stage. Therefore, when a program abnormality is found and corrected, it is necessary to restart the simulation from the beginning each time, which takes a lot of time.

【0013】また、設備の各部が正常に動作すると想定
して行なう正常動作用の信号出力設定は、正常動作時の
プログラム検証のためのみに使用することができ、設備
に異常が発生することを想定したプログラムの検証で
は、擬似信号出力のための動作指令に対する応答時間を
異なるものにするなど、別に信号出力の設定を行なう必
要がある。従って、様々な異常を想定してプログラムの
検証をするとなると、その想定される各種の異常に対し
て、異常発生用の信号出力設定を一つ一つ別個に行なわ
なければならず、多大の労力を要する。
Further, the signal output setting for normal operation, which is performed on the assumption that each part of the equipment operates normally, can be used only for program verification at the time of normal operation. In verification of the assumed program, it is necessary to separately set signal output, for example, by setting different response times to operation commands for outputting a pseudo signal. Therefore, when verifying a program assuming various kinds of abnormalities, it is necessary to individually set signal outputs for occurrence of abnormalities for each of the various kinds of assumed abnormalities, which requires a great deal of labor. Cost.

【0014】さらに、実際の設備では、その稼働中に例
えばアクチュエータが作動しない等の異常を発生して設
備の作動が停止した場合、その異常発生部位を点検・修
理して設備を異常発生直前の状態に戻し、しかる後に再
稼働させることが多い。しかし、従来のシミュレーショ
ン装置ではそのような実際の異常発生時の作業に即した
シミュレーションができない。
Further, in an actual facility, if the facility stops operating due to an abnormality such as an actuator not operating during its operation, the site where the abnormality occurs is inspected and repaired, and the facility is operated immediately before the abnormality occurs. It is often returned to a state and then restarted. However, the conventional simulation device cannot perform a simulation in accordance with the work at the time of such an actual abnormality occurrence.

【0015】すなわち、設備の異常による非常停止を想
定したシミュレーションを行なう場合、その想定された
異常によってシミュレーションを続行できなくなったと
き、異常発生直前の状態に復旧させようとしても、通常
は多数のアクチュエータのうちのいずれか一つが応答時
間が途中まで経過した状態になり、シミュレーションを
再開しようとしても、当該応答時間の管理ができないか
らである。
That is, when performing a simulation assuming an emergency stop due to equipment abnormality, if the simulation cannot be continued due to the assumed abnormality, even if it is attempted to restore the state immediately before the abnormality occurred, a large number of actuators are usually used. Is in a state where the response time has elapsed halfway, and even if an attempt is made to resume the simulation, the response time cannot be managed.

【0016】さらに、ワークは通常はコンベヤによって
或いはピストンロッド等で押されて移動するが、その移
動途中に設備が非常停止した場合を想定したシミュレー
ションにおいては、仮にシミュレーションを非常停止前
の応答時間の管理が可能な状態に戻して再開することが
できたとしても、ワークの位置に関する情報がないか
ら、ワークは戻らない。例えば、シミュレーション再開
後は時間の経過と共に次のワーク検出信号(擬似信号)
が出され、先に非常停止したワークが消えてしまった状
態になる。その結果、シミュレーション装置側とシーケ
ンサ側とでワークに関する情報が異なるものになって、
シミュレーションを続行することができなくなる。従っ
て、ワークが非常停止位置から停止前の位置に戻るとい
う設定を別に行なう必要があり、その設定が煩雑なもの
になる。
Furthermore, the work is usually moved by being pushed by a conveyor or a piston rod or the like. In a simulation assuming that the equipment is stopped in the middle of the movement, it is assumed that the simulation is performed based on the response time before the emergency stop. Even if the work can be returned to a state in which it can be managed and restarted, the work does not return because there is no information on the position of the work. For example, after the restart of the simulation, the next work detection signal (pseudo signal)
Is issued, and the work that has been stopped earlier has disappeared. As a result, the information on the work differs between the simulation device side and the sequencer side,
The simulation cannot be continued. Therefore, it is necessary to separately set the work to return from the emergency stop position to the position before the stop, which makes the setting complicated.

【0017】本発明の課題は上述の如き問題を解決する
ことにある。
An object of the present invention is to solve the above problems.

【0018】[0018]

【課題を解決するための手段】そこで、本発明は、設備
の状態の変化をシミュレートしその変化状態を所定時間
毎に算出し、その変化状態に応じて擬似信号を生成する
ことにより、上述の問題を解決したものである。
Therefore, the present invention simulates a change in the state of equipment, calculates the change state at predetermined time intervals, and generates a pseudo signal in accordance with the change state. This is a solution to the problem.

【0019】まず、請求項1に係る発明は、シーケンサ
のプログラムによる設備動作のシミュレーションを行な
うシミュレーション装置であって、上記シーケンサから
の出力に基づいて上記設備の状態の変化をシミュレート
し該設備の変化状態を所定時間毎に算出する状態算出手
段と、上記状態算出手段により算出される上記設備の変
化状態に応じて上記シーケンサに出力すべき当該状態に
関連する擬似信号を生成する擬似信号生成手段とを備え
ていることを特徴とする。
First, the invention according to claim 1 is a simulation apparatus for simulating equipment operation by a program of a sequencer, and simulates a change in state of the equipment based on an output from the sequencer to simulate the equipment. State calculating means for calculating a change state at predetermined time intervals, and a pseudo signal generating means for generating a pseudo signal related to the state to be output to the sequencer according to the change state of the equipment calculated by the state calculating means And characterized in that:

【0020】すなわち、このシミュレーション装置は、
2段階でシミュレーションを行なっており、この点が従
前のシミュレーションの考え方と異なる。まず、シーケ
ンサからの出力、つまり動作指令によって設備の状態が
どのように変化するかをシミュレートしている。そし
て、その設備が擬似信号を生成すべき状態になったか、
端的に言えば、設備が動いた結果として、該設備の状態
変化を検出する検出器に出力変化があるか否かをシミュ
レートしている。
That is, this simulation apparatus
The simulation is performed in two stages, which is different from the concept of the conventional simulation. First, it simulates how the state of the equipment changes according to the output from the sequencer, that is, the operation command. And whether the equipment is ready to generate a pseudo signal,
In short, it simulates whether or not there is a change in the output of a detector that detects a change in the state of the equipment as a result of the movement of the equipment.

【0021】従って、シーケンサを作動させてプログラ
ム異常が発見された場合、そのときの設備の状態がわか
ることになり、設備の状態との関係でプログラム異常の
原因を究明することができ、プログラムの修正が容易に
なる。また、プログラム異常を発見してその修正を行な
った場合、その異常を生じたときの設備の状態がわかる
から、複数のアクチュエータが相互に関連してワークに
対する処理を実行する設備であっても、プログラム異常
の直前の状態を再現してシミュレーションを継続してい
くことができる。すなわち、シミュレーションを最初か
らやり直す必要はない。
Therefore, if a program abnormality is found by operating the sequencer, the state of the equipment at that time can be known, and the cause of the program abnormality can be investigated in relation to the state of the equipment. Modification becomes easy. Further, when a program abnormality is found and corrected, the state of the equipment at the time of occurrence of the abnormality is known, so even if the equipment is a facility in which a plurality of actuators execute processing on a workpiece in association with each other, The simulation can be continued by reproducing the state immediately before the program abnormality. That is, there is no need to restart the simulation from the beginning.

【0022】請求項2に係る発明は、請求項1に記載の
シミュレーション装置において、上記状態算出手段は、
上記設備を構成するアクチュエータの上記シーケンサの
出力による変化位置を所定時間毎に算出するアクチュエ
ータ位置算出手段と、上記アクチュエータに仕事をされ
て動くワークの変化位置を所定時間毎に算出するワーク
位置算出手段とを備え、上記擬似信号生成手段は、上記
各算出手段によって算出されたアクチュエータ及びワー
クの位置に応じて擬似信号を生成することを特徴とす
る。
According to a second aspect of the present invention, in the simulation apparatus according to the first aspect, the state calculation means includes:
Actuator position calculating means for calculating a change position of the actuator constituting the equipment due to the output of the sequencer at predetermined time intervals, and work position calculating means for calculating a change position of a work that is moved by the actuator and moves at predetermined time intervals Wherein the pseudo signal generation means generates a pseudo signal in accordance with the position of the actuator and the work calculated by each of the calculation means.

【0023】従って、プログラム異常が発見された場
合、設備のアクチュエータ及びワークの位置関係を把握
してプログラム異常の原因を究明することができ、プロ
グラムの修正が容易になる。また、修正したプログラム
の検証にあたっては、プログラム異常発生の前のアクチ
ュエータ及びワークの状態を再現してシミュレーション
を続ければよく、ワーク消失の問題も生じない。
Therefore, when a program error is found, the cause of the program error can be determined by grasping the positional relationship between the actuator of the equipment and the work, and the program can be easily corrected. In verifying the corrected program, the simulation may be continued by reproducing the state of the actuator and the work before the occurrence of the program abnormality, and the problem of the work disappearing does not occur.

【0024】請求項3に係る発明は、請求項2に記載の
シミュレーション装置において、上記状態算出手段は、
上記シーケンサの出力に基づいて時間の経過と共に位置
が変化する上記アクチュエータ及びワーク各々の動作モ
デルを設定する動作設定手段を備え、上記各算出手段
は、該動作モデルに基づいて上記シーケンサの出力によ
る上記アクチュエータ及びワーク各々の変化位置を所定
時間毎に算出し、上記擬似信号生成手段は、上記アクチ
ュエータ及びワーク各々の動作位置をシーケンス制御の
ために検出する検出器の検出条件を設定する検出器設定
手段を備え、上記各算出手段によって所定時間毎に算出
される上記アクチュエータ及びワーク各々の位置と上記
検出器設定手段によって設定された検出条件とに基づい
て上記擬似信号を生成することを特徴とする。
According to a third aspect of the present invention, in the simulation apparatus according to the second aspect, the state calculation means includes:
An operation setting means for setting an operation model of each of the actuator and the work whose position changes with time based on the output of the sequencer; and each of the calculation means calculates the operation model based on the output of the sequencer based on the operation model. Detector setting means for calculating a change position of each of the actuator and the work for each predetermined time, and setting the detection condition of a detector for detecting the operation position of each of the actuator and the work for sequence control. Wherein the pseudo signal is generated based on the position of each of the actuator and the work calculated by the calculation means at predetermined time intervals and the detection conditions set by the detector setting means.

【0025】すなわち、アクチュエータ及びワーク各々
の動作モデルの設定により、シーケンサの出力に基づい
て時々刻々と変化するアクチュエータ及びワーク各々の
位置を簡単に算出することができる。そうして、アクチ
ュエータ及びワーク各々の動作位置に関する検出条件の
設定により、アクチュエータ及びワーク各々の位置算出
手段の算出結果から、シーケンサに出力すべき擬似信号
を生成することができる。
That is, by setting the operation model of each of the actuator and the work, it is possible to easily calculate the position of each of the actuator and the work which changes every moment based on the output of the sequencer. Thus, by setting the detection conditions relating to the operation positions of the actuator and the work, a pseudo signal to be output to the sequencer can be generated from the calculation results of the position calculation means of the actuator and the work.

【0026】請求項4に係る発明は、請求項1乃至請求
項3のいずれか一に記載のシミュレーション装置におい
て、上記設備の異常を想定した現象を設定する異常設定
手段を備えていることを特徴とする。
According to a fourth aspect of the present invention, there is provided the simulation apparatus according to any one of the first to third aspects, further comprising an abnormality setting means for setting a phenomenon assuming an abnormality of the facility. And

【0027】従って、設備各部が正常に動作すると想定
して信号出力設定を行なっておけば、上述の如くシミュ
レーション途中の設備の状態を特定することができるか
ら、例えばアクチュエータA及びBが同時に作動し且つ
Aが作動終端直前にある、というような状態を特定する
ことができるから、正常動作途中に適宜の異常が発生す
るように異常設定を行なうことができ、従来のように異
常シミュレーション専用として一連の信号出力設定を個
々に行なう必要はなくなる。
Therefore, if the signal output setting is performed assuming that the respective parts of the equipment operate normally, the state of the equipment during the simulation can be specified as described above. For example, the actuators A and B operate simultaneously. In addition, since it is possible to specify a state in which A is immediately before the end of operation, it is possible to make an abnormality setting so that an appropriate abnormality occurs during normal operation. Need not be individually set.

【0028】また、例えば設備が停止しなければならな
いような異常擬似信号を発生させて、設備が予定通り停
止してプログラムに異常が無いことを確認できたとき
は、シミュレーションを終了させることなく、続行する
ことができる。すなわち、上述の如く、シミュレーショ
ン途中の設備の状態がわかることから、シミュレーショ
ンを上記異常擬似信号出力前に戻し、該異常擬似信号の
出力を解除してシミュレーションを継続することがで
き、しかも、それによって設備が一旦停止したときの途
中からの再起動性を検証することができる。
Further, for example, when an abnormal signal indicating that the equipment must be stopped is generated, and it is confirmed that the equipment is stopped as planned and there is no abnormality in the program, the simulation is not terminated. You can continue. That is, as described above, since the state of the equipment during the simulation is known, the simulation can be returned to before the output of the abnormal pseudo signal, the output of the abnormal pseudo signal can be released, and the simulation can be continued. It is possible to verify the restartability of the equipment once it has been stopped.

【0029】換言すれば、実際の設備がその稼働中に異
常を発生して停止した場合、その現場では異常原因を解
明して除き、設備を停止直前の状態に手動で戻して再稼
働させることが多いが、このような実際の現場作業に即
したシミュレーションを行なうことができる。
In other words, when the actual equipment stops due to an abnormality during its operation, the cause of the abnormality is clarified and removed at the site, and the equipment is manually returned to the state immediately before the stop and restarted. However, it is possible to perform a simulation in accordance with such actual on-site work.

【0030】請求項5に係る発明は、設備を制御するシ
ーケンサのシミュレーションを行なうシミュレーション
方法であって、上記シーケンサからの出力を受けて時間
の経過と共に状態が変化する上記設備の動作モデルを設
定し、上記動作モデルに基づいて上記シーケンサの出力
による上記設備の変化状態を所定時間毎に算出し、上記
設備の変化状態に応じて擬似信号を生成して上記シーケ
ンサに出力することを特徴とする。
According to a fifth aspect of the present invention, there is provided a simulation method for simulating a sequencer for controlling equipment, wherein an operation model of the equipment is set, the state of which changes with the passage of time in response to an output from the sequencer. A change state of the equipment caused by the output of the sequencer is calculated at predetermined time intervals based on the operation model, and a pseudo signal is generated according to the change state of the equipment and output to the sequencer.

【0031】従って、このシミュレーション方法によれ
ば、シーケンサを作動させてプログラム異常が発見され
た場合、そのときの設備の状態がわかることになり、設
備の状態との関係でプログラム異常の原因を究明するこ
とができ、プログラムの修正が容易になる。また、プロ
グラム異常を発見してその修正を行なった場合、その異
常を生じたとき及びその直前の設備の状態がわかるか
ら、複数のアクチュエータが相互に関連してワークに対
する処理を実行する設備であっても、プログラム異常の
直前の状態を再現してシミュレーションを継続していく
ことができる。すなわち、シミュレーションを最初から
やり直す必要はない。
Therefore, according to this simulation method, when a program abnormality is found by operating the sequencer, the state of the equipment at that time can be known, and the cause of the program abnormality is determined in relation to the state of the equipment. And the program can be easily modified. Further, when a program abnormality is found and corrected, the state of the facility at the time of occurrence of the abnormality and immediately before the abnormality can be known. However, the simulation can be continued by reproducing the state immediately before the program abnormality. That is, there is no need to restart the simulation from the beginning.

【0032】[0032]

【発明の効果】以上のように、請求項1に係る発明によ
れば、シーケンサからの出力に基づいて設備の状態の変
化をシミュレートして該設備の変化状態を所定時間毎に
算出し、この算出される設備の変化状態に応じてシーケ
ンサに出力すべき擬似信号を生成するようにしたから、
プログラム異常が発見された場合の原因究明、ひいては
プログラム修正が容易になり、また、プログラム異常を
発生する直前の状態を再現してシミュレーションを継続
することができ、プログラムの検証に要する時間ないし
は労力を少なくすることができる。
As described above, according to the first aspect of the present invention, a change in the state of the equipment is simulated based on the output from the sequencer, and the change state of the equipment is calculated at predetermined time intervals. Since a pseudo signal to be output to the sequencer is generated according to the calculated change state of the equipment,
If a program error is found, it is easy to find the cause and, consequently, correct the program.In addition, it is possible to continue the simulation by reproducing the state immediately before the program error occurred, reducing the time or labor required for program verification. Can be reduced.

【0033】また、請求項2に係る発明によれば、アク
チュエータの変化位置を所定時間毎に算出する手段と、
ワークの変化位置を所定時間毎に算出する手段とを設
け、これら手段によって算出されたアクチュエータ及び
ワークの位置に応じて擬似信号を生成するようにしたか
ら、アクチュエータ及びワークの位置関係を把握してプ
ログラム異常の原因を究明することができ、プログラム
の修正が容易になり、また、修正したプログラムの検証
にあたっては、プログラム異常が発生する直前のアクチ
ュエータ及びワークの状態を再現し、ワーク消失を招く
ことなくシミュレーションを続けることができる。
According to the second aspect of the present invention, there is provided means for calculating a change position of the actuator at predetermined time intervals,
Means for calculating the change position of the work at predetermined time intervals are provided, and a pseudo signal is generated according to the position of the actuator and the work calculated by these means. The cause of the program error can be determined, the program can be easily corrected, and when the corrected program is verified, the state of the actuator and the work immediately before the program error occurs is reproduced, and the work may be lost. The simulation can be continued without any change.

【0034】請求項3に係る発明によれば、アクチュエ
ータ及びワーク各々の動作モデルの設定により、シーケ
ンサの出力に基づいて時々刻々と変化するアクチュエー
タ及びワーク各々の位置を簡単に算出することができ、
検出器のアクチュエータ及びワーク各々の動作位置に関
する検出条件の設定により、アクチュエータ及びワーク
各々の位置算出手段の算出結果から、シーケンサに出力
すべき擬似信号を生成することができる。
According to the third aspect of the present invention, by setting the operation model of each of the actuator and the work, it is possible to easily calculate the position of the actuator and the work which change every moment based on the output of the sequencer.
By setting detection conditions relating to the operation positions of the actuator and the work of the detector, a pseudo signal to be output to the sequencer can be generated from the calculation results of the position calculation means of the actuator and the work.

【0035】請求項4に係る発明によれば、設備の異常
を想定した現象を設定する異常設定手段を備えているか
ら、設備各部が正常に動作すると想定して信号出力設定
を行なっておけば、各種の異常を想定したシミュレーシ
ョンを行なう場合でも、そのための一連の信号出力設定
を個々に行なう必要がなくなり、労力軽減が図れるとと
もに、異常擬似信号によって設備が停止したときは、設
備の状態を異常擬似信号出力前に戻し、該異常擬似信号
の出力を解除してシミュレーションを継続することがで
きるから、実際の現場作業に即したシミュレーションに
なり、シーケンサのプログラム検証に有利になる。
According to the fourth aspect of the present invention, since there is provided an abnormality setting means for setting a phenomenon assuming an abnormality of the equipment, the signal output setting should be performed assuming that each part of the equipment operates normally. Therefore, even when performing a simulation assuming various types of abnormalities, it is not necessary to individually perform a series of signal output settings, thereby reducing labor. Since the simulation can be continued by returning to the state before the output of the pseudo signal and canceling the output of the abnormal pseudo signal, the simulation can be performed in accordance with actual on-site work, which is advantageous for the program verification of the sequencer.

【0036】請求項5に係る発明によれば、設備の動作
モデルを設定し、この動作モデルに基づいてシーケンサ
の出力による設備の変化状態を所定時間毎に算出し、こ
の設備の変化状態に応じて擬似信号を生成してシーケン
サに出力するようにしたから、プログラム異常が発見さ
れた場合の原因究明、ひいてはプログラム修正が容易に
なり、また、プログラム異常を発生する直前の状態を再
現してシミュレーションを継続することができ、プログ
ラムの検証に要する時間ないしは労力を少なくすること
ができる。
According to the invention of claim 5, an operation model of the equipment is set, and a change state of the equipment due to the output of the sequencer is calculated at predetermined time intervals based on the operation model. To generate a pseudo signal and output it to the sequencer, which makes it easy to find the cause of a program error and correct the program, and also to simulate by reproducing the state immediately before the program error occurred. Can be continued, and the time or labor required for program verification can be reduced.

【0037】[0037]

【発明の実施の形態】以下、本発明の実施の形態を図面
に基づいて説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0038】図1において、1は設備を制御する設備側
PLC(シーケンサ)、2はシミュレーション装置であ
る。シミュレーション装置2は、設備側PLC1に通信
線3によって接続されたシミュレータ側PLC4と、該
シミュレータ側PLC4にシミュレーションのための設
定を行なう入力手段を有するコンピュータ5と、該シミ
ュレータ側PLC4に異常設定及び復旧を行なうための
信号を与えるスイッチ操作盤6とを備え、互いに通信線
3によって接続されている。
In FIG. 1, reference numeral 1 denotes an equipment-side PLC (sequencer) for controlling equipment, and 2 denotes a simulation device. The simulation device 2 includes a simulator-side PLC 4 connected to the equipment-side PLC 1 by a communication line 3, a computer 5 having input means for performing settings for the simulator-side PLC 4 for simulation, and setting and restoring abnormalities in the simulator-side PLC 4 And a switch operation panel 6 for providing a signal for performing the operation described above.

【0039】シミュレータ側PLC4は、図2に示すよ
うに、設備側PLC1からの動作指令に基づいて設備の
状態の変化をシミュレートし該設備の変化状態を所定時
間毎に算出する状態算出手段7と、該状態算出手段7に
より算出される設備の変化状態に基づいて該設備の状態
変化を検出する検出器に出力変化があるか否かをシミュ
レートし設備側PLC1に出力すべき当該状態に関連す
る擬似信号を生成する擬似信号生成手段8と、異常設定
プログラム9とを備えている。
As shown in FIG. 2, the simulator-side PLC 4 simulates a change in the state of the equipment based on an operation command from the equipment-side PLC 1, and calculates the change state of the equipment at predetermined time intervals. And simulating whether or not there is an output change in a detector that detects a change in the state of the equipment based on the change state of the equipment calculated by the state calculation means 7 and setting the state to be output to the equipment-side PLC 1 A pseudo signal generation means 8 for generating a related pseudo signal and an abnormality setting program 9 are provided.

【0040】さらに、シミュレータ側PLC4は、設備
側PLC1より与えられる動作指令のアドレスを当該シ
ミュレータ側PLC4用のアドレスに変換する入力側ア
ドレス変換プログラム11と、シミュレータ側PLC4
で生成する擬似信号のアドレスを設備側PLC1用のア
ドレスに変換する出力側アドレス変換プログラム12と
を備え、設備側PLC1とシミュレータ側PLC4の入
出力のアドレスを統一化させるようになっている。
Further, the simulator-side PLC 4 includes an input-side address conversion program 11 for converting an address of an operation command given from the facility-side PLC 1 into an address for the simulator-side PLC 4, and a simulator-side PLC 4.
And an output-side address conversion program 12 for converting the address of the pseudo signal generated in step (1) into the address for the equipment-side PLC 1 so that the input and output addresses of the equipment-side PLC 1 and the simulator-side PLC 4 are unified.

【0041】状態算出手段7は、設備を構成する各種ア
クチュエータ及びこれらアクチュエータによって仕事を
されるワークの動作モデルを設定するための動作設定プ
ログラム(動作設定手段)13と、設備側PLC1の動
作指令により各アクチュエータの変化位置(動作状態)
を所定時間毎に算出するアクチュエータ位置算出手段1
4と、ワークの変化位置を所定時間毎に算出するワーク
位置算出手段15とを備えている。
The state calculating means 7 is operated by an operation setting program (operation setting means) 13 for setting an operation model of various actuators constituting the equipment and a work to be worked by these actuators, and an operation command of the equipment-side PLC 1. Change position of each actuator (operation state)
Actuator position calculating means 1 for calculating the value at predetermined time intervals
4 and a work position calculating means 15 for calculating a change position of the work at predetermined time intervals.

【0042】動作設定プログラム13は、設備側PLC
1からの動作指令に基づいて作動する各アクチュエータ
及びワークの動きを座標変化、例えば数直線上の座標変
化としてモデル化するためのものである。
The operation setting program 13 includes a PLC
This is for modeling the movement of each of the actuators and the work that are operated based on the operation command from 1 as a coordinate change, for example, a coordinate change on a number line.

【0043】アクチュエータに関しては、設備側PLC
1からの動作指令の一瞬の出力でピストンロッドが後退
端から前進端まで動作するシリンダ、設備側PLC1か
ら動作指令が出力され続けないと動作を継続しない昇降
用モータなど、種々のアクチュエータがあることから、
その機能ないしは性格に応じて設定する。例えば、前進
指令が出力されている間はロッドが前進し、出力が落ち
たら後退するようなシリンダ装置であれば、その動作パ
ターンを記号化して設定するとともに、前進条件、後退
条件、動作範囲(前進端から後退端まで動作するに要す
る時間)、その他の必要な条件を設定する。
Regarding the actuator, the equipment-side PLC
There are various actuators, such as a cylinder in which the piston rod moves from the retreat end to the forward end with an instantaneous output of the operation command from 1, a lifting motor that does not continue to operate unless an operation command is continuously output from the equipment side PLC1. From
Set according to its function or personality. For example, if the rod device moves forward while the forward command is output, and moves backward when the output drops, the operation pattern is symbolized and set, and the forward condition, the backward condition, and the operating range ( The time required to operate from the forward end to the backward end) and other necessary conditions are set.

【0044】ワークに関しては、例えば、ワークがワー
クストッパを有するコンベアAからコンベアBに乗り移
ってコンベアBにより移動するのであれば、当該ワーク
がコンベアAに存在したこと、ワークストッパがオフに
なっていること、並びにコンベアBが前進動作をしてい
ることの3条件を満たすとき、ワークがコンベアAから
コンベアBに乗り移ってコンベアBで移動を開始する、
コンベアBの前進指令が出力されているときはワークが
前進し、後退指令が出力されているときは後退し、両指
令が出力されていないときは停止している、と捉える。
そうして、そのような動作パターンの設定、条件の設
定、動作範囲(コンベアBがワークを端から端まで送る
のに要する時間)の設定等を行なうことになる。
For the work, for example, if the work moves from the conveyor A having the work stopper to the conveyor B and moves by the conveyor B, the work is present on the conveyor A, and the work stopper is turned off. And when the conveyor B satisfies the three conditions of performing the forward movement, the work is transferred from the conveyor A to the conveyor B and starts moving on the conveyor B.
When the forward command of the conveyor B is output, the workpiece moves forward, when the reverse command is output, the workpiece moves backward, and when both commands are not output, the workpiece is stopped.
Thus, setting of such an operation pattern, setting of conditions, setting of an operation range (time required for the conveyor B to send a workpiece from one end to the other), and the like are performed.

【0045】アクチュエータ位置算出手段14は、上記
動作設定プログラム13によって設定された各アクチュ
エータの動作モデルに基づいてそのアクチュエータの動
作位置を所定時間毎に算出しメモリに書き込むものであ
る。すなわち、アクチュエータの動きは上述したように
座標変化としてモデル化されているから、設備側PLC
1からの動作指令により当該座標変化を所定時間毎(例
えば0.1秒毎)に算出することなる。
The actuator position calculating means 14 calculates the operation position of each actuator at predetermined time intervals based on the operation model of each actuator set by the operation setting program 13 and writes the calculated operation position in the memory. That is, since the movement of the actuator is modeled as a coordinate change as described above, the equipment-side PLC
The change in coordinates is calculated every predetermined time (for example, every 0.1 seconds) in response to the operation command from 1.

【0046】ワーク位置算出手段15も同様に、ワーク
の動作モデルに基づいて設備側PLC1からの動作指令
により当該ワークの座標変化を所定時間毎(例えば0.
1秒毎)に算出してメモリに書き込む。
Similarly, the work position calculating means 15 changes the coordinates of the work at predetermined time intervals (for example, 0.
(Every second) and write it to memory.

【0047】擬似信号生成手段8は、上記アクチュエー
タ及びワーク各々の動作位置をシーケンス制御ために検
出する検出器の検出条件を設定する検出器設定プログラ
ム16と、上記状態算出手段7によって与えられる上記
アクチュエータ及びワーク各々に関する情報と上記検出
器設定プログラム16に設定された検出条件とに基づい
て上記擬似信号を生成する擬似信号生成プログラム17
とを備えている。
The pseudo signal generating means 8 includes a detector setting program 16 for setting detection conditions of a detector for detecting the operation positions of the actuator and the work for sequence control, and the actuator setting program provided by the state calculating means 7. And a pseudo signal generation program 17 for generating the pseudo signal based on the information on each of the workpieces and the detection conditions set in the detector setting program 16.
And

【0048】上記検出器設定プログラム16について説
明するに、アクチュエータの作動端(例えばシリンダの
ピストンロッドの前進端や後退端)を検出するアクチュ
エータ検出器に関しては、当該アクチュエータの動作範
囲に基づいて検出範囲を設定する。例えば、当該シリン
ダの動作範囲が100であれば、1〜5、95〜100
をそれぞれ擬似信号出力のための前進端、後退端の検出
範囲として設定する。
The detector setting program 16 will be described. With respect to an actuator detector for detecting an operating end of an actuator (for example, a forward end or a backward end of a piston rod of a cylinder), a detection range is determined based on an operation range of the actuator. Set. For example, if the operating range of the cylinder is 100, 1-5, 95-100
Are set as the detection ranges of the forward end and the backward end for outputting the pseudo signal, respectively.

【0049】ワークが所定位置に存在するか否かを検出
するワーク検出器に関しては、そのワーク移動用アクチ
ュエータ(コンベア等)が所定の動作位置にあるという
条件、並びにワークがその動作位置に存在すると想定す
るに必要な関連条件、すなわち、当該アクチュエータ、
他のアクチュエータ又はワークの動作・検出に関する条
件を設定する。例えば、動作範囲100のコンベアによ
ってワークが所定位置(コンベアの動作位置50)に前
進移動してきたことを検出する検出器であれば、そのコ
ンベアの動作位置50、そのコンベアに対する前進指令
の存在等を検出条件として設定する。
With respect to the work detector for detecting whether or not the work exists at the predetermined position, the condition that the actuator for moving the work (such as a conveyor) is at the predetermined operation position and the condition that the work is present at the operation position are considered. Related conditions necessary to assume, that is, the actuator,
Set conditions for operation / detection of other actuators or workpieces. For example, if the detector detects that the workpiece has moved forward to a predetermined position (operating position 50 of the conveyor) by the conveyor in the operating range 100, the operating position 50 of the conveyor, the presence of an advance command for the conveyor, and the like are determined. Set as detection conditions.

【0050】擬似信号生成プログラム17は、状態算出
手段7から与えられる上記アクチュエータ及びワーク各
々の位置、並びに設備側PLC1の動作指令に関する情
報に基づき、それらの位置、動作指令が上記検出器設定
プログラム16で設定された検出器の検出条件を満たす
とき、擬似信号(当該検出器の出力)を生成する。
The pseudo signal generation program 17 is based on the information on the positions of the actuators and the work and the operation commands of the equipment-side PLC 1 given from the state calculation means 7 and the position and operation commands are stored in the detector setting program 16. When the detection condition of the detector set in is satisfied, a pseudo signal (output of the detector) is generated.

【0051】異常設定プログラム9は、スイッチ操作盤
6からの入力に従って動作するものであって、設備側P
LC1からの動作指令をキャンセルする指令を入力側ア
ドレス変換プログラム11に与え、それによって必要な
擬似信号が生成されないようにして異常を発生させ、ま
た、擬似信号生成プログラム17で生成された擬似信号
をキャンセルする指令を出力側アドレス変換プログラム
に与えることによって異常を発生させる。
The abnormality setting program 9 operates in accordance with an input from the switch operation panel 6, and is operated on the equipment side P.
A command to cancel the operation command from the LC 1 is given to the input-side address conversion program 11, thereby causing a necessary pseudo signal not to be generated, causing an abnormality, and generating a pseudo signal generated by the pseudo signal generation program 17. An abnormality is generated by giving a command to cancel to the output side address conversion program.

【0052】また、異常設定プログラム9は、設備側P
LC1の動作が途中で停止したときに、スイッチ操作盤
6からの復旧信号に基づき、上記各算出プログラム1
4,15によって算出されている当該停止時におけるア
クチュエータ又はワークの位置(算出値)が当該停止前
の所定の位置になるように、入力側アドレス変換プログ
ラム11を介して状態算出手段7に動作指令を与える。
Further, the abnormality setting program 9 is provided on the equipment side P
When the operation of the LC 1 is stopped halfway, the calculation programs 1 based on the recovery signal from the switch operation panel 6
An operation command is sent to the state calculating means 7 via the input-side address conversion program 11 so that the position (calculated value) of the actuator or the work at the time of the stop calculated by the steps 4 and 15 is the predetermined position before the stop. give.

【0053】なお、上記例では異常設定及び復旧のため
に、コンピュータ5とは別に、スイッチ操作盤6を設け
ているが、コンピュータ5の入力手段を利用して異常設
定及び復旧を行なうようにしてもよい。
In the above example, the switch operation panel 6 is provided separately from the computer 5 for setting and restoring the abnormality. Is also good.

【0054】上記シミュレーション装置2を用いた設備
側PLC1のシミュレーションを図3に示すフローに従
って説明する。
A simulation of the equipment-side PLC 1 using the simulation apparatus 2 will be described with reference to a flow chart shown in FIG.

【0055】すなわち、信号出力設定を行なってシミュ
レーションを開始し、設備の正常動作時における設備側
PLC1の制御プログラムの異常の存否を検証する(ス
テップA1〜A3)。この場合の信号出力設定は、動作
設定プログラム13によるアクチュエータ及びワーク各
々の動作モデルの設定、検出器設定プログラム16によ
る検出器の設定、並びに異常設定プログラム9による各
種設備異常の設定である。
That is, the simulation is started by setting the signal output, and it is verified whether or not there is an abnormality in the control program of the equipment-side PLC 1 during the normal operation of the equipment (steps A1 to A3). The signal output settings in this case are the setting of the operation model of each of the actuator and the work by the operation setting program 13, the setting of the detector by the detector setting program 16, and the setting of various equipment abnormalities by the abnormality setting program 9.

【0056】続くステップA4でプログラム異常により
制御が停止したときは、ステップA5に進んで、プログ
ラムの修正及び復旧を行なう。この場合、アクチュエー
タ及びワークの位置が位置算出手段14,15によって
所定時間毎に算出されているから、プログラム異常によ
って設備が停止したときのアクチュエータ及びワークの
状態がわかることになる。このため、プログラム異常の
原因究明及びプログラムの修正が容易になる。また、プ
ログラム修正後は、スイッチ操作盤6によりアクチュエ
ータ及びワークを当該停止前の状態(位置)に戻し、シ
ミュレーションを続行する。このような復旧ができるの
は、当該停止時のアクチュエータ及びワークの状態がわ
かるからであり、シミュレーションを最初からやり直す
必要はない。
When the control is stopped due to a program abnormality in the subsequent step A4, the process proceeds to step A5, where the program is corrected and restored. In this case, since the positions of the actuator and the work are calculated at predetermined time intervals by the position calculating means 14 and 15, the state of the actuator and the work when the equipment stops due to a program abnormality can be known. For this reason, it is easy to determine the cause of the program abnormality and correct the program. After the program correction, the actuator and the work are returned to the state (position) before the stop by the switch operation panel 6, and the simulation is continued. Such recovery can be performed because the states of the actuator and the work at the time of the stop are known, and it is not necessary to restart the simulation from the beginning.

【0057】また、設備正常動作時の制御プログラムの
検証(シミュレーション)を行ないつつ、設備異常(停
電、アクチュエータ異常等)があったときに当該制御プ
ログラムがどのように働くかをチェックする。すなわ
ち、ステップA6では設備異常時のシミュレーションに
関し設定された全検証項目について完了したか否かをチ
ェックする。
In addition, while verifying (simulating) the control program during the normal operation of the equipment, it checks how the control program works when there is an equipment abnormality (power failure, actuator abnormality, etc.). That is, in step A6, it is checked whether or not all the verification items set for the simulation when the equipment is abnormal have been completed.

【0058】検証未完了であれば、ステップA7に進ん
で、設定された設備異常を発生させる。その設備異常が
設備の作動停止を招く性質のものであって、当該制御プ
ログラムが予定するステップで制御を停止したときは、
プログラム異常がないということになる。その場合はス
イッチ操作盤6により停止前の状態に手動復旧させて、
当該設備異常を取り除いてシミュレーションを続行させ
て、プログラム異常の存否をチェックする(ステップA
7〜A9)。これは、設備の作動が中断したときに再開
可能か否かの検証となる。
If the verification is not completed, the process proceeds to step A7, where the set equipment abnormality is generated. When the equipment abnormality is of a nature that causes the equipment to stop operating, and when the control program stops the control at the scheduled step,
This means that there is no program error. In that case, the switch operation panel 6 is used to manually restore the state before the stop.
The simulation is continued by removing the equipment abnormality, and the existence of the program abnormality is checked (step A).
7 to A9). This verifies whether or not the operation of the equipment can be resumed when the operation is interrupted.

【0059】シミュレーションを続行できないときはプ
ログラム異常があるということになり、プログラムの修
正を行なってから(ステップA5)、シミュレーション
を続行する(ステップA3)。シミュレーションを続行
できたときは、プログラムに異常がないとして次の検証
に進む(ステップA9→A3)。
When the simulation cannot be continued, it means that there is a program abnormality, and after the program is corrected (step A5), the simulation is continued (step A3). If the simulation can be continued, it is determined that there is no abnormality in the program, and the process proceeds to the next verification (step A9 → A3).

【0060】一方、ステップA7において、当該制御プ
ログラムが予定通りに設備を停止させないときはプログ
ラムに異常があるということになり、手動復旧後、プロ
グラム修正を行なって次の検証に進む(ステップA8→
A9→A5→A3)。
On the other hand, if the control program does not stop the facilities as scheduled in step A7, it means that the program is abnormal. After manual recovery, the program is corrected and the process proceeds to the next verification (step A8 →
A9 → A5 → A3).

【0061】ステップA7において、その設備異常が設
備の停止を招く必要のない性質であるとき、設備が停止
しなければプログラム異常なし、設備が停止すればプロ
グラム異常あり、ということになり、先の場合と同様に
次の検証へ進み、あるいはプログラム修正を行なって次
の検証に進むことになる。
In step A7, if the equipment abnormality does not need to stop the equipment, it means that if the equipment does not stop, there is no program error, and if the equipment stops, there is a program error. As in the case, the process proceeds to the next verification, or the program is corrected and the process proceeds to the next verification.

【0062】以上のようにして、全検証項目についてシ
ミュレーションが完了したときはシミュレーションを終
了することになる(ステップA6→A10)。
As described above, when the simulation has been completed for all the verification items, the simulation is ended (step A6 → A10).

【0063】なお、上記シミュレーションの流れでは異
常設定プログラム9による異常設定を予め行なってか
ら、シミュレーションを開始するようにしたが、正常動
作時のプログラム検証のためのシミュレーション途中
で、そのシミュレーションを適宜停止して異常設定を行
ない、シミュレーションを続行してプログラム異常の存
否をチェックするようにしてもよい。
In the above-described simulation flow, the simulation is started after the abnormality setting by the abnormality setting program 9 is performed in advance. However, the simulation is appropriately stopped during the simulation for verifying the program in the normal operation. Then, the abnormality may be set, and the simulation may be continued to check for the presence or absence of the program abnormality.

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

【図1】本発明の実施形態に係るシミュレーション装置
のハード構成を示す図。
FIG. 1 is a diagram showing a hardware configuration of a simulation device according to an embodiment of the present invention.

【図2】同シミュレーション装置の構成を示すブロック
図。
FIG. 2 is a block diagram showing a configuration of the simulation apparatus.

【図3】同シミュレーション装置によるシミュレーショ
ンの流れを示す図。
FIG. 3 is a view showing a flow of a simulation by the simulation apparatus.

【図4】従来のシミュレーション装置の構成を示すブロ
ック図。
FIG. 4 is a block diagram showing a configuration of a conventional simulation device.

【図5】従来のシミュレーション装置によるシミュレー
ションの流れを示す図。
FIG. 5 is a diagram showing a flow of a simulation by a conventional simulation device.

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

1 設備側PLC 2 シミュレーション装置 3 通信線 4 シミュレータ側PLC 5 コンピュータ 6 スイッチ操作盤 7 状態算出手段 8 擬似信号生成手段 9 異常設定プログラム 11 入力側アドレス変換プログラム 12 出力側アドレス変換プログラム 13 動作設定プログラム(動作設定手段) 14 アクチュエータ位置算出手段 15 ワーク位置算出手段 16 検出器設定プログラム 17 擬似信号生成プログラム DESCRIPTION OF SYMBOLS 1 Equipment side PLC 2 Simulation apparatus 3 Communication line 4 Simulator side PLC 5 Computer 6 Switch operation panel 7 State calculation means 8 Pseudo signal generation means 9 Abnormality setting program 11 Input address conversion program 12 Output address conversion program 13 Operation setting program ( Operation setting means) 14 Actuator position calculating means 15 Work position calculating means 16 Detector setting program 17 Pseudo signal generation program

───────────────────────────────────────────────────── フロントページの続き (72)発明者 山本 充億 広島県安芸郡府中町新地3番1号 マツダ 株式会社内 Fターム(参考) 5H220 BB10 CC08 CX01 EE07 JJ24 KK08 LL03 LL06 5H223 CC03 DD03 EE05 EE19 FF05 ────────────────────────────────────────────────── ─── Continuing on the front page (72) Inventor Mitsumi Yamamoto 3-1 Shinchi, Fuchu-cho, Aki-gun, Hiroshima Mazda F-term (reference) 5H220 BB10 CC08 CX01 EE07 JJ24 KK08 LL03 LL06 5H223 CC03 DD03 EE05 EE19 FF05

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 シーケンサのプログラムによる設備動作
のシミュレーションを行なうシミュレーション装置であ
って、 上記シーケンサからの出力に基づいて上記設備の状態の
変化をシミュレートし該設備の変化状態を所定時間毎に
算出する状態算出手段と、 上記状態算出手段により算出される上記設備の変化状態
に応じて上記シーケンサに出力すべき当該状態に関連す
る擬似信号を生成する擬似信号生成手段とを備えている
ことを特徴とするシミュレーション装置。
1. A simulation apparatus for simulating equipment operation by a program of a sequencer, wherein a change in the state of the equipment is simulated based on an output from the sequencer, and a change state of the equipment is calculated at predetermined time intervals. And a pseudo signal generating means for generating a pseudo signal related to the state to be output to the sequencer according to the change state of the equipment calculated by the state calculating means. Simulation device.
【請求項2】 請求項1に記載のシミュレーション装置
において、 上記状態算出手段は、上記設備を構成するアクチュエー
タの上記シーケンサの出力による変化位置を所定時間毎
に算出するアクチュエータ位置算出手段と、上記アクチ
ュエータに仕事をされて動くワークの変化位置を所定時
間毎に算出するワーク位置算出手段とを備え、 上記擬似信号生成手段は、上記各算出手段によって算出
されたアクチュエータ及びワークの位置に応じて擬似信
号を生成することを特徴とするシミュレーション装置。
2. The simulation apparatus according to claim 1, wherein the state calculation means calculates an change position of an actuator included in the facility by an output of the sequencer at predetermined time intervals, and the actuator. Work position calculating means for calculating a change position of a work that is worked and moving at predetermined time intervals, wherein the pseudo signal generating means includes a pseudo signal according to the position of the actuator and the work calculated by each of the calculating means. A simulation device for generating a simulation result.
【請求項3】 請求項2に記載のシミュレーション装置
において、 上記状態算出手段は、上記シーケンサの出力に基づいて
時間の経過と共に位置が変化する上記アクチュエータ及
びワーク各々の動作モデルを設定する動作設定手段を備
え、上記各算出手段は、該動作モデルに基づいて上記シ
ーケンサの出力による上記アクチュエータ及びワーク各
々の変化位置を所定時間毎に算出し、 上記擬似信号生成手段は、上記アクチュエータ及びワー
ク各々の動作位置をシーケンス制御のために検出する検
出器の検出条件を設定する検出器設定手段を備え、上記
各算出手段によって所定時間毎に算出される上記アクチ
ュエータ及びワーク各々の位置と上記検出器設定手段に
よって設定された検出条件とに基づいて上記擬似信号を
生成することを特徴とするシミュレーション装置。
3. The simulation apparatus according to claim 2, wherein the state calculation unit sets an operation model of each of the actuator and the work whose position changes with time based on an output of the sequencer. Wherein each of the calculating means calculates a change position of each of the actuator and the work based on the output of the sequencer based on the operation model at predetermined time intervals, and wherein the pseudo-signal generating means operates each of the actuator and the work. A detector setting unit for setting a detection condition of a detector for detecting a position for sequence control, wherein the position of each of the actuator and the work calculated by the calculation unit at predetermined time intervals and the detector setting unit Generating the pseudo signal based on the set detection conditions. Simulation apparatus.
【請求項4】 請求項1乃至請求項3のいずれか一に記
載のシミュレーション装置において、 上記設備の異常を想定した現象を設定する異常設定手段
を備えていることを特徴とするシミュレーション装置。
4. The simulation apparatus according to claim 1, further comprising an abnormality setting unit configured to set a phenomenon assuming an abnormality of the facility.
【請求項5】 設備を制御するシーケンサのシミュレー
ションを行なうシミュレーション方法であって、 上記シーケンサからの出力を受けて時間の経過と共に状
態が変化する上記設備の動作モデルを設定し、 上記動作モデルに基づいて上記シーケンサの出力による
上記設備の変化状態を所定時間毎に算出し、 上記設備の変化状態に応じて擬似信号を生成して上記シ
ーケンサに出力することを特徴とするシミュレーション
方法。
5. A simulation method for simulating a sequencer for controlling equipment, comprising: setting an operation model of the equipment whose state changes over time upon receiving an output from the sequencer, based on the operation model. Calculating a change state of the equipment by an output of the sequencer at predetermined time intervals, generating a pseudo signal in accordance with the change state of the equipment, and outputting the pseudo signal to the sequencer.
JP2001167881A 2001-06-04 2001-06-04 Simulation apparatus and simulation method Expired - Fee Related JP4465920B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001167881A JP4465920B2 (en) 2001-06-04 2001-06-04 Simulation apparatus and simulation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001167881A JP4465920B2 (en) 2001-06-04 2001-06-04 Simulation apparatus and simulation method

Publications (2)

Publication Number Publication Date
JP2002358114A true JP2002358114A (en) 2002-12-13
JP4465920B2 JP4465920B2 (en) 2010-05-26

Family

ID=19010200

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001167881A Expired - Fee Related JP4465920B2 (en) 2001-06-04 2001-06-04 Simulation apparatus and simulation method

Country Status (1)

Country Link
JP (1) JP4465920B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009199146A (en) * 2008-02-19 2009-09-03 Toshiba Mach Co Ltd Programmable logic controller
JP2009223736A (en) * 2008-03-18 2009-10-01 Toshiba Mach Co Ltd Programmable logic controller
DE112016006372T5 (en) 2016-02-08 2018-10-18 Mitsubishi Electric Corporation CONTROL AND CONVEYOR SYSTEM
CN109643095A (en) * 2017-06-23 2019-04-16 三菱电机株式会社 Program authentication system, control device and program verification method
JP2020052812A (en) * 2018-09-27 2020-04-02 横河電機株式会社 Engineering system and engineering method

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103616890B (en) * 2013-12-09 2016-05-11 北京天源科创风电技术有限责任公司 The detection method of a kind of times of good fortune PLC module
CN110778462B (en) * 2018-07-31 2021-05-18 北京金风慧能技术有限公司 Wind generating set spare part detection platform

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009199146A (en) * 2008-02-19 2009-09-03 Toshiba Mach Co Ltd Programmable logic controller
JP2009223736A (en) * 2008-03-18 2009-10-01 Toshiba Mach Co Ltd Programmable logic controller
DE112016006372T5 (en) 2016-02-08 2018-10-18 Mitsubishi Electric Corporation CONTROL AND CONVEYOR SYSTEM
US10363645B2 (en) 2016-02-08 2019-07-30 Mitsubishi Electric Corporation Controller and conveyance system
CN109643095A (en) * 2017-06-23 2019-04-16 三菱电机株式会社 Program authentication system, control device and program verification method
JP2020052812A (en) * 2018-09-27 2020-04-02 横河電機株式会社 Engineering system and engineering method

Also Published As

Publication number Publication date
JP4465920B2 (en) 2010-05-26

Similar Documents

Publication Publication Date Title
CN108628595B (en) System and method for developing control applications for controllers of an automation system
CN112487668A (en) Near-physical simulation integrated debugging method and system based on digital twin
JP5692877B2 (en) Test device for testing control programs for robotic devices
JP2559847B2 (en) Production line management method
WO2015166563A1 (en) Simulation system, programmable controller, simulation device, and engineering tool
JP6911408B2 (en) Evaluation system, safety controller, evaluation program, and evaluation method
US10761513B2 (en) Information processing device, information processing method, and non-transitory computer-readable recording medium
WO2008001606A1 (en) Simulation apparatus, method and program
KR102124312B1 (en) Controller and transfer system
KR20040007701A (en) Method and system for assisting in the planning of manufacturing facilities
JP2002358114A (en) Simulation device and simulation method
JP2017211872A (en) Numerical controller equipped with program correction assist function for resolving alarm
JP2003162304A (en) Simulating method for facility control and device therefor
JP7005914B2 (en) Information processing equipment, information processing methods, and information processing programs
CN111819507A (en) Information processing system, information processing method, and information processing program
KR100792896B1 (en) Off-line test working system in automation facilities lines and operating method thereof
JP2002366206A (en) Simulating method and device therefor
WO2021106492A1 (en) Simulation system, simulation method, simulation program, robot manufacturing method, and robot system
JP2001195110A (en) Numerical controller
Dominka et al. Hybrid commissioning-from hardware-in-the-loop simulation to real production plants
JPH09230923A (en) Simulation device
JP2006163657A (en) Playback simulator
JP2002049421A (en) Method for verifying control logic of driving operation and device for the same
JPH10260713A (en) Controller for production facility
JP2001042907A (en) Sequence controller

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080218

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091029

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091104

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091217

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100202

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100215

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20130305

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130305

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20140305

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees