JPH11219209A - Offline simulation device of general purpose plc - Google Patents
Offline simulation device of general purpose plcInfo
- Publication number
- JPH11219209A JPH11219209A JP2248898A JP2248898A JPH11219209A JP H11219209 A JPH11219209 A JP H11219209A JP 2248898 A JP2248898 A JP 2248898A JP 2248898 A JP2248898 A JP 2248898A JP H11219209 A JPH11219209 A JP H11219209A
- Authority
- JP
- Japan
- Prior art keywords
- module
- positioning
- simulation
- speed control
- simulation output
- 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.)
- Withdrawn
Links
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、位置決め制御に用
いられるモジュール分離構成型の汎用PLCにおいて、
ユーザプログラムのデバッグを支援するオフラインシミ
ュレーション装置に関する。The present invention relates to a module-separated general-purpose PLC used for positioning control.
The present invention relates to an offline simulation device that supports debugging of a user program.
【0002】[0002]
【従来の技術】従来の位置決め制御に用いられるモジュ
ール分離構成型の汎用PLCは、図5のように構成され
ている。図において、1はCPUモジュールであり、2
は位置決めハードモジュール、11はパソコン(ロー
ダ)であり、これらは共通バス3により接続されてい
る。CPUモジュール1には、プロセッサ4が内蔵され
ており、またそのユーザプログラム領域7には、パソコ
ン11により作成された位置決めソフトウエアモジュー
ル8が格納されている。この位置決めソフトウエアモジ
ュール8は、プロセッサ4によって実行され、その作成
された指令データは、共通バス3を介して位置決めハー
ドモジュール2のバスI/F5へ送られる。バスI/F
5へ送られた指令データは、位置決め専用LSI6へ入
力される。位置決め専用LSI6は、入力された指令デ
ータにもとづいて、アンプ9とモータ10とからなる速
度制御系を制御する。2. Description of the Related Art A conventional general-purpose PLC of a module separation type used for positioning control is configured as shown in FIG. In the figure, 1 is a CPU module, 2
Is a positioning hardware module, and 11 is a personal computer (loader), which are connected by the common bus 3. The CPU module 1 has a built-in processor 4 and its user program area 7 stores a positioning software module 8 created by the personal computer 11. The positioning software module 8 is executed by the processor 4, and the created command data is sent to the bus I / F 5 of the positioning hardware module 2 via the common bus 3. Bus I / F
The command data sent to 5 is input to the positioning LSI 6. The dedicated positioning LSI 6 controls a speed control system including the amplifier 9 and the motor 10 based on the input command data.
【0003】[0003]
【発明が解決しようとする課題】しかしながら、このよ
うに構成された従来のモジュール分離構成型の汎用PL
Cを用いて、ユーザが所望の位置決め制御を実現ようと
する場合は、先ず、作成したユーザプログラムを、実際
に機械に組み込んだ状態でデバッグをしなければなら
ず、多大な時間と労力を要する。また、実際に運転を開
始した後に、希望した性能が得られないことが判明した
場合は、再設計をしなければならなかった。However, the conventional module-separated general-purpose PL configured as described above is used.
When the user intends to achieve desired positioning control using C, first, the created user program must be debugged in a state where it is actually installed in the machine, which requires a great deal of time and labor. . Further, if it was found that the desired performance could not be obtained after actually starting the operation, it was necessary to redesign.
【0004】[0004]
【課題を解決するための手段】そこで上記課題を解決す
るために、請求項1の発明は、互いにバス接続されたC
PUモジュールと位置決めハードモジュールを有し、C
PUモジュール内に格納されたユーザ作成の位置決めソ
フトウエアモジュールが動作することにより位置決めハ
ードモジュールがアンプ・モータからなる速度制御系を
制御する汎用PLCであって、位置決めハードモジュー
ルの機能を模擬再現して出力データを算出する模擬出力
演算部と、速度制御系の機能を模擬再現して出力データ
を算出する模擬出力演算部と、CPUモジュール内に格
納された位置決めソフトウエアモジュールにもとづき前
記両模擬出力演算部を作動させてオフラインシミュレー
ションを実行する手段とを備えたことを特徴とする。SUMMARY OF THE INVENTION In order to solve the above-mentioned problems, the invention of claim 1 is based on C buses connected to each other.
With PU module and positioning hardware module, C
A positioning hardware module is a general-purpose PLC that controls a speed control system consisting of an amplifier and a motor by operating a user-created positioning software module stored in a PU module. A simulated output calculation unit for calculating output data, a simulated output calculation unit for simulating the function of the speed control system to calculate output data, and the simulated output calculation based on the positioning software module stored in the CPU module. Means for executing the off-line simulation by operating the unit.
【0005】請求項2の発明は、請求項1の発明におい
て、両模擬出力演算部の出力データを取り出して画面表
示する手段を備えたことを特徴とする。[0005] A second aspect of the present invention is characterized in that, in the first aspect of the present invention, there is provided means for extracting output data of both simulation output calculation sections and displaying the data on a screen.
【0006】請求項3の発明は、請求項1または請求項
2の発明において、速度制御系の模擬出力演算部に、速
度制御系の動作を一次遅れ要素で近似する手段を備えた
ことを特徴とする。According to a third aspect of the present invention, in the first or second aspect of the present invention, the simulated output operation section of the speed control system includes means for approximating the operation of the speed control system by a first-order lag element. And
【0007】[0007]
【発明の実施の形態】以下、図に沿って本発明の実施形
態を説明する。図1は、第1の実施形態の構成を示すブ
ロック図である。この実施形態は、図5に示した従来の
モジュール分離構成型の汎用PLCの構成から位置決め
ハードモジュールを除いた構成であり、CPUモジュー
ル1内のユーザプログラム領域7に、新たに、位置決め
ハードモジュールの模擬出力演算部12およびアンプ・
モータの速度制御系の模擬出力演算部13を常駐させた
ものである。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of the first embodiment. This embodiment is a configuration in which the positioning hardware module is removed from the configuration of the conventional module-separated configuration type general-purpose PLC shown in FIG. 5, and a user program area 7 in the CPU module 1 is newly provided with a positioning hardware module. Simulated output operation unit 12 and amplifier
The simulation output operation unit 13 of the motor speed control system is resident.
【0008】これらの模擬出力演算部12,13を構成
するプログラムは、パソコン11のローダソフトからユ
ーザが入力する。これらの模擬出力演算部12,13
を、CPUモジュール1内のユーザプログラム領域7に
常駐させたことで、実機なしのオフラインシミュレーシ
ョンが可能となる。なお、作成されたユーザプログラム
を用いて実機運転する場合は、図5の従来の汎用PLC
と同様に、共通バス3に位置決めハードモジュールが接
続される。[0008] Programs constituting the simulated output calculation units 12 and 13 are input by the user from the loader software of the personal computer 11. These simulation output operation units 12 and 13
Is resident in the user program area 7 in the CPU module 1, thereby enabling off-line simulation without a real machine. When the actual machine is operated using the created user program, the conventional general-purpose PLC shown in FIG.
Similarly to the above, the positioning hardware module is connected to the common bus 3.
【0009】図2は、図1の模擬出力演算部12,13
の動作を示すブロック図である。図示されるように、入
力データ21は、位置決めソフトウエアモジュール8内
の位置決めモジュール入力データ演算部22に入力され
る。ここで実機運転の場合は、図中に破線で示されてい
る位置決めハードモジュール2に送られて、その応答が
位置決めモジュール出力データ処理部23に戻り、出力
データ24として、モジュール8から出力される。FIG. 2 shows the simulated output operation units 12 and 13 of FIG.
It is a block diagram which shows operation | movement. As shown, the input data 21 is input to a positioning module input data operation unit 22 in the positioning software module 8. Here, in the case of actual operation, the data is sent to the positioning hardware module 2 indicated by a broken line in the figure, and the response is returned to the positioning module output data processing unit 23 and output from the module 8 as output data 24. .
【0010】しかしながら、ここでは、入力データ演算
部22から出力されたデータは、模擬出力演算部12,
13に順に送られることで、位置決めハードモジュール
2の動作が模擬的に再現されて、その応答をあらわすデ
ータが出力データ処理部23に送られる。このように、
位置決めハードモジュール2やアンプとモータで構成さ
れた速度制御系の動作はソフトウェアモジュールで模擬
的に再現できることに着目して、オフラインシミュレー
ションを行うことで、実機運転をすることなくユーザプ
ログラムのデバッグが可能になる。However, here, the data output from the input data calculation unit 22 is used for the simulation output calculation unit 12,
13, the operation of the positioning hardware module 2 is reproduced in a simulated manner, and data representing the response is sent to the output data processing unit 23. in this way,
Focusing on the fact that the operation of the speed control system composed of the positioning hardware module 2 and the amplifier and motor can be simulated by a software module, the user program can be debugged without performing actual operation by performing offline simulation. become.
【0011】図3は、第2の実施形態の構成を示すブロ
ック図である。この実施形態は、図1に示した第1の実
施形態のパソコン11に、トレンドモニタ表示用ソフト
ウエアを組み込んでトレンドモニタ表示する機能を付加
するとともに、CPUモジュール1のプロセッサ4とパ
ソコン11との間にシリアル通信線14を設けたもので
ある。それにより、CPUモジュール1の内部演算デー
タが、シリアル通信線14を介してパソコン11に伝送
されて、トレンドモニタ表示される。その結果、ユーザ
は内部演算データをモニタしながらのデバッグが可能と
なり、デバッグ時の作業性が向上する。なお、他の構成
は図1と同一であるので同一部分についての説明は省略
する。FIG. 3 is a block diagram showing the configuration of the second embodiment. This embodiment adds a function for displaying a trend monitor by incorporating trend monitor display software to the personal computer 11 of the first embodiment shown in FIG. A serial communication line 14 is provided between them. Thereby, the internal calculation data of the CPU module 1 is transmitted to the personal computer 11 via the serial communication line 14 and displayed on the trend monitor. As a result, the user can debug while monitoring the internal calculation data, and the workability at the time of debugging is improved. Since the other configuration is the same as that of FIG. 1, the description of the same part will be omitted.
【0012】図4は、第3の実施形態の動作を示すブロ
ック図である。この実施形態は、図1に示した第1の実
施形態または図3に示した第2の実施形態におけるアン
プ・モータの速度制御系の模擬出力演算部13に、速度
制御系を1次遅れ要素として近似する機能を付加して、
1次遅れ要素近似模擬出力演算部15としたものであ
る。この演算部15は、アンプとモータで構成された速
度制御系の動作を、1次遅れ要素で近似するものであ
り、その等価時定数を可変としてオフラインシミュレー
ションを行うことが可能となる。なお、この等価時定数
は機械系のイナーシャから演算によって求めて入力する
こともできる。また、図4の他の部分の動作は、図2と
共通であるので共通部分についての説明は省略する。FIG. 4 is a block diagram showing the operation of the third embodiment. In this embodiment, the simulated output operation unit 13 of the amplifier / motor speed control system in the first embodiment shown in FIG. 1 or the second embodiment shown in FIG. Add the function to approximate as
This is a first-order delay element approximate simulation output calculation unit 15. The operation unit 15 approximates the operation of the speed control system constituted by the amplifier and the motor by a first-order lag element, and makes it possible to perform an off-line simulation with its equivalent time constant being variable. The equivalent time constant can also be obtained by calculation from the inertia of the mechanical system and input. The operation of the other parts in FIG. 4 is the same as that in FIG. 2, and the description of the common parts will be omitted.
【0013】上述した各実施形態では、ユーザにより、
CPUモジュール1内のユーザプログラム領域7に、予
め動作保証・パッケージ化された位置決めハードモジュ
ールの模擬出力演算部12とアンプ、モータの模擬出力
演算部13を常駐させることにより、CPUモジュール
1とパソコン11だけのシステム構成でオフラインシミ
ュレーションを実現した。その結果、実機を接続するこ
となくデバッグが可能となり、ユーザプログラムの開発
工数を削減することができる。また、実機運転すること
なく、作成したユーザプログラムで得られる性能の確認
もできるため、性能不備のための再設計を解消すること
ができる。In each of the above embodiments, the user
In the user program area 7 in the CPU module 1, the simulation output operation unit 12 of the positioning hardware module and the simulation output operation unit 13 of the amplifier and the motor, which are pre-assured and packaged, are resident, so that the CPU module 1 and the personal computer 11 Offline simulation was realized with only a system configuration. As a result, debugging can be performed without connecting an actual device, and the number of steps for developing a user program can be reduced. In addition, since the performance obtained by the created user program can be confirmed without operating the actual machine, it is possible to eliminate redesign due to insufficient performance.
【0014】[0014]
【発明の効果】以上述べたように請求項1の発明によれ
ば、ユーザが作成した位置決めプログラムは、両模擬出
力演算部が作動すことによりオフラインシミュレーショ
ンされるため、実機運転することなく簡単にデバッグす
ることが可能になる。As described above, according to the first aspect of the present invention, since the positioning program created by the user is simulated off-line by the operation of both the simulation output calculation units, the positioning program can be easily executed without operating the actual machine. It becomes possible to debug.
【0015】請求項2の発明によれば、両模擬出力演算
部の出力データが画面表示されることで、ユーザプログ
ラムのデバッグが容易になる。According to the second aspect of the present invention, the output data of both the simulated output calculation units is displayed on the screen, so that debugging of the user program becomes easy.
【0016】請求項3の発明によれば、速度制御系の動
作が一次遅れ要素で近似されるため、速度制御系の等価
時定数を可変としてオフラインシミュレーションするこ
とが可能となる。According to the third aspect of the present invention, since the operation of the speed control system is approximated by the first-order lag element, it is possible to perform an off-line simulation with a variable equivalent time constant of the speed control system.
【図1】本発明の第1の実施形態の構成を示すブロック
図である。FIG. 1 is a block diagram illustrating a configuration of a first exemplary embodiment of the present invention.
【図2】図1の模擬出力演算部の動作を示すブロック図
である。FIG. 2 is a block diagram illustrating an operation of a simulation output operation unit of FIG. 1;
【図3】本発明の第2の実施形態の構成を示すブロック
図である。FIG. 3 is a block diagram illustrating a configuration of a second exemplary embodiment of the present invention.
【図4】本発明の第3の実施形態の動作を示すブロック
図である。FIG. 4 is a block diagram illustrating an operation of a third exemplary embodiment of the present invention.
【図5】従来例を示す図である。FIG. 5 is a diagram showing a conventional example.
1 CPUモジュール 2 位置決めハードモジュール 3 共通バス 7 ユーザプログラム領域 8 位置決めソフトウエアモジュール 11 パソコン 12 位置決めハードモジュールの模擬出力演算部 13 アンプ・モータの速度制御系の模擬出力演算部 14 シリアル通信線 15 1次遅れ要素近似模擬出力演算部 21 入力データ 22 位置決めモジュール入力データ演算部 23 位置決めモジュール出力データ処理部 24 出力データ DESCRIPTION OF SYMBOLS 1 CPU module 2 Positioning hardware module 3 Common bus 7 User program area 8 Positioning software module 11 Personal computer 12 Simulation output operation part of positioning hardware module 13 Simulation output operation part of amplifier / motor speed control system 14 Serial communication line 15 Primary Delay element approximation simulation output operation unit 21 Input data 22 Positioning module input data operation unit 23 Positioning module output data processing unit 24 Output data
Claims (3)
と位置決めハードモジュールを有し、CPUモジュール
内に格納されたユーザ作成の位置決めソフトウエアモジ
ュールが動作することにより位置決めハードモジュール
がアンプ・モータからなる速度制御系を制御する汎用P
LCであって、 位置決めハードモジュールの機能を模擬再現して出力デ
ータを算出する模擬出力演算部と、 速度制御系の機能を模擬再現して出力データを算出する
模擬出力演算部と、 CPUモジュール内に格納された位置決めソフトウエア
モジュールにもとづき前記両模擬出力演算部を作動させ
てオフラインシミュレーションを実行する手段と、 を備えたことを特徴とする汎用PLCのオフラインシミ
ュレーション装置。1. A speed control comprising an amplifier and a motor having a CPU module and a positioning hardware module connected to each other via a bus, wherein the positioning hardware module is operated by a user-created positioning software module stored in the CPU module. General-purpose P for controlling the system
A simulated output operation unit that simulates the function of the positioning hardware module and calculates output data, is a simulated output operation unit that simulates the function of the speed control system and calculates output data, Means for executing the off-line simulation by operating both of the simulation output operation sections based on the positioning software module stored in the off-line simulation module.
シミュレーション装置において、両模擬出力演算部の出
力データを取り出して画面表示する手段を備えたことを
特徴とする汎用PLCのオフラインシミュレーション装
置。2. The general-purpose PLC off-line simulation apparatus according to claim 1, further comprising: means for extracting output data from both of the simulation output operation units and displaying the data on a screen.
Cのオフラインシミュレーション装置において、速度制
御系の模擬出力演算部に、速度制御系の動作を一次遅れ
要素で近似する手段を備えたことを特徴とする汎用PL
Cのオフラインシミュレーション装置。3. A general-purpose PL according to claim 1 or 2.
C. An off-line simulation apparatus of C, wherein the simulation output operation unit of the speed control system is provided with means for approximating the operation of the speed control system by a first-order lag element.
C offline simulation device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2248898A JPH11219209A (en) | 1998-02-04 | 1998-02-04 | Offline simulation device of general purpose plc |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2248898A JPH11219209A (en) | 1998-02-04 | 1998-02-04 | Offline simulation device of general purpose plc |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH11219209A true JPH11219209A (en) | 1999-08-10 |
Family
ID=12084124
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2248898A Withdrawn JPH11219209A (en) | 1998-02-04 | 1998-02-04 | Offline simulation device of general purpose plc |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH11219209A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100792896B1 (en) | 2006-08-22 | 2008-01-08 | 현대자동차주식회사 | Off-line test working system in automation facilities lines and operating method thereof |
US8532795B2 (en) | 2010-10-04 | 2013-09-10 | General Electric Company | Method and system for offline code validation |
JP2014137781A (en) * | 2013-01-18 | 2014-07-28 | Mitsubishi Electric Corp | Controller |
CN110223579A (en) * | 2019-06-26 | 2019-09-10 | 商飞信息科技(上海)有限公司 | One kind to drag DC servo motor control simulated teaching platform |
-
1998
- 1998-02-04 JP JP2248898A patent/JPH11219209A/en not_active Withdrawn
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100792896B1 (en) | 2006-08-22 | 2008-01-08 | 현대자동차주식회사 | Off-line test working system in automation facilities lines and operating method thereof |
US8532795B2 (en) | 2010-10-04 | 2013-09-10 | General Electric Company | Method and system for offline code validation |
JP2014137781A (en) * | 2013-01-18 | 2014-07-28 | Mitsubishi Electric Corp | Controller |
CN110223579A (en) * | 2019-06-26 | 2019-09-10 | 商飞信息科技(上海)有限公司 | One kind to drag DC servo motor control simulated teaching platform |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH0533423B2 (en) | ||
JPH11219209A (en) | Offline simulation device of general purpose plc | |
JP4885639B2 (en) | HILS equipment | |
EP0362392A1 (en) | Pc simulation system | |
JP2861962B2 (en) | Computer program simulation apparatus and method | |
KR100200712B1 (en) | Apparatus for program debugging of no-target system | |
JPS6349851A (en) | Simulation system | |
JP3358123B2 (en) | Controller input / output simulation method and apparatus | |
JP2731252B2 (en) | Power plant simulation device and simulation code generation device for the device | |
JP3325397B2 (en) | Simulation system for programs executed by programmable controllers | |
JPH09237204A (en) | System and method for debugging programable controller | |
JP2731572B2 (en) | Logic simulation method | |
JPH03268031A (en) | System for testing vector processor | |
JPH03233643A (en) | Total test system for program component | |
JPH04369044A (en) | Testing device for computer | |
JPS5949609A (en) | Programmable controller equipped with simulation performing function | |
JPH0895610A (en) | Programmable controller | |
JPS62154042A (en) | Control system for input/output instruction simulation | |
JPS6381505A (en) | Sequencer simulator | |
JPH07105045A (en) | Debugging system for information processor function test program | |
JP2002351511A (en) | Input generating device | |
JPS61231607A (en) | Simulation system for iron and steel rolling control system | |
JP2004310437A (en) | Motion control device | |
JPH10240504A (en) | Preparation method for communication program | |
JPS5968034A (en) | Input and output port simulator for microcomputer developing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20050405 |