JPH0443423A - Logical control code processing system - Google Patents

Logical control code processing system

Info

Publication number
JPH0443423A
JPH0443423A JP2151085A JP15108590A JPH0443423A JP H0443423 A JPH0443423 A JP H0443423A JP 2151085 A JP2151085 A JP 2151085A JP 15108590 A JP15108590 A JP 15108590A JP H0443423 A JPH0443423 A JP H0443423A
Authority
JP
Japan
Prior art keywords
control code
printer
logical control
printers
programs
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
JP2151085A
Other languages
Japanese (ja)
Inventor
Yumi Inoue
井上 由美
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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2151085A priority Critical patent/JPH0443423A/en
Publication of JPH0443423A publication Critical patent/JPH0443423A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To obtain the interchangeability of the programs having different kinds of printers by using a common logical control code when the same processing program is executed in the different types of the printers. CONSTITUTION:An application program AP 20 sets the logical control code which is common between the programs of the different types of the printers. A logical control code judgement mechanism 1 in a printer processing routine 30 judges that the control code which is set in the program is the logical control code. Then, the printer judgement part of a printer judgement/control code conversion mechanism 2 refers to a device information area, judges the type of the printer and converts the logical control code into the control code peculiar to respective devices by a control code conversion part. A printer data mechanism 3 executes a function which the converted control code designates and executes printer output. Thus, the function can be executed for the specified function in the different types of programs by using the common code.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプリンタの制御符号処理方式に関し、特に異機
種プリンタのプログラム間で共通の論理制御符号を用い
て、処理するプリンタの制御符号処理方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a control code processing method for a printer, and particularly to a control code processing method for a printer that uses a common logical control code between programs of different types of printers. Regarding.

〔従来の技術〕[Conventional technology]

従来、プリンタの制御符号処理方式は、各装置固有の制
御符号であり、プログラムで装置固有の制御符号を設定
しプリンタ出力機構により、指定されている機能を実行
していた。
Conventionally, the control code processing method for printers is to use control codes unique to each device, and the device-specific control codes are set in a program, and the designated function is executed by the printer output mechanism.

詳細については第3・第4図より説明する。Details will be explained with reference to FIGS. 3 and 4.

同一の処理プログラム(アプリケーションプログラムで
APと略す)を、それぞれ異った機種のプリンタを接続
したコンピュータで実行し出力すると仮定する。第3図
の処理手順では、制御符号を設定する際に、3台それぞ
れにつき異った制御符号を設定する必要があり、プログ
ラム内では動作するプリンタの判定ができない。第4図
のように各プリンタ固有の制御符号(ここではESCA
−1〜ESCA−3の3種類)を設定した同一処理を行
うプログラムを3種用意し、利用者がプリンタ機種の判
定を行い、プリンタに従ったプログラムを起動する必要
がある。
Assume that the same processing program (application program, abbreviated as AP) is executed and output on computers connected to printers of different models. In the processing procedure shown in FIG. 3, when setting the control code, it is necessary to set a different control code for each of the three printers, and it is not possible to determine which printer will operate within the program. As shown in Figure 4, the control code unique to each printer (here, ESCA
-1 to ESCA-3) to perform the same process, the user needs to determine the printer model and start the program according to the printer.

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

上述した従来のプリンタの制御符号処理方式は、装置固
有の制御符号であるため、異機種間のプログラム互換性
がなくなるという欠点がある。
The conventional printer control code processing method described above has the disadvantage that program compatibility between different models is lost because the control codes are device-specific.

本発明は論理制御符号を用いることにより、プリンタ異
機種間のプログラムに互換を持たせることが可能となる
プリンタの制御符号処理方式を提供することを目的とし
ている。
SUMMARY OF THE INVENTION An object of the present invention is to provide a printer control code processing method that makes it possible to make programs of different printer types compatible by using logical control codes.

〔課題を解決するための手段〕[Means to solve the problem]

本発明の論理制御符号処理方式は、プリンタの制御符号
により種々の機能を実行させる処理において、論理制御
符号であるか否かを判断する機構と、プリンタを判定し
コードを変換する処理機構と、プリンタ出力処理機構と
を有し、異機種のプログラムで特定の機能に対して共通
の制御符号を用いて機能を実行して構成される。
The logical control code processing method of the present invention includes a mechanism for determining whether or not the control code is a logical control code, a processing mechanism for determining the printer and converting the code, in the process of executing various functions using the control code of the printer. It has a printer output processing mechanism and is configured by executing functions using common control codes for specific functions with different types of programs.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例の処理手順を示す流れ図であ
り、第2図は本実施例の概要を示すブロック図である。
FIG. 1 is a flowchart showing the processing procedure of an embodiment of the present invention, and FIG. 2 is a block diagram showing an overview of the embodiment.

第1図のアプリケージタン・プログラムAP20で異機
種プリンタのプログラム間で共通の論理制御符号を設定
する。プリンタ処理ルーチン30の中の論理制御符号判
断機構1はプログラムで設定された制御符号が論理制御
符号であることを判断する。次にプリンタ判定番制御符
号変換機構2のプリンタ判定部により、装置情報領域を
参照しプリンタの機種を判定する。プリンタ判定部によ
り、装置情報領域を参照しプリンタの機種を判定する。
The application program AP20 shown in FIG. 1 sets a common logic control code between programs of different types of printers. The logical control code determination mechanism 1 in the printer processing routine 30 determines that the control code set by the program is a logical control code. Next, the printer determination section of the printer determination number control code conversion mechanism 2 refers to the device information area and determines the printer model. The printer determination unit determines the printer model by referring to the device information area.

プリンタ判定部により判定されたプリンタの機種に基づ
き、制御符号変換部によって論理制御符号を各装置固有
の制御符号に変換する。
Based on the printer model determined by the printer determination section, the control code conversion section converts the logical control code into a control code unique to each device.

プリンタ出力機構3により、変換した制御符号の指定す
る機能を実行しプリンタ出力を行う。
The printer output mechanism 3 executes the function specified by the converted control code and performs printer output.

第1図の処理手順に従った場合と、第3図の従来の処理
手順に従った場合の比較を第2図によって説明する。
A comparison between the case where the processing procedure shown in FIG. 1 is followed and the case where the conventional processing procedure shown in FIG. 3 is followed will be explained with reference to FIG.

第1図に示す本実施例の処理手順では、3台のプリンタ
11〜13に同じ機能を実行させるアプリケーションプ
ログラムAP20共通の論理制御符号(例えばrAZX
XXJ)を用いることにより、3台のプリンタを1種の
プログラムで動作させる。そして、第1図のプリンタ処
理ルーチンによって、第3図に見る従来の処理手順に従
って実行した時と同様のプリンタ出力を得ることができ
る。
In the processing procedure of this embodiment shown in FIG.
XXJ) allows three printers to operate with one type of program. By using the printer processing routine shown in FIG. 1, it is possible to obtain the same printer output as when executed according to the conventional processing procedure shown in FIG.

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

以上説明したように本発明は、同一の処理プログラムを
異機種プリンタで実行する。場合に、共通の論理制御符
号を用いることにより、プリンタ毎にプログラムを修正
する作業が必要なくなり、異機種プリンタのプログラム
間に互換性を持たせることができるという効果がある。
As described above, according to the present invention, the same processing program is executed by different types of printers. In this case, by using a common logical control code, there is no need to modify the program for each printer, and compatibility can be achieved between programs of different types of printers.

すプロッタ図。Plotter diagram.

1・・・論理制御符号判断機構、2・・・プリンタ判定
・制御符号変換機構、3・・・プリンタ出力処理機構、
20・・・アプリケーションプログラム、30・・・プ
リンタ処理ルーチン。
1... Logical control code judgment mechanism, 2... Printer judgment/control code conversion mechanism, 3... Printer output processing mechanism,
20...Application program, 30...Printer processing routine.

Claims (1)

【特許請求の範囲】[Claims] プリンタの制御符号により種々の機能を実行させる処理
において、論理制御符号であるかを判断する機構と、プ
リンタを判定しコードを変換する処理機構と、プリンタ
出力処理機構とを有し、異機種のプログラムで特定の機
能に対して共通の制御符号を用いて機能を実行して成る
ことを特徴とする論理制御符号処理方式。
In the process of executing various functions using printer control codes, it has a mechanism for determining whether it is a logical control code, a processing mechanism for determining the printer and converting the code, and a printer output processing mechanism. A logical control code processing method characterized in that a program executes a specific function using a common control code.
JP2151085A 1990-06-08 1990-06-08 Logical control code processing system Pending JPH0443423A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2151085A JPH0443423A (en) 1990-06-08 1990-06-08 Logical control code processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2151085A JPH0443423A (en) 1990-06-08 1990-06-08 Logical control code processing system

Publications (1)

Publication Number Publication Date
JPH0443423A true JPH0443423A (en) 1992-02-13

Family

ID=15510996

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2151085A Pending JPH0443423A (en) 1990-06-08 1990-06-08 Logical control code processing system

Country Status (1)

Country Link
JP (1) JPH0443423A (en)

Similar Documents

Publication Publication Date Title
CN110053046A (en) Robot control method and its system based on customized event
JP2008276674A (en) Electronic computing device capable of specifying task execution time and program for the electronic computing device
JPH01194007A (en) Method for converting iso/eia code
JPH04112304A (en) I/o module check system
JP2761788B2 (en) Program conversion device and program transfer device
JPH0231208A (en) Programming unit
JPH05303484A (en) Data link method
JPS6230097Y2 (en)
JPS6115236A (en) Partial production of object list
JPS62237520A (en) Printer control device
JPH08320771A (en) Information processing network system
WO2002065727A3 (en) Logical routing system
JPS6274122A (en) Control device for printer device
JPS6421451U (en)
JPH0690734B2 (en) Timer-module for data flow type computer
JPS6155738A (en) Determining system of operation mode
JPH07129384A (en) System for converting operating procedures into natural language format files
JPH0280814U (en)
JPH02130626A (en) Interchanging system for printer device
JPH02239358A (en) System for updating mmi state transition
JPH02123606U (en)
JPH0438549A (en) Network topology control system
JPH0280807U (en)
JPS582952A (en) Determining system for interrupt priority level
JPH0350628A (en) Make file generation method using source file