JPH02284205A - Simulation system for pc - Google Patents

Simulation system for pc

Info

Publication number
JPH02284205A
JPH02284205A JP10668689A JP10668689A JPH02284205A JP H02284205 A JPH02284205 A JP H02284205A JP 10668689 A JP10668689 A JP 10668689A JP 10668689 A JP10668689 A JP 10668689A JP H02284205 A JPH02284205 A JP H02284205A
Authority
JP
Japan
Prior art keywords
program
sequence program
control means
simulation
personal computer
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
JP10668689A
Other languages
Japanese (ja)
Inventor
Kunio Tanaka
久仁夫 田中
Kimio Maeda
前田 紀美夫
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.)
Fanuc Corp
Original Assignee
Fanuc 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 Fanuc Corp filed Critical Fanuc Corp
Priority to JP10668689A priority Critical patent/JPH02284205A/en
Publication of JPH02284205A publication Critical patent/JPH02284205A/en
Pending legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)
  • Programmable Controllers (AREA)

Abstract

PURPOSE:To improve the developing efficiency of a sequence program by simulating the sequence program by using a personal computer. CONSTITUTION:An operation control means 12 is provided so that the sequence program 1 is executed artificially by the program executing means 11 of the personal computer 10 and the besides, display or operation can be handled similarly to a CP (programmable controller) 30. Further, a special function like the window function of the PC 30, etc., is controlled by a PC function control means 13, and the result of the simulation of these is displayed on a display device 22 or outputted to a printer 24 by a data output control means 14. Thus, because the development and the debug of the sequence program are executed by using the personal computer, the actual use of the PC at the time of the development of the sequence program is limited to the minimum, and the developing efficiency can be raised.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はPCのシミュレーション方式に関し、特にパー
ソナルコンビコータ等を使用してシーケンス・プログラ
ムをシミュレーションするPCのシミュレーション方式
に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a PC simulation method, and more particularly to a PC simulation method for simulating a sequence program using a personal combination coater or the like.

〔従来の技術〕[Conventional technology]

工作機械等に使用されるPC(プログラマブル・コント
ローラ)では、シーケンス・プログラムノ容量が大きく
、シーケンス・プログラムを作成後に実際のPCで実行
して、シーケンス・プログ  ケンス・プログラムをシ
ミュレーションするPCラムのデバッグ等を行っている
。          のシミュレーション方式を提供
することを目的と〔発明が解決しようとする課題〕 このため、シーケンス・プログラムの開発には常にPC
本体が必要になり、シーケンス・プログラムの容量が大
きく複雑になると、シーケンス・プログラムの開発のた
めにPCを専有する時間も多くなる。
PCs (programmable controllers) used in machine tools, etc. have a large capacity for sequence programs, and after creating a sequence program, it is executed on an actual PC to simulate the sequence program. etc. [Problem to be solved by the invention] For this reason, the development of sequence programs always requires a PC.
As the main body becomes necessary and the capacity of the sequence program becomes large and complex, the time required to exclusively use the PC for developing the sequence program increases.

特に、シーケンス・プログラムが大容量になると、1個
のシーケンス・プログラムを多数のプログラマで開発す
ることが多い。また、個々のユーザの要求仕様に合わせ
て、複数のシーケンス・プログラムを迅速に開発する要
求も多い。
In particular, when a sequence program has a large capacity, one sequence program is often developed by many programmers. There is also a growing demand for rapid development of multiple sequence programs in accordance with the required specifications of individual users.

従って、デバッグに使用するPCが少ないと、プログラ
マがPCを使用する時間が限られ、シーケンス・プログ
ラムの開発が遅れる。また、逆に多数のPCを設けるこ
とは経済的な負担が大きい。
Therefore, if there are few PCs used for debugging, the time that programmers can use the PCs is limited, and the development of sequence programs is delayed. On the other hand, providing a large number of PCs imposes a heavy economic burden.

本発明はこのような点に鑑みてなされたものでアリ、パ
ーソナルコンピュータ等を使用してシーする。
The present invention has been made in view of the above-mentioned points, and uses an ant, a personal computer, or the like.

〔課題を解決するための手段〕[Means to solve the problem]

本発明では上記課題を解決するた杓に、PC(7”ログ
ラマブル・コントローラ)のシーケンス・プログラムを
シミュレーションするPCのシミュレーション方式にお
いて、シーケンス・プログラムを実行するプログラム実
行手段と、画面表示及びキー操作を前記PCと同じよう
に表示、操作する操作制御手段と、前記PCのウィンド
ウ機能とシーケンス・プログラムの実行を再現するPC
機能制御手段と、シミュレーション後のデータを表示装
置に表示し、あるいはプリンタに出力するデータ出力制
御手段と、を有することを特徴とするPCのシミュレー
ション方式が、提供される。
In order to solve the above-mentioned problems, the present invention provides a PC simulation method for simulating a sequence program of a PC (7" programmable controller), and includes a program execution means for executing a sequence program, a screen display and a key operation. A PC that has operation control means that displays and operates in the same way as the PC, and that reproduces the window functions and sequence program execution of the PC.
A PC simulation system is provided that is characterized by having a function control means and a data output control means for displaying simulated data on a display device or outputting it to a printer.

〔作用〕[Effect]

プログラム実行手段によって、シーケンス・プログラム
が擬似的に実行される。また、表示あるいは操作がPC
と同じように取り扱えるように、操作制御手段がある。
The sequence program is executed in a pseudo manner by the program execution means. In addition, display or operation may be
There is an operation control means so that it can be handled in the same way.

さらに、PCのウィンドウ機能等の特殊な機能はPC機
能制御手段で制御される。これらのシミュレーションの
結果はデータ出力制御手段によって、表示装置に表示さ
れ、あるいはプリンタ等に出力される。
Furthermore, special functions such as the window function of the PC are controlled by the PC function control means. The results of these simulations are displayed on a display device or output to a printer or the like by the data output control means.

〔実施例〕〔Example〕

以下、本発明の一実施例を図面に基づいて説明する。 Hereinafter, one embodiment of the present invention will be described based on the drawings.

第1図は本発明のPCのシミュレーション方式のブロッ
ク図である。シーケンス・プログラム1は作成後デバッ
グされ、完成後に実際のPC30に、ROMに書き込ま
れて実装され、工作機械等を制御する。シーケンス・プ
ログラム1はラダー言語あるいはC言語で記述される。
FIG. 1 is a block diagram of a PC simulation method according to the present invention. After the sequence program 1 is created, it is debugged, and after completion, it is written into the ROM and implemented in the actual PC 30 to control the machine tool and the like. The sequence program 1 is written in ladder language or C language.

ここでは、C言語で記述される場合を例に説明する。Here, a case where the program is written in C language will be explained as an example.

シミュレーション・プログラム2はシーケンス・プログ
ラム1をPC30でなく、パーソナル・コンピュータ1
0によって、シミュレーションするだめのプログラムで
ある。シミュレーション・プログラム2の機能は、プロ
グラム実行手段11、操作制御手段12、PCC機能制
御手工13びデータ出力制御手段14に分けられる。こ
こでは、シミュレーション・プログラム2もC言語で作
成されるものとする。
Simulation program 2 runs sequence program 1 not on PC 30 but on personal computer 1.
0 is a program that cannot be simulated. The functions of the simulation program 2 are divided into a program execution means 11, an operation control means 12, a PCC function control means 13, and a data output control means 14. Here, it is assumed that the simulation program 2 is also created in C language.

プログラム実行手段11はシーケンス・プログラム1を
PC30と同じように実行する。実際のシーケンス・プ
ログラムは基本的には、READ    Xo、1  
  (IAND     Yo、2    (20RX
o、4    (3 WRITE   R200,1(4 のように記述される。ここで、命令(1)は読みだし命
令、命令(2)は論理債命令、命令(3)は論理和を求
める命令、命令(4)は結果を書き込む命令である。こ
の他に計算命令等があるが、PC30の命令は、パーソ
ナルコンピュータ10の通常の命令で置き換えることが
できる。また、単独で置き換えられない命令はパーソナ
ルコンピュータIOのサブルーチとして作成する。
The program execution means 11 executes the sequence program 1 in the same way as the PC 30. The actual sequence program is basically READ Xo, 1
(IAND Yo, 2 (20RX
o, 4 (3 WRITE R200, 1 (4) Here, instruction (1) is a read instruction, instruction (2) is a logical bond instruction, instruction (3) is an instruction to obtain a logical sum, Instruction (4) is an instruction to write a result.There are other calculation instructions, but the instructions for the PC 30 can be replaced with normal instructions for the personal computer 10.In addition, instructions that cannot be replaced alone are personal instructions. Create as a subroutine of computer IO.

ここで、パーソナルコンピュータ10は16ビツト構成
で、メインメモリがIMバイト程度あれば充分に本発明
の機能を果たすことができ、この程度のパーソナルコン
ピュータは市場で簡単に入手することができる。
Here, the personal computer 10 has a 16-bit configuration, and a main memory of about IM bytes is enough to perform the functions of the present invention, and personal computers of this size are easily available on the market.

プログラム実行手段11によって、シーケンス・プログ
ラム1を実行し、その結果は図示されていないパーソナ
ルコンピュータ10の内部のメモリに格納され、また、
同時にハードディスク21に格納する。
The program execution means 11 executes the sequence program 1, and the result is stored in the internal memory of the personal computer 10 (not shown), and
At the same time, it is stored in the hard disk 21.

操作制御手段12はシーケンス・プログラムをパーソナ
ルコンピュータ10で処理するにあたって、表示あるい
はキー操作が、実際のPC30となるべく一致するよう
にするものであり、シーケンス・プログラム11等をP
C30と同じ形式で表示装置22に表示する。これは、
PC30に使用される表示装置と表示装置22は基本的
に同じCRTが使用されているので、簡単に表示できる
The operation control means 12 is for processing a sequence program on the personal computer 10 so that the display or key operation matches as much as possible with the actual PC 30, and controls the sequence program 11 etc.
It is displayed on the display device 22 in the same format as C30. this is,
Since the display device used in the PC 30 and the display device 22 basically use the same CRT, they can be easily displayed.

また、キーボード23がPC30の操作と同じになるよ
うにするために、キーボード23のキーをPC30のキ
ーに割り当てる。これらの割り当ては操作制御手段12
中に割り当てデータとして設定する。割り当てデータは
、PC30の操作キーがキーボード23のどのキーに対
応するかを割り当てるものである。
Further, in order to make the keyboard 23 operate in the same manner as the PC 30, the keys of the keyboard 23 are assigned to the keys of the PC 30. These assignments are made by the operation control means 12.
Set as allocation data inside. The assignment data is for assigning which key on the keyboard 23 corresponds to the operation key of the PC 30.

さらに、PC30の入力信号もキーボード23のキーに
割り当てて、工作機械からPC30への入力信号を、キ
ーボード23のキーを使用して、行うことができる。ま
た、デバッグ中に変化しない入力信号はシーケンス・プ
ログラムと共にプログラム実行手段11内のメモリに入
力しておく。
Furthermore, input signals from the PC 30 can also be assigned to keys on the keyboard 23, so that input signals from the machine tool to the PC 30 can be performed using the keys on the keyboard 23. Further, input signals that do not change during debugging are input into the memory in the program execution means 11 together with the sequence program.

工作機械への出力信号は表示装置に表示する。The output signal to the machine tool is displayed on the display device.

これは出力信号のシンボルとその状態を1及び0を使用
して表示したり、数値データは数値として表示する。ま
た、シーケンス・プログラムがラダー言語で作成されて
いる場合は、ラダー・ダイヤグラムを表示装置22に表
示し、ラダー・ダイヤグラム上のコイルの輝度あるいは
色を変化させることにより、出力信号のオン、オフ状態
を表示することもできる。
This displays the symbol of the output signal and its state using 1's and 0's, or displays numerical data as a number. If the sequence program is created in a ladder language, the ladder diagram can be displayed on the display device 22, and the output signal can be turned on or off by changing the brightness or color of the coil on the ladder diagram. can also be displayed.

PC機能制御手段13はPC30のウィンドウ機能をパ
ーソナルコンピュータ10上で実行させる。PC30の
ウィンドウ機能もパーソナルコンピュータ10のウィン
ドウ機能を使用して実行することができる。また、シー
ケンス・プログラム11の実行を再現させる機能も有す
る。
The PC function control means 13 causes the window function of the PC 30 to be executed on the personal computer 10. The window function of the PC 30 can also be executed using the window function of the personal computer 10. It also has a function of reproducing the execution of the sequence program 11.

データ出力制御手段14は、シミュレーションの結果を
表示装置22に表示したり、あるいはプリンタ24に出
力する。シミュレーションの結果はパーソナルコンピュ
ータ10の内部のメインメモリあるいはハードディスク
21に格納されているので、キーボード23からの要求
に応じて、表示装置22に表示したり、あるいはプリン
タ24にプリントアウトする。
The data output control means 14 displays the simulation results on the display device 22 or outputs them to the printer 24. Since the simulation results are stored in the main memory or hard disk 21 inside the personal computer 10, they are displayed on the display device 22 or printed out on the printer 24 in response to a request from the keyboard 23.

パーソナルコンピュータ10のO8(オペレーティング
・システム)はPC30のシーケンス・プログラムが一
般的にマルチタスクであるので、マルチタスクが可能な
rUNIX」等のO8が使用される。
As the O8 (operating system) of the personal computer 10, since the sequence program of the PC 30 is generally multitasking, an O8 such as "rUNIX" capable of multitasking is used.

このようにして、PCを使用せずにシーケンス・プログ
ラムをパーソナルコンピュータ上でデバッグして、開発
することができる。
In this way, sequence programs can be debugged and developed on a personal computer without using a PC.

上記の説明では、パーソナルコンピユータラ使用して、
シーケンス・プログラムを開発することで説明したが、
その外にワークステーション等を使用することもできる
In the above explanation, using a personal computer,
As explained by developing a sequence program,
In addition, a workstation or the like can also be used.

マタ、パーソナルコンピュータでデバッグされたシーケ
ンス・プログラムでも、必要に応じて、PC上で最終的
なチエツクを行うこともある。
Even if a sequence program is debugged on a personal computer, a final check may be performed on the PC if necessary.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明では、パーソナルコンピュー
タ等のPC以外のマシンを使用して、シーケンス・プロ
グラムの開発、デバッグを行うようにしたので、シーケ
ンス・プログラムの開発に当たって、実際のPCの使用
を最小限にして、開発効率を高めることができる。
As explained above, in the present invention, a machine other than a PC, such as a personal computer, is used to develop and debug a sequence program. Therefore, when developing a sequence program, the use of an actual PC is minimized. development efficiency can be improved by limiting

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

第1図は本発明のPCのシミュレーション方式のブロッ
ク図である。 シーケンス・プログラム シミュレーション・プログラム パーソナルコンピュータ プログラム実行手段 操作制御手段 PC機能制御手段 データ出力制御手段 ハードディスク 表示装置 キーボード プリンタ C
FIG. 1 is a block diagram of a PC simulation method according to the present invention. Sequence program simulation program Personal computer program execution means operation control means PC function control means data output control means hard disk display device keyboard printer C

Claims (3)

【特許請求の範囲】[Claims] (1)PC(プログラマブル・コントローラ)のシーケ
ンス・プログラムをシミュレーションするPCのシミュ
レーション方式において、 シーケンス・プログラムを実行するプログラム実行手段
と、 画面表示及びキー操作を前記PCと同じように表示、操
作する操作制御手段と、 前記PCのウィンドウ機能とシーケンス・プログラムの
実行を再現するPC機能制御手段と、シミュレーション
後のデータを表示装置に表示し、あるいはプリンタに出
力するデータ出力制御手段と、 を有することを特徴とするPCのシミュレーション方式
(1) In a PC simulation method that simulates a sequence program on a PC (programmable controller), there is a program execution means for executing the sequence program, and an operation for displaying and operating screen displays and key operations in the same manner as the PC. A control means, a PC function control means for reproducing the window function of the PC and execution of the sequence program, and a data output control means for displaying the data after the simulation on a display device or outputting it to a printer. Characteristic PC simulation method.
(2)前記シーケンス・プログラムあるいはシミュレー
ションプログラムはC言語を使用して作成することを特
徴とする特許請求の範囲第1項記載のPCのプログラム
編集方式。
(2) The PC program editing method according to claim 1, wherein the sequence program or simulation program is created using C language.
(3)前記シミュレーションプログラムはマルチタスク
OS(オペレーティング・システム)上で動作するよう
に構成したことを特徴とする特許請求の範囲第1項記載
のPCのプログラム編集方式。
(3) The PC program editing method according to claim 1, wherein the simulation program is configured to run on a multitasking OS (operating system).
JP10668689A 1989-04-26 1989-04-26 Simulation system for pc Pending JPH02284205A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10668689A JPH02284205A (en) 1989-04-26 1989-04-26 Simulation system for pc

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10668689A JPH02284205A (en) 1989-04-26 1989-04-26 Simulation system for pc

Publications (1)

Publication Number Publication Date
JPH02284205A true JPH02284205A (en) 1990-11-21

Family

ID=14439940

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10668689A Pending JPH02284205A (en) 1989-04-26 1989-04-26 Simulation system for pc

Country Status (1)

Country Link
JP (1) JPH02284205A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07225605A (en) * 1994-02-09 1995-08-22 Riyoosen Engineers:Kk Simulator for sequencer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07225605A (en) * 1994-02-09 1995-08-22 Riyoosen Engineers:Kk Simulator for sequencer

Similar Documents

Publication Publication Date Title
JPS6017539A (en) Emulation system
CN112765018B (en) Instrument debugging system and method
WO2016189689A1 (en) Program generation device, program generation method, and program generation program
KR20190078681A (en) System and Method for Artificial Neural Network Learning and Simulation
KR100286197B1 (en) Programming method of data processing system
JP3189793B2 (en) System simulator and system simulation method
JPH02284205A (en) Simulation system for pc
JP2803090B2 (en) MPU simulation method and MPU simulator
JPS6349851A (en) Simulation system
JP3270729B2 (en) Extended instruction set simulator
JPH05250221A (en) Simulator execution system
JPH04123144A (en) Debuging device
Goldberg et al. The PRIM System: An alternative architecture for emulator development and use
JPS62214444A (en) Simulation method
JPS5949609A (en) Programmable controller equipped with simulation performing function
JPH02270037A (en) Hardware simulation system
JPH0368037A (en) Program developing device
JPH04255038A (en) Method for executing input/output by simulator in processor
JPH0540661A (en) Simulator
JPS6244299B2 (en)
JPH02294864A (en) Multi-processor system simulation system
JPS61239345A (en) I/o simulator
JPH02308342A (en) Constituting method for simulating debugger
JP2000194582A (en) Emulation system
JPH0352038A (en) Debugging device