JPH09146783A - Method and device for controlling program - Google Patents

Method and device for controlling program

Info

Publication number
JPH09146783A
JPH09146783A JP7307299A JP30729995A JPH09146783A JP H09146783 A JPH09146783 A JP H09146783A JP 7307299 A JP7307299 A JP 7307299A JP 30729995 A JP30729995 A JP 30729995A JP H09146783 A JPH09146783 A JP H09146783A
Authority
JP
Japan
Prior art keywords
task
command
keyboard
buffer
predetermined
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.)
Withdrawn
Application number
JP7307299A
Other languages
Japanese (ja)
Inventor
Makoto Suga
誠 須賀
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.)
Daikin Industries Ltd
Original Assignee
Daikin Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Daikin Industries Ltd filed Critical Daikin Industries Ltd
Priority to JP7307299A priority Critical patent/JPH09146783A/en
Publication of JPH09146783A publication Critical patent/JPH09146783A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PROBLEM TO BE SOLVED: To control plural tasks by a keyboard buffer. SOLUTION: In a step S11, a task 1 is started, prescribed processing is executed and a task 2 to be started next is determined in accordance with the processing result. In a step S12, a task start command for starting the task 2 is written in the keyboard buffer. When the task 1 ends, command interpreting software is started by an operating system (MS-DOS), the task start command written in the keyboard buffer is interpreted in a step S15 and the corresponding task 2 is started in a step S16.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、プログラム制御方
法および装置に関し、例えば、複数のタスクを1つずつ
実行させる場合に用いて好適なプログラム制御方法およ
び装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program control method and apparatus, for example, a program control method and apparatus suitable for use when executing a plurality of tasks one by one.

【0002】[0002]

【従来の技術】従来、例えばMS−DOS(Microsoft
Disk Operating system:商標)のように、実メモリ
(以下、単にメモリという)の大きさが制限され、かつ
仮想メモリが使用できないオペレーションシステムであ
って、アプリケーションプログラムの使用できるメモリ
が、ほぼ640キロバイトに制限されているような場合
においては、大規模なアプリケーションプログラムを実
行するために、まず、メモリに常駐するデバイス・ドラ
イバなどのソフトウェア群を、他のアドレス空間、例え
ば拡張メモリやビデオRAMに割り当てられたアドレス
空間、あるいは外部記憶装置(例えばハードディスク)
などに追い出し、少しでもメモリを広げるようにしてい
る。
2. Description of the Related Art Conventionally, for example, MS-DOS (Microsoft
An operating system such as Disk Operating system (trademark) in which the size of real memory (hereinafter simply referred to as memory) is limited and virtual memory cannot be used, and the memory that can be used by application programs is approximately 640 kilobytes. In such a case, in order to execute a large-scale application program, first, a software group such as a device driver resident in memory is assigned to another address space such as extended memory or video RAM. Address space or external storage device (eg hard disk)
I try to expand the memory as much as possible.

【0003】それでもメモリが足りない場合には、オー
バレイ手法が用いられる。すなわち、アプリケーション
プログラムを複数のセグメントに分割し、必要なセグメ
ントだけを順次外部記憶装置からメモリにロードして実
行し、終了すると再度外部記憶装置にそれを追い出す。
このようにして、使用可能なメモリより大きなアプリケ
ーションプログラムを実行することができる。
If the memory is still insufficient, the overlay method is used. That is, the application program is divided into a plurality of segments, and only the necessary segments are sequentially loaded from the external storage device into the memory and executed, and when the application program is completed, the application program is again flushed to the external storage device.
In this way, application programs larger than the available memory can be executed.

【0004】また、タスクスケジューラの処理がサポー
トされている場合においては、アプリケーションプログ
ラムを複数のタスクに分割し、分割したタスクを順次切
り替えることにより、大規模なアプリケーションプログ
ラムを実行することが可能である。
Further, when the processing of the task scheduler is supported, it is possible to execute a large-scale application program by dividing the application program into a plurality of tasks and sequentially switching the divided tasks. .

【0005】また、大規模なアプリケーションプログラ
ムを、640キロバイトより小さいメモリ空間で実行可
能な、それぞれ独立した複数のプログラムに分割し、分
割した各プログラムを所定の順番に起動し、実行させる
ようにすることができる。その場合、例えば、予め実行
させるプログラムをバッチファイル等に順番に記述し、
そのバッチファイルを起動させる。これにより、バッチ
ファイルに記述されたプログラムを順次実行させること
ができる。
Further, a large-scale application program is divided into a plurality of independent programs which can be executed in a memory space smaller than 640 kilobytes, and each divided program is activated and executed in a predetermined order. be able to. In that case, for example, describe in advance the programs to be executed in a batch file etc.,
Start the batch file. Thereby, the programs described in the batch file can be sequentially executed.

【0006】あるいは、キーボードより、実行させるプ
ログラムの名称とパラメータがある場合にはパラメータ
を入力し、リターンキーを入力することにより、プログ
ラムを順次実行させるようにすることも可能である。
Alternatively, if there is a program name and parameters to be executed from the keyboard, the parameters can be input, and the return key can be input to sequentially execute the programs.

【0007】図5は、キーボードから所定のコマンドを
入力することにより、タスクを起動する手順を説明する
ためのフローチャートである。同図のステップS1にお
いて、キーボードより、タスク起動コマンド(以下、適
宜、単にコマンドと称する)、すなわち、起動するタス
クに対応するプログラムの名称とパラメータがある場合
にはパラメータを入力する。キーボードより入力された
プログラム名称とパラメータ(ただしパラメータが入力
された場合)は、ステップS2において、所定の割り込
み処理によりキーボードバッファに格納される。従っ
て、所定のプログラムの実行中であっても、キーボード
より入力されたコマンドは、キーボードバッファに格納
されることになる。
FIG. 5 is a flow chart for explaining a procedure for activating a task by inputting a predetermined command from the keyboard. In step S1 of the figure, if there is a task activation command (hereinafter, simply referred to as a command), that is, a program name and parameters corresponding to the task to be activated, the parameters are input from the keyboard. The program name and parameters input from the keyboard (provided that the parameters have been input) are stored in the keyboard buffer by a predetermined interrupt process in step S2. Therefore, even while the predetermined program is being executed, the command input from the keyboard is stored in the keyboard buffer.

【0008】ステップS3においては、MS−DOSを
構成するコマンド解釈ソフトウェア(COMMAND.
COM)によって、キーボードバッファに格納されたコ
マンドが解釈され、ステップS4において対応する実行
可能プログラムが外部記憶装置より読み込まれ、メモリ
にロードされた後、子プロセスとして起動される。
In step S3, command interpretation software (COMMAND.
COM) interprets the command stored in the keyboard buffer, reads the corresponding executable program from the external storage device in step S4, loads it into the memory, and then starts it as a child process.

【0009】起動されたプログラムの処理が終了した
後、あるいは、実行中に、次に実行させるプログラム名
称とそのパラメータがある場合にはパラメータをキーボ
ードより入力し、さらにリターンキーを入力する。入力
されたプログラム名称とパラメータ(ただしパラメータ
が入力された場合)は、所定の割り込み処理によりキー
ボードバッファに格納される。以下、同様の操作を行
う。これにより、上述した場合と同様にして、プログラ
ム名称とパラメータ(ただしパラメータが入力された場
合)が、順次キーボードバッファに格納され、コマンド
解釈ソフトウェアにより順次解釈され、対応するプログ
ラムが起動される。
After the processing of the started program is completed or during execution, if there is a program name to be executed next and its parameters, the parameters are input from the keyboard and the return key is further input. The input program name and parameter (however, when the parameter is input) are stored in the keyboard buffer by a predetermined interrupt process. Hereinafter, the same operation is performed. As a result, similarly to the case described above, the program name and the parameter (provided that the parameter is input) are sequentially stored in the keyboard buffer, sequentially interpreted by the command interpretation software, and the corresponding program is activated.

【0010】ただし、上述したように、コマンド解釈ソ
フトウェアにより子プロセスとして起動されたプログラ
ムが終了し、コマンド解釈ソフトウェアに再び制御が移
行したとき、コマンド解釈ソフトウェアによってキーボ
ードバッファに格納されたコマンドが解釈される。従っ
て、所定のプログラムの実行中にキーボードよりコマン
ドを入力した場合においては、現在実行中のプログラム
が終了した後、コマンド解釈ソフトウェアに制御が移行
し、キーボードバッファに格納されたコマンドがコマン
ド解釈ソフトウェアによって解釈され、対応するプログ
ラムが起動されることになる。
However, as described above, when the program started as a child process by the command interpreting software is terminated and control is transferred to the command interpreting software again, the command interpreting software interprets the command stored in the keyboard buffer. It Therefore, when a command is input from the keyboard during execution of a predetermined program, control is transferred to the command interpretation software after the currently executing program ends, and the command stored in the keyboard buffer is changed by the command interpretation software. It will be interpreted and the corresponding program will be started.

【0011】このようにして、限られたメモリのなか
で、大規模なアプリケーションプログラムを実行させる
ことが可能である。
In this way, it is possible to execute a large-scale application program in the limited memory.

【0012】[0012]

【発明が解決しようとする課題】しかしながら、常駐す
るソフトウェアを外部に追い出したとしても、MS−D
OSにおいて使用可能なメモリは、最大でも640キロ
バイトに制限されているため、それより大きなメモリを
必要とする大規模なアプリケーションプログラムを実行
することができない課題があった。
However, even if the resident software is booted to the outside, the MS-D
Since the maximum memory usable in the OS is limited to 640 kilobytes, there is a problem that a large-scale application program that requires a larger memory cannot be executed.

【0013】また、オーバレイ手法を用いた場合におい
ては、一般的に、データ参照が制限され、余分なプログ
ラムコードが発生し、処理速度が低下する。そのため、
セグメント化が可能なオーバレイモジュール群が制約さ
れることになる。さらに、オーバレイ実行のために、管
理データが増加するため、アプリケーションプログラム
が大規模になるほどメモリの効率的な使用ができなくな
る課題があった。
Further, when the overlay method is used, data reference is generally limited, extra program code is generated, and the processing speed is reduced. for that reason,
The overlay modules that can be segmented will be restricted. Further, since the management data increases due to the overlay execution, there is a problem that the larger the application program becomes, the more efficiently the memory cannot be used.

【0014】さらに、タスクスケジューラの処理がサポ
ートされている場合においては、タスク切り替えのため
に所定の大きさのメモリを消費してしまうため、結局、
その分を差し引いた残りのメモリしか、個々のタスクに
割り当てることができないこととなり、タスクの大きさ
が制限され、メモリを十分に活用することができない課
題があった。
Further, when the processing of the task scheduler is supported, a memory of a predetermined size is consumed for task switching, so that in the end,
Only the remaining memory after deducting that amount can be assigned to each task, and there is a problem that the size of the task is limited and the memory cannot be fully utilized.

【0015】また、アプリケーションプログラムを複数
のプログラムに分割し、分割された複数のプログラムの
名称を所定の順番で記述したバッチファイルを作成し、
それを起動させる場合においては、バッチファイルに記
述された順番にプログラムが起動されるため、プログラ
ムの起動順序をプログラムの実行結果に基づいて変更す
ることができない課題があった。
Further, the application program is divided into a plurality of programs, and a batch file in which the names of the plurality of divided programs are described in a predetermined order is created,
When the programs are started, the programs are started in the order described in the batch file, so that there is a problem that the starting order of the programs cannot be changed based on the execution result of the programs.

【0016】さらにまた、キーボードからプログラム名
称、およびパラメータがある場合にはパラメータを入力
し、リターンキーを入力する一連の操作を繰り返すこと
により、複数のプログラムを順次実行させる場合におい
ては、操作が面倒かつ煩雑であり、現実的ではない課題
があった。
Furthermore, when a program name and parameters are input from the keyboard and a series of operations for inputting a return key is repeated to execute a plurality of programs sequentially, the operation is troublesome. Moreover, there was a problem that was complicated and not realistic.

【0017】本発明はこのような状況に鑑みてなされた
ものであり、仮想メモリを使用することができないオペ
レーションシステムにおいて、限られたメモリを最大限
有効に使用しながら、大規模なアプリケーションプログ
ラムを実行することができるようにするものである。
The present invention has been made in view of such a situation, and in an operating system in which a virtual memory cannot be used, a large-scale application program can be executed while making the most effective use of limited memory. It allows you to do it.

【0018】[0018]

【課題を解決するための手段】請求項1に記載のプログ
ラム制御方法は、アプリケーションプログラムを実メモ
リで実行可能な所定の大きさの複数のタスクに分割し、
コマンド制御ソフトウェアによって起動されたタスク
は、所定の処理を実行した後、複数のタスクのうちの次
に実行すべき所定のものに対応するコマンドをバッファ
に書き込むことを特徴とする。
According to a first aspect of the present invention, there is provided a program control method, wherein an application program is divided into a plurality of tasks of a predetermined size that can be executed in a real memory,
The task started by the command control software is characterized in that after executing a predetermined process, a command corresponding to a predetermined one to be executed next among a plurality of tasks is written in the buffer.

【0019】請求項3に記載のプログラム制御装置は、
実メモリで実行可能な所定の大きさの複数のタスクに分
割されたアプリケーションプログラムを記憶する記憶手
段(例えば図1のハードディスク8)と、コマンド制御
ソフトウェアによって起動されたタスクの一部を構成
し、タスクが所定の処理を実行した後、複数のタスクの
うちの次に実行すべき所定のものに対応するコマンドを
バッファに書き込むコマンド書き込み手段(例えば図2
のステップS12)とを備えることを特徴とする。
A program control device according to a third aspect is
A storage unit (for example, the hard disk 8 in FIG. 1) that stores the application program divided into a plurality of tasks of a predetermined size that can be executed in the real memory, and a part of the task started by the command control software, After the task executes a predetermined process, a command writing unit that writes a command corresponding to a predetermined one of the plurality of tasks to be executed next to the buffer (for example, FIG. 2).
And step S12).

【0020】請求項1に記載のプログラム制御方法にお
いては、アプリケーションプログラムが実メモリで実行
可能な所定の大きさの複数のタスクに分割して記憶さ
れ、コマンド制御ソフトウェアによって起動されたタス
クにより、所定の処理を実行中に、複数のタスクのうち
の次に実行すべき所定のものに対応するコマンドがバッ
ファに書き込まれる。従って、いま実行中のタスクから
次に実行すべきタスクをバッファを用いて指定すること
ができる。
In the program control method according to the first aspect, the application program is divided into a plurality of tasks of a predetermined size which can be executed in the real memory and stored, and the task is started by the task started by the command control software. During the process of (1), a command corresponding to a predetermined one of the plurality of tasks to be executed next is written in the buffer. Therefore, the task to be executed next can be specified from the currently executing task using the buffer.

【0021】請求項3に記載のプログラム制御装置にお
いては、記憶手段により、実メモリで実行可能な所定の
大きさの複数のタスクに分割されたアプリケーションプ
ログラムが記憶され、コマンド書き込み手段により、コ
マンド書き込み手段の属する、コマンド制御ソフトウェ
アによって起動されたタスクが所定の処理を実行した
後、複数のタスクのうちの次に実行すべき所定のものに
対応するコマンドがバッファに書き込まれる。従って、
いま実行中のタスクは、次に実行すべきタスクをバッフ
ァを用いて指定することができる。
According to another aspect of the program control device of the present invention, the storage unit stores the application program divided into a plurality of tasks of a predetermined size that can be executed in the real memory, and the command writing unit writes the command. After the task started by the command control software, to which the means belongs, executes a predetermined process, a command corresponding to a predetermined one of the plurality of tasks to be executed next is written in the buffer. Therefore,
The task currently being executed can specify the next task to be executed by using the buffer.

【0022】[0022]

【発明の実施の形態】図1は、本発明のプログラム制御
装置の一実施例の構成を示すブロック図である。ROM
2は、ブート・ストラップ・ローダ等のシステム起動に
必要な最小限のプログラム等を記憶するようになされて
いる。ハードディスク(HD)8は、例えばMS−DO
S(Microsoft Disk Operating System:商標)等のオ
ペレーティングシステムや、所定のアプリケーションプ
ログラム等を記憶する。RAM3には、ハードディスク
8に記憶されたオペレーティングシステムやアプリケー
ションプログラムが、インタフェース(I/F)7およ
びシステムバス11を介してロードされるようになされ
ている。
1 is a block diagram showing the configuration of an embodiment of a program control apparatus of the present invention. ROM
2 stores the minimum programs necessary for system startup such as a boot strap loader. The hard disk (HD) 8 is, for example, MS-DO.
An operating system such as S (Microsoft Disk Operating System: trademark), a predetermined application program, and the like are stored. The operating system and application programs stored in the hard disk 8 are loaded into the RAM 3 via the interface (I / F) 7 and the system bus 11.

【0023】キーボード6は、押下されたキーに対応す
るキー情報を発生し、後述するキーボードインタフェー
ス5に供給する。キーボードインタフェース5は、キー
ボード6より供給されたシリアルデータであるキー情報
を、パラレルデータに変換し、出力するとともに、キー
ボード割り込みを発生するようになされている。キーボ
ードバッファ12は、後述するように、キーボードイン
タフェース5より出力されたキー情報を記憶するように
なされている。
The keyboard 6 generates key information corresponding to the pressed key and supplies it to the keyboard interface 5 described later. The keyboard interface 5 converts the key information, which is serial data supplied from the keyboard 6, into parallel data, outputs the parallel data, and generates a keyboard interrupt. The keyboard buffer 12 stores the key information output from the keyboard interface 5, as described later.

【0024】CPU1は、ROM2に記憶されたプログ
ラム、およびRAM3にロードされたオペレーティング
システム、およびアプリケーションプログラムに従っ
て、各部を制御し、所定の処理を実行する。また、CP
U1は、キーボードインタフェース5により発生された
キーボード割り込みに従って、所定の割り込み処理ルー
チンを起動し、システムバス11を介して、キーボード
インタフェース5よりキー情報を読み出し、キーボード
バッファ12に書き込むようになされている。
The CPU 1 controls each unit according to the program stored in the ROM 2, the operating system and the application program loaded in the RAM 3, and executes a predetermined process. Also, CP
The U1 activates a predetermined interrupt processing routine in accordance with a keyboard interrupt generated by the keyboard interface 5, reads key information from the keyboard interface 5 via the system bus 11, and writes the key information in the keyboard buffer 12.

【0025】ビデオRAM(VRAM)4は、後述する
CRT(Cathode Ray Tube)10に表示するための表示
データを記憶する。CRTコントローラ9は、VRAM
4に記憶された表示データをCRT10に表示するため
のビデオ信号に変換し、CRT10に供給する。CRT
10は、CRTコントローラ9より供給されたビデオ信
号に対応する画面を表示するようになされている。
The video RAM (VRAM) 4 stores display data to be displayed on a CRT (Cathode Ray Tube) 10 described later. The CRT controller 9 is a VRAM
The display data stored in 4 is converted into a video signal to be displayed on the CRT 10 and supplied to the CRT 10. CRT
Reference numeral 10 is adapted to display a screen corresponding to the video signal supplied from the CRT controller 9.

【0026】次に、図2に示したフローチャートを参照
して、キーボードバッファ12を介して、複数のタスク
を順に起動する方法について説明する。
Next, with reference to the flow chart shown in FIG. 2, a method for sequentially activating a plurality of tasks via the keyboard buffer 12 will be described.

【0027】最初、装置の電源をオン、またはリセット
すると、ROM2に記憶されているブート・ストラップ
・ローダにより、IPL(Initial Program Loder)が
I/F7を介してハードディスク8よりRAM3にロー
ドされる。次に、IPLにより、MS−DOSを構成す
るIO.SYSが、I/F7を介してハードディスク8
よりRAM3内にロードされ、次に、IO.SYSによ
って、MSDOS.SYS、およびCOMMAND.C
OM(コマンド解釈ソフトウェア)が、I/F7を介し
てハードディスク8よりRAM3にロードされ、COM
MAND.COMに制御が移行する。このようにして、
MS−DOSが起動される。このとき、アプリケーショ
ンプログラムが使用可能なアドレス空間は、通常約64
0キロバイトとなる。
First, when the power of the apparatus is turned on or reset, an IPL (Initial Program Loder) is loaded from the hard disk 8 to the RAM 3 via the I / F 7 by the boot strap loader stored in the ROM 2. Next, the IO. SYS, hard disk 8 via I / F7
Loaded into RAM3, then IO. By SYS, MSDOS. SYS, and COMMAND. C
OM (command interpretation software) is loaded from the hard disk 8 to the RAM 3 via the I / F 7, and COM
MAND. Control transfers to COM. In this way,
MS-DOS is started. At this time, the address space that can be used by the application program is normally about 64.
It becomes 0 kilobytes.

【0028】次に、コマンド解釈ソフトウェアにより、
まず、外部記憶装置、この場合ハードディスク8に、自
動実行バッチファイル(AUTOEXEC.BAT)が
あるか否かが判定され、ハードディスク8に自動実行バ
ッチファイルがあると判定された場合、ステップS11
において、自動実行バッチファイル内に記述されたコマ
ンドが解釈され、対応する実行可能プログラムがハード
ディスク8よりI/F7を介して読み出され、RAM3
にロードされた後、起動される。
Next, by command interpretation software,
First, it is determined whether or not there is an automatic execution batch file (AUTOEXEC.BAT) in the external storage device, in this case, the hard disk 8, and when it is determined that there is an automatic execution batch file in the hard disk 8, step S11
In, the command described in the automatic execution batch file is interpreted, the corresponding executable program is read from the hard disk 8 through the I / F 7, and the RAM 3
Is loaded and then launched.

【0029】従って、自動実行バッチファイルに最初の
タスク起動コマンド、例えばタスク1に対応する実行可
能プログラム名を記述しておくことにより、MS−DO
S起動時に、この実行可能プログラムがCOMMAN
D.COMによって自動的に起動されるようにすること
ができる。この自動実行バッチファイルには、実行可能
プログラム名(そのプログラムを特定する文字列(タス
ク起動コマンド))の他に、この実行可能プログラムに
引き渡すべきパラメータも記述しておくことができる。
その場合、このパラメータに従って、実行可能プログラ
ムによる処理が行われることになる。ただし、実行可能
プログラムは、パラメータの受け取りを前提としてプロ
グラミングされている必要がある。
Therefore, by describing the first task start command, for example, the executable program name corresponding to task 1, in the automatic execution batch file, the MS-DO
When S starts, this executable program
D. It can be automatically activated by COM. In this automatic execution batch file, in addition to the executable program name (character string (task activation command) that identifies the program), parameters to be passed to this executable program can be described.
In that case, the process by the executable program is performed according to this parameter. However, the executable program must be programmed with the assumption that it will receive parameters.

【0030】一方、タスク1を自動実行バッチファイル
によって起動させない場合、ユーザはキーボード6から
直接、最初に起動すべきタスク1に対応する実行可能プ
ログラムの名称(そのプログラムを特定する文字列(タ
スク起動コマンド))およびパラメータ(ただしパラメ
ータがある場合)をタイプし、リターンキーを入力す
る。キーボード6は、タイプされた実行可能プログラム
名およびパラメータに対応するキー情報を発生し、シリ
アルのデータとしてキーボードインタフェース5に供給
する。
On the other hand, when the task 1 is not started by the automatic execution batch file, the user directly uses the keyboard 6 to directly name the executable program corresponding to the task 1 (a character string (task start) for specifying the program). Command)) and parameters (if any) and press the return key. The keyboard 6 generates key information corresponding to the typed executable program name and parameters and supplies the key information to the keyboard interface 5 as serial data.

【0031】キーボード6よりキーボードインタフェー
ス5に供給されたキー情報に対応するシリアルのデータ
は、キーボードインタフェース5においてパラレルのデ
ータに変換される。また、キーボードインタフェース5
において、キーボード割り込みが発生し、CPU1によ
り起動される所定の割り込み処理ルーチンにより、シス
テムバス11を介して、キーボードインタフェース5よ
りキー情報が読み出され、キーボードバッファ12に格
納される。
Serial data corresponding to the key information supplied from the keyboard 6 to the keyboard interface 5 is converted into parallel data by the keyboard interface 5. Also, keyboard interface 5
At, a keyboard interrupt occurs and a predetermined interrupt processing routine started by the CPU 1 reads out key information from the keyboard interface 5 via the system bus 11 and stores it in the keyboard buffer 12.

【0032】キーボードバッファ12に格納されたキー
情報は、コマンド解釈ソフトウェアにより解釈される。
この場合、コマンド解釈ソフトウェアにより、キーボー
ドバッファ12に格納されたキー情報が外部コマンド、
すなわち所定の実行可能プログラムの名称であると解釈
され、この実行可能プログラムがハードディスク8より
I/F7を介して読み出され、システムバス11を介し
てRAM3にロードされる。次に、ステップS11にお
いてこの実行可能プログラム、すなわちタスク1が起動
される。
The key information stored in the keyboard buffer 12 is interpreted by the command interpretation software.
In this case, the command interpretation software causes the key information stored in the keyboard buffer 12 to be an external command,
That is, it is interpreted as the name of a predetermined executable program, and this executable program is read from the hard disk 8 via the I / F 7 and loaded into the RAM 3 via the system bus 11. Next, in step S11, this executable program, that is, task 1 is started.

【0033】タスク1により、所定の処理が実行され、
ステップS12において、次に起動すべきタスクのタス
ク起動コマンド、この場合、次に実行すべき実行可能プ
ログラムの名称およびパラメータ(ただしパラメータが
ある場合)を、キーボードバッファ12に書き込むため
の処理が実行される。このとき、タスク1は、処理の状
況に合わせて、次に実行するタスクを決定するようにす
ることができる。これにより、ステップS13におい
て、キーボードバッファ12にタスク起動コマンド(こ
の場合、タスク2に対応する実行可能プログラムの名称
およびパラメータ(ただしパラメータがある場合))が
書き込まれる。
Predetermined processing is executed by task 1,
In step S12, a process for writing the task activation command of the task to be activated next, in this case, the name and parameter of the executable program to be executed next (if there is a parameter) to the keyboard buffer 12 is executed. It At this time, the task 1 can determine the task to be executed next according to the processing situation. As a result, in step S13, the task activation command (in this case, the name and parameter of the executable program corresponding to task 2 (if there is a parameter)) is written.

【0034】その後、ステップS14においてタスク1
が終了すると、ステップS15において、コマンド解釈
ソフトウェアに制御が移行し、キーボードバッファ12
に格納されているタスク起動コマンドが解釈される。こ
の場合、タスク起動コマンドはタスク2に対応する実行
可能プログラムの名称であると解釈され、この実行可能
プログラムがI/F7を介してハードディスク8より読
み出され、RAM3にロードされた後、ステップS16
において起動される。すなわちタスク2が起動される。
Then, in step S14, task 1
Is completed, control is transferred to the command interpretation software in step S15, and the keyboard buffer 12
The task activation command stored in is interpreted. In this case, the task start command is interpreted as the name of the executable program corresponding to the task 2, and the executable program is read from the hard disk 8 via the I / F 7 and loaded into the RAM 3, and then step S16.
Is launched in. That is, task 2 is activated.

【0035】このように、いま実行中である例えばタス
ク1が、次に起動すべきタスクのタスク起動コマンド、
例えばタスク2に対応する実行可能プログラムの名称
を、タスク1の処理の中でキーボードバッファ12に書
き込むことにより、タスク1の終了後に起動されるコマ
ンド解釈ソフトウェアによって、キーボードバッファ1
2に記憶されたタスク起動コマンドが解釈され、タスク
2に対応する実行可能プログラムがハードディスク8か
らRAM3にロードされた後、起動される。従って、タ
スク1は、タスク1が実行する処理の状況に基づいて決
定した次に起動すべきタスクを、そのタスクに対応する
実行可能プログラムの名称をキーボードバッファ12に
書き込むことにより、起動することができる。
In this way, for example, the task 1 that is currently being executed is the task start command of the task to be started next,
For example, by writing the name of the executable program corresponding to the task 2 in the keyboard buffer 12 during the processing of the task 1, the command interpreting software started after the task 1 is finished causes the keyboard buffer 1
The task activation command stored in 2 is interpreted, the executable program corresponding to the task 2 is loaded from the hard disk 8 to the RAM 3, and then activated. Therefore, the task 1 can activate the next task to be activated, which is determined based on the status of the processing executed by the task 1, by writing the name of the executable program corresponding to the task in the keyboard buffer 12. it can.

【0036】同様に、タスク2の処理の中で、タスク2
の次に起動すべきタスクを決定し、そのタスクに対応す
る実行可能プログラムの名称をキーボードバッファ12
に書き込むようにすることもできる。
Similarly, in the processing of task 2, task 2
Of the executable program corresponding to the task is determined by the keyboard buffer 12
You can also write to.

【0037】このようにして、キーボードバッファ12
を利用することにより、複数のタスクを1つずつ起動
し、所定の処理を実行させるようにすることができる。
従って、実行時に、RAM3のアドレス空間においてア
プリケーションプログラムが使用可能なメモリ領域(例
えば640キロバイト)より大きなメモリ領域を必要と
する大規模なアプリケーションプログラムを、それぞれ
独立した複数のタスクに分割することができるならば、
上述したようにして、タスクを順次切り替えることによ
り、このアプリケーションプログラムを実行することが
できる。ただし、分割した各タスクは、実行時に必要と
するメモリの大きさが、RAM3のアドレス空間におい
てアプリケーションプログラムが使用可能なメモリ領域
(この場合640キロバイト)より小さいものとする。
In this way, the keyboard buffer 12
By using, it is possible to activate a plurality of tasks one by one and execute predetermined processing.
Therefore, at the time of execution, a large-scale application program that requires a memory area larger than the memory area (for example, 640 kilobytes) that can be used by the application program in the address space of the RAM 3 can be divided into a plurality of independent tasks. Then,
As described above, this application program can be executed by sequentially switching the tasks. However, each divided task has a memory size required at the time of execution smaller than the memory area (640 kilobytes in this case) usable by the application program in the address space of the RAM 3.

【0038】図3は、本発明のプログラム制御装置を応
用した保険証確認システムの一実施例の構成を示すブロ
ック図である。
FIG. 3 is a block diagram showing the configuration of an embodiment of an insurance card confirmation system to which the program control device of the present invention is applied.

【0039】カード読み取り部31は、患者IDカード
31Aが挿入されると、そこに記録されている例えば患
者を識別するための患者番号や保険証番号等の患者情報
を読み取り、処理部32に供給するようになされてい
る。
When the patient ID card 31A is inserted, the card reading unit 31 reads the patient information such as the patient number and the insurance policy number for identifying the patient recorded therein, and supplies it to the processing unit 32. It is designed to do.

【0040】また、保険証読み取り部33は、スキャナ
等により構成され、そこに挿入された保険証をスキャン
しながら読み取り、二値化処理を行い、ディジタルのイ
メージデータに変換した後、処理部32に供給するよう
になされている。あるいはCCDカメラ等により構成さ
れ、保険証の画像を撮像し、二値化処理を行い、ディジ
タルのデータに変換した後、処理部32に供給するよう
になされている。また、保険証読み取り部33は、保険
証として健康保険証33Aと老人医療保険証33Bをそ
れぞれ読み取ることができるようになされている。
The insurance card reading section 33 is composed of a scanner or the like, reads the insurance card inserted therein while scanning it, performs binarization processing, and converts it into digital image data, and then the processing section 32. It is designed to be supplied to. Alternatively, it is constituted by a CCD camera or the like, and an image of an insurance card is picked up, binarized, converted into digital data, and then supplied to the processing unit 32. Further, the insurance card reading unit 33 can read the health insurance card 33A and the geriatric medical insurance card 33B as insurance cards.

【0041】また、処理部32は、図1を参照して上述
したプログラム制御装置の場合と基本的には同様の構成
をなしており、所定のアプリケーションプログラムによ
り動作し、各部を制御するようになされている。従っ
て、その詳細な構成および動作についての説明は省略す
るが、ここでは、カード読み取り部31より供給された
患者情報に基づいて、老人医療保険の適用患者であるか
否かを判定したり、保険証読み取り部33より供給され
たディジタルのイメージデータから、保険証の記載事項
を認識するようになされている。
Further, the processing unit 32 has basically the same configuration as the case of the program control device described above with reference to FIG. 1, and operates by a predetermined application program to control each unit. Has been done. Therefore, although detailed description of the configuration and operation thereof is omitted, here, based on the patient information supplied from the card reading unit 31, it is determined whether or not the patient is covered by the geriatric medical insurance, and the insurance. From the digital image data supplied from the certificate reading unit 33, the items described on the insurance card are recognized.

【0042】さらに、処理部32は、カード読み取り部
31より供給された患者情報に基づいて、老人医療保険
の適用が可能であるか否かを判定し、老人医療保険の適
用患者であると判定した場合、保険証読み取り部33に
挿入された健康保険証33Aの認識を行い、所定の確認
処理を行った後、それが有効である(健康保険の適用が
可能である)場合には、次に、老人医療保険証33Bの
認識を行い、所定の確認処理を行った後、受付票34A
の発行を発行部34に指令する。一方、老人医療保険の
適用患者ではないと判定した場合、保険証読み取り部3
3に挿入された健康保険証33Aの認識だけを行い、所
定の確認処理を行った後、受付票34Aの発行を発行部
34に指令するようになされている。
Further, the processing unit 32 determines whether or not the medical insurance for the elderly is applicable based on the patient information supplied from the card reading unit 31, and determines that the patient is the medical insurance for the elderly. If the health insurance card 33A inserted in the insurance card reading unit 33 is recognized and the predetermined confirmation processing is performed, and if it is valid (health insurance can be applied), After recognizing the medical insurance card for the elderly 33B and performing predetermined confirmation processing, the reception slip 34A
Is issued to the issuing unit 34. On the other hand, when it is determined that the patient is not covered by the old-age medical insurance, the insurance card reading unit 3
Only the health insurance card 33A inserted in No. 3 is recognized, a predetermined confirmation process is performed, and then the issuing unit 34 is instructed to issue the acceptance slip 34A.

【0043】発行部34は、処理部32からの指令に従
って、所定の受付票34Aを発行するようになされてい
る。
The issuing unit 34 is adapted to issue a predetermined acceptance slip 34A in accordance with an instruction from the processing unit 32.

【0044】図4は、図3に示した保険証確認システム
の動作を説明するためのフローチャートである。同図に
示したように、保険証確認システムを動作させるアプリ
ケーションプログラムは、4つのタスクA乃至Dにより
構成されている。最初に、タスクAを起動する。すなわ
ち、システムを立ち上げた後(MS−DOSを起動した
後)、キーボード6から直接タスクAに対応する実行可
能プログラムの名称を入力することによりタスクAを起
動するか、あるいは、予め自動実行バッチファイル(A
UTOEXEC.BAT)にタスクAに対応する実行可
能プログラムの名称を記述しておき、システムの立ち上
げを行ったとき、コマンド解釈ソフトウェアによってタ
スクAが自動的に起動されるようにする。
FIG. 4 is a flow chart for explaining the operation of the insurance card confirmation system shown in FIG. As shown in the figure, the application program for operating the insurance card confirmation system is composed of four tasks A to D. First, task A is started. That is, after starting the system (after starting MS-DOS), the task A is started by directly inputting the name of the executable program corresponding to the task A from the keyboard 6, or the automatic execution batch is performed in advance. File (A
UTOEXEC. The name of the executable program corresponding to the task A is described in BAT) so that the task A is automatically started by the command interpretation software when the system is started up.

【0045】タスクAが起動された状態で、患者が患者
固有のID番号や保険証番号等の患者情報が記録された
患者IDカード31Aを、カード読み取り部31に挿入
すると、タスクAによりステップS21およびステップ
S22の処理が実行される。
When the patient ID card 31A in which the patient information such as the patient's unique ID number and insurance policy number is recorded is inserted into the card reading section 31 while the task A is activated, the task A causes the step S21 to be performed. And the process of step S22 is performed.

【0046】まず、ステップS21において、カード読
み取り部31に挿入された患者IDカード31Aから患
者情報の読み取りが行われる。次に、患者IDカード3
1Aから読み取られた患者情報は、処理部32に供給さ
れる。
First, in step S21, patient information is read from the patient ID card 31A inserted in the card reading section 31. Next, patient ID card 3
The patient information read from 1A is supplied to the processing unit 32.

【0047】ステップS22においては、処理部32に
より、カード読み取り部31より供給された患者情報に
基づいて、老人医療保険の適用患者であるか否かが判定
される。ステップS22において、老人医療保険の適用
患者ではないと判定された場合、タスクAは、次に、タ
スクBを起動するために、キーボードバッファ12にタ
スクBに対応する実行可能プログラムの名称と老人医療
保険の適用患者ではないことを示す所定のパラメータを
書き込む。その後、タスクAは終了する。
In step S22, the processing unit 32 determines, based on the patient information supplied from the card reading unit 31, whether or not the patient is covered by the medical insurance for the elderly. When it is determined in step S22 that the patient is not a patient to whom the medical insurance for the aged is applied, the task A then activates the task B by using the name of the executable program corresponding to the task B in the keyboard buffer 12 and the medical care for the aged. A predetermined parameter indicating that the patient is not covered by insurance is written. After that, the task A ends.

【0048】タスクAが終了すると、コマンド解釈ソフ
トウェアに制御が移行し、キーボードバッファ12に書
き込まれた実行可能プログラムの名称とパラメータの解
釈が行われ、タスクBに対応する実行可能プログラムが
I/F7を介してハードディスク8より読み出され、R
AM3にロードされた後、起動される。
When the task A is completed, the control is transferred to the command interpreting software, the name and parameter of the executable program written in the keyboard buffer 12 are interpreted, and the executable program corresponding to the task B is executed by the I / F 7. Is read from the hard disk 8 via
It is started after being loaded into AM3.

【0049】これにより、ステップS23に進み、タス
クBの処理としての健康保険証33Aの照合処理が行わ
れる。この場合、タスクAより、老人医療保険の適用患
者ではないことを示すパラメータが引き渡されるので、
それに基づいて、タスクBにより、老人医療保険証33
Bの照合処理を行うタスクCの起動は行わないことを前
提とした処理が行われる。
As a result, the process proceeds to step S23, and the verification process of the health insurance card 33A as the process of task B is performed. In this case, since the parameter indicating that the patient is not covered by the geriatric medical insurance is handed over from task A,
Based on this, task B provides a medical insurance card for the elderly 33
The processing is performed on the assumption that the task C for performing the collation processing for B is not activated.

【0050】すなわち、まず、保険証読み取り部33に
おいて、健康保険証33Aの読み取りが行われ、所定の
しきい値による二値化処理等が行われた後、ディジタル
のイメージデータに変換され、処理部32に供給され
る。処理部32においては、保険証読み取り部33より
供給されたイメージデータから、保険者番号、被保険者
記号、および被保険者番号などが認識される。
That is, first, the health insurance card reading unit 33 reads the health insurance card 33A, performs binarization processing and the like with a predetermined threshold value, and then converts it into digital image data for processing. Is supplied to the section 32. In the processing unit 32, the insurer number, the insured person number, the insured person number, and the like are recognized from the image data supplied from the insurance card reading unit 33.

【0051】さらに、処理部32により、健康保険証3
3Aの内容と患者IDカード31Aの内容の照合が行わ
れる。この場合、老人医療保険の適用患者ではないの
で、照合結果に基づいて、次に、所定の受付票34Aの
発行が指示される。例えば、照合の結果、健康保険の適
用が可能である場合、タスクDに対応する実行可能プロ
グラムの名称と、受付番号および診察窓口の番号が記載
された受付票34Aを発行するよう指示する所定のパラ
メータが、キーボードバッファ12に書き込まれる。
Further, the processing unit 32 causes the health insurance card 3
The contents of 3A and the contents of the patient ID card 31A are collated. In this case, since it is not a patient to whom the elderly medical insurance is applied, based on the collation result, next issuance of a predetermined reception slip 34A is instructed. For example, if the result of the collation shows that health insurance can be applied, a predetermined instruction to issue a reception slip 34A in which the name of the executable program corresponding to the task D, the reception number, and the consultation desk number are described is issued. The parameters are written to the keyboard buffer 12.

【0052】一方、照合の結果、例えば有効期限が過ぎ
ているなどして健康保険の適用ができない場合、タスク
Dに対応する実行可能プログラムの名称と、受付番号お
よび所定のメッセージ「受付窓口にお越しください」が
記載された受付票34Aを発行するよう指示する所定の
パラメータが、キーボードバッファ12に書き込まれ
る。その後、タスクBが終了する。
On the other hand, as a result of the collation, if the health insurance cannot be applied due to, for example, the expiration date having passed, the name of the executable program corresponding to the task D, the reception number, and the predetermined message "come to the reception window". A predetermined parameter for instructing to issue the acceptance slip 34A in which "Please" is written in the keyboard buffer 12. Then, the task B ends.

【0053】タスクBが終了すると、次に、コマンド解
釈ソフトウェアに制御が移行し、キーボードバッファ1
2に書き込まれたコマンドの解釈が行われ、この場合、
タスクDに対応する実行可能プログラムがI/F7を介
してハードディスク8より読み込まれ、RAM3にロー
ドされた後、起動される。
Upon completion of task B, control is transferred to the command interpreting software, and keyboard buffer 1
Interpretation of the command written in 2 is done, in this case
The executable program corresponding to the task D is read from the hard disk 8 via the I / F 7, loaded into the RAM 3, and then activated.

【0054】タスクDには、キーボードバッファ12に
書き込まれたパラメータが引き渡されるので、タスクD
により、ステップS27において、このパラメータに基
づいた受付票34Aの発行処理が実行されることにな
る。すなわち、タスクDに、キーボードバッファ12を
介して、受付番号と診察窓口の番号が記載された受付票
34Aを発行するように指示するパラメータが引き渡さ
れた場合、タスクDにより制御された処理部32は、発
行部34に対して、受付番号と診察窓口の番号が記載さ
れた受付票34Aを発行するように指令する。発行部3
4は処理部32からの指令に従って、受付番号と診察窓
口の番号を所定の用紙に印字し、それを受付票34Aと
して発行する。
Since the parameters written in the keyboard buffer 12 are passed to task D, task D
As a result, in step S27, the process of issuing the acceptance slip 34A based on this parameter is executed. That is, when the parameter instructing to issue the reception slip 34A in which the reception number and the consultation counter number are written is passed to the task D via the keyboard buffer 12, the processing unit 32 controlled by the task D Instructs the issuing unit 34 to issue a reception slip 34A in which the reception number and the consultation window number are described. Issuer 3
In accordance with an instruction from the processing unit 32, 4 prints the reception number and the consultation window number on a predetermined sheet and issues it as a reception slip 34A.

【0055】一方、タスクDに、キーボードバッファ1
2を介して、受付番号と所定のメッセージ「受付窓口に
お越しください」が記載された受付票34Aを発行する
ように指示するパラメータが引き渡された場合、タスク
Dにより制御された処理部32は、発行部34に対し
て、受付番号と所定のメッセージ「受付窓口にお越しく
ださい」が記載された受付票34Aを発行するように指
令する。発行部34は処理部32からの指令に従って、
受付番号とメッセージ「受付窓口にお越しください」を
所定の用紙に印字し、それを受付票34Aとして発行す
る。これにより、患者は、受付窓口において、受付担当
者(人)との間で所定の手続きを行うことができる。
On the other hand, for task D, keyboard buffer 1
When the parameter for instructing to issue the reception slip 34A in which the reception number and the predetermined message “Please come to the reception counter” are given via 2, the processing unit 32 controlled by the task D The issuing unit 34 is instructed to issue the reception slip 34A in which the reception number and a predetermined message "Please come to the reception counter" are described. The issuing unit 34 follows the instruction from the processing unit 32.
The reception number and the message "Please come to the reception counter" are printed on a predetermined sheet and issued as a reception slip 34A. Thereby, the patient can perform a predetermined procedure with the person in charge of reception at the reception counter.

【0056】一方、ステップS22において、老人医療
保険の適用患者であると判定された場合、まず、健康保
険証33Aの照合処理が行われる。すなわち、タスクA
は、次にタスクBを起動するために、キーボードバッフ
ァ12にタスクBに対応する実行可能プログラムの名称
と老人医療保険の適用患者であることを示すパラメータ
を書き込む。その後、タスクAは終了する。
On the other hand, if it is determined in step S22 that the patient is covered by the geriatric medical insurance, the health insurance card 33A is first verified. That is, task A
Next, in order to activate the task B, the keyboard buffer 12 is written with the name of the executable program corresponding to the task B and the parameter indicating that the patient is a patient to whom the medical insurance for the elderly is applied. After that, the task A ends.

【0057】タスクAが終了すると、コマンド解釈ソフ
トウェアに制御が移行し、キーボードバッファ12に書
き込まれた実行可能プログラムの名称とパラメータの解
釈が行われ、タスクBに対応する実行可能プログラムが
I/F7を介してハードディスク8より読み出され、R
AM3にロードされた後、起動される。
When the task A is completed, the control is transferred to the command interpreting software, the name of the executable program written in the keyboard buffer 12 and the parameters are interpreted, and the executable program corresponding to the task B is executed by the I / F 7. Is read from the hard disk 8 via
It is started after being loaded into AM3.

【0058】これにより、ステップS24に進み、タス
クBの処理としての健康保険証33Aの照合処理が行わ
れる。すなわち、まず、保険証読み取り部33におい
て、健康保険証33Aの読み取りが行われ、所定のしき
い値による二値化処理等が行われた後、ディジタルのイ
メージデータに変換され、処理部32に供給される。処
理部32においては、保険証読み取り部33より供給さ
れたイメージデータから、保険者番号、被保険者記号、
および被保険者番号などが認識される。
As a result, the process proceeds to step S24, and the verification process of the health insurance card 33A as the process of task B is performed. That is, first, the health insurance card reading unit 33 reads the health insurance card 33A, performs binarization processing and the like with a predetermined threshold value, and then converts the digital image data into the processing unit 32. Supplied. In the processing unit 32, from the image data supplied from the insurance card reading unit 33, the insurer number, the insured person symbol,
And the insured person number is recognized.

【0059】さらに、処理部32により、健康保険証3
3Aの内容と患者IDカード31Aの内容の照合が行わ
れる。ステップS25においては、この照合結果に基づ
いて、健康保険証33Aが有効であるか否かが判定さ
れ、次に起動すべきタスクが決定される。例えば、健康
保険証33Aが有効であると判定され、健康保険の適用
が可能である場合、タスクCに対応する実行可能プログ
ラムの名称がキーボードバッファ12に書き込まれる。
Further, the processing unit 32 causes the health insurance card 3
The contents of 3A and the contents of the patient ID card 31A are collated. In step S25, it is determined whether or not the health insurance card 33A is valid based on the comparison result, and the task to be activated next is determined. For example, when the health insurance certificate 33A is determined to be valid and the health insurance can be applied, the name of the executable program corresponding to the task C is written in the keyboard buffer 12.

【0060】一方、例えば、有効期限が過ぎているなど
して健康保険証33Aが有効ではないと判定され、健康
保険の適用ができない場合、タスクDに対応する実行可
能プログラムの名称と、受付番号および所定のメッセー
ジ「受付窓口にお越しください」が記載された受付票3
4Aを発行するよう指示する所定のパラメータが、キー
ボードバッファ12に書き込まれる。その後、タスクB
が終了する。
On the other hand, for example, when it is determined that the health insurance card 33A is not valid because the expiration date has passed and the health insurance cannot be applied, the name of the executable program corresponding to the task D and the reception number And a reception slip 3 with the specified message "Please come to the reception desk"
A predetermined parameter instructing to issue 4A is written in the keyboard buffer 12. Then task B
Ends.

【0061】タスクBにより、キーボードバッファ12
に、タスクCに対応する実行可能プログラムの名称が書
き込まれた場合、タスクBが終了すると、コマンド解釈
ソフトウェアに制御が移行し、キーボードバッファ12
に書き込まれた実行可能プログラムの名称が解釈され、
実行される。すなわち、タスクCに対応する実行可能プ
ログラムが、I/F7を介してハードディスク8より読
み出され、RAM3にロードされた後、起動される。
The task B causes the keyboard buffer 12
In the case where the name of the executable program corresponding to the task C is written in, when the task B ends, the control shifts to the command interpretation software, and the keyboard buffer 12
The name of the executable program written in
Be executed. That is, the executable program corresponding to the task C is read from the hard disk 8 via the I / F 7, loaded into the RAM 3, and then started.

【0062】これにより、ステップS26に進み、老人
医療保険証33Bの照合処理が行われる。すなわち、ま
ず、保険証読み取り部33において、老人医療保険証3
3Bの読み取りが行われ、所定のしきい値による二値化
処理等が行われた後、ディジタルのイメージデータに変
換される。次に、このイメージデータから、処理部32
によって市町村番号や受給者番号などが認識される。
As a result, the process proceeds to step S26, and the collation process of the medical insurance card for the elderly 33B is performed. That is, first, in the insurance card reading unit 33,
3B is read, binarization processing or the like is performed with a predetermined threshold value, and then converted into digital image data. Next, from this image data, the processing unit 32
The municipality number and the recipient number are recognized by.

【0063】さらに、処理部32において、老人医療保
険証33Bの内容と患者IDカード31Aの内容の照合
が行われ、照合結果に基づいて、所定の受付票34Aの
発行が指示される。例えば、照合の結果、老人医療保険
の適用が可能である場合、タスクDに対応する実行可能
プログラムの名称と、受付番号および診察窓口の番号が
記載された受付票34Aの発行を行うよう指示する所定
のパラメータが、キーボードバッファ12に書き込まれ
る。
Further, in the processing unit 32, the contents of the medical insurance card for the elderly 33B and the contents of the patient ID card 31A are collated, and based on the collation result, issuance of a predetermined acceptance slip 34A is instructed. For example, as a result of the collation, if it is possible to apply the medical insurance for the elderly, it is instructed to issue the reception slip 34A in which the name of the executable program corresponding to the task D, the reception number, and the consultation desk number are described. Predetermined parameters are written in the keyboard buffer 12.

【0064】一方、照合の結果、有効期限が過ぎている
などして老人医療保険の適用ができない場合、タスクD
に対応する実行可能プログラムの名称と、受付番号およ
び所定のメッセージ「受付窓口にお越しください」が記
載された受付票34Aの発行を行うよう指示する所定の
パラメータが、キーボードバッファ12に書き込まれ
る。その後、タスクCが終了する。
On the other hand, as a result of the collation, if the medical insurance for the elderly cannot be applied because the expiration date has passed, task D
A predetermined parameter for instructing to issue the reception slip 34A in which the name of the executable program corresponding to the above, the reception number, and the predetermined message "Please come to the reception counter" are written in the keyboard buffer 12. After that, the task C ends.

【0065】タスクCが終了すると、次に、コマンド解
釈ソフトウェアに制御が移行し、キーボードバッファ1
2に書き込まれたコマンドの解釈が行われ、この場合、
タスクDに対応する実行可能プログラムがI/F7を介
してハードディスク8より読み込まれ、RAM3にロー
ドされた後、起動される。タスクDの処理内容について
は、上述した場合と同様であるので、ここではその詳細
については省略する。
When the task C is completed, the control is transferred to the command interpreting software, and the keyboard buffer 1
Interpretation of the command written in 2 is done, in this case
The executable program corresponding to the task D is read from the hard disk 8 via the I / F 7, loaded into the RAM 3, and then activated. Since the processing content of the task D is the same as that described above, the details thereof will be omitted here.

【0066】一方、ステップS25において、健康保険
証33Aが有効ではないと判定され、タスクBにより、
タスクDに対応する実行可能プログラムの名称と、受付
番号および所定のメッセージ「受付窓口にお越しくださ
い」が記載された受付票34Aを発行するよう指示する
所定のパラメータが、キーボードバッファ12に書き込
まれた場合、タスクBが終了すると、コマンド解釈ソフ
トウェアに制御が移行し、キーボードバッファ12に書
き込まれた実行可能プログラムの名称が解釈され、実行
される。すなわち、タスクDに対応する実行可能プログ
ラムが、I/F7を介してハードディスク8より読み出
され、RAM3にロードされた後、起動される。タスク
Dの処理内容は、上述した場合と同様であるので、ここ
ではその詳細な説明は省略する。
On the other hand, in step S25, it is determined that the health insurance card 33A is not valid, and according to task B,
Predetermined parameters for instructing to issue the reception slip 34A in which the name of the executable program corresponding to the task D, the reception number, and the predetermined message "Please come to the reception counter" are written in the keyboard buffer 12. In this case, when the task B ends, the control shifts to the command interpretation software, the name of the executable program written in the keyboard buffer 12 is interpreted, and the command is executed. That is, the executable program corresponding to the task D is read from the hard disk 8 via the I / F 7, loaded into the RAM 3, and then started. Since the processing content of the task D is the same as that described above, detailed description thereof will be omitted here.

【0067】タスクDは、受付票34Aの発行処理を実
行した後、タスクAを再度起動するために、キーボード
バッファ12にタスク起動コマンド、すなわちこの場合
タスクAに対応する実行可能プログラムの名称を書き込
む。これにより、タスクDが終了した後、コマンド解釈
ソフトウェアに制御が移行し、キーボードバッファ12
に書き込まれたコマンドが解釈され、タスクAに対応す
る実行可能プログラムがI/F7を介してハードディス
ク8より読み出され、RAM3にロードされた後、起動
される。
After executing the issuing process of the acceptance slip 34A, the task D writes the task start command, that is, the name of the executable program corresponding to the task A in this case, in the keyboard buffer 12 in order to restart the task A. . As a result, after the task D is completed, control is transferred to the command interpretation software, and the keyboard buffer 12
The command written in is interpreted, the executable program corresponding to the task A is read from the hard disk 8 via the I / F 7, loaded into the RAM 3, and then activated.

【0068】このようにして、タスクA乃至Dの各タス
クが、キーボードバッファ12を介して次のタスクを起
動するようにすることができる。また、タスクAやタス
クB(ただし、老人医療保険の適用がある場合に起動さ
れたとき)の場合のように、処理結果に対応して、次に
起動すべきタスクを決定するようにすることも可能であ
る。
In this way, each of the tasks A to D can activate the next task via the keyboard buffer 12. In addition, as in the case of task A or task B (however, when started when there is medical insurance for the elderly), the task to be started next should be determined according to the processing result. Is also possible.

【0069】このように、上記各実施例は、キーボード
バッファ12を利用してタスクの制御を行うものであ
る。すなわち、タスクの制御を、システムのタスクスケ
ジューラによって行うのではなく、通常はキーボードか
ら入力されるタスク起動コマンドを、アプリケーション
プログラムによって直接キーボードバッファ12に書き
込むことにより実現するものである。
As described above, in each of the above embodiments, the keyboard buffer 12 is used to control the task. That is, the task control is not performed by the system task scheduler, but a task activation command that is normally input from the keyboard is directly written into the keyboard buffer 12 by the application program.

【0070】キーボードバッファ12へのタスク起動コ
マンドの書き込みは、極めて低レベルの処理(例えばキ
ーボードバッファの存在するアドレスにアセンブラ等に
より直接書き込む処理)であるため、タスク制御に必要
とされるプログラムサイズが少なくて済み、アプリケー
ションプログラムは、メモリを最大限に使用することが
できる。また、キーボードバッファ12に書き込まれた
タスク起動コマンドは、コマンド解釈ソフトウェアによ
りキーボード6からの入力として扱われるため、キーボ
ード6から入力するコマンドの場合と同様に、各種の起
動パラメータを使用することができ、扱いが容易である
という利点もある。
Writing a task activation command to the keyboard buffer 12 is an extremely low-level process (for example, a process of directly writing to an address where the keyboard buffer exists by an assembler or the like), so that the program size required for task control is small. Fewer, application programs can make maximum use of memory. Further, the task activation command written in the keyboard buffer 12 is treated as an input from the keyboard 6 by the command interpreting software, so that various activation parameters can be used as in the case of the command input from the keyboard 6. There is also an advantage that it is easy to handle.

【0071】また、上記各実施例におけるコマンド解釈
ソフトウェアは、常駐ソフトウェア(ただし一部は非常
駐)であり、オペレーティングシステムには必ず存在す
るソフトウェアである。上述したように、コマンド解釈
ソフトウェアは、起動したプログラムの処理が終了し、
再びコマンド解釈ソフトウェアに制御が移行したとき、
キーボードバッファ12に蓄えられたタスク起動コマン
ドを解釈し、対応する処理を実行させるようになってい
る。
Further, the command interpretation software in each of the above-mentioned embodiments is resident software (a part of which is non-resident), and is software that always exists in the operating system. As described above, the command interpretation software terminates the processing of the started program,
When control is transferred to the command interpretation software again,
The task activation command stored in the keyboard buffer 12 is interpreted and the corresponding process is executed.

【0072】なお、上記第2の実施例(図3の実施例)
においては、本発明を保険証確認システムに応用した場
合について説明したが、これに限らず、他のシステム、
例えばFA(Factory Automation)や制御系のシステム
に応用することが可能である。
The above second embodiment (embodiment of FIG. 3)
In the above, the case where the present invention is applied to the insurance card confirmation system has been described, but the present invention is not limited to this, and other systems,
For example, it can be applied to FA (Factory Automation) and control systems.

【0073】また、上記各実施例においては、オペレー
ティングシステムをMS−DOSとして説明したが、こ
れに限定されるものではない。
In each of the above embodiments, the operating system has been described as MS-DOS, but the present invention is not limited to this.

【0074】さらに、上記各実施例において、CRTの
代わりに例えば液晶表示装置などの他の表示装置を用い
たり、ハードディスクの代わりに例えばCD−ROMや
フロッピディスク等の他の記録媒体を用いることが可能
である。
Further, in each of the above embodiments, another display device such as a liquid crystal display device may be used instead of the CRT, and another recording medium such as a CD-ROM or floppy disk may be used instead of the hard disk. It is possible.

【0075】[0075]

【発明の効果】請求項1に記載のプログラム制御方法、
および請求項3に記載のプログラム制御装置によれば、
アプリケーションプログラムを実メモリで実行可能な所
定の大きさの複数のタスクに分割し、タスクにより、所
定の処理を実行した後、複数のタスクのうちの次に実行
すべき所定のものに対応するコマンドをバッファに書き
込むようにしたので、いま実行中のタスクから次に実行
すべきタスクをバッファを用いて指定することができ
る。従って、キーボードからのコマンド入力と実質的に
同様の制御によってタスク制御を行うことができ、実メ
モリを有効に使用することが可能となる。
The program control method according to claim 1,
According to the program control device of claim 3,
A command corresponding to a predetermined task to be executed next among a plurality of tasks after the application program is divided into a plurality of tasks of a predetermined size that can be executed in real memory, and the task performs a predetermined process. Is written in the buffer, so the task to be executed next can be specified from the currently executing task using the buffer. Therefore, task control can be performed by control substantially similar to command input from the keyboard, and the actual memory can be effectively used.

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

【図1】本発明のプログラム制御装置の構成例を示すブ
ロック図である。
FIG. 1 is a block diagram showing a configuration example of a program control device of the present invention.

【図2】図1の装置の動作を説明するためのフローチャ
ートである。
2 is a flow chart for explaining the operation of the apparatus of FIG.

【図3】本発明のプログラム制御装置を応用した保険証
照合システムの構成例を示すブロック図である。
FIG. 3 is a block diagram showing a configuration example of an insurance card collation system to which the program control device of the present invention is applied.

【図4】図3のシステムの動作を説明するためのフロー
チャートである。
FIG. 4 is a flowchart for explaining the operation of the system of FIG.

【図5】従来のタスク起動の方法を説明するためのフロ
ーチャートである。
FIG. 5 is a flow chart for explaining a conventional task activation method.

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

1 CPU 2 ROM 3 RAM 4 VRAM 5 キーボードインタフェース 6 キーボード 7 I/F 8 ハードディスク(記憶手段) 9 CRTコントローラ 10 CRT 11 システムバス 12 キーボードバッファ 31 カード読み取り部 32 処理部 33 保険証読み取り部 34 発行部 1 CPU 2 ROM 3 RAM 4 VRAM 5 keyboard interface 6 keyboard 7 I / F 8 hard disk (storage means) 9 CRT controller 10 CRT 11 system bus 12 keyboard buffer 31 card reading unit 32 processing unit 33 insurance certificate reading unit 34 issuing unit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 キーボードより入力されたコマンドを蓄
積するバッファと、前記バッファに蓄積されたコマンド
を解釈し、対応するタスクを起動するコマンド解釈ソフ
トウェアを有し、実メモリの大きさが制限され、仮想メ
モリやマルチタスクが使用できないオペレーティングシ
ステムのもとで、アプリケーションプログラムの実行を
制御するプログラム制御方法において、 前記アプリケーションプログラムを前記実メモリで実行
可能な所定の大きさの複数のタスクに分割し、 前記コマンド制御ソフトウェアによって起動された前記
タスクは、所定の処理を実行した後、複数の前記タスク
のうちの次に実行すべき所定のものに対応する前記コマ
ンドを前記バッファに書き込むことを特徴とするプログ
ラム制御方法。
1. A buffer for accumulating a command input from a keyboard, and command interpretation software for interpreting the command accumulated in the buffer and activating a corresponding task, the size of an actual memory being limited, In a program control method for controlling the execution of an application program under an operating system in which virtual memory or multitasking cannot be used, the application program is divided into a plurality of tasks of a predetermined size that can be executed in the real memory, The task started by the command control software, after executing a predetermined process, writes the command corresponding to a predetermined one of the plurality of tasks to be executed next in the buffer. Program control method.
【請求項2】 前記オペレーティングシステムは、マイ
クロソフトディスクオペレーティングシステムであるこ
とを特徴とする請求項1に記載のプログラム制御方法。
2. The program control method according to claim 1, wherein the operating system is a Microsoft disk operating system.
【請求項3】 キーボードより入力されたコマンドを蓄
積するバッファと、前記バッファに蓄積されたコマンド
を解釈し、対応するタスクを起動するコマンド解釈ソフ
トウェアを有し、実メモリの大きさが制限され、仮想メ
モリやマルチタスクが使用できないオペレーティングシ
ステムのもとで、アプリケーションプログラムの実行を
制御するプログラム制御装置において、 前記実メモリで実行可能な所定の大きさの複数のタスク
に分割された前記アプリケーションプログラムを記憶す
る記憶手段と、 前記コマンド制御ソフトウェアによって起動された前記
タスクの一部を構成し、前記タスクが所定の処理を実行
した後、複数の前記タスクのうちの次に実行すべき所定
のものに対応する前記コマンドを前記バッファに書き込
むコマンド書き込み手段とを備えることを特徴とするプ
ログラム制御装置。
3. A buffer for accumulating a command input from a keyboard, and command interpretation software for interpreting the command accumulated in the buffer and activating a corresponding task, and the size of an actual memory is limited. In a program control device that controls the execution of an application program under an operating system in which virtual memory or multitasking cannot be used, the application program divided into a plurality of tasks of a predetermined size that can be executed in the real memory A storage unit that stores the part of the task started by the command control software, and after the task executes a predetermined process, a predetermined one to be executed next among the plurality of tasks. Command writing to write the corresponding command to the buffer Program control device, characterized in that it comprises a means.
JP7307299A 1995-11-27 1995-11-27 Method and device for controlling program Withdrawn JPH09146783A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7307299A JPH09146783A (en) 1995-11-27 1995-11-27 Method and device for controlling program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7307299A JPH09146783A (en) 1995-11-27 1995-11-27 Method and device for controlling program

Publications (1)

Publication Number Publication Date
JPH09146783A true JPH09146783A (en) 1997-06-06

Family

ID=17967478

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7307299A Withdrawn JPH09146783A (en) 1995-11-27 1995-11-27 Method and device for controlling program

Country Status (1)

Country Link
JP (1) JPH09146783A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001236234A (en) * 2000-02-21 2001-08-31 Hiroshi Izumi Computer and computer readable recording medium
JP5109141B2 (en) * 2009-12-25 2012-12-26 寛 江川 Insurance card confirmation system and insurance card confirmation method
CN112083998A (en) * 2019-06-14 2020-12-15 中车株洲电力机车研究所有限公司 Dynamic configuration method and device for task parameters in RTP of VxWorks system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001236234A (en) * 2000-02-21 2001-08-31 Hiroshi Izumi Computer and computer readable recording medium
JP5109141B2 (en) * 2009-12-25 2012-12-26 寛 江川 Insurance card confirmation system and insurance card confirmation method
CN112083998A (en) * 2019-06-14 2020-12-15 中车株洲电力机车研究所有限公司 Dynamic configuration method and device for task parameters in RTP of VxWorks system
CN112083998B (en) * 2019-06-14 2024-05-17 中车株洲电力机车研究所有限公司 Dynamic configuration method and device for task parameters in RTP of VxWorks system

Similar Documents

Publication Publication Date Title
EP0636981A1 (en) Information processing system
CN1133944C (en) System and method for starting system of computer system
US20040107359A1 (en) Utilizing the suspend state of an information handling system
EP1205845B1 (en) Microcomputer and method of controlling the same
JPH09146783A (en) Method and device for controlling program
JP3222668B2 (en) Print control apparatus and method
JPH08234991A (en) Information processing method and device
JPS6215898B2 (en)
JP3001213B2 (en) Printer control device
JPH0542749A (en) Printing suspension processing device
US20050210233A1 (en) System and method for updating a basic Input/Output system program
JPH10312353A (en) Computer system and pc card slot control method
JPH05150915A (en) Image forming device
EP0636980A1 (en) Apparatus and method for hibernation file creation
US20040017352A1 (en) Information processing apparatus and function assignment method for pointing device
JPS6283788A (en) Start control system for character proofreader
JP2544452B2 (en) Multitasking processor
EP0636982A1 (en) Information processing system and method
JP3398817B2 (en) Operation input processing device and method
JP3064506B2 (en) POS control system with EMS memory
JP2000242472A (en) Medium recording installation program, and device and method for installation
JPS6235931A (en) Input buffer control system
JPH11191048A (en) Print controller, data processing method in print controller and storage medium storing computer readable program
JP2000172530A (en) Device and method for gathering and displaying operation state data of real-time processing software
JP2001014070A (en) Power-saving mode releasing system of personal computer

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20030204