JP2010069820A - Printing apparatus - Google Patents

Printing apparatus Download PDF

Info

Publication number
JP2010069820A
JP2010069820A JP2008242299A JP2008242299A JP2010069820A JP 2010069820 A JP2010069820 A JP 2010069820A JP 2008242299 A JP2008242299 A JP 2008242299A JP 2008242299 A JP2008242299 A JP 2008242299A JP 2010069820 A JP2010069820 A JP 2010069820A
Authority
JP
Japan
Prior art keywords
printing
print medium
print
print data
medium
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
JP2008242299A
Other languages
Japanese (ja)
Other versions
JP5315887B2 (en
Inventor
Akihiro Sawada
昭広 澤田
Yoshijiro Yamamoto
好次郎 山本
Shigeto Muto
成人 武藤
Akihiko Niwa
明彦 丹羽
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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2008242299A priority Critical patent/JP5315887B2/en
Publication of JP2010069820A publication Critical patent/JP2010069820A/en
Application granted granted Critical
Publication of JP5315887B2 publication Critical patent/JP5315887B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)
  • Facsimile Scanning Arrangements (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a printing apparatus which surely prints a printing data at a determined position on a printing medium, even if the printing medium is not precisely laid at a base position. <P>SOLUTION: When the printing data is transported from an outer device to the printing apparatus, a surface of an installation table is read out as an image (S11). Then, the position of the printing medium on the installation table is detected (S12). A displacement amount to the position of the printing medium detected at S12 is calculated for the base position for laying the printing medium on the loading table (S13, S19). Then, based on the displacement amount, the printing data is converted (S20, S21) and the printing data after conversion is printed on the printing medium (S23). Further, in accordance with the position of the printing medium on the installation table detected at S12 (S15), a format (an arrangement) of the printing data is changed (S16-S18). <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、印刷媒体を印刷する印刷装置に関する。   The present invention relates to a printing apparatus that prints a print medium.

従来、印刷装置で印刷媒体を印刷する場合、印刷データを印刷媒体上の所定の位置に印刷するために、印刷媒体を予め決められた基準位置に位置決めする必要があった(例えば、特許文献1参照。)。この特許文献1に記載の発明では、位置決めしやすいように、位置決めマークが設けられている。
特開2000−302273号公報
Conventionally, when printing a print medium with a printing apparatus, it is necessary to position the print medium at a predetermined reference position in order to print the print data at a predetermined position on the print medium (for example, Patent Document 1). reference.). In the invention described in Patent Document 1, a positioning mark is provided to facilitate positioning.
JP 2000-302273 A

しかしながら、印刷媒体を位置決めするユーザの手元がぶれることがあるので、位置決めマークがあったとしても、位置決めを正確にすることは困難である。したがって、印刷媒体に印刷された印刷データが印刷媒体に対して傾いていたり、一部が欠けていたりするなど、印刷データが印刷媒体上の所定の位置に印刷されないことが度々生じていた。   However, since the user who positions the print medium may be shaken, it is difficult to accurately position even if there is a positioning mark. Therefore, the print data printed on the print medium is often not printed at a predetermined position on the print medium, for example, the print data is inclined with respect to the print medium or part of the print data is missing.

本発明は、以上の問題点に鑑みてなされたものであり、印刷媒体が基準位置に正確に載置されていなくても、印刷データが印刷媒体上の所定の位置に確実に印刷される印刷装置を提供することを目的とする。   The present invention has been made in view of the above problems, and printing in which print data is reliably printed at a predetermined position on a print medium even if the print medium is not accurately placed at a reference position. An object is to provide an apparatus.

上記目的を達成するために、請求項1の印刷装置は、印刷データを印刷する印刷手段により、載置台に載置された印刷媒体に印刷を行う印刷装置であって、前記印刷媒体が載置された載置台の面を画像として読み取る画像読取手段と、前記画像読取手段が読み取った画像に基づいて、前記載置台上の印刷媒体の位置を検出する検出手段と、前記載置台上での印刷媒体を載置するための基準位置に対して、前記検出手段が検出した印刷媒体の位置までの変位量を算出する変位量算出手段と、前記変位量算出手段が算出した変位量に基づいて、前記印刷データが前記印刷媒体上の所定の位置に印刷できるように前記印刷データを変換する印刷データ変換手段と、前記印刷データ変換手段が変換した印刷データに基づいて前記印刷手段を制御して前記印刷媒体に印刷を行う印刷制御手段とを備えることを特徴とする。   In order to achieve the above object, a printing apparatus according to claim 1 is a printing apparatus that performs printing on a printing medium placed on a mounting table by a printing unit that prints print data. Image reading means for reading the surface of the mounting table as an image, detection means for detecting the position of the print medium on the mounting table based on the image read by the image reading means, and printing on the mounting table Based on the amount of displacement calculated by the amount of displacement calculated by the amount of displacement calculated by the amount of displacement calculated by the amount of displacement calculated by the amount of displacement calculated by the amount of displacement calculated by the amount of displacement calculated by the detecting unit. Print data conversion means for converting the print data so that the print data can be printed at a predetermined position on the print medium, and the print means is controlled based on the print data converted by the print data conversion means to Characterized in that it comprises a printing control unit for printing on the print medium.

また、請求項2の印刷装置は、請求項1に記載の発明の構成に加え、前記検出手段が検出した前記載置台上の印刷媒体の位置に応じて、前記印刷データ変換手段が変換する印刷データの書式を変更する書式変更手段をさらに備えることを特徴とする。   According to a second aspect of the present invention, in addition to the configuration of the first aspect of the invention, the printing apparatus converts the print data conversion unit according to the position of the print medium on the mounting table detected by the detection unit. It further comprises format changing means for changing the format of the data.

請求項1の印刷装置によれば、画像読取手段は、印刷媒体が載置された載置台の面を画像として読み取り、検出手段は、その画像に基づいて、載置台上の印刷媒体の位置を検出できる。そして、変位量算出手段は、載置台上での印刷媒体を載置するための基準位置に対して、前記検出手段が検出した印刷媒体の位置までの変位量を算出できる。印刷データ変換手段は、変位量算出手段が算出した変位量に基づいて、前記印刷データが前記印刷媒体上の所定の位置に印刷できるように前記印刷データを変換できる。そして、印刷制御手段は、印刷データ変換手段が変換した印刷データに基づいて前記印刷手段を制御して前記印刷媒体に印刷を行うことができる。   According to the printing apparatus of the first aspect, the image reading unit reads the surface of the mounting table on which the printing medium is mounted as an image, and the detecting unit determines the position of the printing medium on the mounting table based on the image. It can be detected. The displacement amount calculation means can calculate the displacement amount up to the position of the print medium detected by the detection means with respect to the reference position for placing the print medium on the mounting table. The print data conversion means can convert the print data based on the displacement calculated by the displacement calculation means so that the print data can be printed at a predetermined position on the print medium. The print control means can control the printing means based on the print data converted by the print data conversion means to perform printing on the print medium.

したがって、印刷媒体が基準位置に正確に載置されていなくても、印刷データが印刷媒体上の所定の位置に確実に印刷される。   Therefore, even if the print medium is not accurately placed at the reference position, the print data is reliably printed at a predetermined position on the print medium.

また、請求項2の印刷装置は、請求項1に記載の発明の効果に加え、ユーザは印刷媒体を載置台のどこに載置するかによって、印刷データの書式を自由に調節することができる。   In addition to the effect of the invention described in claim 1, the user can freely adjust the format of the print data depending on where the print medium is placed on the placement table.

以下、本発明に係る印刷装置に実施形態について、図面を参照して説明する。図1は、印刷装置20の電気的構成を示したブロック図である。図2は印刷装置20の機械的構成を示した平面図であり、図3は印刷装置20の機械的構成を示した側面図である。また、図3は、載置台25の面25aの平面図である。図1〜図3に示すように、印刷装置20は、制御回路21、印字ヘッド22、CCDイメージセンサ23、キャリッジモータ24、載置台25、キャリッジ26及びガイド部材27を備えている。   Hereinafter, embodiments of a printing apparatus according to the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing an electrical configuration of the printing apparatus 20. FIG. 2 is a plan view showing a mechanical configuration of the printing apparatus 20, and FIG. 3 is a side view showing the mechanical configuration of the printing apparatus 20. FIG. 3 is a plan view of the surface 25 a of the mounting table 25. As shown in FIGS. 1 to 3, the printing apparatus 20 includes a control circuit 21, a print head 22, a CCD image sensor 23, a carriage motor 24, a mounting table 25, a carriage 26, and a guide member 27.

制御回路21は、内部にCPU211、ROM212、RAM213が相互に図示しないバスを介して接続されている。そして、CPU211がROM212に記憶されているプログラムに従って各種処理を実行する。具体的には、パーソナルコンピュータなどの外部機器から印刷データを受信して、印字ヘッド22を用いて印刷媒体に印刷をするメイン処理を実行する。このメイン処理については、フローチャートを参照して後述する。また、制御回路21は、印字ヘッド22、CCDイメージセンサ23及びキャリッジモータ24と電気的に接続されており、それらの動作を制御する。なお、RAM213はメイン処理の過程で、各種データを一時的に記憶する。   In the control circuit 21, a CPU 211, a ROM 212, and a RAM 213 are connected to each other via a bus (not shown). Then, the CPU 211 executes various processes according to programs stored in the ROM 212. Specifically, print data is received from an external device such as a personal computer, and main processing for printing on a print medium using the print head 22 is executed. This main process will be described later with reference to a flowchart. The control circuit 21 is electrically connected to the print head 22, the CCD image sensor 23, and the carriage motor 24, and controls their operations. The RAM 213 temporarily stores various data during the main process.

直方体形状の載置台25は、その表面である面25aに印刷媒体を載置するためのものである。また、キャリッジ26は、図1に示すキャリッジモータ24と機械的に接続されている。そして、そのキャリッジモータ24は、制御回路21の可動指示信号に基づいて回転し、その回転によって、図2に示す載置台25の長さ方向に延設されたガイド部材27に沿って、キャリッジ26を載置台25の長さ方向に可動させるモータである。また、キャリッジ26には、印字ヘッド22及びCCDイメージセンサ23が連結されている。そのキャリッジ26は、自身が可動することによって、印字ヘッド22及びCCDイメージセンサ23を載置台25の長さ方向に可動させるための部材である。   The rectangular parallelepiped mounting table 25 is for mounting a printing medium on the surface 25a which is the surface thereof. The carriage 26 is mechanically connected to the carriage motor 24 shown in FIG. The carriage motor 24 rotates based on the movable instruction signal from the control circuit 21, and the carriage 26 moves along the guide member 27 extending in the length direction of the mounting table 25 shown in FIG. 2 by the rotation. Is a motor that can be moved in the length direction of the mounting table 25. A print head 22 and a CCD image sensor 23 are connected to the carriage 26. The carriage 26 is a member for moving the print head 22 and the CCD image sensor 23 in the length direction of the mounting table 25 by moving itself.

印字ヘッド22は、本発明の「印刷手段」に相当し、図2に示す載置台25の幅方向全体に延設された矩形状のインクジェット方式の印字ヘッドである。その印字ヘッド22は、制御回路21から印刷の指示がされたときに、キャリッジ26が載置台25の長さ方向に可動されて、それに伴って、載置台25の面25aに載置されている印刷媒体にインクを吐出して印刷データを印刷するものである。このため、印字ヘッド22から吐出されたインクが印刷媒体の正しい位置に滴下されるように、図3に示すように印字ヘッド22は載置台25の面25aと対向し且つ近設している。   The print head 22 corresponds to the “printing means” of the present invention, and is a rectangular ink jet type print head extending in the entire width direction of the mounting table 25 shown in FIG. The print head 22 is mounted on the surface 25 a of the mounting table 25 as the carriage 26 is moved in the length direction of the mounting table 25 when a printing instruction is given from the control circuit 21. Print data is printed by ejecting ink onto a print medium. For this reason, as shown in FIG. 3, the print head 22 faces and closes the surface 25 a of the mounting table 25 so that the ink ejected from the print head 22 is dropped at the correct position of the print medium.

CCDイメージセンサ23は、図2に示す載置台25の幅方向全体に延設された矩形状の、載置台25の面25aからの光信号を電気信号に変換するセンサである。そのCCDイメージセンサ23は、載置台25上における印刷媒体の位置を検出するための、面25aの画像を読み取るためのものである。すなわち、制御回路21から画像読み取りの指示がされたときに、キャリッジ26が載置台25の長さ方向に可動されて、それに伴って、CCDイメージセンサ23は、面25aを画像として読み取るものである。ここで、面25aの画像を確実に読み取るために、図3に示すように、CCDイメージセンサ23は載置台25の面25aと対向し且つ近設している。なお、CCDイメージセンサ23の代わりに、CMOSイメージセンサを用いてもよい。   The CCD image sensor 23 is a sensor that converts an optical signal from the surface 25a of the mounting table 25 into an electrical signal, which extends in the entire width direction of the mounting table 25 shown in FIG. The CCD image sensor 23 is for reading an image on the surface 25 a for detecting the position of the print medium on the mounting table 25. That is, when an image reading instruction is issued from the control circuit 21, the carriage 26 is moved in the length direction of the mounting table 25, and accordingly, the CCD image sensor 23 reads the surface 25a as an image. . Here, in order to reliably read the image on the surface 25a, the CCD image sensor 23 faces and is close to the surface 25a of the mounting table 25 as shown in FIG. A CMOS image sensor may be used instead of the CCD image sensor 23.

ここで、図4は載置台25の面25aの詳細を示した図である。図4に示すように、載置台25の面25aには、印刷媒体を基準位置に位置決めするための、印刷媒体の大きさに応じた位置決めマークが記されている。なお、図4では、一つの印刷媒体の大きさに対する位置決めマーク1が示されている。この位置決めマーク1に従って、印刷媒体を基準位置に載置した場合には、印刷データが印刷媒体の所定の位置に印刷される。また、載置台25の面25aの平面視中央には「中央揃え」という文字が記されており、平面視右側には「右詰め」という文字が記されており、平面視左側には「左詰め」という文字が記されている。ここで、印刷媒体を「中央揃え」と記されている付近に載置した場合は、後述するメイン処理において、印刷媒体の中央に印刷データが印刷される。また、印刷媒体を「右詰め」と記されている付近に載置した場合は、後述するメイン処理において、印刷媒体に右詰めで印刷データが印刷される。また、印刷媒体を「左詰め」と記されている付近に載置した場合は、後述するメイン処理において、印刷媒体に左詰めで印刷データが印刷される。   Here, FIG. 4 is a diagram showing details of the surface 25a of the mounting table 25. FIG. As shown in FIG. 4, on the surface 25a of the mounting table 25, a positioning mark according to the size of the printing medium for positioning the printing medium at the reference position is written. In FIG. 4, a positioning mark 1 for one print medium size is shown. When the print medium is placed at the reference position according to the positioning mark 1, print data is printed at a predetermined position on the print medium. In addition, a character “center alignment” is written at the center of the surface 25a of the mounting table 25 in the plan view, a character “right justified” is written on the right side of the plan view, and “left” is shown on the left side of the plan view. The word “padded” is written. Here, when the print medium is placed in the vicinity of “center alignment”, print data is printed at the center of the print medium in a main process described later. Further, when the print medium is placed in the vicinity of “right-justified”, the print data is printed right-justified on the print medium in the main process described later. Further, when the print medium is placed in the vicinity of “left-justified”, the print data is printed left-justified on the print medium in the main process described later.

続いて、制御回路21が実行するメイン処理について、図5のフローチャートを参照して説明する。図5はメイン処理を示したフローチャートである。ここで、メイン処理を説明するにあたって、図6に示すように、印刷媒体50が、基準位置とは異なる位置に載置された場合について説明する。また、4つの位置決めマーク1の中心点を原点Oとして、載置台25の長さ方向にX軸が、幅方向にY軸が制御回路21において定義されている。このX軸は、基準位置に印刷媒体50が載置されたときに、その印刷媒体50の上下の境界線と平行となるように定められる。また、Y軸は、基準位置に印刷媒体50が載置されたときに、その印刷媒体50の左右の境界線と平行となるように定められる。したがって、X軸とY軸は直交している。なお、メイン処理は外部機器から印刷データが送信されてきたときに開始される。   Next, main processing executed by the control circuit 21 will be described with reference to the flowchart of FIG. FIG. 5 is a flowchart showing the main process. Here, in describing the main process, a case where the print medium 50 is placed at a position different from the reference position as illustrated in FIG. 6 will be described. Further, with the center point of the four positioning marks 1 as the origin O, the control circuit 21 defines the X axis in the length direction of the mounting table 25 and the Y axis in the width direction. The X axis is determined to be parallel to the upper and lower boundary lines of the print medium 50 when the print medium 50 is placed at the reference position. Further, the Y axis is determined to be parallel to the left and right boundary lines of the print medium 50 when the print medium 50 is placed at the reference position. Therefore, the X axis and the Y axis are orthogonal. The main process is started when print data is transmitted from an external device.

先ず、キャリッジモータ24に可動指示信号が送信されて、キャリッジモータ24が回転する。それに伴って、キャリッジ26がX軸方向に可動されて、そのキャリッジ26と接続されているCCDイメージセンサ23もX軸方向に可動される。そして、そのCCDイメージセンサ23で面25aが画像として読み取られる(S11)。なお、CCDイメージセンサ23は本発明の「画像読取手段」に相当する。次いで、その画像の濃淡の違いによって、印刷媒体50の角4点の座標が検出される(S12)。具体的には、面25aの色が記憶されており、画像において、面25aの色と異なる色になる部分との境界線が印刷媒体50の境界線とされる。そして、その境界線が折れ曲がる点の座標が検出される。ここで、図6に示すように、印刷媒体50の左下の角をA、右下の角をB、右上の角をC、左上の角をDとすると、A(Ax、Ay)、B(Bx、By)、C(Cx、Cy)、D(Dx、Dy)の4点の座標が検出される。なお、S12の処理を実行するCPU211は本発明の「検出手段」に相当する。   First, a movement instruction signal is transmitted to the carriage motor 24, and the carriage motor 24 rotates. Along with this, the carriage 26 is moved in the X-axis direction, and the CCD image sensor 23 connected to the carriage 26 is also moved in the X-axis direction. Then, the surface 25a is read as an image by the CCD image sensor 23 (S11). The CCD image sensor 23 corresponds to the “image reading unit” of the present invention. Next, the coordinates of the four corners of the print medium 50 are detected based on the difference in density of the image (S12). Specifically, the color of the surface 25 a is stored, and the boundary line between the image and the portion that is different from the color of the surface 25 a is the boundary line of the print medium 50. Then, the coordinates of the point where the boundary line is bent are detected. Here, as shown in FIG. 6, assuming that the lower left corner of the print medium 50 is A, the lower right corner is B, the upper right corner is C, and the upper left corner is D, A (Ax, Ay), B ( The coordinates of four points Bx, By), C (Cx, Cy), and D (Dx, Dy) are detected. The CPU 211 that executes the process of S12 corresponds to the “detection unit” of the present invention.

次いで、A(Ax、Ay)とC(Cx、Cy)の中点が、印刷媒体50の中央の座標P(Px、Py)として算出される(S13)。なお、B(Bx、By)とD(Dx、Dy)の中点を座標P(Px、Py)として算出してもよい。さらに、A(Ax、Ay)とB(Bx、By)との距離が、印刷媒体50の横長さLとして算出される(S14)。なお、C(Cx、Cy)とD(Dx、Dy)との距離を、印刷媒体50の横長さLとして算出してもよい。   Next, the midpoint of A (Ax, Ay) and C (Cx, Cy) is calculated as the central coordinate P (Px, Py) of the print medium 50 (S13). Note that the midpoint of B (Bx, By) and D (Dx, Dy) may be calculated as coordinates P (Px, Py). Further, the distance between A (Ax, Ay) and B (Bx, By) is calculated as the lateral length L of the print medium 50 (S14). Note that the distance between C (Cx, Cy) and D (Dx, Dy) may be calculated as the lateral length L of the print medium 50.

次いで、中央の座標PのX座標の値Pxが参照されて(S15)、Pxが横長さLの±20%の範囲内の場合(Px≦|L×0.2|)は、印刷媒体50が「中央揃え」と記されている付近に載置されているとして、印刷媒体50の中央に印刷データが印刷されるように、印刷データが中央揃え変換される(S16)。また、中央の座標PのX座標の値Pxが参照されて(S15)、Pxが横長さLの−20%より小さい場合(Px<−L×0.2)は、印刷媒体50が「左詰め」と記されている付近に載置されているとして、印刷媒体50に左詰めして印刷データが印刷されるように、印刷データが左詰め変換される(S17)。また、中央の座標PのX座標の値Pxが参照されて(S15)、Pxが横長さLの+20%より大きい場合(Px>L×0.2)は、印刷媒体50が「右詰め」と記されている付近に載置されているとして、印刷媒体50に右詰めして印刷データが印刷されるように、印刷データが右詰め変換される(S18)。なお、S15〜S18の処理を実行するCPU211は本発明の「書式変更手段」に相当する。   Next, the value Px of the X coordinate of the central coordinate P is referred to (S15), and when Px is within a range of ± 20% of the horizontal length L (Px ≦ | L × 0.2 |), the print medium 50 Is placed in the vicinity of “center alignment”, the print data is center-aligned so that the print data is printed in the center of the print medium 50 (S16). If the X coordinate value Px of the central coordinate P is referred to (S15) and Px is smaller than −20% of the horizontal length L (Px <−L × 0.2), the print medium 50 is “left The print data is left-justified and converted so that the print data is printed left-justified on the print medium 50 assuming that it is placed in the vicinity of “padded” (S17). If the X coordinate value Px of the central coordinate P is referred to (S15) and Px is larger than + 20% of the horizontal length L (Px> L × 0.2), the print medium 50 is “right-justified”. The print data is right-justified and converted so that the print data is printed right-justified on the print medium 50 (S18). The CPU 211 that executes the processes of S15 to S18 corresponds to the “format changing unit” of the present invention.

次いで、S12において検出された印刷媒体50の角4点の座標に基づいて、基準位置に印刷媒体50が載置された場合におけるその印刷媒体50に対して、実際の印刷媒体50の傾きθが算出される(S19)。図6は、傾きθの算出方法を説明するための図であり、同図に示すように、X軸とA(Ax、Ay)及びB(Bx、By)を通る線分との角度が傾きθとして算出される。したがって、傾きθは以下に示す数1で算出される。なお、S13及びS19の処理を実行するCPU211は本発明の「変位量算出手段」に相当する。
(数1)
θ=tan−1((By−Ay)/(Bx−Ax))
Next, based on the coordinates of the four corners of the print medium 50 detected in S12, the actual inclination θ of the print medium 50 with respect to the print medium 50 when the print medium 50 is placed at the reference position is Calculated (S19). FIG. 6 is a diagram for explaining a method of calculating the inclination θ. As shown in the figure, the angle between the X axis and the line segment passing through A (Ax, Ay) and B (Bx, By) is inclined. Calculated as θ. Therefore, the inclination θ is calculated by the following formula 1. The CPU 211 that executes the processes of S13 and S19 corresponds to the “displacement amount calculation means” of the present invention.
(Equation 1)
θ = tan −1 ((By−Ay) / (Bx−Ax))

次いで、S13において算出された座標P(Px、Py)に基づいて、印刷データを平行移動する平行移動変換がなされる(S20)。具体的には、X軸方向にPxだけ印刷データを平行移動させるとともに、Y軸方向にPyだけ印刷データを平行移動させる。次いで、印刷データをS19にて算出された傾きθだけ回転させる回転変換がなされる(S21)。具体的には、印刷データを構成する画素の座標を(X1、Y1)とし、回転後の画素の座標を(X2、Y2)とすると、(X1、Y1)と(X2、Y2)との間には、以下の数2、3で示す関係がある。すなわち、数2、3の計算を施すことにより、印刷データが傾きθだけ回転されることになる。なお、S20及びS21の処理を実行するCPU211は本発明の「印刷データ変換手段」に相当する。
(数2)
X2=X1cosθ−Y1sinθ
(数3)
Y2=X1sinθ+Y1cosθ
Next, based on the coordinates P (Px, Py) calculated in S13, translation conversion for translating the print data is performed (S20). Specifically, the print data is translated by Px in the X-axis direction, and the print data is translated by Py in the Y-axis direction. Next, rotation conversion is performed to rotate the print data by the inclination θ calculated in S19 (S21). Specifically, assuming that the coordinates of the pixels constituting the print data are (X1, Y1) and the coordinates of the rotated pixels are (X2, Y2), the distance between (X1, Y1) and (X2, Y2) There is a relationship represented by the following formulas 2 and 3. That is, by performing the calculations of Equations 2 and 3, the print data is rotated by the inclination θ. The CPU 211 that executes the processes of S20 and S21 corresponds to the “print data conversion unit” of the invention.
(Equation 2)
X2 = X1 cos θ−Y1 sin θ
(Equation 3)
Y2 = X1sin θ + Y1 cos θ

次いで、S16〜S18のいずれかの変換、平行移動変換(S20)及び回転変換(S21)がなされた印刷データがバッファに展開される(S22)。その後、キャリッジモータ24に可動指示信号が送信されて、キャリッジモータ24が回転する。それに伴い、キャリッジ26がガイド部材27に沿ってX軸方向に可動され、そのキャリッジ26に接続されている印字ヘッド22も可動される。そして、その印字ヘッド22によって、S22でバッファに展開された印刷データが印刷媒体50に印刷され(S23)、メイン処理が終了する。なお、S23の処理を実行するCPU211は本発明の「印刷制御手段」に相当する。図8は印刷データが印刷媒体50に印刷された後の、印刷装置20の平面図であり、図8に示すように、印刷媒体50の傾きθに併せて印刷データが傾きθだけ回転されて印刷されている。さらに、印刷データが右詰めで印刷媒体50に印刷されている。すなわち、印刷データは「AH」であって、印刷媒体50は、面25aの「右詰め」と記されている付近に載置されたことになる。なお、印刷媒体50が、面25aの「中央揃え」と記されている付近に載置された場合には、図9に示すように、印刷媒体50の中央に印刷データが印刷される。一方、印刷媒体50が、面25aの「左揃え」と記されている付近に載置された場合には、図10に示すように、印刷媒体50に左詰めで印刷データが印刷される。   Next, the print data that has undergone any of the transformations of S16 to S18, translational transformation (S20), and rotational transformation (S21) is developed in a buffer (S22). Thereafter, a movable instruction signal is transmitted to the carriage motor 24, and the carriage motor 24 rotates. Accordingly, the carriage 26 is moved in the X-axis direction along the guide member 27, and the print head 22 connected to the carriage 26 is also moved. The print head 22 prints the print data expanded in the buffer in S22 on the print medium 50 (S23), and the main process ends. The CPU 211 that executes the process of S23 corresponds to the “print control unit” of the invention. FIG. 8 is a plan view of the printing apparatus 20 after the print data is printed on the print medium 50. As shown in FIG. 8, the print data is rotated by the inclination θ in accordance with the inclination θ of the print medium 50. It is printed. Further, the print data is printed on the print medium 50 right justified. That is, the print data is “AH”, and the print medium 50 is placed in the vicinity of “right-justified” on the surface 25a. Note that when the print medium 50 is placed in the vicinity of “center alignment” on the surface 25a, the print data is printed at the center of the print medium 50 as shown in FIG. On the other hand, when the print medium 50 is placed in the vicinity of “left alignment” on the surface 25a, the print data is printed on the print medium 50 left justified as shown in FIG.

以上、本実施形態の印刷装置20は、載置台25上の印刷媒体の位置が検出される(S12)。そして、載置台25上での印刷媒体を載置するための基準位置に対して、S12にて検出された印刷媒体の位置までの変位量が算出される(S13、S19)。そして、その変位量に基づいて、印刷データが変換され(S20、S21)、その変換後の印刷データが印刷媒体に印刷される(S23)。したがって、印刷媒体が基準位置に正確に載置されていなくても、印刷データが印刷媒体上の所定の位置に確実に印刷される。   As described above, the printing apparatus 20 of the present embodiment detects the position of the print medium on the mounting table 25 (S12). And the displacement amount to the position of the printing medium detected in S12 is calculated with respect to the reference position for placing the printing medium on the mounting table 25 (S13, S19). Based on the displacement, the print data is converted (S20, S21), and the converted print data is printed on the print medium (S23). Therefore, even if the print medium is not accurately placed at the reference position, the print data is reliably printed at a predetermined position on the print medium.

また、S12にて検出された載置台25上の印刷媒体の位置に応じて(S15)、印刷データの書式が変更される(S16〜S18)。具体的には、印刷媒体が載置台25の「中央揃え」と記されている付近に載置された場合には、印刷媒体の中央に印刷データが印刷される。また、印刷媒体が載置台25の「左詰め」と記されている付近に載置された場合には、印刷媒体に左詰めで印刷データが印刷される。また、印刷媒体が載置台25の「右詰め」と記されている付近に載置された場合には、印刷媒体に左詰めで印刷データが印刷される。これにより、ユーザは印刷媒体を載置台25のどこに載置するかによって、印刷データの書式(配置)を「中央揃え」、「左詰め」、「右詰め」のいずれかに調節することができる。したがって、パーソナルコンピュータなどの画面に設定画面を表示させて印刷データの配置を設定するときよりも、容易且つ迅速に印刷データの配置を設定することができる。   Further, according to the position of the print medium on the mounting table 25 detected in S12 (S15), the format of the print data is changed (S16 to S18). Specifically, when the print medium is placed in the vicinity of “center alignment” on the placement table 25, the print data is printed at the center of the print medium. Further, when the print medium is placed in the vicinity of “left-justified” on the placement table 25, the print data is printed left-justified on the print medium. Further, when the print medium is placed in the vicinity of “right-justified” on the placement table 25, the print data is printed on the print medium with left-justified. Accordingly, the user can adjust the print data format (arrangement) to one of “center alignment”, “left justification”, and “right justification” depending on where the print medium is placed on the placement table 25. . Therefore, the arrangement of the print data can be set easily and more quickly than when the setting screen is displayed on the screen of a personal computer or the like to set the arrangement of the print data.

なお、本発明に係る印刷装置は、上記実施形態に限定されるわけではなく、その趣旨を逸脱しない範囲において種々変形してもよい。例えば、印刷データの書式(配置)を「中央揃え」、「左詰め」、「右詰め」のいずれかにするかについて、上記実施形態では、印刷媒体の横長さLの±20%を閾値としていたが、±20%以外の割合を用いてもよい。また、横長さLに依存しない閾値を用いてもよい。   The printing apparatus according to the present invention is not limited to the above-described embodiment, and various modifications may be made without departing from the spirit of the printing apparatus. For example, in the above-described embodiment, whether the print data format (arrangement) is “center alignment”, “left justification”, or “right justification” is set to ± 20% of the horizontal length L of the print medium as a threshold value. However, a ratio other than ± 20% may be used. A threshold value that does not depend on the lateral length L may be used.

また、上記実施形態では、印刷データの書式(配置)を「中央揃え」、「左詰め」、「右詰め」のいずれかに変換していたが、「上詰め」や「下詰め」を追加してもよい。例えば、印刷媒体が面25aの上付近(図4の上方向)に載置されている場合には、印刷媒体に「上詰め」で印刷データを印刷するようにする。一方、印刷媒体が面25aの下付近(図4の下方向)に載置されている場合には、印刷媒体に「下詰め」で印刷データを印刷するようにする。   In the above embodiment, the format (arrangement) of the print data is converted to “center alignment”, “left justified”, or “right justified”, but “upper justified” or “bottom justified” is added. May be. For example, when the print medium is placed near the top of the surface 25a (upward in FIG. 4), the print data is printed on the print medium with “upper justification”. On the other hand, when the print medium is placed near the bottom of the surface 25a (downward in FIG. 4), the print data is printed on the print medium with “bottom justification”.

また、上記実施形態では、印刷データの書式(配置)を「中央揃え」、「左詰め」、「右詰め」の3つのいずれかに変換していた。すなわち、3つの閾値で書式の配置を決定していたが、さらに細かく閾値を設けて、例えば、印刷媒体が載置台25上の右に載置されるにしたがって、印刷データが印刷媒体の右に近づくようにする。   In the above embodiment, the format (arrangement) of the print data is converted into any one of “center alignment”, “left justification”, and “right justification”. That is, the layout of the format has been determined with three threshold values, but the threshold value is further finely set. For example, as the print medium is placed on the right side of the placement table 25, the print data is placed on the right side of the print medium. Try to get closer.

また、上記実施形態では、変更する書式として、印刷データの配置を変更していたが、載置台25上の印刷媒体の位置に応じて、印刷データの大きさや、印刷データに相当する文字の字体などその他の書式を変更してもよい。例えば、印刷媒体が面25aの上(図4の上方向)に載置されるにしたがって、印刷データの大きさを大きくしていく。   In the above embodiment, the layout of the print data is changed as the format to be changed. However, according to the position of the print medium on the mounting table 25, the size of the print data and the character font corresponding to the print data are displayed. Other formats may be changed. For example, the size of the print data is increased as the print medium is placed on the surface 25a (upward in FIG. 4).

印刷装置20の電気的構成を示したブロック図である。2 is a block diagram illustrating an electrical configuration of the printing apparatus 20. FIG. 印刷装置20の機械的構成を示した平面図である。3 is a plan view showing a mechanical configuration of the printing apparatus 20. FIG. 印刷装置20の機械的構成を示した側面図である。FIG. 2 is a side view showing a mechanical configuration of the printing apparatus 20. 載置台25の面25aの平面図である。3 is a plan view of a surface 25a of the mounting table 25. FIG. メイン処理を示したフローチャートである。It is the flowchart which showed the main process. 印刷媒体50の面25aにおける位置を説明するための図である。5 is a diagram for explaining a position on a surface 25a of the print medium 50. FIG. 傾きθの算出方法を説明するための図である。It is a figure for demonstrating the calculation method of inclination (theta). 印刷データが印刷媒体50に印刷された後の、印刷装置20の平面図である。2 is a plan view of the printing apparatus 20 after print data is printed on a print medium 50. FIG. 中央に印刷データが印刷された印刷媒体50を示した図である。It is the figure which showed the print medium 50 with which print data was printed in the center. 左詰めで印刷データが印刷された印刷媒体50を示した図である。It is the figure which showed the print medium 50 with which print data was printed by the left alignment.

符号の説明Explanation of symbols

20 印刷装置
21 制御回路
22 印字ヘッド(印刷手段)
23 CCDイメージセンサ(画像読取手段)
24 キャリッジモータ
25 載置台
25a 載置台25の面
26 キャリッジ
27 ガイド部材
50 印刷媒体
S12 検出手段
S13、S19 変位量算出手段
S20、S21 印刷データ変換手段
S22 印刷制御手段
S15〜S18 書式変更手段
20 Printing device 21 Control circuit 22 Print head (printing means)
23 CCD image sensor (image reading means)
24 Carriage motor 25 Mounting table 25a Surface of mounting table 25 26 Carriage 27 Guide member 50 Print medium S12 Detection unit S13, S19 Displacement amount calculation unit S20, S21 Print data conversion unit S22 Print control unit S15-S18 Format change unit

Claims (2)

印刷データを印刷する印刷手段により、載置台に載置された印刷媒体に印刷を行う印刷装置であって、
前記印刷媒体が載置された載置台の面を画像として読み取る画像読取手段と、
前記画像読取手段が読み取った画像に基づいて、前記載置台上の印刷媒体の位置を検出する検出手段と、
前記載置台上での印刷媒体を載置するための基準位置に対して、前記検出手段が検出した印刷媒体の位置までの変位量を算出する変位量算出手段と、
前記変位量算出手段が算出した変位量に基づいて、前記印刷データが前記印刷媒体上の所定の位置に印刷できるように前記印刷データを変換する印刷データ変換手段と、
前記印刷データ変換手段が変換した印刷データに基づいて前記印刷手段を制御して前記印刷媒体に印刷を行う印刷制御手段とを備えることを特徴とする印刷装置。
A printing apparatus that prints on a print medium placed on a mounting table by a printing unit that prints print data,
Image reading means for reading the surface of the mounting table on which the print medium is mounted as an image;
Detecting means for detecting the position of the print medium on the mounting table based on the image read by the image reading means;
A displacement amount calculating means for calculating a displacement amount to the position of the print medium detected by the detection means with respect to a reference position for placing the print medium on the mounting table;
Print data conversion means for converting the print data so that the print data can be printed at a predetermined position on the print medium based on the displacement calculated by the displacement calculation means;
A printing apparatus comprising: a printing control unit configured to control the printing unit based on the printing data converted by the printing data conversion unit to perform printing on the printing medium.
前記検出手段が検出した前記載置台上の印刷媒体の位置に応じて、前記印刷データ変換手段が変換する印刷データの書式を変更する書式変更手段をさらに備えることを特徴とする請求項1に記載の印刷装置。   The format change means for changing the format of the print data converted by the print data conversion means according to the position of the print medium on the mounting table detected by the detection means. Printing device.
JP2008242299A 2008-09-22 2008-09-22 Printing device Active JP5315887B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008242299A JP5315887B2 (en) 2008-09-22 2008-09-22 Printing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008242299A JP5315887B2 (en) 2008-09-22 2008-09-22 Printing device

Publications (2)

Publication Number Publication Date
JP2010069820A true JP2010069820A (en) 2010-04-02
JP5315887B2 JP5315887B2 (en) 2013-10-16

Family

ID=42202048

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008242299A Active JP5315887B2 (en) 2008-09-22 2008-09-22 Printing device

Country Status (1)

Country Link
JP (1) JP5315887B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015149670A (en) * 2014-02-07 2015-08-20 ローランドディー.ジー.株式会社 Printer and printing method
JPWO2018078754A1 (en) * 2016-10-27 2019-08-08 京セラドキュメントソリューションズ株式会社 Image forming apparatus

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006044097A (en) * 2004-08-05 2006-02-16 Canon Inc Printer
JP2007122254A (en) * 2005-10-26 2007-05-17 Seiko Epson Corp Image processor, image forming apparatus, and image forming system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006044097A (en) * 2004-08-05 2006-02-16 Canon Inc Printer
JP2007122254A (en) * 2005-10-26 2007-05-17 Seiko Epson Corp Image processor, image forming apparatus, and image forming system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015149670A (en) * 2014-02-07 2015-08-20 ローランドディー.ジー.株式会社 Printer and printing method
JPWO2018078754A1 (en) * 2016-10-27 2019-08-08 京セラドキュメントソリューションズ株式会社 Image forming apparatus

Also Published As

Publication number Publication date
JP5315887B2 (en) 2013-10-16

Similar Documents

Publication Publication Date Title
US9204009B2 (en) Image forming apparatus
JP6058465B2 (en) Printing apparatus and printing method
JP2017170807A (en) Printing assistance equipment, printer, printing system, notification method and program
JP6631180B2 (en) Image processing apparatus, image forming apparatus, image processing method, and program
JP6665595B2 (en) Character recognition device, method and program
JP4562740B2 (en) On-demand printing of coding patterns
JP5315887B2 (en) Printing device
JP2017170808A (en) Printing assistance equipment, printer, printing system, printing assistance method and program
CN115686394A (en) Printing correction method, device, equipment and storage medium
JP2017010271A (en) Information processing apparatus, image forming system, image forming apparatus, and program
JP4785644B2 (en) Printing system and print data processing apparatus
JP4904987B2 (en) Printing method, printing apparatus, and printing program
JP2007233890A (en) Image processor and image processing program
TWI656783B (en) Copying device and copying method capable of correcting copy position
JP4036069B2 (en) Printing device
JP2007074484A (en) Calibration method, calibration system, calibration program and recording medium with the calibration program stored
JP2008017274A (en) Electronic board with image reproduction function, its reproduction image generation method, and its program
JP7192534B2 (en) application programs and printers
JP5982614B2 (en) Printing apparatus, information processing apparatus, printing method, information processing program, and information recording medium
JP4356755B2 (en) Image processing apparatus and image processing program
JP4659609B2 (en) Printer
JP2017091419A (en) Information processing device, image reading device and program
JP2021086049A (en) Image processing apparatus, image processing system, and program
JP4619960B2 (en) Printing device
JP5180412B1 (en) Information processing apparatus, information processing method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100122

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120807

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120925

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130219

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130416

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130611

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130624

R150 Certificate of patent or registration of utility model

Ref document number: 5315887

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150