JPH03113506A - Program control system - Google Patents

Program control system

Info

Publication number
JPH03113506A
JPH03113506A JP25097589A JP25097589A JPH03113506A JP H03113506 A JPH03113506 A JP H03113506A JP 25097589 A JP25097589 A JP 25097589A JP 25097589 A JP25097589 A JP 25097589A JP H03113506 A JPH03113506 A JP H03113506A
Authority
JP
Japan
Prior art keywords
program
control device
controller
information
request
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
JP25097589A
Other languages
Japanese (ja)
Inventor
Toshihiko Kayukawa
粥川 敏彦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP25097589A priority Critical patent/JPH03113506A/en
Publication of JPH03113506A publication Critical patent/JPH03113506A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PURPOSE:To easily add the new control information to a host controller by providing a program control mechanism into a communication controller and therefore acquiring the information on the program state, etc., via the host controller without applying no contrivance to a main controller nor performing the program control via the host controller. CONSTITUTION:When a higher controller 11 gives a request to a main controller 2 for transfer of a program, etc., a communication controller 6 describes the information necessary for a program control table out of the program to be transferred. Thus the control of the program is performed within the controller 6. Then the program control table is retrieved within the controller 6 with a request received from the controller 11 for the program information. As a result, the corresponding program information is transmitted. Thus the program control is attained to the controller 11 without remoceling the controller 2 nor providing an information control function to the controller 11.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、上位制御装置と、プログラマブルコントロ
ーラを構成する主制御装置間で授受される制御プログラ
ムを管理するプログラム管理方式%式% (従来の技術〕 第2図は従来のプログラマブルコントローラの構成図で
あり、図において、(1)はプログラマブルコントロー
ラ、(2)はプログラマブルコントローラ(1)の主な
制御を行なう主制御装置、(3)はプログラマブルコン
トローラ(1)の主制御装置内に設けられ、命令を解読
し実行する中央処理装置、(4)は同様にプログラマブ
ルコントローラ(1)に設けられ、プログラムやデータ
などを格納するメモリ、(5)は主制御装置の演算結果
を外部に出力、また外部からの人力を行なう外部入出力
インタフェース、(6)は上位制御装置(11)などと
通信を行なうための通信制御装置、(7)は通信制御装
置([i)内に設けられ、命令を解読実行する中央処理
装置、(8)はプログラムや送/受信データなどを格納
するメモリ、(9)は実際に上位制御装置(11)など
と通信回線で接続するための通信インタフエース、(1
0)も同様に通信制御装置(6)内に設けられ、主制御
装置(2)との間でプログラムやデータのやりとりを行
なう2ボートメモリ、(11)はプログラマブルコント
ローラ(1)を制御するための上位制御装置で、通信回
線を介して接続される。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention utilizes a program management method % type % (conventional [Technology] Figure 2 is a block diagram of a conventional programmable controller. In the figure, (1) is a programmable controller, (2) is a main control device that performs main control of the programmable controller (1), and (3) is a programmable controller. A central processing unit (4) is provided in the main control device of the controller (1) and decodes and executes instructions; (4) is a memory that is also provided in the programmable controller (1) and stores programs, data, etc.; is an external input/output interface that outputs the calculation results of the main control device to the outside and performs manual input from the outside, (6) is a communication control device for communicating with the upper control device (11), etc., and (7) is a communication A central processing unit installed in the control device ([i) that decodes and executes instructions, (8) is a memory that stores programs and transmitted/received data, and (9) is actually a host controller (11), etc. Communication interface for connecting via communication line, (1
0) is also provided in the communication control device (6) and is a 2-board memory for exchanging programs and data with the main control device (2), and (11) is for controlling the programmable controller (1). The upper control device is connected via a communication line.

また第6図はメモリ(8)の内容を示す図であり、図に
おいて(8a)は通信制御のための制御情報や送受信デ
ータの一時的な記憶を行なう通信制御エリアである。
FIG. 6 is a diagram showing the contents of the memory (8), in which (8a) is a communication control area for temporarily storing control information for communication control and transmitted/received data.

第4図と第5図は2ボートメモリ(1a)の内容を示す
図であり、第4図は通信制御装置(6)から主制御装置
(2)へプログラムのダウンロード要求を行なう時の内
容、第5図は同様に通信制御装置(6)から主制御装置
(2)へプログラムの起動/停止などのプログラム制御
要求を行なう時の内容をそれぞれ示すものである。
4 and 5 are diagrams showing the contents of the two-board memory (1a), and FIG. 4 shows the contents when a program download request is made from the communication control device (6) to the main control device (2), Similarly, FIG. 5 shows the contents when a program control request such as program start/stop is made from the communication control device (6) to the main control device (2).

次に、動作についてプログラムのダウンロード(以降D
/Lと称す)を例に第7図のフローチャートを用いて説
明する。
Next, download the program (hereinafter referred to as D) for operation.
/L) will be explained using the flowchart of FIG. 7 as an example.

まず、通信制御装置り6)はステップ411で上位制御
装置(工1)からのD/L要求かあるかどうかチエツク
する。この時上位制御装置(11)から出されるD/L
要求の内容は第4図に示す通信制御装置(6)から主制
御装置(2)へD/L要求する時の2ボートメモリ(1
0)の内容と同一である。ステップ411でD/L要求
があった場合、2ボートメモリ(10)へ第4図の内容
に従い、D/Lの要求コート、プログラムNO1、先頭
ステップNO0、ステップ数、D/Lプログラムの各情
報をセット、主制御装置(2)へD/L要求する(ステ
ップ412)。
First, in step 411, the communication control device 6) checks whether there is a D/L request from the higher-level control device (process 1). At this time, the D/L issued from the host controller (11)
The contents of the request are stored in the 2-boat memory (1) when making a D/L request from the communication control device (6) to the main control device (2) shown in Figure 4.
The content is the same as 0). When there is a D/L request in step 411, each information of the D/L request code, program No. 1, first step No. 0, number of steps, and D/L program is stored in the 2-board memory (10) according to the contents shown in FIG. is set, and a D/L request is made to the main controller (2) (step 412).

一方、主制御装置(2)はステップ301で通信制御装
置(6)からのD/L要求の有無をチエツク、D/L要
求があればステップ302で2ボートメモリ(10)上
にセットされた要求に従い実際のプログラム格納エリア
にプログラムを転送する。転送が完了した時点で主制御
装置(2)は通信制御装置(6)に対し完了を通知する
(ステップ303)。
On the other hand, the main controller (2) checks in step 301 whether there is a D/L request from the communication controller (6), and if there is a D/L request, it is set in the 2-board memory (10) in step 302. Transfers the program to the actual program storage area according to the request. When the transfer is completed, the main control device (2) notifies the communication control device (6) of the completion (step 303).

ステップ413で完了を待っていた通信制御装置(6)
は主制御装置(2)からの完了を受けた時点でステップ
414で上位制御装置(11)へ完了通知を行なう。
Communication control device (6) waiting for completion in step 413
At the time of receiving the completion from the main control device (2), in step 414, it notifies the higher-level control device (11) of completion.

また、プログラムの起動/停止なども同様に第5図に示
すような起動/停止などの要求を表わす要求コードと、
対象とするプログラムのNo、を上位制御装置(11)
から送信、通信制御装置(6)からその内容を2ボート
メモリ(10)にセットし、主制御装置(2)に要求す
ることで行なう。
Similarly, when starting/stopping a program, a request code representing a request for starting/stopping as shown in Fig. 5 is used.
The number of the target program is sent to the upper control device (11)
This is done by setting the contents from the communication control device (6) in the two-board memory (10) and requesting the main control device (2).

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

従来のプログラマブルコントローラは以上のように、主
制御装置にD/Lされたプログラムの情報を管理したり
、管理情報を通信制御装置へ転送する手段がないため、
上位制御装置でプログラムの管理情報が必要とされる場
合は、主制御装置或は上位制御装置にプログラム情報の
管理手段、及びプログラム情報転送手段等を設ける必要
があり、そのため主制御装置或は上位制御装置のハード
ウェア構成並びにソフトウェア構成を改造しなければな
らないといった問題点があった。
As mentioned above, conventional programmable controllers do not have a means to manage program information downloaded to the main control device or to transfer management information to the communication control device.
If program management information is required in a higher-level control device, it is necessary to provide program information management means and program information transfer means in the main control device or higher-level control device. There was a problem in that the hardware configuration and software configuration of the control device had to be modified.

この発明は上記のような問題点を解消するためになされ
たもので、主制御装置を改造することなく、また上位制
御装置に情報管理機能を持たすことなく、プログラム管
理が上位制御装置との間で行なえるプログラム管理方式
を得ることを目的とする。
This invention was made to solve the above problems, and allows program management to be performed between the host controller and the host controller without modifying the main controller or providing an information management function to the host controller. The purpose is to obtain a program management method that can be performed using

(課題を解決するための手段) この発明に係るプログラム管理方式は、上位制御装置よ
り転送され記憶したプログラムに従い制御動作を行なう
主制御装置と、該主制御装置と上記上位制御装置間のプ
ログラムの転送制御を行なう通信制御装置より構成され
るプログラマブルコントローラを備え、上記通信制御装
置に、上位制御装置より主制御装置へのプログラム転送
用メモリと、各転送プログラムを管理するためのプログ
ラム情報をプログラム毎に記憶したプログラム管理テー
ブルと、上位制御装置よりのプログラム情報要求に従い
、プログラム管理テーブルより該当プログラム情報を検
索し送信するプログラム情報送信手段とを設けたもので
ある。
(Means for Solving the Problems) A program management system according to the present invention includes a main controller that performs control operations according to a program transferred and stored from a higher-level controller, and a program management system between the main controller and the higher-level controller. Equipped with a programmable controller consisting of a communication control device that performs transfer control, and the communication control device has a memory for transferring programs from the host control device to the main control device, and program information for managing each transfer program for each program. The system is provided with a program management table stored in the host controller, and a program information transmitting means for searching and transmitting the corresponding program information from the program management table in accordance with a program information request from a host control device.

〔作用〕[Effect]

この発明において、上位制御装置から主制御装置へのプ
ログラム転送要求などが出された場合、通信制御装置は
転送、グラム中よりプログラム管理テーブルに必要な情
報をセットすることで通信制御装置内でプログラム管理
がなされ、上位制御装置からのプログラム情報要求に対
し、通信制御装置内はプログラム管理テーブルを検索す
ることで該当プログラム情報を送信する。
In this invention, when a program transfer request is issued from a higher-level control device to a main control device, the communication control device transfers the program by setting the necessary information in the program management table from the program. Management is performed, and in response to a program information request from a higher-level control device, the communication control device transmits the corresponding program information by searching a program management table.

〔実施例〕〔Example〕

以下、この発明の一実施例を図について説明する。 An embodiment of the present invention will be described below with reference to the drawings.

プログラマブルコントローラの溝成は第2図に示す従来
のものと同様である。第1図は主制御装置及び通信制御
装置の動作を示す流れ図、第3図は通信制御装置のメモ
リの内容を示す図である。
The groove structure of the programmable controller is similar to the conventional one shown in FIG. FIG. 1 is a flowchart showing the operations of the main control device and the communication control device, and FIG. 3 is a diagram showing the contents of the memory of the communication control device.

第3図において(8a)は通信制御のための制御情報や
、送受信データの一時的な記憶を行なう通信制mエリア
、(8b)はプログラムNO61のプログラムがD/L
されて主制御装置(2)に存在するかどうかを示すフラ
グ、(8c)はプログラムの状態を格納するエリア、(
8d)は該プログラムのステップ数を格納するエリアで
ある。
In Fig. 3, (8a) is the communication control area m where control information for communication control and temporary storage of transmitted and received data is performed, and (8b) is the D/L area where program No. 61 is stored.
(8c) is an area for storing the program status;
8d) is an area for storing the number of steps of the program.

次に動作について説明する。Next, the operation will be explained.

まずプログラムのD/Lについて第1図のフローチャー
トを用いて説明する。通信制御装置(6)はステップ2
01で上位制御装置(11)からのD/L要求かどうか
をチエツクする。この時上位制御装置(11)から出さ
れるD/L要求の内容は第4図に示す通信制御装置(6
)から主制御装置へD/L要求の内容と同一である。ス
テップ201でD/L要求があった場合メモリ(8)上
のプログラム(8b)の有無に有をセット、次にプログ
ラム(8C)の状態に初期状態をセット、そして、さら
にステップ数(8d)にステップ数をセットする(ステ
ップ202)。次にステップ203で2ポートメモリ(
10)へ、第4図の内容に従い、D/L要求コード、プ
ログラムNo、 、先頭ステップNo、をD/Lするプ
ログラムの各情報をセットし、主制御装置(2)へD/
L要求する。
First, program D/L will be explained using the flowchart of FIG. Communication control device (6) is in step 2
At 01, it is checked whether the D/L request is from the upper control device (11). At this time, the content of the D/L request issued from the host controller (11) is as shown in FIG.
) is the same as the content of the D/L request from the main controller. If there is a D/L request in step 201, the existence of the program (8b) on the memory (8) is set to "Yes", then the initial state is set to the state of the program (8C), and then the number of steps (8d) is set. The number of steps is set to (step 202). Next, in step 203, the 2-port memory (
10), set each information of the program to D/L the D/L request code, program number, and first step number according to the contents of Fig. 4, and send the D/L to the main controller (2).
Request L.

一方、主制御装置(2)はステップ101で通信制御装
置(6)からのD/L要求の有無をチエツクし、D/L
要求があればステップ102で2ポートメモリ(10)
上にセットされた要求に従い実際のプログラム格納エリ
アにプログラムを転送する。転送が完了した時点で主制
御装置(2)は通信制御装置(6)に対し、完了を通知
する(ステップ103)。
On the other hand, the main control device (2) checks whether there is a D/L request from the communication control device (6) in step 101, and performs a D/L request.
If requested, 2-port memory (10) is added in step 102.
Transfer the program to the actual program storage area according to the request set above. When the transfer is completed, the main control device (2) notifies the communication control device (6) of the completion (step 103).

ステップ204で完了を待っていた通信制御装置(6)
は主制御装置(2)からの完了を受けた時点で、上位制
御装置(11)へ完了通知を行なう(ステップ205)
Communication control device (6) waiting for completion in step 204
Upon receiving the completion from the main control device (2), sends a completion notification to the upper control device (11) (step 205).
.

また、プログラムの起動/停止なども第5図に示す様な
起動/停止などの要求を表わす要求コードと対象とする
プログラムのNo、と共に上位制御装置(11)から送
信し、通信制御装置(6)では、プログラム管理テーブ
ルのプログラム(8C)の状態を変更し、2ポートメモ
リ(10)に上位制御装置(11)からの内容をセット
して主制御装置(2)に要求することで行なう。
Additionally, for starting/stopping a program, etc., the host controller (11) transmits a request code representing a request for starting/stopping, etc. as shown in FIG. ), this is done by changing the state of the program (8C) in the program management table, setting the contents from the host controller (11) in the 2-port memory (10), and requesting the main controller (2).

また、上位制御装置(11)からのプログラム情報の要
求に対しては通信制御装置(6)はメモリ(8)内のプ
ログラム管理テーブルの内容を返すことで行なう。
Furthermore, in response to a request for program information from the host control device (11), the communication control device (6) responds by returning the contents of the program management table in the memory (8).

なお、上記実施例ではプログラムの管理テーブル内の情
報はプログラムの有無、プログラムの状態、ステップ数
のみであるが、他に上位制御装置が独自に付けたプログ
ラム名や、プログラムのプロテクト情報なども加え管理
しても良い。
In the above embodiment, the information in the program management table is only the presence or absence of the program, the state of the program, and the number of steps, but it also includes the program name uniquely assigned by the upper control device, program protection information, etc. You can manage it.

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

以上のようにこの発明によれば、通信制御装置内にプロ
グラム管理機構を設けたことにより、主制御装置に手を
加えることなく、また、上位制御装置でプログラム管理
を行なうことなくプログラムの状態などの情報が上位制
御装置で得られるとともに、上位制御装置との間に新た
な管理情報を容易に追加できるなどの効果がある。
As described above, according to the present invention, by providing a program management mechanism in the communication control device, it is possible to monitor the program status without modifying the main control device or without performing program management in the upper control device. information can be obtained by the higher-level control device, and new management information can be easily added to the higher-level control device.

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

第1図はこの発明の一実施例における主制御装置と通信
制御装置の動作を示す流れ図、第2図はプログラマブル
コントローラの構成図、第3図はこの発明の一実施例に
おける通信制御装置のメモリの内容を示す図、第4図は
D/L要求時の2ボ−トメモリの内容を示す図、第5図
はプログラムの起動/停止要求時の2ボートメモリの内
容を示す図、第6図は従来のプログラマブルコントロー
ラにおける通信制御装置のメモリの内容を示す図、第7
図は従来のプログラマブルコントローラの主制御装置と
通信制御装置の動作を示す流れ図を示すものである。 (1)はプログラマブルコントローラ、(2)は主制御
装置、(3)は中央処理装置、(4)はメモリ、(6)
は通信制御装置、(7)は中央処理装置、(8)はメモ
リ、 (10)は2ボートメモリ、(11)は上位制御
装置。 なお、各図中、同一符号は同−又は相当部分を示す。
FIG. 1 is a flowchart showing the operation of the main control device and the communication control device in an embodiment of the present invention, FIG. 2 is a configuration diagram of the programmable controller, and FIG. 3 is a memory of the communication control device in the embodiment of the invention. FIG. 4 is a diagram showing the contents of the 2-boat memory at the time of a D/L request, FIG. 5 is a diagram showing the contents of the 2-boat memory at the time of a program start/stop request, and FIG. 7 is a diagram showing the contents of the memory of a communication control device in a conventional programmable controller.
The figure shows a flowchart showing the operations of a main control device and a communication control device of a conventional programmable controller. (1) is a programmable controller, (2) is a main controller, (3) is a central processing unit, (4) is a memory, (6)
is a communication control unit, (7) is a central processing unit, (8) is a memory, (10) is a 2-board memory, and (11) is a host control unit. In each figure, the same reference numerals indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims] 上位制御装置より転送され記憶したプログラムに従い制
御動作を行なう主制御装置と、該主制御装置と上記上位
制御装置間のプログラムの転送制御を行なう通信制御装
置より構成されるプログラマブルコントローラを備え、
上記通信制御装置に、上位制御装置より主制御装置への
プログラム転送用メモリと、各転送プログラムを管理す
るためのプログラム情報をプログラム毎に記憶したプロ
グラム管理テーブルと、上位制御装置よりのプログラム
情報要求に従い、プログラム管理テーブルより該当プロ
グラム情報を検索し送信するプログラム情報送信手段と
を有したことを特徴とするプログラム管理方式。
A programmable controller comprising a main control device that performs control operations according to a stored program transferred from a higher-level control device, and a communication control device that controls transfer of programs between the main control device and the higher-level control device,
The communication control device includes a memory for program transfer from the host control device to the main control device, a program management table storing program information for each program to manage each transferred program, and a program information request from the host control device. 1. A program management method comprising program information transmitting means for searching and transmitting corresponding program information from a program management table.
JP25097589A 1989-09-27 1989-09-27 Program control system Pending JPH03113506A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25097589A JPH03113506A (en) 1989-09-27 1989-09-27 Program control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25097589A JPH03113506A (en) 1989-09-27 1989-09-27 Program control system

Publications (1)

Publication Number Publication Date
JPH03113506A true JPH03113506A (en) 1991-05-14

Family

ID=17215811

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25097589A Pending JPH03113506A (en) 1989-09-27 1989-09-27 Program control system

Country Status (1)

Country Link
JP (1) JPH03113506A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7498907B2 (en) 2004-06-28 2009-03-03 Mitsubishi Electric Corporation Transmission line substrate and semiconductor package

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7498907B2 (en) 2004-06-28 2009-03-03 Mitsubishi Electric Corporation Transmission line substrate and semiconductor package

Similar Documents

Publication Publication Date Title
JPH01502708A (en) Information transmission methods and devices
JPH0414375B2 (en)
JP2004302556A (en) Data sharing method between a plurality of computer systems, and disk controller
JPH03113506A (en) Program control system
JP2645065B2 (en) Information download system
JP3321359B2 (en) Processing control system
JP2605491B2 (en) Equipment management controller
JP3546518B2 (en) Table changing method and its information processing system
JPH01147939A (en) Robot control system
JP2890962B2 (en) Loosely coupled multi-hot standby computer system
JPS6365550A (en) Program loading system for terminal equipment
JP2522847B2 (en) Programmable controller system
JP2924956B2 (en) File transfer device, file transmission device, and file transmission method
JP3360690B2 (en) System switching control method for online communication system
JPS6188351A (en) Program load system
JPH0369245A (en) Reception data monitor system for information processor
JPH0228747A (en) Method for controlling bus
JPH01296306A (en) Network constitution for plural numerical controller
JPS63187945A (en) On-line data communication system
JPH05282225A (en) Intra-terminal data communication equipment
JPS61118803A (en) Programmable controller system
JPS63143603A (en) Programmable controller
JPH0758801A (en) Data communications equipment
JPH07141278A (en) Management control unit of information processor
JPH04113748A (en) System for remotely revising version of program