JPH09330250A - Program simulator - Google Patents

Program simulator

Info

Publication number
JPH09330250A
JPH09330250A JP14945096A JP14945096A JPH09330250A JP H09330250 A JPH09330250 A JP H09330250A JP 14945096 A JP14945096 A JP 14945096A JP 14945096 A JP14945096 A JP 14945096A JP H09330250 A JPH09330250 A JP H09330250A
Authority
JP
Japan
Prior art keywords
pseudo
control
input
program
memory
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
JP14945096A
Other languages
Japanese (ja)
Inventor
Noriaki Kaihatsu
紀昭 改発
Nagako Hasegawa
奈賀子 長谷川
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP14945096A priority Critical patent/JPH09330250A/en
Publication of JPH09330250A publication Critical patent/JPH09330250A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Testing And Monitoring For Control Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

PROBLEM TO BE SOLVED: To perform the debugging of a sequence program by executing desk- top simulation including the operation of a machine to be a controlled system or static simulation stopping the motive force source of the machine through one programmable controller and external tools for program preparation and data setting display connected to this controller. SOLUTION: This device is provided with a microprocessor 8 for performing the ON/OFF control of a control output signal by executing control arithmetic based on a control program stored in a program memory 17, programmable controller 1 equipped with output memories 13 and 14 for storing the ON/OFF state of the control output signal, and external tool 20 equipped with a program memory 27 storing a pseudo program simulating the operation of a system to be controlled, microprocessor 21 for performing the pseudo operation of the system to be controlled by fetching the contents of output memories 13 and 14 of the programmable controller 1 into the pseudo program, and output image memory 18a for storing the pseudo control output signal based on the simulation operated result.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、制御対象となる
機械の動作を含めた机上シュミレーションや、機械の動
力源を停止した静止をシュミレーションを1台のプログ
ラマブルコントロ−ラとこれに接続された外部ツールで
実行し、シーケンスプログラムの実行デバグを行プログ
ラムシミュレーション装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a desk-top simulation including the operation of a machine to be controlled or a stationary simulation with a power source of the machine stopped, and a programmable controller and an external device connected to the programmable controller. The present invention relates to a line program simulation apparatus that executes a program and debugs the execution of a sequence program.

【0002】[0002]

【従来の技術】図6は、従来のプログラマブルコントロ
−ラ(以下、PLCと記載する)のシ−ケンスプログラ
ムの動作を実機に則してシミュレ−ションを行う時の全
体構成を示した図である。
2. Description of the Related Art FIG. 6 is a diagram showing an overall configuration of a conventional programmable controller (hereinafter referred to as PLC) sequence program when the operation is simulated in accordance with an actual machine. is there.

【0003】同図において、1は入力端子台2と出力端
子台3とを備えた第1のPLCであり、該PLCにはシ
ミュレ−ションを行うべき第1のシ−ケンスプログラム
6(図7のラダー回路を参照)が格納されている。
In the figure, reference numeral 1 denotes a first PLC having an input terminal block 2 and an output terminal block 3, and the PLC has a first sequence program 6 (FIG. 7) to be simulated. (See the ladder circuit of) is stored.

【0004】また、同図において、1aは入力端子台2
aと出力端子台3aとを備えた第2のPLCであり、第
2のPLC1aには第1のPLC1によって制御される
機械の動作を疑似する第2のシ−ケンスプログラム6a
(図7のラダー回路を参照)が格納されている。
In the figure, reference numeral 1a is an input terminal block 2
a second PLC 1a including an output terminal block 3a, and the second PLC 1a includes a second sequence program 6a for simulating the operation of the machine controlled by the first PLC 1.
(See the ladder circuit in FIG. 7) is stored.

【0005】第1のPLC1において、4はシミュレ−
ションスイッチであり、このシミュレ−ションスイッチ
4はシ−ケンスプログラムの机上シュミレーション時に
は図示しない手動操作スイッチ(第1のPLC1によっ
て制御される機械に設けられる)に相当する。
In the first PLC 1, 4 is a simulator.
The simulation switch 4 corresponds to a manual operation switch (not shown) (provided on the machine controlled by the first PLC 1) at the time of the desk-top simulation of the sequence program.

【0006】なお、このシュミレ−ションスイッチ4と
して、出来合いのセット品を用いる時は、第1のPLC
1の全ての入力に接続しておいてもよいが、制御対象と
なる機械に設けられたリミットスイッチ、光電スイッ
チ、近接スイッチなどのセンサ用スイッチが接続される
べき入力に対しては、シュミレ−ションスイッチ4をO
FFしておく必要がある。
When a ready-made set product is used as the simulation switch 4, the first PLC is used.
1 may be connected to all inputs, but for the inputs to which sensor switches such as limit switches, photoelectric switches, proximity switches, etc. provided in the machine to be controlled are to be connected, Switch 4 on
It is necessary to FF.

【0007】5は第1のPLC1に内蔵された多数の出
力リレ−であり、その出力Y0、Y1、Y2‥‥‥‥は
第2のPLC1aの入力X0、X1、X2‥‥‥‥に接
続されている。5aは第2のPLC1aに内蔵された多
数の出力リレ−であり、その出力Y0、Y1、Y2‥‥
‥‥は上記第1のPLC1の入力X0、X1、X2‥‥
‥‥に接続されている。但し、制御対象機械に設けられ
た手動操作スイッチに対応する入力は、上記シュミレ−
ションスイッチ4が接続されているので、これらの入力
に対する接続は不要である。
Reference numeral 5 designates a large number of output relays built in the first PLC 1, the outputs Y0, Y1, Y2 ... Of which are connected to the inputs X0, X1, X2 ... Of the second PLC 1a. Has been done. Reference numeral 5a is a large number of output relays built in the second PLC 1a, and their outputs Y0, Y1, Y2 ...
... are inputs X0, X1, X2 of the first PLC1 above.
‥‥It is connected to the. However, the input corresponding to the manual operation switch provided on the controlled machine is the above simulation
Since the connection switch 4 is connected, connection to these inputs is unnecessary.

【0008】仮に、第2のPLC1aの全ての出力が第
1のPLC1の全ての入力に一律に接続されていても、
第2のPLC1a内の第2のシ−ケンスプログラム6a
(図7)では機械の手動操作スイッチに対応した不要な
制御出力を発生しないので実用上の問題はない。
Even if all the outputs of the second PLC 1a are uniformly connected to all the inputs of the first PLC 1,
The second sequence program 6a in the second PLC 1a
In FIG. 7, since no unnecessary control output corresponding to the manual operation switch of the machine is generated, there is no practical problem.

【0009】以下、従来のPLCの動作を図7をも参照
して説明する。図7は、図6の通り構成された第1のP
LC1と第2のPLC1aの総合的な作用及び動作を説
明するためのリレーラダー図を示したものである。図7
において、6は第1のPLC1内でプログラムされた第
1のシ−ケンスプログラム(即ち、シュミレ−ションさ
れるべきシ−ケンスプログラム)の内容をリレ−ラダ−
図で表現したものであり、これは以下の通り動作する。
The operation of the conventional PLC will be described below with reference to FIG. FIG. 7 shows a first P constructed as shown in FIG.
It is the thing which shows the relay ladder figure in order to explain the synthetic operation and operation of LC1 and 2nd PLC1a. Figure 7
In 6, the contents of the first sequence program (that is, the sequence program to be simulated) programmed in the first PLC 1 is relayed.
It is represented graphically and operates as follows.

【0010】先ず、図6のシュミレ−ションスイッチ4
のうち、入力端子台2の符号X0に接続されたスイッチ
をONすると、リレ−ラダ−図の中の常開接点X0がO
Nとなり、右限リミットスイッチの常閉接点X10を通
して出力リレ−Y0が動作する。
First, the simulation switch 4 shown in FIG.
Among them, when the switch connected to the code X0 of the input terminal block 2 is turned on, the normally open contact X0 in the relay ladder diagram is turned O.
N, the output relay Y0 operates through the normally closed contact X10 of the right limit switch.

【0011】その後は、シュミレ−ションスイッチ4の
うち、入力X0をOFFしても出力リレ−Y0の自己保
持用常開接点Y0によって、出力リレ−Y0の動作は継
続している。出力リレ−Y0が、例えば台車駆動用モ−
タの右行動作用であれば、やがて図示しない右限リミッ
トスイッチの常閉接点X10が開路し、出力リレ−Y0
が不動作となって、右行動作を停止させようとするもの
である。
After that, even when the input X0 of the simulation switch 4 is turned off, the operation of the output relay Y0 is continued by the self-holding normally open contact Y0 of the output relay Y0. The output relay Y0 is, for example, a truck driving mode.
If it is the right action action of the data, the normally closed contact X10 of the right limit switch (not shown) opens and the output relay Y0
Becomes a non-operation and tries to stop the rightward movement.

【0012】6aは、第2のPLC1a内でプログラム
された第2のシ−ケンスプログラム(即ち、制御対象機
械の動作に相当したシュミレ−ションプログラム)の内
容をリレ−ラダ−図で表現したものであり以下の通り動
作する。
Reference numeral 6a represents the contents of the second sequence program (that is, the simulation program corresponding to the operation of the machine to be controlled) programmed in the second PLC 1a in a relay ladder diagram. And operates as follows.

【0013】第1のPLC1の出力リレ−Y0の動作
は、図6の出力端子台3の中の出力Y0から入力端子台
2aの入力X0を介して上記リレ−ラダ−図(6a)の
中の常開接点X0をONさせる。これにより、第2のP
LC1a内のタイマT0が駆動され、その設定時間K1
0(例えば10秒)後に常開接点T0が閉路する。
The operation of the output relay Y0 of the first PLC 1 is as shown in the relay ladder diagram (6a) from the output Y0 in the output terminal block 3 of FIG. 6 through the input X0 of the input terminal block 2a. The normally open contact X0 of is turned on. As a result, the second P
The timer T0 in LC1a is driven, and its set time K1
After 0 (for example, 10 seconds), the normally open contact T0 is closed.

【0014】従って、第2のPLC1aの出力リレ−Y
10が動作し、出力端子台3aの出力Y10、入力端子
台2の入力X10を介して、リレ−ラダ−図(6)内の
常閉接点X10を開路させ、アクチェ−タの右行動作を
停止することになる。
Therefore, the output relay Y of the second PLC 1a
10 operates to open the normally closed contact X10 in the relay ladder diagram (6) through the output Y10 of the output terminal block 3a and the input X10 of the input terminal block 2 to perform the rightward movement of the actuator. Will stop.

【0015】このように、第2のシ−ケンスプログラム
6aは、第1のPLC1によって制御されるべき機械の
動作を疑似したものであって、タイマT0はアクチェ−
タの右行動作時間に相当して設定されている。
As described above, the second sequence program 6a simulates the operation of the machine to be controlled by the first PLC 1, and the timer T0 is an actuator.
It is set to correspond to the rightward movement time of the data.

【0016】なお、上記第1のシ−ケンスプログラム6
は、機械制御のためのごく一部を示したものであり、一
般に多数の入出力の複合的な組み合わせと、安全な動作
手順に基づく複雑なものとなっている。これに対し、上
記第2のシ−ケンスプログラム6aは、各種アクチェ−
タの駆動に伴うセンサの応答を素直に表現したものであ
り、図7のような単純なタイマ回路が多数プログラムさ
れることが一般的である。
The above first sequence program 6
Shows a small part for machine control, and is generally complicated based on a complex combination of a large number of inputs and outputs and a safe operation procedure. On the other hand, the second sequence program 6a has various types of actions.
This is a straightforward expression of the response of the sensor accompanying the driving of the data, and it is common to program many simple timer circuits as shown in FIG.

【0017】また、制御対象となる機械に設けられた表
示ランプなどの静止出力負荷の場合は、第1のPLC1
に設けられた出力表示LEDによって動作の確認ができ
るので、シミュレ−ションプログラムを作る必要はな
い。
In the case of a static output load such as an indicator lamp provided on the machine to be controlled, the first PLC 1
Since it is possible to confirm the operation by the output display LED provided in, it is not necessary to create a simulation program.

【0018】[0018]

【発明が解決しようとする課題】以上のように、従来の
PLCはシ−ケンスプログラム開発の最終段階におい
て、PLCの制御対象とする機械がなくても、機械動作
を疑似したシ−ケンスプログラムを処理することで、機
械動作に則してシ−ケンスプログラムの動作をシュミレ
−ションすることができる。
As described above, in the conventional PLC, at the final stage of the sequence program development, even if there is no machine to be controlled by the PLC, the sequence program simulating the machine operation is executed. By processing, the operation of the sequence program can be simulated in accordance with the machine operation.

【0019】しかし、この場合シ−ケンスプログラムを
実施するPLCと制御対象である機械の動作を疑似する
PLCとを必要とし、容易にシ−ケンスプログラムの動
作をシュミレ−ションすることができないという問題点
がった。
However, in this case, the PLC for executing the sequence program and the PLC for simulating the operation of the machine to be controlled are required, and the operation of the sequence program cannot be easily simulated. I got a point.

【0020】このような問題点を解決するために、デー
タ記憶容量と共に入出力点数の大きなPLCを用いて、
余分の入出力端子台部分に対してシミュレ−ション用の
入出力を接続してシ−ケンスプログラムの動作をシュミ
レ−ションすることもできる。
In order to solve such a problem, a PLC having a large number of input / output points as well as a data storage capacity is used.
The operation of the sequence program can be simulated by connecting an input / output for simulation to an extra input / output terminal block portion.

【0021】しかし、このよう場合、通常必要としない
機能のためにPLCを大型化することになって不要にコ
スト高を招いたり、シミュレ−ション用の入出力配線を
複雑に配さなければならないという問題点があった。
However, in such a case, the PLC is increased in size due to a function that is not normally required, which unnecessarily increases the cost, and the input / output wiring for simulation must be arranged in a complicated manner. There was a problem.

【0022】この発明は上記のような問題点に鑑みなさ
れたので、そしてこの発明の第1の目的は、実用される
PLCと同一の入出力点数規模のPLCを1台だけ用い
て、シミュレ−ションスイッチと外部ツ−ルを接続すれ
ば、その他のシミュレ−ション用の入出力配線を必要と
しないで、機械動作の机上シミュレ−ションが行えるよ
うなプログラムシミュレ−ション装置を提供するもので
ある。
The present invention has been made in view of the above problems, and a first object of the present invention is to use only one PLC having the same number of input / output points as a practical PLC, and to simulate it. If a connection switch and an external tool are connected, it is possible to provide a program simulation device capable of performing a desktop simulation of machine operation without the need for other input / output wiring for simulation. .

【0023】また、この発明の第2の目的は、PLCが
その制御対象となる機械に対して、既に組込み配線され
た後であっても、機械の動力源即ち、モ−タの電源や油
圧、空圧機器の圧力源を止めておくことにより、静止状
態で等価的な運転シミュレ−ションが行えるようにする
ものである。
A second object of the present invention is to provide a power source for a machine, that is, a power source for a motor and a hydraulic pressure, even after the PLC is already installed and wired in the machine to be controlled. By stopping the pressure source of the pneumatic equipment, an equivalent operation simulation can be performed in a stationary state.

【0024】更に、この発明の第3の目的は、PLCの
机上シミュレ−ションを行うに当たって、PLCに対し
てシミュレ−ションスイッチを取付けることなく、実機
に即したシーケンスプログラムの机上シミュレ−ション
を行うものである。
Further, a third object of the present invention is to carry out a desk-top simulation of a sequence program suitable for an actual machine in carrying out a desk-top simulation of the PLC without attaching a simulation switch to the PLC. It is a thing.

【0025】[0025]

【課題を解決するための手段】請求項1の発明の係るプ
ログラムシミュレーション装置は、プログラムメモリに
格納された制御プログラムに基づいて制御演算を行い、
制御出力信号のON/OFF制御を行うマイクロプロセ
ッサと、前記制御出力信号のON/OFF状態を格納す
る出力メモリとを含んだプログラマブルコントローラ
と、被制御系の動作を疑似した疑似プログラムを格納し
た疑似プログラムメモリと、前記疑似プログラムに前記
プログラマブルコントローラの出力メモリの内容を取り
込んで被制御系の疑似動作を行うマイクロプロセッサ
と、疑似動作結果による疑似制御出力信号を格納する疑
似出力メモリとを含んだ外部ツールとを備え、前記プロ
グラマブルコントローラは、前記外部ツールの疑似出力
メモリに格納された疑似制御出力信号を疑似制御出力信
号メモリに記憶し、この記憶された疑似制御出力信号と
外部より入力される制御入力信号とを前記マイクロプロ
セッサにて論理合成して被演算用の制御信号とするもの
である。
According to a first aspect of the present invention, there is provided a program simulation apparatus which performs a control calculation based on a control program stored in a program memory,
A programmable controller including a microprocessor for controlling ON / OFF of a control output signal, an output memory for storing the ON / OFF state of the control output signal, and a pseudo program storing a pseudo program for simulating the operation of the controlled system. An external unit including a program memory, a microprocessor for incorporating the contents of the output memory of the programmable controller into the pseudo program to perform a pseudo operation of a controlled system, and a pseudo output memory for storing a pseudo control output signal according to the result of the pseudo operation. A programmable controller, the programmable controller stores a pseudo control output signal stored in a pseudo output memory of the external tool in a pseudo control output signal memory, and the stored pseudo control output signal and a control input from the outside. The input signal is logically synthesized by the microprocessor. It is an control signal for the operation.

【0026】請求項2の発明の係るプログラムシミュレ
ーション装置は、請求項1において前記プログラマブル
コントローラが、前記マイクロプロセッサにて前記疑似
制御出力信号と前記制御入力信号とを論理和合成するも
のである。
According to a second aspect of the program simulation apparatus of the first aspect, the programmable controller logically sums the pseudo control output signal and the control input signal in the microprocessor.

【0027】請求項3の発明の係るプログラムシミュレ
ーション装置は、請求項1において前記プログラマブル
コントローラが、前記マイクロプロセッサにて前記疑似
制御出力信号と前記制御入力信号とをそれぞれ選択する
ものである。
According to a third aspect of the present invention, there is provided the program simulation device according to the first aspect, wherein the programmable controller selects the pseudo control output signal and the control input signal by the microprocessor.

【0028】請求項4の発明の係るプログラムシミュレ
ーション装置は、請求項1において前記プログラマブル
コントローラが、前記マイクロプロセッサにて複数の前
記制御入力信号の内一部の制御入力信号に対して前記疑
似制御出力信号を優先して選択するものである。
According to a fourth aspect of the present invention, there is provided a program simulation apparatus according to the first aspect, wherein the programmable controller outputs the pseudo control output to a part of a plurality of control input signals in the microprocessor. Signals are selected with priority.

【0029】請求項5の発明の係るプログラムシミュレ
ーション装置は、請求項1において前記外部ツールが、
前記プログラマブルコントローラに入力される複数の前
記制御入力信号の内、手動操作による制御入力信号に対
応する疑似制御出力信号を予め疑似データメモリに格納
し、前記プログラマブルコントローラより手動操作によ
る制御入力信号が入力された時、この制御入力信号に対
応する疑似制御出力信号を前記疑似データメモリより読
み出して前記プログラマブルコントローラに入力するも
のである。
According to a fifth aspect of the present invention, there is provided a program simulation device in which the external tool is
Of the plurality of control input signals input to the programmable controller, a pseudo control output signal corresponding to a control input signal by manual operation is stored in advance in a pseudo data memory, and a control input signal by manual operation is input from the programmable controller. Then, the pseudo control output signal corresponding to the control input signal is read from the pseudo data memory and input to the programmable controller.

【0030】請求項6の発明の係るプログラムシミュレ
ーション装置は、請求項1において前記外部ツールが、
前記プログラマブルコントローラから入力される制御出
力信号に対応する疑似制御出力信号を予め疑似データメ
モリに格納し、前記プログラマブルコントローラより制
御出力信号が入力された時、この制御出力信号に対応す
る疑似制御出力信号を前記疑似データメモリより読み出
して前記プログラマブルコントローラに入力するもので
ある。
According to a sixth aspect of the program simulation apparatus of the present invention, in the first aspect, the external tool is
A pseudo control output signal corresponding to the control output signal input from the programmable controller is stored in advance in the pseudo data memory, and when the control output signal is input from the programmable controller, the pseudo control output signal corresponding to this control output signal Is read from the pseudo data memory and input to the programmable controller.

【0031】請求項7の発明の係るプログラムシミュレ
ーション装置は、請求項5において前記外部ツ−ルが、
疑似制御出力信号を手動操作による制御入力信号のON
/OFFに応動した時限出力の形態で疑似データメモリ
に格納し、その時限出力をプログラマブルコントロ−ラ
の疑似出力メモリに転送するものである。
According to a seventh aspect of the present invention, there is provided a program simulation apparatus according to the fifth aspect, wherein the external tool is
Turning on the pseudo control output signal by manually operating the control input signal
The timed output is stored in the pseudo data memory in the form of a timed output in response to ON / OFF, and the timed output is transferred to the pseudo output memory of the programmable controller.

【0032】請求項8の発明の係るプログラムシミュレ
ーション装置は、請求項6において前記外部ツ−ルが、
疑似制御出力信号を制御出力信号のON/OFFに応動
した時限出力の形態で疑似データメモリに格納し、その
時限出力をプログラマブルコントロ−ラの疑似出力メモ
リに転送するものである。
A program simulation apparatus according to the invention of claim 8 is the program simulation apparatus according to claim 6, wherein the external tool is
The pseudo control output signal is stored in the pseudo data memory in the form of a timed output in response to ON / OFF of the control output signal, and the timed output is transferred to the pseudo output memory of the programmable controller.

【0033】請求項9の発明の係るプログラムシミュレ
ーション装置は、請求項1ないし8において前記外部ツ
ールの操作により前記プログラマブルコントローラのパ
ラメータメモリに制御プログラムのシミュレーション実
行或いは非実行を示すON或いはOFF信号を記憶し、
マイクロプロセッサが演算過程でこのパラメータメモリ
よりOFF信号読み出し時には、疑似制御出力信号を排
除して制御入力信号を入力し外部負荷に対する制御演算
を行うものである。
According to a ninth aspect of the present invention, there is provided a program simulation apparatus, wherein the parameter memory of the programmable controller stores an ON or OFF signal indicating execution or non-execution of a simulation of a control program by operating the external tool. Then
When the microprocessor reads the OFF signal from the parameter memory during the calculation process, the pseudo control output signal is excluded and the control input signal is input to perform the control calculation for the external load.

【0034】請求項10の発明の係るプログラムシミュ
レーション装置は、請求項1ないし9において前記外部
ツ−ルが、プログラマブルコントロ−ラに対するプログ
ラム作成装置またはプログラマブルコントロ−ラの内部
デバイスに対するデ−タ設定・表示ユニットである。
According to a tenth aspect of the present invention, there is provided a program simulation apparatus according to any one of the first to ninth aspects, wherein the external tool is a program creating apparatus for a programmable controller or data setting / setting for an internal device of the programmable controller. It is a display unit.

【0035】[0035]

【発明の実施の形態】 実施の形態1.以下、この発明の実施の形態1を図につ
いて説明する。図1は本実施の形態に係るPLCの構成
を示すブロック図である。図において、7は本実施の形
態に係るPLC本体である。8はシステムメモリ9に格
納されたシステムプログラムに基づいて、所定の手順で
データ処理動作を行うマイクロプロセッサ(以下CPU
と云う)、10はPLC7の外部に設けられた多数の入
力スイッチ11をCPU8に接続する入力インタフェー
スであり、この入力インタフェース10は入力される信
号電圧のレベルの変換や外部機器とCPU8との間の光
絶縁などを行うと共に、図示しない複数のデータセレク
タの順次選択により、8点単位または、16点単位で入
力スイッチ11のON/OFF信号をCPU8に供給す
る。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiment 1. Embodiment 1 of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of the PLC according to this embodiment. In the figure, 7 is a PLC main body according to the present embodiment. Reference numeral 8 denotes a microprocessor (hereinafter referred to as CPU) that performs data processing operation in a predetermined procedure based on a system program stored in the system memory 9.
10 is an input interface for connecting a large number of input switches 11 provided outside the PLC 7 to the CPU 8. The input interface 10 is for converting the level of the signal voltage to be input and between the external device and the CPU 8. In addition to performing the optical isolation, the ON / OFF signal of the input switch 11 is supplied to the CPU 8 in units of 8 points or 16 points by sequentially selecting a plurality of data selectors (not shown).

【0036】12は入力イメ−ジメモリであり、この入
力イメ−ジメモリ12はCPU8を介して入力スイッチ
11のON/OFF信号が格納される。但し、CPU8
が制御に必要な入力スイッチ11のON/OFF信号
を、必要の都度に入力インタフェース10から直接的に
組込む形式のPLCにあっては、必ずしも入力イメージ
メモリ12は必要としない。
Reference numeral 12 is an input image memory, and the input image memory 12 stores the ON / OFF signal of the input switch 11 via the CPU 8. However, CPU8
In the PLC of the type in which the ON / OFF signal of the input switch 11 required for control is directly incorporated from the input interface 10 each time it is needed, the input image memory 12 is not always necessary.

【0037】13は出力イメ−ジメモリであり、この出
力イメ−ジメモリ13はプログラムメモリ17に格納さ
れたシーケンスプログラムと、入力イメ−ジメモリ12
(あるいは、入力インタフェ−ス10からの入力スイッ
チ11のON/OFF信号)とに基づいて、CPU8で
制御された出力指令のON/OFF信号が格納される。
Reference numeral 13 is an output image memory, and this output image memory 13 stores the sequence program stored in the program memory 17 and the input image memory 12.
(Or, the ON / OFF signal of the output command controlled by the CPU 8 is stored based on (or the ON / OFF signal of the input switch 11 from the input interface 10)).

【0038】なお、CPU8は、その演算制御の過程
で、出力イメ−ジメモリ13内のON/OFF信号も参
照しながら、出力指令を発生している。
Incidentally, the CPU 8 generates an output command while referring to the ON / OFF signal in the output image memory 13 in the course of the arithmetic control.

【0039】14は、8点または16点単位のON/O
FF信号を扱う複数の出力ラッチメモリであり、順次選
択されながら上記出力イメ−ジメモリ13のON/OF
F信号が格納される。その格納のタイミングは、出力イ
メ−ジメモリ13の内容が更新される都度に行われるダ
イレクト方式と、CPU8の一連の動作が完了した時に
サイクリックに行われるリフレッシュ方式とがある。
尚、出力イメ−ジメモリ13と出力ラッチメモリ14で
出力メモリを構成する。
14 is an ON / O in units of 8 points or 16 points.
A plurality of output latch memories for handling FF signals, and ON / OF of the output image memory 13 while being sequentially selected.
The F signal is stored. The storage timing is either a direct method, which is performed each time the contents of the output image memory 13 are updated, or a refresh method, which is cyclically performed when a series of operations of the CPU 8 is completed.
The output image memory 13 and the output latch memory 14 form an output memory.

【0040】15は出力ラッチメモリ14と直結し、信
号電圧レベルの変換や出力ラッチメモリ14と外部出力
負荷との間の光絶縁などを行う出力インタフェ−スであ
り、出力インタフェ−ス15にはPLC7の外部には出
力負荷16として電磁弁、パイロットランプ等の多数の
機器が接続されている。
Reference numeral 15 is an output interface directly connected to the output latch memory 14 for converting the signal voltage level and performing optical isolation between the output latch memory 14 and the external output load. A large number of devices such as a solenoid valve and a pilot lamp are connected to the outside of the PLC 7 as an output load 16.

【0041】18は疑似出力イメ−ジメモリ(疑似出力
制御メモリ)であり、この疑似出力イメ−ジメモリ18
にはツ−ルインタフェ−ス19を通して外部ツ−ル20
が発生するシュミレ−ション用ON/OFF指令が格納
される。尚、疑似出力イメ−ジメモリ18に格納される
シュミレ−ション用ON/OFF指令は、出力イメ−ジ
メモリ13の内容に基づくものであり、例えばM100
0、M1001、M1002・・・のように、補助記号
Mを伴う一連番号のON/OFF信号が格納される。
Reference numeral 18 is a pseudo output image memory (pseudo output control memory).
An external tool 20 through a tool interface 19
The ON / OFF command for the simulation that causes is stored. The simulation ON / OFF command stored in the pseudo output image memory 18 is based on the contents of the output image memory 13, for example, M100.
0, M1001, M1002, ..., ON / OFF signals of serial numbers accompanied by the supplementary symbol M are stored.

【0042】22は合成入力イメ−ジメモリであり、こ
の合成入力イメ−ジメモリ22の内容は入力イメ−ジメ
モリ12(または入力インタ−フェ−ス10のON/O
FF信号)と疑似出力イメ−ジメモリ18の内容とを後
述する論理結合で合成したもである。
Reference numeral 22 is a composite input image memory. The contents of the composite input image memory 22 are the contents of the input image memory 12 (or the ON / O of the input interface 10).
The FF signal) and the contents of the pseudo output image memory 18 are combined by the logical connection described later.

【0043】23はPLC7の内部に設けられたタイ
マ、カウンタ、デ−タレジスタ、補助リレ−等の各種内
部デバイスメモリであり、シ−ケンスプログラムの中
で、自由に用いることができる。19はツ−ルインタ−
フェ−スであり、このツ−ルインタ−フェ−ス19は外
部ツ−ル20で作成したシ−ケンスプログラムをプログ
ラムメモリ14に転送したり、外部ツ−ル20から各種
イメ−ジメモリやデバイスメモリ23の内容を人為的に
設定変更したり、モニタ表示したりシュミレ−ションす
るためのON/OFF指令を交信するためのものであ
る。
Reference numeral 23 denotes various internal device memories such as a timer, a counter, a data register, and an auxiliary relay provided inside the PLC 7, which can be freely used in the sequence program. 19 is a tool interface
This tool interface 19 transfers the sequence program created by the external tool 20 to the program memory 14, and the external tool 20 causes various image memories and device memories. This is for communicating an ON / OFF command for artificially changing the settings of 23, displaying on a monitor, or simulating.

【0044】20はツ−ルインタフェ−ス19を介し
て、通信によりPLC7と接続される外部ツ−ルであ
り、その構成は図2で詳述する。24は図4により後述
するパラメ−タメモリである。各種メモリやインタフェ
−スはCPU8に対してバス接続され、CPU8を介し
て互いに交信することができるよう構成されている。
Reference numeral 20 denotes an external tool which is connected to the PLC 7 by communication via the tool interface 19, and the configuration thereof will be described in detail with reference to FIG. Reference numeral 24 is a parameter memory described later with reference to FIG. Various memories and interfaces are bus-connected to the CPU 8 so that they can communicate with each other via the CPU 8.

【0045】図2は外部ツ−ル20の詳細を示した構成
ブロック図である。図2において、21はシステムメモ
リ28と共動し、キ−操作部25のキ−操作に対応して
画面表示部26に所定の画面表示を行うマイクロプロセ
ッサ(以下CPUと言う)、19aはPLC7のツ−ル
インタフェ−ス19と接続され、RS422またはRS
232Cなどの規格に基づく信号交信を行うためのツ−
ルインタフェ−ス、13aはツ−ルインタフェ−ス1
9、19aを介してPLC7の出力イメ−ジメモリ13
の内容が格納され、出力イメ−ジメモリ13内容を機械
の疑似動作のための入力として扱う入力イメ−ジメモリ
である。
FIG. 2 is a block diagram showing the details of the external tool 20. In FIG. 2, reference numeral 21 denotes a microprocessor (hereinafter referred to as CPU) which cooperates with the system memory 28 to display a predetermined screen on the screen display unit 26 in response to a key operation of the key operation unit 25, and a PLC 7 19a. RS422 or RS connected to the tool interface 19 of
Tool for performing signal communication based on standards such as 232C
The tool interface 13a is a tool interface 1
Output image memory 13 of PLC 7 via 9, 19a
Is an input image memory for storing the contents of the output image memory 13 and handling the contents of the output image memory 13 as an input for a pseudo operation of the machine.

【0046】18aは出力イメ−ジメモリ(疑似出力メ
モリ)であり、この出力イメ−ジメモリ18aには入力
イメ−ジメモリ19aの内容とプログラムメモリ(疑似
プログラムメモリ)27の内容に基づくCPU21の疑
似動作出力が格納される。そして、疑似動作出力はツ−
ルインタフェ−ス19a、19を介してPLC7の疑似
出力イメ−ジメモリ18に転送される。
Reference numeral 18a is an output image memory (pseudo output memory). The output image memory 18a outputs a pseudo operation of the CPU 21 based on the contents of the input image memory 19a and the contents of the program memory (pseudo program memory) 27. Is stored. And the pseudo operation output is
It is transferred to the pseudo output image memory 18 of the PLC 7 via the rule interfaces 19a and 19.

【0047】プログラムメモリ27の内容は図5により
後述する通り、キ−操作部25のキ−操作と画面表示部
26の表示画面を参照しながらユ−ザによって作成され
るものである。
As will be described later with reference to FIG. 5, the contents of the program memory 27 are created by the user while referring to the key operation of the key operation unit 25 and the display screen of the screen display unit 26.

【0048】24aはパラメ−タメモリであり、このパ
ラメ−タメモリ24aはPLC7に装備されたパラメ−
タメモリ24に対し、ツ−ルインタフェ−ス19a、1
9を介してパラメ−タを転送する。パラメ−タメモリ2
4aの内容はキ−操作部25のキ−操作と画面表示部2
6の表示画面を参照しながらユ−ザによって作成される
ものである。
24a is a parameter memory, and this parameter memory 24a is a parameter equipped in the PLC 7.
Data memory 24 to the tool interfaces 19a, 1
Transfer parameters via 9. Parameter memory 2
The contents of 4a are the key operation of the key operation unit 25 and the screen display unit 2
It is created by the user while referring to the display screen of No. 6.

【0049】17aはシ−ケンスプログラムメモリであ
り、このシ−ケンスプログラムメモリ17aは外部ツ−
ル20がPLC7のシ−ケンスプログラム作成装置とし
て用いられる場合に装備され、キ−操作部25のキ−操
作と画面表示部26の表示画面を参照しながらユ−ザに
よって作成されるシ−ケンスプログラムが格納されると
共に、ツ−ルインタフェ−ス19a、19を介してPL
C7のプログラムメモリ17にシ−ケンスプログラムが
転送される。
Reference numeral 17a is a sequence program memory, and this sequence program memory 17a is an external tour memory.
The sequence prepared by the user with reference to the key operation of the key operation unit 25 and the display screen of the screen display unit 26, which is equipped when the rule 20 is used as a sequence program creation device of the PLC 7. The program is stored, and PL is also available via the tool interfaces 19a and 19
The sequence program is transferred to the program memory 17 of C7.

【0050】23aはデバイスメモリであり、このデバ
イスメモリ23aは外部ツ−ル20がPLC7の各種デ
バイスに対するデ−タ設定・表示装置である場合に装備
され、ツ−ルインタフェ−ス19a、19を介してPL
C7の内部デバイスメモリ23と互いに信号交信をおこ
なう。
Reference numeral 23a denotes a device memory. This device memory 23a is provided when the external tool 20 is a data setting / display device for various devices of the PLC 7, and is provided via the tool interfaces 19a and 19. PL
It communicates with the internal device memory 23 of C7.

【0051】これらの各種メモリやツ−ルインタフェ−
ス19a、キ−操作部25、画面表示部26はCPU2
1に対してバス接続され、全体として外部ツ−ル20を
構成するものである。また、28はPLC8の出力信号
及び手動入力信号に対応して予め疑似出力信号をタイマ
出力信号の形態で記憶したシステムメモリである。
These various memories and tool interfaces
The CPU 19a, the key operation unit 25, and the screen display unit 26 are the CPU 2
1 is connected to the bus by a bus and constitutes the external tool 20 as a whole. Reference numeral 28 is a system memory in which pseudo output signals are stored in advance in the form of timer output signals corresponding to the output signals of the PLC 8 and the manual input signals.

【0052】次に、本実施の形態の動作を図3に従って
説明する。図3は図1の通り構成されたPLC7の作
用、動作を説明するための各処理工程の流れ示したブロ
ック図である。図3において、工程30でPLC7の外
部に接続された多数の入力スイッチ11のON/OFF
信号は、入力インタフェ−ス10、CPU8を介して入
力イメ−ジメモリ12に取り込まれる。
Next, the operation of this embodiment will be described with reference to FIG. FIG. 3 is a block diagram showing the flow of each processing step for explaining the operation and operation of the PLC 7 configured as in FIG. In FIG. 3, in step 30, a large number of input switches 11 connected to the outside of the PLC 7 are turned on / off.
The signal is taken into the input image memory 12 via the input interface 10 and the CPU 8.

【0053】続いて工程31では、工程30で入力イメ
−ジメモリに取り込まれた内容と後述する工程36にて
疑似出力イメ−ジメモリ18に取り込まれた内容とを合
成し、合成入力イメ−ジメモリ22に格納する。
Then, in step 31, the contents input to the input image memory in step 30 and the contents input to the pseudo output image memory 18 in step 36, which will be described later, are combined to generate a combined input image memory 22. To store.

【0054】そして、工程32で、PLC7のCPU8
は合成入力イメ−ジメモリ22、出力イメ−ジメモリ1
3、内部デバイスメモリ23、シ−ケンスプログラムメ
モリ17の内容に応じて図7の6に示すシーケンス制御
出力を生成して出力イメ−ジメモリ13に格納する。
Then, in step 32, the CPU 8 of the PLC 7
Is a composite input image memory 22 and an output image memory 1
3, the internal device memory 23 and the sequence program memory 17 generate the sequence control output shown in 6 of FIG. 7 and store it in the output image memory 13.

【0055】工程32で出力イメ−ジメモリ13に格納
されたシーケンス制御出力は、工程33で出力ラッチメ
モリ14に転送され、出力インタフェ−ス15を介して
多数の負荷16を駆動する。
The sequence control output stored in the output image memory 13 in step 32 is transferred to the output latch memory 14 in step 33 and drives a large number of loads 16 via the output interface 15.

【0056】また、工程32で出力イメ−ジメモリ13
に格納されたシーケンス制御出力は、工程34でツ−ル
インタフェ−ス19、19aを介して外部ツール20に
転送されて入力イメ−ジメモリ13aに格納された後
に、CPU21のプログラムメモリ27内のシミュレ−
ションプログラムに基づいて出力イメ−ジメモリ18a
のON/OFF内容を制御し機械動作の疑似出力を生成
する。
In step 32, the output image memory 13
The sequence control output stored in the program memory 27 of the CPU 21 is transferred to the external tool 20 via the tool interfaces 19 and 19a and stored in the input image memory 13a in step 34.
Output image memory 18a based on the application program
Controls ON / OFF contents of to generate a pseudo output of machine operation.

【0057】更に、工程35では、キ−操作部25の操
作によりPLC7の多数の入力スイッチ11の内、手動
操作系のスイッチに相当するものの代替を行って出力イ
メ−ジメモリ18aにON/OFF信号を供給する。
Further, in step 35, the key operation section 25 is operated to substitute one of a large number of input switches 11 of the PLC 7 which corresponds to a manually operated switch, and an ON / OFF signal is output to the output image memory 18a. To supply.

【0058】出力イメージメモリ18aに格納された機
械動作の疑似出力は、工程36でツ−ルインタフェ−ス
19、19aを介して外部ツ−ル20からPLC7内の
疑似出力イメ−ジメモリに格納される。
The pseudo output of the machine operation stored in the output image memory 18a is stored in the pseudo output image memory in the PLC 7 from the external tool 20 through the tool interfaces 19 and 19a in step 36. .

【0059】なお、疑似出力イメ−ジメモリ18の内容
と入力イメ−ジメモリ12(または入力インタフェ−ス
10のON/OFF信号)との内容は、工程31で論理
和結合されて上記合成入力イメ−ジメモリ22に格納さ
れシ−ケンスプログラムに対する制御入力となる。
The contents of the pseudo output image memory 18 and the contents of the input image memory 12 (or the ON / OFF signal of the input interface 10) are logically combined in step 31 to be combined and input. It is stored in the memory 22 and serves as a control input for the sequence program.

【0060】従って、入力イメ−ジメモリ12と疑似出
力イメ−ジメモリ18内のどちらかのON/OFF信号
がONであれば、これに対応した合成入力イメ−ジメモ
リ22の信号もONとなるものである。以上のように、
本実施の形態のPLC7は、自己への入力信号と疑似出
力信号をシステムプログラム上で自動的に論理和結合す
ることで、ユ−ザが疑似出力信号を意識したシ−ケンス
プログラムを作らなくても良いようになっている。
Therefore, if either the ON / OFF signal in the input image memory 12 or the pseudo output image memory 18 is ON, the corresponding signal in the composite input image memory 22 is also turned ON. is there. As mentioned above,
The PLC 7 of the present embodiment automatically or-combines the input signal to itself and the pseudo output signal on the system program, so that the user does not have to make a sequence program in consideration of the pseudo output signal. Is also good.

【0061】実施の形態2.上記実施の形態1は、PL
C7の入力に、シミュレ−ションスイッチ11を接続
し、機械の手動操作スイッチに対応する入力以外の全て
の入力をOFFにして机上シミュレ−ションを行うこと
について説明した。
Embodiment 2 In the first embodiment, the PL
It has been described that the simulation switch 11 is connected to the input of C7 and all the inputs other than the input corresponding to the manual operation switch of the machine are turned off to perform the desktop simulation.

【0062】一方、PLC7が既にその制御対象となる
機械に組込み配線されていて、機械の動力源を停止した
状態での静止運転シミュレ−ションを行うばあいには、
シミュレ−ションスイッチは不要であって、実機の手動
操作スイッチをそのまま用いることができる。
On the other hand, when the PLC 7 is already installed and wired in the machine to be controlled and the stationary operation simulation is performed with the power source of the machine stopped,
The simulation switch is not necessary and the manual operation switch of the actual machine can be used as it is.

【0063】しかし、機械の動作と連動するリミットス
イッチ、光電スイッチ、近接スイッチなどのセンサ入力
の内、現にON状態にある入力スイッチがPLC7の入
力に接続されている時は、この入力を無効にする処理が
必要である。
However, among the sensor inputs such as the limit switch, photoelectric switch, proximity switch, etc., which are interlocked with the operation of the machine, when the input switch which is currently in the ON state is connected to the input of the PLC 7, this input is invalidated. Processing is required.

【0064】このようなON状態の入力スイッチの数が
少なければ、入力端子の配線を外せばよいが、不特定多
数の入力スイッチが、ON状態であると取扱性が悪くな
る。また、これらの入力を一括して、入力端子台ごと取
り外すこともできるが、これも好まれる処理の方法とは
言えない。
If the number of such input switches in the ON state is small, the wiring of the input terminal may be removed, but if a large number of unspecified input switches are in the ON state, the handling becomes poor. Also, these inputs can be collectively removed and the entire input terminal block can be removed, but this is not the preferred processing method.

【0065】この発明の実施の形態2によるPLCは、
このような不具合を改善するために、図1に示したパラ
メ−タメモリ24が使用される。ここでパラメ−タメモ
リ24に格納するデータの約束事項として、例えば手動
操作系の入力スイッチの入力番号は例えばX0〜X10
の若番グル−プとし、センサ系の入力の入力番号は例え
ばX11〜X19の老番グル−プとする。若番グル−プ
及び老番グル−プに属する入力番号は、ユーザにより外
部ツ−ル20を用いてツ−ルインタフェ−ス19を介し
てPLC7のパラメ−タメモリ24に格納される。
The PLC according to the second embodiment of the present invention is
In order to improve such a problem, the parameter memory 24 shown in FIG. 1 is used. Here, as a promise item of the data stored in the parameter memory 24, for example, the input number of the input switch of the manual operation system is X0 to X10.
And the input number of the sensor system input is, for example, the old group of X11 to X19. The input numbers belonging to the young group and the old group are stored by the user in the parameter memory 24 of the PLC 7 through the tool interface 19 using the external tool 20.

【0066】そして、CPU8は順次インクリメントさ
れて設定される入力番号とパラメータメモリ24に格納
された入力番号とを比較し、設定された入力番号が若番
グル−プに属するか、老番グル−プに属するを判定す
る。
Then, the CPU 8 compares the input number, which is sequentially incremented and set, with the input number stored in the parameter memory 24, and whether the set input number belongs to the young group or the old group. Group belonging to the group.

【0067】以下、本実施の形態の動作を図4のフロ−
チャ−トを用いて説明する。このフロ−チャ−トは設定
された入力番号とパラメータメモリ24に格納された入
力番号とを照合し、設定された入力番号が若番グル−プ
に属するか、老番グル−プに属するかの判定結果に基づ
いて入力イメ−ジメモリ12の内容と疑似出力イメ−ジ
メモリ18の内容との論理和を合成入力イメ−ジメモリ
22に転送するまでの工程を説明したものである。
The operation of this embodiment will be described below with reference to the flow chart of FIG.
Explanations will be made using charts. This flowchart collates the set input number with the input number stored in the parameter memory 24, and determines whether the set input number belongs to the young group or the old group. The process up to the transfer of the logical sum of the contents of the input image memory 12 and the contents of the pseudo output image memory 18 to the synthetic input image memory 22 on the basis of the judgment result of FIG.

【0068】先ず、工程40では、内部デバイスメモリ
23内にあって、シミュレ−ション動作を行うときに動
作状態となる特殊補助リレ−M9000の動作状態を判
定する。工程40における判定の結果、特殊補助リレ−
M9000が不動作(OFF)の時は、工程41で入力
イメ−ジメモリ12の内容をそのまま合成イメ−ジメモ
リ22に転送する。
First, in step 40, the operation state of the special auxiliary relay M9000 in the internal device memory 23, which is in the operation state when performing the simulation operation, is determined. As a result of the judgment in step 40, the special auxiliary relay
When M9000 is inactive (OFF), the contents of the input image memory 12 are transferred to the composite image memory 22 as they are in step 41.

【0069】実際には、合成入力イメ−ジメモリ22の
内容を無視して、入力イメ−ジメモリ12の内容即ち、
入力インタフェ−ス10のON/OFF信号を用いシー
ケンスプログラム処理を行えば、合成イメ−ジメモリ2
2への転送処理は不要である。また、工程41では外部
ツ−ル20に対するシミュレ−ションのための信号交信
は不用である。
Actually, the contents of the composite input image memory 22 are ignored, and the contents of the input image memory 12, that is,
If the sequence program processing is performed using the ON / OFF signal of the input interface 10, the synthetic image memory 2
The transfer process to 2 is unnecessary. Further, in step 41, the signal communication for the simulation with respect to the external tool 20 is unnecessary.

【0070】なお、特殊補助リレ−とは、内部デバイス
メモリ23内にある多数の一般用途の補助リレ−、M
0、M1、M2、・・・等に比べ、その動作が予めシス
テムメモリ9上で定義されている点が異なり、例えばP
LCのRUN/STOPに対応してON/OFFするM
8000、PLCエラ−発生時に動作するM8067な
ど、PLCメ−カによって異なる番号ではあるが、同様
の技術が広く用いられている。ここでは、本発明のため
に新たにM9000を追加している。
Note that the special auxiliary relays include many general-purpose auxiliary relays in the internal device memory 23, M.
0, M1, M2, ..., And the like are different in that the operation is defined in advance in the system memory 9, for example, P
M that turns ON / OFF in response to LC RUN / STOP
8000, M8067 which operates when a PLC error occurs, and the like, although the number is different depending on the PLC manufacturer, is widely used. Here, M9000 is newly added for the present invention.

【0071】この特殊補助リレ−M9000が不作動の
時(即ちシミュレ−ションを行わない時は)には、入力
イメ−ジメモリ12と疑似出力イメ−ジメモリ18の合
成処理を行わないで、入力イメ−ジメモリ12の内容を
そのまま合成入力イメ−ジメモリ22の内容として扱う
ことにより、CPU8の合成処理のための負担が軽減さ
れる。
When the special auxiliary relay M9000 is inactive (that is, when the simulation is not performed), the input image memory 12 and the pseudo output image memory 18 are not combined and the input image memory 18 is not processed. -By treating the contents of the image memory 12 as they are as the contents of the combined input image memory 22, the load of the CPU 8 for the combining process is reduced.

【0072】工程40で特殊補助リレ−M9000が作
動(ON)していることが判定されたならば、工程45
の1インクリメントされた入力番号を工程42で設定す
る。動作開始時において、入力番号は例えば、図6に示
す端子台に合わせて入力番号X0とされている。
If it is determined in step 40 that the special auxiliary relay M9000 is operating (ON), step 45
In step 42, the input number incremented by 1 is set. At the start of the operation, the input number is set to the input number X0 in accordance with the terminal block shown in FIG. 6, for example.

【0073】工程42で設定された入力番号X0が、パ
ラメ−タメモリ24内で設定された若番グル−プに属す
るかどうかを工程43で判定する。そして、設定された
入力番号が若番グル−プであると判断された時、工程4
4ではこの時点でアクセスされた入力イメ−ジメモリ1
2と疑似出力イメ−ジメモリ18の内容(ON或いはO
FF状態)の論理和を合成入力イメ−ジメモリ22に転
送する。
In step 43, it is determined whether the input number X0 set in step 42 belongs to the young group set in the parameter memory 24. When it is determined that the set input number is the young group, step 4
In 4, the input image memory 1 accessed at this time
2 and the contents of the pseudo output image memory 18 (ON or O
The logical sum of the FF state) is transferred to the synthetic input image memory 22.

【0074】本実施の形態の目的に限定すれば、単に入
力イメ−ジメモリ12の内容を合成入力イメ−ジメモリ
22に転送するだけでもよい。合成イメージメモリ22
に転送された後に、工程45に進み、設定入力番号に1
を加え入力番号をX1にして工程42で入力番号を設定
する。当然、設定入力番号は若番であるため、この時点
でアクセスされた入力イメ−ジメモリ12と疑似出力イ
メ−ジメモリ18の内容(ON或いはOFF状態)の論
理和を合成入力イメ−ジメモリ22に転送する。以上の
処理を工程43で入力設定番号が若番でないと判定され
るまで繰り返す。
For the purpose of this embodiment, the contents of the input image memory 12 may be simply transferred to the composite input image memory 22. Composite image memory 22
After being transferred to the
Is added to set the input number to X1 and the input number is set in step 42. Of course, since the setting input number is a small number, the logical sum of the contents (ON or OFF state) of the input image memory 12 and the pseudo output image memory 18 accessed at this time is transferred to the composite input image memory 22. To do. The above process is repeated until it is determined in step 43 that the input setting number is not the lowest number.

【0075】工程42〜45を繰り返し、工程43で入
力設定番号が老番グループに属することが判定されたな
らば、工程46へ進み入力設定番号が予め設定したPL
C7の最大入力番、例えばX20を超過したか否かを判
定する。そして、未超過判定時には、工程47でその時
点でアクセスされた疑似出力イメ−ジメモリ18の内容
を合成入力イメ−ジメモリ22へ転送する。実際には、
この転送処理を行わなくても、老番グル−プに属する設
定番号の入力に対しては、CPU8は合成入力イメ−ジ
メモリ22の内容を無視して、疑似出力イメ−ジメモリ
18の内容を読出すようにしてもよい。
If steps 42 to 45 are repeated and it is determined in step 43 that the input setting number belongs to the old number group, the process proceeds to step 46 and the input setting number is set to the preset PL.
It is determined whether or not the maximum input number of C7, for example, X20 is exceeded. Then, when it is determined that the excess is not reached, the contents of the pseudo output image memory 18 accessed at that time are transferred to the composite input image memory 22 in step 47. actually,
Even if this transfer process is not performed, the CPU 8 ignores the contents of the composite input image memory 22 and reads the contents of the pseudo output image memory 18 when the setting number belonging to the old number group is input. You may make it available.

【0076】以上のとおり、シミュレ−ション動作を行
わない時の処理工程41、若番グル−プの入力(即ち手
動操作系入力)に対する処理工程44、老番グル−プの
入力(即ちセンサ系入力)に対する処理工程47等の処
理は、システムメモリ9(図1)内のシステムプログラ
ムで定められた手順で実行される。
As described above, the processing step 41 when the simulation operation is not performed, the processing step 44 for the input of the young group (that is, the manual operation system input), and the input of the old group (that is, the sensor system) The processing such as the processing step 47 for the input) is executed according to the procedure defined by the system program in the system memory 9 (FIG. 1).

【0077】なお、PLC7の全ての入力を若番グル−
プとして扱うように、パラメ−タメモリ24の入力番号
を設定した場合に、全ての入力が論理和合成処理の対象
となるので、このばあいは、第1実施の形態に相当する
こととなる。
In addition, all the inputs of PLC7 are
When the input number of the parameter memory 24 is set so as to be treated as a group, all the inputs are subjected to the logical sum synthesis processing, and in this case, this corresponds to the first embodiment.

【0078】また、入力のグル−プ分けについては、単
に若番/老番の2グル−プではなく、同じ2グル−プで
あっても入力番号の老若の混在ができるようなパラメ−
タ設定も可能である。
Regarding the grouping of input numbers, it is not just the two groups of the younger number / older number, but the parameter can be mixed even if the same two groups are used.
It is also possible to set the data.

【0079】以上のとおり、センサ入力系の老番グル−
プ入力に対しては、入力イメ−ジメモリ12の内容を無
視して、疑似出力イメ−ジメモリ18の出力信号によっ
て、PLC7の入力に代替えさせているので、ON状態
のセンサ入力がPLCに接続されていても、シミュレ−
ションを実行することができる。
As described above, the old input group of the sensor input system
For the input, the input of the PLC 7 is replaced by the output signal of the pseudo output image memory 18 ignoring the contents of the input image memory 12, so that the sensor input in the ON state is connected to the PLC. Even if the
Can be executed.

【0080】ただし、シミュレ−ション制御を完了し、
PLCの実用運転を行うとき(即ち前述の特殊補助リレ
−M9000が不作動のとき)には、処理工程41によ
り、入力イメ−ジメモリ12の内容即ち入力インタフェ
−ス10から入力されるON/OFF信号そのものが有
効となるように、合成処理が解除されている。
However, when the simulation control is completed,
When the PLC is practically operated (that is, when the special auxiliary relay M9000 is not operated), the contents of the input image memory 12, that is, ON / OFF input from the input interface 10 are processed by the processing step 41. The synthesis process has been canceled so that the signal itself is valid.

【0081】なお、合成入力イメ−ジメモリ22は論理
的なものであって、必ずしもハ−ドウェアとしての特別
なメモリを必要とするものではない。例えば、合成処理
をCPU8がその都度行ったり、選択処理を行っても同
じ目的を達成することができる。
The composite input image memory 22 is logical and does not necessarily require a special memory as hardware. For example, the same purpose can be achieved even if the CPU 8 performs the combining process each time or the selecting process is performed.

【0082】実施の形態3.上記実施の形態1、2で
は、PLC7が出力する制御出力信号を外部ツール20
に取り込み、そこで機械動作を疑似したシーケンスプロ
グラムによって制御出力信号を処理して機械動作の疑似
出力を生成し、PLC7に入力させた。しかしながら、
機械動作を疑似させるシーケンスプログラムは入力信号
に対して出力信号を所定時間遅延させてON或いはOF
Fさせるタイマ回路で表されるのが一般である。
Third Embodiment In the above-described first and second embodiments, the control output signal output from the PLC 7 is transmitted to the external tool 20.
, The control output signal was processed there by a sequence program simulating the mechanical operation, and a pseudo output of the mechanical operation was generated and input to the PLC 7. However,
The sequence program for simulating the mechanical operation is ON or OF after delaying the output signal with respect to the input signal for a predetermined time.
It is generally represented by a timer circuit for F.

【0083】従って、各PLC7からの制御出力信号に
対してどの様なモード(遅延時間、信号の論理反転)で
疑似出力が生成され出力されるかメモリにテーブルを作
成しておくことで、外部ツール20のプログラムメモリ
27にシーケンスプログラムをロードしておく必要がな
い。
Therefore, by creating a table in the memory in which mode (delay time, logical inversion of the signal) the pseudo output is generated and output for the control output signal from each PLC 7, It is not necessary to load the sequence program in the program memory 27 of the tool 20.

【0084】図5は実施の形態1〜3に対応し、外部ツ
−ル20のシステムメモリ28(図2を参照)に格納さ
れるべき機械動作の疑似出力、及びPLC7に対する手
動操作系入力に対応した指令出力をプログラムする方法
を説明するための一覧図表である。
FIG. 5 corresponds to the first to third embodiments and corresponds to the pseudo output of the machine operation to be stored in the system memory 28 (see FIG. 2) of the external tool 20 and the manual operation input to the PLC 7. 7 is a list chart for explaining a method of programming a corresponding command output.

【0085】図5の上段または下段の表は外部ツ−ル2
0のキ−操作部25のキ−操作により選択され、画面表
示部26に表示されるものである。但し、初期画面は最
上行の項目名だけが記事として表示されており、オペレ
−タによってPLC7の出力番号、設定時間、後述のモ
−ド番号、疑似出力番号が逐次キ−インされ、その内容
がシステムメモリ28にテーブルとして格納される。
なお、疑似出力番号M10**の**に対応する数値は
PLC7の入力**に対応している。従って、PLC7
よりY〇〇の制御出力信号が外部ツ−ル20に入力され
ると、システムメモリ28のテーブルより対応する設定
時間後に疑似出力番号の疑似出力信号をONにし、PL
C7の入力信号として出力される。
The table at the top or bottom of FIG.
No. 0 is selected by the key operation of the key operation unit 25 and displayed on the screen display unit 26. However, only the item name on the top line is displayed as an article on the initial screen, and the output number of PLC 7, the set time, the mode number described later, and the pseudo output number are sequentially keyed in by the operator, and the contents Are stored in the system memory 28 as a table.
The numerical value corresponding to ** of the pseudo output number M10 ** corresponds to the input ** of the PLC 7. Therefore, PLC7
When the control output signal of YXX is input to the external tool 20, the pseudo output signal of the pseudo output number is turned ON after the corresponding set time from the table of the system memory 28, and PL
It is output as the input signal of C7.

【0086】例えば、図7の例では出力Y0に対して設
定時間は10秒、疑似出力番号はM1010(即ち、入
力X10に対して論理結合される)である。このように
疑似出力番号Mを1000番台としているのは、一般の
補助リレ−M00、M01・・との混同を避けるためで
あり、PLC7のシステムで定義された適当な番号領域
が用いられている。
For example, in the example of FIG. 7, the set time is 10 seconds for the output Y0 and the pseudo output number is M1010 (that is, logically connected to the input X10). The reason why the pseudo output number M is in the 1000's range is to avoid confusion with the general auxiliary relays M00, M01 ..., And an appropriate number area defined by the PLC7 system is used. .

【0087】一方出力モ−ド番号については下欄のタイ
ムチャ−トで示したとおり、例えばモ−ド1ではPLC
7の出力Y○○がONすると設定時間で定められた時間
だけ遅れてM10**がONする。モ−ド2ではM10
**の動作がモ−ド1に比べて反転している。モ−ド
3、4はモ−ド1、2に対して出力Y○○のON/OF
F論理が反転している。
On the other hand, regarding the output mode number, as shown in the time chart in the lower column, for example, in mode 1, the PLC
When the output Y ○○ of 7 turns on, M10 ** turns on with a delay of the time set by the set time. M10 in mode 2
The operation of ** is reversed compared to mode 1. Modes 3 and 4 are output ON / OF of modes Y and Y for modes 1 and 2.
The F logic is inverted.

【0088】図5の下段の表は実施の形態3に固有のも
のであり、オペレ−タは目的とするPLC7の手動操作
系入力番号X**とその出力モ−ドを表中にキ−インし
て、システムメモリ18中に、各番号の手動入力信号の
ONに対応する疑似出力の出力モードを入力していく。
この場合の疑似出力番号はM10**で自動的に決定さ
れるので、キ−インする必要は無く、単なる参考表示と
なっている。
The table in the lower part of FIG. 5 is unique to the third embodiment, in which the operator inputs the desired manual operation system input number X ** of the PLC 7 and its output mode in the table. Then, the output mode of the pseudo output corresponding to ON of the manual input signal of each number is input into the system memory 18.
Since the pseudo output number in this case is automatically determined by M10 **, there is no need to key in, and it is merely a reference display.

【0089】出力モ−ド番号については下欄のタイムチ
ャ−トで示した通りであり、たとえばモ−ド11では入
力X**がONすると疑似出力M10**もONする。
モ−ド12ではM10**の論理が反転している。モ−
ド13、14では入力X**の動作に対しM10**は
PLC7の信号伝送とシ−ケンスプログラムの実行時間
を越える範囲の極短い所定の時間だけ動作し、オシボタ
ンスイッチに対応した入力の扱いに適している。なお、
プログラムメモリ27にたいするプログラムの方法とし
ては、各モ−ドで示したようなタイムチャ−トを選択表
示し、その画面内に出力番号、設定時間、疑似出力番号
などをキ−インするようにしても良い。
The output mode numbers are as shown in the time chart in the lower column. For example, in mode 11, when the input X ** is turned on, the pseudo output M10 ** is also turned on.
In mode 12, the logic of M10 ** is inverted. Mode
In modes 13 and 14, M10 ** operates for a very short predetermined time beyond the signal transmission of PLC7 and the execution time of the sequence program in response to the operation of the input X **, and the input corresponding to the push button switch. Suitable for handling. In addition,
As a method of programming the program memory 27, a time chart as shown in each mode is selected and displayed, and an output number, a set time, a pseudo output number, etc. are keyed in the screen. good.

【0090】[0090]

【発明の効果】請求項1の発明によれば、プログラムメ
モリに格納された制御プログラムに基づいて制御演算を
行い、制御出力信号のON/OFF制御を行うマイクロ
プロセッサと、前記制御出力信号のON/OFF状態を
格納する出力メモリとを含んだプログラマブルコントロ
ーラと、被制御系の動作を疑似した疑似プログラムを格
納した疑似プログラムメモリと、前記疑似プログラムに
前記プログラマブルコントローラの出力メモリの内容を
取り込んで被制御系の疑似動作を行うマイクロプロセッ
サと、疑似動作結果による疑似制御出力信号を格納する
疑似出力メモリとを含んだ外部ツールとを備え、前記プ
ログラマブルコントローラは、前記外部ツールの疑似出
力メモリに格納された疑似制御出力信号を疑似制御出力
信号メモリに記憶し、この記憶された疑似制御出力信号
と外部より入力される制御入力信号とを前記マイクロプ
ロセッサにて論理合成して被演算用の制御信号とするよ
うにしたので、PLCのプログラム開発段階において、
制御対象となる機械の動作を含めた運転シュミレ−ショ
ンを行うときにシミュレ−ションスイッチを併用した机
上シミュレ−ションや、機械に組込み配線された状態で
の静止運転シュミレ−ションを1台のPLCと外部ツ−
ルで実行することができ、シ−ケンスプログラムのデバ
ッグの効率を高めると共に、誤ったシ−ケンスプログラ
ムで機械を動かすというを未然に防止することに役立つ
という効果がある。
According to the first aspect of the present invention, a microprocessor for performing a control operation based on a control program stored in a program memory to control ON / OFF of a control output signal, and an ON of the control output signal. Programmable controller including an output memory for storing the ON / OFF state, a pseudo program memory for storing a pseudo program that simulates the operation of the controlled system, and a program for loading the output memory of the programmable controller into the pseudo program. An external tool including a microprocessor that performs a pseudo operation of a control system and a pseudo output memory that stores a pseudo control output signal according to a result of the pseudo operation, wherein the programmable controller is stored in the pseudo output memory of the external tool. Pseudo control output signal stored in pseudo control output signal memory Since the control input signal input from the stored pseudo control output signal and the external was set as the control signal for the arithmetic and logic synthesis by the microprocessor, the program development stage of PLC,
One PLC for desktop simulation that also uses a simulation switch when performing operation simulation including the operation of the machine to be controlled, and static operation simulation in the state where it is embedded in the machine and wired. And external tools
This has the effect of increasing the efficiency of debugging the sequence program and helping prevent the machine from being operated by an incorrect sequence program.

【0091】請求項2の発明によれば、請求項1におい
て前記プログラマブルコントローラが、前記マイクロプ
ロセッサにて前記疑似制御出力信号と前記制御入力信号
とを論理和合成するようにしたので、プログラマブルコ
ントローラの入力信号と上記疑似出力信号をプログラマ
ブルコントローラ内のシステムプログラム上で自動的に
論理結合することで、ユ−ザは疑似出力信号を意識した
シ−ケンスプログラムを作らなくても良いためプログラ
ム作成効率が向上するという効果がある。
According to a second aspect of the present invention, in the first aspect, the programmable controller is configured such that the microprocessor logically sums the pseudo control output signal and the control input signal. By automatically logically combining the input signal and the pseudo output signal on the system program in the programmable controller, the user does not have to create a sequence program that is aware of the pseudo output signal, which improves program creation efficiency. It has the effect of improving.

【0092】請求項3の発明によれば、請求項1におい
て前記プログラマブルコントローラが、前記マイクロプ
ロセッサにて前記疑似制御出力信号と前記制御入力信号
とをそれぞれ選択するようにしたので、機械に組込み配
線された状態での静止運転シュミレ−ションを1台のプ
ログラマブルコントローラと外部ツ−ルで実行すること
ができるという効果がある。
According to the invention of claim 3, in the programmable controller according to claim 1, the microprocessor selects the pseudo control output signal and the control input signal, respectively. There is an effect that the static operation simulation in the controlled state can be executed by one programmable controller and an external tool.

【0093】請求項4の発明によれば、請求項1におい
て前記プログラマブルコントローラが、前記マイクロプ
ロセッサにて複数の前記制御入力信号の内一部の制御入
力信号に対して前記疑似制御出力信号を優先して選択す
るようにしたので、機械に組込み配線された状態での静
止運転シュミレ−ションを1台のプログラマブルコント
ローラと外部ツ−ルで実行することができるという効果
がある。
According to the invention of claim 4, in claim 1, the programmable controller gives priority to the pseudo control output signal with respect to a part of the control input signals of the plurality of control input signals in the microprocessor. Therefore, the static operation simulation in the state of being built in the machine and wired can be executed by one programmable controller and an external tool.

【0094】請求項5の発明によれば、請求項1におい
て前記外部ツールが、前記プログラマブルコントローラ
に入力される複数の前記制御入力信号の内、手動操作に
よる制御入力信号に対応する疑似制御出力信号を予め疑
似データメモリに格納し、前記プログラマブルコントロ
ーラより手動操作による制御入力信号が入力された時、
この制御入力信号に対応する疑似制御出力信号を前記疑
似データメモリより読み出して前記プログラマブルコン
トローラに入力するようにしたので、外部ツールに制御
系の動作を疑似したシーケンスプログラムをロードしな
くても実機に則したシーケンスプログラムの運転シュミ
レ−ションを行えるという効果がある。
According to a fifth aspect of the present invention, in the first aspect, the external tool outputs a pseudo control output signal corresponding to a control input signal manually operated from among the plurality of control input signals input to the programmable controller. Is stored in the pseudo data memory in advance, and when a control input signal by manual operation is input from the programmable controller,
Since the pseudo control output signal corresponding to this control input signal is read from the pseudo data memory and input to the programmable controller, it is possible to use an actual machine without loading a sequence program simulating the operation of the control system into an external tool. There is an effect that the operation simulation of the sequence program according to the standard can be performed.

【0095】請求項6の発明によれば、請求項1におい
て前記外部ツールが、前記プログラマブルコントローラ
から入力される制御出力信号に対応する疑似制御出力信
号を予め疑似データメモリに格納し、前記プログラマブ
ルコントローラより制御出力信号が入力された時、この
制御出力信号に対応する疑似制御出力信号を前記疑似デ
ータメモリより読み出して前記プログラマブルコントロ
ーラに入力するようにしたので、外部ツールに制御系の
動作を疑似したシーケンスプログラムをロードしなくて
も実機に則したシーケンスプログラムの運転シュミレ−
ションを行えるという効果がある。
According to a sixth aspect of the present invention, in the first aspect, the external tool stores a pseudo control output signal corresponding to a control output signal input from the programmable controller in a pseudo data memory in advance, and the programmable controller When a control output signal is input, the pseudo control output signal corresponding to this control output signal is read from the pseudo data memory and input to the programmable controller, so that the operation of the control system is simulated by an external tool. Operation of the sequence program according to the actual machine without loading the sequence program
Is effective.

【0096】請求項7の発明によれば、請求項5におい
て前記外部ツ−ルが、疑似制御出力信号を手動操作によ
る制御入力信号のON/OFFに応動した時限出力の形
態で疑似データメモリに格納し、その時限出力をプログ
ラマブルコントロ−ラの疑似出力メモリに転送するよう
にしたので、外部ツールに制御系の動作を疑似したシー
ケンスプログラムをロードしなくても実機に則したシー
ケンスプログラムの多様な運転シュミレ−ションを行え
るという効果がある。
According to a seventh aspect of the present invention, in the fifth aspect, the external tool stores the pseudo control output signal in the pseudo data memory in the form of a timed output in response to ON / OFF of the control input signal by a manual operation. Since it is stored and the timed output is transferred to the pseudo output memory of the programmable controller, various sequence programs conforming to the actual machine can be used without loading a sequence program simulating the operation of the control system into an external tool. There is an effect that driving simulation can be performed.

【0097】請求項8の発明によれば、請求項6におい
て前記外部ツ−ルが、疑似制御出力信号を制御出力信号
のON/OFFに応動した時限出力の形態で疑似データ
メモリに格納し、その時限出力をプログラマブルコント
ロ−ラの疑似出力メモリに転送するようにしたので、外
部ツールに制御系の動作を疑似したシーケンスプログラ
ムをロードしなくても実機に則したシーケンスプログラ
ムの多様な運転シュミレ−ションを行えるという効果が
ある。
According to the eighth aspect of the present invention, in the sixth aspect, the external tool stores the pseudo control output signal in the pseudo data memory in the form of a timed output in response to ON / OFF of the control output signal, Since the timed output is transferred to the pseudo output memory of the programmable controller, it is possible to perform various operation simulations of the sequence program according to the actual machine without loading the sequence program simulating the operation of the control system into the external tool. Is effective.

【0098】請求項9の発明によれば、請求項1ないし
8において前記外部ツールの操作により前記プログラマ
ブルコントローラのパラメータメモリに制御プログラム
のシミュレーション実行或いは非実行を示すON或いは
OFF信号を記憶し、マイクロプロセッサが演算過程で
このパラメータメモリよりOFF信号読み出し時には、
制御入力信号を入力し外部負荷に対する制御演算を行う
ようにしたので、制御プログラムのシミュレーション動
作とシミュレーション結果に基づく実機の制御動作との
切り換えを用に容易に行うことができる効果がある。
According to a ninth aspect of the present invention, in the first to eighth aspects, by operating the external tool, an ON or OFF signal indicating that the simulation of the control program is executed or not is stored in the parameter memory of the programmable controller. When the processor reads the OFF signal from this parameter memory during the calculation process,
Since the control input signal is input and the control calculation for the external load is performed, there is an effect that the simulation operation of the control program and the control operation of the actual machine based on the simulation result can be easily switched.

【0099】請求項10の発明によれば、請求項1ない
し9において前記外部ツ−ルが、プログラマブルコント
ロ−ラに対するプログラム作成装置またはプログラマブ
ルコントロ−ラの内部デバイスに対するデ−タ設定・表
示ユニットであるので、外部ツ−ルをプログラマブルコ
ントロ−ラのプログラムツ−ルやデ−タ設定表示ユニッ
トとして共用することができるため外部ツ−ルの多機能
化できるという効果がある。
According to a tenth aspect of the present invention, in the first to ninth aspects, the external tool is a program creating device for the programmable controller or a data setting / display unit for the internal device of the programmable controller. Therefore, since the external tool can be shared as a program tool of the programmable controller and a data setting display unit, there is an effect that the external tool can be made multi-functional.

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

【図1】 この発明の実施の形態1、2におけるプログ
ラマブルコントロ−ラ(PLC)の構成を示すブロック
図である。
FIG. 1 is a block diagram showing a configuration of a programmable controller (PLC) according to first and second embodiments of the present invention.

【図2】 外部ツ−ルの構成を示すブロック図である。FIG. 2 is a block diagram showing a configuration of an external tool.

【図3】 実施の形態1おけるプログラムシミュレーシ
ョン装置の動作を説明するためのブロック図である。
FIG. 3 is a block diagram for explaining the operation of the program simulation device in the first embodiment.

【図4】 こ発明の実施の形態2におけるパラメ−タメ
モリの役割を説明するフロ−チャ−トである。
FIG. 4 is a flowchart for explaining the role of the parameter memory according to the second embodiment of the present invention.

【図5】 実施の形態1〜3におけるシミュレ−ション
プログラムの生成方法を説明する一覧表をしめす図であ
る。
FIG. 5 is a diagram showing a list explaining a method of generating a simulation program in the first to third embodiments.

【図6】 従来のPLCによりシミュレ−ションを行う
ときの全体構成図
FIG. 6 is an overall configuration diagram when performing simulation by a conventional PLC.

【図7】 図6における第1、第2のPLCのシ−ケン
スプログラムの内容の一例を説明するリレ−ラダ−図で
ある。
FIG. 7 is a relay ladder diagram for explaining an example of the contents of the sequence program of the first and second PLCs in FIG.

【符号の説明】 7 プログラマブルコントロ−ラ、8,21 マイクロ
プロセッサ、11 多数の入力スイッチ、12 入力イ
メ−ジメモリ、13 出力イメ−ジメモリ、16 多数
の出力負荷、17 プログラムメモリ、18 疑似出力
イメ−ジメモリ、18a 機械動作に対応した疑似出力
を格納した出力イメ−ジメモリ(外部ツ−ル内)、19
ツ−ルインタフェ−ス、20 外部ツ−ル、22 合
成入力イメ−ジメモリ(合成ON/OFF信号格納
用)、24 パラメ−タメモリ。
[Explanation of reference numerals] 7 programmable controller, 8, 21 microprocessor, 11 many input switches, 12 input image memory, 13 output image memory, 16 many output loads, 17 program memory, 18 pseudo output image Image memory, 18a, an output image memory (in an external tool) storing pseudo outputs corresponding to machine operations, 19
Tool interface, 20 external tools, 22 synthetic input image memory (for storing synthetic ON / OFF signal), 24 parameter memory.

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 プログラムメモリに格納された制御プロ
グラムに基づいて制御演算を行い、制御出力信号のON
/OFF制御を行うマイクロプロセッサと、前記制御出
力信号のON/OFF状態を格納する出力メモリとを含
んだプログラマブルコントローラと、 被制御系の動作を疑似した疑似プログラムを格納した疑
似プログラムメモリと、前記疑似プログラムに前記プロ
グラマブルコントローラの出力メモリの内容を取り込ん
で被制御系の疑似動作を行うマイクロプロセッサと、疑
似動作結果による疑似制御出力信号を格納する疑似出力
メモリとを含んだ外部ツールとを備え、 前記プログラマブルコントローラは、前記外部ツールの
疑似出力メモリに格納された疑似制御出力信号を疑似制
御出力信号メモリに記憶し、この記憶された疑似制御出
力信号と外部より入力される制御入力信号とを前記マイ
クロプロセッサにて論理合成して被演算用の制御信号と
することを特徴とするプログラムシミュレーション装
置。
1. A control calculation is performed based on a control program stored in a program memory, and a control output signal is turned on.
A programmable controller including a microprocessor for controlling ON / OFF, an output memory for storing the ON / OFF state of the control output signal, a pseudo program memory for storing a pseudo program simulating the operation of a controlled system, and An external tool including a microprocessor that incorporates the contents of the output memory of the programmable controller into a pseudo program to perform a pseudo operation of a controlled system, and a pseudo output memory that stores a pseudo control output signal according to the pseudo operation result, The programmable controller stores the pseudo control output signal stored in the pseudo output memory of the external tool in the pseudo control output signal memory, and stores the stored pseudo control output signal and the control input signal input from the outside. Logic synthesis by microprocessor and control for operation Program simulation apparatus characterized by a degree.
【請求項2】 前記プログラマブルコントローラは、前
記マイクロプロセッサにて前記疑似制御出力信号と前記
制御入力信号とを論理和合成することを特徴とする請求
項1に記載のプログラムシミュレーション装置。
2. The program simulation apparatus according to claim 1, wherein the programmable controller logically sums the pseudo control output signal and the control input signal in the microprocessor.
【請求項3】 前記プログラマブルコントローラは、前
記マイクロプロセッサにて前記疑似制御出力信号と前記
制御入力信号とをそれぞれ選択することを特徴とする請
求項1に記載のプログラムシミュレーション装置。
3. The program simulation apparatus according to claim 1, wherein the programmable controller selects the pseudo control output signal and the control input signal by the microprocessor.
【請求項4】 前記プログラマブルコントローラは、前
記マイクロプロセッサにて複数の前記制御入力信号の内
一部の制御入力信号に対して前記疑似制御出力信号を優
先して選択することを特徴とする請求項1に記載のプロ
グラムシミュレーション装置。
4. The programmable controller preferentially selects the pseudo control output signal with respect to some of the control input signals of the plurality of control input signals in the microprocessor. 1. The program simulation device according to 1.
【請求項5】 前記外部ツールは、前記プログラマブル
コントローラに入力される複数の前記制御入力信号の
内、手動操作による制御入力信号に対応する疑似制御出
力信号を予め疑似データメモリに格納し、前記プログラ
マブルコントローラより手動操作による制御入力信号が
入力された時、この制御入力信号に対応する疑似制御出
力信号を前記疑似データメモリより読み出して前記プロ
グラマブルコントローラに入力することを特徴とする請
求項1に記載のプログラムシミュレーション装置。
5. The external tool stores, in a pseudo data memory, a pseudo control output signal corresponding to a control input signal by a manual operation among a plurality of the control input signals input to the programmable controller in advance, and the programmable data is programmable. 2. When a control input signal by a manual operation is input from the controller, a pseudo control output signal corresponding to the control input signal is read from the pseudo data memory and input to the programmable controller. Program simulation device.
【請求項6】 前記外部ツールは、前記プログラマブル
コントローラから入力される制御出力信号に対応する疑
似制御出力信号を予め疑似データメモリに格納し、前記
プログラマブルコントローラより制御出力信号が入力さ
れた時、この制御出力信号に対応する疑似制御出力信号
を前記疑似データメモリより読み出して前記プログラマ
ブルコントローラに入力することを特徴とする請求項1
に記載のプログラムシミュレーション装置。
6. The external tool stores a pseudo control output signal corresponding to a control output signal input from the programmable controller in a pseudo data memory in advance, and when the control output signal is input from the programmable controller, The pseudo control output signal corresponding to the control output signal is read from the pseudo data memory and input to the programmable controller.
The program simulation device according to 1.
【請求項7】 前記外部ツ−ルは、疑似制御出力信号を
手動操作による制御入力信号のON/OFFに応動した
時限出力の形態で疑似データメモリに格納し、その時限
出力をプログラマブルコントロ−ラの疑似出力メモリに
転送することを特徴とする請求項5に記載のプログラム
シミュレーション装置。
7. The external tool stores a pseudo control output signal in a pseudo data memory in the form of a timed output in response to ON / OFF of a control input signal by a manual operation, and the timed output is stored in a programmable controller. 6. The program simulation device according to claim 5, wherein the program simulation device transfers the program output to the pseudo output memory.
【請求項8】 前記外部ツ−ルは、疑似制御出力信号を
制御出力信号のON/OFFに応動した時限出力の形態
で疑似データメモリに格納し、その時限出力をプログラ
マブルコントロ−ラの疑似出力メモリに転送することを
特徴とする請求項6に記載のプログラムシミュレーショ
ン装置。
8. The external tool stores a pseudo control output signal in a pseudo data memory in the form of a timed output in response to ON / OFF of the control output signal, and outputs the timed output to a pseudo output of a programmable controller. The program simulation apparatus according to claim 6, wherein the program simulation is performed in a memory.
【請求項9】 前記外部ツールの操作により前記プログ
ラマブルコントローラのパラメータメモリに制御プログ
ラムのシミュレーション実行或いは非実行を示すON或
いはOFF信号を記憶し、マイクロプロセッサが演算過
程で前記パラメータメモリよりOFF信号読み出し時に
は、疑似制御出力信号を排除して制御入力信号を入力し
外部負荷に対する制御演算を行うことを特徴とする請求
項1ないし8のいずれかに記載のプログラムシミュレー
ション装置。
9. An external tool is operated to store an ON or OFF signal, which indicates whether a control program simulation is executed or not, in a parameter memory of the programmable controller, and when the microprocessor reads an OFF signal from the parameter memory in a calculation process. 9. The program simulation apparatus according to claim 1, wherein a pseudo control output signal is excluded and a control input signal is input to perform control calculation for an external load.
【請求項10】 前記外部ツ−ルは、プログラマブルコ
ントロ−ラに対するプログラム作成装置またはプログラ
マブルコントロ−ラの内部デバイスに対するデ−タ設定
・表示ユニットであることを特徴とする請求項1ないし
9のいずれかに記載のプログラムシミュレーション装
置。
10. The external tool is a program creation device for a programmable controller or a data setting / display unit for an internal device of the programmable controller. A program simulation device according to claim 1.
JP14945096A 1996-06-11 1996-06-11 Program simulator Pending JPH09330250A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14945096A JPH09330250A (en) 1996-06-11 1996-06-11 Program simulator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14945096A JPH09330250A (en) 1996-06-11 1996-06-11 Program simulator

Publications (1)

Publication Number Publication Date
JPH09330250A true JPH09330250A (en) 1997-12-22

Family

ID=15475392

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14945096A Pending JPH09330250A (en) 1996-06-11 1996-06-11 Program simulator

Country Status (1)

Country Link
JP (1) JPH09330250A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11252775A (en) * 1998-03-06 1999-09-17 Mitsubishi Electric Corp Digital protective relay apparatus
JP2009042913A (en) * 2007-08-07 2009-02-26 Omron Corp Tool device in multi-plc-distributed control system
JP2014137621A (en) * 2013-01-15 2014-07-28 Omron Corp Method, apparatus and program for supporting designing of user program of safety controller
CN113341907A (en) * 2021-04-20 2021-09-03 深圳市创智成科技股份有限公司 System and debugging method for universal Debug card

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11252775A (en) * 1998-03-06 1999-09-17 Mitsubishi Electric Corp Digital protective relay apparatus
JP2009042913A (en) * 2007-08-07 2009-02-26 Omron Corp Tool device in multi-plc-distributed control system
JP2014137621A (en) * 2013-01-15 2014-07-28 Omron Corp Method, apparatus and program for supporting designing of user program of safety controller
CN113341907A (en) * 2021-04-20 2021-09-03 深圳市创智成科技股份有限公司 System and debugging method for universal Debug card
CN113341907B (en) * 2021-04-20 2024-04-12 深圳市创智成科技股份有限公司 System and debugging method of general Debug card

Similar Documents

Publication Publication Date Title
CN103176427B (en) The numerical control program that robot executes
US20120101613A1 (en) Method and Apparatus for Integrated Simulation
US20050102054A1 (en) Method and system for simulating processing of a workpiece with a machine tool
JPS6318403A (en) Off-line control executing method
WO2013099032A1 (en) Motion controller and motor control system
CN107861458B (en) PLC rapid construction method capable of automatically configuring hardware resources
CN101833302B (en) Numerical controller having axis reconfiguration function
US20040030418A1 (en) Simulation system for machine simulation and data output of control data for an automation system
CN110936354A (en) Program creation assistance device for robot
JPH09330250A (en) Program simulator
JPH10283020A (en) Programmable display device
JP5618016B2 (en) Motion controller and motor control system
CN114375427A (en) System and method for controlling at least one machine, in particular a group of machines
JP2009223779A (en) Control system
EP0718728A1 (en) Device for controlling at least one actuator, operatively connectable to a flexible programming station
JPS5942884B2 (en) Sequence control program debugging device
JPH09230913A (en) Programming tool for programmable controller
Martens Simulation and virtual commissioning of a toy car production line in a digital factory
JPH10283004A (en) Programmable display device
JPH11134010A (en) Program executing method of programmable controller
CN101598929A (en) Installable program controlled timer
JPH09128013A (en) Programmable controller
JP3512685B2 (en) SCREEN DATA CREATION METHOD, SCREEN DATA CREATION DEVICE, AND RECORDING MEDIUM CONTAINING THE PROGRAM
JP3531593B2 (en) Virtual prototype of programmable controller
JP2537418B2 (en) Control program generator