JPS6094374A - Printer - Google Patents

Printer

Info

Publication number
JPS6094374A
JPS6094374A JP20355583A JP20355583A JPS6094374A JP S6094374 A JPS6094374 A JP S6094374A JP 20355583 A JP20355583 A JP 20355583A JP 20355583 A JP20355583 A JP 20355583A JP S6094374 A JPS6094374 A JP S6094374A
Authority
JP
Japan
Prior art keywords
paper
register
roller
sensor
state
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.)
Granted
Application number
JP20355583A
Other languages
Japanese (ja)
Other versions
JPH0448632B2 (en
Inventor
Hiroshi Okabe
岡部 啓
Shinichi Mori
眞一 森
Hiroshi Shinozuka
篠塚 寛
Haruyuki Nishikawa
西川 晴幸
Ichiro Kono
一郎 河野
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP20355583A priority Critical patent/JPS6094374A/en
Publication of JPS6094374A publication Critical patent/JPS6094374A/en
Publication of JPH0448632B2 publication Critical patent/JPH0448632B2/ja
Granted legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J13/00Devices or arrangements of selective printing mechanisms, e.g. ink-jet printers or thermal printers, specially adapted for supporting or handling copy material in short lengths, e.g. sheets
    • B41J13/10Sheet holders, retainers, movable guides, or stationary guides

Abstract

PURPOSE:To permit the operation of printing even on small-sized papers by a printer by using a system in which when the length of recording medium detected is smaller than the distance between the first and second rollers, the printing medium is moved to an insertion port by the first roller after being printed. CONSTITUTION:If the distance between the first and second rollers R1 and R2 is Da as step number of a step motor ST, the distance beteen the first roller R1 and the second sensor UPS is Dc, the distance between the roller R1 and a printing head H is Dd, and the distance between the first sensor MDS and the roller R1 is Db, when the tip of a paper is detected by the second sensor UPS, the step number Dc is written in a control circuit CNT and counted every step of feeding. When the rear end of the paper is detected by the first sensor MDS, the first roller R1 is reversely turned if the tip of the paper does not reach the second roller R2, and the paper 3 printed is discharged to front face from the insertion port.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は葉書のように用紙長が短かいものは印字抜挿入
口より排出され、B5用紙やロール紙のように長いもの
は印字抜挿入口とは反対の排出口より排出されるように
してその用紙長に応じて排出先が挿入口かそれとも排出
口か制御するようにした印字装置に係る。
[Detailed Description of the Invention] [Technical Field of the Invention] In the present invention, short sheets of paper such as postcards are ejected from the print slot, and long sheets such as B5 paper and roll paper are ejected from the print slot. The present invention relates to a printing device in which the paper is ejected from the ejection port opposite to the paper sheet, and the paper is ejected from the insertion port or the ejection port depending on the length of the paper.

〔従来技術と問題点〕[Prior art and problems]

データ処理装置の出力装置として種々のプリンタが使用
されている。第1図および第2図に熱転写プリンタの概
略を示す。
Various printers are used as output devices for data processing devices. FIGS. 1 and 2 schematically show a thermal transfer printer.

1は電源スィッチ、2は電源投入状態を示す表示ランプ
、3はアラーム状態を示す表示ランプ、4はオンライン
状態を示す表示ランプ、5はオンライン/オフラインの
切換を行うオンラインスイッチ、6はオフライン状態で
改頁を行うスイッチ、7はオフライン状態で改行を行う
スイッチ、8は印刷される用紙、9はリボンスプール交
換時等に開閉可能な上部カバー、10は用紙挿入口、1
1は用紙受け、12はサーマルヘッド、13はインクリ
ボン、14は巻取側のリボン受け、15は送り側のリボ
ン受けである。そして用紙挿入口10より挿入された用
紙上にサーマルヘッド12により所定の印刷が行われる
ことになる。
1 is a power switch, 2 is a display lamp that shows the power on state, 3 is a display lamp that shows an alarm state, 4 is a display lamp that shows an online state, 5 is an online switch that switches between online and offline, and 6 is an offline state. A switch for performing a page break, 7 a switch for starting a line in an offline state, 8 a paper to be printed on, 9 an upper cover that can be opened and closed when replacing the ribbon spool, 10 a paper insertion slot, 1
1 is a paper receiver, 12 is a thermal head, 13 is an ink ribbon, 14 is a ribbon receiver on the winding side, and 15 is a ribbon receiver on the feeding side. The thermal head 12 then performs predetermined printing on the paper inserted through the paper insertion slot 10.

このようなプリンタでは、第3図(α) 、 (b)に
示す如く、その前面の用紙の挿入側に挿入用ローラとし
て作用する第10−ラR1が設置され、またその後方の
用紙の排出側に排出用ローラとして作用する第20−ラ
R2が設置されている。そして第10−ラ、Rtの前後
に用紙の挿入を検出する第1センサのM D S(Mt
dia Ddgct 5enJor )と、その上方(
後方)に配置された第2センサのUPS(Upper 
5ensor )が配置され、このUPSの次にヘッド
Hが位置している。
In such a printer, as shown in FIGS. 3(a) and 3(b), a 10th roller R1 is installed on the paper insertion side on the front side and acts as an insertion roller, and the paper ejecting roller behind it is installed. A 20th roller R2 that acts as a discharge roller is installed on the side. Then, MDS (Mt
dia Ddgct 5enJor) and above it (
UPS (Upper
5 sensor) is arranged, and the head H is located next to this UPS.

印字させるとき、まず用紙Pを前面にセットする。この
とき用紙PAは′第1センサMDSを通過して第10−
ラ几1.R1間につきあたるが、第1センサMDSが用
紙PAを検出すると第10−ラ几1.R1と第20−ラ
R2,几2が図示省略したステップ・モータにより回転
させる。これにより用紙FAが第10−ラR1,R1間
を通るが、第2センサ UPSがこれを検出すると用紙端を検出したことになり
、印字位置制御が行われる。そして用紙が順送りされて
第20−ラR2により排出される。
When printing, first set the paper P on the front side. At this time, the paper PA passes through the 1st sensor MDS and the 10th-
La 1. However, when the first sensor MDS detects the paper PA, the 10th sensor MDS detects the paper PA. R1, the 20th wheel R2, and the box 2 are rotated by a step motor (not shown). As a result, the paper FA passes between the 10th line R1 and R1, but when the second sensor UPS detects this, it means that the paper edge has been detected, and printing position control is performed. Then, the sheets are sequentially fed and discharged by the 20th roller R2.

その後用紙FAの下端が第2センサUPSを通過すると
、それ以後は第20−ラ几2の作用のみにより用紙PA
が後方に排出されることになる。
After that, when the bottom edge of the paper FA passes the second sensor UPS, the paper PA is
will be ejected backwards.

ところでこれができるのは用紙P、 Aの長さが、第1
0−ラR1と第20−ラR2との間の距離Aより長い場
合だけであり、もしも用紙FAの長さがAより小さい場
合には、用紙P7)(第10−ラ几1と第20−ラ几2
との間にとり残されることになる。このため葉書や封筒
のような短い用紙には印字できなくなり、プリンタの能
力範囲が小さくなるという問題が存在した。
By the way, this can be done if the lengths of paper P and A are the first
Only when the distance between the 0th line R1 and the 20th line R2 is longer than A, and if the length of the paper FA is smaller than A, then the distance between the 0th line R1 and the 20th line R2 is -La 2
will be left behind. For this reason, there was a problem in that it became impossible to print on short sheets of paper such as postcards and envelopes, and the range of capabilities of the printer was reduced.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、上記の如き問題点を改善してローラ間
の距離よりも長い用紙は勿論のこと、短かい用紙でも印
刷終了後にローラ間に取り残されることなく印刷ずみの
用紙を送り出すことができるようにした印字装置を提供
することである。
The purpose of the present invention is to improve the above-mentioned problems and to make it possible to feed out printed sheets of paper not only for sheets that are longer than the distance between the rollers, but also for short sheets of paper without being left behind between the rollers after printing is completed. The object of the present invention is to provide a printing device that enables printing.

〔発明の構成〕[Structure of the invention]

この目的を達成するために本発明の印字装置では、記録
媒体上にデータを印字する印字手段と、記録媒体の挿入
口から印字手段へ記録媒体を移送する第1のローラと、
記録媒体を印字手段から排出口へ移送する第2のローラ
と、該印字手段へ供給される記録媒体の移送方向の長さ
を検知する検知手段と、検知された長さが第1のローラ
手段と第2のローラ手段との間隔より小さい場合、該記
録媒体にデータを印字後、記録媒体を第1のローラ手段
により、挿入口に移送させる制御手段とを備えることを
特徴とする。
In order to achieve this object, the printing device of the present invention includes: a printing device that prints data on a recording medium; a first roller that transports the recording medium from the recording medium insertion slot to the printing device;
a second roller for transporting the recording medium from the printing means to the discharge port; a detection means for detecting the length of the recording medium in the transport direction of the recording medium supplied to the printing means; and a first roller means for detecting the length of the recording medium in the transport direction. and a control means for transporting the recording medium to the insertion slot by the first roller means after printing data on the recording medium when the distance is smaller than the distance between the first roller means and the second roller means.

〔発明の実施例〕[Embodiments of the invention]

本発明を一実施例にもとづき詳述するに先立ちその概略
を説明する。
Before describing the present invention in detail based on one embodiment, an outline thereof will be explained.

本発明では印刷する用紙長がローラ間隔よりも長い場合
には従来通り用紙挿入側より反対側に印刷ずみの用紙を
送り出す。しかし、用紙長がこのローラ間隔よりも短か
い場合には印刷後に用紙挿入側にこれを送出するように
制御する。このため第1センサのMDSで用紙後端を検
出したとき′第20−ラR2に用紙の先端が到達してい
ないときに、第10−ラR1を逆転させ、印刷ずみ用紙
を用紙挿入口より送り出すようにしたものである。
In the present invention, when the length of the paper to be printed is longer than the roller interval, the printed paper is sent out from the paper insertion side to the opposite side as in the conventional method. However, if the paper length is shorter than this roller interval, the paper is controlled to be sent to the paper insertion side after printing. Therefore, when the trailing edge of the paper is detected by the MDS of the first sensor, and the leading edge of the paper has not reached the 20th-ra R2, the 10th-ra R1 is reversed and the printed paper is inserted into the paper insertion slot. It was designed to be sent out.

本発明を実施例にもとづき詳述するに先立ちその概略を
第4図および第5図にもとづき説明する。
Before describing the present invention in detail based on embodiments, its outline will be explained based on FIGS. 4 and 5.

第5図に示す如く、第10−ラR1と第20−ラR2の
距離を、第4図のステップモータSTのステップ数にし
てDCとし、第10−ラR1から第2センサUP8まで
の距離をステップモータSTのステップ数にしてDCと
し、第10−ラ几1から印字ヘッドHまでの距離および
第1センサMDSから第10−ラR17での距離をそれ
ぞれステップ数にしてDdおよびDCとする。
As shown in FIG. 5, the distance between the 10th RA R1 and the 20th RA R2 is the number of steps of the step motor ST in FIG. Let DC be the number of steps of the step motor ST, and let Dd and DC be the distance from the 10th line 1 to the print head H and the distance from the first sensor MDS to the 10th line R17, respectively. .

用紙の先端が第2センサUPSで検出されたとき、レジ
スタにステップ数Dcを記入し、用紙を吸引するときそ
のステップモータのステップ毎にこのDCの記入された
レジスタの値に+1する。
When the leading edge of the paper is detected by the second sensor UPS, the number of steps Dc is written in the register, and the value of DC written in the register is incremented by 1 for each step of the step motor when the paper is sucked.

そして用紙が吸引されて第1センサMDSが用紙端を検
出したとき、この用紙の先端が第20−ラR2にかかつ
ていなければ第10−ラ几1を逆回転して該用紙を挿入
口より前面に排出するものであるにの場合、第1センサ
MDSが用紙端を検出したときレジスタの値がDcにな
っていなければ用紙の先端が第20−ラR2に未到達と
判断し制御回路CNTが第10−ラR1をステップモー
タ8Tにより逆回転させ印字機構Pで印字ずみの用紙を
前面の挿入口側より排出する。しかし第1センサMDS
が用紙端を検出したとき、用紙が第20−ラゝ’R2上
に位置していればそのまま用紙を通常の方向′に送り、
印字機構Pで印字ずみの用紙を後方の排出口より送り出
すことになる。
When the paper is sucked and the first sensor MDS detects the end of the paper, if the leading edge of the paper does not touch the 20th rack R2, the 10th rack 1 is reversely rotated and the paper is inserted into the insertion slot. If the paper is to be ejected closer to the front, if the register value is not Dc when the first sensor MDS detects the edge of the paper, the control circuit determines that the leading edge of the paper has not reached the 20th-ra R2. The CNT reversely rotates the 10th roller R1 with the step motor 8T, and the paper on which printing has been printed by the printing mechanism P is ejected from the front insertion slot side. However, the first sensor MDS
When the paper edge is detected, if the paper is located on the 20th line 'R2', the paper is sent in the normal direction 'R2'.
The paper printed by the printing mechanism P is sent out from the rear discharge port.

本発明の一実施例構成の詳細を第6図に示す実施例構成
により、第7図における状態遷移図と第8図乃至第15
図のフローチャートにもとづき、必要に応じて他図を参
照しつつ説明する。
The details of the configuration of an embodiment of the present invention are shown in FIG. 6, and the state transition diagram in FIG.
The description will be made based on the flowchart in the figure and with reference to other figures as necessary.

第5図において21はCPUでありこの熱転写プリシタ
の総括的制御を行うのみならず、各種検出器1の出力に
応じてそれに適合する制御を行ったり、□各種演算を行
う制御部である。2?はROMであってCPU’21を
動作するのに必要なプログラムやキャラクタバタン等が
格納されているもの、このROM22にはテーブル22
′が設けられ、第5図に示すステップ数Da 、 Dc
 、 Ddや後述するマージン(ステップ数)Mc、M
c等が記入されている。23は入力ポートであり印字デ
ータやストローブ信号が入力されるもの、24はストロ
ーブ検出器であってオンライン状態において印字データ
が送出されたときストローブ信号を検出して検出信号を
CPU21に出力し、CPU21は゛このストローブ検
出信号が出力されたときデータが入力ポートにセットさ
れていることを認識してこのデータを読取る。25は出
力ポートであって、動作中のためにデータが受信できな
いことを示すビジー(BUSY )信号を出力したり、
オンライン状態にあることを示すセレク) (5LCT
)信号を出力し、またオンライン状態を示す表示ランプ
4を点灯したり、先に受信したデータが印字されたとき
ストローブ検出器24から出力されていたストローブ検
出信号をリセットするリセット信号をr出力する。26
は入力バッファであって、入力データを一時保持するも
のであり、RAMにより構成される。27は出力ポート
であってアラーム状態を示す表示ランプ3のドライバで
あり、例えばリボンエンドをアラーム表示する。
In FIG. 5, reference numeral 21 is a CPU, which is a control section that not only performs overall control of this thermal transfer precipitator, but also performs appropriate control according to the outputs of various detectors 1, and performs various calculations. 2? is a ROM that stores programs, character buttons, etc. necessary for operating the CPU'21, and this ROM22 contains a table 22.
' are provided, and the step numbers Da and Dc shown in FIG.
, Dd and the margin (number of steps) Mc, M which will be described later.
c etc. are entered. 23 is an input port into which print data and strobe signals are input; 24 is a strobe detector which detects a strobe signal when print data is sent out in an online state and outputs a detection signal to the CPU 21; When this strobe detection signal is output, it recognizes that data is set in the input port and reads this data. 25 is an output port which outputs a BUSY signal indicating that data cannot be received because it is in operation;
Select to indicate online status) (5LCT
) signal, and also lights up the display lamp 4 indicating the online status, and outputs a reset signal r that resets the strobe detection signal that was output from the strobe detector 24 when the previously received data was printed. . 26
is an input buffer, which temporarily holds input data, and is constituted by RAM. Reference numeral 27 is an output port and is a driver for the display lamp 3 that indicates an alarm state, for example, displays an alarm at the ribbon end.

28はレジスタ部であり、後述するレジスタA。28 is a register section, which is a register A to be described later.

レジスタB、レジスタS等が設けられている。29は入
力ポートであってプリンタ側のメカニズムにおける各種
センサの入力部として機能し、サーマルヘッドが左端位
置にあることを検出するスペース左端検出器31、用紙
がどこに存在するかを示す第1センサMD8’、第2セ
ンサUP8等で構成される用紙検出器32、リボンエン
ド状態つまりリボンが全部巻取られたかどうかを検出す
るリボン終了検出器33等の出力信号が入力される。
A register B, a register S, etc. are provided. Reference numeral 29 denotes an input port which functions as an input part for various sensors in the mechanism on the printer side, including a space left edge detector 31 that detects that the thermal head is at the left edge position, and a first sensor MD8 that indicates where the paper is present. ', a paper detector 32 constituted by a second sensor UP8, etc., and output signals from a ribbon end detector 33, which detects the ribbon end state, that is, whether or not the ribbon is completely wound, are input.

30は出力ポートであって、サーマルヘッド12を印字
のときには用紙の近くに位置させ印字以外のときには用
紙より離れておくようにこれを上下動するヘッド・アプ
ローチ・モータ38を制御するドライバ34、サーマル
ヘッド12を横方向に移動させるスペースモータ39を
制御するドライバ35、両紙を1行分送る改行モータ4
0を制御するドライバ36、サーマルヘッド12に印字
データを送出するドライバ37等をそれぞれ制御するた
めの出力信号を送出するものである。
Reference numeral 30 denotes an output port, and a driver 34 controls a head approach motor 38 that moves the thermal head 12 up and down so that it is positioned near the paper during printing and away from the paper when not printing. A driver 35 that controls a space motor 39 that moves the head 12 laterally, and a line feed motor 4 that feeds both sheets of paper by one line.
This output signal is used to control the driver 36 that controls the print data 0, the driver 37 that sends print data to the thermal head 12, and the like.

−次に本発明の動作を、第7図の状態遷移図により説明
する。
- Next, the operation of the present invention will be explained using the state transition diagram shown in FIG.

本発明では、プリンタに用紙が全くセットされていない
「紙なし」状態がリセットであり、これがスタート点と
なる。
In the present invention, the "out of paper" state in which no paper is set in the printer is the reset, and this is the starting point.

〔イ〕「紙なし」状態において用紙が挿入されないとき
は、第8図に示す如く、第1センサMDSは「0」状態
にありプリンタは何もしないが、オペレータにより用紙
が挿入されたとき第1センサMDSが「1」を出力し、
レジスタ28のレジスタAに第10−ラR1から第2セ
ンサUP8までの距離Dcと適当なマージンMcを加え
たもの(Dc + Mc )(ステップ数)を記入する
。ここでMcはスリップ等を考慮して適当に決める。そ
してこのMDSが「1」を出力したことによりその後は
「吸入予定」状態へ移動する。もし第10−ラR1に用
紙が正しくかかつていたらステップモータ40が(A=
D、+MC)ステップを前進させる間に第2センサUP
Sが「1」を出力することになる。
[B] When no paper is inserted in the "out of paper" state, the first sensor MDS is in the "0" state and the printer does nothing, but when paper is inserted by the operator, the first sensor MDS is in the "0" state as shown in FIG. 1 sensor MDS outputs "1",
In register A of the register 28, the distance Dc from the 10th-ra R1 to the second sensor UP8 plus an appropriate margin Mc (Dc + Mc) (number of steps) is entered. Here, Mc is appropriately determined in consideration of slippage and the like. Since this MDS outputs "1", the state then moves to the "scheduled inhalation" state. If the paper is correctly placed on the 10th line R1, the step motor 40 (A=
D, +MC) 2nd sensor UP while advancing the step
S will output "1".

〔口〕「吸入予定」状態においては改行モータ40を構
成しているステップモータSTが1ステップ動作する度
にレジスタAのデータを−1する。第7図の状態遷移図
においてrsFJはステップモータを1ステップ動作す
ることを示し、A:=A−1はレジスタAに記入された
データを−1することを示す。
[Explanation] In the "inhalation schedule" state, the data in register A is decremented by 1 each time the step motor ST forming the line feed motor 40 operates one step. In the state transition diagram of FIG. 7, rsFJ indicates that the step motor is operated one step, and A:=A-1 indicates that the data written in register A is incremented by -1.

したがって、第9図に示す如く、ステップモータの動作
により用紙を吸入する。このとき、第8図に示す如く、
レジスタAには最初r Dc、 + McJが記入され
ておりレジスタAは零ではなくまた用紙が第2センサU
PSまで吸入されていないので第2センサUPSは「1
」を出力せず、したがってステップモータは1ステップ
前進し、その度毎にレジスタAのデータを−1する。
Therefore, as shown in FIG. 9, the paper is sucked in by the operation of the step motor. At this time, as shown in Figure 8,
At first, r Dc, + McJ is written in register A, and register A is not zero, and the paper is written in the second sensor U.
The second sensor UPS is “1” because the inhalation has not reached PS.
Therefore, the step motor advances by one step, and the data in register A is decremented by 1 each time.

(1) このようにして第2センサUPSが「1」を出
力しないうちにレジスタAのデータが零になれば、CP
U21は用紙の吸入に失敗したものと判断し、レジスタ
部28のレジスタBにテーブル22′より読出し在ステ
ップ数Dc 十Mc、つまりレジスタAが零になるまで
の吸入ステップ数を記入し、第10−ラR1を逆回転さ
せて用紙の前面排出を行う。
(1) In this way, if the data in register A becomes zero before the second sensor UPS outputs "1", CP
U21 judges that the paper suction has failed, reads it from the table 22' in register B of the register section 28, writes the number of suction steps Dc + Mc, that is, the number of suction steps until register A becomes zero, and writes the number of suction steps until register A becomes zero. - Rotate the roller R1 in the opposite direction to eject the paper from the front.

このときステップモータをステップバック回転させ、1
ステツプバツクする度にレジスタBのデータを−1する
。そしてこのレジスタBが零になるまでステップバック
し、零になったら停止してローラアウト状態になる。こ
のさき用紙がまだ第1センサMDSにかかつていること
があり、オペレータにより用紙が取出されてMDSが零
を出力するまでは何もせず、零を出力したら最初の「紙
なし」状態に移動することになる。なお、第7図で前面
排出空動作の「SB」は、ステップモータを1ステツプ
バツクさせる処理を示す。
At this time, the step motor is rotated step back and 1
Each time you step back, the data in register B is decremented by 1. Then, it steps back until this register B becomes zero, and when it becomes zero, it stops and enters the roller-out state. This paper may still be attached to the first sensor MDS, and nothing will be done until the paper is removed by the operator and the MDS outputs zero, and once it outputs zero, it will move to the first "no paper" state. It turns out. In FIG. 7, "SB" for the front discharge idle operation indicates a process in which the step motor is moved back by one step.

(2)通常の場合は用紙は吸入され第2センサUPSは
「1」を出力する。これにより、CPU21はレジスタ
部28の“レジスタBに第10−ラR1から第2センサ
UPSまでの距離DCを記入し、またレジスタSに零を
記入する。そして〔ハ〕の「吸入中」状態に移行する。
(2) In the normal case, the paper is sucked in and the second sensor UPS outputs "1". As a result, the CPU 21 writes the distance DC from the 10th-ra R1 to the second sensor UPS in the register B of the register section 28, and also writes 0 in the register S. to move to.

〔ハ〕「吸入中」状態は第10−ラR1のみに用紙がか
かつている状態であり、ステップモータSTは1ステッ
プ前進(SF)L、この度毎にレジスタBのステップ数
を+1する。「吸入中」状態の制御はM2O図に示すよ
うに行われる。
[C] The "in suction" state is a state in which the paper is placed only on the 10th roller R1, and the step motor ST advances one step (SF) L, and each time the step number in the register B is increased by 1. Control of the "inhaling" state is performed as shown in the M2O diagram.

(1)「吸入中状態」において、第1センサMDS上に
用紙が存在しなくなれば第1センサMDSは零を出力す
るが、このさきまだ用紙の上端は第20−ラ几2に達し
ていないので、この用紙を前面排出しなければならない
。このとき用紙をバックする量はそれまでの吸収量(レ
ジスタBに記入されている)に適当なマージンMcを加
算したステップ数としてこれをレジスタBに記入する。
(1) In the "inhaling state", if the paper no longer exists on the first sensor MDS, the first sensor MDS will output zero, but at this point the top of the paper has not yet reached the 20th level 2 Therefore, this paper must be ejected from the front. At this time, the amount of paper backing is recorded in register B as the number of steps obtained by adding an appropriate margin Mc to the absorption amount up to that point (written in register B).

そして前面排出中状態に移行する。Then, the state shifts to the front ejecting state.

(2)シかし第1センサMDSが「1」を出力した状態
でレジスタBの値が第10−ラ几1と第20−ラR2間
の距離Dαになれば、用紙の上端が第20−ラ几2に達
したので、後述する「紙連続中、」状態に移動を名。
(2) If the value of register B becomes the distance Dα between the 10th line 1 and the 20th line R2 with the first sensor MDS outputting "1", then the top edge of the paper will be at the 20th line. -Since it has reached 2, move to the "Continuing paper" state, which will be described later.

(3)第1センサMDSが零を出力せず、レジスタBの
値がDcにもならh(:>が、このレジスタBの値が第
10−ラ几1と印字ヘッドHとの間の距離Ddより大に
なれば用紙が印字ヘッドHの位置まで到達したことを示
し、このときレジスタSのデータが零なら印字可能なの
で第10−ラR1の駆動をストップして所定の印字事項
があればこれを印字する。そしてレジスタSに印字間隔
距離(ステップ数)、例えば5=Soを記入する。
(3) If the first sensor MDS does not output zero and the value of register B is also Dc, then h(:> is the distance between If the value is greater than Dd, it indicates that the paper has reached the position of the print head H. At this time, if the data in the register S is zero, printing is possible, so the drive of the 10th-ra R1 is stopped and if a predetermined print item is found. This is printed.Then, the printing interval distance (number of steps), for example 5=So, is written in the register S.

(4)その他の場合はステップモータを1ステップ前進
させ、レジスタBを+1する。
(4) In other cases, move the step motor forward by one step and add 1 to register B.

(5) もしB >DdならばレジスタSに記入されて
いる数を−1する。B≦Ddのときは印字ヘッドHの位
置に用紙が存在しないのでレジスタSの送り量は変化さ
せない。。
(5) If B > Dd, subtract 1 from the number written in register S. When B≦Dd, there is no paper at the position of the print head H, so the feed amount of the register S is not changed. .

〔二〕「紙連続中」状態は用紙が第1センサMDS。[2] In the "Paper continuous" state, the paper is the first sensor MDS.

第10−ラR1及び第20−ラR2に存在している場合
であり、ステップモータを1ステップ前進させる毎にレ
ジスタSの数値を−1する。そしてこのレジスタSの数
値が零になったときに印字するものであり、第11図に
示す如き制御が行われる。
This is the case where the register S exists in the 10th line R1 and the 20th line R2, and the value in the register S is decremented by 1 each time the step motor is advanced by one step. Printing is performed when the value in this register S becomes zero, and control as shown in FIG. 11 is performed.

(1)第2センサUPSが零でなければ用紙が連続中で
あり次の(2)のように印字が行われる。しかし第2セ
ンサUPSが零であれば用紙の下端が検出されたことで
あり、CPU21は残りの印字可能ステップ数Dd、−
DcをレジスタAにセットし、また用紙が完全に排出す
るまでのステップ数(D。
(1) If the second sensor UPS is not zero, the paper is being printed continuously and printing is performed as shown in (2) below. However, if the second sensor UPS is zero, it means that the bottom edge of the paper has been detected, and the CPU 21 determines the remaining number of printable steps Dd, -
Set Dc in register A and set the number of steps (D) until the paper is completely ejected.

−Dc−1−Mα)をレジスタBにセットして後述する
「排出中」状態に移動する。なおここでMαは第10−
ラR1と第20−ラ几2間の距離に対する適当なマージ
ンである。
-Dc-1-M[alpha]) is set in register B, and the state moves to the "discharging" state, which will be described later. Note that here Mα is the 10th-
This is an appropriate margin for the distance between R1 and 20th R2.

(2)シかし第2センサUPSが「1」を出力している
とき、レジスタSが零になれば規定の改行量だけ用紙が
進んだことを示すので、印字事項があれば用紙の進行が
−たんストップされて印字が行われ、レジスタSに再び
印字間隔である改行距離ステップ数S。がCPU21に
より記入される。
(2) When the second sensor UPS is outputting "1", if the register S becomes zero, it indicates that the paper has advanced by the specified line feed amount, so if there is a print item, the paper progresses. is immediately stopped and printing is performed, and the line feed distance step number S, which is the printing interval, is again stored in the register S. is entered by the CPU 21.

(3) レジスタSが零でなければ、第7図のその他の
場合に相当し、ステップモータを1ステツプ前進させ、
レジスタSのデータを−1する。
(3) If the register S is not zero, this corresponds to the other cases in Fig. 7, and the step motor is advanced by one step.
Decrement the data in register S by 1.

〔ホ〕「排出中」状態は用紙が第10−ラR1よりなく
なり第20−ラR2によって移動されている状態であり
、第12図に示す制御が行われる。
[E] The "discharging" state is a state in which the paper runs out from the 10th line R1 and is being moved by the 20th line R2, and the control shown in FIG. 12 is performed.

(1) 前記〔二〕の(1)でレジスタBに記入したデ
ータが零になれば用紙が第20−ラ几2より離れたもの
と判断し、前記した「紙なし」状態になる。
(1) If the data entered in register B in (1) of [2] above becomes zero, it is determined that the paper has moved away from the 20th rack 2, and the above-mentioned "no paper" state occurs.

(2)シかしレジスタBが零ではなく、レジスタSが苓
、レジスタ人か零でなければ用紙はまた印字ヘッドの下
方に存在し、しかも規定の改行量だけ用紙が進んでいる
ことを示すので、用紙の進行は−たんストップし、印字
事項があれば印字を行ない、レジスタSにS。をセット
する。
(2) If register B is not zero and register S is not zero, it indicates that the paper is still below the print head and has advanced by the specified line feed amount. Therefore, the advance of the paper is immediately stopped, and if there are any items to be printed, they are printed, and S is placed in the register S. Set.

(3) レジスタSが零でなく、しかもレジスタAが零
でなければ印字位置まで用紙が進行していないので、ス
テップモータを1ステツプ前進させ、用紙排出までの残
りステップ数が記入されて6AるレジスタBを−1する
(3) If register S is not zero and register A is not zero, the paper has not progressed to the printing position, so the step motor is advanced by one step, and the number of steps remaining until the paper is ejected is written in 6A. Decrement register B by 1.

(4) そしてレジスタAが零でない、印字可能状態な
らばレジスタSを−1をし、残りの印字可能ステップ数
を示すレジスタAの数値をこれまた−1する。
(4) If register A is not zero and is in a printable state, register S is decremented by 1, and the value in register A indicating the number of remaining printable steps is also decremented by 1.

〔へ〕「前面排出中」状態は、用紙を前面の挿入口より
逆に排出するものであって、前記0口〕の(1)。
[F] The "front side ejecting" state is when the paper is ejected from the front insertion slot in the opposite direction, and is (1) of the above-mentioned 0 slot.

〔ハ〕の(1)等の場合に相当し、第13図に示す制御
が杓われる。
This corresponds to cases such as (1) in [c], and the control shown in FIG. 13 is used.

(1) このときレジスタBには用紙を吸入したステッ
プ数十マージン量が、初めに記入されているのでこのス
テップ数だけステップモータを逆転させ1ステツプ逆転
する毎にレジスタBを−1する。
(1) At this time, since the margin amount of tens of steps when the paper is sucked is initially written in register B, the step motor is reversed by this number of steps, and register B is decremented by 1 every time the step motor is reversed by one step.

そしてレジスタBが零になれば、吸入量+マージン分た
けバックし終ったこきになり、用紙は第10−ラR1よ
り離れる筈であるので、後述する「ローラーアウト」状
態になる。
When the register B becomes zero, the sheet has been backed up by the suction amount + the margin, and the paper should have moved away from the 10th line R1, resulting in a "roller out" state, which will be described later.

(2)その他の場合はレジスタBが零ではないのでステ
ップモータを1ステツプバツクさせ、レジスタBの数値
を−1することになる。
(2) In other cases, since register B is not zero, the step motor is caused to step back by one step, and the value in register B is decremented by one.

〔ト〕「ローラーアウト」状態は用紙が第10−ラー几
1より完全に離れた場合である。しかし第1センサMD
Sの位置は第10−ラR1の手前側、つまり外側にあり
、用紙が第1センサMDSで検出された状態を示すMD
S=rlJの場合があるので、第14図に示す如き動作
が行われる。
[G] The "roller out" state is when the paper is completely separated from the 10th roller box 1. However, the first sensor MD
The position of S is on the front side of the 10th-ra R1, that is, on the outside, and the position of MD indicates that the paper is detected by the first sensor MDS.
Since there is a case where S=rlJ, the operation shown in FIG. 14 is performed.

(1)第1センサMDS=r1..1の場合には、用紙
が渠1センサMDSのそばにあるものの第10−ラR1
よりミ外れているので、オペレータにより用紙が取り出
されるまで何もしない。
(1) First sensor MDS=r1. .. 1, if the paper is near the drain 1 sensor MDS, the 10th-ra R1
Since it is out of the way, it does nothing until the paper is removed by the operator.

(2) もし第1センサMl)Sが零出力になれば、用
紙は第1センサMDSよりも外にあるか、オペレータに
より用紙が取り出された状態であり、前記〔イ〕の「紙
なし」状態に移動する。
(2) If the first sensor Ml)S becomes zero output, the paper is outside the first sensor MDS, or the paper has been taken out by the operator, and the above-mentioned "no paper" is detected. Move to state.

なおこのプリンタで印字を行うのは前記〔ハ〕。Note that this printer prints as described in [c] above.

〔二〕、〔ホ〕における「ストップ1」、「ストップ2
」、「ストップ3」の状態の場合である。
“Stop 1” and “Stop 2” in [2] and [E]
” and “Stop 3” state.

これらの場合には、第15図(α) 、 (A) 、 
CC)に示す如き制御が行われることになる。この場合
の制御はレジスタSの数値が零でない状態を除き共通で
あるので、第15図(α)の「ストップ1」の状態を代
表例として説明する。
In these cases, Fig. 15 (α), (A),
Control as shown in CC) will be performed. Since the control in this case is the same except for the state where the value of the register S is not zero, the "stop 1" state in FIG. 15 (α) will be explained as a representative example.

(1)用紙がストップしているときは印字位置に用紙が
存在しているので印字可能状態であり、印字事項があれ
ば印字する。
(1) When the paper is stopped, the paper is present at the printing position, so it is ready for printing, and if there is something to be printed, it will be printed.

(2) 次に何ステップ送るかをレジスタSをこ入力す
る。このレジスタSの入力は改行命令などにより定まる
が、例えばテーブル22′に改行ステップ数80をあら
かじめ記入しておき、これを読出してもよい。
(2) Input in register S the number of steps to be sent next. The input to this register S is determined by a line feed command or the like, but for example, the number of line feed steps, 80, may be written in advance in the table 22' and then read out.

(3) このレジスタSにセットされた数値が零になら
ないときは、「吸入中」状態に戻る。
(3) If the value set in this register S does not become zero, the state returns to the "inhaling" state.

なお上記「ストップ2」、「ストップ3」ではこのレジ
スタSにセットされた数値が零でないときはそれぞれ「
紙連続中」、「排出中」状態に戻ることになる。
In addition, in the above "Stop 2" and "Stop 3", if the value set in this register S is not zero, "Stop 2" and "Stop 3" are respectively "
The state will return to "Continuing paper" or "Discharging".

このようにして用紙の状態に応じて適宜印字を行ったり
、印字ずみの用紙を後方の排出口より排出したり、前面
の用紙挿入口より排出したり、プリンタとしてその用紙
に応じた最適の動作を行うことができる。
In this way, the printer can perform printing as appropriate depending on the state of the paper, eject printed paper from the rear ejection port, eject it from the front paper insertion port, and perform the optimal operation according to the paper. It can be performed.

次にスペースモータ39を制御する出力ポート30及び
ドライバ35を詳述する。
Next, the output port 30 and driver 35 that control the space motor 39 will be described in detail.

第16図にスペースモータとして4相ステツプモータを
使用した場合の出力ポート3及びドライバ35の具体回
路図を示す。90は回転子、91〜94は固定子コイル
である。固定子コイル91〜94に順番に電流を流す(
励磁する)ことによって、回転子90が回転する。尚、
A−Dはモータの相を示す。
FIG. 16 shows a specific circuit diagram of the output port 3 and driver 35 when a four-phase step motor is used as the space motor. 90 is a rotor, and 91 to 94 are stator coils. Current is passed through the stator coils 91 to 94 in order (
(excitation), the rotor 90 rotates. still,
A-D indicates the phases of the motor.

第17図に(才上記ステップモータの各固定子コイル9
1〜94に対する即ち、相A、B、C,Dに与える励磁
信号パターンと回転子90の回転方向を示した。第17
図において、現在位置をOステラフ0目とすると、この
ききのA−D相のコイル91〜94の励磁信号パターン
は人相から順に(1,0,0,0)となっている。ただ
し”1″は励磁することを示す。さて現在位置より1ス
テツプ正方向に回転させるには励磁パターンを(1゜0
.0.0 )から(1,1,0,0)に変化させればよ
い。同様に逆方向に1ステップ回転させるには励磁パタ
ーンを(1,0,0,0)から(1,0;O,,1)に
変化させればよい。
In Fig. 17, each stator coil 9 of the above step motor is shown.
1 to 94, that is, the excitation signal patterns given to phases A, B, C, and D, and the rotation direction of the rotor 90 are shown. 17th
In the figure, assuming that the current position is the 0th stelaph, the excitation signal patterns of the A-D phase coils 91 to 94 are (1, 0, 0, 0) in order from the human phase. However, "1" indicates that it is excited. Now, in order to rotate one step in the positive direction from the current position, change the excitation pattern to (1°0
.. 0.0) to (1, 1, 0, 0). Similarly, to rotate one step in the opposite direction, the excitation pattern may be changed from (1, 0, 0, 0) to (1, 0; O,, 1).

ここで第17図によると励磁パターンの組み合わせは8
種類しかない。これを表に示すと第18図の如くとなり
、第16図に示す励磁パターンROM1’03に第18
図に示す励磁パターンが格納されている。即ちステップ
モータを正方向に回転させるには励磁パターンROM1
03のアドレスを0,1.・・・、7,0.・・・の1
@で読出し、その出力によってモータの各コイルを励磁
すればよい。
According to Fig. 17, there are 8 combinations of excitation patterns.
There are only types. This is shown in a table as shown in FIG. 18, and the excitation pattern ROM1'03 shown in FIG.
The excitation pattern shown in the figure is stored. That is, to rotate the step motor in the forward direction, excitation pattern ROM1
Set the address of 03 to 0, 1 . ..., 7,0. 1 of...
All you have to do is read it with @ and use the output to excite each coil of the motor.

逆に0.7,6.・・・、0,7.・・・の順に読出せ
ば逆方向に回転する。
On the contrary, 0.7, 6. ..., 0,7. If they are read out in this order, they will rotate in the opposite direction.

第16図において、100は励磁パターン発生部であり
、第6図において図示したCPU21より送られてくる
1ステップ正回転、逆回転命令を受けてステップモータ
ー駆動部104に励磁パターンを与えるものである。
In FIG. 16, reference numeral 100 is an excitation pattern generating section, which provides an excitation pattern to the step motor drive section 104 in response to a one-step forward rotation and reverse rotation instruction sent from the CPU 21 shown in FIG. .

101は内部出力ボートである。CPUより正回転、逆
回転用のデータを受け取ると出力ポート101はアップ
ダウンカウンタ102に対してカウントアツプパルスP
、やカウントダウンパルスP、を与える。
101 is an internal output port. When data for forward rotation and reverse rotation is received from the CPU, the output port 101 outputs a count up pulse P to the up/down counter 102.
, and a countdown pulse P.

アップダウンカウンタ102は2進3ビ゛ントの出力0
1〜O2を出力し、これは励磁ノfターンROM103
のアドレス信号入力端子A。〜A。
The up/down counter 102 has a binary 3-bit output of 0.
Outputs 1 to O2, which is the excitation no f turn ROM103.
address signal input terminal A. ~A.

へ入力される。アップダウンカウンタ102のカウント
アツプ入力端子C,U、 P /には出力ポート101
よりカウントアツプパルス出力端子Plが、入力端子C
D0WNにはカウントアツプパルス出力端子P。
is input to. The count up input terminals C, U, P/ of the up/down counter 102 are connected to the output port 101.
The count up pulse output terminal Pl is connected to the input terminal C.
D0WN is a count up pulse output terminal P.

がそれぞれ接続されており、端子CUP’にノ句レスが
入力されるとアップダウンカウンタ102の出力0゜〜
02の示す数値は+1増え、端子CD0WN′1こパル
スが入力されるとアップダウンカウンタ102の出力0
゜〜02の示す数値は1減る。アップダウンカウンタ1
02の出力0゜〜0.は3ビツトなので10進値で0か
ら7まで表現できるが、出力が7(即ち”111”)の
時に端子CUPにパルスが入力されると出力は0(即ち
“000”)に戻り、出力がQ (−000°)の時に
端子CD0WNにパルスが入力されると出力は7(即ち
”111−)になる。
are connected to each other, and when a no-phrase response is input to the terminal CUP', the output of the up/down counter 102 is 0°~
The value indicated by 02 increases by +1, and when this pulse is input to the terminal CD0WN'1, the output of the up/down counter 102 becomes 0.
The numerical value indicated by °~02 is decreased by 1. up/down counter 1
02 output 0°~0. is 3 bits, so it can be expressed as a decimal value from 0 to 7, but if a pulse is input to terminal CUP when the output is 7 (i.e. "111"), the output returns to 0 (i.e. "000") and the output becomes When a pulse is input to terminal CD0WN at Q (-000°), the output becomes 7 (ie, "111-").

励磁パターン几0M103のアドレス入力端子A0〜A
、は3ビツト、出力端子QA −QDは4ビツトある。
Address input terminals A0 to A of excitation pattern 0M103
, have 3 bits, and output terminals QA-QD have 4 bits.

各アドレスθ〜7(000〜111)に対する出カバタ
ーンは、第18図に示した内容が各出力端子QA −Q
Dに出力される。この出力端子QA −QDの出力信号
パターンはステップモーターの各相A−Dの励磁パター
ンを示しており、ステップモーター駆動部104に入力
される。
The output pattern for each address θ~7 (000~111) is as shown in Figure 18 for each output terminal QA-Q.
Output to D. The output signal pattern of the output terminals QA to QD indicates the excitation pattern of each phase A to D of the step motor, and is input to the step motor drive section 104.

ステップモーター駆動部104は、励磁パターン発生部
100からの励磁パターンを受け、ステップモーターの
各固定子コイル91〜94に電流を流す。R1−R4は
ベース電流制限抵抗、T。
The step motor drive section 104 receives the excitation pattern from the excitation pattern generation section 100 and causes current to flow through each stator coil 91 to 94 of the step motor. R1-R4 are base current limiting resistors, T.

〜T、は固定子コイル駆動用トランジスタ、几。~T is a stator coil driving transistor, 几.

〜R,は電流制限用抵抗、D、−D、はタイオード、D
、は固定子コイルに蓄えられたエネルギーを吸収するた
めのツェナーダイオードである。4つのコイルを駆動す
る方法はみな同じなので、説明は固定子コイル91を駆
動する場合についてのみ行なう。励磁パターンROM 
i 03の格納値が値”0”の場合は、電圧O(V)が
出力端子QAに出力される。このためトランジスタT、
にはベース電流が流れない。したがってこのトランジス
タT、はオフ状態(コレクタ電流が流れない)となり、
固定子コイル91には電流が流れない。(励磁されない
)次に励磁パターンROM’103の格納値が値“1”
の場合は、電圧5〔v〕が出力端子QAより出力され、
トランジスタT、には抵抗R。
~R, is a current limiting resistor, D, -D is a diode, D
, is a Zener diode to absorb the energy stored in the stator coil. Since the method of driving the four coils is the same, only the case of driving the stator coil 91 will be described. Excitation pattern ROM
When the stored value of i03 is "0", voltage O (V) is output to output terminal QA. For this reason, the transistor T,
No base current flows through. Therefore, this transistor T is in an off state (collector current does not flow),
No current flows through stator coil 91. (Not excited) Next, the stored value of the excitation pattern ROM'103 is "1"
In the case of , a voltage of 5 [V] is output from the output terminal QA,
A resistor R is connected to the transistor T.

を通ってベース電流が流れる。このとき抵抗几。A base current flows through it. At this time, there is resistance.

の値はトランジスタT、を完全にオン状態(飽和状態)
にするようなベース電流を供給し、かつトランジスタ1
丁、がこわれないようなものに設定されている。したが
ってトランジスタT、はオンになり、固定コイル91に
は、′電源+12V−コイル91−抵抗R2−トランジ
スタT、→接地GNIII>という経路で電流が流れ、
励磁されたことになる。
The value of is when the transistor T is completely turned on (saturated state)
and transistor 1
It is set in such a way that it will not break. Therefore, the transistor T is turned on, and a current flows through the fixed coil 91 along the path: 'Power supply +12V - Coil 91 - Resistor R2 - Transistor T, → Ground GNIII>.
It means that it is excited.

次に再び励磁パターンROM103の出力端子QAが電
圧0〔v〕となり、トランジスタT、はオフ状態となる
。このとき固定子コイル91に蓄えられていたエネルギ
ーは電流となって、コイル91−抵抗几、−ダイオード
D1−ダイオードD、−コイル91というループを流れ
、抵抗几、やツェナダイオードD、でエネルギーが消費
され、固定子コイル91に蓄えられたエネルギーが放出
され励磁されなくなる。以上のことは固定子コイル92
〜94に対しても同様である。
Next, the voltage at the output terminal QA of the excitation pattern ROM 103 becomes 0 [V] again, and the transistor T is turned off. At this time, the energy stored in the stator coil 91 becomes a current and flows through the loop of coil 91 - resistor, - diode D1 - diode D, - coil 91, and the energy is transferred through the resistor and Zener diode D. The energy that is consumed and stored in the stator coil 91 is released and is no longer excited. The above is the stator coil 92
The same applies to 94.

このような回路において、ステップモーターを1ステッ
プ正回転させるには、CPUより出力ポート101に対
してカウントアツプパルス出力端子PIにパルス出力す
るようなデータを送る。するとそのパルスはアップダウ
ンカウンタ102のカウントアツプ入力端子cupに入
力され、現在のカウンタ102の出力値を1増やす。出
力端子0゜〜01の出力は励磁パターン几0M103の
アドレスA0〜A2に入力され、励磁パターンROM1
03からステップモーターを現在の位置より1ステツプ
だけ正回転させる励磁信号パターンを端子QA−QDを
出力させる。これによりステップモーターの各固定子コ
イル91〜94の自選されたコイルが1ステツプたけ正
回転するように励磁される。
In such a circuit, in order to rotate the step motor one step in the forward direction, the CPU sends data to the output port 101 to output a pulse to the count-up pulse output terminal PI. Then, the pulse is input to the count-up input terminal cup of the up-down counter 102, and the current output value of the counter 102 is incremented by one. Outputs from output terminals 0° to 01 are input to addresses A0 to A2 of excitation pattern 0M103, and excitation pattern ROM1
From 03, an excitation signal pattern for rotating the step motor in the forward direction by one step from the current position is outputted from terminals QA-QD. As a result, each of the stator coils 91 to 94 of the step motor is energized to rotate in the forward direction by one step.

同様にステップモーターを1ステップ逆回転させるには
、CPUより出カポ−)101に対してカウントダウン
パルス出力端子P2からパルスを出力するようなデータ
を送る。するとそれはアップダウンカウンタ102のカ
ウントダウン入力y#11子CD0WNに入力され、現
在のカウンタ102の出力を1減らす。するとその出力
端子00〜0.には励磁パターンROM103のアドレ
ス端子A。
Similarly, in order to reversely rotate the step motor by one step, the CPU sends data to the output capacitor 101 to output a pulse from the countdown pulse output terminal P2. Then, it is input to the countdown input y#11 child CD0WN of the up/down counter 102, and the current output of the counter 102 is decreased by 1. Then, the output terminals 00-0. is the address terminal A of the excitation pattern ROM 103.

しA、に入力するべき信号パターンが出力される。The signal pattern that should be input to A is output.

これにより励磁パターン几0M102はステップモータ
ーを現在の位置より1ステツプたけ逆回転させる励磁信
号パターンを、端子QA−QDを出力する。これにより
ステップモーターの各固定子コイルが1ステツプたけ逆
回転するように励磁される。
As a result, the excitation pattern 0M102 outputs an excitation signal pattern to the terminals QA-QD that rotates the step motor in the opposite direction by one step from the current position. This causes each stator coil of the step motor to rotate in the opposite direction by one step.

ステップモーターをルステップ連続して回転させるには
、カウントアツプパルス端子P1或はカンントダウンパ
ルス端子P、から、各々のパルスをル回出力するような
データをCPUが送ればよい。たたしパルスとパルスの
時間間隔をあまり短くすると、ステップモーターが追従
できないので、あまり短くならないようにCPUが管理
する必要がある。
In order to continuously rotate the step motor step by step, the CPU may send data from the count-up pulse terminal P1 or the count-down pulse terminal P to output each pulse one time. If the time interval between the beat pulses is made too short, the step motor will not be able to follow the time interval, so the CPU must manage the time interval so that it does not become too short.

ところで実際には励磁パターン発生部100により発生
される励磁信号パターンは、アップダウンカウンタ10
2や励磁パターンROM103などを用いなくてもCP
Uにより発生することが可能であり、この場合は励磁パ
ターン発生部100は出力ポート(第6図参照番号30
)におきかえることができる。この場合にはCPUから
は直接励磁パターンを計算して出力することになる。
Incidentally, in reality, the excitation signal pattern generated by the excitation pattern generation section 100 is generated by the up/down counter 10.
CP without using 2 or excitation pattern ROM103.
In this case, the excitation pattern generator 100 is connected to the output port (see number 30 in FIG. 6).
) can be replaced. In this case, the CPU directly calculates and outputs the excitation pattern.

以下余白 〔発明の効果〕 本発明によれば プリンタに挿入された用紙が短かい場
合にはこれを印字した上に手前の用紙挿入口より排出す
ることができるもので、小さな用紙でもプリンタで印字
を行うことができる。勿論、長い用紙に対しては通常の
如く、後方の排出口より排出することができる。
The following margins [Effects of the Invention] According to the present invention, if the paper inserted into the printer is short, it can be printed and then ejected from the front paper insertion slot, so even small paper can be printed with the printer. It can be performed. Of course, long sheets can be ejected from the rear ejection port as usual.

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

第1図および第2図は熱転写プリンタの概略図、第3図
はその紙送り機構の概略図、第4図および第5図は本発
明の概略説明図、第6図は本発明の一実施例構成図、第
7図乃至第18図は本発明の詳細な説明図である。 図中、1は電源スィッチ、2は電源投入状態を示す表示
ランプ、3はアラーム状態を示す表示ランプ、4はオン
ライン状態を示す表示ランプ、5はオンラインスイッチ
、6は改頁を行うスイッチ、7はオ°フライン状態で改
行を行うスイッチ、8は用紙、9は上部°カバー、10
は用紙挿入口、11は用紙受け、12はサーマルヘッド
、13はインクリボン、14.15はリボン受け、21
はCPU22はROM、23は入力ボート、24はスト
ローブ検出器、25は出力ポート、26は入力バッファ
、27は出力ポート、28はレジスタ部、29は入力ポ
ート、30は出カポ−1−,31はスペース左端検出器
、32は用紙検出器、33はリボン終了検出器、34〜
37はドライバ、38はヘッド・アプローチ・モータ、
39はスペースモータ、40は改行モータを示す。 特許出願人 富士通株式会社 代理人弁理士 山 谷 晧 榮 第6図 第9図 第10図 第11図 第12図 第13履 第14図 第15図 第17図 第18図
Figures 1 and 2 are schematic diagrams of a thermal transfer printer, Figure 3 is a schematic diagram of its paper feeding mechanism, Figures 4 and 5 are schematic explanatory diagrams of the present invention, and Figure 6 is an embodiment of the present invention. The example configuration diagrams and FIGS. 7 to 18 are detailed explanatory diagrams of the present invention. In the figure, 1 is a power switch, 2 is a display lamp that shows the power-on state, 3 is a display lamp that shows an alarm state, 4 is a display lamp that shows an online state, 5 is an online switch, 6 is a switch for changing pages, 7 is a switch to perform line feed in offline state, 8 is paper, 9 is upper cover, 10 is
is a paper insertion slot, 11 is a paper tray, 12 is a thermal head, 13 is an ink ribbon, 14.15 is a ribbon tray, 21
22 is a ROM, 23 is an input port, 24 is a strobe detector, 25 is an output port, 26 is an input buffer, 27 is an output port, 28 is a register section, 29 is an input port, 30 is an output port 1-, 31 is a space left edge detector, 32 is a paper detector, 33 is a ribbon end detector, 34~
37 is a driver, 38 is a head approach motor,
39 is a space motor, and 40 is a line feed motor. Patent Applicant Fujitsu Limited Patent Attorney Akira Sakae Yamatani Figure 6 Figure 9 Figure 10 Figure 11 Figure 12 Figure 13 Figure 14 Figure 15 Figure 17 Figure 18

Claims (1)

【特許請求の範囲】 記録媒体上にデータを印字する印字手段と、記録媒体の
挿入口から印字手段へ記録媒体を移送する第1のローラ
と、 記録媒体を印字手段から排出口へ移送する第2のローラ
と、 該印字手段へ供給される記録媒体の移送方向の長さを検
知する検知手段と、 検知された長さが第1のローラ手段と第2のローラ手段
との間隔より小さい場合、該記録媒体にデータを印字後
、記録媒体を第1のローラ手段により、挿入口に移送さ
せる制御手段とを備えることを特徴とする印字装置。
[Claims] Printing means for printing data on a recording medium, a first roller for transporting the recording medium from the recording medium insertion port to the printing means, and a first roller for transporting the recording medium from the printing means to the ejection port. a second roller, a detection means for detecting the length of the recording medium in the transport direction to be supplied to the printing means, and when the detected length is smaller than the distance between the first roller means and the second roller means; , a control means for transporting the recording medium to an insertion slot by a first roller means after printing data on the recording medium.
JP20355583A 1983-10-28 1983-10-28 Printer Granted JPS6094374A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20355583A JPS6094374A (en) 1983-10-28 1983-10-28 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20355583A JPS6094374A (en) 1983-10-28 1983-10-28 Printer

Publications (2)

Publication Number Publication Date
JPS6094374A true JPS6094374A (en) 1985-05-27
JPH0448632B2 JPH0448632B2 (en) 1992-08-07

Family

ID=16476073

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20355583A Granted JPS6094374A (en) 1983-10-28 1983-10-28 Printer

Country Status (1)

Country Link
JP (1) JPS6094374A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011116501A (en) * 2009-12-03 2011-06-16 Oki Electric Industry Co Ltd Medium carrying device
JP2019130733A (en) * 2018-01-30 2019-08-08 セイコーエプソン株式会社 Printer and control method for printer

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56145420A (en) * 1980-04-15 1981-11-12 Mitsubishi Electric Corp Chinese character input device
JPS5929181A (en) * 1982-08-11 1984-02-16 Hitachi Ltd Paper conveying mechanism

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56145420A (en) * 1980-04-15 1981-11-12 Mitsubishi Electric Corp Chinese character input device
JPS5929181A (en) * 1982-08-11 1984-02-16 Hitachi Ltd Paper conveying mechanism

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011116501A (en) * 2009-12-03 2011-06-16 Oki Electric Industry Co Ltd Medium carrying device
JP2019130733A (en) * 2018-01-30 2019-08-08 セイコーエプソン株式会社 Printer and control method for printer
US11401123B2 (en) 2018-01-30 2022-08-02 Seiko Epson Corporation Print device and method of controlling print device

Also Published As

Publication number Publication date
JPH0448632B2 (en) 1992-08-07

Similar Documents

Publication Publication Date Title
JP3046257B2 (en) Printing system by automatic detection of paper length and control method thereof
JP3774274B2 (en) Print media feeding method
JPS6094374A (en) Printer
JPS61127369A (en) Print issuer for slip or account book
JPS60131271A (en) Controlling system of printer
JP2750215B2 (en) Label printer
JPH1067155A (en) Paper feed device of printer
JPH0289669A (en) Printer control system
JPH0737163Y2 (en) Ticket-vending machine
JPS6099680A (en) Feed-controlling system for printer
JP3029698B2 (en) Ticket issuing device
JP4480882B2 (en) Recording device
JPS58127283A (en) Card write/read device provided with printer
JPS6228250A (en) Printing head controller
JPH02277671A (en) Controlling method of printer
JPH1035919A (en) Sheet feeding device and recording device
JP2002060073A (en) Method and device for paper feeding, recording medium having paper feeding treatment program recorded therein, and recording device
JP2775318B2 (en) Double feed detection device for print media
JP2022056961A (en) Printing device
JPH09100073A (en) Printer
JP2701894B2 (en) Recording device using roll paper
JPH05246120A (en) Page printer
JPH09100072A (en) Printer
JPS62146659A (en) Paper feed control apparatus for printer
JPS61148081A (en) Recorder

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees