JPH04189570A - Printer device - Google Patents
Printer deviceInfo
- Publication number
- JPH04189570A JPH04189570A JP32218390A JP32218390A JPH04189570A JP H04189570 A JPH04189570 A JP H04189570A JP 32218390 A JP32218390 A JP 32218390A JP 32218390 A JP32218390 A JP 32218390A JP H04189570 A JPH04189570 A JP H04189570A
- Authority
- JP
- Japan
- Prior art keywords
- control code
- control
- interface
- code
- input
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
- Record Information Processing For Printing (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
産業上の利用分野
本発明は、ラベルプリンタ等のプリンタ装置に関するも
のである。DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to printer devices such as label printers.
従来の技術
ホストコンピュータ等の親機に接続して使用するラベル
プリンタ等のプリンタ装置では、コマンドや印刷データ
等からなるデータ信号の前後にES C(E 5ca
pe Character)や L F (L
ine Feed)及びN U L (Null
Character)等の制御コードを付与するよ
うになっている。つまり、上述のようなプリンタ装置で
は、受信データの制御コードと予め機器に設定された制
御コードの一致を判定し、この判定結果に従って、制御
コードとデータ信号とに従った動作の有無を制御するよ
うになっている。Conventional technology Printers such as label printers that are connected to a master device such as a host computer use ESC (E 5ca) before and after data signals consisting of commands, print data, etc.
pe Character) and L F (L
ine Feed) and N U L (Null
A control code such as "Character" is assigned. In other words, in the printer device described above, it is determined whether the control code of the received data matches the control code set in advance in the device, and based on this determination result, the presence or absence of the operation according to the control code and the data signal is controlled. It looks like this.
発明が解決しようとする課題
上述のようなプリンタ装置は、予め機器に設定された制
御コードと受信データの制御コードとの一致を検出して
所定の動作を実行するようになっている。Problems to be Solved by the Invention The printer device as described above is designed to perform a predetermined operation by detecting a match between a control code set in advance in the device and a control code of received data.
しかし、上述のようなプリンタ装置では、予め機器に設
定された制御コードと受信データの制御コードとが一致
しないと動作しないので、制御コードの種類が異なる親
機には接続不能であり、汎用性が低下している。However, the printer devices described above will not operate unless the control code set in advance on the device and the control code of the received data match, so they cannot be connected to a master device with a different type of control code, and the versatility is limited. is decreasing.
課題を解決するための手段
請求項1記載の発明は、制御コードが前後に付与された
データ信号か入力されるインターフェイスを有し、イン
ターフェイスから入力された制御コードと予め機器に設
定された制御コードとの一致の有無を判定する判定手段
を設け、この判定手段が判定した一致の有無に従って制
御コードとデータ信号とに従った動作の有無を制御する
制御手段を設けたプリンタ装置において、内容が異なる
制御コードが可変自在に設定されるメモリを設けた。Means for Solving the Problems The invention as set forth in claim 1 has an interface into which data signals to which control codes are given before and after are input, and the control code input from the interface and the control code set in advance in the device are input. In a printer device that is provided with a determination means for determining the presence or absence of a match between the control code and the data signal, and a control means for controlling the presence or absence of an operation in accordance with the control code and the data signal according to the presence or absence of a match determined by the determination means, the content is different. A memory is provided in which the control code can be set variably.
請求項2記載の発明は、制御コードが前後に付与された
データ信号が入力されるインターフェイスを有し、イン
ターフェイスから入力された制御コードと予め機器に設
定された制御コードとの一致の有無を判定する判定手段
を設け、この判定手段が判定した一致の有無に従って制
御コードとデータ信号とに従った動作の有無を制御する
制御手段を設けたプリンタ装置において、予め複数種類
の制御コードが設定されたメモリを設け、インターフェ
イスから入力された制御コードの種類を識別するコード
種類手段を設け、このコード種類手段が識別した制御コ
ードと同一種類の制御コードをメモリから選出するデー
タ切替手段を設けた。The invention according to claim 2 has an interface into which a data signal with control codes added before and after is input, and determines whether or not the control code input from the interface matches the control code set in advance in the device. In the printer device, a plurality of types of control codes are set in advance in a printer device, which is provided with a determination means for determining whether or not the determination means matches, and a control means for controlling the presence or absence of an operation according to the control code and the data signal according to the presence or absence of a match determined by the determination means. A memory is provided, code type means for identifying the type of control code input from the interface, and data switching means for selecting from the memory a control code of the same type as the control code identified by the code type means.
作用
請求項1記載の発明は、メモリに内容が異なる制御コー
ドが可変自在に設定されることで、予め機器に設定され
た制御コードとは内容が異なる制御コードでもメモリに
設定することで読取ることができるので、複数種類のホ
ストコンピュータなどに対応することができる。In the invention according to claim 1, control codes having different contents are variably set in the memory, so that even control codes having different contents from the control codes set in advance in the device can be read by setting in the memory. This makes it possible to support multiple types of host computers.
請求項2記載の発明は、予め複数種類の制御コードをメ
モリに設定しておき、インターフェイスから入力された
制御コードの種類をコード種類手段が識別し、このコー
ド種類手段が識別した制御コードと同一種類の制御コー
ドをデータ切替手段がメモリから選出することで、この
データ切替手段の切替えて複数種類の制御コードを読取
ることができるので、特別な操作を要することなく複数
種類のホストコンピュータなどに自動的に対応すること
ができる。In the invention as claimed in claim 2, a plurality of types of control codes are set in advance in the memory, a code type means identifies the type of control code inputted from the interface, and the code type means identifies the type of control code that is the same as the control code identified by the code type means. By selecting the type of control code from the memory by the data switching means, it is possible to read multiple types of control codes by switching the data switching means. be able to respond accordingly.
実施例
本発明の実施例を第1図ないし第4図に基づいて説明す
る。まず、請求項1記載の発明のプリンタ装置である本
実施例のラベルプリンタ1では、第2図に例示するよう
に、判定手段であり制御手段であるCPU(Centr
al Processing Unit)2に、R
OM(Read 0nly Memory)3、R
AM(Random Access Memory
)4、メモリであるバックアップRAM5、パルスモー
タ6やサーマルヘッド7及びセンサ8等からなる印刷機
構9、I / F (I nterface) :lシ
トローラ10が接続されており、このI/Fコントロー
ラ10のインターフェイス11にキーホード12とホス
トコンピュータ13とが接続されている。Embodiment An embodiment of the present invention will be explained based on FIGS. 1 to 4. First, in the label printer 1 of this embodiment, which is the printer device of the invention as claimed in claim 1, as illustrated in FIG.
al Processing Unit) 2, R
OM (Read Only Memory) 3, R
AM (Random Access Memory
) 4, a printing mechanism 9 consisting of a backup RAM 5, which is a memory, a pulse motor 6, a thermal head 7, a sensor 8, etc., an I/F (Interface): l Citrol 10 is connected, and this I/F controller 10 A keyboard 12 and a host computer 13 are connected to the interface 11.
そして、二のホストコンピュータ13から本発明のラベ
ルプリンタ1に転送される受信データ14は、第3図に
例示するように、コマンドや印刷データ等からなるデー
タ信号15の前に開始用の制御コードであるESC16
を付与すると共に後に終了用の制御コードであるLP0
1とNULL8とを付与した形態となっており、前記制
御コード16〜18等と同一内容の制御コードが前記バ
ックアップRAM5に予め設定されている。As illustrated in FIG. 3, the received data 14 transferred from the second host computer 13 to the label printer 1 of the present invention includes a start control code before the data signal 15 consisting of commands, print data, etc. is ESC16
, and later a control code for termination, LP0.
1 and NULL 8, and a control code having the same content as the control codes 16 to 18, etc., is set in advance in the backup RAM 5.
このような構成において、このラベルプリンタ1の動作
を第1図に例示するフローチャートに基づいて以下に説
明する。まず、このラベルプリンタ1は、予め設定モー
ドとオンラインモードとの二つの動作モードが設定され
ており、第1図(a)に例示するように、本体電源の入
力時のモードスイッチの状態などで切替わるようになっ
ている。In such a configuration, the operation of this label printer 1 will be explained below based on the flowchart illustrated in FIG. First, this label printer 1 is preset to two operating modes, a setting mode and an online mode, and as illustrated in FIG. It is set to switch.
そこで、通常はオンラインモードで動作するようになっ
ており、第1図(b)に例示するように、ホストコンピ
ュータ13からインターフェイス11を介して入力され
た受信データ14を読み込むと、この受信データ14の
開始用の制御コードであるESC16とバックアップR
AM5に設定されているESC16との一致の有無がC
PU2で判定される。そこで、これが一致すると受信デ
ータ14の終了用の制御コード17.18とバックアッ
プRAM5に設定されている制御コード17゜18との
一致の有無がCPU2で判定され、これらの一致が確認
されると受信データ14のデータ信号15の内容が解析
される。そこで、この解析内容に従ってCPU2が印刷
機構9を制御することでラベル発行などの印刷作業が実
行される。Therefore, it normally operates in online mode, and as illustrated in FIG. 1(b), when the received data 14 input from the host computer 13 via the interface 11 is read, ESC16, which is the control code for starting, and backup R
The presence or absence of a match with ESC16 set in AM5 is C.
Determined by PU2. Therefore, if they match, the CPU 2 determines whether or not the control code 17.18 for ending the received data 14 matches the control code 17.18 set in the backup RAM 5, and if these match, the reception The content of data signal 15 of data 14 is analyzed. Accordingly, the CPU 2 controls the printing mechanism 9 in accordance with the content of this analysis, thereby executing printing operations such as label issuance.
ここで、このラベルプリンタlでは、例えば、ホストコ
ンピュータ13の機種を変更するなどした場合に、受信
データ14のESC16とバックアップRAM5に設定
されているESC16との不一致がCPU2で判定され
ると、受信データ14を破棄するようになっている。Here, in this label printer l, when the model of the host computer 13 is changed, for example, and the CPU 2 determines that there is a mismatch between the ESC 16 of the received data 14 and the ESC 16 set in the backup RAM 5, the received Data 14 is discarded.
そして、このような場合、このラベルプリンタ1では、
本体電源のオンオフで動作モードを設定モードに切替え
、第1図(C)に例示するように、キーボード12の操
作入力などで必要な制御コードを設定してバックアツプ
RAM5内にストアさせる。In such a case, in this label printer 1,
The operation mode is switched to the setting mode by turning on and off the power of the main body, and necessary control codes are set by inputting operations on the keyboard 12 and stored in the backup RAM 5, as illustrated in FIG. 1(C).
このようにすることで、このラベルプリンタ1は、種類
が異なる制御コードでも読取ることができるので、複数
種類のホストコンピュータ13などに対応することがで
きる。By doing so, this label printer 1 can read even different types of control codes, so it can support multiple types of host computers 13 and the like.
なお、本実施例では操作入力でバックアップRAM5に
制御コードを入力することで、種類が異なる制御コード
に対応可能なラベルプリンタ1を例示したが、本発明は
上記方式に限定されるものではなく、請求項2記載の発
明のように、予め複数種類の制御コードをバックアツプ
RAM等のメモリに設定しておき、受信データの制御コ
ードの種類を識別して同一種類の制御コードをメモリか
ら選出するようなプリンタ装置も実施可能である。In this embodiment, the label printer 1 is exemplified as being able to handle different types of control codes by inputting the control codes into the backup RAM 5 through operation input, but the present invention is not limited to the above method. According to the invention as claimed in claim 2, a plurality of types of control codes are set in advance in a memory such as a backup RAM, and the types of control codes of received data are identified and control codes of the same type are selected from the memory. It is also possible to implement such a printer device.
この場合、第4図に例示するように、二つの制御コード
としてESCと(とが設定されているとすると、これら
の制御コードを受信データの制御コードと順次比較し、
一致した方の種類の制御コードを順次読呂すことになる
。このようにすることで、ホストコンピュータの機種を
変更するなどして制御コードの種類が変化しても、プリ
ンタ装置が自動的に対応するので汎用性や操作性が良好
である。In this case, as illustrated in FIG. 4, if ESC and ( are set as two control codes), these control codes are sequentially compared with the control code of the received data,
The control codes of the matching type are read in sequence. In this way, even if the type of control code changes due to a change in the model of the host computer, the printer device automatically responds to the change, resulting in good versatility and operability.
発明の効果
請求項1記載の発明は、制御コードが前後に付与された
データ信号が入力されるインターフェイスを有し、イン
ターフェイスから入力された制御コードと予め機器に設
定された制御コードとの−致の有無を判定する判定手段
を設け、この判定手段が判定した一致の有無に従って制
御コードとデータ信号とに従った動作の有無を制御する
制御手段を設けたプリンタ装置において、内容が異なる
制御コードが可変自在に設定されるメモリを設けたこと
により、予め機器に設定された制御コードとは内容が異
なる制御コードでもメモリに設定することで読取ること
ができるので、複数種類のホストコンピュータなどに対
応することができ、簡易な構造でプリンタ装置の汎用性
の向上に寄与することができる等の効果を有するもので
ある。Effects of the Invention The invention described in claim 1 has an interface into which a data signal with a control code added before and after is input, and it is possible to match the control code input from the interface with the control code set in advance in the device. In a printer device that is provided with a determination means for determining the presence or absence of a data signal, and a control means for controlling the presence or absence of an operation according to a control code and a data signal according to the presence or absence of a match determined by the determination means, control codes having different contents may be used. By providing a memory that can be set variably, it is possible to read control codes that are different from the control codes preset in the device by setting them in the memory, making it compatible with multiple types of host computers. This has the advantage of contributing to improving the versatility of printer devices with a simple structure.
請求項2記載の発明は、制御コードが前後に付与された
データ信号が入力されるインターフェイスを有し、イン
ターフェイスから入力された制御コードと予め機器に設
定された制御コードとの一致の有無を判定する判定手段
を設け、この判定手段が判定した一致の有無に従って制
御コードとデータ信号とに従った動作の有無を制御する
制御手段を設けたプリンタ装置において、予め複数種類
の制御コードが設定されたメモリを設け、インターフェ
イスから入力された制御コードの種類を識別するコード
種類手段を設け、このコード種類手段が識別した制御コ
ードと同一種類の制御コードをメモリから選出するデー
タ切替手段を設けたことにより、このデータ切替手段の
切替えで複数種類の制御コードを読取ることができるの
で、特別な操作を要することなく複数種類のホストコン
ピュータなどに自動的に対応することができ、簡易な構
造でプリンタ装置の汎用性や操作性の向上に寄与するこ
とができる等の効果を有するものである。The invention according to claim 2 has an interface into which a data signal with control codes added before and after is input, and determines whether or not the control code input from the interface matches the control code set in advance in the device. In the printer device, a plurality of types of control codes are set in advance in a printer device, which is provided with a determination means for determining whether or not the determination means matches, and a control means for controlling the presence or absence of an operation according to the control code and the data signal according to the presence or absence of a match determined by the determination means. By providing a memory, providing code type means for identifying the type of control code input from the interface, and providing data switching means for selecting from the memory a control code of the same type as the control code identified by the code type means. Since it is possible to read multiple types of control codes by switching this data switching means, it is possible to automatically support multiple types of host computers without requiring any special operations, and the simple structure makes it possible to read multiple types of control codes. This has effects such as being able to contribute to improving versatility and operability.
図面は本発明の実施例を示すものであり、第1図は請求
項1記載の発明のフローチャート、第2図はブロック図
、第3図は受信データの概念説明図、第4図は請求項2
記載の発明のフローチャートである。
1・・・プリンタ装置、2・・・判別手段かつ制御手段
、5・・・メモリ、11・・・インターフェイス、15
・・データ信号、16〜18・・・制御コード出 願
人 東京電気株式会社
(a)The drawings show an embodiment of the present invention, and FIG. 1 is a flowchart of the invention according to claim 1, FIG. 2 is a block diagram, FIG. 3 is a conceptual explanatory diagram of received data, and FIG. 4 is a diagram illustrating the concept of received data. 2
1 is a flowchart of the described invention. DESCRIPTION OF SYMBOLS 1... Printer device, 2... Discrimination means and control means, 5... Memory, 11... Interface, 15
...Data signal, 16-18...Control code application
Person Tokyo Electric Co., Ltd. (a)
Claims (1)
れるインターフェイスを有し、前記インターフェイスか
ら入力された制御コードと予め機器に設定された制御コ
ードとの一致の有無を判定する判定手段を設け、この判
定手段が判定した一致の有無に従って前記制御コードと
前記データ信号とに従った動作の有無を制御する制御手
段を設けたプリンタ装置において、内容が異なる制御コ
ードが可変自在に設定されるメモリを設けたことを特徴
とするプリンタ装置。 2、制御コードが前後に付与されたデータ信号が入力さ
れるインターフェイスを有し、前記インターフェイスか
ら入力された制御コードと予め機器に設定された制御コ
ードとの一致の有無を判定する判定手段を設け、この判
定手段が判定した一致の有無に従って前記制御コードと
前記データ信号とに従った動作の有無を制御する制御手
段を設けたプリンタ装置において、予め複数種類の制御
コードが設定されたメモリを設け、前記インターフェイ
スから入力された制御コードの種類を識別するコード種
類手段を設け、このコード種類手段が識別した制御コー
ドと同一種類の制御コードを前記メモリから選出するデ
ータ切替手段を設けたことを特徴とするプリンタ装置。[Scope of Claims] 1. It has an interface into which a data signal with a control code added before and after is input, and it is checked whether or not the control code input from the interface matches the control code set in advance in the device. In the printer apparatus, the control code having different contents is variable, in which the printer apparatus is provided with a determination means for determining, and a control means for controlling whether or not an operation is performed according to the control code and the data signal according to the presence or absence of a match determined by the determination means. A printer device characterized by being provided with a memory that can be freely set. 2. It has an interface into which a data signal with a control code added before and after is input, and is provided with a determination means for determining whether or not the control code input from the interface matches the control code set in advance in the device. , a printer device comprising a control means for controlling whether or not an operation is to be performed according to the control code and the data signal according to the presence or absence of a match determined by the determination means, further comprising a memory in which a plurality of types of control codes are set in advance; , further comprising code type means for identifying the type of control code input from the interface, and data switching means for selecting from the memory a control code of the same type as the control code identified by the code type means. printer device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP32218390A JPH04189570A (en) | 1990-11-26 | 1990-11-26 | Printer device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP32218390A JPH04189570A (en) | 1990-11-26 | 1990-11-26 | Printer device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH04189570A true JPH04189570A (en) | 1992-07-08 |
Family
ID=18140874
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP32218390A Pending JPH04189570A (en) | 1990-11-26 | 1990-11-26 | Printer device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH04189570A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6597465B1 (en) | 1994-08-09 | 2003-07-22 | Intermec Ip Corp. | Automatic mode detection and conversion system for printers and tag interrogators |
-
1990
- 1990-11-26 JP JP32218390A patent/JPH04189570A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6597465B1 (en) | 1994-08-09 | 2003-07-22 | Intermec Ip Corp. | Automatic mode detection and conversion system for printers and tag interrogators |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2615137B2 (en) | Printing device | |
JPH04189570A (en) | Printer device | |
WO1984001637A1 (en) | Data input/output apparatus | |
JP2738696B2 (en) | Printing control device | |
JP3045077B2 (en) | Printing device | |
KR19990041699A (en) | Computers and methods to power off without corruption of data | |
JPH0588815A (en) | Information processing equipment | |
JP2638435B2 (en) | Motor control device | |
JP2005165509A (en) | Device recognition method in a USB device equipped with a plurality of devices | |
JPH0224789A (en) | Data setting device for automatic vending machine | |
JP2910768B2 (en) | Printing device | |
JPS6392141A (en) | Terminal equipment with keyboard | |
JPH01214464A (en) | electronic typewriter | |
JPS60156126A (en) | data output device | |
JP2588214B2 (en) | Key code control device | |
JPS5975330A (en) | Data input/output device | |
JPH05241815A (en) | Signal processor for microprocessor control | |
JPH0651826A (en) | Teaching device for robot | |
JPS63133218A (en) | Power supply control system | |
JPH04125177A (en) | Printer setting apparatus | |
JPS60189567A (en) | information processing equipment | |
JPH07178971A (en) | Printer controller | |
JPH01241618A (en) | Printer | |
JPH0273246U (en) | ||
JPS61177527A (en) | Control system of automatic page selection type multi-item input device |