JPH04208474A - Printer - Google Patents

Printer

Info

Publication number
JPH04208474A
JPH04208474A JP34043890A JP34043890A JPH04208474A JP H04208474 A JPH04208474 A JP H04208474A JP 34043890 A JP34043890 A JP 34043890A JP 34043890 A JP34043890 A JP 34043890A JP H04208474 A JPH04208474 A JP H04208474A
Authority
JP
Japan
Prior art keywords
printing
frame
print
bit
information
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
JP34043890A
Other languages
Japanese (ja)
Inventor
Kenichi Fujii
健一 藤井
Hisashi Kamimura
上村 寿
Kazuya Bessho
別所 和也
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.)
Kanzaki Paper Manufacturing Co Ltd
Original Assignee
Kanzaki Paper Manufacturing Co 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 Kanzaki Paper Manufacturing Co Ltd filed Critical Kanzaki Paper Manufacturing Co Ltd
Priority to JP34043890A priority Critical patent/JPH04208474A/en
Priority to DE19914139488 priority patent/DE4139488A1/en
Priority to GB9125493A priority patent/GB2251107B/en
Publication of JPH04208474A publication Critical patent/JPH04208474A/en
Pending legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Dot-Matrix Printers And Others (AREA)

Abstract

PURPOSE:To carry out the print in response to a print command and print continuously almost without dormant period by providing a plurality of frame memories wherein printing information is to be expanded to bit pattern. CONSTITUTION:When a printing information code of a fixed item is received, it is stored in an input buffer 61, expanded to bit immediately (F), and stored in a first frame memory 62a. When a variable item is received subsequently to the fixed item, it is stored in the input buffer 61 in code, a first 1 page is expanded to bit immediately and overwritten on the first frame memory. A printing of contents of the first frame (fixed item F and variable item V1) is started, while a processing of a second sheet is started, so that the contents of the first frame are copied in a second frame 62b.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、プリンタ装置、特に印字情報を予めプリンタ
の記憶素子に格納しておき、外部装置からの印字指令に
基づいて印字を行う方式のプリンタ装置に関するもので
あり、フォーマット登録式のプリンタ等に極めて有効で
ある。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a printer device, particularly a method of storing print information in advance in a memory element of the printer and printing based on a print command from an external device. This relates to printer devices and is extremely effective for format registration type printers and the like.

(従来の技術) 従来、外部装置からの印字情報をコード形態で受信して
、これをコード形態のままで記憶素子に格納しておき、
印字指令のあったときコード形態の印字情報を所定量ず
つビットパターンに展開して出カバソファメモリに格納
し印字することが行われている。
(Prior Art) Conventionally, print information is received in the form of a code from an external device and stored in a storage element in the form of the code.
When a print command is received, a predetermined amount of print information in the form of a code is expanded into a bit pattern, stored in the output cover memory, and printed.

この方式では外部装置から印字指令を受信してからビッ
トパターン展開を開始するため、印字指令を受信してか
ら印字開始まで例えば数秒程度の時間を要し、プリンタ
の高速化の障害となっていた。
In this method, bit pattern development begins after receiving a print command from an external device, so it takes several seconds, for example, from receiving a print command to starting printing, which is an obstacle to speeding up the printer. .

(一般にプリンタで文書またはパターンを印字する場合
、実印字以外で最も時間を要するのは。
(Generally, when printing a document or pattern using a printer, what takes the most time other than the actual printing?

ビットパターンに展開する過程である。このための所要
時間は一般に編集処理時間と呼ばれており、場合によっ
ては全印字時間の2/3程度に及ぶこともある。) この問題の解決のため、従来量々の提案が試みられてい
るが、まだ根本的な解決はなされていない。
This is the process of developing it into a bit pattern. The time required for this is generally referred to as editing processing time, and in some cases may amount to about 2/3 of the total printing time. ) Many proposals have been made to solve this problem, but no fundamental solution has been found yet.

(発明が解決しようとする課題) 上述の従来の方式では、印字指令を受信してからコード
形態の印字情報をビット展開するため。
(Problems to be Solved by the Invention) In the conventional method described above, the print information in the form of a code is expanded into bits after receiving a print command.

実印字以外に編集処理時間を必要とするものや。Items that require editing processing time in addition to actual printing.

可変項目を含む場合には、全面のビット展開が必要であ
るという問題があった。
When variable items are included, there is a problem in that bit expansion of the entire area is required.

本発明は、印字指令に即応して印字処理でき。The present invention can perform printing processing in immediate response to a printing command.

かつ殆ど休止期間なく連続印字できる高速のプリンタ装
置を提供しようとするものである。
The present invention also aims to provide a high-speed printer device that can perform continuous printing with almost no downtime.

(l!題を解決するための手段) 本発明は、外部装置から転送される情報はコード形態で
受信し、プリンタの記憶素子へは該印字情報を実際に印
字するビットパターンに展開して格納しておき、外部装
置から印字指令を受けて印開始する方式のプリンタ装置
において、印字情報をビットパターンに展開するフレー
ムメモリを複数面設け、1個のフレームメモリの印字情
報を印字しながら、並行して後続の印字情報を残りのフ
レームにピント展開格納する動作を行わせて、所期の目
的を達成した。
(Means for Solving the L! Problem) The present invention receives information transferred from an external device in the form of a code, and stores the print information in the memory element of the printer after expanding it into a bit pattern to be actually printed. In a printer device that starts printing upon receiving a print command from an external device, multiple frame memories for developing print information into bit patterns are installed, and while printing the print information of one frame memory, The intended purpose was achieved by performing an operation in which the subsequent printed information was focused and stored in the remaining frames.

本発明はまた(k+1)面目のフレームのビットパター
ンをに面目のフレームに複写する機能。
The present invention also has a function of copying the bit pattern of the (k+1)th frame to the (k+1)th frame.

外部装置から転送される印字情報の中に、1ベーじ毎に
印字内容が変化する可変項目と全ページを通じて印字内
容が変化しない固定項目を識別する情報が含まれており
、該情報に基づいて可変項目だけをビットパターンに展
開して、対応するページのフレームに上書する機能を付
加することにより、印字処理全体の高速化をさらに高め
ることができた。
The print information transferred from the external device includes information that identifies variable items whose print content changes for each page and fixed items whose print content does not change throughout all pages. By adding a function to develop only variable items into bit patterns and overwrite them on the corresponding page frame, we were able to further speed up the overall printing process.

(作用) 印字情報を予め記憶素子に格納しておき、印字指令によ
って印字を行う方式のプリンタでは、印字情報を記憶素
子に格納する時(登録時)に時間を要することは実使用
上殆ど問題にならない。
(Function) In a printer that stores print information in advance in a memory element and prints based on a print command, it is almost a problem in practical use that it takes time to store the print information in the memory element (at the time of registration). do not become.

本発明では、従来量も所要時間の多くを占めていた編集
処理時間を登録時間に吸収させてしまうことにより、外
部装置からの印字指令受信後直ちに印字を開始でき、従
って最低限の時間で印字処理を完了できる。
In the present invention, by absorbing the editing processing time, which conventionally took up much of the required time, into the registration time, printing can be started immediately after receiving a printing command from an external device, and therefore printing can be done in the minimum amount of time. The process can be completed.

また本発明では、上記においてビット展開した印字情゛
報を記憶するフレームメモリを複数フレーム分設け、印
字用とビット展開・格納用に交互に並行して用いること
ができ、即ち一方のフレームメモリへのビット展開時間
を他方のメモリの印字時間内に吸収させることができ、
実印字動作を連続して行うことができる。
Furthermore, in the present invention, frame memories for storing the bit-expanded print information described above can be provided for a plurality of frames, and can be used alternately and in parallel for printing and for bit expansion/storage. The bit expansion time of one memory can be absorbed within the printing time of the other memory.
Actual printing operations can be performed continuously.

(実施例) 第1図は 本発明のプリンタ装置の概略システム構成図
、第2図は本発明装置のRAM内部のメモリ区分の使用
状態の従来との比較図である。
(Embodiment) FIG. 1 is a schematic system configuration diagram of a printer device of the present invention, and FIG. 2 is a comparison diagram of the state of use of memory divisions inside the RAM of the device of the present invention with a conventional one.

第1図において、 (1)はパーソナルコンピュータ等
の外部装置、 (2)はプリンタ装置であり、たとえば
ラインプリンタであるが、これに限られるわけではない
In FIG. 1, (1) is an external device such as a personal computer, and (2) is a printer device, such as a line printer, but is not limited to this.

(3)はパスライン、 (4)は入出力装置、 (5)
はCPUである。
(3) is a pass line, (4) is an input/output device, (5)
is the CPU.

(6)は印字情報記憶用メモリであり、たとえばRAM
で構成され、ビット展開した印字情報を1ないし2ペ一
ジ分格納できる記憶容量があればよいが、場合によって
は一連の印字情報全体をビット展開した形で保持できる
記憶容量を持つことが好ましい。
(6) is a memory for storing print information, for example, RAM
It is sufficient to have a storage capacity that can store one or two pages of bit-expanded printed information, but in some cases it is preferable to have a storage capacity that can hold the entire series of printed information in bit-expanded form. .

(7)は制御プログラム記憶用メモリであり。(7) is a memory for storing control programs.

例えばROMで構成され、データ編集プログラム、印字
制御プログラムその他プリンタとして通常必要な各種の
制御プログラムのほか1本発明に特有の例えば第3図(
a)にフローチャートで示される処理を行わせるための
プログラムを格納している、(8)は印字ヘッドである
For example, it is configured with a ROM, and in addition to a data editing program, a printing control program, and various other control programs normally required for a printer, there is also one program specific to the present invention, for example, as shown in FIG.
(8) is a print head that stores a program for performing the processing shown in the flowchart in (a).

第2図は本発明のRAM内部の使い方を従来の場合(第
2図)と比較した図である0本発明では、第2図のよう
に、コードの形で受信した印字情報は入力バッファ領域
(61)に格納されると共に、引き続いてまたは速やか
にビット展開され。
Figure 2 is a diagram comparing the internal usage of the RAM of the present invention with the conventional case (Figure 2). In the present invention, as shown in Figure 2, the print information received in the form of a code is stored in the input buffer area. (61) and is subsequently or immediately bit-expanded.

ビア)パターンの形態でRAMの残りの領域(62)に
格納される。領域(62)は、2面分または2面分以上
の記憶容量を有し、第1フレーム(62a)、第2フレ
ーム(62b)に分けて使用されるが、印字長が比較的
短い場合には、これを印字長に応じて3面以上の複数面
の記憶領域に分割して各々のフレームで並行処理するよ
うにしてもよい。
via) pattern in the remaining area (62) of the RAM. The area (62) has a storage capacity for two pages or more, and is used separately for the first frame (62a) and the second frame (62b), but when the printing length is relatively short, Alternatively, this may be divided into three or more storage areas according to the print length, and each frame may be processed in parallel.

一方従来方式では印字情報は、第4図のように、コード
の形で受信し、入力バッファ(65)を経てコードの形
で領域(66)、  (67)に格納しておき、印字指
令を受けた際に所定量ずつビット展開して出力バッファ
領域(68)に取り出され、印字に供される。なお(6
6)は固定項目記憶領域、(67)は可変項目記憶領域
である。
On the other hand, in the conventional method, as shown in Fig. 4, print information is received in the form of a code, passes through an input buffer (65), and is stored in the form of a code in areas (66) and (67). When received, a predetermined amount of data is bit-expanded and taken out to the output buffer area (68) for printing. In addition (6
6) is a fixed item storage area, and (67) is a variable item storage area.

第3図は 本発明における印字情報の受信から印字まで
の印字情報の処理のフローと時間の関係図で、第5図の
従来の場合と比較して示す。
FIG. 3 is a flow diagram of the processing flow and time of print information from reception of print information to printing in the present invention, and is compared with the conventional case shown in FIG. 5.

第3図の処理のフローを説明する。The flow of the process shown in FIG. 3 will be explained.

A)フォーマット登録方式のプリンタでは、印字情報は
まず固定項目から送られる。固定項目の印字情報コード
を受信すると、入力バッファ(61)に格納されるとと
もに、直ちにビーット展開され(F)、第1フレームメ
モリ(62a)に格納される。
A) In printers using the format registration method, print information is first sent from fixed items. When the fixed item print information code is received, it is stored in the input buffer (61), and is immediately subjected to bit expansion (F) and stored in the first frame memory (62a).

B)固定項目に続いて可変項目を受信すると。B) When a fixed item is followed by a variable item.

入力バッファ(61)にコードでに格納されるとともに
、最初の1頁分が直ちにピント展開され。
The code is stored in the input buffer (61), and the first page is immediately expanded into focus.

第1フレームメモリに上書きされる。The first frame memory is overwritten.

C)第1フレームの内容(固定項目F及び可変項目Vl
)の印字が開始され、他方では2枚目の処理が開始され
、第1フレームの内容が第2フレーム(62b)に複写
される。
C) Contents of the first frame (fixed item F and variable item Vl
) is started, and on the other hand, processing of the second sheet is started, and the contents of the first frame are copied to the second frame (62b).

2頁目の可変項目の情報■2を受信すると、同様にビッ
ト展開され、第2フレームに上書きされる。第2フレー
ムのこれらの編集処理は、第1フレームでの印字処理と
並行して行なわれ、はぼ同時に終了する。
When variable item information (2) on the second page is received, it is similarly bit-expanded and overwritten in the second frame. These editing processes for the second frame are performed in parallel with the printing process for the first frame, and are completed almost simultaneously.

D)つぎに第2フレームの内容の印字処理に並行して、
第2フレームから第1フレームへの複写、3頁目の可変
項目v3の受信、ビット展開、第1フレームへの上書き
の編集処理が行われる。以下同様に2個のフレームメモ
リ間で連携して、処理が繰り返される。
D) Next, in parallel with the printing process of the contents of the second frame,
Editing processes such as copying from the second frame to the first frame, receiving variable item v3 on the third page, bit expansion, and overwriting the first frame are performed. Thereafter, the two frame memories cooperate in the same manner and the process is repeated.

E)以上からも明らかなように9本発明では。E) As is clear from the above, in the present invention.

印字情報の編集処理時間が、実印字処理時間に吸収され
、実印字を連続して行うことができる0以上は2個のフ
レームメモリを用いる場合について説明したが、3個以
上のフレームメモリを使用すればさらに、処理の効率を
上げることができる。
Editing processing time for print information is absorbed by actual printing processing time, and actual printing can be performed continuously.Although we have explained the case where two frame memories are used for 0 or more, it is also possible to use three or more frame memories. This will further improve processing efficiency.

従来方式では、第5図のように印字情報はコードの形で
受信しコードの形で格納され、印字の際に印字指令・ビ
ット展開・印字の動作を繰り返していだので、印字開始
指令から印字終了までの印字所要時間が比較的長くなっ
ていたのに対し9本発明では、第3図から判るように、
前頁の印字終了以前に固定項目、可変項目ともドツト展
開を終了させ、実印字ドツトパターンが完成しているた
め、可変項目を含むパターンでも、実印字パターンだけ
で連続印字することができ、印字速度の高速化をさらに
進めることができる0、 この印字所要時間の短縮の程度は、印字パターンに依存
するが、従来の方式の1/2程度にすることも可能であ
り、実印字速度の向上によりさらに短縮することも可能
である。
In the conventional method, as shown in Figure 5, printing information is received in the form of a code and stored in the form of a code, and when printing, the operations of printing command, bit expansion, and printing are repeated, so printing starts from the print start command. In contrast to the relatively long time required for printing to finish,9 in the present invention, as can be seen from Fig. 3,
Since the dot expansion for both fixed items and variable items is completed before the printing of the previous page is finished, and the actual printing dot pattern is completed, even if the pattern includes variable items, it is possible to print continuously using only the actual printing pattern. The printing speed can be further increased. The degree of reduction in printing time depends on the printing pattern, but it can be reduced to about 1/2 of the conventional method, improving the actual printing speed. It is also possible to shorten the time further.

なおビット展開した形で印字情報を保持するには、かな
りの記憶容量が必要であるが、すでに記憶素子が高密度
化、高速化され、この点は問題ではない、 例えば、1
ページ当たり、 (24ドツト×24ドツト/文字> 
xiooo字の印字を行う場合、0.576Mビットで
足りる。
Note that retaining printed information in bit-expanded form requires a considerable amount of storage capacity, but memory elements have already become denser and faster, so this is not a problem.For example, 1
Per page, (24 dots x 24 dots/characters)
When printing xiooo characters, 0.576 Mbit is sufficient.

所要の記憶容量は、ラインプリンタでは字数よりも総印
字面積で決まるが、たとえば104mm幅X256mm
のエリアを2面印字するだけの情報を2Mビット程度で
格納することができる。(この記憶容量は、ビット展開
された情報の印字処理と後続情報のビット展開・格納と
の並行処理の繰り返しのサイクルに利用することもでき
る。)また印字情報の受信から印字終了までの総所要時
間も同様に短縮することができる。
For line printers, the required storage capacity is determined by the total print area rather than the number of characters, but for example, 104 mm wide x 256 mm.
About 2M bits of information can be stored to print the area on two sides. (This storage capacity can also be used for repeated cycles of parallel processing of printing processing of bit-expanded information and bit-expansion/storage of subsequent information.) Also, the total time required from receiving print information to completing printing Time can be reduced as well.

(発明の効果) 以上概略説明したように9本発明により次のような効果
が得られる。
(Effects of the Invention) As outlined above, the following effects can be obtained by the present invention.

l)印字情報受信の際に、これがビット展開された形態
でRAMに格納されているので、印字指令があったとき
には、直ちにこれを実行できる。
l) When printing information is received, it is stored in the RAM in a bit-expanded form, so when a printing command is received, it can be executed immediately.

2)従って印字処理全体を即応化、高速化でき、たとえ
ばラベルに印字しこれをラベリングする物流用システム
や、生産管理ラインその他の各種の用途に適用して、そ
のシステム全体の効率化を達成することができる。
2) Therefore, the entire printing process can be made more immediate and faster, and can be applied to, for example, logistics systems that print and label labels, production control lines, and other various applications to achieve efficiency improvements in the entire system. be able to.

3)前頁の印字終了以前に、固定項目、可変項目ともド
ツト展開を終了させ、実印字ドツトパターンが完成して
いるため、可変項目を含むパターンでも、実印字パター
ンでも連続して印字することができる。(前頁印字終了
以前に次の準備が出来ているので、印字動作が停止する
ことはない。
3) Before the printing of the previous page is finished, dot development for both fixed items and variable items is completed and the actual printing dot pattern is completed, so both patterns including variable items and the actual printing pattern can be printed continuously. I can do it. (Since the next preparation is completed before the previous page print is finished, the printing operation does not stop.

即ち編集時間は、前頁以前の印字時間内に並行処理して
吸収されている。)
That is, the editing time is absorbed by parallel processing within the printing time of the previous page. )

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

第1図は1本発明のプリンタ装置の概略システム構成図
である。 第2図は第1図の一部(RAM)における情報記憶状態
を従来の場合の第4図と比較した図、第3図は本発明装
置の処理のフローと時間との関係図であり、従来の場合
の第5図と比較して示すものである。 (1)パーソナルコンピュータ (2)プリンタ装置  (3)パスライン(4)入出力
装置   (5)CPU (6)印字情報記憶用メモリ (7)制御プログラム記憶用メモリ (8)印字ヘッド (61)、  (65)入カバシフアメモリ領域(62
a)、  (62b)ピントパターン記憶類(66)固
定項目記憶領域 (67)可変項目記憶領域 (F)固定項目の印字情報 (Vl)、  (V2)、= (Vn)可変項目の印字
情報特許出願人  神崎製紙株式会社 時間D) 手続補正書 平成4年2月29日
FIG. 1 is a schematic system configuration diagram of a printer device according to the present invention. FIG. 2 is a diagram comparing the information storage state in a part (RAM) of FIG. 1 with FIG. 4 in the conventional case, and FIG. 3 is a diagram of the relationship between the processing flow and time of the device of the present invention, This is shown in comparison with FIG. 5 for the conventional case. (1) Personal computer (2) Printer device (3) Pass line (4) Input/output device (5) CPU (6) Memory for storing print information (7) Memory for storing control program (8) Print head (61), (65) Input cover buffer memory area (62
a), (62b) Focus pattern memory (66) Fixed item storage area (67) Variable item storage area (F) Fixed item printing information (Vl), (V2), = (Vn) Variable item printing information patent Applicant Kanzaki Paper Co., Ltd. Time D) Procedural amendment dated February 29, 1992

Claims (3)

【特許請求の範囲】[Claims] (1)外部装置から転送される情報はコード形態で受信
し、プリンタの記憶素子へは該印字情報を実際に印字す
るビットパターンに展開して格納しておき、外部装置か
ら印字指令を受けて印字を開始する方式のプリンタ装置
において、印字情報をビットパターンに展開するフレー
ムメモリを複数面有することを特徴とするプリンタ装置
(1) Information transferred from an external device is received in the form of a code, the print information is expanded and stored in the memory element of the printer into a bit pattern to be actually printed, and the print command is received from the external device. A printer device of a type that starts printing, characterized by having a plurality of frame memories for developing print information into bit patterns.
(2)請求項(1)のプリンタ装置において、(k+1
)面目のフレームのビットパターンをk面目のフレーム
に複写する機能を有することを特徴とするプリンタ装置
(2) In the printer device according to claim (1), (k+1
) A printer device characterized in that it has a function of copying a bit pattern of a frame of a side to a frame of a k-th side.
(3)請求項(1)のプリンタ装置において、外部装置
から転送される印字情報の中に、1ペーじ毎に印字内容
が変化する可変項目と全ページを通じて印字内容が変化
しない固定項目を識別する情報が含まれており、該情報
に基づいて可変項目だけをビットパターンに展開して、
対応するページのフレームに上書する機能を有すること
を特徴とするプリンタ装置。
(3) In the printer device according to claim (1), in the print information transferred from the external device, variable items whose print content changes for each page and fixed items whose print content does not change throughout all pages are identified. Based on this information, only variable items are expanded into bit patterns,
A printer device characterized by having a function of overwriting a frame of a corresponding page.
JP34043890A 1990-11-30 1990-11-30 Printer Pending JPH04208474A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP34043890A JPH04208474A (en) 1990-11-30 1990-11-30 Printer
DE19914139488 DE4139488A1 (en) 1990-11-30 1991-11-29 PRINTER
GB9125493A GB2251107B (en) 1990-11-30 1991-11-29 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34043890A JPH04208474A (en) 1990-11-30 1990-11-30 Printer

Publications (1)

Publication Number Publication Date
JPH04208474A true JPH04208474A (en) 1992-07-30

Family

ID=18336966

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34043890A Pending JPH04208474A (en) 1990-11-30 1990-11-30 Printer

Country Status (1)

Country Link
JP (1) JPH04208474A (en)

Similar Documents

Publication Publication Date Title
JPS6022234A (en) Form overlay type printer
US4707153A (en) Printer controller
JPH0441548B2 (en)
US5119471A (en) Control apparatus of high speed/high quality printer
JPH0577491A (en) Printer device
JPH04208474A (en) Printer
JPH01275159A (en) Printer
JPH04205622A (en) Printer device
JPS62126430A (en) Printer controller
GB2251107A (en) Printer
JPS61129969A (en) Printing control device
JPH04173271A (en) Printer
JP3143118B2 (en) Printer and print image pattern development method
JP2738174B2 (en) Format control method
JPS59223840A (en) Printer
JP2526712B2 (en) Program printout method in programming device
JPH03251469A (en) Control system of electrostatic recording printer
JPS63144056A (en) Image signal processor
JPH0325495A (en) Printer
JPH0421483A (en) Printing method in line printer
JPH04272870A (en) Printer
JPS61148065A (en) Control of input and output of recording information
JPS63242561A (en) Font reducing system
JPH0543511B2 (en)
JPH0542723A (en) Image printer control