JPH0447425A - System software generating device - Google Patents

System software generating device

Info

Publication number
JPH0447425A
JPH0447425A JP15642890A JP15642890A JPH0447425A JP H0447425 A JPH0447425 A JP H0447425A JP 15642890 A JP15642890 A JP 15642890A JP 15642890 A JP15642890 A JP 15642890A JP H0447425 A JPH0447425 A JP H0447425A
Authority
JP
Japan
Prior art keywords
input
task
information
output
program
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
JP15642890A
Other languages
Japanese (ja)
Inventor
Kohei Watanabe
渡辺 弘平
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.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
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 Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP15642890A priority Critical patent/JPH0447425A/en
Publication of JPH0447425A publication Critical patent/JPH0447425A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To eliminate the need of a change of a ROM chip, to effectively utilize a hardware and to reduce the cost by collecting the information related to an input/output apparatus connected to an electronic apparatus at the time of actuating a system, and generating automatically a task for controlling the input/output apparatus in accordance with its information. CONSTITUTION:At the time of actuating the system, information related to input/output apparatuses DSj, KBK, and PRl connected to an electronic apparatus to which the device concerned is applied is collected by an information collecting means 10. A task generating means 11 generates automatically a task required for controlling the input/output apparatuses in accordance with this collected information. Accordingly, a change of a program size related to the input/output apparatus control is not generated without being accompanied with a logic change of a software (program) related to the control of the input/output apparatuses loaded in advance. Accordingly, the input/output device can be sued easily and normally without changing program logic and data.

Description

【発明の詳細な説明】 [産業上の利用分野コ 本発明は、システムソフトウェア生成装置に関し、特に
、搭載されるソフトウェア(プログラム)のロジック変
更を行なうことなく接続する入出力装置の変更に対応し
たシステムソフトウェアを生成するシステムソフトウェ
ア生成装置に関する。
[Detailed Description of the Invention] [Industrial Field of Application] The present invention relates to a system software generation device, and in particular, to a system software generation device that can handle changes in connected input/output devices without changing the logic of installed software (program). The present invention relates to a system software generation device that generates system software.

[従来の技術] 従来よりソフトウェアシステムを採用して、接続された
ハードウェアの駆動を制御するような電子機器がある。
[Prior Art] Conventionally, there are electronic devices that employ software systems to control the driving of connected hardware.

この電子機器には一般にモジュラ−構成が採用される。This electronic device generally has a modular configuration.

このモジュラ−構成とは、プログラムと装置を無関係に
作成することを可能にして、装置の変更、拡張が行なわ
れてもプログラムの書き直しの必要が極力少なく、また
、任意の機器構成でも、またアプリケーションプログラ
ムにでも適用できるように命令とデータとが組織的に集
まった形のいくつものモジュールから構成されるような
ものである。
This modular configuration makes it possible to create programs and devices independently, minimizing the need to rewrite programs even if the device is changed or expanded. It is composed of a number of modules in which commands and data are systematically assembled so that they can be applied to programs.

モジュラ−構成を採用する電子機器において、このソフ
トウェアシステム構造を概念的に述べるならば、前記ソ
フトウェアシステムは、前記ハードウェアを中核にして
システム(基本)ソフトウェアが構築され、さらに前記
システムソフトウェアの上層に応用ソフトウェアが構築
されるというような階層構造が採られている。
In an electronic device that employs a modular configuration, conceptually describing the software system structure, the software system consists of system (basic) software built around the hardware as the core, and then an upper layer of the system software. A hierarchical structure is adopted in which application software is constructed.

前記システムソフトウェアは、いわゆるO8(オペレー
ティングシステム)を主とする基本ソフトウェアの集合
体からなり、前記応用ソフトウェアはユーザが作成する
アプリケーションプログラムの集合体からなる。したが
って、ユーザが所望するハードウェア機能の動作は、シ
ステムソフトウェアに制御されて行なわれる応用ソフト
ウェアの処理によって実現される。つまり、ユーザが作
成する応用ソフトウェアの性能および信頼性は、ハード
ウェアおよびシステムソフトウェアのそれに大きく依存
することになる。
The system software consists of a collection of basic software mainly consisting of a so-called O8 (operating system), and the application software consists of a collection of application programs created by a user. Therefore, the operation of the hardware functions desired by the user is realized by the processing of the application software that is controlled by the system software. In other words, the performance and reliability of application software created by users are highly dependent on the hardware and system software.

また、システムソフトウェアは命令とデータが組織的に
集まった形の複数のモジュールから生成されている。こ
の複数モジュールのなかには必須のもの、択一選択のも
の、任意選択のものなどがある。従来、電子機器に適用
されるシステムソフトウェアを生成するシステム生成時
には、該電子機器に接続された主記憶装置、入出力装置
などの処理能力にあうように、予め提供されるモジュー
ル群の中から複数のモジュールを任意に選択して最適な
、すなわち該電子機器における処理の形式とハードウェ
ア能力とに一致したシステムソフトウェアを生成してい
た。
Furthermore, system software is generated from multiple modules that are organized collections of instructions and data. Among these multiple modules, there are some that are required, some that are optional, and some that are optional. Conventionally, when generating a system to generate system software applied to an electronic device, multiple modules are selected from a group of modules provided in advance to match the processing capacity of the main storage device, input/output device, etc. connected to the electronic device. The modules were arbitrarily selected to generate system software that was optimal, that is, matched to the processing format and hardware capabilities of the electronic device.

[発明が解決しようとする課題] しかしながら、上述したシステム生成方式においては、
予め決定された接続ハードウェアの構成情報に従ってシ
ステムソフトウェアの構成が決定され、応じて必要モジ
ュールが選択されていた。
[Problem to be solved by the invention] However, in the system generation method described above,
The system software configuration is determined according to predetermined connection hardware configuration information, and necessary modules are selected accordingly.

したがって、接続するハードウェアの構成が変更された
り、またその変更が頻繁に行なわれるような電子機器に
おいては、採用されるシステムソフトウェア構成を一意
に決定することは不可能であった。
Therefore, in electronic equipment where the configuration of connected hardware is changed or frequently changed, it has been impossible to uniquely determine the system software configuration to be adopted.

つまり、上述したようなシステム生成方式によれば制御
対象であるハードウェアの構成に変更があるごとに、シ
ステムソフトウェアを構成するモジュールの入替えが行
なわれ、この入替えに伴って再度システム生成の処理が
実行されていた。ところが、このモジュールの入替えは
前記複数モジュールが記憶されたROM(Read  
OnlyMeoryの略)交換、即ちプログラムの変更
(ロジックおよびデータなど)によって行なわれていた
。そのため、ハードウェア構成に変更があるたびに該電
子機器に搭載されたROMの交換が必要となり、ROM
交換と、これに伴うシステムの試験作業などで多大な費
用と時間がかかるという問題があった。
In other words, according to the system generation method described above, each time there is a change in the configuration of the hardware to be controlled, the modules that make up the system software are replaced, and with this replacement, the system generation process is performed again. It was being executed. However, this module replacement requires only the ROM (Read
OnlyMeory) replacement, that is, changing the program (logic, data, etc.). Therefore, every time there is a change in the hardware configuration, it is necessary to replace the ROM installed in the electronic device, and the ROM
There was a problem in that the replacement and associated system testing work required a great deal of cost and time.

それゆえに本発明の目的は、モジュラ−構成が採用され
る電子機器において、搭載されるシステムソフトウェア
のロジック変更を伴うことなく、接続される入出力機器
の変更に対応できるシステムソフトウェアを生成するシ
ステムソフトウェア生成装置を提供することである。
Therefore, an object of the present invention is to create system software that can accommodate changes in connected input/output devices without changing the logic of installed system software in electronic equipment that employs a modular configuration. The purpose is to provide a generating device.

[課題を解決するための手段] 本発明にかかるシステムソフトウェア生成装置は、複数
個の入出力機器を含む電子機器において、それぞれの入
出力機器を制御するためのタスクを個別的に生成するシ
ステムソフトウェア生成装置であって、詳細には、シス
テム起動時に前記電子機器に接続された入出力機器に関
する情報を収集する情報収集手段と、前記情報収集手段
によって収集された情報に基づいて、前記入出力機器を
制御するタスクを生成するタスク生成手段とを備えて構
成される。
[Means for Solving the Problems] A system software generation device according to the present invention provides system software that individually generates tasks for controlling each input/output device in an electronic device including a plurality of input/output devices. The generation device includes, in detail, information collection means for collecting information regarding input/output devices connected to the electronic device at the time of system startup; and task generation means for generating a task to control.

また、別の局面によれば、本発明にかかるシステムソフ
トウェア生成装置は、前述したような構成において、さ
らに、前記電子機器に登録された応用プログラムの処理
において使用される入出力機器の機種を検出する機種検
出手段と、前記機種検出手段によって検出された機種が
、前記情報収集手段によって収集された情報に含まれて
いることを判別する判別手段と、前記判別手段の判別結
果に応じた処理を実行する手段とを備えて構成される。
According to another aspect, the system software generation device according to the present invention has the above-described configuration, and further detects the model of an input/output device used in processing an application program registered in the electronic device. a model detecting means for detecting a model, a discriminating means for discriminating that the model detected by the model detecting means is included in the information collected by the information collecting means, and a process according to a discrimination result of the discriminating means. and means for executing the same.

[作用] 本発明にかかるシステムソフトウェア生成装置は上述の
ように構成されるので、システム起動時に、情報収集手
段により該装置が適用される電子機器に接続される入出
力機器に関する情報を収集し、タスク生成手段はこの収
集された情報に従い前記入出力機器を制御するのに必要
なタスクを自動的に生成するようにしている。したがっ
て、あらかじめ搭載された入出力機器の制御に関するソ
フトウェア(プログラム)のロジック変更を伴うことな
く、入出力機器構成の変化に対応できるので、このとき
入出力機器制御に関するプログラムサイズに変更は発生
しない。
[Operation] Since the system software generation device according to the present invention is configured as described above, when the system is started, the information collection means collects information regarding input/output devices connected to the electronic equipment to which the device is applied, The task generation means automatically generates tasks necessary to control the input/output device according to the collected information. Therefore, changes in the input/output device configuration can be handled without changing the logic of software (programs) for controlling the input/output devices installed in advance, so that the program size for controlling the input/output devices does not change at this time.

また、判別手段を用いて、前記機種検出手段によって検
出された機種が、前記情報収集手段によって収集された
入出力機器に関する情報に含まれていることを判別し、
その判別結果に応じた処理を実行するようにしているの
で、前記検出機種が前記収集情報に含まれていないと判
別された場合、該電子機器に前記台まれない機種をデー
タ入出刃先に指定した応用プログラム処理を登録したユ
ーザに対して警告を与えることができる。
Further, using a determining means, determining that the model detected by the model detecting means is included in the information regarding the input/output device collected by the information collecting means,
Since processing is executed according to the determination result, if it is determined that the detected model is not included in the collected information, the model that is not installed in the electronic device is specified as the data input/output cutting edge. A warning can be given to users who have registered application program processing.

[実施例コ 以下、本発明の一実施例について図面を参照して詳細に
説明する。
[Embodiment] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.

第1図は、本発明の一実施例によるシステムソフトウェ
ア生成装置が適用された電子機器の機能構成を示す概略
図である。
FIG. 1 is a schematic diagram showing the functional configuration of an electronic device to which a system software generation device according to an embodiment of the present invention is applied.

図示される電子機器は主に下位に接続された各種入出力
デバイスを制御するコントロールユニット10、前記コ
ントロールユニット10とデータ入出力を行ないながら
該電子機器外部とのデータの入出力動作を行なう複数台
の表示装置DSj(以下、j=1.2.3、・・・、h
)、複数台の入力装置KBk (以下、k=1.2.3
、・・・、m)および複数台のプリンタPRt(以下、
t=1.2.3、・・・、n)を接続する。前記コント
ロールユニット10は、該電子機器自体の動作を制御お
よび監視するメインCPU (中央処理装置の略)11
、該電子機器の処理動作に必要とされるプログラムを含
む各種データを記憶するためのメモリROMI2および
RAM (Random  Access  Memo
ryの略)13、入出カプロセッサでありサブCPU1
41を備えるシリアルI/F (インターフェイスの略
)コントローラ14、前記入出力装置を接続して、接続
された入出力装置と上位コントロールユニット10との
電気的な通信接続を可能にするコネクタ151 (以下
、i=1.2.3、・・・、g)を含む。
The illustrated electronic equipment mainly includes a control unit 10 that controls various input/output devices connected to the lower level, and a plurality of units that perform data input/output operations with the outside of the electronic equipment while inputting and outputting data with the control unit 10. Display device DSj (hereinafter, j=1.2.3, . . . , h
), multiple input devices KBk (hereinafter k=1.2.3
,...,m) and multiple printers PRt (hereinafter referred to as
t=1.2.3,...,n). The control unit 10 includes a main CPU (abbreviation for central processing unit) 11 that controls and monitors the operation of the electronic device itself.
, a memory ROMI2 and a RAM (Random Access Memo) for storing various data including programs required for processing operations of the electronic device.
ry (abbreviation) 13, input/output processor and sub CPU1
A serial I/F (abbreviation for interface) controller 14 comprising a serial I/F (abbreviation for interface) 41, a connector 151 (hereinafter referred to as , i=1.2.3, ..., g).

また、前記表示装置DS j、入力装置KBkおよびプ
リンタPRtは各装置ごとにCPUを備えており、これ
らはすべてシリアルラインにより上位のコントロールユ
ニット10に接続されている。
Further, each of the display device DSj, input device KBk, and printer PRt is equipped with a CPU, and all of these devices are connected to the upper control unit 10 by a serial line.

また、これら各入出力装置は、そのCPUの内部メモリ
に予め自己のタイプ(機種)を記憶しており、上位のシ
リアルI/Fコントローラ14からの自己のタイプ(機
種)間合せに対して、内部メモリから前記記憶された自
己のタイプ(機種)を読出して応答するような機能を備
えている。
In addition, each of these input/output devices stores its own type (model) in advance in the internal memory of its CPU, and responds to its own type (model) from the host serial I/F controller 14. It has a function of reading the stored own type (model) from the internal memory and responding.

また、該電子機器の処理は大きく演算制御に関する処理
と入出力の制御に関する処理とに分けられる。薫ず、コ
ントロールユニット10のメインCPUIIは主に演算
制御を行なう。一方の入出力制御はこの演算制御から分
離独立されており、この入出力制御のための機能はシリ
アルI/Fコントローラ14のサブCPU141に集中
して持たせられている。したがって、メインCPUI 
1は入出力制御のための処理から解放されることになる
ので、メインCPUI 1における負荷が低減されて演
算処理の高速化を図ることが可能となる。
Further, the processing of the electronic device can be broadly divided into processing related to arithmetic control and processing related to input/output control. The main CPU II of the control unit 10 mainly performs calculation control. One input/output control is separated and independent from this arithmetic control, and the function for this input/output control is concentrated in the sub CPU 141 of the serial I/F controller 14. Therefore, the main CPU
Since main CPU 1 is freed from processing for input/output control, the load on main CPU 1 is reduced, making it possible to speed up arithmetic processing.

また、図示される各入出力装置の機種は特定されず、同
一機種のものを同時に2台以上接続することも可能であ
る。
Further, the model of each input/output device shown in the figure is not specified, and it is also possible to connect two or more of the same model at the same time.

第2図は、前掲第1図に示された電子機器の入出力装置
制御のために生成されるタスクの構成と各タスク間の相
互関係を示す概略図である。
FIG. 2 is a schematic diagram showing the configuration of tasks generated for controlling the input/output device of the electronic device shown in FIG. 1 and the mutual relationships among the tasks.

図示されるようにコントロールユニット10側で生成さ
れた複数のタスクは、シリアルI/Fコントローラ14
を介して入出力装置側に接続された表示装置DS j、
入力装置KBkおよびプリンタPREに入出力動作を行
なわせるようなタスクである。
As shown in the figure, a plurality of tasks generated on the control unit 10 side are executed by the serial I/F controller 14.
A display device DS j connected to the input/output device side via
This task is to cause input device KBk and printer PRE to perform input/output operations.

なお、以下、タスクとはメインCPUIIが処理する仕
事の1単位であり、第1図のROMI2の所定の記憶領
域上でメインCPUII制御のも七に実行されるもので
ある。
Note that hereinafter, a task is a unit of work processed by the main CPU II, and is executed in a predetermined storage area of the ROMI 2 in FIG. 1 under the control of the main CPU II.

図示されるようにコントロールユニット10側のメイン
CPUI 1が稼働状態においては、必要とされるアプ
リケーションタスク群TO1入力装置制御タスク群Tl
k、表示装置制御タスク群T2j1およびプリンタ制御
タスク群T3tならびにシリアルI/F制御タスクT4
が生成されて、メモリROM12の所定の記憶領域上に
ロードされた状態にある。これら各タスクは、メインC
PU1lが割当てられると即座に実行可能な状態に移行
できるような状態、即ち起動状態にある。
As shown in the figure, when the main CPU 1 on the control unit 10 side is in operation, the required application task group TO1 input device control task group Tl
k, display device control task group T2j1, printer control task group T3t, and serial I/F control task T4
has been generated and loaded onto a predetermined storage area of the memory ROM 12. Each of these tasks is
When PU1l is allocated, it is in a state where it can immediately transition to an executable state, that is, it is in an activated state.

また、これら各タスクを統括的に管理するプログラムと
してリアルタイムモニタRMがあり、これは該電子機器
に搭載されたオペレーティングシステムの一機能として
標準的に提供される。したがって、コントロールユニッ
ト10側で生成されたタスクによって発生される各入出
力装置の使用(占有)要求は、リアルタイムモニタRM
に制御されながらシリアル1./Fコントローラ14の
サブCPU141に渡されて処理されることになる。
Furthermore, there is a real-time monitor RM as a program that comprehensively manages each of these tasks, and this is provided as a standard function of the operating system installed in the electronic device. Therefore, requests to use (occupy) each input/output device generated by tasks generated on the control unit 10 side are processed by the real-time monitor RM.
Serial 1. /F will be passed to the sub CPU 141 of the controller 14 and processed.

なお、説明を簡単にするために前記アプリケーションタ
スク群TOについての詳細な説明は省略し、ここでは入
力装置制御タスク群Tlk、表示装置制御タスク群T2
jおよびプリンタ制御タスク群T3Lに関して詳細な説
明を行なう。
In order to simplify the explanation, a detailed explanation of the application task group TO will be omitted, and here the input device control task group Tlk and the display device control task group T2 will be omitted.
A detailed explanation will be given regarding j and printer control task group T3L.

まず、リアルタイムモニタRMが備えるタスク管理機能
について簡単に説明する。
First, the task management function included in the real-time monitor RM will be briefly explained.

リアルタイムモニタRMはタスクを管理する。Real-time monitor RM manages tasks.

そのために各タスクに対応して設けられたTCB(タス
ク制御ブロック)領域に記憶されたデータを参照しなが
ら、タイマ監視、記憶監視、オーバレイ監視などのタス
ク管理を行なう。このTCBにはROM12の所定記憶
領域が割りあてられており、各タスクの起動状態(実行
状態、レディ状態、待ち状態など)、各タスクがメイン
CPU11を占有するための優先順位およびレジスタ内
容などの情報が記憶されている。したがって、メインC
PUI 1の演算処理の過程において新しいタスクが生
成されたとしても、あらかじめこの生成されたタスクに
関する情報記憶のためのTCB領域が設けられ、そこに
生成されたタスクに関する情報が記憶されていなければ
、前記新しく生成されたタスクは決して起動状態に移さ
れることはない。したがって、このタスクは実行される
こともない。
For this purpose, task management such as timer monitoring, memory monitoring, and overlay monitoring is performed while referring to data stored in a TCB (task control block) area provided corresponding to each task. A predetermined storage area of the ROM 12 is allocated to this TCB, and it stores information such as the activation state of each task (execution state, ready state, waiting state, etc.), the priority order for each task to occupy the main CPU 11, register contents, etc. Information is stored. Therefore, main C
Even if a new task is generated in the process of arithmetic processing of PUI 1, if a TCB area for storing information regarding this generated task is provided in advance and information regarding the generated task is not stored there, The newly created task is never moved to the activated state. Therefore, this task is never executed.

以上のように、リアルタイムモニタRMにより、該電子
機器において生成される全てのタスクについての管理か
一括して行なわれる。
As described above, the real-time monitor RM collectively manages all tasks generated in the electronic device.

ここで、前述したタスクの生成について詳細に説明する
Here, the generation of the task mentioned above will be explained in detail.

タスク生成とはプログラムを作ることではなく、上述し
たTCBをリアルタイムモニタRMの管理領域に登録す
ることを意味している。このタスク生成後に行なわれる
タスク起動とは、生成されたタスクを前述したタスクの
実行状態、レディ状態および待ち状態などのいずれかの
状態に登録することをいう。
Task creation does not mean creating a program, but rather registering the above-mentioned TCB in the management area of the real-time monitor RM. Activation of a task performed after task generation means registering the generated task in any of the above-described task execution states, ready states, and waiting states.

ところで、第2図に示された入出力装置制御用のタスク
群TlkST2jおよびTa2はそれぞれリエントラン
ト(再入可能)プログラムを利用したタスクである。
By the way, the input/output device control task groups TlkST2j and Ta2 shown in FIG. 2 are tasks that utilize reentrant programs, respectively.

このリエントラントプログラムは、1つのプログラムの
中に不変の部分(主として手続)と可変の部分(主とし
てデータと作業領域)とを分離して備えたプログラムで
ある。したがって、この可変の部分を数多く持つことに
よって、1つのりエンドラントプログラムを用いて同時
に複数のプログラムの処理要求を受付けることができる
ようなプログラム構成を容易に採ることができる。
This reentrant program is a program in which an unchanging part (mainly procedures) and a variable part (mainly data and work area) are separated into one program. Therefore, by having a large number of variable parts, it is possible to easily adopt a program configuration that can simultaneously accept processing requests for a plurality of programs using a single endrunt program.

なお、前記可変の部分の作業領域は、該リエントラント
プログラム実行における中間的な演算結果である中間デ
ータを一時的に記憶するための記憶領域である。
Note that the work area of the variable portion is a storage area for temporarily storing intermediate data that is an intermediate calculation result during execution of the reentrant program.

また、リエントラントプログラムは、その使用目的から
実行中に他のプログラムによって誤ってデータ書込され
てその手続内容が変更されないように、読出専用(Re
ad  0nly)プログラムとしてリアルタイムモニ
タRMなどの管理領域に登録されている。したがって、
該リエントラントプログラムを一旦、ROM12などの
主記憶領域にロードすれば、任意のタスクからいつでも
自由にこのロードされたりエンドラントプログラムを使
用することができる。つまり、例えば第2図の入出力装
置制御用のタスク群TlkST2jおよびTa2におい
て、優先順位に従ってこの中のあるタスクにCPUI 
1が割当てられてこのタスクがリエントラントプログラ
ムを用いて実行状態にあると想定する。その後、リアル
タイムモニタRMなどの割り込み管理処理に基づいて、
このタスクの実行が終了しないうちに別のタスクにCP
U1lが割当てられた場合、リアルタイムモニタRMは
CPUI 1の制御をこの別のタスクに渡して、この別
のタスクを実行状態に移すとともに、前に実行されてい
たタスクを待ち状態、またはレディ状態に移し、この別
のタスクがリエントラントプログラムを利用することが
できるように管理する。その後、リアルタイムモニタR
Mはこの別のタスクの実行が終了しCPUI 1が空い
た時点で、再度、優先順位に従って例えば前に実行され
ていたタスクを待ち状態またはレディ状態から実行状態
に移して、前回中断された時点から実行を再開する。つ
まり、リアルタイムモニタRMは、このように実行中断
されたタスクが中断された時点から実行を再開できるよ
うに、実行が中断されたタスクの中間データを前述した
作業領域(ワークエリアおよびスタックエリアなど)に
退避させることにより次の実行再開を可能にしている。
In addition, due to its purpose of use, reentrant programs are read-only (Re-entrant programs) so that data will not be accidentally written by another program during execution and the procedure contents will not be changed.
ad 0nly) program in a management area such as the real-time monitor RM. therefore,
Once the reentrant program is loaded into a main storage area such as the ROM 12, the reentrant program can be freely loaded and used from any task at any time. In other words, for example, in the input/output device control task group TlkST2j and Ta2 shown in FIG.
1 is assigned and this task is running using a reentrant program. After that, based on interrupt management processing such as real-time monitor RM,
CP to another task before the execution of this task is finished.
If U1l is assigned, the real-time monitor RM hands over control of CPUI 1 to this other task, puts this other task into the running state, and puts the previously running task into the waiting or ready state. and manage this other task so that it can take advantage of the reentrant program. After that, real-time monitor R
When the execution of this other task is finished and CPU 1 becomes free, M again moves the previously executed task from the waiting state or ready state to the running state according to the priority order, and returns the task to the point where it was interrupted last time. Resume execution from. In other words, the real-time monitor RM stores the intermediate data of the task whose execution was interrupted in the aforementioned work area (work area, stack area, etc.) so that the execution of the task whose execution was interrupted in this way can be resumed from the point where it was interrupted. By saving it to , it is possible to resume the next execution.

なお、この作業領域には、実行再開始のためのアドレス
値、スタックポインタ値などが記憶されている。
Note that this work area stores address values, stack pointer values, etc. for restarting execution.

以上のように、リエントラントプログラムを用いた場合
、たとえばROM12の主記憶領域が比較的小さくても
複数のタスクの実行が可能となり、さらにプログラムの
ロード(主記憶領域への配置)をやり直す時間が不要と
いう特徴を持っている。
As described above, when using a reentrant program, it is possible to execute multiple tasks even if the main storage area of the ROM 12 is relatively small, and there is no need to spend time reloading the program (allocating it to the main storage area). It has the following characteristics.

したがって、入出力装置制御用のタスク群Tlk。Therefore, the task group Tlk is for controlling input/output devices.

T2jおよびTa2が使用するプログラムルーチンにつ
いてこのりエンドラントプログラムを採用すれば、複数
のタスク間で1つのりエンドラントプログラムを使用す
ることが可能となり、さらに1つのタスク内で1つのり
エンドラントプログラムを繰返し用いることも可能とな
る。このとき、前述したような実行再開始のための中間
データ退避用の作業領域をあらかじめ各タスクごとに準
備するだけで、プログラムは単一でありながら、あたか
も複数個のタスクが主記憶領域で同時に実行状態にある
かのように取扱うことができる。したがって、複数のタ
スクを同一プログラムを利用して実行することによりプ
ログラム格納用の記憶領域の削減が図れる。
If this endrunt program is adopted for the program routine used by T2j and Ta2, it becomes possible to use one endrunt program between multiple tasks, and furthermore, it is possible to repeat one endrunt program within one task. It is also possible to use At this time, by simply preparing a work area for saving intermediate data for resuming execution for each task in advance as described above, the program can be run as if multiple tasks were running simultaneously in the main memory area, even though the program is a single program. It can be treated as if it were in the running state. Therefore, by executing a plurality of tasks using the same program, the storage area for storing programs can be reduced.

第3図は、前掲第1図の電子機器に適用されるシステム
ソフトウェア生成装置による入出力装置制御用のシステ
ムソフトウェア生成のための概略処理フロー図である。
FIG. 3 is a schematic process flow diagram for generating system software for controlling input/output devices by the system software generation device applied to the electronic device shown in FIG. 1 above.

図示されるように、この処理フロー図はコントロールユ
ニット10のメインCPUI l側とシリアルI/Fコ
ントローラ14のサブCPU141側との処理に分割さ
れており、各処理フローは予めプログラムとしてメモリ
ROM12に格納されており、メインCPUIIまたは
サブCPU141の制御のもとに実行される。
As shown, this processing flow diagram is divided into processing on the main CPU I side of the control unit 10 and on the sub CPU 141 side of the serial I/F controller 14, and each processing flow is stored in advance as a program in the memory ROM 12. It is executed under the control of the main CPU II or the sub CPU 141.

第4図(a、 )および(b)は、前掲第3図の入出力
装置制御用システムソフトウェア生成のための処理実行
中においてメインCPUにより参照される接続デバイス
テーブルおよび処理タイプデープルの一例を示す概略図
である。
Figures 4 (a, ) and (b) show an example of the connected device table and processing type table referenced by the main CPU during the execution of the process for generating input/output device control system software shown in Figure 3 above. FIG.

第4図(a)は、第1図に示されたすべての入出力装置
について、それぞれの機種が書込まれた接続デバイステ
ーブルDTHの概略構成図である。
FIG. 4(a) is a schematic diagram of the connected device table DTH in which the types of all the input/output devices shown in FIG. 1 are written.

また、第4図(b)は、第1図に示されたコントロール
ユニット10において実行されるユーザ作成のアプリケ
ーションプログラムの種類(集計・精算など)を示すユ
ーザプログラムの処理タイプSTと、このユーザプログ
ラム実行中に使用される入出力装置の機種を示す使用デ
バイスUDとが対応するように書込まれた処理タイプテ
ーブルITBの概略構成図である。
Further, FIG. 4(b) shows the processing type ST of the user program indicating the type of user-created application program (totalization, settlement, etc.) executed in the control unit 10 shown in FIG. FIG. 3 is a schematic configuration diagram of a processing type table ITB written in such a manner that the used device UD indicating the model of the input/output device used during execution corresponds to the processing type table ITB.

ここで、図示される各テーブルについて簡単に説明する
Here, each illustrated table will be briefly explained.

第4図(a)の接続デバイステーブルDTBは、図示さ
れるように、たとえばビットbOないしビットb7から
なる固定語長8ビツトを有した第1ワードW1ないし第
5ワードW5の5ワード構成であるとする。その内訳は
、第17−ドW1および第2ワードW2は第1図の入力
装置KBkの接続情報が書込まれる領域であり、また第
37−ドW3および第4ワードW4は表示装置DSjの
接続情報が書込まれる領域であり、さらに第5ワードW
5はプリンタPRLの接続情報が書込まれる領域である
。この接続情報は、前記第1ないし第5ワードW1ない
しW5のビットboないしb7の値によりコントロール
ユニット10に接続される入出力装置の機種を特定する
ような情報である。
As shown in the figure, the connected device table DTB in FIG. 4(a) has a 5-word structure of a first word W1 to a fifth word W5, each having a fixed word length of 8 bits, consisting of bits bO to b7, for example. shall be. The breakdown is that the 17th word W1 and the second word W2 are areas where the connection information of the input device KBk shown in FIG. This is an area where information is written, and the fifth word W
5 is an area in which connection information of the printer PRL is written. This connection information is information that specifies the type of input/output device connected to the control unit 10 based on the values of bits bo to b7 of the first to fifth words W1 to W5.

詳細には、たとえば第3ワードW3のビットb5に値“
1”が書込まれていれば、第3ワードW3のビットb5
で特定される機種の表示装置が接続されていることがわ
かる。また、反対に値“0”が書込まれていれば、第3
ワードW3のビットb5で特定される機種の表示装置は
接続されていないことがわかる。
Specifically, for example, bit b5 of the third word W3 has a value “
If “1” is written, bit b5 of third word W3
It can be seen that the display device of the model specified by is connected. Conversely, if the value “0” is written, the third
It can be seen that the display device of the model specified by bit b5 of word W3 is not connected.

なお、この接続デバイステーブルDTBの作成およびア
クセスに関する処理についての詳細な説明は後述する。
Note that a detailed explanation of the process related to creation and access of this connected device table DTB will be given later.

前記第4図(b)の処理タイプテーブルITBは、図示
されるように任意の固定語長を有する任意数のワード構
成を採っている。その内訳についての詳細は、たとえば
各ワードの下位半ワードWLは前述したユーザ作成のプ
ログラムの処理タイプSTが書込まれて記憶される領域
である。また、各ワードの下位半ワードWUは前述した
ように同一ワードの下位半ワードWLに記憶された処理
タイプSTのユーザプログラム実行時に使用される入出
力装置の機種を示す使用デバイスUDが書込まれて記憶
される領域である。したがって、処理タイプテーブルI
TBを構成するワード数は、少なくともユーザプログラ
ム数またはユーザプログラムによって構成される処理の
数に相当することになる。
The processing type table ITB shown in FIG. 4(b) has a structure of an arbitrary number of words having an arbitrary fixed word length, as shown. As for the details, for example, the lower half word WL of each word is an area in which the processing type ST of the user-created program described above is written and stored. Furthermore, as described above, the lower half word WU of each word is written with the device used UD indicating the model of the input/output device used when executing the user program of processing type ST stored in the lower half word WL of the same word. This is the area where the data is stored. Therefore, processing type table I
The number of words constituting the TB corresponds to at least the number of user programs or the number of processes configured by the user programs.

次に、本発明の一実施例のシステムソフトウェア生成装
置による入出力装置制御用のシステムソフトウェア生成
の処理動作について第1図ないし第3図ならびに第4図
(a)および(b)を参照して詳細に説明する。
Next, with reference to FIGS. 1 to 3 and FIGS. 4(a) and (b), the processing operation of generating system software for controlling input/output devices by the system software generating device according to an embodiment of the present invention will be described. Explain in detail.

なお、各入出力装置を制御するためのりエンドラントプ
ログラムは予めROMI2の所定記憶領域に記憶され、
リアルタイムモニタRMの管理情報に登録されていると
想定する。
Note that the glue end runt program for controlling each input/output device is stored in advance in a predetermined storage area of ROMI2,
It is assumed that it is registered in the management information of the real-time monitor RM.

まず、第1図のコントロールユニット10に電源(図示
せず)投入されると、これに応答してメインCPUI 
1は第3図のステップ510(図中では、SIOと略す
)以降の処理を開始する。
First, when power (not shown) is turned on to the control unit 10 of FIG. 1, the main CPU
1 starts the processing from step 510 (abbreviated as SIO in the figure) in FIG.

まず、ステップSIOにおいてメインCPU11は、シ
リアルI/Fコントローラ14のサブCPU141に対
して現在、該コントロールユニット10に接続されてい
る入出力装置の接続状況をチエツクする旨の指示信号を
出力する。サブCPU141はこの指示信号が与えられ
たことに応答してステップS20ないしステップS50
の処理を実行して接続状況を確認する。
First, in step SIO, the main CPU 11 outputs an instruction signal to the sub CPU 141 of the serial I/F controller 14 to check the connection status of the input/output devices currently connected to the control unit 10. In response to receiving this instruction signal, the sub CPU 141 performs steps S20 to S50.
Execute the process to check the connection status.

まず、サブCPU141はステップS20の処理におい
て、各シリアルI/Fコネクタ15iを介して接続され
ている各入出力装置のCPUに対して自己の機種を間合
せるコマンドを送信する。
First, in the process of step S20, the sub CPU 141 transmits a command to adjust its own model to the CPU of each input/output device connected via each serial I/F connector 15i.

これに応答して各入出力装置のCPUは、各シリアルI
/Fコネクタ15iを介して、あらかじめ内部メモリに
記憶された自己の機種を読取ってサブCPUI41に送
信するので、サブCPUI41はステップS30の処理
において各入出力制御装置から各装置の機種に関するデ
ータを受取ることができる。その後、ステップS40に
移行して、この受信データに基づいて第4図(a)の接
続デバイステーブルDTBをメモリRAM13の所定の
記憶領域に作成する。
In response, the CPU of each input/output device
Since the sub CPU 41 reads its own model stored in the internal memory in advance and sends it to the sub CPU 41 via the /F connector 15i, the sub CPU 41 receives data regarding the model of each device from each input/output control device in the process of step S30. be able to. Thereafter, the process moves to step S40, and the connected device table DTB shown in FIG. 4(a) is created in a predetermined storage area of the memory RAM 13 based on this received data.

さて、この接続デバイステーブルDTB作成時において
は、接続されている装置の機種に該当するワードの該当
ビットには値“1”を書込むように処理するが、該当し
ないすべてのビットには値“0”を書込むように処理し
て接続デバイステーブルDTBを作成する。その後、処
理ステップS50においてこの接続デバイステーブルD
TBをメモリRAM13からメモリROMI 2に転送
してメインCPUI 1がアクセス可能な状態に設定し
て、処理を再度メインCPUII側に戻す。メインCP
UIIは、サブCPU141から処理が戻されたことに
応じてステップS60以降の処理を実行する。
Now, when creating this connected device table DTB, the value "1" is written to the corresponding bit of the word corresponding to the model of the connected device, but the value "1" is written to all bits that do not correspond. 0'' is written to create the connected device table DTB. Thereafter, in processing step S50, this connected device table D
The TB is transferred from the memory RAM 13 to the memory ROMI 2, set in a state where the main CPU 1 can access it, and the process is returned to the main CPU II side again. Main CP
The UII executes the processing from step S60 in response to the processing being returned from the sub CPU 141.

まず、CPUIIはステップS60の処理において、メ
モリROMI2に記憶された接続デバイステーブルDT
Bを先頭から最終までを順次探索して次のステップS7
0およびステップS80において、ステップS60の探
索結果による入力装置KBkの接続有りに応じて入力装
置制御タスクを生成し起動する。このとき、処理ステッ
プS60において接続デバイステーブルDTBは順次探
索されているので、ステップS70の入力装置の接続情
報探索終了か否かの判別処理が成立するまでステップS
60ないしステップS80のループ処理が繰返し実行さ
れて、ステップS70の判別処理成立時には第2図の入
力装置制御タスク群T1にの生成と起動が完了する。
First, in the process of step S60, the CPU II uses the connected device table DT stored in the memory ROMI2.
B is sequentially searched from the beginning to the end, and the next step S7
0 and step S80, an input device control task is generated and activated in response to the search result of step S60 indicating that the input device KBk is connected. At this time, since the connected device table DTB is sequentially searched in processing step S60, step S
The loop processing from step S60 to step S80 is repeatedly executed, and when the determination processing at step S70 is established, the generation and activation of the input device control task group T1 in FIG. 2 is completed.

ステップS70の判別処理が成立すると、処理はステッ
プS90およびステップ5100において、表示装置D
Sjの接続有りに応じて、表示装置制御タスクが生成さ
れて起動される。このとき、処理ステップ360におい
て、接続デバイステーブルDTBは順次探索されている
ので、ステップS90の表示装置の接続情報探索終了か
否かの判別処理が成立するまで、ステップS60ないし
ステップ5100のループ処理が繰返し実行されて、ス
テップS90の判別処理成立時には第2図の表示装置制
御タスク群T2jの生成と起動が完了する。
When the determination process in step S70 is established, the process proceeds to step S90 and step 5100, in which the display device D
In response to the connection of Sj, a display device control task is generated and activated. At this time, since the connected device table DTB is sequentially searched in processing step 360, the loop processing from step S60 to step 5100 is continued until the determination processing of whether or not the search for display device connection information is completed in step S90 is established. This is repeatedly executed, and when the determination process in step S90 is satisfied, the generation and activation of the display device control task group T2j shown in FIG. 2 is completed.

ステップS90の判別処理が成立すると、処理はステッ
プ5110およびステップ5120において、プリンタ
PRE接続有りに応じて、プリンタ制御タスクが生成さ
れて起動される。このとき、処理ステップS60におい
て、接続デバイステーブルDTBは順次探索されている
ので、ステップ5110のプリンタの接続情報探索終了
か否かの判別処理が成立するまで、ステップS60ない
しステップ5120のループ処理が繰返し実行されて、
ステップ110の判別処理成立時には第2図のプリンタ
制御タスク群T3Lの生成と起動が完了する。そして、
ステップ5110の判別処理が成立すると、処理は後述
するステップ5130以降に分岐する。
When the determination process in step S90 is established, the process proceeds to steps 5110 and 5120 in which a printer control task is generated and activated depending on whether the printer PRE is connected. At this time, since the connected device table DTB is sequentially searched in processing step S60, the loop processing from step S60 to step 5120 is repeated until the determination process of whether or not the printer connection information search is completed in step 5110 is satisfied. is executed,
When the determination process in step 110 is established, the generation and activation of the printer control task group T3L shown in FIG. 2 is completed. and,
If the determination process in step 5110 is satisfied, the process branches to steps after step 5130, which will be described later.

さて、ここで前述した処理ステップS80、ステップ5
100およびステップ5120におけるタスクの生成と
起動について説明を加える。
Now, here, the above-mentioned processing step S80, step 5
The generation and activation of tasks in steps 100 and 5120 will be explained below.

前述したように本システムソフトウェア生成装置におけ
るタスクの生成とは、リアルタイムモニタRMが管理す
るROMI2のTCB領域に生成タスクに関する情報が
登録されることであり、また、該タスク実行時にその作
業用の記憶領域がメモリRA M 13上に採られるこ
とである。このとき、複数の入出力制御装置タスクは、
前述したように予めメモリROMI 2上に記憶され、
かつリアルタイムモニタRMの管理情報に登録された単
一のりエンドラントプログラムを用いるように生成され
るので、このタスク生成においてログラムのロジックお
よびデータの変更(追加あるいは削除)は伴わないこと
がわかる。
As mentioned above, the generation of a task in this system software generation device means that information about the generated task is registered in the TCB area of ROMI2 managed by the real-time monitor RM, and also that when the task is executed, the working memory is An area is taken up on the memory RAM 13. At this time, multiple I/O controller tasks are
As mentioned above, it is stored in advance on the memory ROMI 2,
In addition, since the task is generated using a single glue-end run program registered in the management information of the real-time monitor RM, it can be seen that the program logic and data are not changed (added or deleted) in this task generation.

また、生成されたタスクは前述したようなタスクの実行
サイクル(レディ状態、実行状態、待ち状態など)に登
録されることにより起動される。
Further, the generated task is activated by being registered in the task execution cycle (ready state, execution state, wait state, etc.) as described above.

つまり、リアルタイムモニタRMによるTCB領域を参
照したタスク管理のもとに、各タスクは、その優先順位
に従い、また各種割込処理などを受けながらメインCP
U11が割当てられて実行されることが可能な状態とな
る。
In other words, each task is managed by the real-time monitor RM with reference to the TCB area, and each task is sent to the main CPU according to its priority and while receiving various interrupt processing.
U11 is allocated and becomes ready to be executed.

したがって、入出力装置接続状況を知り、これに応じて
TCHのデータ更新と実行時の作業領域の割り当てが行
なわれることにより、同一リエンドラントプログラムを
利用した複数のタスクが生成および起動される。
Therefore, by knowing the input/output device connection status and updating TCH data and allocating a work area during execution accordingly, a plurality of tasks using the same reendrant program are generated and activated.

以上のように、接続デバイステーブルDTBに従って接
続される入出力装置すべてについて、その制御用タスク
の生成および起動が終了すると、次はステップ5130
の処理に移行して処理タイプテーブルITBが作成され
る。
As described above, when the generation and activation of control tasks for all input/output devices connected according to the connected device table DTB are completed, the next step is step 5130.
Then, the processing type table ITB is created.

この処理タイプテーブルITBは、ユーザがキーボード
からキー人力して、このキー人力データに基づいてメイ
ンCPUIIがメモリROM12上に作成するようにし
てもよい。また、CPU11が処理タイプテーブルIT
B作成用に予め準備されれたプログラムを実行して、メ
モリRAMI2上に予め登録されたユーザのアプリケー
ションプログラムに関する情報から、その処理タイプS
Tに関するデータを読取り、さらにアプリケーションプ
ログラム中で使用されているデバイスを示ス使用デバイ
スUDに関するデータを読取り、このデータSTおよび
UDをメモリROM12上の処理タイプテーブルITB
に書込んで記憶するようにしてもよい。
The processing type table ITB may be created by the user manually inputting keys from a keyboard, and then the main CPU II creates the processing type table ITB on the memory ROM 12 based on the key input data. In addition, the CPU 11 uses the processing type table IT
By executing the program prepared in advance for B creation, the processing type S is determined from information regarding the user's application program registered in advance on the memory RAMI2.
Reads data related to T and indicates the device used in the application program.Reads data related to the device used UD, and stores this data ST and UD in the processing type table ITB on the memory ROM12.
It may also be written and stored.

以上のようにしてメモリROM12に処理タイプテーブ
ルITBが作成されると、処理は次のステップ5140
に移行する。
When the processing type table ITB is created in the memory ROM 12 as described above, the processing proceeds to the next step 5140.
to move to.

ステップ5140においては、メモリROMI2上にす
でに登録された接続デバイステーブルDTBの入出力装
置の接続情報と処理タイプテーブルITBの使用デバイ
スUDに関するデータとを比較照合して、使用デバイス
UDに相当する機種の入出力装置がすべて接続デバイス
テーブルDTBに登録されていることを確認する。
In step 5140, the connection information of the input/output device in the connected device table DTB already registered on the memory ROMI2 is compared with the data regarding the used device UD in the processing type table ITB, and the model corresponding to the used device UD is compared. Confirm that all input/output devices are registered in the connected device table DTB.

この確認結果を受けて、ステップ5150の判別処理に
おいて、使用デバイスUDに登録される機種の装置全て
が、接続デバイステーブルDτBに登録済み(該当ビッ
ト=“1”)であると判別されれば、通常のユーザプロ
グラムによる処理の開始に移行するが、そうでなければ
警告処理する。
In response to this confirmation result, in the determination process of step 5150, if it is determined that all the devices of the model registered in the used device UD are registered in the connected device table DτB (corresponding bit = "1"), Shifts to the start of normal user program processing, but otherwise issues a warning process.

この警告処理では、何らかの出力装置を介して「ユーザ
プログラムで必要とされている入出力装置が該電子機器
には未接続である」旨の警告メツセージを出力してユー
ザに注意を促すように処理する。
This warning process outputs a warning message to the effect that "the input/output device required by the user program is not connected to the electronic device" via some output device to alert the user. do.

以上のように、該システムソフトウェア生成装置が適用
された電子機器においては、システムを立ち上げるごと
に、該電子機器に接続された入出力装置を制御するため
のタスクを自動的に生成することができるので、該電子
機器の入出力装置の接続状況に何らかの変更があったと
しても、システム立ち上げさえ行えば、プログラムロジ
ックおよびデータの変更なしに容易にこれらの入出力装
置を正常に使用することが可能となる。
As described above, in electronic equipment to which the system software generation device is applied, tasks for controlling input/output devices connected to the electronic equipment can be automatically generated every time the system is started up. Therefore, even if there is any change in the connection status of the input/output devices of the electronic device, these input/output devices can be easily used normally without changing the program logic or data once the system is started. becomes possible.

[発明の効果] 本発明によるシステムソフトウェア生成装置が採用され
る電子機器においては、そのシステム起動時に該電子機
器に接続される入出力機器に関する情報を収集し、その
収集された情報に従って入出力機器制御用のタスクを自
動的に生成することができる。また、前記収集情報に、
該電子機器に予め登録されるアプリケーションプログラ
ムの処理で使用される入出力機器の機種が登録されてい
ない場合は、ユーザに対して警報を与えて対処を促すこ
ともできる。また、上記タスク生成は、リエントラント
プログラムを利用して行なわれるので、接続される入出
力機器の構成が変わり生成タスクに変更があっても、プ
ログラムのロジック変更およびデータ変更は発生しない
。したがって、プログラムサイズは増加しないため記憶
領域の有効な活用が図れる。これにともなって、システ
ムソフトウェアに関するプログラムおよびデータを一括
してROMチップに格納していた場合、接続された入出
力機器の構成変更に伴うプログラム変更すなわち、RO
Mチップの交換は不要となりハードウェアの有効利用と
コスト削減を図ることができるなどの効果がある。
[Effects of the Invention] In an electronic device that employs the system software generation device according to the present invention, information regarding input/output devices connected to the electronic device is collected when the system is started, and input/output devices are configured according to the collected information. Control tasks can be automatically generated. In addition, in the collected information,
If the type of input/output device used in the processing of an application program registered in advance in the electronic device is not registered, a warning can be given to the user to prompt him or her to take action. Furthermore, since the task generation described above is performed using a reentrant program, even if the configuration of connected input/output devices changes and the generated task changes, the logic and data of the program will not change. Therefore, since the program size does not increase, the storage area can be used effectively. Along with this, if programs and data related to system software are collectively stored in a ROM chip, program changes due to changes in the configuration of connected input/output devices, that is, RO
This eliminates the need to replace the M chip, resulting in effective use of hardware and cost reduction.

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

第1図は、本発明の一実施例によるシステムソフトウェ
ア生成装置が適用された電子機器の機能構成を示す概略
図である。第2図は、第1図に示された電子機器の入出
力装置制御のために生成されるタスクの構成と各タスク
間の相互関係を示す概略図である。第3図は、第1図の
電子機器に適用されるシステムソフトウェア生成装置に
よる入出力装置制御用のシステムソフトウェア生成のた
めの概略処理フロー図である。第4図(a)および(b
)は、第3図の入出力装置制御用システムソフトウェア
生成のための処理実行中においてメインCPUにより参
照される接続デバイステーブルおよび処理タイプテーブ
ルの一例を示す概略図である。 図において10はコントロールユニット、11はメイン
CPU、14はシリアルI/Fコントローラ、141は
サブCPU、DSjは表示装置、KBkは入力装置、P
Rtはプリンタ、TOはアプリケーションタスク群、T
lkは入力装置制御タスク群、T2jは表示装置制御タ
スク群、T3Lはプリンタ制御タスク群、T4はシリア
ルエ/F制御タスク、RMはリアルタイムモニタ、DT
Bは接続デバイステーブル、ITBは処理タイプテーブ
ル、STは処理タイプおよびUDは使用デバイスである
。 なお、各図中、同一符号は同一または相当部分を示す。 第 図
FIG. 1 is a schematic diagram showing the functional configuration of an electronic device to which a system software generation device according to an embodiment of the present invention is applied. FIG. 2 is a schematic diagram showing the configuration of tasks generated for controlling the input/output device of the electronic device shown in FIG. 1 and the mutual relationships among the tasks. FIG. 3 is a schematic process flow diagram for generating system software for controlling input/output devices by the system software generation device applied to the electronic device of FIG. Figures 4(a) and (b)
) is a schematic diagram showing an example of a connected device table and a processing type table that are referred to by the main CPU during execution of processing for generating input/output device control system software in FIG. 3; In the figure, 10 is a control unit, 11 is a main CPU, 14 is a serial I/F controller, 141 is a sub CPU, DSj is a display device, KBk is an input device, and P
Rt is the printer, TO is the application task group, T
lk is an input device control task group, T2j is a display device control task group, T3L is a printer control task group, T4 is a serial E/F control task, RM is a real-time monitor, DT
B is a connected device table, ITB is a processing type table, ST is a processing type, and UD is a used device. In each figure, the same reference numerals indicate the same or corresponding parts. Diagram

Claims (2)

【特許請求の範囲】[Claims] (1)複数個の入出力機器を含む電子機器において、そ
れぞれの入出力機器を制御するためのタスクを個別的に
生成するシステムソフトウェア生成装置であって、 システム起動時に、 前記電子機器に含まれる入出力機器に関する情報を収集
する情報収集手段と、 前記情報収集手段によって収集された情報に基づいて、
前記入出力機器を制御するタスクを生成するタスク生成
手段とを備えた、システムソフトウェア生成装置。
(1) A system software generation device that individually generates tasks for controlling each input/output device in an electronic device including a plurality of input/output devices; an information collecting means for collecting information regarding input/output devices; and based on the information collected by the information collecting means,
A system software generation device, comprising: task generation means for generating a task for controlling the input/output device.
(2)前記電子機器に登録された応用プログラムの処理
において使用される入出力機器の機種を検出する機種検
出手段と、 前記機種検出手段によって検出された機種が、前記情報
収集手段によって収集された情報に含まれていることを
判別する判別手段と、 前記判別手段の判別結果に応じた処理を実行する手段と
をさらに備えた、請求項(1)記載のシステムソフトウ
ェア生成装置。
(2) a model detection means for detecting a model of an input/output device used in the processing of an application program registered in the electronic device; and a model detected by the model detection means is collected by the information collection means. 2. The system software generation device according to claim 1, further comprising: a determining unit that determines whether the information is included in the information; and a unit that executes processing according to a determination result of the determining unit.
JP15642890A 1990-06-13 1990-06-13 System software generating device Pending JPH0447425A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15642890A JPH0447425A (en) 1990-06-13 1990-06-13 System software generating device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15642890A JPH0447425A (en) 1990-06-13 1990-06-13 System software generating device

Publications (1)

Publication Number Publication Date
JPH0447425A true JPH0447425A (en) 1992-02-17

Family

ID=15627534

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15642890A Pending JPH0447425A (en) 1990-06-13 1990-06-13 System software generating device

Country Status (1)

Country Link
JP (1) JPH0447425A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0793139A (en) * 1993-09-27 1995-04-07 Nec Corp Information processing system
US11062681B2 (en) 2016-11-25 2021-07-13 Mitsubishi Electric Corporation Monitoring system, data model management device, and method of generating display data

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0793139A (en) * 1993-09-27 1995-04-07 Nec Corp Information processing system
US11062681B2 (en) 2016-11-25 2021-07-13 Mitsubishi Electric Corporation Monitoring system, data model management device, and method of generating display data

Similar Documents

Publication Publication Date Title
CN117311990A (en) Resource adjustment method, device, electronic equipment, storage medium and training platform
JP6879625B2 (en) Programmable controller, management device and control system
JPH0447425A (en) System software generating device
CN113742117B (en) Distributed task diagnosis method, device and storage medium
JP2877095B2 (en) Multiprocessor system
JPH0991154A (en) Stack allocation method and control device
JP2001027951A (en) File loading device and recording medium in multiprocessor information processing system
JP2000172386A (en) Computer system and memory power management method
CN121578959B (en) A data access system, method and electronic device for optical modules
US7519495B2 (en) Method and device for executing method steps
JPH02189658A (en) Cache memory
JPH09282112A (en) Information processor
JP5194360B2 (en) Information processing apparatus and control method thereof
CN121578959A (en) Optical module data access system, method and electronic equipment
CN120111015A (en) Switch, switch management method, device and medium
JPH10116262A (en) Parallel computer, processor element network, and recording medium storing program for parallel computer
JP2555386B2 (en) Electronic computer system
JP2000029673A (en) Program control system
JPH02139630A (en) Online task exchange device
JP2613931B2 (en) Buffer control method
JP2003316751A (en) Drawing processing system
JP2000259435A (en) Multi-operating system, error information aggregation method, and recording medium
JPH07281781A (en) Operation control method of computer system
JPH0481934A (en) Information processor
JPH0532017A (en) Printer