JPS63120303A - General-purpose controller - Google Patents
General-purpose controllerInfo
- Publication number
- JPS63120303A JPS63120303A JP26563986A JP26563986A JPS63120303A JP S63120303 A JPS63120303 A JP S63120303A JP 26563986 A JP26563986 A JP 26563986A JP 26563986 A JP26563986 A JP 26563986A JP S63120303 A JPS63120303 A JP S63120303A
- Authority
- JP
- Japan
- Prior art keywords
- software
- area
- optional
- standard
- task
- 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
- 238000011017 operating method Methods 0.000 abstract description 2
- 238000012423 maintenance Methods 0.000 abstract 1
- 238000000034 method Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000007792 addition Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 238000012552 review Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Abstract
Description
【発明の詳細な説明】
[発明の目的〕
(産業上の利用分野)
本発明は、ii制御対象の如何に関係な(共通に用いら
れる標準ソフトウェアと、制御対象に応じた格別のオプ
ショナルなソフトウェアとを備える汎用コントローラに
関する。[Detailed description of the invention] [Objective of the invention] (Industrial application field) The present invention relates to a general-purpose controller comprising:
(従来の技術)
一般産業分野、FA分野などにおいて、データ入出力や
通信ソフトウェア、グラフィック処理専の標準ソフトウ
ェアとハードウェアとを具備した既存の汎用コントロー
ラ装置を利用して、それぞれの応用分野に応じてオプシ
ョナルなソフトウェアを付加して目的の装置を実現する
場合がある。(Prior technology) In the general industrial field, FA field, etc., existing general-purpose controller devices equipped with standard software and hardware dedicated to data input/output, communication software, and graphic processing are used to adapt to each application field. In some cases, optional software may be added to realize the desired device.
このような汎用コントローラにおける従来の代表的なソ
フトウェア構成例を第4図に示す。オプショナルソフト
ウェアを組込む際に標準ソフトウェアとを完全に分離す
ることは難しく、多くの場合システム内の同一メモリ空
間(ROM>1に標準ソフトウェア領域2とオプショナ
ルソフトウェア領域3とを混在させて構成させている。FIG. 4 shows an example of a typical conventional software configuration in such a general-purpose controller. When incorporating optional software, it is difficult to completely separate it from the standard software, and in many cases, the standard software area 2 and optional software area 3 are configured to coexist in the same memory space (ROM > 1) within the system. .
(発明が解決しようとする問題点)
かかる構成において、例えば、標準ソフトウェア領域2
内のプログラムa1がオプショナルソフトウェア領域3
内のタスクb1を実行させたい場合、そのタスクの実行
開始番地な示すポインタPiやそのタスクの底性(例え
ばタスクの優先順位、データセグメント・スタック領域
の番地、スタック領域のサイズ、その他タスクに渡した
い初期(ifI等)を知らなければならず、またオプシ
ョナルタスクb1から標準ソノ1−ウェア領域2内の別
のルーチンa2を呼ぶ場合にもそのルーチンの実行開始
番地を示すポインタq1を知らなければならない。(Problem to be solved by the invention) In such a configuration, for example, standard software area 2
Program a1 in the optional software area 3
If you want to execute task b1 in In addition, when calling another routine a2 in the standard software area 1-ware area 2 from the optional task b1, the pointer q1 indicating the execution start address of that routine must be known. It won't happen.
これらのポインタP+、Q+ は、メモリ空間1内でオ
プショナルソフトウェアの配置が変わるたびに、その都
度調整が必要となり、特にシステムソノ1−ウェアの規
模が大きくなるにつれて複雑さを増し、ソフトウェアバ
グ発生の原因ともなりかねない。These pointers P+ and Q+ need to be adjusted each time the location of optional software changes within the memory space 1. In particular, as the scale of system software increases, the complexity increases and software bugs may occur. It may also be the cause.
ずなわらシステム内の同一メモリ空間1に両ソノi−ウ
ェアを混在させて構成するために、相互の独立性が失な
われ、オプショナルソノトウエアの登録、変更の際に標
準ソフトウェアの見直しやシスデムソフトウエア全体の
再構成の手続きが必要となる場合が生じ、また、開発し
たオプショナルソフ[・ウニj7のテス1−や変更の際
にも瞥雑な手続きとプログラム間の接続ミスによるプロ
グラム障害も起きやすい。Since both types of software i-ware are mixed and configured in the same memory space 1 within the system, their independence from each other is lost, and when registering or changing optional software, it is necessary to review the standard software or system There may be cases where it is necessary to reconfigure the entire Dem software, and when changing the developed optional software [Unij7 Test 1-], program failures may occur due to cumbersome procedures and connection errors between programs. It's also easy to wake up.
本発明は以上の点を考慮してなされたもので、標準ソフ
トウェアとオプショナルソノトウエアの独立性を計って
オプショナルソフトウェアの作成、組込みを容易に行な
い得る汎用コンl−ローラをj2供しようとするもので
ある。The present invention has been made in consideration of the above points, and aims to provide a general-purpose controller that can easily create and incorporate optional software by ensuring independence between standard software and optional software. It is.
[発明の構成]
〈問題点を解決するための手段)
かかる問題点を解決するため、本発明においては、各種
制御対象に共通に使用できる標準ソノ1−ウェアP1〜
P3を格納したメモリ空間5と異なる拡張メモリ空間6
に、各種ml制御対象ごとに固有なオプショナルソフト
ウェアQ+ 、Q2及びオプショナルソフトウェアQ+
、Q2 と標準ソフトウェアP1〜P3とを関連付け
る情報下1〜T3とを格納すると共に、オプショナルソ
フトウェアQ+ 、Q2を実行制御するための処理プロ
グラム(第3図)を標準ソフトウェアに備えさせた。[Structure of the Invention] <Means for Solving the Problems> In order to solve the problems, the present invention provides standard software P1 to 1-ware that can be commonly used for various control objects.
Extended memory space 6 different from memory space 5 storing P3
In addition, optional software Q+, Q2 and optional software Q+ specific to each type of ML control object are installed.
, Q2 and the standard software P1 to P3 are stored therein, and the standard software is provided with a processing program (FIG. 3) for controlling the execution of the optional software Q+ and Q2.
(作用〉
別個のメモリ空間5,6に標準ソフトウェアとオブシ」
ナルソノ1ヘウエアとを別々に設Cプた。(Operation) Standard software and software are stored in separate memory spaces 5 and 6.
I set up Narusono 1 hardware and C separately.
そのためオプショナルソノトウエアの作成、組込みが容
易になった。This makes it easier to create and incorporate optional software.
かくするにつき、プログラム自体に相手ソノ(−ウ1ア
を読み出すポインタを何していては独立性が得られない
ので、ギーワード、コード笠を用い、オブシEプルソノ
1ヘウエノ7領ii!6に記憶されている関連付けるだ
めの情報下1〜T3を参照して相手側ソノ1へウェアに
移行するようにした。In this case, independence cannot be obtained by using a pointer to read out the other party's code (-U1A) in the program itself, so use a code word and a code cap to store it in ObshiEpursono1heueno7areaii!6. The software is transferred to the other party's software 1 by referring to the information 1 to T3 that must be associated.
従って、4?i !1’:ソフトウエア及びオプショナ
ルソノトウエア自体に相手側ソノl−ウェアを直接読み
出すようなポインタ等が不要となって、椙豆の独立性を
保つことができる。Therefore, 4? i! 1': There is no need for a pointer or the like in the software and optional software itself to directly read out the other party's software, and the independence of Sugimame can be maintained.
(実施例)
Iス下、図面を参照しながら本発明の一実論例を詳述す
る。(Example) Below, a practical example of the present invention will be described in detail with reference to the drawings.
第1図においU、CPIJ4は標準ソフトウェア及びA
ブショノ−ルソノト・シェアの実行を制御するためのも
のであり、また、標準ソフトウェア領域5は、当該コン
I−ローラの標準ソフトウェア、オペレーティングシス
テム及びオプショナルソノトウエアの実行をコントロー
ルするためのプログラムを格納したメモリ領域である。In Figure 1, U and CPIJ4 are standard software and A
The standard software area 5 stores programs for controlling the execution of the controller's standard software, operating system, and optional software. It is a memory area.
オプショナルソフトウェアは、拡張メモリとして標準ソ
フトウェア領域5とは別のオプショナルソフトウェア領
域6に格納され、この領域6はいくつかのブロック68
〜6dに分割され、オプショナルソノトウエアのサイズ
に応じて、領域のサイズを選択でき、またRAM/RO
Mの切替えができるように、ブロック単位で実装が行な
えるにうになされている。The optional software is stored as an extended memory in an optional software area 6 separate from the standard software area 5, and this area 6 includes several blocks 68.
It is divided into ~6d, and the size of the area can be selected according to the size of the optional software.
It is designed so that it can be implemented in block units so that M can be switched.
RAM構成の共通メ亡り領域7は、両ソノトウTアが共
通に使用できるワークエリアである。これらの各構成要
素4〜7は、内部バス8により相互に接続されている。A common memory area 7 in the RAM configuration is a work area that can be used in common by both sonotools. These components 4 to 7 are interconnected by an internal bus 8.
標準ソノl−=シェア領域5及びオプショナルソノトウ
エア領域6は、例えば、第2図に示ずような各種情報が
格納され、動作手順に従い、例えば、第2図に示すよう
に相互にアクセスを移行させるようになされている。す
なわち、標qソフトウエア領域5には、オペレーy−イ
ングシステムの他に、オプショナルソフトウェアの実行
を制御するブ1]グラムP1と、オプショナルソフトウ
ェアから呼ばれる共通のサブルーチン群P2 、P3よ
り構成されている。オプショナルソフトウェア領域6は
、人別して3種類のテーブル要素T+ 、T2.73と
オプショナルソフトウェア自身のコード部分Q1、Q2
より構成される。第1のテーブルT1は、オプショナル
ソフトウェア領域6のシステム情報を含み、このシステ
ム情報には、オプショナルソフトウェア領域6の妥当性
を示すキーワードやオプショナルタスクの登録数があげ
られる。第2のテーブルT2は、標準ラフ1〜ウエアか
らオプショナルソフトウェアへの接続情報を含んでおり
、この接続情報としては、各オプショナルタスクの実行
開始番地、タスクの優先順位、データ領域、スタック領
域のベースアドレス、スタック領域のサイズ、タスク起
動時に各タスクに渡される初期値等があげられる。第3
のテーブルT3は、オプショナルソフトウェアから標準
ラフ1〜ウエアへの接続情報を含んでおり、この接続情
報としては標準ラフ1−ウェア内の各サブルーチンの開
始番地がある。なお、テーブルT+−T3に含まれるこ
れ等の情報はいずれも変更が可能なものである。The standard software area 5 and the optional software area 6 store various types of information as shown in FIG. 2, and access can be transferred to each other according to the operating procedure, for example, as shown in FIG. It is made to do. That is, the software area 5 includes, in addition to the operating system, a program P1 that controls the execution of the optional software, and a common subroutine group P2 and P3 called by the optional software. . Optional software area 6 consists of three types of table elements T+, T2.73 and code parts Q1, Q2 of the optional software itself.
It consists of The first table T1 includes system information of the optional software area 6, and this system information includes keywords indicating the validity of the optional software area 6 and the number of registered optional tasks. The second table T2 contains connection information from the standard rough 1 to software to the optional software, and this connection information includes the execution start address of each optional task, the priority of the task, the data area, and the base of the stack area. These include addresses, stack area sizes, initial values passed to each task when the task is started, etc. Third
Table T3 includes connection information from the optional software to the standard rough 1-ware, and this connection information includes the start address of each subroutine in the standard rough 1-ware. Note that all of this information included in table T+-T3 can be changed.
次に、標準ソフトウェアから必要に応じて実行をオプシ
ョナルソフトウェアに移づ場合の処理を第3図に基づき
説明する。なお、第3図に示すプログラムは標準ソフト
ウェア領域5に格納されている。Next, a process for transferring execution from the standard software to optional software as necessary will be described with reference to FIG. Note that the program shown in FIG. 3 is stored in the standard software area 5.
CPU4はプログラムが開始されるとくステップS1)
、拡張メモリ領域6をアクセスし、まずシステム情報を
読みキーワードよりオプショナルソフトウェアが存在す
るか否かを調べるくステップ32)。存在しないことに
より否定結果を得ると、直ちに当該プログラムの処理を
終了する(ステップ83)。When the program is started, the CPU 4 performs step S1).
, the extended memory area 6 is accessed, and the system information is first read to check whether optional software exists based on keywords (step 32). If a negative result is obtained due to non-existence, the processing of the program is immediately terminated (step 83).
これに対して、オプショナルソフトウェアが存在する場
合には、テーブルT+ からオプショナルタスクの登録
数を読み、次に、登録数分のタスクの起動が終了したか
を調べる(ステップ84)。On the other hand, if optional software is present, the number of registered optional tasks is read from table T+, and then it is checked whether the number of registered tasks has been activated (step 84).
登録数分のタスク起動を終了したら当該プログラムの処
理を終了する(ステップS3)。これに対して、まだ起
動をかけるべぎオプショナルタスクが存在するならばオ
プショナルソフトウェア領域6内の標準ソフトウェアか
らオブショナルソノ1〜ウェアへの接続情報を示すデー
プルT2の内容を読み、テーブル内の情報に基づき、指
定されたオプショナルタスクの起動を行なう(ステップ
S5)。これにより、各オプショナルタスクは起動が行
なわれ、独自の処理を開始する。他方、各オプショナル
タスク内で、標準ソフトウェアの各サブルーチンの実行
が必要となった場合には、オプショナルソフトウェア領
域6内に存在する標準ソフトウェアへの接続情報(テー
ブルT3に格納されている)を利用して必要なサブルー
チンへのリンクが行なえる。Once the number of registered tasks has been activated, the processing of the program is ended (step S3). On the other hand, if there is an optional task that still needs to be started, read the contents of table T2 indicating the connection information from the standard software in the optional software area 6 to the optional software 1 to software, and read the information in the table. Based on this, the specified optional task is activated (step S5). As a result, each optional task is activated and starts its own processing. On the other hand, if it is necessary to execute each subroutine of the standard software within each optional task, the connection information (stored in table T3) to the standard software existing in the optional software area 6 is used. You can link to the necessary subroutines.
またオプショナルタスクをシステムに新たに追加する場
合には、テーブル要素内のタスク登録数を1だけ加口し
、テーブル下2内に起動されるタスクの接続情報を追加
し、タスク内で標準ラフ1〜ウエアの実行が必要な場合
には、デープル下2内にその接続情報を登録し、タスク
の実際のコード部分をオプショナルソフトウェア領域6
に置くことで実現できる。この方法にJ:れば、タスク
の追加に関して標準ソフトウェア領域5の変更は全く必
要なく、標準ソフトウェアとオプショナルソフトウェア
の間の独立性が保たれる。In addition, when adding a new optional task to the system, increase the number of task registrations in the table element by 1, add the connection information of the task to be started in the bottom 2 of the table, and add the standard rough 1 in the task. ~ If it is necessary to execute software, register the connection information in the table below 2, and save the actual code part of the task to the optional software area 6.
This can be achieved by placing it in If this method is adopted, there is no need to change the standard software area 5 in connection with the addition of tasks, and independence between the standard software and optional software is maintained.
上述の実施例によれば、標準ソフトウェア領域とオプシ
ョナルソフトウェア領域とを分離独立しているので、オ
プショナルソフトウェアの追加、変更、登録に対し標準
ソフトウェアが影かを受けることなく行なうことができ
、システム全体としての保守性、信頼性、さらには拡張
性を向上させることかできる。According to the embodiment described above, since the standard software area and the optional software area are separated and independent, additions, changes, and registration of optional software can be performed without affecting the standard software, and the entire system It is possible to improve maintainability, reliability, and even expandability.
なお、本発明は、工業用汎用コントローラだけではなく
、民生用汎用コントローラ、さらには、標準ソフトウェ
アとオプショナルソフトウェアを搭載する全ての汎用コ
ントローラに適用することができる。Note that the present invention can be applied not only to industrial general-purpose controllers, but also to consumer general-purpose controllers, and furthermore, to all general-purpose controllers equipped with standard software and optional software.
[発明の効果]
1ス上のにうに、本発明によれば、標準ソフトウェアと
A”ブシコナルソフトウエアとの独立を計り、オブシコ
ナルソフトウエアの作成、組込みが容易に行なうことの
できる汎用コントローラを得ることができる。[Effects of the Invention] As mentioned above, according to the present invention, standard software and A" general software are made independent of each other, and it is possible to easily create and incorporate obscene software. You can get a controller.
第1図は本発明の一実施例による汎用コントローラを示
すブロック図、第2図は各ソフトウェア領域の関係の説
明に供する路線図、第3図はオブシコナルソフトウエア
を実行制御するだめの処理プログラムを示すフローチャ
ート、第4図は従来の汎用=コントローラを示す路線図
である。
4・・・CPU
5・・・標準ソフトウェア領域
6・・・オプショナルソフトウェア領域8・・・内部バ
スFig. 1 is a block diagram showing a general-purpose controller according to an embodiment of the present invention, Fig. 2 is a route diagram explaining the relationship between each software area, and Fig. 3 is a process for controlling the execution of obciconal software. A flowchart showing the program, and FIG. 4 is a route map showing a conventional general-purpose controller. 4...CPU 5...Standard software area 6...Optional software area 8...Internal bus
Claims (1)
納したメモリ空間と異なる拡張メモリ空間に、上記各種
制御対象ごとに固有なオプショナルソフトウェア及び、
当該オプショナルソフトウェアと上記標準ソフトウェア
とを関連付ける情報とを格納すると共に、上記オプショ
ナルソフトウェアを実行制御するために処理プログラム
を上記標準ソフトウェアに具えさせたことを特徴とする
汎用コントローラ。Optional software unique to each of the above-mentioned control objects and
A general-purpose controller, characterized in that information associating the optional software with the standard software is stored, and the standard software is provided with a processing program for controlling execution of the optional software.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP26563986A JPS63120303A (en) | 1986-11-10 | 1986-11-10 | General-purpose controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP26563986A JPS63120303A (en) | 1986-11-10 | 1986-11-10 | General-purpose controller |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS63120303A true JPS63120303A (en) | 1988-05-24 |
Family
ID=17419928
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP26563986A Pending JPS63120303A (en) | 1986-11-10 | 1986-11-10 | General-purpose controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS63120303A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH02232703A (en) * | 1989-03-07 | 1990-09-14 | Nippon Telegr & Teleph Corp <Ntt> | Equipment control method |
-
1986
- 1986-11-10 JP JP26563986A patent/JPS63120303A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH02232703A (en) * | 1989-03-07 | 1990-09-14 | Nippon Telegr & Teleph Corp <Ntt> | Equipment control method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS5835295B2 (en) | Data transfer method in master-slave system | |
JPS63120303A (en) | General-purpose controller | |
JPS59123040A (en) | Down-loading control system | |
JP2555920B2 (en) | Online real-time processor | |
JP3691986B2 (en) | Programmable controller | |
JP2585818B2 (en) | Program call processor | |
US6539436B2 (en) | Management of interruptions in a computer platform | |
JPH0283749A (en) | Internal interruption control system for microprocessor | |
JPS6168643A (en) | Extension system for interpreter type language function | |
JPS6159516A (en) | Timer device | |
JP2885631B2 (en) | Operating system management device and operating system management method | |
JPH059815B2 (en) | ||
JPS61151745A (en) | Interruption processing system | |
JPH0478938A (en) | Computer operation supporting system | |
JPH10269081A (en) | Processor and using method therefor | |
JPS6373336A (en) | Calling system for privileged program | |
JPH01302430A (en) | System for processing data with tag | |
JPH0264756A (en) | System rising system | |
JPS6284334A (en) | Information processing system | |
JPS61202231A (en) | Data processor containing microprocessor | |
JPS59103146A (en) | Operation mode display device | |
JPH03161843A (en) | Optimized code debugging system | |
JPH04127333A (en) | Fault detecting system for application task | |
JP2000347940A (en) | Memory managing device | |
JPS63180129A (en) | Program connection system |