JPH07334202A - Microcomputer device for control - Google Patents
Microcomputer device for controlInfo
- Publication number
- JPH07334202A JPH07334202A JP6151758A JP15175894A JPH07334202A JP H07334202 A JPH07334202 A JP H07334202A JP 6151758 A JP6151758 A JP 6151758A JP 15175894 A JP15175894 A JP 15175894A JP H07334202 A JPH07334202 A JP H07334202A
- Authority
- JP
- Japan
- Prior art keywords
- application program
- signal
- application
- memory
- maintenance
- 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
Links
Landscapes
- Microcomputers (AREA)
- Feedback Control In General (AREA)
- Safety Devices In Control Systems (AREA)
- Control By Computers (AREA)
Abstract
(57)【要約】
【構成】 保守ツール7は変更するアプリケーションプ
ログラムを適宜分割して順次保守要求を実行し、全部の
保守要求が完了するとメモリ切替信号を出力する。主制
御部2は、一方のアプリケーションメモリに格納された
アプリケーションプログラムによって制御演算を処理実
行すると共に、保守ツールからの保守要求により前記分
割された変更するアプリケーションプログラムを順次取
り込み、前記他方のアプリケーションプログラムメモリ
へ順次格納する。切替手段23はメモリ切替信号により
他方のアプリケーションプログラムメモリに格納された
変更するアプリケーションプログラムにより制御演算を
実行するように切替え、一方のアプリケーションプログ
ラムメモリへ変更するアプリケーションプログラムを格
納するように切り替える。
【効果】 装置を停止することなく、保守ができる。
(57) [Summary] [Structure] The maintenance tool 7 appropriately divides an application program to be changed and sequentially executes maintenance requests, and outputs a memory switching signal when all maintenance requests are completed. The main controller 2 processes and executes a control operation by an application program stored in one of the application memories, and sequentially takes in the divided application programs to be changed according to a maintenance request from a maintenance tool, and the other application program memory. Sequentially store in. The switching unit 23 switches to execute the control operation by the changing application program stored in the other application program memory in response to the memory switching signal, and switches to store the changing application program in one application program memory. [Effect] Maintenance can be performed without stopping the device.
Description
【0001】[0001]
【産業上の利用分野】本発明は、制御用マイクロコンピ
ュータ装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a control microcomputer device.
【0002】[0002]
【従来の技術】従来から、プロセスデータの入出力処理
およびアプリケーションプログラムによる演算処理を繰
り返し実行することによりプロセス制御を行う制御用マ
イクロコンピュータ装置が知られている。2. Description of the Related Art Conventionally, there has been known a control microcomputer device for performing process control by repeatedly executing input / output processing of process data and arithmetic processing by an application program.
【0003】このような制御用マイクロコンピュータ装
置において、アプリケーションプログラムはアプリケー
ションプログラム格納用メモリに連続的に格納されてお
り、制御装置はアプリケーションプログラム格納用メモ
リに格納されているアプリケーションプログラムをメモ
リに格納されている順番に順次解析・実行することによ
り演算処理を実行している。In such a control microcomputer device, application programs are continuously stored in the application program storage memory, and the control device stores the application programs stored in the application program storage memory in the memory. The arithmetic processing is executed by sequentially analyzing and executing in the order shown.
【0004】一般に、制御用マイクロコンピュータ装置
内部のアプリケーションプログラムは大容量であり、ア
プリケーションプログラムを変更する場合は、制御装置
に保守ツールを接続してアプリケーションプログラム格
納用メモリの内容を変更することにより行う。Generally, an application program inside the control microcomputer device has a large capacity, and when changing the application program, a maintenance tool is connected to the control device to change the contents of the memory for storing the application program. .
【0005】図5は、この種の制御用マイクロコンピュ
ータ装置の構成図である。FIG. 5 is a block diagram of this type of control microcomputer device.
【0006】制御用マイクロコンピュータ装置1は、主
制御部2とアプリケーションメモリ3とを備え、主制御
部2には外部のプロセス入出力装置4との間でプロセス
入力信号線5とプロセス出力信号線6で接続され、保守
ツール7と保守信号線8で接続されている。The control microcomputer device 1 comprises a main control unit 2 and an application memory 3, and the main control unit 2 is connected to an external process input / output device 4 through a process input signal line 5 and a process output signal line. 6, and the maintenance tool 7 and the maintenance signal line 8 are connected.
【0007】主制御部2は、アドレス信号線9によって
アプリケーションメモリ3と接続され、さらに、主制御
部2はデータ信号線10によってアプリケーションメモ
リ3と接続されている。そして、読み書き信号線18が
主制御部2とアプリケーションメモリ3との間に接続さ
れている。The main controller 2 is connected to the application memory 3 by an address signal line 9, and the main controller 2 is connected to the application memory 3 by a data signal line 10. The read / write signal line 18 is connected between the main controller 2 and the application memory 3.
【0008】まず、初めに主制御部2は、図6に示す処
理手順により、プロセス入出力装置4からプロセス入力
信号線5を介してプロセス入力信号を入力し、入力が終
了すると、プロセス入力信号に基づいてアプリケーショ
ンプログラムによる演算を開始する(101,10
2)。First, the main control unit 2 inputs a process input signal from the process input / output device 4 through the process input signal line 5 according to the processing procedure shown in FIG. Based on, the calculation by the application program is started (101, 10
2).
【0009】このとき、主制御部2は、アドレス信号線
9を介してアドレス信号A0〜An−1を順次アプリケ
ーションメモリ3へ出力してアクセスする。これによ
り、主制御部2はデータ信号線10を介してプロセス制
御に使用するアプリケーションプログラムを取り込み順
次演算を実行する。At this time, the main controller 2 sequentially outputs the address signals A0 to An-1 via the address signal line 9 to the application memory 3 for access. As a result, the main control unit 2 takes in the application program used for process control via the data signal line 10 and executes the sequential calculation.
【0010】そして、主制御部2はアプリケーションメ
モリ3に格納された全てのアプリケーションプログラム
による演算を実行すると、プロセス出力信号線6からプ
ロセス出力信号をプロセス入出力装置4へ出力する(1
03)。その後、保守ツール7と保守信号線8を介して
対話がされ、次の処理に移行する(104)。When the main control unit 2 executes the calculation by all the application programs stored in the application memory 3, it outputs the process output signal from the process output signal line 6 to the process input / output device 4 (1
03). After that, the maintenance tool 7 and the maintenance signal line 8 interact with each other, and the process proceeds to the next process (104).
【0011】一方、従来より制御用マイクロコンピュー
タ装置が二重化され、二重化された装置間でタイミング
の同期を図りながら、プロセスデータの入出力処理およ
びアプリケーションプログラムによる演算処理を繰り返
し実行することにより、プロセス制御を行っている同期
二重制御用マイクロコンピュータ装置が知られている。On the other hand, the control microcomputer device has been duplicated in the related art, and the process control is performed by repeatedly executing the process data input / output process and the application program arithmetic process while synchronizing the timing between the duplicated devices. There is known a microcomputer device for synchronous dual control which performs the above.
【0012】このような制御用マイクロコンピュータ装
置では、常に同一の動作を実行するために両系装置内の
演算処理を行うアプリケーションプログラムが必ず同一
でなければならない。従って、制御装置内のアプリケー
ションプログラムを変更する場合、両系制御装置を同一
のタイミングで同一のアプリケーションプログラムに変
更する必要がある。In such a control microcomputer device, application programs for performing arithmetic processing in both system devices must be the same in order to always execute the same operation. Therefore, when changing the application program in the control device, it is necessary to change both system control devices to the same application program at the same timing.
【0013】図7は、上記した同期二重化された制御用
マイクロコンピュータ装置の一例を示す構成図である。FIG. 7 is a block diagram showing an example of the above-mentioned synchronously duplicated control microcomputer device.
【0014】図において、二重化された制御用マイクロ
コンピュータ装置1a,1bには、それぞれ同一構成の
主制御部2a,2bが設けられ、さらに同一構成のアプ
リケーションメモリ3a,3bが対応して設けられ、こ
れらの間はアドレス信号線9a,9bとデータ信号線1
0a,10bによって接続されている。In the figure, the duplicated control microcomputer devices 1a and 1b are provided with main control units 2a and 2b having the same structure, respectively, and further provided with application memories 3a and 3b having the same structure, respectively. Between these, the address signal lines 9a and 9b and the data signal line 1
They are connected by 0a and 10b.
【0015】主制御部2a,2bは、1台のプロセス入
出力装置4とそれぞれプロセス入力信号線5a,5bに
よって接続されると共に、プロセス出力信号線6a,6
bによって接続され、一方の主制御部2aは保守ツール
7と保守信号線8によって接続されている。また、主制
御部2a,2bとアプリケーションメモリ3a,3bと
の間は、読み書き信号線18a,18bにより接続され
ている。The main control units 2a and 2b are connected to one process input / output device 4 by process input signal lines 5a and 5b, respectively, and process output signal lines 6a and 6b.
The main control unit 2a is connected by the maintenance tool 7 and the maintenance signal line 8. The main control units 2a, 2b and the application memories 3a, 3b are connected by read / write signal lines 18a, 18b.
【0016】また、主制御部2aと主制御部2bとの間
には、データ交換信号送信制御部11a,11bとデー
タ交換信号受信制御部12a,12bが配置され、これ
らはデータ交換出力信号線13a,13bとデータ交換
入力信号線14a,14bで接続され、相互にデータ交
換信号線15a,15bにより接続されている。Data exchange signal transmission control units 11a and 11b and data exchange signal reception control units 12a and 12b are arranged between the main control unit 2a and the main control unit 2b, and these are data exchange output signal lines. Data exchange input signal lines 14a and 14b are connected to 13a and 13b, and data exchange signal lines 15a and 15b are connected to each other.
【0017】まず、二重化された制御用マイクロコンピ
ュータ装置1a,1bは、図8に示す処理手順によって
主制御部2a,2bが、データ交換信号送信制御部11
a,11bに対して、データ交換出力信号線13a,1
3bを介してデータ交換出力信号(ダミー:意味無信
号)を出力する。First, in the duplicated control microcomputer devices 1a and 1b, the main control units 2a and 2b have the data exchange signal transmission control unit 11 according to the processing procedure shown in FIG.
Data exchange output signal lines 13a, 1 for a, 11b
A data exchange output signal (dummy: meaningless signal) is output via 3b.
【0018】データ交換出力信号を検出したデータ交換
信号送信制御部11a,11bは、データ交換信号線1
5a,15bを介してデータ交換信号を相手系の制御用
マイクロコンピュータ装置に対して相互に出力する(2
01a,201b)。The data exchange signal transmission control units 11a and 11b which detect the data exchange output signal are connected to the data exchange signal line 1
Data exchange signals are mutually output to the control microcomputer device of the partner system via 5a and 15b (2
01a, 201b).
【0019】データ交換信号を検出したデータ交換信号
受信制御部12a,12bは、主制御部2a,2bに対
してデータ交換信号を検出した旨をデータ交換入力信号
線14a,14bを介してデータ交換入力信号を出力す
る(202a,202b)。The data exchange signal reception control units 12a and 12b, which have detected the data exchange signal, exchange data to the main control units 2a and 2b via the data exchange input signal lines 14a and 14b to the effect that the data exchange signal has been detected. The input signal is output (202a, 202b).
【0020】データ交換出力信号を出力した主制御部2
a,2bは、相手系制御用マイクロコンピュータ装置1
a,1bが発信元となるデータ交換入力信号を検出す
る。これにより、主制御部2a,2bはプロセス入出力
装置4からのデータ入力のための同期がとれたとして、
プロセス入力信号線5a,5bを介してプロセス入力信
号を同期して入力する(203a,203b)。Main control unit 2 which outputs a data exchange output signal
a and 2b are microcomputer devices 1 for controlling the partner system
The data exchange input signal originating from a and 1b is detected. As a result, the main control units 2a and 2b are assumed to be synchronized for data input from the process input / output device 4,
Process input signals are synchronously input via the process input signal lines 5a and 5b (203a and 203b).
【0021】プロセス入力信号の入力が終了した主制御
部2a,2bは、プロセス入力信号に従ってアプリケー
ションプログラムによる演算処理を実行する(204
a,204b)。After the input of the process input signal is completed, the main control units 2a and 2b execute arithmetic processing by the application program according to the process input signal (204).
a, 204b).
【0022】ここで、制御用マイクロコンピュータ装置
1aのアプリケーションプログラムは、アプリケーショ
ンメモリ3aに格納されており、また、制御用マイクロ
コンピュータ装置1bのアプリケーションプログラム
は、アプリケーションメモリ3bに格納されている。The application program of the control microcomputer device 1a is stored in the application memory 3a, and the application program of the control microcomputer device 1b is stored in the application memory 3b.
【0023】主制御部2a,2b各々は、アプリケーシ
ョンメモリ3aあるいはアプリケーションメモリ3bを
アクセスし、二重化両系で同一の演算を実行する。Each of the main control units 2a and 2b accesses the application memory 3a or the application memory 3b and executes the same operation in both duplex systems.
【0024】アプリケーションプログラムによる同一の
演算処理を実施した主制御部2a,2bは、プロセス入
力信号の入力のときと同様に、データ交換信号送信制御
部11a,11bおよびデータ交換信号受信制御部12
a,12b等を用い、プロセス入出力装置4に対するデ
ータ出力を行うための同期処理を実行する(205a,
206a,205b,206b)。The main control units 2a and 2b which have performed the same arithmetic processing by the application program have the data exchange signal transmission control units 11a and 11b and the data exchange signal reception control unit 12 similarly to when the process input signal is input.
a, 12b, etc. are used to execute a synchronous process for outputting data to the process input / output device 4 (205a,
206a, 205b, 206b).
【0025】プロセス入出力装置4に対するデータ出力
のための同期がとれた主制御部2a,2bは、プロセス
入出力装置4へプロセス出力信号線6a,6bを介して
プロセス信号を出力する(207a,207b)。The synchronized main control units 2a and 2b for outputting data to the process input / output device 4 output process signals to the process input / output device 4 via the process output signal lines 6a and 6b (207a, 207a, 207b).
【0026】続いて、プロセス入出力装置4に対するプ
ロセス入力信号の入力およびアプリケーションプログラ
ムによる演算、プロセス出力信号の出力が終了した主制
御部2a,2bは、保守ツール7からの保守信号線8を
介して対話処理をする(208a,208b)。以上の
処理を繰り返す。Subsequently, the main control units 2a and 2b, which have finished inputting the process input signal to the process input / output device 4, calculation by the application program, and output of the process output signal, pass through the maintenance signal line 8 from the maintenance tool 7. Interactive processing (208a, 208b). The above process is repeated.
【0027】[0027]
【発明が解決しようとする課題】しかしながら、図5に
示した制御用マイクロコンピュータ装置1では、装置内
のアプリケーションプログラムを変更する場合、一度装
置のプロセス制御自身を停止状態とした後、装置内のア
プリケーションプログラムを変更し再び制御を再開させ
ることとなり、制御システム全体の機能停止状態を発生
させてしまうという問題がある。However, in the control microcomputer device 1 shown in FIG. 5, when the application program in the device is changed, the process control itself of the device is once stopped and then There is a problem in that the application program is changed and the control is restarted again, which causes a function stop state of the entire control system.
【0028】すなわち、制御用マイクロコンピュータ装
置1がプロセス制御の実行中は、アプリケーションプロ
グラムによる演算が高速に繰り返し実行されている。従
って、装置のプロセス制御周期に影響を与えることな
く、アプリケーションプログラムを変更するためには、
変更後のアプリケーションプログラム情報を保守ツール
7を用いてより小量づつに分割して装置のアプリケーシ
ョンメモリ3に格納することが望ましい。That is, while the control microcomputer device 1 is executing the process control, the calculation by the application program is repeatedly executed at high speed. Therefore, in order to change the application program without affecting the process control cycle of the device,
It is desirable to divide the changed application program information into smaller pieces by using the maintenance tool 7 and store them in the application memory 3 of the apparatus.
【0029】ところが、アプリケーションプログラムメ
モリ3に変更前/後のアプリケーションプログラムを混
在させると、意図する演算が実施されず、装置として誤
演算、誤出力が行われる可能性がある。However, if the application programs before and after the change are mixed in the application program memory 3, the intended operation may not be performed, and there is a possibility that an erroneous operation and an erroneous output may be performed as the device.
【0030】この状態を避けるために、制御用マイクロ
コンピュータ装置1のアプリケーションプログラムを変
更する場合には、変更後の全てのアプリケーションプロ
グラム情報をメモリに一括書き込みする必要があるが、
この一括書き込みには多くの処理時間が必要となり、そ
の処理時間中は制御用マイクロコンピュータ装置1の演
算機能を停止せざるを得ない。In order to avoid this state, when the application program of the control microcomputer device 1 is changed, it is necessary to write all the changed application program information in the memory all at once.
A lot of processing time is required for this batch writing, and the arithmetic function of the control microcomputer device 1 must be stopped during the processing time.
【0031】このため、制御用マイクロコンピュータ装
置1内のアプリケーションプログラムを変更する場合に
は、プロセス制御を一時的に停止させた状態とした上
で、保守ツール7により制御装置のアプリケーションプ
ログラムメモリ3に変更後の全アプリケーションプログ
ラム情報を書き込み、全ての書き込みが終了した時点で
プロセス制御を再び開始させるようにしている。Therefore, when the application program in the control microcomputer device 1 is changed, the process control is temporarily stopped, and then the maintenance tool 7 stores it in the application program memory 3 of the control device. All the changed application program information is written, and the process control is restarted when all the writing is completed.
【0032】また、図7に示した同期二重制御用マイク
ロコンピュータ装置1a,1bは、二重両系で同一のア
プリケーションプログラムを実行するために、アプリケ
ーションプログラムを変更する場合には、同期二重運転
中の制御装置を片系停止状態とした一重運転に縮退させ
た後に、個々の制御装置に保守ツールを接続し、個々の
制御装置内のアプリケーションプログラムを変更後、同
期二重運転に復旧させていた。Further, the synchronous duplex control microcomputer apparatuses 1a and 1b shown in FIG. 7 execute synchronous duplex control when the application program is changed in order to execute the same application program in both duplex systems. After degrading the operating control unit to single operation with one system stopped, connect a maintenance tool to each control unit, change the application program in each control unit, and restore to synchronous dual operation. Was there.
【0033】すなわち、アプリケーションプログラムを
変更する場合、最初に一方の装置を制御停止状態とした
後、停止した制御装置内のアプリケーションプログラム
を変更後のアプリケーションプログラムに書き換える。That is, when changing the application program, first, one of the devices is brought into the control stop state, and then the stopped application program in the control device is rewritten with the changed application program.
【0034】次に、もう一方の装置も制御停止状態とし
た後、先に停止させアプリケーションプログラムの書き
換えが完了している装置の制御を再開させ、続いて後に
停止した制御装置のアプリケーションプログラムを変更
後のアプリケーションプログラムに書き換えた後制御を
再開させ二重化運転に復帰させるという操作を行ってい
る。Next, after the other device is also brought into the control stop state, it is first stopped and the control of the device for which the rewriting of the application program is completed is restarted, and subsequently the application program of the stopped control device is changed. After rewriting to the application program later, the control is restarted and the operation is returned to the duplex operation.
【0035】この操作のために多くの時間を費やすと共
に、誤操作を誘発するおそれがあり、システムの稼働率
や信頼性を低下することになるという問題があった。There is a problem in that a lot of time is spent for this operation and there is a possibility of causing an erroneous operation, which lowers the operating rate and reliability of the system.
【0036】そこで、本発明の目的は、制御機能を停止
させることなくアプリケーションプログラムの変更を可
能とする制御用マイクロコンピュータ装置を提供するこ
とにある。Therefore, an object of the present invention is to provide a control microcomputer device capable of changing an application program without stopping the control function.
【0037】[0037]
【課題を解決するための手段】請求項1の発明は、プロ
セス入出力装置から取り込まれたプラントのプロセス入
力信号をアプリケーションプログラムに従って制御演算
を実行して制御信号をプロセス出力信号としてプロセス
入出力装置を介してプラントへ出力すると共に、外部か
らアプリケーションプログラムを変更する保守要求があ
ると、アプリケーションプログラムの保守処理を実行す
る制御用マイクロコンピュータ装置において、変更する
アプリケーションプログラムを適宜分割して順次保守要
求を実行し、全部の変更するアプリケーションプログラ
ムの保守要求が完了するとメモリ切替信号を出力する保
守ツールと、アプリケーションプログラムを格納するた
めの2つのアプリケーションプログラムメモリと、これ
らのアプリケーションプログラムメモリの一方のアプリ
ケーションメモリに格納されたアプリケーションプログ
ラムによって制御演算を処理実行するときに、保守ツー
ルからの保守要求により分割された変更するアプリケー
ションプログラムを順次取り込み、他方のアプリケーシ
ョンプログラムメモリへ格納する主制御部と、メモリ切
替信号により他方のアプリケーションプログラムメモリ
に格納されたアプリケーションプログラムにより制御演
算を実行するように切替えると共に、一方のアプリケー
ションプログラムメモリへ変更するアプリケーションプ
ログラムを格納するように切替える切替手段とを設ける
ようにしたものである。According to the present invention, a process input / output device of a plant fetched from a process input / output device is subjected to control calculation according to an application program and the control signal is used as a process output signal. When there is a maintenance request for changing the application program from the outside while outputting to the plant via the, the control microcomputer device that executes the maintenance processing of the application program appropriately divides the application program to be changed and sequentially requests the maintenance request. A maintenance tool that executes and outputs a memory switching signal when the maintenance request for all the changed application programs is completed, two application program memories for storing the application programs, and these application programs. Application program memory stored in one of the application programs, the control program is processed and executed, and the changed application programs divided by the maintenance request from the maintenance tool are sequentially fetched and stored in the other application program memory. A main control unit and a switching means for switching to execute a control operation by an application program stored in the other application program memory by a memory switching signal, and for switching to store an application program to be changed in one application program memory; Is provided.
【0038】請求項2の発明は、プロセス入出力装置か
ら取り込まれたプラントのプロセス入力信号をアプリケ
ーションプログラムに従って制御演算を実行して制御信
号をプロセス出力信号としてプロセス入出力装置を介し
てプラントへ出力すると共に、外部からアプリケーショ
ンプログラムを変更する保守要求があると、アプリケー
ションプログラムの保守処理を実行する2つの主制御部
と、これら主制御部に対応して制御演算による処理およ
び保守処理を同期して実行するためにデータ交換信号を
送信するデータ交換信号送信制御部と、データ交換信号
を受信するデータ交換信号受信制御部とを有する二重化
された制御用マイクロコンピュータ装置において、変更
するアプリケーションプログラムを適宜分割して順次保
守要求を実行し、全部の変更するアプリケーションプロ
グラムの保守要求が完了するとメモリ切替信号を出力す
る保守ツールと、アプリケーションプログラムを格納し
主制御部に対応してそれぞれ2つ設けられるアプリケー
ションプログラムメモリと、それぞれの主制御部に設け
られるデータ交換信号を相互に交換して一方のアプリケ
ーションメモリのアプリケーションプログラムを用いて
制御演算を実行するときに、保守要求により分割された
変更するアプリケーションプログラムを他方のアプリケ
ーションメモリへ順次格納する手段と、主制御部に対応
して設けられるメモリ切替信号により他方のアプリケー
ションメモリに格納されたアプリケーションプログラム
により制御演算を実行するように切替える一方、一方の
アプリケーションプログラムメモリへ変更するアプリケ
ーションプログラムを格納するように切替える切替手段
とを有するようにしたものである。According to the second aspect of the invention, the process input signal of the plant taken in from the process input / output device is subjected to control calculation according to the application program, and the control signal is output as a process output signal to the plant via the process input / output device. In addition, when there is a maintenance request to change the application program from the outside, the two main control units that execute the maintenance process of the application program and the process by the control calculation and the maintenance process corresponding to these main control units are synchronized. In a duplicated control microcomputer device having a data exchange signal transmission control unit for transmitting a data exchange signal for execution and a data exchange signal reception control unit for receiving a data exchange signal, an application program to be changed is appropriately divided. And perform maintenance requests sequentially, When a maintenance request for an application program to be changed by a unit is completed, a maintenance tool that outputs a memory switching signal, two application program memories that store the application program and are provided corresponding to the main control units, and the main control units are provided. A means for sequentially storing, in the other application memory, the application programs to be changed, which are divided by the maintenance request, when mutually exchanging the provided data exchange signals and executing the control operation using the application program of the one application memory. , One of the application program memories is switched to execute the control operation by the application program stored in the other application memory by the memory switching signal provided corresponding to the main control unit. Switch to store an application program that changes is obtained so as to have a switching means.
【0039】請求項3の発明は、請求項1または請求項
2記載の制御用マイクロコンピュータ装置において、切
替手段は、パルス状の前記メモリ切替信号の入力毎にO
N信号とOFF信号とを交互に反転したアプリケーショ
ンメモリ切替信号を出力するフリップフロップ回路と、
アプリケーションメモリ切替信号と主制御部からの保守
要求信号との排他的論理和をとって選択信号を出力する
排他的論理和回路と、選択信号と主制御部からのアプリ
ケーションメモリアクセス信号との論理積の成立により
一方のアプリケーションメモリへ切替えるように一方の
アプリケーションメモリ選択信号を出力する一方のAN
Dゲート回路と、選択信号を否定回路により反転した信
号とアプリケーションメモリアクセス信号との論理積の
成立により他方のアプリケーションメモリへ切替えるよ
うに他方のアプリケーションメモリ選択信号を出力する
他方のANDゲート回路とを設けるようにしたものであ
る。According to a third aspect of the present invention, in the control microcomputer device according to the first or second aspect, the switching means sets O for each input of the pulsed memory switching signal.
A flip-flop circuit that outputs an application memory switching signal by alternately inverting the N signal and the OFF signal;
An exclusive OR circuit that outputs the selection signal by taking the exclusive OR of the application memory switching signal and the maintenance request signal from the main control unit, and the logical product of the selection signal and the application memory access signal from the main control unit One AN that outputs one application memory selection signal so as to switch to one application memory when
The D gate circuit and the other AND gate circuit which outputs the other application memory selection signal so as to switch to the other application memory when the logical product of the signal obtained by inverting the selection signal by the NOT circuit and the application memory access signal is established. It is provided.
【0040】[0040]
【作用】請求項1の発明によれば、一方のアプリケーシ
ョンメモリのアプリケーションプログラムを用いて制御
演算を実行しているとき、変更するアプリケーションプ
ログラムを分割し、順次他方のアプリケーションメモリ
へ格納し、メモリ切替信号により実行するアプリケーシ
ョンプログラムを新たなアプリケーションプログラムメ
モリへ切替えることができる。このために制御周期およ
び演算制御に影響を与えることがなく、新たなアプリケ
ーションプログラムメモリへ切替えることができる。従
って、運転中の制御用マイクロコンピュータ装置を保守
のために停止させることなく、アプリケーションプログ
ラムの保守作業が可能となり、システムの稼働率、信頼
性が向上すると共に、保守作業が簡素化される。According to the first aspect of the present invention, when the control operation is executed using the application program of one application memory, the application program to be changed is divided and sequentially stored in the other application memory, and the memory is switched. The application program executed by the signal can be switched to a new application program memory. Therefore, it is possible to switch to a new application program memory without affecting the control cycle and the arithmetic control. Therefore, the maintenance work of the application program can be performed without stopping the control microcomputer device in operation for maintenance, the system operation rate and reliability are improved, and the maintenance work is simplified.
【0041】請求項2の発明によれば、一方のアプリケ
ーションメモリのアプリケーションプログラムを用いて
制御演算を実行しているとき、変更するアプリケーショ
ンプログラムを分割し、順次いずれか他方のアプリケー
ションメモリへ格納し、メモリ切替信号により実行する
アプリケーションプログラムを新たなアプリケーション
プログラムへ切替えることができる。この結果、両系制
御用マイクロコンピュータ装置の制御を一切停止させる
ことなく、両系制御用マイクロコンピュータ装置が実行
するアプリケーションプログラムを新たな変更するアプ
リケーションプログラムに切替えることができる。従っ
て、従来のように保守のために一重運転や両系装置の完
全停止等とすることなく、アプリケーションプログラム
保守作業が可能となり、システムの稼働率、信頼性が向
上すると共に、保守作業が簡素化される。According to the second aspect of the present invention, when the control operation is executed by using the application program in one of the application memories, the application program to be changed is divided and sequentially stored in one of the other application memories, The application program to be executed can be switched to a new application program by the memory switching signal. As a result, it is possible to switch the application program executed by the microcomputer for controlling both systems to a newly changed application program without stopping the control of the microcomputer for controlling both systems. Therefore, it is possible to perform application program maintenance work without having to perform single operation or complete stoppage of both system devices for maintenance as in the past, improving system operation rate and reliability and simplifying maintenance work. To be done.
【0042】[0042]
【実施例】以下、本発明の実施例について図面を参照し
て説明する。Embodiments of the present invention will be described below with reference to the drawings.
【0043】図1は、本発明の第1実施例を示す制御用
マイクロコンピュータ装置の構成図である。FIG. 1 is a block diagram of a control microcomputer device showing a first embodiment of the present invention.
【0044】図1が従来例を示す図5と同一符号は同一
部分または相当部分を示し、図1はアプリケーションメ
モリ3と同一構成のアプリケーションメモリ20を新た
に設ける一方、アプリケーションメモリ3またはアプリ
ケーションメモリ20のいずれか一方をプロセス制御に
用いるアプリケーションプログラムの領域として、他方
を保守すべき新しいアプリケーションプログラムの領域
に割当て、他方のアプリケーションプログラムの領域に
新しいアプリケーションプログラムが書き込まれた後
に、一方と他方とを切替える切替手段23を設けてい
る。FIG. 1 shows a conventional example, and the same reference numerals as those in FIG. 5 indicate the same or corresponding portions. In FIG. One of the two is allocated as the area of the application program used for process control, the other is allocated to the area of the new application program to be maintained, and after the new application program is written in the area of the other application program, the other is switched. A switching means 23 is provided.
【0045】制御用マイクロコンピュータ装置1は、ア
プリケーションメモリ3へのアドレス信号線9が延設さ
れアドレス信号線21としてアプリケーションメモリ2
0へ接続され、アプリケーションメモリ20から新たに
データ信号線22がアプリケーションメモリ3からのデ
ータ信号線10に接続して主制御部2に対してアプリケ
ーションメモリ3とアプリケーションメモリ20とが並
列に接続されている。In the control microcomputer device 1, the address signal line 9 to the application memory 3 is extended and the application memory 2 is used as the address signal line 21.
0, the data signal line 22 is newly connected from the application memory 20 to the data signal line 10 from the application memory 3, and the application memory 3 and the application memory 20 are connected in parallel to the main control unit 2. There is.
【0046】切替手段23は、JKフリップフロップ回
路24とXORゲート回路25とANDゲート回路26
とANDゲート回路27とNOTゲート回路28とから
構成されている。The switching means 23 includes a JK flip-flop circuit 24, an XOR gate circuit 25, and an AND gate circuit 26.
And an AND gate circuit 27 and a NOT gate circuit 28.
【0047】すなわち、JKフリップフロップ回路24
には、主制御部2からのメモリ切替指令信号線30が入
力側に接続され、その出力側からメモリ切替信号線31
がXORゲート回路25の一方の入力側へ接続されてい
る。That is, the JK flip-flop circuit 24
Is connected to the input side of the memory switching command signal line 30 from the main control unit 2, and from the output side of the memory switching signal line 31.
Are connected to one input side of the XOR gate circuit 25.
【0048】また、XORゲート回路25の他方の入力
側には、主制御部2からの保守要求のための保守用入力
信号線32が接続され、XORゲート回路25の出力信
号線33がANDゲート回路26とNOTゲート回路2
8を介してANDゲート回路27へそれぞれ接続されて
いる。Further, the other input side of the XOR gate circuit 25 is connected to a maintenance input signal line 32 for a maintenance request from the main control unit 2, and an output signal line 33 of the XOR gate circuit 25 is an AND gate. Circuit 26 and NOT gate circuit 2
8 are connected to AND gate circuits 27, respectively.
【0049】一方、ANDゲート回路26とANDゲー
ト回路27へは主制御部2からアプリケーションメモリ
アクセス信号線34が接続されている。そして、その出
力側は、それぞれアプリケーションメモリ3へアプリケ
ーションメモリ選択信号線35が接続され、また、アプ
リケーションメモリ20へアプリケーションメモリ選択
信号線36が接続されている。さらに、メモリを読み書
きするための読み書き信号線18,19が主制御部2と
アプリケーションメモリ3とアプリケーションメモリ2
0との間に設けられている。On the other hand, an application memory access signal line 34 is connected from the main controller 2 to the AND gate circuit 26 and the AND gate circuit 27. On the output side, the application memory selection signal line 35 is connected to the application memory 3 and the application memory selection signal line 36 is connected to the application memory 20. Further, read / write signal lines 18 and 19 for reading / writing the memory are provided with the main controller 2, the application memory 3, and the application memory 2.
It is provided between 0 and.
【0050】以上の構成で、図2に示す処理手順を参照
して説明すると、主制御部2は、プロセス入出力装置4
からのプロセス入力信号線5を介してプロセス信号を入
力し、プロセス入力信号の入力が終了すると、このプロ
セス入力信号を用いてアプリケーションプログラムによ
る演算処理を実施する(301)。With the above configuration, the process will be described with reference to the processing procedure shown in FIG.
A process signal is input via the process input signal line 5 from the input terminal, and when the input of the process input signal is completed, the arithmetic processing by the application program is performed using the process input signal (301).
【0051】ここで、制御用マイクロコンピュータ装置
1のアプリケーションプログラムは、アプリケーション
メモリ3またはアプリケーションメモリ20のいずれか
に格納されており、主制御部2は、このアプリケーショ
ンプログラムを格納したアプリケーションメモリ3また
はアプリケーションメモリ20を以下の手順でアクセス
することにより、アプリケーションプログラムを得て必
要な演算を実施する(302)。Here, the application program of the control microcomputer device 1 is stored in either the application memory 3 or the application memory 20, and the main control section 2 uses the application memory 3 or the application storing the application program. By accessing the memory 20 in the following procedure, an application program is obtained and necessary calculations are performed (302).
【0052】まず、初めに主制御部2は、アプリケーシ
ョンメモリ3およびアプリケーションメモリ20をアク
セスする旨の信号をアプリケーションメモリアクセス信
号線34を介して出力すると共に、プロセス制御に使用
するアプリケーションプログラムを得るために、保守用
信号線32を介して信号An「0」とした信号を出力す
る。First, the main control section 2 outputs a signal indicating that the application memory 3 and the application memory 20 are to be accessed through the application memory access signal line 34, and obtains an application program used for process control. Then, the signal that is the signal An “0” is output via the maintenance signal line 32.
【0053】一方、アプリケーションメモリ切替指令信
号線30の信号は、「0」であり、また、JKフリップ
フロップ回路24の出力信号であるアプリケーションメ
モリ切替信号線31は、「1」の値を取っている。この
状態で、JKフリップフロップ回路24のアプリケーシ
ョンメモリ切替信号線31と主制御部2から出力された
保守用信号線32内の信号Anを入力したXORゲート
回路25は、2つの入力信号をXORした結果の信号
「1」を出力信号線33へ出力する。On the other hand, the signal of the application memory switching command signal line 30 is "0", and the application memory switching signal line 31 which is the output signal of the JK flip-flop circuit 24 takes the value of "1". There is. In this state, the XOR gate circuit 25, to which the application memory switching signal line 31 of the JK flip-flop circuit 24 and the signal An in the maintenance signal line 32 output from the main control unit 2 are input, XORs the two input signals. The resulting signal “1” is output to the output signal line 33.
【0054】この出力信号線33の信号「1」は、主制
御部2から出力されたアプリケーションメモリアクセス
信号線34の「1」の信号と共に、ANDゲート回路2
6に入力される。ANDゲート回路26では、2つの入
力信号「1」をANDした結果の信号「1」がアプリケ
ーションメモリ選択信号線35としてアプリケーション
メモリ3へ出力される。The signal "1" on the output signal line 33, together with the signal "1" on the application memory access signal line 34 output from the main control unit 2, is combined with the AND gate circuit 2
6 is input. In the AND gate circuit 26, the signal “1” obtained by ANDing the two input signals “1” is output to the application memory 3 as the application memory selection signal line 35.
【0055】これによって、アプリケーションメモリ選
択信号線35の信号「1」を検出したアプリケーション
メモリ3は、自身のメモリが選択されとして、アドレス
信号線9を介してアドレス信号A0からAn−1の信号
にて選択された自メモリ内のデータをデータ信号線10
から出力する。As a result, the application memory 3 which has detected the signal "1" on the application memory selection signal line 35 changes its address from the address signal A0 to the signal An-1 through the address signal line 9 as its own memory is selected. The data in the own memory selected by the data signal line 10
Output from.
【0056】主制御部2は、アプリケーションメモリ3
から取り出したデータをデータ信号線10を介して主制
御部2は入力する。この結果、主制御部2はプロセス制
御に使用するアプリケーションプログラムの1情報を得
ることができる。The main control unit 2 includes an application memory 3
The main control unit 2 inputs the data extracted from the data signal line 10. As a result, the main control unit 2 can obtain one piece of information of the application program used for process control.
【0057】以後、主制御部2は、上記同様の操作で自
身が出力するアドレス信号を順次更新していくことによ
り、全てのアプリケーションプログラム情報を得ながら
プロセス制御のための全ての演算を実行する。After that, the main control section 2 sequentially updates the address signals output by itself by the same operation as described above, thereby executing all calculations for process control while obtaining all application program information. .
【0058】このような手順により、アプリケーション
メモリ3に格納された全てのアプリケーションプログラ
ムによる演算が実施される。その後主制御部2は、プロ
セス入出力装置4に対するプロセス出力信号線6を介し
てプロセス出力信号を出力する(303)。By such a procedure, the calculation is executed by all the application programs stored in the application memory 3. After that, the main controller 2 outputs a process output signal via the process output signal line 6 to the process input / output device 4 (303).
【0059】次に、プロセス入出力装置4に対するプロ
セス入力信号線5の信号の入力および演算、プロセス出
力信号線6の信号の出力が終了すると、主制御部2は、
次に保守ツール7からの保守信号線8を介して信号を検
索する(304)。Next, when the input and calculation of the signal of the process input signal line 5 to the process input / output device 4 and the output of the signal of the process output signal line 6 are completed, the main control section 2
Next, a signal is searched for through the maintenance signal line 8 from the maintenance tool 7 (304).
【0060】このとき、保守ツール7が保守信号線8を
介してアプリケーションプログラムを変更保守するため
の有効な保守情報を示している場合、主制御部2は、そ
の保守情報を以下の手順にてアプリケーションメモリ2
0に保存する。At this time, if the maintenance tool 7 indicates effective maintenance information for changing and maintaining the application program through the maintenance signal line 8, the main control unit 2 uses the maintenance information in the following procedure. Application memory 2
Save to 0.
【0061】まず、主制御部2では、保守ツール7より
アプリケーションプログラム変更保守のための有効な保
守信号を入力すると、保守用信号線34の信号を「1」
とすると共に、信号An=「1」としたアドレス信号お
よび保守するアプリケーションプログラム情報をデータ
信号線10から信号を出力する。First, in the main controller 2, when an effective maintenance signal for application program change maintenance is input from the maintenance tool 7, the signal on the maintenance signal line 34 is set to "1".
At the same time, the address signal with the signal An = “1” and the application program information to be maintained are output from the data signal line 10.
【0062】一方、JKフリップフロップ回路24の出
力側であるアプリケーションメモリ切替信号線31の信
号が「1」の値を取っている。このアプリケーションメ
モリ切替信号線31の信号「1」および入力信号線32
の内アドレス信号An=「1」の2つの信号が入力する
XORゲート回路25は、信号「0」を出力する。On the other hand, the signal on the application memory switching signal line 31, which is the output side of the JK flip-flop circuit 24, takes the value of "1". The signal "1" of the application memory switching signal line 31 and the input signal line 32
The XOR gate circuit 25 to which the two signals of the address signal An = “1” are input outputs the signal “0”.
【0063】NOTゲート回路28は、入力信号を反転
して「1」とし、この反転後の信号とアプリケーション
メモリアクセス信号線34を介した信号がANDゲート
回路27へ入力し、ANDゲート回路27では、アプリ
ケーションメモリ選択信号線36を介して信号「1」が
アプリケーションメモリ20へ出力される(305)。The NOT gate circuit 28 inverts the input signal to "1", and the inverted signal and the signal via the application memory access signal line 34 are input to the AND gate circuit 27, and in the AND gate circuit 27. A signal "1" is output to the application memory 20 via the application memory selection signal line 36 (305).
【0064】アプリケーションメモリ20は、自身のメ
モリが選択されたと判断して、主制御部2のアドレス信
号線21を介してアドレス信号A0からAn−1の信号
に対応して選択された自メモリ内に、主制御部2からデ
ータ信号線22を介して保守情報つまり、変更するアプ
リケーションプログラムを書き込む(306)。The application memory 20 judges that its own memory has been selected, and within the own memory selected corresponding to the address signals A0 to An-1 via the address signal line 21 of the main control unit 2. Then, maintenance information, that is, an application program to be changed is written from the main control unit 2 through the data signal line 22 (306).
【0065】主制御部2は、同様の操作で自身が出力す
るアドレス信号およびデータ信号を順次更新していくこ
とにより、保守ツール7より入力した変更するアプリケ
ーションプログラムの全てをアプリケーションメモリ2
0に格納する。The main control section 2 sequentially updates the address signal and the data signal output by itself by the same operation, so that all the application programs to be changed input from the maintenance tool 7 are updated in the application memory 2.
Store in 0.
【0066】主制御部2は、プロセス入出力装置4から
のプロセス入力信号線5からの信号の入力、演算、プロ
セス出力信号線6への出力および保守ツール7からの保
守信号に対する処理を高速に繰り返し実行する。このと
き、保守ツール7からのアプリケーションプログラム変
更保守のための情報が、主制御部2の制御周期に影響を
与えないように、小量づつに分割して主制御部2へ出力
され、主制御部2は、保守ツール7より制御周期毎に分
割して出力されてくるアプリケーションプログラムを順
次アプリケーションメモリ20に蓄えていく。The main control unit 2 speeds up the process of inputting signals from the process input / output device 4 from the process input signal line 5, calculation, output to the process output signal line 6 and maintenance signals from the maintenance tool 7. Execute repeatedly. At this time, the information for changing and maintaining the application program from the maintenance tool 7 is divided into small amounts and output to the main control unit 2 so as not to affect the control cycle of the main control unit 2. The unit 2 sequentially stores application programs, which are output from the maintenance tool 7 in a divided manner for each control cycle, in the application memory 20.
【0067】以上の処理の繰り返しで、全てのアプリケ
ーションプログラムをアプリケーションメモリ20に保
存完了すると、次に保守ツール7からメモリ切替信号が
出力される。When all the application programs have been saved in the application memory 20 by repeating the above processing, the maintenance tool 7 then outputs a memory switching signal.
【0068】このメモリ切替信号を入力した主制御部2
は、アプリケーションメモリ切替指令信号線30へ信号
「1」を出力し、このアプリケーションメモリ切替指令
信号を入力したJKフリップフロップ回路24からのア
プリケーションメモリ切替信号線31の信号が、アプリ
ケーションメモリ切替信号の入力前の「1」から「0」
に反転する。Main control unit 2 to which this memory switching signal is input
Outputs a signal "1" to the application memory switching command signal line 30, and the signal of the application memory switching signal line 31 from the JK flip-flop circuit 24 to which this application memory switching command signal is input is the input of the application memory switching signal. Previous "1" to "0"
Flip to.
【0069】これにより、アプリケーションメモリ切替
信号線31の信号と主制御部2が出力する保守用信号線
32の信号An「0」を入力したXORゲート回路25
の出力が以前の状態から反転して「0」となる。このた
め、NOTゲート回路28を介して信号「1」がAND
ゲート回路27へ入力され、ANDゲート回路27へア
プリケーションメモリアクセス信号線34を介して信号
「1」が入力される。これに伴い制御用マイクロコンピ
ュータ装置1では、保守ツール7から出力された新たに
変更保守されたアプリケーションプログラムを格納した
アプリケーションメモリ20へ切替わる。As a result, the XOR gate circuit 25 to which the signal of the application memory switching signal line 31 and the signal An "0" of the maintenance signal line 32 output by the main control unit 2 are input.
The output of is inverted from the previous state and becomes "0". Therefore, the signal “1” is ANDed via the NOT gate circuit 28.
The signal “1” is input to the gate circuit 27 and is input to the AND gate circuit 27 via the application memory access signal line 34. Along with this, the control microcomputer device 1 switches to the application memory 20 which stores the newly changed and maintained application program output from the maintenance tool 7.
【0070】この結果、今度は主制御部2が、アプリケ
ーションメモリ20から新たに変更されたアプリケーシ
ョンプログラムを取り出し演算を行う。As a result, this time, the main control unit 2 retrieves the newly changed application program from the application memory 20 and performs the operation.
【0071】これと逆に、保守要求があると主制御部2
は、信号An=「1」としてANDゲート回路26から
信号「1」をアプリケーションメモリ3へ出力し、アプ
リケーションメモリ3へ切替え、データ信号線10を介
してアプリケーションメモリ3へアプリケーションプロ
グラムを格納する。On the contrary, when there is a maintenance request, the main control unit 2
Outputs the signal “1” from the AND gate circuit 26 to the application memory 3 as the signal An = “1”, switches to the application memory 3, and stores the application program in the application memory 3 via the data signal line 10.
【0072】このように、制御用マイクロコンピュータ
装置1が実行するアプリケーションプログラムを制御用
マイクロコンピュータ装置1の制御周期および演算制御
に影響を与えることなく、保守ツール7から分割しなが
ら制御用マイクロコンピュータ装置1に格納可能となる
と共に、メモリ切替信号によって一瞬の内に制御用マイ
クロコンピュータ装置1が実行するアプリケーションプ
ログラムを新たなアプリケーションプログラムへ切替え
ることができる。As described above, the control microcomputer device 1 is divided from the maintenance tool 7 while the application program executed by the control microcomputer device 1 is not affected by the control cycle and arithmetic control of the control microcomputer device 1. In addition to being able to store the data in No. 1, the application program executed by the control microcomputer device 1 can be switched to a new application program in an instant by the memory switching signal.
【0073】この結果、運転中の制御用マイクロコンピ
ュータ装置1を保守のために停止させることなく、アプ
リケーションプログラムの保守作業が可能となり、シス
テムの稼働率、信頼性が向上すると共に、保守作業が簡
素化される。As a result, the maintenance work of the application program can be performed without stopping the control microcomputer device 1 in operation for maintenance, the system operation rate and reliability are improved, and the maintenance work is simple. Be converted.
【0074】図3は、本発明の第2実施例を示す制御用
マイクロコンピュータ装置の構成図であり、従来例を示
す図7と同一符号は、同一部分または相当部分を示して
いる。FIG. 3 is a block diagram of a control microcomputer device showing a second embodiment of the present invention, and the same reference numerals as in FIG. 7 showing a conventional example indicate the same or corresponding portions.
【0075】図3は、それぞれの制御用マイクロコンピ
ュータ装置1a,1bにアプリケーションメモリ3a,
3bと同一構成のアプリケーションメモリ20a,20
bを新たに設ける一方、アプリケーションメモリ3a,
3bまたはアプリケーションメモリ20a,20bのい
ずれか一方をプロセス制御に用いるアプリケーション領
域として、他方を保守すべき変更するアプリケーション
プログラムの領域に割り当てて、他方の領域に新しいア
プリケーションプログラムが書き込まれた後に、一方と
他方を切替える切替手段23a,23bを設けている。FIG. 3 shows that the control microcomputer devices 1a and 1b are provided with application memory 3a,
Application memories 20a, 20 having the same configuration as 3b
b is newly provided while the application memory 3a,
3b or one of the application memories 20a and 20b is used as an application area for process control, the other is allocated to an area of an application program to be changed to be maintained, and a new application program is written in the other area, and then Switching means 23a and 23b for switching the other are provided.
【0076】制御用マイクロコンピュータ装置1a,1
bは、アプリケーションメモリ3a,3bへのアドレス
信号線9a,9bが延設されアドレス信号線21a,2
1bとしてアプリケーションメモリ20a,20bへ接
続され、アプリケーションメモリ20a,20bから新
たにデータ信号線22a,22bがアプリケーションメ
モリ3a,3bからのデータ信号線10a,10bに接
続して主制御部2a,2bに対してアプリケーションメ
モリ3a,3bとアプリケーションメモリ20a,20
bとが並列に接続されている。そして、読み書き信号線
18a,18bから延びた読み書き信号線19a,19
bがアプリケーションメモリ20a,20bに接続され
ている。Control microcomputer devices 1a, 1
In b, the address signal lines 9a and 9b to the application memories 3a and 3b are extended and the address signal lines 21a and 2b are provided.
1b is connected to the application memories 20a and 20b, and new data signal lines 22a and 22b from the application memories 20a and 20b are connected to the data signal lines 10a and 10b from the application memories 3a and 3b to the main control units 2a and 2b. In contrast, the application memories 3a and 3b and the application memories 20a and 20
b and b are connected in parallel. Then, the read / write signal lines 19a, 19 extending from the read / write signal lines 18a, 18b
b is connected to the application memories 20a and 20b.
【0077】切替手段23a,23bは、JKフリップ
フロップ回路24a,24bとXORゲート回路25
a,25bとANDゲート回路26a,26bとAND
ゲート回路27a,27bとNOTゲート回路28a,
28bとから構成されている。The switching means 23a and 23b are composed of the JK flip-flop circuits 24a and 24b and the XOR gate circuit 25.
a and 25b and AND gate circuits 26a and 26b and AND
The gate circuits 27a and 27b and the NOT gate circuit 28a,
And 28b.
【0078】すなわち、JKフリップフロップ回路24
a,24bには、主制御部2a,2bからのアプリケー
ションメモリ切替指令信号線30a,30bが接続さ
れ、出力側からアプリケーションメモリ切替信号線31
a,31bがXORゲート回路25a,25bの一方の
入力側へ接続されている。That is, the JK flip-flop circuit 24
Application memory switching command signal lines 30a and 30b from the main control units 2a and 2b are connected to a and 24b, and the application memory switching signal line 31 is connected from the output side.
a and 31b are connected to one input side of the XOR gate circuits 25a and 25b.
【0079】また、XORゲート回路25a,25bの
他方の入力側に保守用信号線32a,32bが接続さ
れ、XORゲート回路25a,25bの出力信号線33
a,33bがANDゲート回路26a,26bとNOT
ゲート回路28a,28bを介してANDゲート回路2
7a,27bへそれぞれ接続されている。The maintenance signal lines 32a and 32b are connected to the other input side of the XOR gate circuits 25a and 25b, and the output signal line 33 of the XOR gate circuits 25a and 25b.
a and 33b are AND gate circuits 26a and 26b and NOT
AND gate circuit 2 via gate circuits 28a and 28b
7a and 27b, respectively.
【0080】一方、ANDゲート回路26a,26bと
ANDゲート回路27a,27bへは主制御部2a,2
bからアプリケーションメモリアクセス信号線34a,
34bが接続されている。また、その出力側はそれぞれ
アプリケーションメモリ3a,3bへアプリケーション
メモリ選択信号線35a,35bが接続され、また、ア
プリケーションメモリ20a,20bへアプリケーショ
ンメモリ選択信号線36a,36bが接続されている。On the other hand, the main control units 2a, 2 are connected to the AND gate circuits 26a, 26b and the AND gate circuits 27a, 27b.
b to the application memory access signal line 34a,
34b is connected. On the output side, application memory selection signal lines 35a and 35b are connected to the application memories 3a and 3b, respectively, and application memory selection signal lines 36a and 36b are connected to the application memories 20a and 20b.
【0081】まず、二重化された制御用マイクロコンピ
ュータ装置1a,1bは、図4に示す処理手順によって
主制御部2a,2bが、データ交換信号送信制御部11
a,11bに対して、データ交換出力信号線13a,1
3bを介してデータ交換出力信号(ダミー:意味無信
号)を出力する。First, in the duplicated control microcomputer devices 1a and 1b, the main control units 2a and 2b have the data exchange signal transmission control unit 11 according to the processing procedure shown in FIG.
Data exchange output signal lines 13a, 1 for a, 11b
A data exchange output signal (dummy: meaningless signal) is output via 3b.
【0082】データ交換出力信号を検出したデータ交換
信号送信制御部11a,11bは、データ交換信号線1
5a,15bを介してデータ交換信号を同期二重運転さ
れている相手系の制御用マイクロコンピュータ装置に対
して相互に出力する(401a,401b)。The data exchange signal transmission control units 11a and 11b, which have detected the data exchange output signal, operate on the data exchange signal line 1
The data exchange signals are mutually output via 5a and 15b to the control microcomputer device of the partner system in the synchronous double operation (401a and 401b).
【0083】データ交換信号を検出したデータ交換信号
受信制御部12a,12bは、主制御部2a,2bに対
してデータ交換信号を検出した旨をデータ交換入力信号
線14a,14bを介してデータ交換入力信号を出力す
る(402a,402b)。The data exchange signal reception control units 12a and 12b that have detected the data exchange signal exchange data to the main control units 2a and 2b via the data exchange input signal lines 14a and 14b to the effect that the data exchange signal has been detected. The input signal is output (402a, 402b).
【0084】データ交換出力信号を出力した主制御部2
a,2bは、相手系の制御用マイクロコンピュータ装置
1a,1bが発信元となるデータ交換入力信号を検出す
る。これにより、主制御部2a,2bは、プロセス入出
力装置4からプロセス入力信号線5a,5bを介してプ
ロセス入力信号を同期して入力する(403a,403
b)。Main control unit 2 which outputs a data exchange output signal
a and 2b detect a data exchange input signal originating from the control microcomputer devices 1a and 1b of the partner system. As a result, the main control units 2a and 2b synchronously input the process input signal from the process input / output device 4 via the process input signal lines 5a and 5b (403a and 403).
b).
【0085】ここで、最初、制御用マイクロコンピュー
タ装置1aにより制御演算をするアプリケーションプロ
グラムは、切替手段23aによってアプリケーションメ
モリ3aに格納されており、変更するアプリケーション
プログラムはアプリケーションメモリ20aへ格納する
ようになっている。また、制御用マイクロコンピュータ
装置1bにより制御演算するアプリケーションプログラ
ムは、切替手段23bによってアプリケーションメモリ
3bに格納されており、変更するアプリケーションプロ
グラムはアプリケーションメモリ20bに格納するよう
になっている。Here, first, the application program for performing control calculation by the control microcomputer device 1a is stored in the application memory 3a by the switching means 23a, and the application program to be changed is stored in the application memory 20a. ing. Further, the application program which is controlled and operated by the control microcomputer device 1b is stored in the application memory 3b by the switching means 23b, and the application program to be changed is stored in the application memory 20b.
【0086】主制御部2a,2bの各々は、まず、アプ
リケーションメモリ3a,3bのアプリケーションプロ
グラムを用いて二重化両系で同一の演算を実行する(4
04a,404b)。Each of the main control units 2a and 2b first executes the same operation in both duplex systems using the application programs in the application memories 3a and 3b (4
04a, 404b).
【0087】演算が終了すると、主制御部2a,2b
は、データ交換信号送信制御部11a,11bおよびデ
ータ交換信号受信制御部12a,12b等を用い、プロ
セス入出力装置4に対するデータ出力を行うための同期
処理を実行する(405a,406a,405b,40
6b)。When the calculation is completed, the main control units 2a, 2b
Performs a synchronization process for outputting data to the process input / output device 4 by using the data exchange signal transmission control units 11a and 11b and the data exchange signal reception control units 12a and 12b (405a, 406a, 405b, 40).
6b).
【0088】プロセス入出力装置4に対するデータ出力
のための同期がとれた主制御部2a,2bは、プロセス
入出力装置4に対するプロセス出力信号線6a,6bを
介してプロセス信号を出力する(407a,407
b)。このとき、2つのプロセス信号が一致するときプ
ラントへ出力し、一致しないときはプロセス信号を出力
しない。The synchronized main control units 2a and 2b for outputting data to the process input / output device 4 output process signals via the process output signal lines 6a and 6b to the process input / output device 4 (407a, 407
b). At this time, when the two process signals match, the process signal is output to the plant, and when they do not match, the process signal is not output.
【0089】次に、保守ツール7からの保守信号を検索
する。Next, the maintenance signal from the maintenance tool 7 is searched.
【0090】この検索で、保守信号がアプリケーション
プログラム保守のための有効な保守情報を示している場
合は、主制御部2aは保守情報有りを内部に保存すると
共にデータ交換信号送信制御部11aとデータ交換信号
受信制御部12bと介して主制御部2bへ送信して保守
情報有りを内部に保存する。そして、主制御部2bは保
守情報有りを内部に保存した旨をデータ交換信号送信制
御部11bとデータ交換信号受信制御部12aとを介し
て主制御部2aへ送信する(408a,408b,40
9a,409b,410a,410b,411a,41
1b)。In this search, if the maintenance signal indicates the effective maintenance information for the application program maintenance, the main control unit 2a internally stores the presence of the maintenance information and the data exchange signal transmission control unit 11a and the data. It is transmitted to the main control unit 2b via the exchange signal reception control unit 12b to internally store the presence of maintenance information. Then, the main control unit 2b transmits to the main control unit 2a via the data exchange signal transmission control unit 11b and the data exchange signal reception control unit 12a that the maintenance information is stored internally (408a, 408b, 40).
9a, 409b, 410a, 410b, 411a, 41
1b).
【0091】次に、主制御部2aでは、保守ツール7よ
りアプリケーションプログラム変更保守のための有効な
保守信号を入力すると、保守用信号線34aの信号を
「1」とすると共に、信号An=「1」としたアドレス
信号および保守するアプリケーションプログラム情報を
データ信号線10aから信号を出力する。Next, in the main controller 2a, when a valid maintenance signal for application program change maintenance is input from the maintenance tool 7, the signal on the maintenance signal line 34a is set to "1" and the signal An = "". The address signal of "1" and the application program information to be maintained are output from the data signal line 10a.
【0092】このとき、JKフリップフロップ回路24
aの出力側であるアプリケーションメモ切替信号線31
aの信号が「1」の値を取っている。このためにアプリ
ケーションメモリ選択信号線36aを介して信号「1」
がアプリケーションメモリ20aへ出力される(411
a,412a)。At this time, the JK flip-flop circuit 24
Application memo switching signal line 31 which is the output side of a
The signal a has a value of "1". Therefore, the signal "1" is sent through the application memory selection signal line 36a.
Is output to the application memory 20a (411
a, 412a).
【0093】アプリケーションメモリ20aは、主制御
部2aのアドレス信号線21aを介してアドレス信号A
0からAn−1の信号に対応して選択された保守情報つ
まり、変更するアプリケーションプログラムを書き込
む。The application memory 20a receives the address signal A via the address signal line 21a of the main controller 2a.
The maintenance information selected corresponding to the signals 0 to An-1, that is, the application program to be changed is written.
【0094】一方、主制御部2aは、データ交換信号送
信制御部11aとデータ交換信号受信制御部12bとを
介して主制御部2bへ保守情報を送信する。そして、主
制御部2bは保守情報を受けた旨をデータ交換信号送信
制御部11bとデータ交換信号受信制御部12aとを介
して主制御部2aへ送信する。On the other hand, the main controller 2a transmits maintenance information to the main controller 2b via the data exchange signal transmission controller 11a and the data exchange signal reception controller 12b. Then, the main control unit 2b transmits the fact that the maintenance information has been received to the main control unit 2a via the data exchange signal transmission control unit 11b and the data exchange signal reception control unit 12a.
【0095】主制御部2bでは、主制御部2aよりアプ
リケーションプログラム変更保守のための有効な保守信
号を入力すると、保守用信号線34bの信号を「1」と
すると共に、信号An=「1」としたアドレス信号およ
び保守するアプリケーションプログラム情報をデータ信
号線10bから信号を出力する。In the main controller 2b, when a valid maintenance signal for application program change maintenance is input from the main controller 2a, the signal on the maintenance signal line 34b is set to "1" and the signal An = "1". The address signal and the application program information to be maintained are output from the data signal line 10b.
【0096】このとき、プリケーションメモ切替信号線
31bの信号が「1」の値を取っているためにアプリケ
ーションメモリ選択信号線36bを介して信号「1」が
アプリケーションメモリ20bへ出力される(412
b)。At this time, since the signal on the application memo switching signal line 31b has a value of "1", the signal "1" is output to the application memory 20b via the application memory selection signal line 36b (412).
b).
【0097】アプリケーションメモリ20bは、主制御
部2bのアドレス信号線21bを介してアドレス信号A
0からAn−1の信号に対応して選択された変更するア
プリケーションプログラムを書き込む。The application memory 20b receives the address signal A via the address signal line 21b of the main controller 2b.
The changing application program selected corresponding to signals 0 to An-1 is written.
【0098】主制御部2aと主制御部2bとは、プロセ
ス入出力装置4からのプロセス入力信号線5からの信号
の入力、演算、プロセス出力信号線6への出力および保
守ツール7からの保守信号に対する処理を高速に繰り返
し実行する。The main control section 2a and the main control section 2b are used to input and calculate signals from the process input signal line 5 from the process input / output device 4, output them to the process output signal line 6, and perform maintenance from the maintenance tool 7. The processing for the signal is repeatedly executed at high speed.
【0099】このとき、保守ツール7からのアプリケー
ションプログラム変更保守のための情報が、主制御部2
aと主制御部2bの制御周期に影響を与えないように、
小量づつに分割して主制御部2aへ出力され、主制御部
2aは、保守ツール7より制御周期毎に分割して出力さ
れてくるアプリケーションプログラムを順次アプリケー
ションメモリ20aに蓄えていくと共に、主制御部2a
は、データ交換信号送信制御部11aとデータ交換信号
受信制御部12bとを介して主制御部2bへ保守情報を
送信する。そして、主制御部2bは保守情報を受けた旨
をデータ交換信号送信制御部11bとデータ交換信号受
信制御部12aとを介して主制御部2aへ送信する。こ
れによって、繰り返して分割し送られるアプリケーショ
ンプログラムが順次アプリケーションメモリ20bに蓄
えられる。At this time, the information for changing and maintaining the application program from the maintenance tool 7 is displayed by the main control unit 2.
a so as not to affect the control cycle of the main controller 2b,
The data is divided into small amounts and output to the main control unit 2a. The main control unit 2a sequentially stores application programs, which are output from the maintenance tool 7 in each control cycle, in the application memory 20a. Control unit 2a
Transmits maintenance information to the main control unit 2b via the data exchange signal transmission control unit 11a and the data exchange signal reception control unit 12b. Then, the main control unit 2b transmits the fact that the maintenance information has been received to the main control unit 2a via the data exchange signal transmission control unit 11b and the data exchange signal reception control unit 12a. As a result, application programs that are repeatedly divided and sent are sequentially stored in the application memory 20b.
【0100】以上の処理の繰り返しで、全てのアプリケ
ーションプログラムをアプリケーションメモリ20a,
20bに保存完了すると、次に保守ツール7からメモリ
切替信号が主制御部2aへ出力される。By repeating the above processing, all the application programs are loaded into the application memory 20a,
When the storage in 20b is completed, the maintenance tool 7 then outputs a memory switching signal to the main controller 2a.
【0101】このメモリ切替信号を入力した主制御部2
aは、その保守信号有り情報とメモリ切替信号である旨
の情報をデータ交換信号送信制御部11aとデータ交換
信号受信制御部12bとを用いて主制御部2bへ送信す
る。これにより、切替手段23a,23bからアプリケ
ーションメモリ選択信号線35a,35b,36a,3
6bへメモリ選択信号が出力され、アプリケーションメ
モリ3a,3bとアプリケーションメモリ20a,20
bとの切替えがされる。Main control section 2 to which this memory switching signal is input
The a transmits the maintenance signal presence information and the information indicating that it is a memory switching signal to the main control unit 2b using the data exchange signal transmission control unit 11a and the data exchange signal reception control unit 12b. Thereby, the application memory selection signal lines 35a, 35b, 36a, 3 from the switching means 23a, 23b.
A memory selection signal is output to 6b, and application memories 3a and 3b and application memories 20a and 20
It is switched to b.
【0102】以上、第2実施例による制御用マイクロコ
ンピュータ装置によれば、同期二重運転中の制御用マイ
クロコンピュータ装置のいずれか一方に接続された保守
ツールからの保守情報を両系の制御用マイクロコンピュ
ータ装置で共有させ、1台の保守ツールからの要求で同
期二重運転中の制御用マイクロコンピュータ装置2台の
アプリケーションプログラムの保守情報を同時に更新す
ると共に、両系制御用マイクロコンピュータ装置の制御
を一切停止させることなく、両系制御用マイクロコンピ
ュータ装置が実行するアプリケーションプログラムを新
たなアプリケーションプログラムに切替え可能となる。As described above, according to the control microcomputer device of the second embodiment, the maintenance information from the maintenance tool connected to either one of the control microcomputer devices in the synchronous double operation is used for controlling both systems. The maintenance information of the application programs of two control microcomputer devices during synchronous double operation is updated at the same time by sharing them with the microcomputer device, and the control of both system control microcomputer devices is performed at the same time. It is possible to switch the application program executed by the microcomputer device for controlling both systems to a new application program without stopping the operation.
【0103】これにより、同期二重運転中の制御用マイ
クロコンピュータ装置を保守のために一重運転や両系装
置の完全停止等をすることなく、同期二重運転中の制御
用マイクロコンピュータ装置のアプリケーションプログ
ラム保守作業が可能となり、保守作業が簡素化される。As a result, the application of the control microcomputer device during the synchronous double operation can be performed without performing the single operation for the maintenance of the control microcomputer device during the synchronous double operation or the complete stoppage of both system devices. Program maintenance work becomes possible and maintenance work is simplified.
【0104】なお、本発明の第2実施例による説明で
は、プロセスデータ入出力前のタイミング同期のため
と、保守ツールからの保守情報を交換するためのデータ
交換信号送受信制御部を兼用として用いたが、タイミン
グ同期のための送受信制御部を別に設けることも可能で
ある。In the description of the second embodiment of the present invention, the data exchange signal transmission / reception control unit for exchanging the maintenance information from the maintenance tool is also used for the timing synchronization before the process data input / output. However, it is also possible to separately provide a transmission / reception control unit for timing synchronization.
【0105】[0105]
【発明の効果】以上説明したように請求項1の発明によ
れば、一方のアプリケーションメモリのアプリケーショ
ンプログラムを用いて制御演算を実行しているとき、変
更するアプリケーションプログラムを分割し、順次他方
のアプリケーションメモリへ格納し、メモリ切替信号に
より実行するアプリケーションプログラムを変更する新
たなアプリケーションプログラムへ切替えることができ
る。従って、保守のために装置を停止させることなく、
アプリケーションプログラムの保守作業が可能となり、
システムの稼働率、信頼性が向上すると共に、保守作業
が簡素化される。As described above, according to the first aspect of the invention, when the control operation is executed using the application program of one application memory, the application program to be changed is divided and the other application is sequentially applied. It is possible to switch to a new application program that is stored in the memory and changes the application program to be executed by the memory switching signal. Therefore, without stopping the device for maintenance,
Maintenance work of application programs becomes possible,
The operation rate and reliability of the system are improved, and maintenance work is simplified.
【0106】請求項2の発明によれば、一方のアプリケ
ーションメモリのアプリケーションプログラムを用いて
制御演算を実行しているとき、変更するアプリケーショ
ンプログラムを分割し、順次いずれか他方のアプリケー
ションメモリへ格納し、メモリ切替信号により実行する
アプリケーションプログラムを変更する新たなアプリケ
ーションプログラムへ切替えることができる。従って、
従来のように保守のために一重運転や両系装置の完全停
止等をすることなく、アプリケーションプログラム保守
作業が可能となり、システムの稼働率、信頼性が向上す
ると共に、保守作業が簡素化される。According to the invention of claim 2, when the control operation is executed using the application program of one of the application memories, the application program to be changed is divided and sequentially stored in one of the other application memories, It is possible to switch to a new application program that changes the application program to be executed by the memory switching signal. Therefore,
Application program maintenance work can be performed without performing single operation or complete stoppage of both system devices for maintenance as in the past, improving system operation rate and reliability and simplifying maintenance work. .
【図1】本発明の第1実施例を示す制御用マイクロコン
ピュータ装置の構成図である。FIG. 1 is a configuration diagram of a control microcomputer device according to a first embodiment of the present invention.
【図2】図1の制御用マイクロコンピュータ装置の処理
手順を示すフローチャートである。FIG. 2 is a flowchart showing a processing procedure of the control microcomputer device of FIG.
【図3】本発明の第2実施例を示す制御用マイクロコン
ピュータ装置の構成図である。FIG. 3 is a configuration diagram of a control microcomputer device according to a second embodiment of the present invention.
【図4】図3の制御用マイクロコンピュータ装置の処理
手順を示すフローチャートである。4 is a flowchart showing a processing procedure of the control microcomputer device of FIG.
【図5】第1の従来例を示す制御用マイクロコンピュー
タ装置の構成図である。FIG. 5 is a configuration diagram of a control microcomputer device showing a first conventional example.
【図6】図5の制御用マイクロコンピュータ装置の処理
手順を示すフローチャートである。6 is a flowchart showing a processing procedure of the control microcomputer device of FIG.
【図7】第2の従来例を示す制御用マイクロコンピュー
タ装置の構成図である。FIG. 7 is a block diagram of a control microcomputer device showing a second conventional example.
【図8】図7の制御用マイクロコンピュータ装置の処理
手順を示すフローチャートである。8 is a flowchart showing a processing procedure of the control microcomputer device of FIG.
1a,1b 制御用マイクロコンピュータ装置 2a,2b 主制御部 3a,3b アプリケーションメモリ 5a,5b プロセス入力信号線 6a,6b プロセス出力信号線 9a,9b アドレス信号線 10a,10b データ信号線 11a,11b データ交換信号送信制御部 12a,12b データ交換信号受信制御部 23a,23b 切替手段 24a,24b JKフリップフロップ回路 25a,25b XORゲート回路 26a,26b,27a,27b ANDゲート回路 28a,28b NOTゲート回路 1a, 1b Control microcomputer device 2a, 2b Main control unit 3a, 3b Application memory 5a, 5b Process input signal line 6a, 6b Process output signal line 9a, 9b Address signal line 10a, 10b Data signal line 11a, 11b Data exchange Signal transmission control section 12a, 12b Data exchange signal reception control section 23a, 23b Switching means 24a, 24b JK flip-flop circuit 25a, 25b XOR gate circuit 26a, 26b, 27a, 27b AND gate circuit 28a, 28b NOT gate circuit
フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G06F 15/78 510 G Continuation of front page (51) Int.Cl. 6 Identification code Office reference number FI Technical display area G06F 15/78 510 G
Claims (3)
ラントのプロセス入力信号をアプリケーションプログラ
ムに従って制御演算を実行して制御信号をプロセス出力
信号として前記プロセス入出力装置を介してプラントへ
出力すると共に、外部からアプリケーションプログラム
を変更する保守要求があると、アプリケーションプログ
ラムの保守処理を実行する制御用マイクロコンピュータ
装置において、 前記変更するアプリケーションプログラムを適宜分割し
て順次保守要求を実行し、全部の変更するアプリケーシ
ョンプログラムの保守要求が完了するとメモリ切替信号
を出力する保守ツールと、 前記アプリケーションプログラムを格納するための2つ
のアプリケーションプログラムメモリと、 これらのアプリケーションプログラムメモリの一方のア
プリケーションメモリに格納されたアプリケーションプ
ログラムによって前記制御演算を処理実行するときに、
前記保守ツールからの保守要求により前記分割された変
更するアプリケーションプログラムを順次取り込み、他
方のアプリケーションプログラムメモリへ格納する主制
御部と、 前記メモリ切替信号により前記他方のアプリケーション
プログラムメモリに格納されたアプリケーションプログ
ラムにより制御演算を実行するように切替えると共に、
前記一方のアプリケーションプログラムメモリへ変更す
るアプリケーションプログラムを格納するように切替え
る切替手段とを備えたことを特徴とする制御用マイクロ
コンピュータ装置。1. A plant process input signal fetched from a process input / output device is subjected to a control operation according to an application program to output the control signal as a process output signal to the plant via the process input / output device, and an external device. When there is a maintenance request for changing the application program from the above, in the control microcomputer device for executing the maintenance processing of the application program, the application program to be changed is appropriately divided and the maintenance request is sequentially executed, and all the application programs to be changed Maintenance tool that outputs a memory switching signal when the maintenance request is completed, two application program memories for storing the application program, and these application program memories When performing the control operation by the application program stored in one of the application memory,
A main control unit that sequentially captures the divided application programs to be changed according to a maintenance request from the maintenance tool and stores them in the other application program memory, and an application program stored in the other application program memory by the memory switching signal. Switch to execute the control calculation by
A control microcomputer device comprising: a switching unit that switches to store an application program to be changed in one of the application program memories.
ラントのプロセス入力信号をアプリケーションプログラ
ムに従って制御演算を実行して制御信号をプロセス出力
信号として前記プロセス入出力装置を介してプラントへ
出力すると共に、外部からアプリケーションプログラム
を変更する保守要求があると、アプリケーションプログ
ラムの保守処理を実行する2つの主制御部と、これら主
制御部に対応して前記制御演算による処理および保守処
理を同期して実行するためにデータ交換信号を送信する
データ交換信号送信制御部と、前記データ交換信号を受
信するデータ交換信号受信制御部とを有する二重化され
た制御用マイクロコンピュータ装置において、 前記変更するアプリケーションプログラムを適宜分割し
て順次保守要求を実行し、全部の変更するアプリケーシ
ョンプログラムの保守要求が完了するとメモリ切替信号
を出力する保守ツールと、 前記アプリケーションプログラムを格納し前記主制御部
に対応してそれぞれ2つ設けられるアプリケーションプ
ログラムメモリと、 前記それぞれの主制御部に設けられる前記データ交換信
号を相互に交換して一方のアプリケーションメモリのア
プリケーションプログラムを用いて前記制御演算を実行
するときに、保守要求により前記分割された変更するア
プリケーションプログラムを他方のアプリケーションメ
モリへ順次格納する手段と、 前記主制御部に対応して設けられる前記メモリ切替信号
により前記他方のアプリケーションメモリに格納された
アプリケーションプログラムにより制御演算を実行する
ように切替える一方、前記一方のアプリケーションプロ
グラムメモリへ変更するアプリケーションプログラムを
格納するように切替える切替手段とを有することを特徴
とする制御用マイクロコンピュータ装置。2. A plant process input signal taken in from a process input / output device is subjected to a control operation according to an application program to output the control signal as a process output signal to the plant via the process input / output device, and an external device. When there is a maintenance request to change the application program from the two, the two main control units that execute the maintenance process of the application program and the process by the control calculation and the maintenance process corresponding to these main control units are synchronously executed. In a duplicated control microcomputer device having a data exchange signal transmission control unit for transmitting a data exchange signal and a data exchange signal reception control unit for receiving the data exchange signal, the application program to be changed is appropriately divided. And perform maintenance requests sequentially, Maintenance tool for outputting a memory switching signal when the maintenance request of the application program to be changed is completed, two application program memories for storing the application program and corresponding to the main control section, and each of the main programs. When the data exchange signals provided in the control unit are exchanged with each other and the control operation is executed using the application program of one application memory, the divided application program to be changed by the maintenance request is transferred to the other application memory. And means for sequentially storing to the main control unit, and the memory switching signal provided corresponding to the main control unit switches to execute the control operation by the application program stored in the other application memory. A control microcomputer device having a switching means for switching so that an application program to be changed is stored in one of the application program memories.
入力毎にON信号とOFF信号とを交互に反転したアプ
リケーションメモリ切替信号を出力するフリップフロッ
プ回路と、 前記アプリケーションメモリ切替信号と前記主制御部か
らの保守要求信号との排他的論理和をとって選択信号を
出力する排他的論理和回路と、 前記選択信号と前記主制御部からのアプリケーションメ
モリアクセス信号との論理積の成立により前記一方のア
プリケーションメモリへ切替えるように一方のアプリケ
ーションメモリ選択信号を出力する一方のANDゲート
回路と、 前記選択信号を否定回路により反転した信号と前記アプ
リケーションメモリアクセス信号との論理積の成立によ
り前記他方のアプリケーションメモリへ切替えるように
他方のアプリケーションメモリ選択信号を出力する他方
のANDゲート回路とを備えたことを特徴とする請求項
1または請求項2記載の制御用マイクロコンピュータ装
置。3. The flip-flop circuit, wherein the switching means outputs an application memory switching signal by alternately inverting an ON signal and an OFF signal for each input of the memory switching signal, the application memory switching signal and the main control. An exclusive-OR circuit that outputs a selection signal by taking an exclusive-OR with a maintenance request signal from the control unit, and one of the above-mentioned ones due to the logical product of the selection signal and the application memory access signal from the main control unit. AND gate circuit that outputs one application memory selection signal so as to switch to the other application memory, and the other application by the logical product of the signal obtained by inverting the selection signal by the NOT circuit and the application memory access signal. The other application, like switching to memory 3. The control microcomputer device according to claim 1, further comprising another AND gate circuit that outputs a memory selection signal.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP6151758A JPH07334202A (en) | 1994-06-10 | 1994-06-10 | Microcomputer device for control |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP6151758A JPH07334202A (en) | 1994-06-10 | 1994-06-10 | Microcomputer device for control |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH07334202A true JPH07334202A (en) | 1995-12-22 |
Family
ID=15525657
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP6151758A Pending JPH07334202A (en) | 1994-06-10 | 1994-06-10 | Microcomputer device for control |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH07334202A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2016091302A (en) * | 2014-11-05 | 2016-05-23 | アズビル株式会社 | Data recording system and device operating method |
| JP2016091303A (en) * | 2014-11-05 | 2016-05-23 | アズビル株式会社 | Data recording system and device operation method |
-
1994
- 1994-06-10 JP JP6151758A patent/JPH07334202A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2016091302A (en) * | 2014-11-05 | 2016-05-23 | アズビル株式会社 | Data recording system and device operating method |
| JP2016091303A (en) * | 2014-11-05 | 2016-05-23 | アズビル株式会社 | Data recording system and device operation method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5018064A (en) | Virtual computer system | |
| JPH07334202A (en) | Microcomputer device for control | |
| JPH02128201A (en) | Programmable controller | |
| US5796753A (en) | High speed test pattern transfer apparatus for semiconductor test system | |
| US5333259A (en) | Graphic information processing system having a RISC CPU for displaying information in a window | |
| JP2522412B2 (en) | Communication method between programmable controller and input / output device | |
| JPS59178487A (en) | Display unit | |
| JP3308781B2 (en) | Programmable controller | |
| JPH02188856A (en) | Memory access circuit | |
| JPS6130300B2 (en) | ||
| JP3078594B2 (en) | Image storage device | |
| JPS6122330B2 (en) | ||
| JPS5984290A (en) | Image display | |
| JPH10268923A (en) | Numerical controller | |
| JPS6215642A (en) | Memory device for double access system | |
| JPS5971510A (en) | Sequence control circuit | |
| JPH04107595A (en) | Display system | |
| JPH04156634A (en) | Cache memory diagnosis address generation device | |
| JPS6129956A (en) | Memory control unit | |
| JPS63178320A (en) | Multiwindow display device | |
| JPS58181134A (en) | Data transfer circuit | |
| JPS63285611A (en) | Input/output method for control information on numerical controller | |
| JPH0570158B2 (en) | ||
| JPH0245427B2 (en) | ENHOKANSHISEIGYOSOCHI | |
| JPH03142536A (en) | Diagnostic system for storage |