JP2021194771A - Printing device and method for controlling printing device - Google Patents

Printing device and method for controlling printing device Download PDF

Info

Publication number
JP2021194771A
JP2021194771A JP2020099895A JP2020099895A JP2021194771A JP 2021194771 A JP2021194771 A JP 2021194771A JP 2020099895 A JP2020099895 A JP 2020099895A JP 2020099895 A JP2020099895 A JP 2020099895A JP 2021194771 A JP2021194771 A JP 2021194771A
Authority
JP
Japan
Prior art keywords
recording paper
print data
unit
printing
control unit
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
JP2020099895A
Other languages
Japanese (ja)
Inventor
庄 康
Sho Ko
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2020099895A priority Critical patent/JP2021194771A/en
Publication of JP2021194771A publication Critical patent/JP2021194771A/en
Pending legal-status Critical Current

Links

Images

Abstract

To provide a printing device that does not output a printed matter in which print data is missed even when recording paper is inclined.SOLUTION: A printing device 10 includes: a print head 18 for printing print data on recording paper 100; a transportation part H for transporting the recording paper 100; a recording paper detection part 42 for detecting inclination of the recording paper 100 that is transported by the transportation part H; and a control unit 110 for determining whether the print data can be printed on the recording paper 100 while being inclined in accordance with the inclination of the recording paper 100 which is detected by the recording paper detection part 42, and controlling the print head 18 to print the print data on the recording paper 100 while inclining the print data when determining that printing is possible.SELECTED DRAWING: Figure 4

Description

本発明は、印刷装置、および印刷装置の制御方法に関する。 The present invention relates to a printing device and a method for controlling the printing device.

従来、特許文献1に示すように、記録紙の傾きの度合により印刷ヘッドの印刷開始位置と終了位置を決定する印刷装置が知られている。 Conventionally, as shown in Patent Document 1, a printing device that determines a printing start position and a printing end position of a print head based on the degree of inclination of the recording paper is known.

特開平4−21482号公報Japanese Unexamined Patent Publication No. 4-21482

しかしながら、特許文献1に記載の印刷装置は記録紙が傾いているとき、記録紙の搬送方向に対して考慮していなく、図13に示す例のように印刷データの一部が搬送方向に対応するY軸に対して欠けた印刷物が出力されるおそれがあった。 However, the printing apparatus described in Patent Document 1 does not consider the transport direction of the recording paper when the recording paper is tilted, and a part of the printed data corresponds to the transport direction as in the example shown in FIG. There is a risk that a missing printed matter will be output with respect to the Y-axis.

印刷装置は、記録紙に印刷データを印刷する印刷部と、記録紙を搬送する搬送部と、搬送部により搬送される記録紙の傾きを検出する記録紙検出部と、記録紙検出部により検出された記録紙の傾きに応じ印刷データを傾けて記録紙に印刷可能か否か判断し、印刷可能と判断した場合、印刷データを傾けて印刷部により記録紙に印刷させる制御部と、を備える。 The printing device is detected by a printing unit that prints print data on the recording paper, a transport unit that transports the recording paper, a recording paper detection unit that detects the inclination of the recording paper conveyed by the transport unit, and a recording paper detection unit. It is provided with a control unit that tilts the print data according to the tilt of the recording paper to determine whether or not it can be printed on the recording paper, and if it is determined that printing is possible, tilts the print data and causes the printing unit to print on the recording paper. ..

印刷装置の制御方法は、記録紙に印刷データを印刷する印刷部と、記録紙を搬送する搬送部と、搬送部により搬送される記録紙の傾きを検出する記録紙検出部と、を備える印刷装置の制御方法であって、記録紙検出部により記録紙の傾きを検出し、検出した記録紙の傾きに応じ印刷データを傾けて記録紙に印刷可能か否か判断し、印刷可能と判断した場合、印刷データを傾けて印刷部により記録紙に印刷する。 The control method of the printing apparatus includes a printing unit that prints print data on the recording paper, a transport unit that conveys the recording paper, and a recording paper detection unit that detects the inclination of the recording paper conveyed by the transport unit. In the control method of the device, the tilt of the recording paper is detected by the recording paper detection unit, the print data is tilted according to the detected tilt of the recording paper, and it is determined whether or not the printing is possible on the recording paper, and it is determined that printing is possible. In this case, the print data is tilted and printed on the recording paper by the printing unit.

実施形態に係る印刷装置の外観の一例を示す斜視図である。It is a perspective view which shows an example of the appearance of the printing apparatus which concerns on embodiment. 印刷装置本体の一例を示す斜視図である。It is a perspective view which shows an example of a printing apparatus main body. 図1に示した印刷装置本体の側断面図である。It is a side sectional view of the printing apparatus main body shown in FIG. 印刷装置の構成の一例を示すブロック図である。It is a block diagram which shows an example of the structure of a printing apparatus. 記録紙が傾いているとき印刷装置が記録紙へ印刷データを印刷する処理の流れの一例を示すフローチャート図である。It is a flowchart which shows an example of the flow of the process which a printing apparatus prints print data on a recording paper when the recording paper is tilted. 記録紙がまっすぐのとき記録紙と記録紙検出部との位置関係の一例を示す図である。It is a figure which shows an example of the positional relationship between a recording paper and a recording paper detection part when the recording paper is straight. 記録紙がまっすぐのとき記録紙に対応させ、印刷データのイメージをRAM上に座標で示した図である。It is the figure which corresponds to the recording paper when the recording paper is straight, and has shown the image of the print data in coordinates on the RAM. 記録紙が傾いているとき記録紙と記録紙検出部との位置関係の一例を示す図である。It is a figure which shows an example of the positional relationship between a recording paper and a recording paper detection part when the recording paper is tilted. 記録紙が傾いているときRAM上の座標において記録紙の傾きに応じて印刷データを回転させたことを示す図である。It is a figure which shows that the print data was rotated according to the tilt of the recording paper in the coordinates on a RAM when the recording paper was tilted. 図9の印刷データをさらに移動させたことを示す図である。It is a figure which shows that the print data of FIG. 9 was further moved. 図9とは異なる角度回転させ移動させたことを示す図である。It is a figure which shows that it was rotated and moved by an angle different from that of FIG. 図9とは異なる方向に記録紙が傾いているときRAM上の座標において記録紙の傾きに応じて印刷データを回転させたことを示す図である。It is a figure which shows that the print data was rotated according to the tilt of the recording paper in the coordinates on a RAM when the recording paper was tilted in the direction different from FIG. 従来技術の例を示し、印刷データが記録紙からはみ出してしまうことを示す図である。It is a figure which shows the example of the prior art and shows that the print data protrudes from a recording paper.

1.実施形態
以下、実施形態について、図面を参照して説明する。
1. 1. Embodiment Hereinafter, the embodiment will be described with reference to the drawings.

なお、図中における方向を、三次元座標系TCを用いて説明する。説明の便宜上、Z軸の正方向を上方向又は単に上と称し負方向を下方向又は単に下と称し、X軸の正方向を右方向又は単に右と称し負方向を左方向又は単に左と称し、Y軸の正方向を前方向又は単に前と称し負方向を後方向又は単に後と称して説明する。 The direction in the figure will be described using the three-dimensional coordinate system TC. For convenience of explanation, the positive direction of the Z axis is referred to as upward or simply upward, the negative direction is referred to as downward or simply downward, the positive direction of the X axis is referred to as right or simply right, and the negative direction is referred to as left or simply left. The positive direction of the Y-axis will be referred to as a forward direction or simply forward, and the negative direction will be referred to as a backward direction or simply rearward.

1−1.印刷装置10の構成
以下、図1から図4を参照し、一実施形態に係る印刷装置10の構成について説明する。
1-1. Configuration of Printing Device 10 Hereinafter, the configuration of the printing device 10 according to the embodiment will be described with reference to FIGS. 1 to 4.

図1から図4に示す印刷装置10は、ドットインパクトプリンターである。印刷装置10は、インクリボンを介してピンを突出させて記録紙100に印刷する印刷部20である印刷ヘッド18を備える。なお、ピンはワイヤーと称される場合がある。 The printing apparatus 10 shown in FIGS. 1 to 4 is a dot impact printer. The printing apparatus 10 includes a printing head 18 which is a printing unit 20 for printing on the recording paper 100 by projecting pins via an ink ribbon. The pin may be referred to as a wire.

ここで、記録紙100は、例えば、通帳、葉書、封筒等であってもよく、所定長さに切断された他のシートであってもよい。以下では、一例として、記録紙100が、通帳である場合について説明する。この場合、記録紙100は、複数枚の紙が綴じられて構成され、通帳の記録面を開いた場合に底面となる面に、磁気ストライプ101が設けられている。 Here, the recording paper 100 may be, for example, a passbook, a postcard, an envelope, or the like, or may be another sheet cut to a predetermined length. Hereinafter, as an example, a case where the recording paper 100 is a passbook will be described. In this case, the recording paper 100 is configured by binding a plurality of sheets of paper, and the magnetic stripe 101 is provided on the surface that becomes the bottom surface when the recording surface of the passbook is opened.

印刷装置10は、例えば、ホストコンピューター500等の外部装置から受信した印刷データに基づいて、記録紙100に印刷を行う。 The printing device 10 prints on the recording paper 100 based on the print data received from an external device such as the host computer 500, for example.

また、印刷装置10は、印刷装置本体11と、印刷装置本体11を覆う外装体である上部カバー12と、上部ハウジング13と、下部ハウジング14を備える。そして、上部ハウジング13及び下部ハウジング14の前面には、紙挿入口15が開口している。 Further, the printing apparatus 10 includes a printing apparatus main body 11, an upper cover 12 which is an exterior body covering the printing apparatus main body 11, an upper housing 13, and a lower housing 14. A paper insertion slot 15 is opened on the front surface of the upper housing 13 and the lower housing 14.

印刷装置本体11は、左サイドフレーム16と右サイドフレーム17とを備える。印刷装置本体11は、印刷ヘッド18とキャリッジ19とを備えた印刷部20を有する。印刷部20は、キャリッジ19がX方向へ移動しながら印刷ヘッド18からピンを突出して記録紙100への印刷を行う。印刷装置本体11は、印刷ヘッド18に対向する位置にプラテン21を備える。 The printing apparatus main body 11 includes a left side frame 16 and a right side frame 17. The printing apparatus main body 11 has a printing unit 20 including a printing head 18 and a carriage 19. The printing unit 20 projects a pin from the printing head 18 while the carriage 19 moves in the X direction to print on the recording paper 100. The printing apparatus main body 11 includes a platen 21 at a position facing the printing head 18.

印刷装置本体11は、第1搬送ローラー22と第2搬送ローラー23とを備えた第1搬送機構部24を有する。印刷装置本体11は、第3搬送ローラー25と第4搬送ローラー26とを備えた第2搬送機構部27を有する。印刷装置本体11は、第5搬送ローラー28と第6搬送ローラー29とを備えた第3搬送機構部30を有する。
これら第1搬送機構部24、第2搬送機構部27、第3搬送機構部30は、印刷装置10の搬送部Hを構成する。
The printing apparatus main body 11 has a first transfer mechanism unit 24 including a first transfer roller 22 and a second transfer roller 23. The printing apparatus main body 11 has a second transfer mechanism unit 27 including a third transfer roller 25 and a fourth transfer roller 26. The printing apparatus main body 11 has a third transfer mechanism unit 30 including a fifth transfer roller 28 and a sixth transfer roller 29.
The first transfer mechanism unit 24, the second transfer mechanism unit 27, and the third transfer mechanism unit 30 constitute the transfer unit H of the printing device 10.

搬送部Hは、第1搬送機構部24、第2搬送機構部27、第3搬送機構部30それぞれの動作により、第1搬送方向への記録紙100の搬送と、第2搬送方向への記録紙100の搬送とを行う。 The transport unit H transports the recording paper 100 in the first transport direction and records in the second transport direction by the operation of each of the first transport mechanism unit 24, the second transport mechanism unit 27, and the third transport mechanism unit 30. The paper 100 is transported.

第1搬送方向は、搬送路の上流から下流に向かって記録紙100を搬送する方向である。換言すると、紙挿入口15から印刷部20へと向かう方向のことである。
第2搬送方向は、搬送路の下流から上流に向かって記録紙100が搬送される方向のことである。換言すると、第2搬送方向は、印刷部20から紙挿入口15へと向かう方向のことである。
記録紙100の搬送路は、印刷装置10において第1搬送方向又は第2搬送方向へと記録紙100が搬送される経路のことであり、図1から図4に示した例では、紙挿入口15からY軸に沿って前後に記録紙100が搬送される経路のことである。このため、記録紙100の搬送路は、前方記録紙ガイド32上、及び後方記録紙ガイド33上に構成されている。
The first transport direction is a direction in which the recording paper 100 is transported from the upstream to the downstream of the transport path. In other words, it is the direction from the paper insertion slot 15 toward the printing unit 20.
The second transport direction is the direction in which the recording paper 100 is transported from the downstream to the upstream of the transport path. In other words, the second transport direction is the direction from the printing unit 20 toward the paper insertion slot 15.
The transport path of the recording paper 100 is a path in which the recording paper 100 is transported in the first transport direction or the second transport direction in the printing apparatus 10, and in the example shown in FIGS. 1 to 4, the paper insertion slot is used. It is a path through which the recording paper 100 is conveyed back and forth along the Y axis from 15. Therefore, the transport path of the recording paper 100 is configured on the front recording paper guide 32 and the rear recording paper guide 33.

印刷装置本体11では、左サイドフレーム16と右サイドフレーム17との間にキャリッジ軸CAが架け渡される。キャリッジ19は、図示しないタイミングベルトに結合される。タイミングベルトは、キャリッジ駆動モーターM2により駆動される。キャリッジ19は、キャリッジ駆動モーターM2の正回転又は逆回転により、キャリッジ軸CAの軸方向である走査方向に、左サイドフレーム16と右サイドフレーム17とによって挟まれる範囲で移動される。キャリッジ19の移動は走査ともいう。 In the printing apparatus main body 11, the carriage shaft CA is bridged between the left side frame 16 and the right side frame 17. The carriage 19 is coupled to a timing belt (not shown). The timing belt is driven by the carriage drive motor M2. The carriage 19 is moved by the forward rotation or the reverse rotation of the carriage drive motor M2 in the scanning direction which is the axial direction of the carriage axis CA within a range sandwiched between the left side frame 16 and the right side frame 17. The movement of the carriage 19 is also referred to as scanning.

印刷装置本体11は、記録紙100に設けられた磁気ストライプ101の磁気情報の読み取り及び書き込みを行う磁気情報読書部31を有する。
左サイドフレーム16と右サイドフレーム17との間には、平坦面形状の前方記録紙ガイド32と、後方記録紙ガイド33とが固定して設けられ、記録紙100をガイドする。前方記録紙ガイド32と後方記録紙ガイド33との間には、平面形状のプラテン21が配置される。キャリッジ19の走査方向と直交する方向における後方記録紙ガイド33の中央付近には、キャリッジ19の走査方向に延伸し、記録紙100の画像を読み取る画像読取部35が配置される。
The printing apparatus main body 11 has a magnetic information reading unit 31 that reads and writes magnetic information of the magnetic stripe 101 provided on the recording paper 100.
A flat surface-shaped front recording paper guide 32 and a rear recording paper guide 33 are fixedly provided between the left side frame 16 and the right side frame 17 to guide the recording paper 100. A flat platen 21 is arranged between the front recording paper guide 32 and the rear recording paper guide 33. An image reading unit 35 extending in the scanning direction of the carriage 19 and reading an image of the recording paper 100 is arranged near the center of the rear recording paper guide 33 in a direction orthogonal to the scanning direction of the carriage 19.

キャリッジ19の走査方向は、キャリッジ軸CAに沿ってキャリッジ19が移動可能な2つの方向の総称である。図1から図4に示した例では、キャリッジ19の走査方向は、X軸の正方向とX軸の負方向とのそれぞれのことである。そして、前述した第1搬送方向は、Y軸の負方向と一致している。また、前述した第2搬送方向は、Y軸の正方向と一致している。 The scanning direction of the carriage 19 is a general term for two directions in which the carriage 19 can move along the carriage axis CA. In the examples shown in FIGS. 1 to 4, the scanning directions of the carriage 19 are the positive direction of the X-axis and the negative direction of the X-axis, respectively. The first transport direction described above coincides with the negative direction of the Y axis. Further, the above-mentioned second transport direction coincides with the positive direction of the Y axis.

第1搬送機構部24を構成する第1搬送ローラー22と第2搬送ローラー23は、それぞれ上下方向に配置されて対をなす。第2搬送機構部27を構成する第3搬送ローラー25と第4搬送ローラー26も、それぞれ上下方向に配置されて対をなす。第3搬送機構部30を構成する第5搬送ローラー28と第6搬送ローラー29も、それぞれ上下方向に配置されて対をなす。第1搬送ローラー22、第3搬送ローラー25、第5搬送ローラー28はそれぞれ、搬送モーターM1と、図示しない駆動輪列部とによって回転駆動される駆動ローラーである。また、第2搬送ローラー23、第4搬送ローラー26、第6搬送ローラー29はそれぞれ、第1搬送ローラー22、第3搬送ローラー25、第5搬送ローラー28側に所定の押圧力でばね付勢されている従動ローラーである。 The first transport roller 22 and the second transport roller 23 constituting the first transport mechanism unit 24 are arranged in the vertical direction to form a pair. The third transfer roller 25 and the fourth transfer roller 26, which constitute the second transfer mechanism unit 27, are also arranged in the vertical direction to form a pair. The fifth transport roller 28 and the sixth transport roller 29, which constitute the third transport mechanism unit 30, are also arranged in the vertical direction to form a pair. The first transfer roller 22, the third transfer roller 25, and the fifth transfer roller 28 are drive rollers that are rotationally driven by a transfer motor M1 and a drive train wheel portion (not shown), respectively. Further, the second transfer roller 23, the fourth transfer roller 26, and the sixth transfer roller 29 are spring-forced by a predetermined pressing force on the first transfer roller 22, the third transfer roller 25, and the fifth transfer roller 28, respectively. It is a driven roller.

昇降部Fは第2搬送ローラー23を第1搬送ローラー22に対して移動する。昇降部Fは不図示の紙挿入検出器を備える。紙挿入検出器が記録紙100を検出しない挿入待ち状態では、昇降部Fは第2搬送ローラー23を第1搬送ローラー22から離反する離反位置に移動している。ユーザーは紙挿入口15からシャッター41に向かって記録紙100を挿入できる。紙挿入検出器が挿入された記録紙100を検出すると、昇降部Fは第2搬送ローラー23を第1搬送ローラー22に向かって保持位置に移動し記録紙100を保持する。第1搬送ローラー22と第2搬送ローラー23のニップにより記録紙100は搬送可能となる。 The elevating portion F moves the second transfer roller 23 with respect to the first transfer roller 22. The elevating unit F includes a paper insertion detector (not shown). In the insertion waiting state in which the paper insertion detector does not detect the recording paper 100, the elevating unit F moves the second transfer roller 23 to a separation position away from the first transfer roller 22. The user can insert the recording paper 100 from the paper insertion slot 15 toward the shutter 41. When the paper insertion detector detects the inserted recording paper 100, the elevating unit F moves the second transport roller 23 toward the first transport roller 22 to the holding position and holds the recording paper 100. The nip of the first transfer roller 22 and the second transfer roller 23 makes it possible to transfer the recording paper 100.

印刷装置本体11は、記録紙100の搬送路に進退自在なシャッター41を有する。図1から図4に示した例では、印刷装置本体11は、X軸に沿って並ぶ6個のシャッター41を有する。各シャッター41はシャッターモーターM3により、搬送路に進出し記録紙100の搬送を遮断する遮断位置と、搬送路から後退し記録紙100の搬送を遮断しない非遮断位置とのそれぞれに進退可能である。挿入または搬送された記録紙100は遮断位置にある各シャッター41により突き当たって停止する。 The printing apparatus main body 11 has a shutter 41 that can move forward and backward in the transport path of the recording paper 100. In the example shown in FIGS. 1 to 4, the printing apparatus main body 11 has six shutters 41 arranged along the X axis. Each shutter 41 can advance and retreat to a shutoff position where it advances to the transport path and blocks the transport of the recording paper 100 and a non-blocking position where it recedes from the transport path and does not block the transport of the recording paper 100 by the shutter motor M3. .. The inserted or conveyed recording paper 100 abuts against each shutter 41 at the cutoff position and stops.

記録紙検出部42は、搬送路に沿って搬送される記録紙100を検出可能な複数個の光センサー43を有する。図1から図4に示した例では、記録紙検出部42は、8個の光センサー43を有する。これら8個の光センサー43は、搬送路と交わる方向、すなわち、第1搬送方向と交わる方向に、互いに所定間隔離れて設けられる。光センサー43は、マイクロスイッチ等、搬送路に沿って搬送される記録紙100を検出可能な他のセンサー、他のスイッチ等であってもよい。 The recording paper detection unit 42 has a plurality of optical sensors 43 capable of detecting the recording paper 100 transported along the transport path. In the example shown in FIGS. 1 to 4, the recording paper detection unit 42 has eight optical sensors 43. These eight optical sensors 43 are provided at predetermined intervals in the direction intersecting the transport path, that is, in the direction intersecting the first transport direction. The optical sensor 43 may be another sensor such as a micro switch, another sensor capable of detecting the recording paper 100 conveyed along the conveying path, another switch, or the like.

各光センサー43は検出した結果を制御部110に出力する。ここで、説明の便宜上、光センサー43の状態のうち光センサー43が記録紙100を検出している状態と、光センサー43の状態のうち光センサー43が記録紙100を検出していない状態とを総称して、検出状態と称して説明する。 Each optical sensor 43 outputs the detected result to the control unit 110. Here, for convenience of explanation, a state in which the optical sensor 43 detects the recording paper 100 in the state of the optical sensor 43 and a state in which the optical sensor 43 does not detect the recording paper 100 in the state of the optical sensor 43. Will be collectively referred to as a detection state.

1−2.印刷装置10の制御系
図4を参照し、印刷装置10の制御系について説明する。図4は、印刷装置10の制御系の一例を示す図である。図4に示すように、印刷装置10は、制御部110と、通信部120を備える。
1-2. The control system of the printing apparatus 10 The control system of the printing apparatus 10 will be described with reference to FIG. FIG. 4 is a diagram showing an example of a control system of the printing apparatus 10. As shown in FIG. 4, the printing apparatus 10 includes a control unit 110 and a communication unit 120.

制御部110は、印刷装置10の各部を統括的に制御する。制御部110は、CPU111(Central Processing Unit)と、不揮発性メモリーであるROM112(Read Only Memory)と、揮発性メモリーであるRAM113(Random Access Memory)を備える。CPUはプロセッサーともいう。 The control unit 110 comprehensively controls each unit of the printing apparatus 10. The control unit 110 includes a CPU 111 (Central Processing Unit), a ROM 112 (Read Only Memory) which is a non-volatile memory, and a RAM 113 (Random Access Memory) which is a volatile memory. The CPU is also called a processor.

CPU111は、ROM112に記憶されたファームウェアなどのプログラムを読み出し、RAM113を作業領域として用いて実行する。 The CPU 111 reads out a program such as firmware stored in the ROM 112, and executes the program using the RAM 113 as a work area.

通信部120は、ホストコンピューター500から印刷データ等を受信する。また通信部120は、各種のコマンドを受信する。各種のコマンドに応じ、例えば、磁気情報読書部31が読み取った記録紙100の磁気ストライプ101の磁気情報、画像読取部35が読み取った記録紙100の画像情報、エラーの場合のエラー情報をホストコンピューター500に送信する。 The communication unit 120 receives print data and the like from the host computer 500. Further, the communication unit 120 receives various commands. In response to various commands, for example, the magnetic information of the magnetic stripe 101 of the recording paper 100 read by the magnetic information reading unit 31, the image information of the recording paper 100 read by the image reading unit 35, and the error information in case of an error are stored in the host computer. Send to 500.

1−3.傾いていない記録紙100へ印刷を行う印刷装置10の制御方法
最初に、図6から図7を参照しながら、記録紙100がまっすぐ搬送されていて、傾いていない記録紙100へ制御部110が印刷を行う処理の一例について説明する。
1-3. Control method of the printing apparatus 10 for printing on the non-tilted recording paper 100 First, referring to FIGS. 6 to 7, the recording paper 100 is conveyed straight, and the control unit 110 is transferred to the non-tilted recording paper 100. An example of the printing process will be described.

図6は遮断位置にある各シャッター41により記録紙100の先端が突き当たって停止している状態を示す。記録紙検出部42の8個の光センサー43は、第1搬送方向と第2搬送方向と交わる方向に互いに所定間隔離れて設けられる。記録紙100がまっすぐであるので、紙幅wに対応する数の光センサー43の全てが記録紙100を検出する。図6の例では紙幅wに対応する光センサー43の数は8個である。制御部110は、紙幅wに対応する数の光センサー43全てが記録紙100を検出することにより、記録紙100がまっすぐであり、傾いていないと判断できる。 FIG. 6 shows a state in which the tip of the recording paper 100 abuts against each shutter 41 at the cutoff position and is stopped. The eight optical sensors 43 of the recording paper detection unit 42 are provided at predetermined intervals in the direction in which the first transport direction and the second transport direction intersect. Since the recording paper 100 is straight, all of the number of optical sensors 43 corresponding to the paper width w detect the recording paper 100. In the example of FIG. 6, the number of optical sensors 43 corresponding to the paper width w is eight. The control unit 110 can determine that the recording paper 100 is straight and not tilted by detecting the recording paper 100 by all of the number of optical sensors 43 corresponding to the paper width w.

通信部120は、ホストコンピューター500から例えば紙幅wと紙長hを含む記録紙100のサイズに関するコマンドを受信する。紙幅wと紙長hはRAM113に記憶される。紙幅wと紙長hは予めROM112に記憶されていてもよい。制御部110は、RAM113やROM112から紙幅wと紙長hを読み出す。制御部110は、記録紙100を検出する光センサー43の数により紙幅wを算出してもよく、搬送部Hにより記録紙100を搬送しながら光センサー43の検出状態により記録紙100の先端と後端を判断し紙長hを算出してもよい。コマンドには、紙幅wと紙長hに加え、上余白S1と下余白S2のサイズに関する情報が含まれていてもよい。 The communication unit 120 receives a command from the host computer 500 regarding the size of the recording paper 100 including, for example, the paper width w and the paper length h. The paper width w and the paper length h are stored in the RAM 113. The paper width w and the paper length h may be stored in the ROM 112 in advance. The control unit 110 reads the paper width w and the paper length h from the RAM 113 and the ROM 112. The control unit 110 may calculate the paper width w based on the number of optical sensors 43 that detect the recording paper 100, and while transporting the recording paper 100 by the transport unit H, the tip of the recording paper 100 is determined by the detection state of the optical sensor 43. The paper length h may be calculated by determining the rear end. The command may include information about the sizes of the top margin S1 and the bottom margin S2 in addition to the paper width w and the paper length h.

図7は、記録紙100がまっすぐであり、傾いていない場合に対応するRAM113上の印刷データのイメージの例を示す。
RAM113には第1記憶部200が構成されている。図7に示すように、制御部110は、記録紙100に対応させて、RAM113上の第1記憶部200に原点(0,0)からX軸とY軸に延びる第1座標を設け、この第1座標により規定される第1記憶領域210を設定する。
FIG. 7 shows an example of an image of print data on the RAM 113 corresponding to the case where the recording paper 100 is straight and not tilted.
The RAM 113 includes a first storage unit 200. As shown in FIG. 7, the control unit 110 provides the first storage unit 200 on the RAM 113 with first coordinates extending from the origin (0,0) to the X-axis and the Y-axis in correspondence with the recording paper 100. The first storage area 210 defined by the first coordinates is set.

図7の第1座標のX軸の正方向は第2方向を示し、印刷部20が左から右に走査しながら記録紙100に印刷データを印刷していく方向に対応する。Y軸の正方向は第1方向を示し、搬送部Hによる搬送方向に沿って印刷データが印刷されていく方向に対応する。X軸とY軸は互いに交わる方向である。 The positive direction of the X-axis of the first coordinate in FIG. 7 indicates the second direction, and corresponds to the direction in which the printing unit 20 prints print data on the recording paper 100 while scanning from left to right. The positive direction of the Y-axis indicates the first direction, and corresponds to the direction in which the print data is printed along the transport direction by the transport unit H. The X-axis and the Y-axis are directions that intersect each other.

制御部110は取得した紙幅wと紙長hに基づき、記録紙100の左上、右上、左下、右下の4つの頂点に対応する位置を、(0,0)、(w,0)、(0,h)、(w,h)と設定する。原点(0,0)は記録紙100の左上に対応する点とする。X軸上の(w,0)は原点に対し紙幅wに対応する位置であり、記録紙100の右上に対応する点とする。Y軸上の(0,h)は原点に対し紙長hに対応する位置であり、記録紙100の左下に対応する点とする。(w,h)は紙幅wと紙長hに対応する位置であり、記録紙100の右下に対応する点とする。(x,y)は第1記憶領域210内の任意の位置である第1位置を示し、例えば制御部110が印刷データを書き込み、或いは読み出すRAM113のアドレスを示す。4つの頂点を結んだ辺で囲まれる領域が、第1記憶領域210である。
また図7の例では、制御部110は、コマンドに含まれる上余白S1と下余白S2の情報に基づき、制御部110は第1記憶領域210におけるY軸の上部と下部にそれぞれ上余白S1と下余白S2の領域を設定する。
Based on the acquired paper width w and paper length h, the control unit 110 sets the positions corresponding to the four vertices of the upper left, upper right, lower left, and lower right of the recording paper 100 at (0, 0), (w, 0), ( Set as 0, h) and (w, h). The origin (0,0) is a point corresponding to the upper left of the recording paper 100. (W, 0) on the X-axis is a position corresponding to the paper width w with respect to the origin, and is a point corresponding to the upper right of the recording paper 100. (0, h) on the Y-axis is a position corresponding to the paper length h with respect to the origin, and is a point corresponding to the lower left of the recording paper 100. (W, h) is a position corresponding to the paper width w and the paper length h, and is a point corresponding to the lower right of the recording paper 100. (X, y) indicates a first position which is an arbitrary position in the first storage area 210, and for example, indicates an address of a RAM 113 for which the control unit 110 writes or reads print data. The area surrounded by the sides connecting the four vertices is the first storage area 210.
Further, in the example of FIG. 7, the control unit 110 has an upper margin S1 at the upper part and the lower part of the Y axis in the first storage area 210 based on the information of the upper margin S1 and the lower margin S2 included in the command. The area of the bottom margin S2 is set.

制御部110が、第1記憶部200の第1記憶領域210に印刷データを記憶する処理について説明する。 A process in which the control unit 110 stores print data in the first storage area 210 of the first storage unit 200 will be described.

通信部120は、ホストコンピューター500から印刷データを受信し、制御部110に送る。図7の例では、通信部120は、1行目、2行目から最後のn行目に「ABC・・・HIJ」を示す印刷データを受信する。制御部110は、第1記憶領域210に上余白S1の領域を確保した後、印刷データを書き込むRAM113のアドレスを第1記憶領域210の1行目の左端(X軸の値が0)に設定する。制御部110は、設定したアドレスから順次、印刷部20の走査方向に対応するX軸の正方向に向かって第1記憶領域210に印刷データの書き込みを始める。 The communication unit 120 receives print data from the host computer 500 and sends it to the control unit 110. In the example of FIG. 7, the communication unit 120 receives the print data indicating “ABC ... HIJ” on the first line, the second line to the last nth line. After securing the area of the upper margin S1 in the first storage area 210, the control unit 110 sets the address of the RAM 113 for writing the print data to the left end (the value of the X axis is 0) of the first line of the first storage area 210. do. The control unit 110 starts writing print data to the first storage area 210 sequentially from the set address in the positive direction of the X axis corresponding to the scanning direction of the print unit 20.

具体的には、制御部110は、1行目の印刷データ「ABC・・・HIJ」を、第1記憶領域210の1行目の左端(X軸の値が0)からX軸の正方向に向かってRAM113のアドレスをインクリメントしながら書き込む。なお、通信部120が受信した印刷データには、各行の最後に改行を示す改行コマンドが付加されている。制御部110は改行コマンドにしたがって、書き込むアドレスを第1記憶領域210の次の行の左端に変える改行処理をする。
2行目から最後のn行目までの印刷データについても同様に、制御部110は、印刷データを書き込むアドレスを2行目からn行目まで次の行の左端(X軸の値が0)に変えながら、「ABC・・・HIJ」をX軸の正方向に向かって第1記憶領域210に書き込み、改行処理をする。最後に制御部110は、第1記憶領域210に下余白S2の領域を確保する。
この結果、図7に示すように、第1記憶領域210には印刷データが記録紙100に印刷されたときの印刷データのイメージが記憶される。図7では、3行目から(n−1)行目までの印刷データは省略して示している。
Specifically, the control unit 110 displays the print data "ABC ... HIJ" on the first line from the left end of the first line (value of the X axis is 0) of the first storage area 210 in the positive direction of the X axis. The address of the RAM 113 is incremented and written toward. A line feed command indicating a line feed is added to the print data received by the communication unit 120 at the end of each line. The control unit 110 performs a line feed process in which the address to be written is changed to the left end of the next line of the first storage area 210 according to the line feed command.
Similarly, for the print data from the second line to the last nth line, the control unit 110 sets the address for writing the print data to the left end of the next line from the second line to the nth line (the value of the X axis is 0). While changing to, "ABC ... HIJ" is written to the first storage area 210 in the positive direction of the X-axis, and line feed processing is performed. Finally, the control unit 110 secures an area of the bottom margin S2 in the first storage area 210.
As a result, as shown in FIG. 7, the image of the print data when the print data is printed on the recording paper 100 is stored in the first storage area 210. In FIG. 7, the print data from the third line to the (n-1) line is omitted.

制御部110が、第1記憶部200の第1記憶領域210から印刷データを読み出して印刷する処理について説明する。
制御部110は、第1記憶領域210の上余白S1の領域に基づき、搬送モーターM1により搬送部Hを駆動し、記録紙100を上余白S1分第1搬送方向に搬送する。
制御部110は、印刷データを読み出すアドレスを第1記憶領域210の1行目の左端(X軸の値が0)に設定する。制御部110は、設定したアドレスから順次、X軸の正方向に向かって第1記憶領域210から印刷データの読み出しを始める。制御部110は、キャリッジ駆動モーターM2を駆動してキャリッジ19をX軸の正方向に走査しながら、読み出した印刷データに基づき印刷ヘッド18を駆動する。この結果、記録紙100に1行目の印刷データ「ABC・・・HIJ」が印刷される。
制御部110は、1行目の印刷データを印刷すると、搬送モーターM1により搬送部Hを駆動し、記録紙100を1行分第1搬送方向に搬送し、改行する。
A process in which the control unit 110 reads print data from the first storage area 210 of the first storage unit 200 and prints the print data will be described.
The control unit 110 drives the transport unit H by the transport motor M1 based on the area of the upper margin S1 of the first storage area 210, and transports the recording paper 100 in the first transport direction for the upper margin S1.
The control unit 110 sets the address for reading the print data at the left end of the first line of the first storage area 210 (the value on the X axis is 0). The control unit 110 starts reading print data from the first storage area 210 in the positive direction of the X-axis in order from the set address. The control unit 110 drives the carriage drive motor M2 to scan the carriage 19 in the positive direction of the X-axis, and drives the print head 18 based on the read print data. As a result, the first line of print data "ABC ... HIJ" is printed on the recording paper 100.
When the control unit 110 prints the print data of the first line, the transfer unit H is driven by the transfer motor M1, the recording paper 100 is conveyed in the first transfer direction for one line, and a line feed is performed.

制御部110は、2行目から最後のn行目までの印刷データについても同様に印刷をする。制御部110は、印刷データを読み出すアドレスを次の行の左端(X軸の値が0)に変えながら、X軸の正方向に向かって印刷データを順次読み出し、キャリッジ19をX軸の正方向に走査しながら、読み出した印刷データに基づき印刷ヘッド18を駆動し印刷をする。
制御部110は、1行分の印刷データを印刷すると、搬送モーターM1により搬送部Hを駆動し、記録紙100を1行分第1搬送方向に搬送し、改行する。
制御部110は、最後のn行目の搬送の後、第1記憶領域210の下余白S2の領域に基づき、搬送モーターM1により搬送部Hを駆動し、記録紙100を下余白S2分第1搬送方向に搬送する。
この結果、図7に示す印刷データのイメージのとおりに、記録紙100に1行目、2行目からn行目に「ABC・・・HIJ」が印刷される。
The control unit 110 prints the print data from the second line to the last nth line in the same manner. The control unit 110 sequentially reads the print data in the positive direction of the X-axis while changing the address for reading the print data to the left end of the next line (the value of the X-axis is 0), and sets the carriage 19 in the positive direction of the X-axis. The print head 18 is driven and printed based on the read print data while scanning.
When the control unit 110 prints the print data for one line, the transfer motor M1 drives the transfer unit H to convey the recording paper 100 in the first transfer direction for one line and start a new line.
After the last n-th row transfer, the control unit 110 drives the transfer unit H by the transfer motor M1 based on the area of the lower margin S2 of the first storage area 210, and sets the recording paper 100 in the lower margin S2 minutes first. Transport in the transport direction.
As a result, "ABC ... HIJ" is printed on the recording paper 100 on the first line, the second line to the nth line, as shown in the image of the print data shown in FIG.

1−4.傾いている記録紙100へ印刷を行う印刷装置10の制御方法1
次に、図5と、図8から図10を参照しながら、印刷装置10が傾いて搬送されている記録紙100へ印刷を行う制御部110の処理の一例について説明する。
1-4. Control method 1 of the printing device 10 that prints on the tilted recording paper 100
Next, with reference to FIGS. 5 and 8 to 10, an example of processing of the control unit 110 that prints on the recording paper 100 in which the printing device 10 is tilted and conveyed will be described.

上述の傾いていない記録紙100の場合と同様に、制御部110は、コマンドやROM112に記憶されている紙幅wと紙長hを含む記録紙100のサイズの情報に基づき、一旦、RAM113に第1記憶部200を構成する。紙幅wと紙長hに加え、上余白S1と下余白S2のサイズに関する情報が含まれていてもよい。図7に示すように、制御部110は、RAM113上の第1記憶部200に原点(0,0)からX軸とY軸に延びる第1座標を設け、この第1座標により規定される第1記憶領域210を設定する(図5のS101)。 Similar to the case of the non-tilted recording paper 100 described above, the control unit 110 temporarily sets the size of the recording paper 100 including the paper width w and the paper length h stored in the ROM 112 in the RAM 113. 1 Storage unit 200 is configured. In addition to the paper width w and the paper length h, information regarding the sizes of the top margin S1 and the bottom margin S2 may be included. As shown in FIG. 7, the control unit 110 provides a first coordinate extending from the origin (0,0) to the X-axis and the Y-axis in the first storage unit 200 on the RAM 113, and is defined by the first coordinate. 1 The storage area 210 is set (S101 in FIG. 5).

図8は記録紙100の右側が左側に対してY軸の正方向に傾いて搬送されている例を示す。
制御部110は、シャッターモーターM3により、シャッター41を搬送路に進出させた遮断位置にする。
制御部110は、搬送モーターM1により搬送部Hを駆動し、シャッター41に突き当たるまで記録紙100を第1搬送方向に搬送する。実線で示す記録紙100は、傾いている記録紙100の左端が左側のシャッター41に突き当たって停止している状態を示す。 この状態では、光センサー43は8個のうち左端の1個が記録紙100を検出し、他の7個の光センサー43は記録紙100を検出しない。
FIG. 8 shows an example in which the right side of the recording paper 100 is tilted in the positive direction of the Y axis with respect to the left side and conveyed.
The control unit 110 uses the shutter motor M3 to bring the shutter 41 into a cutoff position advanced to the transport path.
The control unit 110 drives the transport unit H by the transport motor M1 and transports the recording paper 100 in the first transport direction until it hits the shutter 41. The recording paper 100 shown by a solid line indicates a state in which the left end of the tilted recording paper 100 abuts on the shutter 41 on the left side and is stopped. In this state, one of the eight optical sensors 43 on the left end detects the recording paper 100, and the other seven optical sensors 43 do not detect the recording paper 100.

制御部110は、シャッターモーターM3により、シャッター41を搬送路から後退させた非遮断位置にする。
制御部110は、搬送モーターM1により実線で示す記録紙100を第1搬送方向に搬送する。図8に示すように、記録紙100は2点鎖線で示す位置を経由して搬送されていく。
このとき、8個の光センサー43は、第1搬送方向への記録紙100の搬送にしたがって左から次第に1個ずつ、記録紙100を検出していない状態から、記録紙100を検出している状態へと検出状態が変化していく。制御部110は、このような光センサー43の検出状態の変化を取得し、記録紙100の右側が左側に対してY軸の正方向に傾いていると判断する。また、8個の光センサー43が、搬送にしたがって左側から次第に1個ずつ、記録紙100を検出していない状態から、記録紙100を検出している状態へと検出状態が変化していく。制御部110は、8個の光センサー43の検出状態の変化により、記録紙100の右側が左側に対してY軸の正方向に傾いていると判断する。
The control unit 110 uses the shutter motor M3 to move the shutter 41 to a non-blocking position retracted from the transport path.
The control unit 110 conveys the recording paper 100 shown by the solid line by the transfer motor M1 in the first transfer direction. As shown in FIG. 8, the recording paper 100 is conveyed via the position indicated by the two-dot chain line.
At this time, the eight optical sensors 43 detect the recording paper 100 one by one from the left as the recording paper 100 is conveyed in the first conveying direction, from the state where the recording paper 100 is not detected. The detection state changes to the state. The control unit 110 acquires such a change in the detection state of the optical sensor 43, and determines that the right side of the recording paper 100 is tilted in the positive direction of the Y axis with respect to the left side. Further, the detection state of the eight optical sensors 43 gradually changes from the left side to the state in which the recording paper 100 is detected, one by one from the left side as the light sensors 43 are conveyed. The control unit 110 determines that the right side of the recording paper 100 is tilted in the positive direction of the Y axis with respect to the left side due to the change in the detection state of the eight optical sensors 43.

8個の光センサー43の互いの間隔は、予めROM112に記憶されている。また、制御部110は、搬送モーターM1の制御により記録紙100の搬送距離を算出している。 制御部110は、搬送モーターM1の制御による記録紙100の搬送距離と、記録紙100の搬送にしたがって順次1個ずつ、記録紙100を検出している状態へと変化していく光センサー43の間隔に基づき、式(1)から記録紙100の傾きαを算出することができる(S102)。
tanα=(記録紙100の搬送距離)/(検出している状態へと変化していく光センサー43の間隔)…(1)
The distance between the eight optical sensors 43 is stored in the ROM 112 in advance. Further, the control unit 110 calculates the transport distance of the recording paper 100 by controlling the transport motor M1. The control unit 110 of the optical sensor 43 changes to a state in which the recording paper 100 is detected one by one according to the conveying distance of the recording paper 100 under the control of the conveying motor M1 and the conveying of the recording paper 100. The inclination α of the recording paper 100 can be calculated from the equation (1) based on the interval (S102).
tanα = (conveyance distance of recording paper 100) / (interval between optical sensors 43 changing to the detected state) ... (1)

制御部110は、RAM113に第2記憶部300を構成する。図7と対比させながら、図9と図10を用いて、制御部110が第1記憶部200の第1記憶領域210に基づき第2記憶領域310に印刷データの位置を変換することについて説明する。 The control unit 110 constitutes a second storage unit 300 in the RAM 113. 9 and 10 will be used to describe that the control unit 110 converts the position of the print data into the second storage area 310 based on the first storage area 210 of the first storage unit 200, in comparison with FIG. 7. ..

制御部110は、図7と同様に、第2記憶部300に原点(0,0)からX軸とY軸に延びる第2座標を設け、この第2座標により規定される第1記憶領域210と同様の領域を設定する。 Similar to FIG. 7, the control unit 110 provides the second storage unit 300 with second coordinates extending from the origin (0,0) to the X-axis and the Y-axis, and the first storage area 210 defined by the second coordinates. Set the same area as.

制御部110は、式(1)から求めた傾きαとその方向に基づき、記録紙100の左上、右上、左下、右下の4つの頂点に対応する図7の位置(0,0)、(w,0)、(0,h)、(w,h)を図9に示すように(0,0)、(wcosα,wsinα)、(−hsinα,hcosα)、(wcosα−hsinα,wsinα+hcosα)になるように算出して変換する。wは紙幅wに対応する値であり、hは紙長hに対応する値である。変換後の4つの頂点を結んだ辺で囲まれる第2記憶領域310は、原点(0,0)を中心に傾きαに対応する角度で第1記憶領域210を時計回りに回転させた領域となる。制御部110は、図7の任意の位置(x,y)である第1位置を図9に示す(xcosα−ysinα,xsinα+ycosα)である第2位置になるように算出して変換する。 The control unit 110 has the positions (0,0), (0,0) in FIG. 7 corresponding to the four vertices of the upper left, upper right, lower left, and lower right of the recording paper 100 based on the inclination α obtained from the equation (1) and its direction. w, 0), (0, h), (w, h) are converted into (0,0), (wcosα, wsinα), (-hsinα, hcosα), (wcosα-hsinα, wsinα + hcosα) as shown in FIG. Calculate and convert so that w is a value corresponding to the paper width w, and h is a value corresponding to the paper length h. The second storage area 310 surrounded by the side connecting the four converted vertices is the area obtained by rotating the first storage area 210 clockwise at an angle corresponding to the inclination α about the origin (0,0). Become. The control unit 110 calculates and converts the first position, which is an arbitrary position (x, y) in FIG. 7, into the second position, which is shown in FIG. 9 (xcosα-ysinα, xsinα + ycosα).

第2記憶領域310は、第1記憶領域210と同様に、制御部110が印刷データを書き込み、或いは読み出すアドレスを示す。制御部110がRAM113にアクセスするアドレスはゼロか正の値で示され、負の値では示されない。回転させた第2記憶領域310が負の値で示されている部分がある場合は、ゼロか正の値になるように、さらに変換する。具体的には、記録紙100に対応する各頂点の位置が少なくともゼロか正の値となるように第2記憶領域310を設定すればよい。 Similar to the first storage area 210, the second storage area 310 indicates an address where the control unit 110 writes or reads print data. The address at which the control unit 110 accesses the RAM 113 is indicated by zero or a positive value, and is not indicated by a negative value. If the rotated second storage area 310 has a portion indicated by a negative value, it is further converted so that it becomes zero or a positive value. Specifically, the second storage area 310 may be set so that the positions of the vertices corresponding to the recording paper 100 are at least zero or a positive value.

図9で記録紙100の左下の頂点に対応する位置が(−hsinα,hcosα)でありx値が負の値となっている。図10に示すように、少なくともこの位置のx値がゼロになるように、制御部110はX軸の正方向に傾きαに応じた(hsinα)の値移動し、(0,hcosα)に変換する。制御部110は他の頂点の位置もX軸方向に(hsinα)移動する。
制御部110は、図9の4つの頂点に対応する位置(0,0)、(wcosα,wsinα)、(−hsinα,hcosα)、(wcosα−hsinα,wsinα+hcosα)を、図10に示すように、それぞれ(hsinα,0)、(hsinα+wcosα,wsinα)、(0,hcosα)、(wcosα,wsinα+hcosα)になるように算出し変換し、第2記憶領域310とする(S103)。
In FIG. 9, the position corresponding to the lower left vertex of the recording paper 100 is (−hsinα, hcosα), and the x value is a negative value. As shown in FIG. 10, the control unit 110 tilts in the positive direction of the X axis and moves the value according to α (hsinα) so that the x value at least at this position becomes zero, and converts it to (0, hcosα). do. The control unit 110 also moves the positions of other vertices in the X-axis direction (hsinα).
The control unit 110 indicates the positions (0,0), (wcosα, wsinα), (-hsinα, hcosα), and (wcosα-hsinα, wsinα + hcosα) corresponding to the four vertices of FIG. 9 as shown in FIG. It is calculated and converted so as to be (hsinα, 0), (hsinα + wcosα, wsinα), (0, hcosα), (wcosα, wsinα + hcosα), respectively, and used as the second storage area 310 (S103).

図10に示すように、移動変換後の4つの頂点を結んだ辺で囲まれる第2記憶領域310には負の値となる部分がなく、ゼロか正の値となる。この結果、第2記憶領域310は制御部110が印刷データを書き込み、或いは読み出すアドレスとして設定される。制御部110は、図9の任意の位置(xcosα−ysinα,xsinα+ycosα)である第2位置を、図10に示す(xcosα+(h−y)sinα,xsinα+ycosα)である第3位置になるように算出して変換する。なお、制御部110は、印刷ヘッド18の解像度に応じ、変換後の三角関数を含む第2記憶領域310の第2座標の値を整数にし、第2記憶部300のアドレスとして割り当てる。制御部110は、記録紙100に印刷データを印刷する位置に対応させたアドレスに、印刷データを記憶する。 As shown in FIG. 10, there is no negative value portion in the second storage area 310 surrounded by the side connecting the four vertices after the movement conversion, and the value is zero or a positive value. As a result, the second storage area 310 is set as an address for the control unit 110 to write or read print data. The control unit 110 calculates the second position at an arbitrary position (xcosα-ysinα, xsinα + ycosα) in FIG. 9 to be the third position at (xcosα + (hy) sinα, xsinα + ycosα) shown in FIG. And convert. The control unit 110 sets the value of the second coordinate of the second storage area 310 including the converted trigonometric function as an integer according to the resolution of the print head 18, and assigns it as the address of the second storage unit 300. The control unit 110 stores the print data at the address corresponding to the position where the print data is printed on the recording paper 100.

図10は、記録紙100に対応する第2記憶領域310の第2座標を示す。図10のX軸方向である第2方向は、キャリッジ19が走査する方向に対応し、搬送部Hにより搬送される記録紙100の幅方向に対応する。Y軸である第1方向は、搬送部Hにより記録紙100を搬送する方向に対応する。 FIG. 10 shows the second coordinates of the second storage area 310 corresponding to the recording paper 100. The second direction, which is the X-axis direction in FIG. 10, corresponds to the scanning direction of the carriage 19, and corresponds to the width direction of the recording paper 100 conveyed by the conveying unit H. The first direction, which is the Y-axis, corresponds to the direction in which the recording paper 100 is conveyed by the conveying unit H.

記録紙100が傾いていない場合には、搬送部Hにより搬送されるときの記録紙100の幅は、図7に示すように右上の頂点の座標のx値より(w)である。記録紙100が傾きα傾いている場合には、搬送部Hにより搬送されるときの記録紙100の幅は、図10に示すように右上の頂点の座標のx値より(hsinα+wcosα)である。(hsinα+wcosα)は、傾きαは鋭角であり、w<hであることから、(w)より大きい。 When the recording paper 100 is not tilted, the width of the recording paper 100 when it is conveyed by the conveying unit H is (w) from the x value of the coordinates of the upper right vertex as shown in FIG. 7. When the recording paper 100 is tilted by α, the width of the recording paper 100 when it is conveyed by the conveying unit H is (hsinα + wcosα) from the x value of the coordinates of the upper right apex as shown in FIG. (Hsinα + wcosα) is larger than (w) because the slope α has an acute angle and w <h.

記録紙100に対する印刷装置本体11の印刷可能範囲である第2領域は、印刷装置本体11の各構成要素により制限がある。例えば、搬送部Hは各駆動ローラーと各従動ローラーの対により記録紙100を挟んだニップにより搬送力を発生している。記録紙100が傾いていくにしたがって、記録紙100の搬送方向の上部分や下部分は各駆動ローラーと各従動ローラーの対が記録紙100を挟んでニップしている範囲が狭くなり、搬送部Hは記録紙100を搬送できなくなっていく。また、記録紙100が傾いていくにしたがって、上述のように搬送されるときの記録紙100の幅方向が広くなるが、搬送部Hや紙挿入口15の幅は固定されているので記録紙100が入らなくなってしまう。キャリッジ19は、左サイドフレーム16と右サイドフレーム17とによって挟まれる範囲で走査される。したがって、キャリッジ19が走査しながら印刷ヘッド18を駆動できる範囲にも制限がある。 The second area, which is the printable range of the printing apparatus main body 11 with respect to the recording paper 100, is limited by each component of the printing apparatus main body 11. For example, the transport unit H generates a transport force by a nip sandwiching the recording paper 100 by a pair of each drive roller and each driven roller. As the recording paper 100 is tilted, the range in which the pair of each drive roller and each driven roller is nipped across the recording paper 100 becomes narrower in the upper and lower parts of the recording paper 100 in the transport direction, and the transport portion. H cannot carry the recording paper 100. Further, as the recording paper 100 is tilted, the width direction of the recording paper 100 when it is conveyed becomes wider as described above, but the width of the conveying portion H and the paper insertion slot 15 is fixed, so that the recording paper 100 is used. 100 will not fit. The carriage 19 is scanned in a range sandwiched between the left side frame 16 and the right side frame 17. Therefore, the range in which the carriage 19 can drive the print head 18 while scanning is also limited.

図10に示すように、回転と移動変換後の4つの頂点を結んだ辺で囲まれる第2記憶領域310は、記録紙100が傾きα傾いているときの印刷範囲に対応する第1領域である。
制御部110は、記録紙100が傾きα傾いているときの印刷範囲に対応する第1領域が、上述のような印刷装置本体11の各構成要素による制限で規定される印刷可能範囲である第2領域を超えず、第2領域の範囲内であるか判断する(S104)。
第2領域の範囲内でないと判断した場合(S104−NO)、制御部110はブザーやパネルなどの報知装置により印刷できない旨のエラーを報知する(S109)。
第2領域の範囲内であると判断した場合(S104−YES)、制御部110は第2記憶部300に第2記憶領域310を設定する(S105)。
As shown in FIG. 10, the second storage area 310 surrounded by the side connecting the four vertices after the rotation and movement conversion is the first area corresponding to the printing range when the recording paper 100 is tilted by α. be.
In the control unit 110, the first area corresponding to the print range when the recording paper 100 is tilted by α is the printable range defined by the limitation by each component of the printing apparatus main body 11 as described above. It is determined whether the area does not exceed the two areas and is within the range of the second area (S104).
When it is determined that the image is not within the range of the second region (S104-NO), the control unit 110 notifies an error that printing is not possible by a notification device such as a buzzer or a panel (S109).
When it is determined that the area is within the range of the second area (S104-YES), the control unit 110 sets the second storage area 310 in the second storage unit 300 (S105).

制御部110は、第1記憶部200の第1記憶領域210に通信部120がホストコンピューター500から受信した印刷データを記憶する(S106)。
具体的には、上述の、1−3.傾いていない記録紙100へ印刷を行う印刷装置10の制御方法、で説明したとおりである。この結果、図7に示すように、制御部110は、通信部120が受信した記録紙100の1ページ分の印刷データを、位置を変換せずに第1記憶領域210に一旦書込む(記憶する)。制御部110が、第1記憶領域210を用いず、通信部120が印刷データを受信する度に位置を計算して変換しながら印刷データを第2記憶領域310に記憶するのは通信と処理に時間が掛かるため、1ページ分の印刷データを一旦第1記憶領域210に記憶した後、第2記憶領域310に対して位置の変換をまとめて処理する。なお、制御部110の処理能力が高く、RAM113のアクセス時間が十分速く、通信処理も速ければ、通信部120が印刷データを受信しながら同時に制御部110が位置を変換して第2記憶領域310に直接印刷データを記憶してもよい。
The control unit 110 stores the print data received from the host computer 500 by the communication unit 120 in the first storage area 210 of the first storage unit 200 (S106).
Specifically, the above-mentioned 1-3. This is as described in the control method of the printing apparatus 10 for printing on the non-tilted recording paper 100. As a result, as shown in FIG. 7, the control unit 110 temporarily writes the print data for one page of the recording paper 100 received by the communication unit 120 into the first storage area 210 without converting the position (storage). do). It is for communication and processing that the control unit 110 stores the print data in the second storage area 310 while calculating and converting the position each time the communication unit 120 receives the print data without using the first storage area 210. Since it takes time, one page of print data is temporarily stored in the first storage area 210, and then the position conversion is collectively processed for the second storage area 310. If the processing capacity of the control unit 110 is high, the access time of the RAM 113 is sufficiently fast, and the communication processing is also fast, the communication unit 120 receives the print data and at the same time, the control unit 110 changes the position and the second storage area 310. The print data may be stored directly in.

制御部110は、図7に示すようにRAM113に構成されている第1記憶部200の第1記憶領域210の第1座標に対応する任意の位置(x,y)である第1位置のアドレスに記憶されている受信した印刷データを読み出す。制御部110は、読み出した印刷データを、記録紙100の傾きαに対応させて、図10に示すように第2記憶部300の第2記憶領域310の第2座標に対応する(xcosα+(h−y)sinα,xsinα+ycosα)の位置である第3位置のアドレスに変換して書込む(記憶する)(S107)。第2記憶領域310の第2座標に対応するアドレスには負の値がなく、第2記憶部300の第2記憶領域310が構成されているRAM113に書込み可能である。制御部110は、第1記憶領域210に記憶されている1ページ分の印刷データについて、第1座標から第2座標に記録紙100の傾きαに対応させて、アドレスを変換しながら第2記憶領域310に書き込む処理を繰り返す。 As shown in FIG. 7, the control unit 110 is an address of a first position which is an arbitrary position (x, y) corresponding to the first coordinate of the first storage area 210 of the first storage unit 200 configured in the RAM 113. Read the received print data stored in. The control unit 110 corresponds the read print data to the inclination α of the recording paper 100 and corresponds to the second coordinate of the second storage area 310 of the second storage unit 300 as shown in FIG. 10 (xcosα + (h). -Y) Converts to the address of the third position, which is the position of sinα, xsinα + ycosα), and writes (stores) it (S107). The address corresponding to the second coordinate of the second storage area 310 has no negative value, and is writable to the RAM 113 constituting the second storage area 310 of the second storage unit 300. The control unit 110 makes the print data for one page stored in the first storage area 210 correspond to the inclination α of the recording paper 100 from the first coordinate to the second coordinate, and converts the address into the second storage. The process of writing to the area 310 is repeated.

また図7のように第1記憶領域210の上部と下部にそれぞれ上余白S1と下余白S2の領域が設定されている場合には、制御部110は、上述のようにアドレスを変換して、図10のように第2記憶領域310に上余白S1と下余白S2の領域を設定する。
これらの処理により、図10に示すように、第2記憶領域310には傾きαで、1行目、2行目から最後のn行目に「ABC・・・HIJ」のイメージと上余白S1と下余白S2が記憶される。
Further, when the areas of the upper margin S1 and the lower margin S2 are set in the upper part and the lower part of the first storage area 210 as shown in FIG. 7, the control unit 110 converts the address as described above and converts the address. As shown in FIG. 10, the upper margin S1 and the lower margin S2 are set in the second storage area 310.
By these processes, as shown in FIG. 10, the second storage area 310 has an inclination α, and the image of “ABC ... HIJ” and the upper margin S1 are on the first line, the second line to the last n lines. And the bottom margin S2 are stored.

制御部110が、記録紙100の傾きαに対応する第2記憶部300の第2記憶領域310から印刷データを読み出して印刷する処理について説明する。 A process in which the control unit 110 reads print data from the second storage area 310 of the second storage unit 300 corresponding to the inclination α of the recording paper 100 and prints the print data will be described.

上述のように、制御部110は、図7に示す第1記憶領域210に対応する任意の位置(x,y)である第1位置のアドレスに記憶されている印刷データを読み出し、記録紙100の傾きαに対応させて、図10に示すように第2記憶領域310に対応する(xcosα+(h−y)sinα,xsinα+ycosα)の位置である第3位置のアドレスに変換して書込んでいる。 As described above, the control unit 110 reads out the print data stored in the address of the first position at an arbitrary position (x, y) corresponding to the first storage area 210 shown in FIG. 7, and the recording paper 100. As shown in FIG. 10, the address of the third position corresponding to the inclination α of (xcosα + (hy) sinα, xsinα + ycosα) is converted and written. ..

まず、記録紙100の上余白S1の搬送について説明する。図7のように、傾いていない記録紙100の上余白S1の左端に対応する第1記憶領域210の上余白S1の左端の位置は(x=0,y=S1)である。制御部110は、図10のように、傾いている記録紙100に対応する(xcosα+(h−y)sinα,xsinα+ycosα)に当てはめて変換し、((h−S1)sinα,S1cosα)とする。記録紙100の搬送方向に対応するのは図10の第2座標のY軸であるので、図10の記録紙100の傾きαに対応する上余白S1の搬送距離はy値である(S1cosα)となる。
制御部110は、搬送モーターM1により搬送部Hを駆動し、記録紙100を(S1cosα)分第1搬送方向に搬送し、記録紙100に上余白S1を構成する。
First, the transfer of the top margin S1 of the recording paper 100 will be described. As shown in FIG. 7, the position of the left end of the upper margin S1 of the first storage area 210 corresponding to the left end of the upper margin S1 of the non-tilted recording paper 100 is (x = 0, y = S1). As shown in FIG. 10, the control unit 110 applies and converts (xcosα + (hy) sinα, xsinα + ycosα) corresponding to the tilted recording paper 100 to obtain ((h−S1) sinα, S1cosα). Since it is the Y axis of the second coordinate of FIG. 10 that corresponds to the transport direction of the recording paper 100, the transport distance of the upper margin S1 corresponding to the inclination α of the recording paper 100 of FIG. 10 is a y value (S1cosα). Will be.
The control unit 110 drives the transport unit H by the transport motor M1 to transport the recording paper 100 in the first transport direction by (S1cosα), and constitutes the top margin S1 on the recording paper 100.

印刷ヘッド18が走査する方向に対応するのは図10の第2座標のX軸方向である。制御部110は、印刷データを読み出すアドレスを第2記憶領域310の1行目の左端(X座標の値が0)に設定する。制御部110は、設定したアドレスから順次、X軸の正方向に向かって第2記憶領域310から行単位で印刷データを読み出す。 The direction in which the print head 18 scans corresponds to the X-axis direction of the second coordinate in FIG. The control unit 110 sets the address for reading the print data at the left end of the first line of the second storage area 310 (the value of the X coordinate is 0). The control unit 110 reads print data line by line from the second storage area 310 in the positive direction of the X-axis in order from the set address.

制御部110は、キャリッジ駆動モーターM2を駆動してキャリッジ19をX軸の正方向に走査しながら、読み出した印刷データに基づき印刷ヘッド18を駆動する(S108)。この結果、図10に示すように記録紙100に上下の点線で囲まれた1行目の印刷データが印刷される。印刷データ「ABC・・・HIJ」は、第2記憶領域310のX軸に対して傾きα傾いて記憶されているので、X軸の正方向にいくにしたがって文字の下部分が切れていく。切れた部分は、次の行で次の印刷データと共に印刷される。
制御部110は、1行目の印刷データを印刷すると、搬送モーターM1により搬送部Hを駆動し、記録紙100を1行分第1搬送方向に搬送し、改行する。
The control unit 110 drives the carriage drive motor M2 to scan the carriage 19 in the positive direction of the X-axis, and drives the print head 18 based on the read print data (S108). As a result, as shown in FIG. 10, the print data of the first line surrounded by the upper and lower dotted lines is printed on the recording paper 100. Since the print data "ABC ... HIJ" is stored at an inclination of α with respect to the X axis of the second storage area 310, the lower portion of the character is cut off as it goes in the positive direction of the X axis. The cut part is printed on the next line together with the next print data.
When the control unit 110 prints the print data of the first line, the transfer unit H is driven by the transfer motor M1, the recording paper 100 is conveyed in the first transfer direction for one line, and a line feed is performed.

制御部110は、2行目からn行目までの印刷データについても同様に印刷と改行を繰り返す。制御部110は、印刷データを読み出すアドレスを次の行の左端(X座標の値が0)に変えながら、X軸の正方向に向かって印刷データを順次読み出し、キャリッジ19をX軸の正方向に走査しながら、読み出した印刷データに基づき印刷ヘッド18を駆動し印刷をする。
制御部110は、2行目からn行目までについても同様に、1行分の印刷データを印刷すると、搬送モーターM1により搬送部Hを駆動し、記録紙100を1行分第1搬送方向に搬送し、改行する。
なお、制御部110は、奇数行に対してキャリッジ19をX軸の正方向に走査して印刷した後、偶数行に対してキャリッジ19をX軸の負方向に走査して印刷してもよい。
The control unit 110 repeats printing and line feed in the same manner for the print data from the second line to the nth line. The control unit 110 sequentially reads the print data in the positive direction of the X axis while changing the address for reading the print data to the left end of the next line (the value of the X coordinate is 0), and sets the carriage 19 in the positive direction of the X axis. The print head 18 is driven and printed based on the read print data while scanning.
Similarly, when the control unit 110 prints the print data for one line from the second line to the nth line, the transfer motor M1 drives the transfer unit H to transfer the recording paper 100 to the first transfer direction for one line. Transport to and start a new line.
The control unit 110 may scan and print the carriage 19 in the positive direction of the X-axis for odd-numbered lines and then scan and print the carriage 19 in the negative direction of the X-axis for even-numbered lines. ..

n行目も、制御部110が印刷データ「ABC・・・HIJ」をX軸の正方向に印刷していくにしたがって文字の下部分が切れていく。制御部110は、次の行を追加して、切れた部分を次の行である(n+1)行目に印刷する。この結果、図10に示す例のように、搬送方向(Y軸)を含めて印刷データの全てが記録紙100に印刷される。 In the nth line as well, the lower part of the character is cut off as the control unit 110 prints the print data "ABC ... HIJ" in the positive direction of the X-axis. The control unit 110 adds the next line and prints the cut portion on the next line (n + 1). As a result, as in the example shown in FIG. 10, all of the print data including the transport direction (Y-axis) is printed on the recording paper 100.

上述の上余白S1の場合と同様に、図10の記録紙100の傾きαに対応する下余白S2の搬送距離は(S2cosα)となる。
制御部110は(n+1)行目に、n行目の印刷データ「ABC・・・HIJ」で切れた文字の下部分を印刷する。その後、搬送モーターM1により搬送部Hを駆動し、記録紙100を(S2cosα)分第1搬送方向に搬送し、記録紙100に下余白S2を構成する。
このように、制御部110は、記録紙100の傾きα傾いている場合、最後の行に1行分追加して切れた文字の下部分を印刷し、印刷データの全てを印刷する。
Similar to the case of the upper margin S1 described above, the transport distance of the lower margin S2 corresponding to the inclination α of the recording paper 100 in FIG. 10 is (S2cosα).
The control unit 110 prints the lower part of the character cut off by the print data "ABC ... HIJ" on the nth line on the (n + 1) line. After that, the transport unit H is driven by the transport motor M1 to transport the recording paper 100 in the first transport direction by (S2cosα), and the bottom margin S2 is formed on the recording paper 100.
In this way, when the recording paper 100 is tilted α, the control unit 110 adds one line to the last line, prints the lower portion of the cut character, and prints all of the print data.

1−5.傾いている記録紙100へ印刷を行う印刷装置10の制御方法2
上述の、1−4.傾いている記録紙100へ印刷を行う印刷装置10の制御方法1、で説明した図10と同様に、図11は記録紙100が傾きα傾いている場合の第2記憶領域310を示す。したがって図11の記録紙100の左上、右上、左下、右下の4つの頂点に対応する第2記憶領域310の位置は図10と同じである。図10では、印刷データを記録紙100の傾きαに合せて位置を変換したが、ここでは記録紙100の傾きαとは異なる傾きβにより位置を変換する例を示す。図11では傾きβ<αの例を示す。
1-5. Control method 2 of the printing device 10 that prints on the tilted recording paper 100
The above-mentioned 1-4. Similar to FIG. 10 described in the control method 1 of the printing device 10 for printing on the tilted recording paper 100, FIG. 11 shows a second storage area 310 when the recording paper 100 is tilted α. Therefore, the positions of the second storage areas 310 corresponding to the four vertices of the upper left, upper right, lower left, and lower right of the recording paper 100 of FIG. 11 are the same as those of FIG. In FIG. 10, the position of the print data is converted according to the inclination α of the recording paper 100, but here, an example of converting the position by the inclination β different from the inclination α of the recording paper 100 is shown. FIG. 11 shows an example of the slope β <α.

制御部110は、図7に示すようにRAM113に構成されている第1記憶部200の第1記憶領域210の第1座標に対応する任意の位置(x,y)である第1位置のアドレスに記憶されている印刷データを読み出し、傾きβに対応させて、図11に示すように第2記憶部300の第2記憶領域310の第2座標に対応する(xcosβ+(h−y)sinβ,xsinβ+ycosβ)の位置である第3位置のアドレスに変換して書込む(記憶する)。制御部110は、第1記憶領域210に記憶されている1ページ分のすべての印刷データを読み出し、アドレスを変換して第2記憶領域310に書込む。 As shown in FIG. 7, the control unit 110 is an address of a first position which is an arbitrary position (x, y) corresponding to the first coordinate of the first storage area 210 of the first storage unit 200 configured in the RAM 113. The print data stored in is read out, corresponds to the inclination β, and corresponds to the second coordinate of the second storage area 310 of the second storage unit 300 as shown in FIG. 11 (xcos β + (hy) sin β, Converts to the address of the third position, which is the position of xsinβ + ycosβ), and writes (stores) it. The control unit 110 reads out all the print data for one page stored in the first storage area 210, converts the address, and writes it in the second storage area 310.

傾きβ<αであるため、図11の記録紙100の右上と左下に対応する部分において印刷データの印刷位置が図11の端に近接する。制御部110は、少なくとも搬送部Hによる記録紙100を搬送する際の公差に基づく余白を設定する。図11では、制御部110は、記録紙100に印刷データを印刷した際、印刷位置が記録紙100からはみ出さないように、公差に基づき上余白S3と下余白S4の領域を設定する。 Since the inclination β <α, the print position of the print data is close to the edge of FIG. 11 at the portions corresponding to the upper right and lower left of the recording paper 100 of FIG. The control unit 110 sets at least a margin based on a tolerance when the recording paper 100 is conveyed by the conveying unit H. In FIG. 11, the control unit 110 sets the areas of the upper margin S3 and the lower margin S4 based on the tolerance so that the print position does not protrude from the recording paper 100 when the print data is printed on the recording paper 100.

制御部110は、搬送モーターM1により搬送部Hを駆動し、図11の記録紙100の傾きβに対応する上余白S3の搬送距離分搬送する。
制御部110は、印刷データを読み出すアドレスを第2記憶領域310の1行目の左端(X座標の値が0)に設定する。制御部110は、設定したアドレスから順次、X軸の正方向に向かって第2記憶領域310から行単位で印刷データの読み出し、キャリッジ駆動モーターM2を駆動してキャリッジ19をX軸の正方向に走査しながら、読み出した印刷データに基づき印刷ヘッド18を駆動し、記録紙100に1行目の印刷データを印刷する。上下の点線で囲まれた1行目の印刷データ「ABC・・・HIJ」は、第2記憶領域310のX軸に対して傾きβ傾いて印刷され、X軸の正方向にいくにしたがって文字の下部分が切れていく。切れた部分は、次の行で印刷される。
制御部110は、1行目の印刷データを印刷すると、搬送モーターM1により搬送部Hを駆動し、記録紙100を1行分第1搬送方向に搬送し、改行する。
The control unit 110 drives the transport unit H by the transport motor M1 and transports the transport unit H by the transport distance of the upper margin S3 corresponding to the inclination β of the recording paper 100 of FIG.
The control unit 110 sets the address for reading the print data at the left end of the first line of the second storage area 310 (the value of the X coordinate is 0). The control unit 110 reads print data line by line from the second storage area 310 in the positive direction of the X-axis in order from the set address, drives the carriage drive motor M2, and moves the carriage 19 in the positive direction of the X-axis. While scanning, the print head 18 is driven based on the read print data, and the print data of the first line is printed on the recording paper 100. The print data "ABC ... HIJ" on the first line surrounded by the upper and lower dotted lines is printed at an inclination β with respect to the X axis of the second storage area 310, and characters are printed in the positive direction of the X axis. The lower part is cut off. The cut part is printed on the next line.
When the control unit 110 prints the print data of the first line, the transfer unit H is driven by the transfer motor M1, the recording paper 100 is conveyed in the first transfer direction for one line, and a line feed is performed.

制御部110は、2行目からn行目までの印刷データについても同様に印刷と改行を繰り返す。
制御部110は次の行を追加して、(n+1)行目にn行目の印刷データ「ABC・・・HIJ」で切れた部分を印刷する。その後、搬送モーターM1により搬送部Hを駆動し、記録紙100の傾きβに対応する図11の下余白S4の搬送距離分搬送する。
このように、制御部110は、記録紙100の傾きα傾いている場合、1行分追加して印刷する。この結果、図11に示す例のように、搬送方向(Y軸)を含めて印刷データの全てが記録紙100に印刷される。
The control unit 110 repeats printing and line feed in the same manner for the print data from the second line to the nth line.
The control unit 110 adds the next line and prints the portion cut off by the print data "ABC ... HIJ" on the nth line on the (n + 1) line. After that, the transport unit H is driven by the transport motor M1 to transport by the transport distance of the lower margin S4 of FIG. 11 corresponding to the inclination β of the recording paper 100.
In this way, when the recording paper 100 is tilted by α, the control unit 110 additionally prints by one line. As a result, as in the example shown in FIG. 11, all of the print data including the transport direction (Y-axis) is printed on the recording paper 100.

制御部110は、搬送部Hによる記録紙100を搬送する際の公差に基づき、少なくとも記録紙100に印刷データを印刷した際はみ出さないような上余白S3と下余白S4の領域を設定できれば、記録紙100の傾きαとは異なる傾きβにより位置を変換することができる。この場合、傾きβ<αでもよく、傾きβ>αでもよい。 If the control unit 110 can set the areas of the upper margin S3 and the lower margin S4 so as not to protrude when the print data is printed on the recording paper 100, based on the tolerance when the recording paper 100 is conveyed by the conveying unit H. The position can be changed by an inclination β different from the inclination α of the recording paper 100. In this case, the slope β <α may be used, and the slope β> α may be used.

1−6.傾いている記録紙100へ印刷を行う印刷装置10の制御方法3
図12は、上述の、1−4.傾いている記録紙100へ印刷を行う印刷装置10の制御方法1、で説明した図10に対して、記録紙100が逆方向に傾きα傾いている場合を示す。
制御部110は、搬送モーターM1の制御による記録紙100の搬送距離と、記録紙100の搬送にしたがって右側から順次1個ずつ、記録紙100を検出している状態へと変化していく光センサー43の間隔に基づき、記録紙100が反時計回りの傾きの方向であることを判断でき、式(1)から記録紙100の傾きαを算出することができる。
1-6. Control method 3 of the printing device 10 that prints on the tilted recording paper 100
FIG. 12 shows the above-mentioned 1-4. A case where the recording paper 100 is tilted in the opposite direction and α-tilted with respect to FIG. 10 described in the control method 1 of the printing device 10 for printing on the tilted recording paper 100 is shown.
The control unit 110 is an optical sensor that changes the transport distance of the recording paper 100 under the control of the transport motor M1 and the state in which the recording paper 100 is detected one by one from the right side according to the transport of the recording paper 100. Based on the interval of 43, it can be determined that the recording paper 100 is in the direction of the counterclockwise inclination, and the inclination α of the recording paper 100 can be calculated from the equation (1).

制御部110は、式(1)から求めた傾きαとその傾きの方向に基づき、記録紙100の左上、右上、左下、右下の4つの頂点に対応する図7の位置(0,0)、(w,0)、(0,h)、(w,h)を、原点(0,0)を中心に傾きαに対応する角度で反時計回りに回転させた後、第2記憶領域310の第2座標において負の整数にならないように移動させる。その結果、4つの頂点は図12に示すように(0,wsinα)、(wcosα,0)、(hsinα,wsinα+hcosα)、(wcosα+hsinα,hcosα)になるように算出され、変換される。第2記憶領域310は、変換後の4つの頂点を結んだ辺で囲まれる領域となる。
制御部110は、図7の任意の位置(x,y)である第1位置を図12のように(xcosα+ysinα,(w−x)sinα+ycosα)である第3位置になるように算出して変換する。
The control unit 110 is located at the position (0,0) in FIG. 7 corresponding to the four vertices of the upper left, upper right, lower left, and lower right of the recording paper 100 based on the inclination α obtained from the equation (1) and the direction of the inclination. , (W, 0), (0, h), (w, h) are rotated counterclockwise at an angle corresponding to the inclination α about the origin (0, 0), and then the second storage area 310. Move so that it does not become a negative integer at the second coordinate of. As a result, the four vertices are calculated and converted to be (0, wsinα), (wcosα, 0), (hsinα, wsinα + hcosα), (wcosα + hsinα, hcosα) as shown in FIG. The second storage area 310 is an area surrounded by the sides connecting the four converted vertices.
The control unit 110 calculates and converts the first position, which is an arbitrary position (x, y) in FIG. 7, into the third position, which is (xcosα + ysinα, (w−x) sinα + ycosα), as shown in FIG. do.

制御部110は、図7に示すようにRAM113で構成されている第1記憶部200の第1記憶領域210の第1座標に対応する任意の位置(x,y)である第1位置のアドレスに記憶されている受信した印刷データを読み出し、傾きαに対応させて、図12に示すように第2記憶部300の第2記憶領域310の第2座標に対応する(xcosα+ysinα,(w−x)sinα+ycosα)の位置である第3位置のアドレスに変換して書込む(記憶する)。制御部110は、第1記憶領域210に記憶されている1ページ分のすべての印刷データを読み出し、アドレスを変換して第2記憶領域310に書込む。 As shown in FIG. 7, the control unit 110 is an address of a first position which is an arbitrary position (x, y) corresponding to the first coordinate of the first storage area 210 of the first storage unit 200 configured by the RAM 113. The received print data stored in is read out, corresponds to the inclination α, and corresponds to the second coordinate of the second storage area 310 of the second storage unit 300 as shown in FIG. 12 (xcosα + ysinα, (w-x). ) Converts to the address of the third position, which is the position of sinα + ycosα), and writes (remembers) it. The control unit 110 reads out all the print data for one page stored in the first storage area 210, converts the address, and writes it in the second storage area 310.

制御部110は、搬送モーターM1により搬送部Hを駆動し、記録紙100を(S1cosα)分第1搬送方向に搬送し、記録紙100に上余白S1を構成する。 The control unit 110 drives the transport unit H by the transport motor M1 to transport the recording paper 100 in the first transport direction by (S1cosα), and constitutes the top margin S1 on the recording paper 100.

制御部110は、印刷データを読み出すアドレスを第2記憶領域310の1行目の左端(X座標の値が0)に設定する。制御部110は、設定したアドレスから順次、X軸の正方向に向かって第2記憶領域310から行単位で印刷データの読み出しを始める。 The control unit 110 sets the address for reading the print data at the left end of the first line of the second storage area 310 (the value of the X coordinate is 0). The control unit 110 starts reading print data line by line from the second storage area 310 in the positive direction of the X-axis in order from the set address.

制御部110は、キャリッジ駆動モーターM2を駆動してキャリッジ19をX軸の正方向に走査しながら、読み出した印刷データに基づき印刷ヘッド18を駆動する。この結果、図12に示すように記録紙100に上下の点線で囲まれた1行目の印刷データが印刷される。印刷データ「ABC・・・HIJ」は、第2記憶領域310のX軸に対して傾きα傾いて記憶されているので、X軸の負方向にいくにしたがって文字の下部分が切れていく。切れた部分は、次の行で次の印刷データと共に印刷される。
制御部110は、1行目の印刷データを印刷すると、搬送モーターM1により搬送部Hを駆動し、記録紙100を1行分第1搬送方向に搬送し改行する。
The control unit 110 drives the carriage drive motor M2 to scan the carriage 19 in the positive direction of the X-axis, and drives the print head 18 based on the read print data. As a result, as shown in FIG. 12, the print data of the first line surrounded by the upper and lower dotted lines is printed on the recording paper 100. Since the print data "ABC ... HIJ" is stored at an inclination of α with respect to the X axis of the second storage area 310, the lower portion of the character is cut off in the negative direction of the X axis. The cut part is printed on the next line together with the next print data.
When the control unit 110 prints the print data of the first line, the transfer unit H is driven by the transfer motor M1 to transfer the recording paper 100 in the first transfer direction for one line and start a new line.

制御部110は、2行目からn行目までの印刷データについても同様に印刷をする。制御部110は、印刷データを読み出すアドレスを次の行の左端(X座標の値が0)に変えながら、X軸の正方向に向かって印刷データを順次読み出し、キャリッジ19をX軸の正方向に走査しながら、読み出した印刷データに基づき印刷ヘッド18を駆動し印刷をする。
制御部110は、2行目からn行目までについても同様に、1行分の印刷データを印刷すると、搬送モーターM1により搬送部Hを駆動し、記録紙100を1行分第1搬送方向に搬送し改行する。
The control unit 110 prints the print data from the second line to the nth line in the same manner. The control unit 110 sequentially reads the print data in the positive direction of the X axis while changing the address for reading the print data to the left end of the next line (the value of the X coordinate is 0), and sets the carriage 19 in the positive direction of the X axis. The print head 18 is driven and printed based on the read print data while scanning.
Similarly, when the control unit 110 prints the print data for one line from the second line to the nth line, the transfer motor M1 drives the transfer unit H to transfer the recording paper 100 to the first transfer direction for one line. Transport to and start a new line.

n行目も、印刷データ「ABC・・・HIJ」はX軸の負方向にいくにしたがって文字の下部分が切れていく。制御部110は、1行追加して、切れた部分を次の行である(n+1)行目に印刷する。この結果、図10に対して記録紙100が逆方向に傾きα傾いている場合も、図12に示す例のように、搬送方向(Y軸)を含めて印刷データの全てが記録紙100に印刷される。 In the nth line as well, the lower part of the character of the print data "ABC ... HIJ" is cut off as it goes in the negative direction of the X-axis. The control unit 110 adds one line and prints the cut portion on the next line (n + 1). As a result, even when the recording paper 100 is tilted in the opposite direction to FIG. 10 and is α-tilted, as in the example shown in FIG. 12, all of the print data including the transport direction (Y-axis) is printed on the recording paper 100. It will be printed.

上述の上余白S1の場合と同様に、図12の記録紙100の傾きαに対応する下余白S2の搬送距離は(S2cosα)となる。
制御部110は(n+1)行目に、n行目の印刷データ「ABC・・・HIJ」で切れた部分を印刷する。その後、搬送モーターM1により搬送部Hを駆動し、記録紙100を(S2cosα)分第1搬送方向に搬送し、記録紙100に下余白S2を構成する。
Similar to the case of the upper margin S1 described above, the transport distance of the lower margin S2 corresponding to the inclination α of the recording paper 100 in FIG. 12 is (S2cosα).
The control unit 110 prints the portion cut off by the print data "ABC ... HIJ" on the nth line on the (n + 1) line. After that, the transport unit H is driven by the transport motor M1 to transport the recording paper 100 in the first transport direction by (S2cosα), and the bottom margin S2 is formed on the recording paper 100.

本実施形態によれば、以下の効果を得ることができる。
印刷装置10は、記録紙100に印刷データを印刷する印刷ヘッド18と、記録紙100を搬送する搬送部Hと、搬送部Hにより搬送される記録紙100の傾きを検出する記録紙検出部42と、記録紙検出部42により検出された記録紙100の傾きに応じ印刷データを傾けて記録紙100に印刷可能か否か判断し、印刷可能と判断した場合、印刷データを傾けて印刷ヘッド18により記録紙100に印刷させる制御部110と、を備える。
According to this embodiment, the following effects can be obtained.
The printing device 10 includes a print head 18 that prints print data on the recording paper 100, a transport unit H that conveys the recording paper 100, and a recording paper detection unit 42 that detects the inclination of the recording paper 100 conveyed by the transport unit H. The print data is tilted according to the tilt of the recording paper 100 detected by the recording paper detection unit 42 to determine whether or not printing is possible on the recording paper 100, and if it is determined that printing is possible, the print data is tilted and the print head 18 is tilted. A control unit 110 for printing on the recording paper 100 is provided.

制御部110は、記録紙100の傾きに応じて印刷データを傾けて記録紙100に印刷可能か判断し、すべての印刷データが印刷できる場合にだけ印刷を実行し、一部の印刷データが欠ける場合は実行しない。特に金額に関する印刷データの場合、すべてを印刷することが重要である。これにより、記録紙100が傾いても印刷データの欠けた印刷物が出力されることを抑制できる。 The control unit 110 tilts the print data according to the tilt of the recording paper 100 to determine whether printing is possible on the recording paper 100, executes printing only when all the print data can be printed, and lacks some print data. If not executed. Especially in the case of print data related to monetary amounts, it is important to print everything. As a result, even if the recording paper 100 is tilted, it is possible to suppress the output of printed matter lacking print data.

制御部110は、記録紙100が傾きα傾いているときの印刷範囲に対応する第2記憶領域310である第1領域が、印刷装置本体11の各構成要素による制限で規定される印刷可能範囲である第2領域の範囲内である場合に印刷可能と判断する。
記録紙100の傾きの大きさによっては、印刷データを傾けてもすべての印刷データを印刷できない場合がある。制御部110は、印刷ヘッド18を含む印刷装置本体11の各構成要素が印刷可能な領域の範囲内と判断できた場合に、すべての印刷データの印刷を実行するので、印刷データの欠けた印刷物が出力されることを抑制できる。
In the control unit 110, the first area, which is the second storage area 310 corresponding to the print range when the recording paper 100 is tilted by α, is the printable range defined by the limitation by each component of the printing apparatus main body 11. If it is within the range of the second area, it is determined that printing is possible.
Depending on the size of the tilt of the recording paper 100, it may not be possible to print all the print data even if the print data is tilted. Since the control unit 110 prints all the print data when it is determined that each component of the printing apparatus main body 11 including the print head 18 is within the printable area, the printed matter lacking the print data. Can be suppressed from being output.

印刷データを記憶する第1記憶部200と、印刷データを傾けて記憶する第2記憶部300と、を備え、第1記憶部200は、搬送部Hによる記録紙100の搬送方向に対応する方向を第1方向とし、搬送方向と交わる方向に対応する方向を第2方向とする第1座標に印刷データを記憶し、第2記憶部300は、記録紙検出部42で検出された記録紙100の傾きに基づき、第1方向と第2方向とを有する第2座標に印刷データを傾けて記憶する。
第1記憶部200と第2記憶部300の各座標を用いて印刷データを簡単に効率よく傾けることができる。
A first storage unit 200 for storing print data and a second storage unit 300 for tilting and storing print data are provided, and the first storage unit 200 has a direction corresponding to the transport direction of the recording paper 100 by the transport unit H. The print data is stored in the first coordinates whose first direction is the direction corresponding to the direction intersecting the transport direction, and the second storage unit 300 is the recording paper 100 detected by the recording paper detection unit 42. The print data is tilted and stored in the second coordinates having the first direction and the second direction based on the tilt of.
The print data can be easily and efficiently tilted by using the coordinates of the first storage unit 200 and the second storage unit 300.

制御部110は、所定の印刷データが記憶されている第1記憶部の第1位置に基づき、記録紙100の傾きに応じて第1座標の原点を中心に所定角度回転した位置に対応する第2記憶部300の第2位置を算出し、第1記憶部200の第1位置から所定の印刷データを読み出し第2記憶部300の第2位置に記憶する。
座標に基づく印刷データの回転により印刷データを簡単に傾けることができる。
The control unit 110 corresponds to a position rotated by a predetermined angle about the origin of the first coordinate according to the inclination of the recording paper 100 based on the first position of the first storage unit in which the predetermined print data is stored. 2 The second position of the storage unit 300 is calculated, predetermined print data is read from the first position of the first storage unit 200, and the predetermined print data is stored in the second position of the second storage unit 300.
The print data can be easily tilted by rotating the print data based on the coordinates.

制御部110は、算出した第2記憶部300の第2位置を記録紙100の傾きに応じて所定値移動する。
回転により傾けた印刷データに移動を加えて簡単に位置を調整することができる。
The control unit 110 moves the calculated second position of the second storage unit 300 by a predetermined value according to the inclination of the recording paper 100.
The position can be easily adjusted by moving the print data tilted by rotation.

ホストコンピューター500から印刷データを受信する通信部120を備え、第1記憶部200は、通信部120により受信した印刷データを第1座標に基づき記憶する。
ホストコンピューター500から受信した印刷データを、座標に基づいて第1記憶部200に簡単に記憶することができる。
A communication unit 120 for receiving print data from the host computer 500 is provided, and the first storage unit 200 stores the print data received by the communication unit 120 based on the first coordinates.
The print data received from the host computer 500 can be easily stored in the first storage unit 200 based on the coordinates.

制御部110は、第2記憶部300の第2座標に基づき印刷データを読み出して印刷ヘッド18により印刷させる。
第2記憶部300の印刷データは傾いた状態となっているので、印刷データを読み出して印刷ヘッド18により印刷すると傾いた印刷結果を得ることができる。
The control unit 110 reads out the print data based on the second coordinates of the second storage unit 300 and causes the print head 18 to print the print data.
Since the print data of the second storage unit 300 is in a tilted state, when the print data is read out and printed by the print head 18, a tilted print result can be obtained.

以上、これらの実施形態を、図面を参照して詳述してきたが、具体的な構成はこれらの実施形態に限られるものではなく、この発明の要旨を逸脱しない限り、変更、置換、削除等されてもよい。
印刷装置10は、ドットインパクトプリンターの例で説明したが、印刷ヘッド18がキャリッジ19に搭載されて走査されるシリアルタイプのプリンターであれば、印刷ヘッド18の方式は問わない。例えば、インクジェットヘッドを備えたインクジェットプリンターでもよい。
Although these embodiments have been described in detail with reference to the drawings, the specific configuration is not limited to these embodiments, and changes, substitutions, deletions, etc. are made as long as the gist of the present invention is not deviated. May be done.
Although the printing device 10 has been described with the example of a dot impact printer, the printing head 18 may be of any type as long as the printing head 18 is mounted on the carriage 19 and scanned. For example, an inkjet printer provided with an inkjet head may be used.

また、以上に説明した装置における任意の構成部の機能を実現するためのプログラムを、コンピューターに読み取り可能な記録媒体に記録し、そのプログラムをコンピューターシステムに読み込ませて実行するようにしてもよい。ここで、当該装置は、例えば、印刷装置10、ホストコンピューター500等である。なお、ここでいう「コンピューターシステム」とは、OS(OperatingSystem)や周辺機器等のハードウェアを含むものとする。また、「コンピューター読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD(CompactDisk)−ROM等の可搬媒体、コンピューターシステムに内蔵されるハードディスク等の記憶装置を含む。さらに「コンピューター読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムが送信された場合のサーバーやクライアントとなるコンピューターシステム内部の揮発性メモリーのように、一定時間プログラムを保持しているものも含むものとする。 Further, a program for realizing the function of an arbitrary component in the apparatus described above may be recorded on a recording medium readable by a computer, and the program may be read by a computer system and executed. Here, the apparatus is, for example, a printing apparatus 10, a host computer 500, or the like. The term "computer system" as used herein includes hardware such as an OS (Operating System) and peripheral devices. Further, the "computer-readable recording medium" includes a flexible disk, a magneto-optical disk, a portable medium such as a ROM, a CD (CompactDisk) -ROM, and a storage device such as a hard disk built in a computer system. Furthermore, a "computer-readable recording medium" is a constant like the volatile memory inside a computer system that becomes a server or client when a program is transmitted via a network such as the Internet or a communication line such as a telephone line. It shall include those holding a time program.

また、上記のプログラムは、このプログラムを記憶装置等に格納したコンピューターシステムから、伝送媒体を介して、あるいは、伝送媒体中の伝送波により他のコンピューターシステムに伝送されてもよい。ここで、プログラムを伝送する「伝送媒体」は、インターネット等のネットワークや電話回線等の通信回線のように情報を伝送する機能を有する媒体のことをいう。
また、上記のプログラムは、前述した機能の一部を実現するためのものであってもよい。さらに、上記のプログラムは、前述した機能をコンピューターシステムにすでに記録されているプログラムとの組み合わせで実現できるもの、いわゆる差分ファイル又は差分プログラムであってもよい。
Further, the above program may be transmitted from a computer system in which this program is stored in a storage device or the like to another computer system via a transmission medium or by a transmission wave in the transmission medium. Here, the "transmission medium" for transmitting a program means a medium having a function of transmitting information, such as a network such as the Internet or a communication line such as a telephone line.
Further, the above program may be for realizing a part of the above-mentioned functions. Further, the above program may be a so-called difference file or a difference program that can realize the above-mentioned functions in combination with a program already recorded in the computer system.

10…印刷装置、18…印刷ヘッド、19…キャリッジ、20…印刷部、41…シャッター、42…記録紙検出部、43…光センサー、100…記録紙、110…制御部、112…ROM、113…RAM、120…通信部、200…第1記憶部、300…第2記憶部、500…ホストコンピューター、H…搬送部、M1…搬送モーター、M2…キャリッジ駆動モーター、M3…シャッターモーター。 10 ... Printing device, 18 ... Print head, 19 ... Carriage, 20 ... Printing unit, 41 ... Shutter, 42 ... Recording paper detection unit, 43 ... Optical sensor, 100 ... Recording paper, 110 ... Control unit, 112 ... ROM, 113 ... RAM, 120 ... communication unit, 200 ... first storage unit, 300 ... second storage unit, 500 ... host computer, H ... transfer unit, M1 ... transfer motor, M2 ... carriage drive motor, M3 ... shutter motor.

Claims (8)

記録紙に印刷データを印刷する印刷部と、
前記記録紙を搬送する搬送部と、
前記搬送部により搬送される前記記録紙の傾きを検出する記録紙検出部と、
前記記録紙検出部により検出された前記記録紙の傾きに応じ前記印刷データを傾けて前記記録紙に印刷可能か否か判断し、印刷可能と判断した場合、前記印刷データを傾けて前記印刷部により前記記録紙に印刷させる制御部と、を備える印刷装置。
A printing unit that prints print data on recording paper,
A transport unit that transports the recording paper and
A recording paper detection unit that detects the inclination of the recording paper conveyed by the transfer unit, and a recording paper detection unit.
The print data is tilted according to the tilt of the recording paper detected by the recording paper detection unit to determine whether or not printing is possible on the recording paper, and if it is determined that printing is possible, the print data is tilted to the printing unit. A printing device including a control unit for printing on the recording paper.
前記制御部は、
前記印刷データを傾けたときの第1領域が、前記印刷部により前記記録紙に印刷可能な第2領域の範囲内である場合に印刷可能と判断する、請求項1に記載の印刷装置。
The control unit
The printing apparatus according to claim 1, wherein it is determined that printing is possible when the first area when the print data is tilted is within the range of the second area that can be printed on the recording paper by the printing unit.
前記印刷データを記憶する第1記憶部と、
前記印刷データを傾けて記憶する第2記憶部と、を備え、
前記第1記憶部は、前記搬送部による前記記録紙の搬送方向に対応する方向を第1方向とし、前記搬送方向と交わる方向に対応する方向を第2方向とする第1座標に前記印刷データを記憶し、
前記第2記憶部は、前記記録紙検出部で検出された前記記録紙の傾きに基づき、前記第1方向と前記第2方向とを有する第2座標に前記印刷データを傾けて記憶する、請求項1または請求項2に記載の印刷装置。
A first storage unit for storing the print data and
A second storage unit that tilts and stores the print data is provided.
The first storage unit has the print data at the first coordinates in which the direction corresponding to the transport direction of the recording paper by the transport unit is the first direction and the direction corresponding to the direction intersecting the transport direction is the second direction. Remember,
The second storage unit tilts and stores the print data at the second coordinates having the first direction and the second direction based on the inclination of the recording paper detected by the recording paper detection unit. Item 1 or the printing apparatus according to claim 2.
前記制御部は、
所定の印刷データが記憶されている前記第1記憶部の第1位置に基づき、前記記録紙の傾きに応じて前記第1座標の原点を中心に所定角度回転した位置に対応する前記第2記憶部の第2位置を算出し、前記第1記憶部の第1位置から前記所定の印刷データを読み出し前記第2記憶部の第2位置に記憶する、請求項3に記載の印刷装置。
The control unit
Based on the first position of the first storage unit in which predetermined print data is stored, the second storage corresponding to a position rotated by a predetermined angle about the origin of the first coordinate according to the inclination of the recording paper. The printing apparatus according to claim 3, wherein the second position of the unit is calculated, the predetermined print data is read from the first position of the first storage unit, and the predetermined print data is stored in the second position of the second storage unit.
前記制御部は、
算出した前記第2記憶部の第2位置を前記記録紙の傾きに応じて所定値移動する、請求項4に記載の印刷装置。
The control unit
The printing apparatus according to claim 4, wherein the calculated second position of the second storage unit is moved by a predetermined value according to the inclination of the recording paper.
外部装置から前記印刷データを受信する通信部を備え、
前記第1記憶部は、前記通信部により受信した前記印刷データを前記第1座標に基づき記憶する、請求項3から請求項5のいずれか1項に記載の印刷装置。
It is equipped with a communication unit that receives the print data from an external device.
The printing device according to any one of claims 3 to 5, wherein the first storage unit stores the print data received by the communication unit based on the first coordinates.
前記制御部は、
前記第2記憶部の前記第2座標に基づき前記印刷データを読み出して前記印刷部により印刷させる、請求項3から請求項6のいずれか1項に記載の印刷装置。
The control unit
The printing apparatus according to any one of claims 3 to 6, wherein the print data is read out based on the second coordinates of the second storage unit and printed by the printing unit.
記録紙に印刷データを印刷する印刷部と、前記記録紙を搬送する搬送部と、前記搬送部により搬送される前記記録紙の傾きを検出する記録紙検出部と、を備える印刷装置の制御方法であって、
前記記録紙検出部により前記記録紙の傾きを検出し、検出した前記記録紙の傾きに応じ前記印刷データを傾けて前記記録紙に印刷可能か否か判断し、印刷可能と判断した場合、前記印刷データを傾けて前記印刷部により前記記録紙に印刷する、印刷装置の制御方法。
A control method for a printing apparatus including a printing unit that prints print data on a recording paper, a transport unit that conveys the recording paper, and a recording paper detection unit that detects the inclination of the recording paper conveyed by the transport unit. And
When the recording paper detection unit detects the tilt of the recording paper, tilts the print data according to the detected tilt of the recording paper, determines whether or not the printing is possible on the recording paper, and determines that printing is possible. A method for controlling a printing apparatus in which print data is tilted and printed on the recording paper by the printing unit.
JP2020099895A 2020-06-09 2020-06-09 Printing device and method for controlling printing device Pending JP2021194771A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020099895A JP2021194771A (en) 2020-06-09 2020-06-09 Printing device and method for controlling printing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020099895A JP2021194771A (en) 2020-06-09 2020-06-09 Printing device and method for controlling printing device

Publications (1)

Publication Number Publication Date
JP2021194771A true JP2021194771A (en) 2021-12-27

Family

ID=79196939

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020099895A Pending JP2021194771A (en) 2020-06-09 2020-06-09 Printing device and method for controlling printing device

Country Status (1)

Country Link
JP (1) JP2021194771A (en)

Similar Documents

Publication Publication Date Title
US8573591B2 (en) Optical reader, control method of optical reader, and computer-readable recording medium that shortened first transport distance of medium
JP5115521B2 (en) Printing apparatus and printing method
JP2021194771A (en) Printing device and method for controlling printing device
JP6238599B2 (en) Print control apparatus, print control method, and program
JPH10291689A (en) Printer
JP7418088B2 (en) Printing devices, control methods, and programs
JPH10157243A (en) Bankbook slip printer
JP2007176639A (en) Recording device and control method for recording device
CN113247654B (en) Printing apparatus and control method of printing apparatus
JP3089578U (en) Inkjet printer
JP2014240158A (en) Recording controller, recording method, and program
JP2009223947A (en) Recording device and method for controlling the same
JP2008012894A (en) Apparatus and method for discriminating among types of media
JP4830704B2 (en) Recording apparatus and recording program
JP2021187107A (en) Printer
JP2010017995A (en) Inkjet printer
JP2006044097A (en) Printer
JP2007268773A (en) Printer
JP3394134B2 (en) Media processing device
JP2020093885A (en) Printing device and control method for printing device
US8885203B2 (en) Optical reading device and control method for an optical reading device
JPH06262819A (en) Printer
JP2000351481A (en) Passbook printer device, passbook conveying method for it, and image reader
JP2020093441A (en) Printing device and control method for printing device
JP2007238326A (en) Sheet carrying device and recording device

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20210913

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20211104