JP2000250610A - Sequence control device and method and recording medium recording sequence control program - Google Patents

Sequence control device and method and recording medium recording sequence control program

Info

Publication number
JP2000250610A
JP2000250610A JP11054694A JP5469499A JP2000250610A JP 2000250610 A JP2000250610 A JP 2000250610A JP 11054694 A JP11054694 A JP 11054694A JP 5469499 A JP5469499 A JP 5469499A JP 2000250610 A JP2000250610 A JP 2000250610A
Authority
JP
Japan
Prior art keywords
program
sequence
execution
unit
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
JP11054694A
Other languages
Japanese (ja)
Inventor
Toru Takeuma
徹 竹馬
Hiroto Miyazaki
浩人 宮崎
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP11054694A priority Critical patent/JP2000250610A/en
Publication of JP2000250610A publication Critical patent/JP2000250610A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PROBLEM TO BE SOLVED: To change a sequence program under execution into a received new sequence program without stopping the former sequence program, to output a control signal to every electric device included in the facilities on the basis of the sequence program under execution and to secure the optimum operation of every electric device by inputting the signals received from the electric devices. SOLUTION: This sequence control device is provided with a program reception part 1 to receive a sequence program from the outside and a work memory 2 which stores the sequence program received at the part 1 and a program transfer part 3 which decides the operating state of a program execution part 6 when the received sequence program is stored in the memory 2 and then transfers the sequence program to the bank of an execution program memory group 4 or 5 from the memory 2 while the part 6 is kept stationary.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、組立設備や搬送設
備を含んだ設備内の複数の電気機器を所定の順序にした
がって順次制御し動作するためのシーケンス制御装置、
シーケンス制御方法、及びシーケンス制御プログラムを
記録した記録媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a sequence control device for sequentially controlling and operating a plurality of electric devices in a facility including an assembly facility and a transport facility in a predetermined order.
The present invention relates to a sequence control method and a recording medium on which a sequence control program is recorded.

【0002】[0002]

【従来の技術】近年、組立設備や搬送設備を含んだ設備
では、入出力制御や数値制御を必要とする複数の電気機
器が配設され、さらにこれらの電気機器を設備の用途に
基づき順次動作するためのシーケンス制御装置が設けら
れている。つまり、このような設備では、シーケンス制
御装置が設備の制御仕様に対応したシーケンスプログラ
ム(ラダープログラム)を用いて種々のスイッチ、セン
サ、カメラ、リレー、バルブ、LED、ランプ、モータ
等の設備内の電気機器を制御している。このようなシー
ケンス制御装置では、外部から受信したシーケンスプロ
グラムをメモリ(以下、”実行用プログラムメモリ”と
いう)上に格納しておくようにしたストアードプログラ
ム方式が多く用いられている。また、シーケンス制御装
置では、上記シーケンスプログラムを高速に実行するた
めに、その実行手段として専用のICを用いることが一
般的であり、実行用プログラムメモリからシーケンスプ
ログラムの必要な部分を逐次読み出して実行する。さら
に、上述のストアードプログラム方式のシーケンス制御
装置では、設備の仕様変更あるいは機能の追加に対応し
て、実行用プログラムメモリ上に格納しているシーケン
スプログラムを随時変更できることが特徴の一つであ
り、従来のシーケンス制御装置では、次に挙げるような
方法によって新たなシーケンスプログラムに変更してい
た。
2. Description of the Related Art In recent years, in a facility including an assembling facility and a transport facility, a plurality of electric devices requiring input / output control and numerical control are arranged, and these electric devices are sequentially operated based on the use of the facility. A sequence control device for performing the operation is provided. That is, in such equipment, the sequence controller uses a sequence program (ladder program) corresponding to the control specification of the equipment, and various switches, sensors, cameras, relays, valves, LEDs, lamps, motors, and the like in the equipment. Controlling electrical equipment. In such a sequence control device, a stored program method in which a sequence program received from the outside is stored in a memory (hereinafter, referred to as “execution program memory”) is often used. In order to execute the above-mentioned sequence program at high speed, the sequence control device generally uses a dedicated IC as its execution means. The necessary parts of the sequence program are sequentially read out from the execution program memory and executed. I do. Further, in the above-described sequence control device of the stored program method, one of the features is that the sequence program stored in the execution program memory can be changed at any time in response to a change in equipment specifications or addition of a function. In a conventional sequence control device, a new sequence program is changed by the following method.

【0003】実行用プログラムメモリを1個しか備えて
いない従来のシーケンス制御装置では、その実行用プロ
グラムメモリ上に格納している既存のシーケンスプログ
ラムの実行を停止した後、外部から受信した新たなシー
ケンスプログラムを実行用プログラムメモリに格納して
いた。これにより、この従来のシーケンス制御装置で
は、実行用プログラムメモリ上で新たなシーケンスプロ
グラムへの変更をしていた。また、新たなシーケンスプ
ログラムへの変更が中断された場合に対処するために、
2個の実行用プログラムメモリを備えた従来のシーケン
ス制御装置が知られている。つまり、この従来のシーケ
ンス制御装置では、新たなシーケンスプログラムを全て
受信するまで一方の実行用プログラムメモリを受信用の
メモリとして確保し、それにより、その新たなシーケン
スプログラムの変更が中断された場合に対処して、新た
なシーケンスプログラムへの変更をしていた。
In a conventional sequence control device having only one execution program memory, the execution of an existing sequence program stored in the execution program memory is stopped and then a new sequence program received from the outside is received. The program was stored in the program memory for execution. As a result, in the conventional sequence control device, a new sequence program is changed on the execution program memory. Also, in order to cope with the case where the change to the new sequence program is interrupted,
A conventional sequence control device having two execution program memories is known. In other words, in this conventional sequence control device, one execution program memory is reserved as a reception memory until all the new sequence programs are received, so that when the change of the new sequence program is interrupted, In response, a new sequence program was changed.

【0004】ここで、図4を参照して、2個の実行用プ
ログラムメモリを備えた従来のシーケンス制御装置につ
いて具体的に説明する。図4は、従来のシーケンス制御
装置の構成を示すブロック図である。図4に示すよう
に、従来のシーケンス制御装置50には、外部からシー
ケンスプログラムを受信するプログラム受信部51、ス
イッチ51aを介して前記プログラム受信部51に接続
された2個の実行用プログラムメモリ52,53、及び
プログラム受信部51とスイッチ51aに接続されたプ
ログラム実行部54を備えている。プログラム受信部5
1は、専用のICにより構成され、新たなシーケンスプ
ログラムを外部から受信する。プログラム受信部51
は、新たなシーケンスプログラムを受信したとき、プロ
グラム実行部54の動作を停止させた後、スイッチ51
aを動作する。プログラム受信部51は、スイッチ51
aを介して接続された一方の実行用プログラムメモリ5
2,53に受信した新たなシーケンスプログラムを出力
し格納する。また、プログラム受信部51は、受信した
全てのシーケンスプログラムを出力すると、プログラム
実行部54を起動する。
Here, a conventional sequence control device having two execution program memories will be specifically described with reference to FIG. FIG. 4 is a block diagram showing a configuration of a conventional sequence control device. As shown in FIG. 4, a conventional sequence control device 50 includes a program receiving unit 51 for receiving a sequence program from the outside, and two execution program memories 52 connected to the program receiving unit 51 via a switch 51a. , 53, and a program receiving unit 51 and a program executing unit 54 connected to the switch 51a. Program receiving unit 5
Reference numeral 1 denotes a dedicated IC configured to receive a new sequence program from outside. Program receiving unit 51
Stops the operation of the program execution unit 54 when a new sequence program is received,
a. The program receiving unit 51 includes a switch 51
a one of the execution program memories 5 connected through a
The new sequence program received is output and stored in 2, 53. When all the received sequence programs are output, the program receiving unit 51 activates the program executing unit 54.

【0005】実行用プログラムメモリ52,53は、互
いに独立してデータの入出力できるバンク1,2をそれ
ぞれ構成するものであり、プログラム受信部51からの
シーケンスプログラムを格納、保持する。プログラム実
行部54は、専用のICにより構成され、当該シーケン
ス制御装置50によって制御される設備内の複数の各電
気機器(図示せず)に接続されている。プログラム実行
部54は、スイッチ51aを介して接続された一方の実
行用プログラムメモリ52,53からシーケンスプログ
ラムを読み出して、そのシーケンスプログラムに基づき
各電気機器(例えばセンサ)からの信号を入力し、また
各電気機器(例えばLEDやリレー)を動作するための
制御信号を出力する。尚、入力した信号のデータ(結果
情報)は、プログラム実行部54から図示しないメモリ
に出力、保持され、プログラム実行部54が次にシーケ
ンスプログラムを実行するとき、そのシーケンスプログ
ラムに反映される。すなわち、プログラム実行部54
は、前回のシーケンスプログラムの実行で得られた結果
情報を用いて、制御信号を生成し各電気機器に出力す
る。
The execution program memories 52 and 53 respectively constitute banks 1 and 2 which can input and output data independently of each other, and store and hold a sequence program from the program receiving section 51. The program execution unit 54 is configured by a dedicated IC, and is connected to a plurality of electric devices (not shown) in the facility controlled by the sequence control device 50. The program execution unit 54 reads a sequence program from one of the execution program memories 52 and 53 connected via the switch 51a, inputs a signal from each electric device (for example, a sensor) based on the sequence program, and It outputs a control signal for operating each electric device (for example, an LED or a relay). The input signal data (result information) is output from the program execution unit 54 to a memory (not shown) and held, and is reflected in the sequence program when the program execution unit 54 next executes the sequence program. That is, the program execution unit 54
Generates a control signal using the result information obtained by executing the previous sequence program, and outputs the control signal to each electric device.

【0006】上記の従来のシーケンス制御装置50は下
記のように動作する。尚、以下の説明では、プログラム
実行部54がバンク1の実行用プログラムメモリ52に
格納されているシーケンスプログラムを実行中に、プロ
グラム受信部51が新たなシーケンスプログラムを外部
から受信した場合での動作を例示して説明する。プログ
ラム受信部51が外部から新たなシーケンスプログラム
を受信すると、プログラム受信部51はプログラム実行
部54の動作を停止する。その後、プログラム受信部5
1は、スイッチ51aを動作して、バンク1の実行用プ
ログラムメモリ52からバンク2の実行用プログラムメ
モリ53に切り替える。そして、プログラム受信部51
は、受信した新たなシーケンスプログラムをスイッチ5
1aを経て実行用プログラムメモリ53に出力し格納す
る。続いて、受信した新たなシーケンスプログラムを全
て実行用プログラムメモリ53に出力すると、プログラ
ム受信部51はプログラム実行部54を起動し新たなシ
ーケンスプログラムを実行させる。以上のように、この
従来のシーケンス制御装置50では、プログラム受信部
51が新たなシーケンスプログラムを受信したとき、プ
ログラム実行部54の動作を停止しスイッチ51aを動
作して一方の実行用プログラムメモリ52,53を受信
用のメモリとして確保していた。これにより、この従来
のシーケンス制御装置50では、プログラム実行部54
で実行されていた既存のシーケンスプログラムを消去す
ることなく、新たなシーケンスプログラムに変更してい
た。
The above-described conventional sequence controller 50 operates as follows. In the following description, the operation performed when the program receiving unit 51 receives a new sequence program from outside while the program executing unit 54 is executing the sequence program stored in the execution program memory 52 of the bank 1 is described. Will be described as an example. When the program receiving unit 51 receives a new sequence program from outside, the program receiving unit 51 stops the operation of the program executing unit 54. Then, the program receiving unit 5
1 operates the switch 51a to switch from the execution program memory 52 of the bank 1 to the execution program memory 53 of the bank 2. Then, the program receiving unit 51
Switches the received new sequence program to switch 5.
The program is output to the execution program memory 53 via 1a and stored. Subsequently, when all the received new sequence programs are output to the execution program memory 53, the program receiving unit 51 activates the program execution unit 54 to execute the new sequence programs. As described above, in the conventional sequence control device 50, when the program receiving unit 51 receives a new sequence program, the operation of the program execution unit 54 is stopped, the switch 51a is operated, and one of the execution program memories 52 , 53 as memory for reception. Thus, in the conventional sequence control device 50, the program execution unit 54
Was changed to a new sequence program without erasing the existing sequence program.

【0007】[0007]

【発明が解決しようとする課題】上記のような従来のシ
ーケンス制御装置では、2個の実行用プログラムメモリ
を備えたものでも、新たなシーケンスプログラムを受信
している間はプログラム実行部の動作を停止していた。
このため、従来のシーケンス制御装置では、新たなシー
ケンスプログラムを受信している間、設備内の各電気機
器への制御信号を出力することができずに、各電気機器
を最適に動作することができないという問題点があっ
た。さらに、従来のシーケンス制御装置では、各電気機
器からの信号を入力して、そのデータ(結果情報)を次
のシーケンスプログラムの実行時に用いて反映すること
ができないという問題点を生じた。具体的にいえば、例
えば従来のシーケンス制御装置が搬送設備に用いられて
いた場合、その従来のシーケンス制御装置では、新たな
シーケンスプログラムを受信している間はその搬送設備
内の各電気機器と信号を入出力することができないの
で、搬送物の個数をカウントミスし、さらにカウントミ
スによって必要な処理を搬送物に正しく行えないおそれ
があった。このように、従来のシーケンス制御装置で
は、新たなシーケンスプログラムに変更するとき、設備
内の各電気機器の動作や機能に支障をきたすことがあっ
た。
In the conventional sequence control apparatus as described above, even if the sequence control apparatus has two execution program memories, the operation of the program execution unit is performed while a new sequence program is being received. Had stopped.
For this reason, the conventional sequence control device cannot output a control signal to each electric device in the facility while receiving a new sequence program, and can operate each electric device optimally. There was a problem that it was not possible. Further, the conventional sequence control apparatus has a problem in that it is not possible to input a signal from each electric device and reflect the data (result information) when executing the next sequence program. Specifically, for example, when a conventional sequence control device is used for a transport facility, the conventional sequence control device communicates with each electric device in the transport facility while receiving a new sequence program. Since signals cannot be input and output, there is a risk that the number of conveyed objects may be incorrectly counted, and necessary processing may not be performed correctly on the conveyed objects due to the count error. As described above, in the conventional sequence control device, when changing to a new sequence program, the operation or function of each electric device in the facility may be affected.

【0008】この発明は、上記のような問題点を解決す
るためになされたものであり、実行中のシーケンスプロ
グラムを停止することなく、受信した新たなシーケンス
プログラムに変更することができ、よって上記実行中の
シーケンスプログラムにより設備内の各電気機器への制
御信号を出力し、各電気機器からの信号を入力して設備
内の各電気機器を最適に動作することができるシーケン
ス制御装置、シーケンス制御方法、及びシーケンス制御
プログラムを記録した記録媒体を提供することを目的と
する。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problems, and it is possible to change a received sequence program to a new sequence program without stopping the running sequence program. Sequence control device and sequence control that can output control signals to each electrical device in the facility according to the running sequence program and input signals from each electrical device to optimally operate each electrical device in the facility It is an object of the present invention to provide a recording medium recording a method and a sequence control program.

【0009】[0009]

【課題を解決するための手段】本発明のシーケンス制御
装置は、少なくとも2つのバンクからなる実行用プログ
ラムメモリ群と、前記実行用プログラムメモリ群のバン
クに格納されているシーケンスプログラムを実行するプ
ログラム実行部とを備えたシーケンス制御装置であっ
て、外部からシーケンスプログラムを受信するプログラ
ム受信部、前記プログラム受信部で受信したシーケンス
プログラムを格納する作業用メモリ、及び前記作業用メ
モリに前記受信したシーケンスプログラムが格納された
とき、前記プログラム実行部の動作状態を判別して、そ
のプログラム実行部が停止状態である間に前記作業用メ
モリから前記実行用プログラムメモリ群の1つのバンク
への前記受信したシーケンスプログラムの転送処理を行
うプログラム転送部を備えている。このように構成する
ことにより、実行中のシーケンスプログラムを停止する
ことなく、受信した新たなシーケンスプログラムに変更
することができ、よって上記実行中のシーケンスプログ
ラムにより設備内の各電気機器への制御信号を出力し、
各電気機器からの信号を入力して設備内の各電気機器を
最適に動作することができる。
According to the present invention, there is provided a sequence control apparatus comprising: an execution program memory group comprising at least two banks; and a program execution unit for executing a sequence program stored in the banks of the execution program memory group. A program receiving unit that receives a sequence program from the outside, a working memory that stores the sequence program received by the program receiving unit, and the sequence program that is received in the working memory. Is stored, the operation state of the program execution unit is determined, and the received sequence from the working memory to one bank of the execution program memory group is determined while the program execution unit is stopped. Program transfer unit that performs program transfer processing It is provided. With this configuration, the currently executed sequence program can be changed to the received new sequence program without stopping, and the control signal to each electric device in the equipment can be changed by the currently executed sequence program. And output
By inputting a signal from each electric device, each electric device in the facility can be operated optimally.

【0010】本発明のシーケンス制御方法は、少なくと
も2つのバンクからなる実行用プログラムメモリ群の各
バンクに格納されているシーケンスプログラムを実行す
るシーケンス制御方法であって、外部からシーケンスプ
ログラムを受信する受信ステップ、前記受信ステップで
受信したシーケンスプログラムを作業用メモリに格納す
る格納ステップ、前記格納ステップで前記受信したシー
ケンスプログラムを格納したとき、前記プログラム実行
部の動作状態を判別する判別ステップ、及び前記判別ス
テップで判別した前記プログラム実行部が停止状態であ
る間に前記作業用メモリから前記実行用プログラムメモ
リ群の1つのバンクへ前記受信したシーケンスプログラ
ムを転送する転送ステップを備えている。このように構
成することにより、実行中のシーケンスプログラムを停
止することなく、受信した新たなシーケンスプログラム
に変更することができ、よって上記実行中のシーケンス
プログラムにより設備内の各電気機器への制御信号を出
力し、各電気機器からの信号を入力して設備内の各電気
機器を最適に動作することができる。
A sequence control method according to the present invention is a sequence control method for executing a sequence program stored in each bank of an execution program memory group including at least two banks. A storage step of storing the sequence program received in the receiving step in a working memory; a determination step of determining an operation state of the program execution unit when the received sequence program is stored in the storage step; A transfer step of transferring the received sequence program from the working memory to one bank of the execution program memory group while the program execution unit determined in the step is in a halt state. With this configuration, the currently executed sequence program can be changed to the received new sequence program without stopping, and the control signal to each electric device in the equipment can be changed by the currently executed sequence program. Is output, and signals from the respective electrical devices are input to allow the respective electrical devices in the facility to operate optimally.

【0011】本発明のシーケンス制御プログラムを記録
した記録媒体は、外部からシーケンスプログラムを受信
すること、受信した前記シーケンスプログラムを作業用
メモリに格納すること、受信した前記シーケンスプログ
ラムを格納したときプログラム実行部の動作状態を判別
すること、判別した前記プログラム実行部が停止状態で
ある間に前記作業用メモリから実行用プログラムメモリ
群の1つのバンクへ前記シーケンスプログラムを転送す
ることを備えている。このように構成することにより、
実行中のシーケンスプログラムを停止することなく、受
信した新たなシーケンスプログラムに変更することがで
き、よって上記実行中のシーケンスプログラムにより設
備内の各電気機器への制御信号を出力し、各電気機器か
らの信号を入力して設備内の各電気機器を最適に動作す
ることができる。
A recording medium on which the sequence control program of the present invention is recorded receives a sequence program from the outside, stores the received sequence program in a work memory, and executes the program when the received sequence program is stored. Determining the operation state of the section, and transferring the sequence program from the working memory to one bank of the execution program memory group while the determined program execution section is in the stopped state. With this configuration,
Without stopping the running sequence program, it is possible to change to the received new sequence program, and thus output a control signal to each electric device in the facility according to the running sequence program, and from each electric device, , Each electrical device in the facility can be operated optimally.

【0012】[0012]

【発明の実施の形態】以下、本発明のシーケンス制御装
置、及びシーケンス制御方法を示す好ましい実施例につ
いて、図面を参照しながら説明する。尚、以下の説明で
は、従来例との比較を容易なものとするために、前記の
従来例と同様に2個の実行用プログラムメモリを設けた
構成の実施例を示して説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments showing a sequence control apparatus and a sequence control method according to the present invention will be described below with reference to the drawings. In the following description, an embodiment having a configuration in which two execution program memories are provided as in the above-described conventional example will be described in order to facilitate comparison with the conventional example.

【0013】《実施例》図1は、本発明の実施例である
シーケンス制御装置の構成を示すブロック図である。図
1に示すように、本実施例のシーケンス制御装置10
は、外部からシーケンスプログラムを受信するプログラ
ム受信部1、前記プログラム受信部1に接続された作業
用メモリ2とプログラム転送部3、及びスイッチ3aを
介してプログラム転送部3に接続された2個の実行用プ
ログラムメモリ4,5を備えている。さらに、シーケン
ス制御装置10には、プログラム転送部3とスイッチ3
aとに接続されたプログラム実行部6、及び前記プログ
ラム実行部6に接続されたサイクルエンド処理部7が設
けられている。尚、本実施例のシーケンス制御装置10
は、制御対象である設備内の複数の各電気機器に接続さ
れている(図示せず)。また、本実施例のシーケンス制
御装置10は、プログラム実行部6によるシーケンスプ
ログラムの実行処理と、サイクルエンド処理部7による
サイクルエンド処理とをこの順番で、かつ1サイクルと
して繰り返して行う一括入出力スキャン方式のものであ
る。尚、1回の実行処理及びサイクルエンド処理に要す
る具体的な時間は例えばそれぞれ800μs及び200
μsであり、合計1msの処理時間でシーケンス制御装
置10は1サイクルの動作を繰り返して行う。
Embodiment FIG. 1 is a block diagram showing a configuration of a sequence control device according to an embodiment of the present invention. As shown in FIG. 1, the sequence control device 10 of the present embodiment
Is a program receiving unit 1 for receiving a sequence program from the outside, a working memory 2 and a program transferring unit 3 connected to the program receiving unit 1, and two program connecting units 3 connected to the program transferring unit 3 via a switch 3a. Execution program memories 4 and 5 are provided. Further, the sequence control device 10 includes a program transfer unit 3 and a switch 3
a, and a cycle end processing unit 7 connected to the program execution unit 6. Note that the sequence control device 10 of the present embodiment
Are connected to a plurality of electric devices in the equipment to be controlled (not shown). Further, the sequence control device 10 of the present embodiment performs a batch input / output scan in which the sequence program execution processing by the program execution unit 6 and the cycle end processing by the cycle end processing unit 7 are repeated in this order and as one cycle. It is of the system. The specific time required for one execution processing and cycle end processing is, for example, 800 μs and 200 μs, respectively.
μs, and the sequence control device 10 repeats the operation of one cycle in a processing time of 1 ms in total.

【0014】プログラム受信部1は、好ましくはCPU
を含んだICにより構成され、新たなシーケンスプログ
ラムを外部から受信して、作業用メモリ2に格納する。
受信した全てのシーケンスプログラムを作業用メモリ2
に格納すると、プログラム受信部1はそのシーケンスプ
ログラムの受信処理が終了したことをプログラム転送部
3に通知する。この受信処理は、後続のプログラム実行
部6でのシーケンスプログラムの実行処理とは互いに独
立して行われる。また、受信したシーケンスプログラム
が後段のプログラム実行部6で実行できない中間コード
により構成されていた場合、プログラム受信部1はその
シーケンスプログラムをプログラム実行部6で実行でき
る実行コードに翻訳し変換して、作業用メモリ2に出力
する。作業用メモリ2は、例えば256Kbyteの記憶容
量をもつメモリにより構成されている。
The program receiving section 1 is preferably a CPU
And receives a new sequence program from the outside and stores it in the working memory 2.
All received sequence programs are stored in the working memory 2
, The program receiving unit 1 notifies the program transfer unit 3 that the receiving process of the sequence program has been completed. This reception processing is performed independently of the execution processing of the sequence program in the subsequent program execution unit 6. If the received sequence program is composed of an intermediate code that cannot be executed by the subsequent program execution unit 6, the program reception unit 1 translates and converts the sequence program into an execution code that can be executed by the program execution unit 6, Output to the working memory 2. The work memory 2 is configured by a memory having a storage capacity of, for example, 256 Kbytes.

【0015】プログラム転送部3は、シーケンスプログ
ラムの受信処理が終了したことをプログラム受信部1か
ら通知されると、プログラム実行部6の動作状態を判別
する。プログラム転送部3は、プログラム実行部6が停
止状態である間にスイッチ3aを動作して、作業用メモ
リ2内に格納された新たなシーケンスプログラムをスイ
ッチ3aを介して接続された一方の実行用プログラムメ
モリ4,5に転送する。尚、ここでいう停止状態には、
プログラム実行部6が1回のシーケンスプログラムの実
行処理を終了して、その実行処理に引き続いて行われる
上記サイクルエンド処理中に停止している停止状態を含
んでいる。すなわち、当該シーケンス制御装置10が動
作しているとき、プログラム転送部3はプログラム実行
部6が停止状態である間を検知して、その停止状態であ
る間のサイクルエンド処理時間内で新たなシーケンスプ
ログラムの転送処理を行う。具体的には、プログラム転
送部3は、予め設定された転送処理時間(例えば、18
0μs)で転送可能な所定サイズの新たなシーケンスプ
ログラムを、作業用メモリ2から一方の実行用プログラ
ムメモリ4,5に転送する。
When the program transfer unit 3 is notified by the program reception unit 1 that the reception processing of the sequence program has been completed, the program transfer unit 3 determines the operation state of the program execution unit 6. The program transfer unit 3 operates the switch 3a while the program execution unit 6 is in the stopped state, and transfers a new sequence program stored in the working memory 2 to one of the execution sequences connected via the switch 3a. The data is transferred to the program memories 4 and 5. In addition, in the stop state here,
This includes a stop state in which the program execution unit 6 has completed one execution of the sequence program and stopped during the cycle end processing performed subsequent to the execution processing. That is, when the sequence control device 10 is operating, the program transfer unit 3 detects while the program execution unit 6 is in the stop state, and generates a new sequence within the cycle end processing time while the program execution unit 6 is in the stop state. Performs program transfer processing. Specifically, the program transfer unit 3 executes a transfer processing time set in advance (for example, 18
A new sequence program of a predetermined size that can be transferred in 0 μs) is transferred from the work memory 2 to one of the execution program memories 4 and 5.

【0016】詳細にいえば、新たなシーケンスプログラ
ムのデータサイズが所定サイズより小さくて1回の転送
処理で全てのシーケンスプログラムを転送できる場合、
その転送処理を終了した後、プログラム転送部3はスイ
ッチ3aを動作せずに実行用プログラムメモリ4,5の
切り替えを行わない。これにより、プログラム実行部6
が次の実行処理を行うとき、一方の実行用プログラムメ
モリ4,5に格納、変更された新たなシーケンスプログ
ラムを実行することができる。一方、新たなシーケンス
プログラムのデータサイズが所定サイズより大きくて1
回の転送処理で全てのシーケンスプログラムを転送でき
ない場合、プログラム転送部3は新たなシーケンスプロ
グラムを所定サイズをもつブロックに分けて、最後のブ
ロックの転送処理を終了したとき以外は、1回のブロッ
クの転送処理を終了する度にスイッチ3aを動作して、
転送先の一方の実行用プログラムメモリ4,5から他方
のものに切り替える。これにより、新たなシーケンスプ
ログラムをサイクルエンド処理時間内で転送処理できな
い場合でも、プログラム実行部6が実行していたシーケ
ンスプログラムを停止することなく、新たなシーケンス
プログラムを転送して変更することができる。つまり、
プログラム実行部6は、プログラム転送部3が新たなシ
ーケンスプログラムを一方の実行用プログラムメモリ
4,5に完全に格納するまでは、他方の実行用プログラ
ムメモリ4,5に格納されている既存のシーケンスプロ
グラムを続けて実行することができる。
More specifically, if the data size of the new sequence program is smaller than the predetermined size and all the sequence programs can be transferred in one transfer process,
After finishing the transfer process, the program transfer unit 3 does not operate the switch 3a and does not switch the execution program memories 4 and 5. Thereby, the program execution unit 6
When executing the next execution process, a new sequence program stored and changed in one of the execution program memories 4 and 5 can be executed. On the other hand, if the data size of the new sequence program is
If all the sequence programs cannot be transferred in one transfer process, the program transfer unit 3 divides the new sequence program into blocks having a predetermined size, and transfers the one block program except when the transfer process of the last block is completed. The switch 3a is operated every time the transfer process of
The program memory is switched from one of the transfer destination execution program memories 4 and 5 to the other. Accordingly, even when a new sequence program cannot be transferred within the cycle end processing time, the new sequence program can be transferred and changed without stopping the sequence program being executed by the program execution unit 6. . That is,
Until the program transfer unit 3 completely stores a new sequence program in one of the execution program memories 4 and 5, the program execution unit 6 executes the existing sequence stored in the other execution program memories 4 and 5. The program can be executed continuously.

【0017】このように、本実施例のシーケンス制御装
置10では、プログラム転送部3がプログラム実行部6
の動作状態を判別して、プログラム実行部6が停止状態
である間で転送処理を行うよう構成している。これによ
り、本実施例のシーケンス制御装置10では、たとえプ
ログラム実行部6がシーケンスプログラムを実行してい
た場合でも、その実行中のシーケンスプログラムを停止
することなく、新たなシーケンスプログラムに変更する
ことができる。尚、上述の説明では、プログラム転送部
3がサイクルエンド処理時間内で転送処理を行えるよう
所定サイズの転送処理を行う構成について説明したが、
プログラム転送部3がその転送能力に基づき1回の転送
処理で転送するサイズを算出し決定して、サイクルエン
ド処理時間内で転送処理を行うよう構成してもよい。上
述の転送能力は、作業用メモリ2でのデータの読み出し
速度や各実行用プログラムメモリ4,5でのデータの書
き込み速度を含んだプログラム転送部3の転送速度に規
定されるものである。
As described above, in the sequence control device 10 of the present embodiment, the program transfer unit 3
Is determined, and the transfer process is performed while the program execution unit 6 is in the stopped state. Thus, in the sequence control device 10 of the present embodiment, even if the program execution unit 6 is executing a sequence program, the sequence program being executed can be changed to a new sequence program without stopping. it can. In the above description, the configuration in which the program transfer unit 3 performs the transfer process of the predetermined size so that the transfer process can be performed within the cycle end processing time has been described.
The program transfer unit 3 may calculate and determine the size to be transferred in one transfer process based on the transfer capability and perform the transfer process within the cycle end processing time. The transfer capability described above is defined by the transfer speed of the program transfer unit 3 including the data read speed in the working memory 2 and the data write speed in the execution program memories 4 and 5.

【0018】実行用プログラムメモリ4,5は、互いに
独立してデータの入出力できるバンク1,2をそれぞれ
構成するものであり、バンク1,2からなる実行用プロ
グラムメモリ群を形成している。この実行用プログラム
メモリ群では、一つのバンクが常にプログラム転送部3
によって選択されスイッチ3aに接続されている。各実
行用プログラムメモリ4,5は、例えばそれぞれ128
Kbyteの記憶容量をもつメモリにより構成され、プログ
ラム転送部3からのシーケンスプログラムを格納、保持
する。プログラム実行部6は、好ましくはCPUを含ん
だICにより構成され、スイッチ3aを介して接続され
た一方の実行用プログラムメモリ4,5からシーケンス
プログラムを読み出す。プログラム実行部6は、読み出
したシーケンスプログラムを実行して、各電気機器を動
作するための制御信号を生成する。この生成された制御
信号は、プログラム実行部6とサイクルエンド処理部7
との間に設けられたメモリ(図示せず)に一時的に格納
される。また、このメモリには、以前のシーケンスプロ
グラムの実行で得られた動作結果を示す結果情報のデー
タが格納されており、プログラム実行部6はその結果情
報のデータをシーケンスプログラムに反映することがで
きる。尚、結果情報の具体例には、上述の電気機器に含
まれたLEDの点灯状態やバルブのON/OFF状態を
示す情報がある。サイクルエンド処理部7は、外部の各
電気機器との間で上述の制御信号及び信号の入出力処理
を含んだ所定のサイクルエンド処理を行う。詳細には、
サイクルエンド処理部7は、プログラム実行部6で生成
された制御信号を上記メモリから読み出して、対応する
電気機器に出力する。サイクルエンド処理部7は、各電
気機器からの信号を入力して、上記メモリに格納する。
The execution program memories 4 and 5 respectively constitute banks 1 and 2 that can input and output data independently of each other, and form an execution program memory group including the banks 1 and 2. In this execution program memory group, one bank always has the program transfer unit 3
And is connected to the switch 3a. Each of the execution program memories 4 and 5 has, for example, 128
It is composed of a memory having a Kbyte storage capacity, and stores and holds a sequence program from the program transfer unit 3. The program execution unit 6 is preferably constituted by an IC including a CPU, and reads out a sequence program from one of the execution program memories 4 and 5 connected via the switch 3a. The program execution unit 6 executes the read sequence program to generate a control signal for operating each electric device. The generated control signal is transmitted to the program execution unit 6 and the cycle end processing unit 7.
And is temporarily stored in a memory (not shown) provided between them. The memory stores result information data indicating operation results obtained by executing the previous sequence program, and the program execution unit 6 can reflect the result information data in the sequence program. . It should be noted that specific examples of the result information include information indicating a lighting state of an LED included in the above-described electric device and an ON / OFF state of a valve. The cycle end processing unit 7 performs a predetermined cycle end process including input / output processing of the control signal and the signal with each of the external electric devices. For details,
The cycle end processing unit 7 reads the control signal generated by the program execution unit 6 from the memory, and outputs the control signal to a corresponding electric device. The cycle end processing unit 7 receives a signal from each electric device and stores the signal in the memory.

【0019】以下、本実施例のシーケンス制御装置の動
作について、図1と図2を参照して説明する。尚、以下
の説明では、プログラム実行部6がバンク1の実行用プ
ログラムメモリ4に格納されているシーケンスプログラ
ムを実行中に、プログラム受信部1が新たなシーケンス
プログラムを外部から受信した場合での動作を例示して
説明する。図2は、図1に示したシーケンス制御装置の
動作を示すフローチャートである。図2に示すように、
本実施例のシーケンス制御装置10では、プログラム受
信部1が新たなシーケンスプログラムを受信すると、プ
ログラム受信部1は受信したプログラムを作業用メモリ
2に格納する(ステップS1)。そして、プログラム受
信部1は、その新たなシーケンスプログラムを全て受信
したかどうかについて判別し(ステップS2)、全ての
シーケンスプログラムの受信を終了している場合、プロ
グラム受信部1はその受信処理が終了したことをプログ
ラム転送部3に通知する。
Hereinafter, the operation of the sequence control apparatus according to the present embodiment will be described with reference to FIGS. In the following description, the operation when the program receiving unit 1 receives a new sequence program from outside while the program executing unit 6 is executing the sequence program stored in the execution program memory 4 of the bank 1 is described. Will be described as an example. FIG. 2 is a flowchart showing the operation of the sequence control device shown in FIG. As shown in FIG.
In the sequence control device 10 of this embodiment, when the program receiving unit 1 receives a new sequence program, the program receiving unit 1 stores the received program in the working memory 2 (Step S1). Then, the program receiving unit 1 determines whether or not all of the new sequence programs have been received (step S2). If the reception of all the sequence programs has been completed, the program receiving unit 1 terminates the reception processing. The program transfer unit 3 is notified of the fact.

【0020】続いて、プログラム転送部3が受信処理の
終了したことを通知されると、プログラム転送部3はプ
ログラム実行部6の動作状態を判別して、プログラム実
行部6が停止状態であるかどうかについて判別する。つ
まり、プログラム転送部3は、1回のシーケンスプログ
ラムの実行処理が終了しているかどうかについて判別し
て(ステップS3)、その実行処理が終了している場
合、プログラム転送部3は、スイッチ3aを動作して、
バンク1の実行用プログラムメモリ4からバンク2の実
行用プログラムメモリ5に切り替える(ステップS
4)。その後、プログラム転送部3は、シーケンスプロ
グラムを作業用メモリ2から実行用プログラムメモリ5
への新たなシーケンスプログラムの転送処理を行う(ス
テップS5)。このとき、新たなシーケンスプログラム
のデータサイズが所定サイズより大きい場合、プログラ
ム転送部3は、同時に実施しているサイクルエンド処理
部7でのサイクルエンド処理時間内に転送処理が終了す
るように、新たなシーケンスプログラムを所定サイズを
もつブロックに分けたあと転送処理を行う。
Subsequently, when the program transfer unit 3 is notified that the reception process has been completed, the program transfer unit 3 determines the operation state of the program execution unit 6 and determines whether the program execution unit 6 is in the stopped state. Determine whether or not. That is, the program transfer unit 3 determines whether or not one execution of the sequence program has been completed (step S3). If the execution has been completed, the program transfer unit 3 sets the switch 3a to OFF. Works,
Switching from the execution program memory 4 of the bank 1 to the execution program memory 5 of the bank 2 (step S
4). Thereafter, the program transfer unit 3 transfers the sequence program from the working memory 2 to the execution program memory 5.
A new sequence program is transferred (step S5). At this time, if the data size of the new sequence program is larger than the predetermined size, the program transfer unit 3 sets a new time so that the transfer process is completed within the cycle end processing time of the cycle end processing unit 7 that is being executed simultaneously. After a simple sequence program is divided into blocks having a predetermined size, transfer processing is performed.

【0021】次に、プログラム転送部3は、新たなシー
ケンスプログラムを全て転送したかどうかについて判断
して(ステップS6)、そのシーケンスプログラムを全
て転送していた場合、プログラム転送部3はその動作を
終了する。一方、そのシーケンスプログラムを全て転送
していなかった場合、プログラム転送部3は、スイッチ
3aを動作して、バンク2の実行用プログラムメモリ5
からバンク1の実行用プログラムメモリ4に切り替える
(ステップS7)。そして、プログラム転送部3は元の
バンクに切り替えたことをサイクルエンド処理部7に通
知し、さらにサイクルエンド処理部7が所定のサイクル
エンド処理を終了した後、サイクルエンド処理部7はプ
ログラム実行部6を起動する(ステップS8)。続い
て、プログラム転送部3は、上記ステップS3に戻って
そのステップS3に示した動作を行う。
Next, the program transfer unit 3 determines whether or not all the new sequence programs have been transferred (step S6). If all of the sequence programs have been transferred, the program transfer unit 3 determines the operation. finish. On the other hand, if all of the sequence programs have not been transferred, the program transfer unit 3 operates the switch 3a to execute the execution program memory 5 of the bank 2.
Is switched to the execution program memory 4 of the bank 1 (step S7). Then, the program transfer unit 3 notifies the cycle end processing unit 7 that the bank has been switched to the original bank. After the cycle end processing unit 7 completes the predetermined cycle end processing, the cycle end processing unit 7 6 is started (step S8). Subsequently, the program transfer unit 3 returns to step S3 and performs the operation shown in step S3.

【0022】尚、上述の説明では、転送処理とサイクル
エンド処理とを同時に行う場合について説明したが、実
施例はこれに限定されるものではない。例えば、それら
の転送処理とサイクルエンド処理とをソフトウェアの機
能で実現して、さらに1つのCPUで実施するよう構成
して、当該シーケンス制御装置の構成を簡略化すること
もできる。このように1つのCPUで実施するよう構成
した場合、転送処理とサイクルエンド処理とを同時に実
施することができない。それゆえ、例えば図3に示すよ
うに、上記CPUが、1回のシーケンスプログラムの実
行処理が終了しているかどうかについて判別した後、ま
ずサイクルエンド処理を行い(ステップS9)、続いて
転送処理を行うよう構成すればよい。さらに、サイクル
エンド処理と転送処理の順番を入れ替えることもでき
る。具体的にいえば、図3のステップS7とステップS
8との間に上述のステップS9に示したサイクルエンド
処理を行うよう構成すればよい。尚、以上のように1つ
のCPUで実施するよう構成した場合、転送処理時間は
上述の実行処理時間及びサイクルエンド処理時間よりも
小さくすることが好ましい。具体的には、実行処理時間
及びサイクルエンド処理時間をそれぞれ800μs及び
200μsとしたとき、転送処理時間は10μs以下と
することが好ましい。これにより、実行処理及びサイク
ルエンド処理に対する転送処理の影響を大幅に抑制する
ことができる。
In the above description, the case where the transfer process and the cycle end process are performed at the same time has been described, but the embodiment is not limited to this. For example, the transfer processing and the cycle end processing can be realized by software functions and further configured to be executed by one CPU, thereby simplifying the configuration of the sequence control device. In the case where the processing is performed by one CPU as described above, the transfer processing and the cycle end processing cannot be performed simultaneously. Therefore, as shown in FIG. 3, for example, after the CPU determines whether or not one execution of the sequence program has been completed, the CPU first performs a cycle end process (step S9), and then performs a transfer process. What is necessary is just to comprise. Further, the order of the cycle end process and the transfer process can be switched. Specifically, step S7 and step S7 in FIG.
The cycle end process shown in step S9 described above may be configured to be performed between the end of the cycle. In the case where the processing is performed by one CPU as described above, it is preferable that the transfer processing time is shorter than the above-described execution processing time and cycle end processing time. Specifically, when the execution processing time and the cycle end processing time are 800 μs and 200 μs, respectively, the transfer processing time is preferably 10 μs or less. Thereby, the influence of the transfer process on the execution process and the cycle end process can be significantly suppressed.

【0023】以上のように、本実施例のシーケンス制御
装置10、及びシーケンス制御方法では、作業用メモリ
2がプログラム受信部1で受信した新たなシーケンスプ
ログラムを格納し、その格納(受信処理)が終了したと
きプログラム転送部3はプログラム実行部6の動作状態
を判別している。さらに、本実施例のシーケンス制御装
置10、及びシーケンス制御方法では、プログラム転送
部3は、プログラム実行部6が停止状態である間に作業
用メモリ2から一方の実行用プログラムメモリ4,5へ
の新たなシーケンスプログラムの転送処理を行うよう構
成している。これにより、本実施例のシーケンス制御装
置10、及びシーケンス制御方法では、プログラム実行
部6で実行中のシーケンスプログラムを停止することな
く、新たなシーケンスプログラムに変更することができ
る。したがって、本実施例のシーケンス制御装置10、
及びシーケンス制御方法では、実行中のシーケンスプロ
グラムにより設備内の各電気機器への制御信号を出力
し、各電気機器からの信号を入力して設備内の各電気機
器を最適に動作することができる。
As described above, in the sequence control device 10 and the sequence control method of the present embodiment, the working memory 2 stores the new sequence program received by the program receiving unit 1, and the storage (reception processing) is performed. When the operation is completed, the program transfer unit 3 determines the operation state of the program execution unit 6. Furthermore, in the sequence control device 10 and the sequence control method according to the present embodiment, the program transfer unit 3 transfers the data from the working memory 2 to one of the execution program memories 4 and 5 while the program execution unit 6 is stopped. It is configured to perform transfer processing of a new sequence program. As a result, in the sequence control device 10 and the sequence control method of the present embodiment, the sequence program being executed by the program execution unit 6 can be changed to a new sequence program without stopping. Therefore, the sequence control device 10 of the present embodiment,
In the sequence control method, a control signal to each electric device in the facility is output according to the sequence program being executed, and a signal from each electric device is input so that each electric device in the facility can operate optimally. .

【0024】尚、上述の説明では、2つのバンクからな
る実行用プログラムメモリ群を用いた構成について説明
したが、実行用プログラムメモリ群でのバンク数は2つ
に限定されるものではなく、3つ以上のバンクからなる
実行用プログラムメモリ群を用いてもよい。このように
構成した場合、プログラム転送部がプログラム実行部で
実行に使用していないバンクを1つ選択して、その選択
したバンクに新たなシーケンスプログラムを転送するよ
う構成すればよい。さらに、転送先のバンクを選択する
方法としては、操作者等が指示する方法や一番古いシー
ケンスプログラムが格納されているバンクを自動的に検
出し選択する方法が挙げられる。
In the above description, the configuration using the execution program memory group consisting of two banks has been described. However, the number of banks in the execution program memory group is not limited to two. An execution program memory group including one or more banks may be used. In such a configuration, the program transfer unit may select one bank not used for execution by the program execution unit and transfer a new sequence program to the selected bank. Further, as a method of selecting a transfer destination bank, there is a method instructed by an operator or the like, or a method of automatically detecting and selecting a bank in which the oldest sequence program is stored.

【0025】また、上記説明以外に、実行用プログラム
メモリ群の各バンクよりも小さい記憶容量のメモリを用
いて作業用メモリを構成することもできる。このように
構成した場合、新たなシーケンスプログラムの受信途中
で、その作業用メモリが一杯になることが想定される。
このため、プログラム受信部がその作業用メモリの状態
に応じてプログラム転送部に転送処理を要求しスイッチ
を動作するよう構成することが好ましい。すなわち、新
たなシーケンスプログラムの受信途中で作業用メモリが
一杯となると、プログラム受信部は受信途中であるとい
う条件付きでプログラム転送部に転送要求を出力する。
さらに、プログラム転送部は所定サイズに分けた最後の
ブロックを転送し終わった後もスイッチを動作して、元
の実行用プログラムメモリのバンクに切り替えるよう構
成することが好ましい。また、上述の実施例におけるシ
ーケンス制御方法は、いずれもコンピュータ・プログラ
ム化することができるので、コンピュータにより実行可
能な記録媒体は本願のシーケンス制御方法を提供するこ
とが可能である。ここでいうところの記録媒体とは、フ
ロッピーディスク、CD−ROM、DVD、光磁気ディ
スク、リムーバブル・ハードディスク、及びフラッシュ
メモリを含むデータ記録装置である。
In addition to the above description, the working memory can be configured by using a memory having a smaller storage capacity than each bank of the execution program memory group. With this configuration, it is assumed that the working memory becomes full during the reception of a new sequence program.
For this reason, it is preferable that the program receiving unit requests the program transfer unit to perform a transfer process according to the state of the working memory and operates the switch. That is, when the working memory becomes full during the reception of a new sequence program, the program reception unit outputs a transfer request to the program transfer unit with the condition that the reception is being performed.
Further, it is preferable that the program transfer unit is configured to operate the switch even after the transfer of the last block divided into a predetermined size to switch to the original bank of the execution program memory. Further, since any of the sequence control methods in the above-described embodiments can be computer-programmed, a computer-executable recording medium can provide the sequence control method of the present application. Here, the recording medium is a data recording device including a floppy disk, a CD-ROM, a DVD, a magneto-optical disk, a removable hard disk, and a flash memory.

【0026】[0026]

【発明の効果】以上のように、本発明のシーケンス制御
装置、及びシーケンス制御方法では、作業用メモリがプ
ログラム受信部で受信した新たなシーケンスプログラム
を格納し、その受信処理が終了したときプログラム転送
部はプログラム実行部の動作状態を判別する。さらに、
本発明のシーケンス制御装置、及びシーケンス制御方法
では、プログラム転送部はプログラム実行部が停止状態
である間に作業用メモリから実行用プログラムメモリ群
の一つのバンクへの新たなシーケンスプログラムの転送
処理を行うよう構成している。これにより、本発明のシ
ーケンス制御装置、及びシーケンス制御方法では、プロ
グラム実行部で実行中のシーケンスプログラムを停止す
ることなく、新たなシーケンスプログラムに変更するこ
とができる。したがって、本発明のシーケンス制御装
置、及びシーケンス制御方法では、実行中のシーケンス
プログラムにより設備内の各電気機器への制御信号を出
力し、各電気機器からの信号を入力して設備内の各電気
機器を最適に動作することができる。また、本発明のシ
ーケンス制御方法はコンピュータ・プログラム化するこ
とができるので、本発明のシーケンス制御方法をコンピ
ュータにより実行可能な記録媒体に記録したものでは上
記シーケンス制御を実施することができる。
As described above, according to the sequence control device and the sequence control method of the present invention, the working memory stores the new sequence program received by the program receiving unit, and transfers the program when the receiving process is completed. The unit determines an operation state of the program execution unit. further,
In the sequence control device and the sequence control method according to the present invention, the program transfer unit performs a process of transferring a new sequence program from the working memory to one bank of the execution program memory group while the program execution unit is in the stop state. It is configured to do so. Thus, in the sequence control device and the sequence control method of the present invention, the sequence program being executed by the program execution unit can be changed to a new sequence program without stopping. Therefore, in the sequence control device and the sequence control method of the present invention, a control signal to each electric device in the facility is output according to the sequence program being executed, and a signal from each electric device is input to each electric device in the facility. Equipment can operate optimally. Further, since the sequence control method of the present invention can be made into a computer program, the above-described sequence control can be performed by recording the sequence control method of the present invention on a computer-readable recording medium.

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

【図1】本発明の実施例であるシーケンス制御装置の構
成を示すブロック図
FIG. 1 is a block diagram illustrating a configuration of a sequence control device according to an embodiment of the present invention.

【図2】図1に示したシーケンス制御装置の動作を示す
フローチャート
FIG. 2 is a flowchart showing the operation of the sequence control device shown in FIG. 1;

【図3】図1に示したシーケンス制御装置の変形例の動
作を示すフローチャート
FIG. 3 is a flowchart showing an operation of a modification of the sequence control device shown in FIG. 1;

【図4】従来のシーケンス制御装置の構成を示すブロッ
ク図
FIG. 4 is a block diagram showing a configuration of a conventional sequence control device.

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

1 プログラム受信部 2 作業用メモリ 3 プログラム転送部 4,5 実行用プログラムメモリ 6 プログラム実行部 7 サイクルエンド処理部 10 シーケンス制御装置 DESCRIPTION OF SYMBOLS 1 Program receiving part 2 Working memory 3 Program transfer part 4,5 Execution program memory 6 Program execution part 7 Cycle end processing part 10 Sequence control device

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5H219 AA07 CC10 CC11 EE05 HH25 HH28 5H220 BB09 BB12 CC05 CX02 CX04 EE08 EE19 JJ13 JJ16 JJ24 JJ29  ──────────────────────────────────────────────────続 き Continued on the front page F term (reference) 5H219 AA07 CC10 CC11 EE05 HH25 HH28 5H220 BB09 BB12 CC05 CX02 CX04 EE08 EE19 JJ13 JJ16 JJ24 JJ29

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 少なくとも2つのバンクからなる実行用
プログラムメモリ群と、前記実行用プログラムメモリ群
のバンクに格納されているシーケンスプログラムを実行
するプログラム実行部とを備えたシーケンス制御装置で
あって、 外部からシーケンスプログラムを受信するプログラム受
信部、 前記プログラム受信部で受信したシーケンスプログラム
を格納する作業用メモリ、及び前記作業用メモリに前記
受信したシーケンスプログラムが格納されたとき、前記
プログラム実行部の動作状態を判別して、そのプログラ
ム実行部が停止状態である間に前記作業用メモリから前
記実行用プログラムメモリ群の1つのバンクへの前記受
信したシーケンスプログラムの転送処理を行うプログラ
ム転送部、 を具備することを特徴とするシーケンス制御装置。
1. A sequence control device comprising: an execution program memory group including at least two banks; and a program execution unit that executes a sequence program stored in a bank of the execution program memory group. A program receiving unit that receives a sequence program from the outside, a working memory that stores the sequence program received by the program receiving unit, and an operation of the program executing unit when the received sequence program is stored in the working memory. A program transfer unit for determining a state and performing a transfer process of the received sequence program from the working memory to one bank of the execution program memory group while the program execution unit is in a stop state. Sequence control device characterized by performing Place.
【請求項2】 前記プログラム実行部によるシーケンス
プログラムの実行が1回終了する毎に、制御対象の電気
機器との信号の入出力処理を含んだ所定のサイクルエン
ド処理を行うサイクルエンド処理部を備え、 前記プログラム転送部は、前記サイクルエンド処理部の
サイクルエンド処理時間以内で前記転送処理を行うよう
構成したことを特徴とする請求項1に記載のシーケンス
制御装置。
2. A cycle end processing unit for performing a predetermined cycle end process including a process of inputting / outputting a signal to / from an electric device to be controlled each time execution of a sequence program by the program execution unit is completed once. The sequence control device according to claim 1, wherein the program transfer unit is configured to perform the transfer process within a cycle end processing time of the cycle end processing unit.
【請求項3】 少なくとも2つのバンクからなる実行用
プログラムメモリ群の各バンクに格納されているシーケ
ンスプログラムを実行するシーケンス制御方法であっ
て、 外部からシーケンスプログラムを受信する受信ステッ
プ、 前記受信ステップで受信したシーケンスプログラムを作
業用メモリに格納する格納ステップ、 前記格納ステップで前記受信したシーケンスプログラム
を格納したとき、前記プログラム実行部の動作状態を判
別する判別ステップ、及び前記判別ステップで判別した
前記プログラム実行部が停止状態である間に前記作業用
メモリから前記実行用プログラムメモリ群の1つのバン
クへ前記受信したシーケンスプログラムを転送する転送
ステップ、 を具備したことを特徴とするシーケンス制御装置のシー
ケンス制御方法。
3. A sequence control method for executing a sequence program stored in each bank of an execution program memory group including at least two banks, wherein: a receiving step of receiving a sequence program from the outside; A storage step of storing the received sequence program in a working memory; a determination step of determining an operation state of the program execution unit when the received sequence program is stored in the storage step; and the program determined in the determination step A transfer step of transferring the received sequence program from the working memory to one bank of the execution program memory group while the execution unit is stopped. Method.
【請求項4】 外部からシーケンスプログラムを受信す
ること、 受信した前記シーケンスプログラムを作業用メモリに格
納すること、 受信した前記シーケンスプログラムを格納したときプロ
グラム実行部の動作状態を判別すること、 判別した前記プログラム実行部が停止状態である間に前
記作業用メモリから実行用プログラムメモリ群の1つの
バンクへ前記シーケンスプログラムを転送すること、 を具備するシーケンス制御プログラムを記録した記録媒
体。
4. Receiving a sequence program from the outside, storing the received sequence program in a working memory, determining an operation state of a program execution unit when the received sequence program is stored, Transferring the sequence program from the working memory to one bank of the execution program memory group while the program execution unit is stopped.
JP11054694A 1999-03-02 1999-03-02 Sequence control device and method and recording medium recording sequence control program Pending JP2000250610A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11054694A JP2000250610A (en) 1999-03-02 1999-03-02 Sequence control device and method and recording medium recording sequence control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11054694A JP2000250610A (en) 1999-03-02 1999-03-02 Sequence control device and method and recording medium recording sequence control program

Publications (1)

Publication Number Publication Date
JP2000250610A true JP2000250610A (en) 2000-09-14

Family

ID=12977917

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11054694A Pending JP2000250610A (en) 1999-03-02 1999-03-02 Sequence control device and method and recording medium recording sequence control program

Country Status (1)

Country Link
JP (1) JP2000250610A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006338304A (en) * 2005-06-01 2006-12-14 Shimadzu System Solutions Co Ltd Process controller and program rewriting method for controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006338304A (en) * 2005-06-01 2006-12-14 Shimadzu System Solutions Co Ltd Process controller and program rewriting method for controller

Similar Documents

Publication Publication Date Title
JP2000250610A (en) Sequence control device and method and recording medium recording sequence control program
US4807178A (en) Programmable sequence controller having indirect and direct input/output apparatus
EP0811922A1 (en) Peripheral device control
US7457986B2 (en) Apparatus and method for using variable end state delay to optimize JTAG transactions
JP2802806B2 (en) I / O channel control device
JPH08137703A (en) Task switching device
JPH0365737A (en) Peripheral control device
JP2826781B2 (en) Data transfer method
JPH02236741A (en) Logic simulator
JPH05241852A (en) Interruption generating device for information processing system
JPH0323597A (en) Rom random write system
JPH08320842A (en) Data transfer control system
JPS5916067A (en) Data checking system
JPH0254562B2 (en)
JPH0541722A (en) Programmable controller
JPS5984391A (en) Virtual memory connecting system
JPH06337837A (en) Data processor
JPH05241986A (en) Input/output instruction retrying system
JPS6275859A (en) Input and output control system
JPH07319777A (en) Memory controller
JPS6326751A (en) Reading system for control information on input/output controller
JPS59186023A (en) Data processing device
JPH0561610A (en) Method for selecting interruption magnetic disk device
JPH0460858A (en) Interruption address setting controlling system
JPH01243160A (en) Data transfer control system

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20040419

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20050523