JP5399032B2 - Strip-shaped body cutting position control device and strip-shaped body cutting position control method - Google Patents

Strip-shaped body cutting position control device and strip-shaped body cutting position control method Download PDF

Info

Publication number
JP5399032B2
JP5399032B2 JP2008239600A JP2008239600A JP5399032B2 JP 5399032 B2 JP5399032 B2 JP 5399032B2 JP 2008239600 A JP2008239600 A JP 2008239600A JP 2008239600 A JP2008239600 A JP 2008239600A JP 5399032 B2 JP5399032 B2 JP 5399032B2
Authority
JP
Japan
Prior art keywords
cpu
count value
pixel
completing
storage memory
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.)
Expired - Fee Related
Application number
JP2008239600A
Other languages
Japanese (ja)
Other versions
JP2009090456A (en
JP2009090456A5 (en
Inventor
勝治 宮崎
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.)
Komori Corp
Original Assignee
Komori 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 Komori Corp filed Critical Komori Corp
Priority to JP2008239600A priority Critical patent/JP5399032B2/en
Publication of JP2009090456A publication Critical patent/JP2009090456A/en
Publication of JP2009090456A5 publication Critical patent/JP2009090456A5/ja
Application granted granted Critical
Publication of JP5399032B2 publication Critical patent/JP5399032B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Handling Of Sheets (AREA)
  • Inking, Control Or Cleaning Of Printing Machines (AREA)
  • Control Of Cutting Processes (AREA)

Description

本発明は、帯状体断裁位置制御装置及び帯状体断裁位置制御方法に関する。   The present invention relates to a strip cutting position control device and a strip cutting position control method.

輪転印刷機は、印刷されたウェブを断裁胴で断裁する時、紙面天地方向の断裁位置が絵柄に対して所定の位置に来るように調整する必要がある。このため、輪転印刷機には、紙面天地方向の断裁位置が絵柄に対して所定の位置に来るように調整するカット・オフ・コントロール装置(帯状体断裁位置制御装置)が設置されている。   When the rotary printing machine cuts a printed web with a cutting cylinder, it is necessary to adjust the cutting position in the vertical direction on the paper surface to be a predetermined position with respect to the pattern. For this reason, a rotary printing press is provided with a cut-off control device (band body cutting position control device) that adjusts the cutting position in the vertical direction on the paper surface to a predetermined position with respect to the pattern.

従来のカット・オフ・コントロール装置では、まず、オペレータが排出された折丁を拡げてその断裁位置を目視で確認し、コンペンセータ・ロールの位置を手動で調整して断裁胴がウェブに印刷された1枚分の絵柄の間隔の中央部分でウェブを断裁するように調整する。図14は従来のカット・オフ・コントロール装置におけるレジスター・マークの検出器の例を示した図である。その後、図14に示すように、レジスター・マーク100の左右方向位置にカット・オフ・コントロール装置の検出器101を手動で移動させ、その状態でカット・オフ・コントロール装置の検出器101が印刷物の余白部に印刷したレジスター・マーク100を検出し、検出器101がレジスター・マーク100を検出した時の断裁胴の回転位相と基準位相とを比較し、その結果に応じてコンペンセータ・ロールの位置を調整して断裁胴がウェブ102に印刷された一枚分の絵柄103の間隔の中央部分でウェブ102を断裁するようにしている。上述した従来のカット・オフ・コントロール装置の一例が下記特許文献1に開示されている。   In the conventional cut-off control device, the operator first expanded the ejected signature, visually confirmed the cutting position, and manually adjusted the position of the compensator roll, and the cutting cylinder was printed on the web. Adjust so that the web is cut at the center of the interval of one picture. FIG. 14 shows an example of a register mark detector in a conventional cut-off control device. After that, as shown in FIG. 14, the detector 101 of the cut-off control device is manually moved to the horizontal position of the register mark 100, and in this state, the detector 101 of the cut-off control device is The register mark 100 printed on the margin is detected, and the rotation phase of the cutting cylinder when the detector 101 detects the register mark 100 is compared with the reference phase, and the position of the compensator roll is determined according to the result. The web 102 is cut at the central portion of the interval between the patterns 103 of one sheet printed on the web 102 by adjusting the cutting cylinder. An example of the above-described conventional cut-off control device is disclosed in Patent Document 1 below.

特開平5−330022号公報JP-A-5-330022

しかしながら、上述した従来のカット・オフ・コントロール装置では、オペレータがレジスター・マークの左右方向位置にカット・オフ・コントロール装置の検出器を手動で移動させなければならず、オペレータに多大な負荷がかかると共に、移動させる間に損紙が発生し、印刷資材が無駄になるという問題があった。   However, in the above-described conventional cut-off control device, the operator has to manually move the detector of the cut-off control device to the left-right position of the register mark, which places a heavy load on the operator. At the same time, there is a problem that waste paper is generated during the movement, and printing materials are wasted.

また、最近普及してきたPPF等の印刷される印刷物の画像データよりレジスター・マークとなるべき絵柄を選択すると共にその位置を特定し、特定されたレジスター・マークの印刷物中の左右方向位置よりレジスター・マークを検出するカット・オフ・コントロール装置の検出器のあるべき左右方向の位置を求め、検出器を、印刷開始前に求めた位置に自動的に移動させるようにすることは容易に想像されるが、具体的に、どのような手段でどのような処理を行えば良いかが明らかにされていなかったため、結局はオペレータがレジスター・マークの左右方向位置にカット・オフ・コントロール装置の検出器を手動で移動させなければならず、オペレータに多大な負荷がかかると共に、移動させる間に損紙が発生し、印刷資材が無駄になるという問題を解決することはできなかった。   In addition, a picture to be a register mark is selected from the image data of a printed matter to be printed such as PPF which has recently been popularized, and its position is specified. It is easily imagined that the position of the detector of the cut-off control device that detects the mark should be determined in the left-right direction, and that the detector be automatically moved to the determined position before starting printing. However, since it was not clarified specifically what kind of processing should be performed by the means, the operator eventually put the detector of the cut-off control device at the left and right position of the register mark. It must be moved manually, which puts a heavy load on the operator and generates waste paper during the movement, which wastes printing materials. It was not possible to solve the problem that.

以上のことから、本発明は、印刷開始時にオペレータが行っている断裁位置の手動調整及び絵柄による紙幅方向のセンサ検出位置の手動調整を自動で行うことにより、印刷開始時の損紙量及び調整時間を削減することができる帯状体断裁位置制御装置を提供することを目的とする。   From the above, the present invention automatically performs manual adjustment of the cutting position performed by the operator at the start of printing and manual adjustment of the sensor detection position in the paper width direction by the pattern, thereby adjusting the amount of paper loss and adjustment at the start of printing. An object of the present invention is to provide a strip cutting position control device capable of reducing time.

上記の課題を解決するための第1の発明に係る帯状体断裁位置制御装置は、
帯状体に絵柄を印刷する印刷手段と、
前記印刷手段によって印刷された絵柄を検出する検出手段と、
前記検出手段を帯状体の幅方向に移動させる検出手段移動手段と、
前記印刷手段で印刷された前記帯状体を、帯状体搬送方向と直行する方向に断裁する断裁手段と、
前記検出手段が前記絵柄を検出した時の前記断裁手段の回転位相を求め、求めた回転位相と予め定められた基準の回転位相を比較し、比較した結果に応じて前記断裁手段による前記帯状体の断裁位置を調整する制御手段と
を備えた帯状体断裁位置制御装置において、
前記制御手段が、第1のしきい値と第1のしきい値より大きい第2のしきい値を記憶し、
前記印刷手段で印刷される絵柄の画像データのうち、第1のしきい値より小さい画像データの第1の画素の位置を求めると共に、
前記印刷手段で印刷される絵柄の画像データのうち、第2のしきい値より大きい画像データの第2の画素の位置を求め、
前記第1の画素の位置及び前記第2の画素の位置より、前記印刷手段で印刷される絵柄の画像データ内の基準とすべき絵柄を選択し、
前記基準とすべき絵柄の位置より基準とすべき前記断裁手段の回転位相を求め、
前記基準とすべき前記断裁手段の回転位相を前記予め定められた基準の回転位相とすると共に、
前記基準とすべき絵柄の位置より前記検出手段の帯状体の幅方向の位置を求め、前記検出手段移動手段を制御し、
前記第1の画素の位置及び前記第2の画素の位置より、前記第2の画素の位置から帯状体搬送方向に平行な方向の第1の方向に予め定められた第1の数の前記第1の画素の位置が連続して並んでいる第2の画素の位置を求め、第3の画素の位置とし、
前記第3の画素の位置より、前記第3の画素の位置から帯状体搬送方向と直交する方向に予め定められた第2の数の前記第3の画素の位置が連続して並んでいる第3の画素の位置を求め、第4の画素の位置とし、
前記第4の画素の位置のうち、前記第4の画素の位置から帯状体搬送方向上流側に連続して並んでいる前記第2の画素の位置の数を数え、第3の数とし、
前記第4の画素の位置のうち、前記第4の画素の位置から帯状体搬送方向と直交する方向に第2の数の範囲内で、帯状体搬送方向に平行な方向の第1の方向に第3の数の範囲内が、前記第2の画素の位置である前記第4の画素の位置を求め、第5の画素の位置とし、
前記第5の画素の位置のうち、前記第5の画素の位置から帯状体搬送方向と直交する方向に第2の数の範囲内で、帯状体搬送方向に平行な方向の第1の方向と反対の方向に第4の数の範囲内が、前記第1の画素の位置である範囲を求め、前記基準とすべき絵柄とする
ことを特徴とする。
The strip-shaped body cutting position control device according to the first invention for solving the above-mentioned problems is
Printing means for printing a pattern on the belt;
Detecting means for detecting a picture printed by the printing means;
Detecting means moving means for moving the detecting means in the width direction of the belt,
Cutting means for cutting the strip printed by the printing means in a direction perpendicular to the strip transport direction;
When the detecting means detects the pattern, the rotational phase of the cutting means is obtained, the obtained rotational phase is compared with a predetermined reference rotational phase, and the strip by the cutting means according to the comparison result. A strip cutting position control device comprising a control means for adjusting the cutting position of
The control means stores a first threshold value and a second threshold value greater than the first threshold value;
While obtaining the position of the first pixel of the image data smaller than the first threshold among the image data of the pattern printed by the printing means,
Obtaining the position of the second pixel of the image data larger than the second threshold among the image data of the pattern printed by the printing means;
From the position of the first pixel and the position of the second pixel, select a pattern to be a reference in the image data of the pattern printed by the printing unit,
Obtain the rotation phase of the cutting means to be the reference from the position of the pattern to be the reference,
The rotational phase of the cutting means to be the reference is set as the predetermined reference rotational phase,
Obtain the position in the width direction of the band of the detection means from the position of the pattern to be the reference, control the detection means moving means ,
From the position of the first pixel and the position of the second pixel, a first number of the first number determined in advance in a first direction parallel to the strip transporting direction from the position of the second pixel. The position of the second pixel in which the positions of one pixel are continuously arranged is obtained, and is set as the position of the third pixel.
A predetermined number of third pixel positions are successively arranged from the position of the third pixel in a direction orthogonal to the strip conveyance direction from the position of the third pixel. 3 pixel position is determined as the fourth pixel position,
Among the positions of the fourth pixels, the number of the positions of the second pixels that are continuously arranged from the position of the fourth pixels to the upstream side in the belt conveyance direction is counted, and the third number is obtained.
Among the positions of the fourth pixels, within a second number range from the position of the fourth pixels in a direction orthogonal to the band transport direction, in a first direction parallel to the strip transport direction Within the third number range, the position of the fourth pixel, which is the position of the second pixel, is determined as the position of the fifth pixel,
A first direction in a direction parallel to the strip transport direction within a second number of positions of the fifth pixel in a direction orthogonal to the strip transport direction from the position of the fifth pixel; A range in which the fourth number range in the opposite direction is the position of the first pixel is obtained and used as the reference pattern .

第1の発明によれば、印刷される印刷物の画像データのうち、ほとんど絵柄が無い部分とほとんどベタに近い部分を求め、それらの部分よりレジスター・マークとなるべき絵柄部分を求めることにより、印刷物の濃度変化による誤検出や、検出器に入る外乱光の影響による誤検出を防止することができると共に、検出器の左右方向位置を、自動的に設定することができる。
また、印刷される印刷物の画像データのうち、帯状体搬送方向の平行な方向にほとんど絵柄が無い部分がある程度続き、その後、ほとんどベタに近い部分になっている濃度の急変領域を求め、それらの部分よりレジスター・マークとなるべき絵柄部分を求めることにより、第1の発明と同様に、印刷物の濃度変化による誤検出や、検出器に入る外乱光の影響による誤検出を防止することができる。
また、印刷される印刷物の画像データのうち、帯状体搬送方向と直交する方向にほとんどベタに近い部分がある程度続く部分を求め、それらの部分よりレジスター・マークとなるべき絵柄部分を求めることにより、ウェブが帯状体搬送方向と直交する方向にふらついても、確実にレジスター・マークを検出できる。
また、印刷される印刷物の画像データのうち、帯状体搬送方向と平行な方向にほとんどベタに近い部分が続く矩形部分を求め、それらの部分よりレジスター・マークとなるべき絵柄部分を求めることにより、ウェブが帯状体搬送方向と直交する方向にふらついても、確実にレジスター・マークを検出できる。
また、印刷される印刷物の画像データのうち、帯状体搬送方向の平行な方向にほとんどベタに近い部分の後にほとんど絵柄が無い部分がある程度続く濃度の急変領域を求め、それらの部分よりレジスター・マークとなるべき絵柄部分を求めることにより、第1の発明及び第2の発明と同様に、印刷物の濃度変化による誤検出や、検出器に入る外乱光の影響による誤検出を防止することができる。
According to the first invention, among the image data of the printed matter to be printed, a portion having almost no design and a portion that is almost solid are obtained, and a design portion to be a register mark is obtained from these portions, thereby obtaining the printed matter. In addition, it is possible to prevent erroneous detection due to a change in the concentration of light, and erroneous detection due to the influence of ambient light entering the detector, and the horizontal position of the detector can be automatically set.
Further, in the image data of the printed matter to be printed, a portion where there is almost no pattern in the direction parallel to the belt conveyance direction continues to some extent, and thereafter, an abrupt change region of density that is almost a solid portion is obtained. By obtaining the pattern portion to be a register mark from the portion, it is possible to prevent erroneous detection due to the density change of the printed matter and erroneous detection due to the influence of ambient light entering the detector, as in the first invention.
Further, among the image data of the printed matter to be printed, by obtaining a portion where a portion that is almost solid in a direction orthogonal to the belt conveyance direction is obtained to some extent, and obtaining a pattern portion to be a register mark from those portions, Even if the web fluctuates in a direction perpendicular to the belt conveyance direction, the register mark can be reliably detected.
Further, among the image data of the printed matter to be printed, by obtaining a rectangular part that is almost a solid part in a direction parallel to the belt transport direction, and obtaining a picture part to be a register mark from those parts, Even if the web fluctuates in a direction perpendicular to the belt conveyance direction, the register mark can be reliably detected.
Also, from the image data of the printed matter to be printed, obtain a sudden change area of density in which a portion with almost no pattern after a portion that is almost solid in the direction parallel to the belt transport direction is obtained, and a register mark is obtained from those portions. By obtaining the pattern portion that should be, it is possible to prevent erroneous detection due to the density change of the printed matter and erroneous detection due to the influence of ambient light entering the detector, as in the first and second aspects of the invention.

上記の課題を解決するための第の発明に係る帯状体断裁位置制御方法は、
帯状体に絵柄を印刷する印刷手段と、
前記印刷手段によって印刷された絵柄を検出する検出手段と、
前記検出手段を帯状体の幅方向に移動させる検出手段移動手段と、
前記印刷手段で印刷された前記帯状体を、帯状体搬送方向と直行する方向に断裁する断裁手段と、
前記検出手段が前記絵柄を検出した時の前記断裁手段の回転位相を求め、求めた回転位相と予め定められた基準の回転位相を比較し、比較した結果に応じて前記断裁手段による前記帯状体の断裁位置を調整する制御手段と
を備えた帯状体断裁位置制御装置における帯状体断裁位置制御方法において、
第1のしきい値と第1のしきい値より大きい第2のしきい値を記憶し、
前記印刷手段で印刷される絵柄の画像データのうち、第1のしきい値より小さい画像データの第1の画素の位置を求めると共に、
前記印刷手段で印刷される絵柄の画像データのうち、第2のしきい値より大きい画像データの第2の画素の位置を求め、
前記第1の画素の位置及び前記第2の画素の位置より、前記印刷手段で印刷される絵柄の画像データ内の基準とすべき絵柄を選択し、
前記基準とすべき絵柄の位置より基準とすべき前記断裁手段の回転位相を求め、
前記基準とすべき前記断裁手段の回転位相を前記予め定められた基準の回転位相とすると共に、
前記基準とすべき絵柄の位置より前記検出手段の帯状体の幅方向の位置を求め、前記検出手段移動手段を制御し、
前記第1の画素の位置及び前記第2の画素の位置より、前記第2の画素の位置から帯状体搬送方向に平行な方向の第1の方向に予め定められた第1の数の前記第1の画素の位置が連続して並んでいる第2の画素の位置を求め、第3の画素の位置とし、
前記第3の画素の位置より、前記第3の画素の位置から帯状体搬送方向と直交する方向に予め定められた第2の数の前記第3の画素の位置が連続して並んでいる第3の画素の位置を求め、第4の画素の位置とし、
前記第4の画素の位置のうち、前記第4の画素の位置から帯状体搬送方向上流側に連続して並んでいる前記第2の画素の位置の数を数え、第3の数とし、
前記第4の画素の位置のうち、前記第4の画素の位置から帯状体搬送方向と直交する方向に第2の数の範囲内で、帯状体搬送方向に平行な方向の第1の方向に第3の数の範囲内が、前記第2の画素の位置である前記第4の画素の位置を求め、第5の画素の位置とし、
前記第5の画素の位置のうち、前記第5の画素の位置から帯状体搬送方向と直交する方向に第2の数の範囲内で、帯状体搬送方向に平行な方向の第1の方向と反対の方向に第4の数の範囲内が、前記第1の画素の位置である範囲を求め、前記基準とすべき絵柄とする
ことを特徴とする。
The belt-shaped body cutting position control method according to the second invention for solving the above-described problems is as follows.
Printing means for printing a pattern on the belt;
Detecting means for detecting a picture printed by the printing means;
Detecting means moving means for moving the detecting means in the width direction of the belt,
Cutting means for cutting the strip printed by the printing means in a direction perpendicular to the strip transport direction;
When the detecting means detects the pattern, the rotational phase of the cutting means is obtained, the obtained rotational phase is compared with a predetermined reference rotational phase, and the strip by the cutting means according to the comparison result. In the strip cutting position control method in the strip cutting position control device comprising a control means for adjusting the cutting position of
Storing a first threshold and a second threshold greater than the first threshold;
While obtaining the position of the first pixel of the image data smaller than the first threshold among the image data of the pattern printed by the printing means,
Obtaining the position of the second pixel of the image data larger than the second threshold among the image data of the pattern printed by the printing means;
From the position of the first pixel and the position of the second pixel, select a pattern to be a reference in the image data of the pattern printed by the printing unit,
Obtain the rotation phase of the cutting means to be the reference from the position of the pattern to be the reference,
The rotational phase of the cutting means to be the reference is set as the predetermined reference rotational phase,
Obtain the position in the width direction of the band of the detection means from the position of the pattern to be the reference, control the detection means moving means ,
From the position of the first pixel and the position of the second pixel, a first number of the first number determined in advance in a first direction parallel to the strip transporting direction from the position of the second pixel. The position of the second pixel in which the positions of one pixel are continuously arranged is obtained, and is set as the position of the third pixel.
A predetermined number of third pixel positions are successively arranged from the position of the third pixel in a direction orthogonal to the strip conveyance direction from the position of the third pixel. 3 pixel position is determined as the fourth pixel position,
Among the positions of the fourth pixels, the number of the positions of the second pixels that are continuously arranged from the position of the fourth pixels to the upstream side in the belt conveyance direction is counted, and the third number is obtained.
Among the positions of the fourth pixels, within a second number range from the position of the fourth pixels in a direction orthogonal to the band transport direction, in a first direction parallel to the strip transport direction Within the third number range, the position of the fourth pixel, which is the position of the second pixel, is determined as the position of the fifth pixel,
A first direction in a direction parallel to the strip transport direction within a second number of positions of the fifth pixel in a direction orthogonal to the strip transport direction from the position of the fifth pixel; A range in which the fourth number range in the opposite direction is the position of the first pixel is obtained and used as the reference pattern .

の発明によれば、印刷される印刷物の画像データのうち、ほとんど絵柄が無い部分とほとんどベタに近い部分を求め、それらの部分よりレジスター・マークとなるべき絵柄部分を求めることにより、印刷物の濃度変化による誤検出や、検出器に入る外乱光の影響による誤検出を防止することができると共に、検出器の左右方向位置を、自動的に設定することができる。
また、印刷される印刷物の画像データのうち、帯状体搬送方向の平行な方向にほとんど絵柄が無い部分がある程度続き、その後、ほとんどベタに近い部分になっている濃度の急変領域を求め、それらの部分よりレジスター・マークとなるべき絵柄部分を求めることにより、第7の発明と同様に、印刷物の濃度変化による誤検出や、検出器に入る外乱光の影響による誤検出を防止することができる。
また、印刷される印刷物の画像データのうち、帯状体搬送方向と直交する方向にほとんどベタに近い部分がある程度続く部分を求め、それらの部分よりレジスター・マークとなるべき絵柄部分を求めることにより、ウェブが帯状体搬送方向と直交する方向にふらついても、確実にレジスター・マークを検出できる。
また、印刷される印刷物の画像データのうち、帯状体搬送方向と平行な方向にほとんどベタに近い部分が続く矩形部分を求め、それらの部分よりレジスター・マークとなるべき絵柄部分を求めることにより、ウェブが帯状体搬送方向と直交する方向にふらついても、確実にレジスター・マークを検出できる。
また、印刷される印刷物の画像データのうち、帯状体搬送方向の平行な方向にほとんどベタに近い部分の後にほとんど絵柄が無い部分がある程度続く濃度の急変領域を求め、それらの部分よりレジスター・マークとなるべき絵柄部分を求めることにより、第7の発明及び第8の発明と同様に、印刷物の濃度変化による誤検出や、検出器に入る外乱光の影響による誤検出を防止することができる。
According to the second aspect of the invention, the image data of the printed matter to be printed is obtained by obtaining a portion having almost no pattern and a portion that is almost solid, and obtaining a pattern portion to be a register mark from those portions, thereby obtaining the printed matter. In addition, it is possible to prevent erroneous detection due to a change in the concentration of light, and erroneous detection due to the influence of ambient light entering the detector, and the horizontal position of the detector can be automatically set.
Further, in the image data of the printed matter to be printed, a portion where there is almost no pattern in the direction parallel to the belt conveyance direction continues to some extent, and thereafter, an abrupt change region of density that is almost a solid portion is obtained. By obtaining the pattern portion to be a register mark from the portion, it is possible to prevent erroneous detection due to the density change of the printed matter and erroneous detection due to the influence of ambient light entering the detector, as in the seventh aspect.
Further, among the image data of the printed matter to be printed, by obtaining a portion where a portion that is almost solid in a direction orthogonal to the belt conveyance direction is obtained to some extent, and obtaining a pattern portion to be a register mark from those portions, Even if the web fluctuates in a direction perpendicular to the belt conveyance direction, the register mark can be reliably detected.
Further, among the image data of the printed matter to be printed, by obtaining a rectangular part that is almost a solid part in a direction parallel to the belt transport direction, and obtaining a picture part to be a register mark from those parts, Even if the web fluctuates in a direction perpendicular to the belt conveyance direction, the register mark can be reliably detected.
Also, from the image data of the printed matter to be printed, obtain a sudden change area of density in which a portion with almost no pattern after a portion that is almost solid in the direction parallel to the belt transport direction is obtained, and a register mark is obtained from those portions. By obtaining the pattern portion that should be, it is possible to prevent erroneous detection due to the density change of the printed matter and erroneous detection due to the influence of ambient light entering the detector, as in the seventh and eighth aspects of the invention.

本発明に係る帯状体断裁位置制御装置及び帯状体断裁位置制御方法によれば、PPF等の印刷絵柄のデジタル情報から、カット・オフ・コントロールに最適なターゲット絵柄を検索し、印刷開始前に帯状体断裁位置制御装置へ検索したターゲット絵柄の座標と特徴とをプリセットし、印刷を開始する前にプリセットされたターゲット絵柄の座標へセンサを移動させることができる。   According to the strip cutting position control device and the strip cutting position control method according to the present invention, the optimum target pattern for cut-off control is retrieved from the digital information of the printed pattern such as PPF, and the strip is cut before starting printing. The coordinates and features of the searched target picture can be preset to the body cutting position control device, and the sensor can be moved to the preset coordinates of the target picture before printing is started.

したがって、本発明に係る帯状体断裁位置制御装置及び帯状体断裁位置制御方法によれば、プリセットされたターゲット絵柄の座標位置へセンサを自動で移動させるため、ターゲット絵柄を見失うことなく断裁位置を制御でき、従来必要であったセンサ位置移動の必要がなくなり調整時間を削減することができる。また、センサの移動忘れ、移動位置の正確さなど人為的なミスがなくなり、センサ位置を変更し直すといった無駄時間を削減することができる。   Therefore, according to the strip cutting position control device and strip cutting position control method according to the present invention, the sensor is automatically moved to the preset coordinate position of the target pattern, so that the cutting position is controlled without losing sight of the target pattern. This eliminates the need to move the sensor position, which was necessary in the past, and can reduce the adjustment time. In addition, there is no human error such as forgetting to move the sensor or the accuracy of the moving position, and it is possible to reduce wasted time such as changing the sensor position again.

本発明では、予めPPF等の印刷される印刷物の絵柄データよりターゲット絵柄となるべき絵柄を選択すると共にその位置を特定し、特定されたターゲット絵柄の印刷物中の左右方向位置よりターゲット絵柄を検出する検出器のあるべき左右方向の位置を求め、検出器を、印刷開始前に求めた位置に自動的に移動させるようにした。   In the present invention, a picture to be a target picture is selected from picture data of printed matter to be printed such as PPF in advance and its position is specified, and the target picture is detected from the horizontal position in the printed matter of the specified target picture. The position of the detector in the left-right direction should be determined, and the detector was automatically moved to the position determined before printing started.

また、上述した選択されたターゲット絵柄の印刷物中の天地方向の位置より基準位置とすべき断裁胴の回転位相を求め、印刷開始直後から検出器がターゲット絵柄を検出した時の断裁胴の回転位相と基準位置とを比較し、その結果に応じてコンペンセータ・ロールの位置を調整し、断裁胴がウェブに印刷された1枚分の絵柄の間隔の中央部分でウェブを断裁するようにして、稼働率を向上させると共に、オペレータの負担を少なくした。   Further, the rotation phase of the cutting cylinder to be the reference position is obtained from the position in the vertical direction in the printed material of the selected target picture described above, and the rotation phase of the cutting cylinder when the detector detects the target picture immediately after the start of printing. And the reference position, adjust the position of the compensator roll according to the result, and the cutting cylinder operates to cut the web at the center of the interval of one picture printed on the web The rate was increased and the burden on the operator was reduced.

以下、本発明に係る帯状体断裁位置制御装置及び帯状体断裁位置制御方法の実施例について説明する。
始めに、本発明の実施例に係る帯状体断裁位置制御装置(カット・オフ・コントロール装置)が適用される印刷機の構成について説明する。図1は本発明の実施例に係る帯状体断裁位置制御装置が適用される印刷機の構成を示した図である。
Hereinafter, embodiments of the strip cutting position control device and the strip cutting position control method according to the present invention will be described.
First, the configuration of a printing machine to which a strip cutting position control device (cut-off control device) according to an embodiment of the present invention is applied will be described. FIG. 1 is a diagram showing a configuration of a printing machine to which a strip cutting position control device according to an embodiment of the present invention is applied.

図1に示すように、本実施例に係る印刷機50は、給紙部51、印刷部52、乾燥部53、ウェブパス部54及び折部55により構成されている。給紙部51のスタンド56に設置されたウェブ57は、ガイドローラ群58に支持されて印刷部52に送られる。印刷部52に送られたウェブ57は絵柄59が印刷されて乾燥部53に送られる。乾燥部53に送られたウェブ57は乾燥させられてウェブパス部54に送られる。   As shown in FIG. 1, the printing machine 50 according to the present embodiment includes a paper feeding unit 51, a printing unit 52, a drying unit 53, a web path unit 54, and a folding unit 55. The web 57 installed on the stand 56 of the paper feeding unit 51 is supported by the guide roller group 58 and sent to the printing unit 52. The web 57 sent to the printing unit 52 is printed with a pattern 59 and sent to the drying unit 53. The web 57 sent to the drying unit 53 is dried and sent to the web pass unit 54.

ウェブパス部54には、モータ44により上下動が可能なコンペンセータ・ロール61と、ウェブ57に印刷された絵柄59中からターゲット絵柄を検出する検出器42が設置されている。図2は、本発明の実施例に係る検出器の構成を示した図である。図2に示すように、検出器42は、検出器左右方向位置調整用モータ28によりウェブ57の左右方向に移動可能となっているため、ウェブ57に印刷された絵柄59中からターゲット絵柄を検出することができる。この検出器左右方向位置調整用モータ28は、検出器42からの検出信号に基づき制御部63から出力される制御信号により動作が制御されている。   The web path unit 54 is provided with a compensator roll 61 that can be moved up and down by the motor 44, and a detector 42 that detects a target picture from the picture 59 printed on the web 57. FIG. 2 is a diagram showing a configuration of a detector according to the embodiment of the present invention. As shown in FIG. 2, the detector 42 can be moved in the left-right direction of the web 57 by the detector left-right position adjustment motor 28, so that the target picture is detected from the picture 59 printed on the web 57. can do. The operation of the detector horizontal position adjusting motor 28 is controlled by a control signal output from the control unit 63 based on a detection signal from the detector 42.

図1に示すように、ウェブパス部54に送られたウェブ57はコンペンセータ・ロール61を上下動させることにより、後述する断裁胴67でウェブ57に印刷された1枚分の絵柄59の間隔の中央部分でウェブ57を断裁するように、絵柄59の位置が調整されて折部55に送られる。このとき、検出器42によりウェブ57に印刷された絵柄59中からターゲット絵柄が検出されて、この検出信号が制御部63に出力される。   As shown in FIG. 1, the web 57 sent to the web path unit 54 moves the compensator roll 61 up and down, so that the interval between one pattern 59 printed on the web 57 by the cutting cylinder 67 described later is obtained. The position of the pattern 59 is adjusted so as to cut the web 57 at the center portion and sent to the folding portion 55. At this time, the target pattern is detected from the pattern 59 printed on the web 57 by the detector 42, and this detection signal is output to the control unit 63.

折部55に送られたウェブ57は三角フォーマ64で折りが入れられ、ガイドローラ65によりガイドされてニップローラ66に送られる。ニップローラ66に送られたウェブ57は両側から強力に加圧されながら断裁胴67に送られて断裁される。このとき、制御部63は、断裁胴67の回転位相を検出し、ターゲット絵柄の印刷物中の天地方向の位置より基準位置とすべき断裁胴67の回転位相と検出器42が実際にターゲット絵柄を検出した時の断裁胴の回転位相とを比較し、その結果に応じてコンペンセータ・ロール61の位置を調整して断裁胴67がウェブ57に印刷された1枚分の絵柄59の間隔の中央部分でウェブ57を断裁するようにする。   The web 57 sent to the folding part 55 is folded by a triangular former 64, guided by a guide roller 65, and sent to a nip roller 66. The web 57 sent to the nip roller 66 is sent to a cutting cylinder 67 while being strongly pressed from both sides and cut. At this time, the control unit 63 detects the rotation phase of the cutting cylinder 67, and the rotation phase of the cutting cylinder 67 to be set as the reference position from the position in the vertical direction in the print of the target pattern and the detector 42 actually selects the target pattern. The rotation phase of the cutting cylinder at the time of detection is compared, the position of the compensator roll 61 is adjusted according to the result, and the central portion of the interval between the patterns 59 on which the cutting cylinder 67 is printed on the web 57 Then, the web 57 is cut.

なお、ここでは、制御部63は、断裁胴67の回転位相を検出するものとして説明しているが、断裁胴63を駆動する印刷機50の原動モータの回転位相を検出する構成としてもよい。   Here, the control unit 63 is described as detecting the rotational phase of the cutting cylinder 67, but may be configured to detect the rotational phase of the driving motor of the printing press 50 that drives the cutting cylinder 63.

以下、本発明の実施例に係る帯状体断裁位置制御装置について説明する。図6A〜図6Cは本発明の実施例に係る帯状体断裁位置制御装置におけるハードウェア構成を示したハードブロック図である。図6A〜図6Cに示すように、帯状体断裁位置制御装置は、CPU10、ROM11、RAM12、第1から第5のI/O(入出力インターフェイス)13〜17を備えている。   Hereinafter, a strip cutting position control device according to an embodiment of the present invention will be described. 6A to 6C are hardware block diagrams showing a hardware configuration of the belt-shaped body cutting position control device according to the embodiment of the present invention. As shown in FIGS. 6A to 6C, the strip cutting position control device includes a CPU 10, a ROM 11, a RAM 12, and first to fifth I / O (input / output interfaces) 13 to 17.

また、帯状体断裁位置制御装置は、第1のI/O13を介して、印刷絵柄データ読込み開始スイッチ18、カット・オフ・コントロール装置の制御開始スイッチ19、カット・オフ・コントロール装置の制御終了スイッチ20、入力装置21、表示器22、フロッピー・ディスク(登録商標)・ドライブ23、出力装置(F・Dドライブ、プリンタ等)24を備えている。   Further, the strip cutting position control device includes a print picture data reading start switch 18, a control start switch 19 of the cut-off control device, and a control end switch of the cut-off control device via the first I / O 13. 20, an input device 21, a display 22, a floppy disk (registered trademark) drive 23, and an output device (FD drive, printer, etc.) 24.

また、帯状体断裁位置制御装置は、第2のI/O14を介して、左側の余白部長さ設定器25、天側の余白部長さ設定器26を備えている。また、帯状体断裁位置制御装置は、第3のI/O15を介して、検出器左右方向位置調整用モータ・ドライバ27、検出器左右方向位置調整用モータ28、検出器左右方向位置検出用カウンタ29、検出器左右方向位置調整用モータ用ロータリ・エンコーダ30を備えている。   Further, the strip-shaped body cutting position control device includes a left margin portion setting device 25 and a top margin portion setting device 26 via the second I / O 14. Further, the strip cutting position control device includes a detector left-right direction position adjustment motor driver 27, a detector left-right direction position adjustment motor 28, and a detector left-right direction position detection counter via the third I / O 15. 29, a detector rotary encoder 30 for adjusting the left-right direction position is provided.

また、帯状体断裁位置制御装置は、第4のI/O16を介して、検出開始用カウンタ(ダウン・カウンタ)31、検出終了用カウンタ(ダウン・カウンタ)32、印刷機の回転位相検出用ロータリ・エンコーダ33、フリップ・フロップ回路34、立ち上がり用ラッチ35、立ち上がり用ワン・ショット・パルス発生回路36、立ち下がり用ワン・ショット・パルス発生回路37、立ち下がり用ラッチ38、印刷機の回転位相検出用カウンタ39、AND回路40、インバーター回路41、検出器42を備えている。   Further, the strip cutting position control device is provided with a detection start counter (down counter) 31, a detection end counter (down counter) 32, and a rotary phase detection rotary for the printing press via the fourth I / O 16. Encoder 33, flip-flop circuit 34, rising latch 35, rising one-shot pulse generating circuit 36, falling one-shot pulse generating circuit 37, falling latch 38, and rotational phase detection of the printing press Counter 39, AND circuit 40, inverter circuit 41, and detector 42.

すなわち、印刷機の回転位相検出用ロータリ・エンコーダ33からはゼロ・パルスが出力され検出開始用カウンタ(ダウン・カウンタ)31、検出終了用カウンタ(ダウン・カウンタ)32、及び、印刷機の回転位相検出用カウンタ39をリセットする。CPU10は、ターゲット絵柄の検出開始時の印刷機の回転位相検出用カウンタ39のカウント値を検出開始用カウンタ(ダウン・カウンタ)31にセットし、ターゲット絵柄の検出終了時の印刷機の回転位相検出用カウンタ39のカウント値を検出終了用カウンタ(ダウン・カウンタ)32にセットする。検出開始用カウンタ(ダウン・カウンタ)31はクロック・パルスが入力される毎に値を減算し、値が0になったときにフリップ・フロップ回路34にセット信号を出力し、ターゲット絵柄の検出を開始する。   That is, a zero pulse is output from the rotary encoder 33 for detecting the rotation phase of the printing press, and a detection start counter (down counter) 31, a detection end counter (down counter) 32, and the rotation phase of the printing press. The detection counter 39 is reset. The CPU 10 sets the count value of the rotation phase detection counter 39 of the printing press at the start of detection of the target pattern in the detection start counter (down counter) 31 and detects the rotation phase of the printing press at the end of detection of the target pattern. The count value of the counter 39 is set in the detection end counter (down counter) 32. The detection start counter (down counter) 31 subtracts the value every time a clock pulse is input, and when the value becomes 0, outputs a set signal to the flip-flop circuit 34 to detect the target picture. Start.

フリップ・フロップ回路34から出力される信号はAND回路40に入力され、さらに、検出器42から出力される信号がAND回路40に出力されたとき、AND回路40から信号が出力される。AND回路40から出力された信号は、立ち上がり用ワン・ショット・パルス発生回路36に入力され、また、AND回路40から出力された信号は、インバーター回路41を介して立ち下がり用ワン・ショット・パルス発生回路37に入力される。   The signal output from the flip-flop circuit 34 is input to the AND circuit 40. Further, when the signal output from the detector 42 is output to the AND circuit 40, the signal is output from the AND circuit 40. The signal output from the AND circuit 40 is input to the rising one-shot pulse generation circuit 36, and the signal output from the AND circuit 40 is supplied to the falling one-shot pulse via the inverter circuit 41. This is input to the generation circuit 37.

立ち上がり用ワン・ショット・パルス発生回路36は、AND回路40からの信号が入力されたときに、立ち上がり用ラッチ35にワン・ショット・パルスを出力する。立ち上がり用ラッチ35はワン・ショット・パルスが入力された後、印刷機の回転位相検出用カウンタ39のカウント値をターゲット絵柄の天方向端として記憶する。   The rising one-shot pulse generation circuit 36 outputs a one-shot pulse to the rising latch 35 when the signal from the AND circuit 40 is input. After the one-shot pulse is input, the rising latch 35 stores the count value of the rotation phase detection counter 39 of the printing press as the top edge of the target pattern.

立ち下がり用ワン・ショット・パルス発生回路37は、AND回路40から入力されていた信号が入力されなくなったときに、立ち下がり用ラッチ38にワン・ショット・パルスを出力する。立ち下がり用ラッチ38はワン・ショット・パルスが入力された後、印刷機の回転位相検出用カウンタ39からのカウント値をターゲット絵柄の地方向端として記憶する。   The falling one-shot pulse generation circuit 37 outputs a one-shot pulse to the falling latch 38 when the signal input from the AND circuit 40 is not input. After the one-shot pulse is input, the falling latch 38 stores the count value from the rotation phase detection counter 39 of the printing press as the ground direction end of the target pattern.

検出終了用カウンタ(ダウン・カウンタ)32はクロック・パルスが入力される毎に値を減算し、値が0になったときにフリップ・フロップ回路34にリセット信号を出力し、ターゲット絵柄の検出を終了する。   The detection end counter (down counter) 32 subtracts the value every time a clock pulse is input, and outputs a reset signal to the flip-flop circuit 34 when the value becomes 0 to detect the target picture. finish.

このようにして、ターゲット絵柄を検出することにより、設定したターゲット絵柄の天地方向の長さと検出器42で検出したターゲット絵柄の天地方向の長さを比較することができる。このため、インクとび等をターゲット絵柄として誤検出することを防ぐことができる。   Thus, by detecting the target picture, the length of the set target picture in the vertical direction can be compared with the length of the target picture detected by the detector 42 in the vertical direction. For this reason, it is possible to prevent erroneous detection of ink skipping or the like as a target picture.

また、帯状体断裁位置制御装置は、第5のI/O17を介して、コンペンセータ・ロール位置調整用モータ・ドライバ43、コンペンセータ・ロール位置調整用モータ44、コンペンセータ・ロール位置検出用カウンタ45、コンペンセータ・ロール位置調整用モータ用ロータリ・エンコーダ46を備えている。   Further, the strip cutting position control device includes a compensator / roll position adjusting motor / driver 43, a compensator / roll position adjusting motor 44, a compensator / roll position detecting counter 45, and a compensator via a fifth I / O 17. A rotary encoder 46 for a roll position adjusting motor is provided.

また、帯状体断裁位置制御装置は、左側の余白部長さ記憶用メモリM1、天側の余白部長さ記憶用メモリM2、印刷絵柄の左右方向の長さ記憶用メモリM3、印刷絵柄の天地方向の長さ記憶用メモリM4、印刷絵柄の左右方向の総画素数記憶用メモリM5、印刷絵柄の天地方向の総画素数記憶用メモリM6、各色の絵柄データ記憶用メモリM7、カウント値Y記憶用メモリM8、カウント値X記憶用メモリM9、シアン用の画素データ、マゼンタ用の画素データ、イエロー用の画素データ、ブラック用の画素データ記憶用メモリM10、印刷絵柄データ記憶用メモリM11、アドレス(X,Y)の位置の画素データ記憶用メモリM12、画素データの第1のしきい値記憶用メモリM13、画素データの第2のしきい値記憶用メモリM14、印刷絵柄の3値化データ記憶用メモリM15、アドレス(X,Y)の位置の3値化データ記憶用メモリM16、第1の判断用の合計値記憶用メモリM17、カウント値N記憶用メモリM18、アドレス(X,Y−N)の位置の3値化データ記憶用メモリM19、判断用データ記憶用メモリM20、カウント値C記憶用メモリM21、アドレス(X−1,Y)の位置の判断用データ記憶用メモリM22、アドレス(X,Y)の位置の判断用データ記憶用メモリM23、カウント値L記憶用メモリM24、天地方向の画素番号記憶用メモリM25、アドレス(X,Y+L)の位置の3値化データ記憶用メモリM26、第2の判断用のしきい値記憶用メモリM27、第2の判断用の合計値記憶用メモリM28、カウント値M記憶用メモリM29、アドレス(X−M,Y+N)の位置の3値化データ記憶用メモリM30、第2の判断用の値記憶用メモリM31、第3の判断用の合計値記憶用メモリM32、アドレス(X−M,Y+L−1+N)の位置の3値化データ記憶用メモリM33、アドレス(X−M,Y+L+N)の位置の3値化データ記憶用メモリM34、ターゲット絵柄候補位置記憶用メモリM35、ターゲット絵柄候補の長さ記憶用メモリM36、カウント値C1記憶用メモリM37、C1番目のアドレス位置のアドレス(X,Y)記憶用メモリM38、C1番目のアドレス位置のカウント値L記憶用メモリM39、カウント値N1記憶用メモリM40、第4の判断用の合計値記憶用メモリM41、アドレス(X−M,Y−21−N1)の位置の3値化データ記憶用メモリM42、カウント値N2記憶用メモリM43、アドレス(X−M,Y+21+N2)の位置の3値化データ記憶用メモリM44、ターゲット絵柄の拡大余白部長さ記憶用メモリM45、C1番目のアドレス位置に記憶されたターゲット絵柄の拡大余白部長さ記憶用メモリM46、余白部の最大長さ記憶用メモリM47、余白部の最大長さ位置記憶用メモリM48、各画素の左右方向の長さ記憶用メモリM49、各画素の天地方向の長さ記憶用メモリM50、ターゲット絵柄のアドレス記憶用メモリM51、ターゲット絵柄の長さ記憶用メモリM52、ターゲット絵柄の左右方向中心の印刷絵柄内の位置記憶用メモリM53、ターゲット絵柄の左右方向の中心位置記憶用メモリM54、ターゲット絵柄の天方向端の印刷絵柄内の位置記憶用メモリM55、ターゲット絵柄の天方向端の基準位置記憶用メモリM56、ターゲット絵柄の天地方向の基準長さ記憶用メモリM57、ターゲット絵柄の左右方向の中心位置−検出器左右方向位置検出用カウンタのカウント値変換テーブル記憶用メモリM58、ターゲット絵柄の左右方向の中心位置に対応する検出器左右方向位置検出用カウンタのカウント値記憶用メモリM59、検出器左右方向位置検出用カウンタのカウント値記憶用メモリM60を備えている。   Further, the strip cutting position control device includes a left margin part memory M1, a top margin part memory M2, a left and right length memory M3 for the printed pattern, and a vertical direction of the printed pattern. Length storage memory M4, memory M5 for storing the total number of pixels in the horizontal direction of the printed pattern, memory M6 for storing the total number of pixels in the vertical direction of the printed pattern, memory M7 for storing the pattern data for each color, memory for storing the count value Y M8, count value X storage memory M9, cyan pixel data, magenta pixel data, yellow pixel data, black pixel data storage memory M10, print picture data storage memory M11, address (X, Y) pixel data storage memory M12 at the position, pixel data first threshold value storage memory M13, pixel data second threshold value storage memory M14, mark Pattern ternary data storage memory M15, address (X, Y) position ternary data storage memory M16, first judgment total value storage memory M17, count value N storage memory M18, Tri-level data storage memory M19 at the position of the address (X, Y-N), judgment data storage memory M20, count value C storage memory M21, judgment data at the position of the address (X-1, Y) Memory M22 for storage, memory M23 for determining the position of address (X, Y), memory M24 for count value L, memory for pixel number storage M25 in the vertical direction, 3 at the position of address (X, Y + L) Threshold data storage memory M26, second determination threshold storage memory M27, second determination total value storage memory M28, count value M storage memory M29, add Ternary data storage memory M30 at the position of (X−M, Y + N), second determination value storage memory M31, third determination total value storage memory M32, address (X−M) , Y + L-1 + N), ternary data storage memory M33, address (X-M, Y + L + N) position ternary data storage memory M34, target picture candidate position storage memory M35, target picture candidate Length memory M36, count value C1 memory M37, C1th address (X, Y) address memory X38, C1th address position count value L memory M39, count value N1 memory Memory M40, fourth determination total value storage memory M41, ternary data storage memory M42 at the position of the address (X-M, Y-21-N1), Count value N2 storage memory M43, ternary data storage memory M44 at the address (X-M, Y + 21 + N2) position, target picture enlarged margin length storage memory M45, target stored at the C1th address position Enlarged margin length memory M46, memory margin maximum length memory M47, margin maximum length position storage memory M48, lateral length memory M49 for each pixel, Top-and-bottom length memory M50, target picture address memory M51, target picture length memory M52, position picture memory M53 in the left-right center print picture of the target picture, left and right of the target picture Direction center position storage memory M54, position storage memory M55 in the print pattern at the top end of the target pattern The reference position storage memory M56 at the top end of the target pattern, the reference length storage memory M57 in the top direction of the target pattern, the center position of the target pattern in the horizontal direction-the count value conversion table of the counter for detecting the horizontal position of the detector A memory M58 for storage, a count value storage memory M59 for a detector for detecting a horizontal position in the horizontal direction corresponding to the center position in the horizontal direction of the target pattern, and a memory for storing a count value M60 for a counter for detecting the horizontal position in the horizontal direction of the detector are provided. Yes.

さらに、帯状体断裁位置制御装置は、ターゲット絵柄の天地方向の基準長さに対応する印刷機の回転位相検出用カウンタのカウント値記憶用メモリM61、ターゲット絵柄の天方向端の基準位置−印刷機の回転位相検出用カウンタのカウント値変換テーブル記憶用メモリM62、ターゲット絵柄の天方向端の基準位置に対応する印刷機の回転位相検出用カウンタのカウント値記憶用メモリM63、検出範囲(カウンタのカウント値)記憶用メモリM64、検出開始時の印刷機の回転位相検出用カウンタのカウント値記憶用メモリM65、検出終了時の印刷機の回転位相検出用カウンタのカウント値記憶用メモリM66、ターゲット絵柄の天方向端の位置に対応する印刷機の回転位相検出用カウンタのカウント値記憶用メモリM67、ターゲット絵柄の地方向端の位置に対応する印刷機の回転位相検出用カウンタのカウント値記憶用メモリM68、ターゲット絵柄の天地方向の長さに対応する印刷機の回転位相検出用カウンタのカウント値記憶用メモリM69、ターゲット絵柄の天地方向の長さの差(カウンタのカウント値)記憶用メモリM70、ターゲット絵柄の天地方向の長さの差(カウンタのカウント値)の絶対値記憶用メモリM71、ターゲット絵柄の天地方向の長さの差の許容値(カウンタのカウント値)記憶用メモリM72、印刷機の回転位相検出用カウンタのカウント値差記憶用メモリM73、印刷機の回転位相検出用カウンタのカウント値差の絶対値記憶用メモリM74、許容値(カウンタのカウント値)記憶用メモリM75、印刷機の回転位相検出用カウンタのカウント値差−コンペンセータ・ロール位置検出用カウンタのカウント値変換テーブル記憶用メモリM76、補正すべきコンペンセータ・ロール位置検出用カウンタのカウント値記憶用メモリM77、コンペンセータ・ロール位置検出用カウンタのカウント値記憶用メモリM78、目標とするコンペンセータ・ロール位置検出用カウンタのカウント値記憶用メモリM79を備えている。   Further, the strip cutting position control device includes a count value storage memory M61 of a counter for rotation phase detection of a printing machine corresponding to a reference length in the vertical direction of the target picture, a reference position of the top edge of the target picture in the printing machine. Rotation phase detection counter count value conversion table storage memory M62, counter value storage memory M63 of the rotation phase detection counter of the printing press corresponding to the reference position at the top end of the target pattern, detection range (counter count Value) storage memory M64, count value storage memory M65 of the rotation phase detection counter of the printing press at the start of detection, count value storage memory M66 of the rotation phase detection counter of the printing press at the end of detection, Count value storage memory M67 of the rotation phase detection counter of the printing press corresponding to the position of the top end, the target Count value storage memory M68 of the rotation phase detection counter of the printing press corresponding to the position of the end of the pattern in the ground direction, and count value storage of the counter of rotation phase detection of the printing press corresponding to the vertical length of the target pattern Memory M69, memory for storing the difference in length of the target pattern in the vertical direction (counter count value), memory M70, memory for storing the absolute value of the difference in length in the vertical direction of the target pattern (counter count value) M71, target pattern Storage length memory M72, counter value detection memory M73 of the rotation phase detection counter of the printing press, count value of the counter for rotation phase detection of the printing press A memory M74 for storing the absolute value of the difference, a memory M75 for storing an allowable value (count value of the counter), and a counter for the counter for detecting the rotational phase of the printing press Compensator / roll position detection counter count value conversion table storage memory M76, Compensator / roll position detection counter count value storage memory M77, Compensator / roll position detection counter count value storage And a memory M79 for storing a count value of a target compensator / roll position detection counter.

そして、CPU10は、第1のI/O13から第5のI/O17を介して与えられる各種入力情報を得て、RAM12や各種のメモリM1〜M79にアクセスしながら、ROM11に記憶されたプログラムに従って動作する。   Then, the CPU 10 obtains various input information given from the first I / O 13 through the fifth I / O 17 and accesses the RAM 12 and various memories M1 to M79 according to the program stored in the ROM 11. Operate.

以下、本発明の実施例に係る帯状体断裁位置制御装置の処理の流れについて説明する。ここで、PPF等の印刷される印刷物の絵柄データよりターゲット絵柄となるべき絵柄の選択の方法について概括的に説明する。
始めに、絵柄データよりシアン用の画素データ、マゼンタ用の画素データ、イエロー用の画素データ、ブラック用の画素データのそれぞれの面積値を読み込む。
Hereinafter, the flow of processing of the strip cutting position control device according to the embodiment of the present invention will be described. Here, a method for selecting a picture to be a target picture from the picture data of a printed matter such as PPF will be generally described.
First, the area values of the pixel data for cyan, the pixel data for magenta, the pixel data for yellow, and the pixel data for black are read from the picture data.

次に、各画素におけるシアンの面積値に係数を掛けた値と、マゼンダの面積値に係数を掛けた値と、イエローの面積値に係数を掛けた値と、ブラックの面積値に係数を掛けた値とを積算して濃度値を求め、この各画素における濃度値として記憶する。なお、各色の面積値に掛ける係数は、色の濃淡に基づき設定するため、例えば、ブラックの係数は大きな値を設定し、イエローの係数は小さい値を設定する。   Next, a value obtained by multiplying the cyan area value in each pixel by a coefficient, a value obtained by multiplying the magenta area value by a coefficient, a value obtained by multiplying the yellow area value by a coefficient, and a coefficient obtained by multiplying the black area value by a coefficient. The obtained density value is integrated to obtain a density value and stored as the density value in each pixel. Since the coefficient to be multiplied by the area value of each color is set based on the color density, for example, a large value is set for the black coefficient and a small value is set for the yellow coefficient.

図3は、本発明の実施例に係る絵柄データより各画素のコントラストを予想して求めた3値化データの例を示した図である。なお、ここでは各画素の左右方向の位置をXとし、下側天方向、上側を地方向として天地方向の位置をYとして説明する。図3に示すように、各画素の濃度値が予め設定する第1のしきい値より小さい場合は0を、予め設定する第2のしきい値より大きい場合は1を、第1のしきい値より小さくなく、第2のしきい値より大きくない場合は2を各画素の3値化データとして記憶する。なお、図3中に空白で示すアドレスには0が記憶されているものとする。そして、3値化データから1が記憶された画素を探索し、この1が記憶された画素について天方向の20画素に0が記憶されているか判断する。   FIG. 3 is a diagram showing an example of ternary data obtained by predicting the contrast of each pixel from the pattern data according to the embodiment of the present invention. Here, the horizontal position of each pixel will be described as X, and the lower side sky direction and the upper side as the ground direction will be described as Y. As shown in FIG. 3, when the density value of each pixel is smaller than the first threshold value set in advance, 0 is set. When the density value is larger than the second threshold value set in advance, 1 is set, and the first threshold value is set. If it is not smaller than the value and not larger than the second threshold value, 2 is stored as the ternary data of each pixel. It is assumed that 0 is stored in the address indicated by a blank in FIG. Then, a pixel in which 1 is stored is searched from the ternary data, and it is determined whether 0 is stored in 20 pixels in the sky for the pixel in which 1 is stored.

図4は本発明の実施例に係る判断用データの例を示した図である。なお、ここでも各画素の左右方向の位置をXとし、下側天方向、上側を地方向として天地方向の位置をYとして説明する。図4に示すように、1が記憶され、かつ、天方向の20画素に0が記憶されている画素について、この画素の左側の画素に1が記憶された画素が存在しない場合には判断用データとして1を記憶し、この画素の左側の画素に1が記憶された画素が存在する場合には左側の画素に記憶された判断用データの値に1を加算した値を判断用データとして記憶する。   FIG. 4 is a diagram showing an example of determination data according to the embodiment of the present invention. Here, the position in the horizontal direction of each pixel will be described as X, and the position in the vertical direction will be described as Y with the lower sky direction and the upper side as the ground direction. As shown in FIG. 4, for a pixel in which 1 is stored and 0 is stored in 20 pixels in the top direction, there is no pixel in which 1 is stored in the pixel on the left side of this pixel. 1 is stored as data, and when there is a pixel in which 1 is stored in the left pixel of this pixel, a value obtained by adding 1 to the value of the determination data stored in the left pixel is stored as determination data. To do.

次に、判断用データから左右方向に10画素以上連続して1が記憶されている箇所を探索し、3値化データを参照して該当する箇所の最も右側に位置する画素の地方向の画素に1が記憶されている画素がいくつあるか探索する。   Next, a location where 10 or more pixels are continuously stored in the left-right direction is searched from the determination data, and the pixel in the ground direction of the pixel located on the rightmost side of the corresponding location with reference to the ternary data The number of pixels in which 1 is stored is searched.

図5は本発明の実施例に係るターゲット絵柄の候補の探索の例を示した図である。図5に示すように、A1で示す箇所には左右方向の10画素に1が記憶されていて、このうち最も右側に位置する画素の地方向の1画素に1が記憶されている場合、A1で示す箇所に1が記憶されている画素が20個あるか判断する。これによりA1で示す箇所の1が記憶されている画素が完全に矩形状となっていることがわかる。   FIG. 5 is a diagram illustrating an example of searching for a candidate for a target pattern according to the embodiment of the present invention. As shown in FIG. 5, when 1 is stored in 10 pixels in the left-right direction at the location indicated by A1, and 1 is stored in 1 pixel in the ground direction of the pixel located on the rightmost side, A1 It is determined whether there are 20 pixels in which 1 is stored at the location indicated by. As a result, it can be seen that the pixel in which 1 of the location indicated by A1 is stored is completely rectangular.

そして、A1で示す箇所の最も右側に位置する画素の地方向の画素に0が記憶されている画素が20個以上あるか判断し、A0で示す箇所に20個以上ある場合はこれらの画素とこれらの画素の左側の9画素に1が記憶されている画素がいくつあるか探索し、0個の場合にターゲット絵柄の候補として記憶する。このように、1が記憶された画素が完全な矩形状で、かつ、1が記憶された画素の天地方向の20画素以上には0が記憶されているため、A1で示す箇所を検出器42により確実に検出することが可能となる。   Then, it is determined whether there are 20 or more pixels in which 0 is stored in the pixel in the ground direction of the pixel located on the rightmost side of the location indicated by A1, and if there are 20 or more pixels at the location indicated by A0, The number of pixels in which 1 is stored in the 9 pixels on the left side of these pixels is searched, and when it is 0, it is stored as a target picture candidate. In this way, since the pixel storing 1 is a perfect rectangle, and 0 or more is stored in 20 or more pixels in the vertical direction of the pixel storing 1, the location indicated by A 1 is detected by the detector 42. Therefore, it is possible to detect with certainty.

また、Bで示す箇所の場合、左右方向の10画素に1が記憶されていて、このうち最も右側に位置する画素の地方向の2画素に1が記憶されているため、Bで示す箇所に1が記憶されている画素が30個あるか判断する。しかし、Bで示す箇所の場合、1が記憶されている画素が25個しかないのでターゲット絵柄の候補から除外される。これは、Bで示す箇所の場合、地方向側の端部が直線状になっておらず完全な矩形状でないため、検出器42により正確に検出することができないおそれがあるためである。   In the case of the location indicated by B, 1 is stored in 10 pixels in the left-right direction, and 1 is stored in 2 pixels in the ground direction of the pixel located on the rightmost side. It is determined whether there are 30 pixels in which 1 is stored. However, in the case indicated by B, since there are only 25 pixels in which 1 is stored, it is excluded from the target picture candidates. This is because, in the case of the location indicated by B, the end on the ground direction side is not linear and is not completely rectangular, and therefore may not be detected accurately by the detector 42.

また、C1で示す箇所の場合、左右方向の10画素に1が記憶されていて、このうち最も右側に位置する画素の地方向の1画素に1が記憶されているため、C1で示す箇所に1が記憶されている画素が20個あるか判断する。C1で示す箇所の場合、1が記憶されている画素が20個あるので、C1で示す箇所の最も右側に位置する画素の地方向の画素に0が記憶されている画素が20個以上あるか判断し、C0で示す箇所に20個以上ある場合はこれらの画素とこれらの画素の左側の9画素に1が記憶されている画素がいくつあるか探索し、0個の場合にターゲット絵柄の候補として記憶する。しかし、C1で示す箇所の場合、1が記憶されている画素が5個あるのでターゲット絵柄の候補から除外される。これは、C1で示す箇所の場合も、地方向側の端部が直線状になっておらず完全な矩形状でないため、検出器42により正確に検出することができないおそれがあるためである。   In the case indicated by C1, 1 is stored in 10 pixels in the left-right direction, and 1 is stored in one pixel in the ground direction of the pixel located on the rightmost side. It is determined whether there are 20 pixels in which 1 is stored. In the case of the location indicated by C1, there are 20 pixels in which 1 is stored, so whether there are 20 or more pixels in which 0 is stored in the pixel in the ground direction of the pixel located on the rightmost side of the location indicated by C1 If there are 20 or more at the location indicated by C0, the number of pixels in which 1 is stored in these pixels and the 9 pixels on the left side of these pixels is searched. Remember as. However, in the case indicated by C1, since there are five pixels in which 1 is stored, it is excluded from the target picture candidates. This is because even in the case indicated by C1, the end on the ground side is not linear and is not completely rectangular, so that the detector 42 may not be able to detect it accurately.

最後に、ターゲット絵柄の候補のうちから、1が記憶された画素の左右方向の個数が最も多く、かつ、1が記憶された画素の天地方向の個数が最も多く、かつ、1が記憶された画素の天地方向の0が記憶された画素の個数が最も多いターゲット絵柄の候補をターゲット絵柄として選択する。   Finally, among the target pattern candidates, the number of pixels in which the 1 is stored is the largest in the horizontal direction, the number of pixels in which the 1 is stored is the highest in the vertical direction, and 1 is stored. A candidate for the target picture having the largest number of pixels in which 0 in the vertical direction of the pixel is stored is selected as the target picture.

以下、本発明の実施例に係る帯状体断裁位置制御装置の処理の流れについて詳細に説明する。図7A〜図7C、図8A、図8B、図9A〜図9D、図10A〜図10D、図11A〜図11E、図12A、図12B、図13A〜図13Dは本発明の実施例に係る帯状体断裁位置制御装置の動作フロー図である。以下、各ステップ毎に処理の内容について説明する。なお、ここでは、断裁胴の回転位相を印刷機の回転位相として説明している。   Hereinafter, the processing flow of the strip-shaped body cutting position control device according to the embodiment of the present invention will be described in detail. 7A to 7C, 8A, 8B, 9A to 9D, 10A to 10D, 11A to 11E, 12A, 12B, and 13A to 13D are bands according to the embodiments of the present invention. It is an operation | movement flowchart of a body cutting position control apparatus. Hereinafter, the contents of the process will be described for each step. Here, the rotational phase of the cutting cylinder is described as the rotational phase of the printing press.

ステップP1において、CPU10は、印刷絵柄データ読込み開始スイッチ18が、オペレータによりONにされているかどうか判断する。CPU10は、印刷絵柄データ読込み開始スイッチ18が、オペレータによりONにされている場合、ステップP6を実行する。また、CPU10は、印刷絵柄データ読込み開始スイッチ18が、オペレータによりONにされていない場合、ステップP2を実行する。   In step P1, the CPU 10 determines whether or not the print pattern data reading start switch 18 is turned on by the operator. When the print pattern data reading start switch 18 is turned on by the operator, the CPU 10 executes Step P6. On the other hand, when the print pattern data reading start switch 18 is not turned ON by the operator, the CPU 10 executes Step P2.

ステップP2において、CPU10は、左側の余白部長さ設定器25に入力が有るかどうか判断する。CPU10は、左側の余白部長さ設定器25に入力が有る場合、ステップP3を実行する。また、CPU10は、左側の余白部長さ設定器25に入力が無い場合、ステップP4を実行する。   In step P <b> 2, the CPU 10 determines whether or not there is an input to the left margin part length setting unit 25. When there is an input to the left margin portion length setting unit 25, the CPU 10 executes Step P3. On the other hand, when there is no input to the left margin portion length setting unit 25, the CPU 10 executes Step P4.

ステップP3において、CPU10は、左側の余白部長さ設定器25より、左側の余白部長さを読込み、左側の余白部長さ記憶用メモリM1に記憶する。CPU10は、ステップP3の処理が完了した後、ステップP4を実行する。   In step P3, the CPU 10 reads the left margin length from the left margin setting device 25 and stores it in the left margin storage memory M1. After completing the process in Step P3, the CPU 10 executes Step P4.

ステップP4において、CPU10は、天側の余白部長さ設定器26に入力が有るかどうか判断する。CPU10は、天側の余白部長さ設定器26に入力が有る場合、ステップP5を実行する。また、CPU10は、天側の余白部長さ設定器26に入力が無い場合、ステップP1を実行する。   In Step P <b> 4, the CPU 10 determines whether or not there is an input to the top margin portion setting unit 26. CPU10 performs step P5, when there exists an input in the margin part length setting device 26 of the top side. On the other hand, when there is no input to the top margin portion setting device 26, the CPU 10 executes Step P1.

ステップP5において、CPU10は、天側の余白部長さ設定器26より、天側の余白部長さを読込み、天側の余白部長さ記憶用メモリM2に記憶する。CPU10は、ステップP5の処理が完了した後、ステップP1を実行する。
ステップP6において、CPU10は、各メモリを初期化する処理を行う。CPU10は、ステップP6の処理が完了した後、ステップP7を実行する。
ステップP7において、CPU10は、フロッピー・ディスク・ドライブ23に、印刷絵柄の左右方向の長さ、天地方向の長さ、左右方向の総画素数、天地方向の総画素数の読込み指令を出力する。CPU10は、ステップP7の処理が完了した後、ステップP8を実行する。
In step P5, the CPU 10 reads the length of the top margin portion from the top margin portion setter 26 and stores it in the top margin length storage memory M2. After completing the process in Step P5, the CPU 10 executes Step P1.
In step P6, the CPU 10 performs a process of initializing each memory. After completing the process in Step P6, the CPU 10 executes Step P7.
In step P7, the CPU 10 outputs to the floppy disk drive 23 a read command for the horizontal length of the printed pattern, the vertical length, the total number of pixels in the horizontal direction, and the total number of pixels in the vertical direction. After completing the process in Step P7, the CPU 10 executes Step P8.

ステップP8において、CPU10は、フロッピー・ディスク・ドライブ23より、印刷絵柄の左右方向の長さ、天地方向の長さ、左右方向の総画素数、天地方向の総画素数を読込み、印刷絵柄の左右方向の長さ記憶用メモリM3、印刷絵柄の天地方向の長さ記憶用メモリM4、印刷絵柄の左右方向の総画素数記憶用メモリM5、印刷絵柄の天地方向の総画素数記憶用メモリM6に記憶する。CPU10は、ステップP8の処理が完了した後、ステップP9を実行する。   In step P8, the CPU 10 reads from the floppy disk drive 23 the horizontal length of the printed pattern, the vertical length, the total number of pixels in the horizontal direction, and the total number of pixels in the vertical direction. The direction length storage memory M3, the print pattern vertical length storage memory M4, the print pattern horizontal pixel total storage memory M5, and the print pattern vertical pixel total storage memory M6 Remember. After completing the process in Step P8, the CPU 10 executes Step P9.

ステップP9において、CPU10は、フロッピー・ディスク・ドライブ23に、各色の絵柄データの読込み指令を出力する。CPU10は、ステップP9の処理が完了した後、ステップP10を実行する。   In step P <b> 9, the CPU 10 outputs a command to read the pattern data of each color to the floppy disk drive 23. After completing the process in Step P9, the CPU 10 executes Step P10.

ステップP10において、CPU10は、フロッピー・ディスク・ドライブ23より、各色の絵柄データを読込み、各色の絵柄データ記憶用メモリM7に記憶する。CPU10は、ステップP10の処理が完了した後、ステップP11を実行する。   In Step P10, the CPU 10 reads the pattern data of each color from the floppy disk drive 23 and stores it in the pattern data storage memory M7 for each color. After completing the process in Step P10, the CPU 10 executes Step P11.

ステップP11において、CPU10は、カウント値Y記憶用メモリM8に、1を上書きする。CPU10は、ステップP11の処理が完了した後、ステップP12を実行する。
ステップP12において、CPU10は、カウント値X記憶用メモリM9に、1を上書きする。CPU10は、ステップP12の処理が完了した後、ステップP13を実行する。
In Step P11, the CPU 10 overwrites 1 in the count value Y storage memory M8. After completing the process in Step P11, the CPU 10 executes Step P12.
In Step P12, the CPU 10 overwrites 1 in the count value X storage memory M9. After completing the process in Step P12, the CPU 10 executes Step P13.

ステップP13において、CPU10は、各色の絵柄データのシアン用の最初の画素データ、マゼンタ用の最初の画素データ、イエロー用の最初の画素データ、ブラック用の最初の画素データを読込み、シアン用の画素データ、マゼンタ用の画素データ、イエロー用の画素データ、ブラック用の画素データ記憶用メモリM10に記憶する。CPU10は、ステップP13の処理が完了した後、ステップP14を実行する。   In Step P13, the CPU 10 reads the first pixel data for cyan, the first pixel data for magenta, the first pixel data for yellow, and the first pixel data for black of the image data of each color, and the pixel for cyan The data, magenta pixel data, yellow pixel data, and black pixel data storage memory M10 are stored. After completing the process in Step P13, the CPU 10 executes Step P14.

ステップP14において、CPU10は、絵柄データのシアン用の最初の画素データ、マゼンタ用の最初の画素データ、イエロー用の最初の画素データ、ブラック用の最初の画素データより、印刷絵柄の最初の画素データを演算し、印刷絵柄データ記憶用メモリM11のアドレス(X,Y)の位置に記憶する。CPU10は、ステップP14の処理が完了した後、ステップP15を実行する。尚、印刷絵柄の最初の画素データは、前記したように、シアン用の最初の画素データ、マゼンタ用の最初の画素データ、イエロー用の最初の画素データ、ブラック用の最初の画素データに各色毎に予め定められた係数を乗算し、それらを加算することによって求められる。   In step P14, the CPU 10 determines the first pixel data of the printed pattern from the first pixel data for cyan, the first pixel data for magenta, the first pixel data for yellow, and the first pixel data for black. Is calculated and stored at the address (X, Y) position of the memory M11 for storing print picture data. After completing the process in Step P14, the CPU 10 executes Step P15. As described above, the first pixel data of the printed pattern includes the first pixel data for cyan, the first pixel data for magenta, the first pixel data for yellow, and the first pixel data for black for each color. Is multiplied by a predetermined coefficient and added.

ステップP15において、CPU10は、カウント値X記憶用メモリM9から、カウント値Xを読込む。CPU10は、ステップP15の処理が完了した後、ステップP16を実行する。
ステップP16において、CPU10は、カウント値Xに1を加算し、求めた値をカウント値X記憶用メモリM9に上書きする。CPU10は、ステップP16の処理が完了した後、ステップP17を実行する。
In Step P15, the CPU 10 reads the count value X from the count value X storage memory M9. After completing the process in Step P15, the CPU 10 executes Step P16.
In Step P16, the CPU 10 adds 1 to the count value X and overwrites the obtained value in the count value X storage memory M9. After completing the process in Step P16, the CPU 10 executes Step P17.

ステップP17において、CPU10は、各色の絵柄データのシアン用の次の画素データ、マゼンタ用の次の画素データ、イエロー用の次の画素データ、ブラック用の次の画素データを読込み、シアン用の画素データ、マゼンタ用の画素データ、イエロー用の画素データ、ブラック用の画素データ記憶用メモリM10に記憶する。CPU10は、ステップP17の処理が完了した後、ステップP18を実行する。   In step P17, the CPU 10 reads the next pixel data for cyan, the next pixel data for magenta, the next pixel data for yellow, and the next pixel data for black in the picture data of each color, and the pixel for cyan The data, magenta pixel data, yellow pixel data, and black pixel data storage memory M10 are stored. After completing the process in Step P17, the CPU 10 executes Step P18.

ステップP18において、CPU10は、絵柄データのシアン用の次の画素データ、マゼンタ用の次の画素データ、イエロー用の次の画素データ、ブラック用の次の画素データより、印刷絵柄の次の画素データを演算し、印刷絵柄データ記憶用メモリM11のアドレス(X,Y)の位置に記憶する。CPU10は、ステップP18の処理が完了した後、ステップP19を実行する。尚、印刷絵柄の次の画素データは、前記したように、シアン用の次の画素データ、マゼンタ用の次の画素データ、イエロー用の次の画素データ、ブラック用の次の画素データに各色毎に予め定められた係数を乗算し、それらを加算することによって求められる。   In Step P18, the CPU 10 determines the next pixel data of the print pattern from the next pixel data for cyan, the next pixel data for magenta, the next pixel data for yellow, and the next pixel data for black. Is calculated and stored at the address (X, Y) position of the memory M11 for storing print picture data. After completing the process in Step P18, the CPU 10 executes Step P19. In addition, as described above, the next pixel data for the printed picture is the next pixel data for cyan, the next pixel data for magenta, the next pixel data for yellow, and the next pixel data for black. Is multiplied by a predetermined coefficient and added.

ステップP19において、CPU10は、カウント値X記憶用メモリM9から、カウント値Xを読込む。CPU10は、ステップP19の処理が完了した後、ステップP20を実行する。
ステップP20において、CPU10は、カウント値Xに1を加算し、求めた値をカウント値X記憶用メモリM9に上書きする。CPU10は、ステップP20の処理が完了した後、ステップP21を実行する。
In Step P19, the CPU 10 reads the count value X from the count value X storage memory M9. After completing the process in Step P19, the CPU 10 executes Step P20.
In Step P20, the CPU 10 adds 1 to the count value X and overwrites the obtained value in the count value X storage memory M9. After completing the process in Step P20, the CPU 10 executes Step P21.

ステップP21において、CPU10は、カウント値X記憶用メモリM9から、カウント値Xを読込む。CPU10は、ステップP21の処理が完了した後、ステップP22を実行する。
ステップP22において、CPU10は、印刷絵柄の左右方向の総画素数記憶用メモリM5から、印刷絵柄の左右方向の総画素数を読込む。CPU10は、ステップP22の処理が完了した後、ステップP23を実行する。
In Step P21, the CPU 10 reads the count value X from the count value X storage memory M9. After completing the process in Step P21, the CPU 10 executes Step P22.
In Step P22, the CPU 10 reads the total number of pixels in the left-right direction of the printed pattern from the memory M5 for storing the total number of pixels in the left-right direction of the printed pattern. After completing the process in Step P22, the CPU 10 executes Step P23.

ステップP23において、CPU10は、カウント値Xが印刷絵柄の左右方向の総画素数よりも大きいかどうか判断する。CPU10は、カウント値Xが印刷絵柄の左右方向の総画素数よりも大きい場合、ステップP24を実行する。また、CPU10は、カウント値Xが印刷絵柄の左右方向の総画素数よりも大きくない場合、ステップP17を実行する。   In Step P23, the CPU 10 determines whether or not the count value X is larger than the total number of pixels in the left and right direction of the printed pattern. When the count value X is larger than the total number of pixels in the left-right direction of the printed pattern, the CPU 10 executes Step P24. On the other hand, when the count value X is not larger than the total number of pixels in the left-right direction of the printed picture, the CPU 10 executes Step P17.

ステップP24において、CPU10は、カウント値Y記憶用メモリM8から、カウント値Yを読込む。CPU10は、ステップP24の処理が完了した後、ステップP25を実行する。
ステップP25において、CPU10は、カウント値Yに1を加算し、求めた値をカウント値Y記憶用メモリM8に上書きする。CPU10は、ステップP25の処理が完了した後、ステップP26を実行する。
ステップP26において、CPU10は、カウント値X記憶用メモリM9に、1を上書きする。CPU10は、ステップP26の処理が完了した後、ステップP27を実行する。
In Step P24, the CPU 10 reads the count value Y from the count value Y storage memory M8. After completing the process in Step P24, the CPU 10 executes Step P25.
In Step P25, the CPU 10 adds 1 to the count value Y, and overwrites the obtained value in the count value Y storage memory M8. After completing the process in Step P25, the CPU 10 executes Step P26.
In Step P26, the CPU 10 overwrites 1 in the count value X storage memory M9. After completing the process in Step P26, the CPU 10 executes Step P27.

ステップP27において、CPU10は、各色の絵柄データのシアン用の次の画素データ、マゼンタ用の次の画素データ、イエロー用の次の画素データ、ブラック用の次の画素データを読込み、シアン用の画素データ、マゼンタ用の画素データ、イエロー用の画素データ、ブラック用の画素データ記憶用メモリM10に記憶する。CPU10は、ステップP27の処理が完了した後、ステップP28を実行する。   In step P27, the CPU 10 reads the next pixel data for cyan, the next pixel data for magenta, the next pixel data for yellow, and the next pixel data for black in the picture data for each color, and the pixel for cyan The data, magenta pixel data, yellow pixel data, and black pixel data storage memory M10 are stored. After completing the process in Step P27, the CPU 10 executes Step P28.

ステップP28において、CPU10は、絵柄データのシアン用の次の画素データ、マゼンタ用の次の画素データ、イエロー用の次の画素データ、ブラック用の次の画素データより、印刷絵柄の次の画素データを演算し、印刷絵柄データ記憶用メモリM11のアドレス(X,Y)の位置に記憶する。CPU10は、ステップP28の処理が完了した後、ステップP29を実行する。尚、印刷絵柄の次の画素データは、前記したように、シアン用の次の画素データ、マゼンタ用の次の画素データ、イエロー用の次の画素データ、ブラック用の次の画素データに各色毎に予め定められた係数を乗算し、それらを加算することによって求められる。   In step P28, the CPU 10 determines the next pixel data of the print pattern from the next pixel data for cyan, the next pixel data for magenta, the next pixel data for yellow, and the next pixel data for black. Is calculated and stored at the address (X, Y) position of the memory M11 for storing print picture data. After completing the process in Step P28, the CPU 10 executes Step P29. In addition, as described above, the next pixel data for the printed picture is the next pixel data for cyan, the next pixel data for magenta, the next pixel data for yellow, and the next pixel data for black. Is multiplied by a predetermined coefficient and added.

ステップP29において、CPU10は、カウント値X記憶用メモリM9から、カウント値Xを読込む。CPU10は、ステップP29の処理が完了した後、ステップP30を実行する。
ステップP30において、CPU10は、カウント値Xに1を加算し、求めた値をカウント値X記憶用メモリM9に上書きする。CPU10は、ステップP30の処理が完了した後、ステップP31を実行する。
In Step P29, the CPU 10 reads the count value X from the count value X storage memory M9. After completing the process in Step P29, the CPU 10 executes Step P30.
In Step P30, the CPU 10 adds 1 to the count value X, and overwrites the obtained value in the count value X storage memory M9. After completing the process in Step P30, the CPU 10 executes Step P31.

ステップP31において、CPU10は、カウント値X記憶用メモリM9から、カウント値Xを読込む。CPU10は、ステップP31の処理が完了した後、ステップP32を実行する。
ステップP32において、CPU10は、印刷絵柄の左右方向の総画素数記憶用メモリM5から、印刷絵柄の左右方向の総画素数を読込む。CPU10は、ステップP32の処理が完了した後、ステップP33を実行する。
In Step P31, the CPU 10 reads the count value X from the count value X storage memory M9. After completing the process in Step P31, the CPU 10 executes Step P32.
In Step P32, the CPU 10 reads the total number of pixels in the horizontal direction of the printed pattern from the memory M5 for storing the total number of pixels in the horizontal direction of the printed pattern. After completing the process in Step P32, the CPU 10 executes Step P33.

ステップP33において、CPU10は、カウント値Xが印刷絵柄の左右方向の総画素数よりも大きいかどうか判断する。CPU10は、カウント値Xが印刷絵柄の左右方向の総画素数よりも大きい場合、ステップP34を実行する。また、CPU10は、カウント値Xが印刷絵柄の左右方向の総画素数よりも大きくない場合、ステップP27を実行する。   In Step P33, the CPU 10 determines whether or not the count value X is larger than the total number of pixels in the left and right direction of the printed pattern. When the count value X is larger than the total number of pixels in the left-right direction of the printed picture, the CPU 10 executes Step P34. On the other hand, when the count value X is not larger than the total number of pixels in the left-right direction of the printed pattern, the CPU 10 executes Step P27.

ステップP34において、CPU10は、カウント値Y記憶用メモリM8から、カウント値Yを読込む。CPU10は、ステップP34の処理が完了した後、ステップP35を実行する。
ステップP35において、CPU10は、カウント値Yに1を加算し、求めた値をカウント値Y記憶用メモリM8に上書きする。CPU10は、ステップP35の処理が完了した後、ステップP36を実行する。
In Step P34, the CPU 10 reads the count value Y from the count value Y storage memory M8. After completing the process in Step P34, the CPU 10 executes Step P35.
In Step P35, the CPU 10 adds 1 to the count value Y, and overwrites the obtained value in the count value Y storage memory M8. After completing the process in Step P35, the CPU 10 executes Step P36.

ステップP36において、CPU10は、カウント値Y記憶用メモリM8から、カウント値Yを読込む。CPU10は、ステップP36の処理が完了した後、ステップP37を実行する。
ステップP37において、CPU10は、印刷絵柄の天地方向の総画素数記憶用メモリM6から、印刷絵柄の天地方向の総画素数を読込む。CPU10は、ステップP37の処理が完了した後、ステップP38を実行する。
In Step P36, the CPU 10 reads the count value Y from the count value Y storage memory M8. After completing the process in Step P36, the CPU 10 executes Step P37.
In Step P37, the CPU 10 reads the total number of pixels in the vertical direction of the printed pattern from the memory M6 for storing the total number of pixels in the vertical direction of the printed pattern. After completing the process in Step P37, the CPU 10 executes Step P38.

ステップP38において、CPU10は、カウント値Yが印刷絵柄の天地方向の総画素数よりも大きいかどうか判断する。CPU10は、カウント値Yが印刷絵柄の天地方向の総画素数よりも大きい場合、ステップP39を実行する。また、CPU10は、カウント値Yが印刷絵柄の天地方向の総画素数よりも大きくない場合、ステップP26を実行する。   In Step P38, the CPU 10 determines whether the count value Y is larger than the total number of pixels in the vertical direction of the printed pattern. When the count value Y is larger than the total number of pixels in the vertical direction of the printed pattern, the CPU 10 executes Step P39. On the other hand, when the count value Y is not greater than the total number of pixels in the vertical direction of the printed pattern, the CPU 10 executes Step P26.

以上の動作フローによって、フロッピー・ディスクから読込んだ各画素のシアン用の画素データ、マゼンタ用の画素データ、イエロー用の画素データ、ブラック用の画素データより各画素の印刷絵柄の画素データを求めると共に、各画素の絵柄内における位置に対応するアドレス(X、Y)位置に各画素の印刷絵柄の画素データを記憶する。   By the above operation flow, the pixel data of the print pattern of each pixel is obtained from the pixel data for cyan, the pixel data for magenta, the pixel data for yellow, and the pixel data for black read from the floppy disk. At the same time, the pixel data of the printed picture of each pixel is stored at the address (X, Y) position corresponding to the position of each pixel in the picture.

ステップP39において、CPU10は、カウント値Y記憶用メモリM8に、1を上書きする。CPU10は、ステップP39の処理が完了した後、ステップP40を実行する。
ステップP40において、CPU10は、カウント値X記憶用メモリM9に、1を上書きする。CPU10は、ステップP40の処理が完了した後、ステップP41を実行する。
In Step P39, the CPU 10 overwrites 1 in the count value Y storage memory M8. After completing the process in Step P39, the CPU 10 executes Step P40.
In Step P40, the CPU 10 overwrites 1 in the count value X storage memory M9. After completing the process in Step P40, the CPU 10 executes Step P41.

ステップP41において、CPU10は、印刷絵柄データ記憶用メモリM11のアドレス(X,Y)の位置より、アドレス(X,Y)の位置の画素データを読込み、アドレス(X,Y)の位置の画素データ記憶用メモリM12に記憶する。CPU10は、ステップP41の処理が完了した後、ステップP42を実行する。   In Step P41, the CPU 10 reads the pixel data at the address (X, Y) from the position of the address (X, Y) in the print picture data storage memory M11, and the pixel data at the address (X, Y). Store in the storage memory M12. After completing the process in Step P41, the CPU 10 executes Step P42.

ステップP42において、CPU10は、画素データの第1のしきい値記憶用メモリM13から、画素データの第1のしきい値を読込む。CPU10は、ステップP42の処理が完了した後、ステップP43を実行する。尚、第1のしきい値は、動作開始前に、予め画素データの第1のしきい値記憶用メモリM13に記憶されている。また、第1のしきい値は、ほとんど絵柄が無い部分の濃度に近いが、それよりある程度大きい値である。   In Step P42, the CPU 10 reads the first threshold value of the pixel data from the first threshold value storage memory M13 of the pixel data. After completing the process in Step P42, the CPU 10 executes Step P43. The first threshold value is stored in advance in the first threshold value storage memory M13 for pixel data before the operation starts. Further, the first threshold value is close to the density of the portion having almost no pattern, but is a value somewhat larger than that.

ステップP43において、CPU10は、アドレス(X,Y)の位置の画素データが画素データの第1のしきい値よりも小さいかどうか判断する。CPU10は、アドレス(X,Y)の位置の画素データが画素データの第1のしきい値よりも小さい場合、ステップP44を実行する。また、CPU10は、アドレス(X,Y)の位置の画素データが画素データの第1のしきい値よりも小さくない場合、ステップP47を実行する。   In step P43, the CPU 10 determines whether or not the pixel data at the address (X, Y) is smaller than the first threshold value of the pixel data. When the pixel data at the position of the address (X, Y) is smaller than the first threshold value of the pixel data, the CPU 10 executes Step P44. On the other hand, when the pixel data at the position of the address (X, Y) is not smaller than the first threshold value of the pixel data, the CPU 10 executes Step P47.

ステップP44において、CPU10は、カウント値X記憶用メモリM9から、カウント値Xを読込む。CPU10は、ステップP44の処理が完了した後、ステップP45を実行する。
ステップP45において、CPU10は、カウント値Y記憶用メモリM8から、カウント値Yを読込む。CPU10は、ステップP45の処理が完了した後、ステップP46を実行する。
In Step P44, the CPU 10 reads the count value X from the count value X storage memory M9. After completing the process in Step P44, the CPU 10 executes Step P45.
In Step P45, the CPU 10 reads the count value Y from the count value Y storage memory M8. After completing the process in Step P45, the CPU 10 executes Step P46.

ステップP46において、CPU10は、印刷絵柄の3値化データ記憶用メモリM15のアドレス(X、Y)の位置に、0を書込む。CPU10は、ステップP46の処理が完了した後、ステップP56を実行する。   In Step P46, the CPU 10 writes 0 in the position of the address (X, Y) of the memory M15 for storing the ternary data of the printed pattern. After completing the process in Step P46, the CPU 10 executes Step P56.

ステップP47において、CPU10は、アドレス(X,Y)の位置の画素データ記憶用メモリM12から、アドレス(X,Y)の位置の画素データを読込む。CPU10は、ステップP47の処理が完了した後、ステップP48を実行する。   In Step P47, the CPU 10 reads the pixel data at the address (X, Y) from the pixel data storage memory M12 at the address (X, Y). After completing the process in Step P47, the CPU 10 executes Step P48.

ステップP48において、CPU10は、画素データの第2のしきい値記憶用メモリM14から、画素データの第2のしきい値を読込む。CPU10は、ステップP48の処理が完了した後、ステップP49を実行する。尚、第2のしきい値は、動作開始前に、予め画素データの第2のしきい値記憶用メモリM14に記憶されている。また、第2のしきい値は、前記第1のしきい値よりも大きな値であり、ブラックのベタの濃度に近いが、それよりある程度小さい値である。   In Step P48, the CPU 10 reads the second threshold value of the pixel data from the second threshold value memory M14 for pixel data. After completing the process in Step P48, the CPU 10 executes Step P49. The second threshold value is stored in advance in the second threshold value storage memory M14 for pixel data before the operation is started. The second threshold value is larger than the first threshold value and is close to the black solid density, but is somewhat smaller than that.

ステップP49において、CPU10は、アドレス(X,Y)の位置の画素データが画素データの第2のしきい値よりも大きいかどうか判断する。CPU10は、アドレス(X,Y)の位置の画素データが画素データの第2のしきい値よりも大きい場合、ステップP50を実行する。また、CPU10は、アドレス(X,Y)の位置の画素データが画素データの第2のしきい値よりも大きくない場合、ステップP53を実行する。   In Step P49, the CPU 10 determines whether the pixel data at the address (X, Y) is larger than the second threshold value of the pixel data. When the pixel data at the position of the address (X, Y) is larger than the second threshold value of the pixel data, the CPU 10 executes Step P50. On the other hand, when the pixel data at the address (X, Y) is not larger than the second threshold value of the pixel data, the CPU 10 executes Step P53.

ステップP50において、CPU10は、カウント値X記憶用メモリM9から、カウント値Xを読込む。CPU10は、ステップP50の処理が完了した後、ステップP51を実行する。
ステップP51において、CPU10は、カウント値Y記憶用メモリM8から、カウント値Yを読込む。CPU10は、ステップP51の処理が完了した後、ステップP52を実行する。
In Step P50, the CPU 10 reads the count value X from the count value X storage memory M9. After completing the process in Step P50, the CPU 10 executes Step P51.
In Step P51, the CPU 10 reads the count value Y from the count value Y storage memory M8. After completing the process in Step P51, the CPU 10 executes Step P52.

ステップP52において、CPU10は、印刷絵柄の3値化データ記憶用メモリM15のアドレス(X,Y)の位置に、1を書込む。CPU10は、ステップP52の処理が完了した後、ステップP56を実行する。   In Step P52, the CPU 10 writes 1 at the position of the address (X, Y) in the memory M15 for storing the ternary data of the printed pattern. After completing the process in Step P52, the CPU 10 executes Step P56.

ステップP53において、CPU10は、カウント値X記憶用メモリM9から、カウント値Xを読込む。CPU10は、ステップP53の処理が完了した後、ステップP54を実行する。
ステップP54において、CPU10は、カウント値Y記憶用メモリM8から、カウント値Yを読込む。CPU10は、ステップP54の処理が完了した後、ステップP55を実行する。
In Step P53, the CPU 10 reads the count value X from the count value X storage memory M9. After completing the process in Step P53, the CPU 10 executes Step P54.
In Step P54, the CPU 10 reads the count value Y from the count value Y storage memory M8. After completing the process in Step P54, the CPU 10 executes Step P55.

ステップP55において、CPU10は、印刷絵柄の3値化データ記憶用メモリM15のアドレス(X,Y)の位置に、2を書込む。CPU10は、ステップP55の処理が完了した後、ステップP56を実行する。   In Step P55, the CPU 10 writes 2 at the position of the address (X, Y) in the memory M15 for storing the ternary data of the printed pattern. After completing the process in Step P55, the CPU 10 executes Step P56.

ステップP56において、CPU10は、カウント値X記憶用メモリM9から、カウント値Xを読込む。CPU10は、ステップP56の処理が完了した後、ステップP57を実行する。
ステップP57において、CPU10は、カウント値Xに1を加算し、求めた値をカウント値X記憶用メモリM9に上書きする。CPU10は、ステップP57の処理が完了した後、ステップP58を実行する。
In Step P56, the CPU 10 reads the count value X from the count value X storage memory M9. After completing the process in Step P56, the CPU 10 executes Step P57.
In Step P57, the CPU 10 adds 1 to the count value X and overwrites the obtained value in the count value X storage memory M9. After completing the process in Step P57, the CPU 10 executes Step P58.

ステップP58において、CPU10は、印刷絵柄の左右方向の総画素数記憶用メモリM5から、印刷絵柄の左右方向の総画素数を読込む。CPU10は、ステップP58の処理が完了した後、ステップP59を実行する。   In Step P58, the CPU 10 reads the total number of pixels in the left and right direction of the printed pattern from the memory M5 for storing the total number of pixels in the left and right direction of the printed pattern. After completing the process in Step P58, the CPU 10 executes Step P59.

ステップP59において、CPU10は、カウント値Xが印刷絵柄の左右方向の総画素数よりも大きいかどうか判断する。CPU10は、カウント値Xが印刷絵柄の左右方向の総画素数よりも大きい場合、ステップP60を実行する。また、CPU10は、カウント値Xが印刷絵柄の左右方向の総画素数よりも大きくない場合、ステップP41を実行する。   In Step P59, the CPU 10 determines whether or not the count value X is larger than the total number of pixels in the left and right direction of the printed picture. When the count value X is larger than the total number of pixels in the left-right direction of the printed picture, the CPU 10 executes Step P60. On the other hand, when the count value X is not larger than the total number of pixels in the left-right direction of the printed picture, the CPU 10 executes Step P41.

ステップP60において、CPU10は、カウント値Y記憶用メモリM8から、カウント値Yを読込む。CPU10は、ステップP60の処理が完了した後、ステップP61を実行する。
ステップP61において、CPU10は、カウント値Yに1を加算し、求めた値をカウント値Y記憶用メモリM8に上書きする。CPU10は、ステップP61の処理が完了した後、ステップP62を実行する。
In Step P60, the CPU 10 reads the count value Y from the count value Y storage memory M8. After completing the process in Step P60, the CPU 10 executes Step P61.
In Step P61, the CPU 10 adds 1 to the count value Y, and overwrites the obtained value in the count value Y storage memory M8. After completing the process in Step P61, the CPU 10 executes Step P62.

ステップP62において、CPU10は、印刷絵柄の天地方向の総画素数記憶用メモリM6から、印刷絵柄の天地方向の総画素数を読込む。CPU10は、ステップP62の処理が完了した後、ステップP63を実行する。   In Step P62, the CPU 10 reads the total number of pixels in the vertical direction of the printed pattern from the memory M6 for storing the total number of pixels in the vertical direction of the printed pattern. After completing the process in Step P62, the CPU 10 executes Step P63.

ステップP63において、CPU10は、カウント値Yが印刷絵柄の天地方向の総画素数よりも大きいかどうか判断する。CPU10は、カウント値Yが印刷絵柄の天地方向の総画素数よりも大きい場合、ステップP64を実行する。また、CPU10は、カウント値Yが印刷絵柄の天地方向の総画素数よりも大きくない場合、ステップP40を実行する。   In step P63, the CPU 10 determines whether or not the count value Y is larger than the total number of pixels in the vertical direction of the printed pattern. When the count value Y is larger than the total number of pixels in the top and bottom direction of the printed pattern, the CPU 10 executes Step P64. On the other hand, when the count value Y is not larger than the total number of pixels in the vertical direction of the printed pattern, the CPU 10 executes Step P40.

以上の動作フローによって、各画素の印刷絵柄の画素データ、第1及び第2のしきい値より、図3に示すような各画素を3値化して示すデータ・ベースを作成する。   With the above operation flow, the data base shown by ternarizing each pixel as shown in FIG. 3 is created from the pixel data of the printed picture of each pixel and the first and second threshold values.

ステップP64において、CPU10は、カウント値X記憶用メモリM9に、1を上書きする。CPU10は、ステップP64の処理が完了した後、ステップP65を実行する。
ステップP65において、CPU10は、カウント値Y記憶用メモリM8に、21を上書きする。CPU10は、ステップP65の処理が完了した後、ステップP66を実行する。
In Step P64, the CPU 10 overwrites 1 in the count value X storage memory M9. After completing the process in Step P64, the CPU 10 executes Step P65.
In Step P65, the CPU 10 overwrites 21 in the count value Y storage memory M8. After completing the process in Step P65, the CPU 10 executes Step P66.

ステップP66において、CPU10は、カウント値X記憶用メモリM9から、カウント値Xを読込む。CPU10は、ステップP66の処理が完了した後、ステップP67を実行する。
ステップP67において、CPU10は、カウント値Y記憶用メモリM8から、カウント値Yを読込む。CPU10は、ステップP67の処理が完了した後、ステップP68を実行する。
In Step P66, the CPU 10 reads the count value X from the count value X storage memory M9. After completing the process in Step P66, the CPU 10 executes Step P67.
In Step P67, the CPU 10 reads the count value Y from the count value Y storage memory M8. After completing the process in Step P67, the CPU 10 executes Step P68.

ステップP68において、CPU10は、印刷絵柄の3値化データ記憶用メモリM15のアドレス(X,Y)の位置の3値化データを読込み、アドレス(X,Y)の位置の3値化データ記憶用メモリM16に記憶する。CPU10は、ステップP68の処理が完了した後、ステップP69を実行する。   In Step P68, the CPU 10 reads the ternary data at the position of the address (X, Y) in the memory M15 for storing the ternary data of the printed picture and stores the ternary data at the position of the address (X, Y). Store in the memory M16. After completing the process in Step P68, the CPU 10 executes Step P69.

ステップP69において、CPU10は、アドレス(X,Y)の位置の3値化データが1であるかどうか判断する。CPU10は、アドレス(X,Y)の位置の3値化データが1である場合、ステップP70を実行する。また、CPU10は、アドレス(X,Y)の位置の3値化データが1でない場合、ステップP85を実行する。   In Step P69, the CPU 10 determines whether or not the ternary data at the address (X, Y) is 1. When the ternary data at the position of the address (X, Y) is 1, the CPU 10 executes Step P70. On the other hand, when the ternary data at the position of the address (X, Y) is not 1, the CPU 10 executes Step P85.

ステップP70において、CPU10は、第1の判断用の合計値記憶用メモリM17に、0を上書きする。CPU10は、ステップP70の処理が完了した後、ステップP71を実行する。   In Step P70, the CPU 10 overwrites 0 in the first determination total value storage memory M17. After completing the process in Step P70, the CPU 10 executes Step P71.

ステップP71において、CPU10は、カウント値N記憶用メモリM18に、1を上書きする。CPU10は、ステップP71の処理が完了した後、ステップP72を実行する。
ステップP72において、CPU10は、カウント値X記憶用メモリM9から、カウント値Xを読込む。CPU10は、ステップP72の処理が完了した後、ステップP73を実行する。
In Step P71, the CPU 10 overwrites 1 in the count value N storage memory M18. After completing the process in Step P71, the CPU 10 executes Step P72.
In Step P72, the CPU 10 reads the count value X from the count value X storage memory M9. After completing the process in Step P72, the CPU 10 executes Step P73.

ステップP73において、CPU10は、カウント値Y記憶用メモリM8から、カウント値Yを読込む。CPU10は、ステップP73の処理が完了した後、ステップP74を実行する。
ステップP74において、CPU10は、カウント値N記憶用メモリM18から、カウント値Nを読込む。CPU10は、ステップP74の処理が完了した後、ステップP75を実行する。
In Step P73, the CPU 10 reads the count value Y from the count value Y storage memory M8. After completing the process in Step P73, the CPU 10 executes Step P74.
In Step P74, the CPU 10 reads the count value N from the count value N storage memory M18. After completing the process in Step P74, the CPU 10 executes Step P75.

ステップP75において、CPU10は、印刷絵柄の3値化データ記憶用メモリM15のアドレス(X,Y−N)の位置の3値化データを読込み、アドレス(X,Y−N)の位置の3値化データ記憶用メモリM19に記憶する。CPU10は、ステップP75の処理が完了した後、ステップP76を実行する。   In Step P75, the CPU 10 reads the ternary data at the position of the address (X, YN) in the ternary data storage memory M15 for the printed pattern, and the ternary value at the address (X, YN). Stored in the data storage memory M19. After completing the process in Step P75, the CPU 10 executes Step P76.

ステップP76において、CPU10は、第1の判断用の合計値記憶用メモリM17から、第1の判断用の合計値を読込む。CPU10は、ステップP76の処理が完了した後、ステップP77を実行する。   In Step P76, the CPU 10 reads the first judgment total value from the first judgment total value storage memory M17. After completing the process in Step P76, the CPU 10 executes Step P77.

ステップP77において、CPU10は、第1の判断用の合計値に印刷絵柄の3値化データ記憶用メモリM15のアドレス(X,Y−N)の位置の3値化データを加算し、求めた値を第1の判断用の合計値記憶用メモリM17に上書きする。CPU10は、ステップP77の処理が完了した後、ステップP78を実行する。   In step P77, the CPU 10 adds the ternary data at the position of the address (X, Y-N) of the ternary data storage memory M15 for the printed picture to the first determination total value, and obtains the value Is overwritten in the first judgment total value storage memory M17. After completing the process in Step P77, the CPU 10 executes Step P78.

ステップP78において、CPU10は、カウント値N記憶用メモリM18から、カウント値Nを読込む。CPU10は、ステップP78の処理が完了した後、ステップP79を実行する。   In Step P78, the CPU 10 reads the count value N from the count value N storage memory M18. After completing the process in Step P78, the CPU 10 executes Step P79.

ステップP79において、CPU10は、カウント値Nに1を加算し、求めた値をカウント値N記憶用メモリM18に上書きする。CPU10は、ステップP79の処理が完了した後、ステップP80を実行する。   In Step P79, the CPU 10 adds 1 to the count value N and overwrites the obtained value in the count value N storage memory M18. After completing the process in Step P79, the CPU 10 executes Step P80.

ステップP80において、CPU10は、カウント値N記憶用メモリM18から、カウント値Nを読込む。CPU10は、ステップP80の処理が完了した後、ステップP81を実行する。   In Step P80, the CPU 10 reads the count value N from the count value N storage memory M18. After completing the process in Step P80, the CPU 10 executes Step P81.

ステップP81において、CPU10は、カウント値Nが20よりも大きいかどうか判断する。CPU10は、カウント値Nが20よりも大きい場合、ステップP82を実行する。また、CPU10は、カウント値Nが20よりも大きくない場合、ステップP72を実行する。   In Step P81, the CPU 10 determines whether or not the count value N is larger than 20. When the count value N is greater than 20, the CPU 10 executes Step P82. On the other hand, when the count value N is not larger than 20, the CPU 10 executes Step P72.

ステップP82において、CPU10は、第1の判断用の合計値記憶用メモリM17から第1の判断用の合計値を読込む。CPU10は、ステップP82の処理が完了した後、ステップP83を実行する。   In Step P82, the CPU 10 reads the first judgment total value from the first judgment total value storage memory M17. After completing the process in Step P82, the CPU 10 executes Step P83.

ステップP83において、CPU10は、第1の判断用の合計値が0がどうか判断する。CPU10は、第1の判断用の合計値が0である場合、ステップP84を実行する。また、CPU10は、第1の判断用の合計値が0でない場合、ステップP85を実行する。   In Step P83, the CPU 10 determines whether the first determination total value is 0. When the total value for the first determination is 0, the CPU 10 executes Step P84. On the other hand, when the total value for the first determination is not 0, the CPU 10 executes Step P85.

ステップP84において、CPU10は、判断用データ記憶用メモリM20のアドレス(X,Y)の位置に、1を上書きする。CPU10は、ステップP84の処理が完了した後、ステップP85を実行する。
ステップP85において、CPU10は、カウント値Y記憶用メモリM8から、カウント値Yを読込む。CPU10は、ステップP85の処理が完了した後、ステップP86を実行する。
In Step P84, the CPU 10 overwrites 1 at the position of the address (X, Y) of the determination data storage memory M20. After completing the process in Step P84, the CPU 10 executes Step P85.
In Step P85, the CPU 10 reads the count value Y from the count value Y storage memory M8. After completing the process in Step P85, the CPU 10 executes Step P86.

ステップP86において、CPU10は、カウント値Yに1を加算し、求めた値をカウント値Y記憶用メモリM8に上書きする。CPU10は、ステップP86の処理が完了した後、ステップP87を実行する。
ステップP87において、CPU10は、CPU10は、カウント値Y記憶用メモリM8から、カウント値Yを読込む。CPU10は、ステップP87の処理が完了した後、ステップP88を実行する。
In Step P86, the CPU 10 adds 1 to the count value Y and overwrites the obtained value in the count value Y storage memory M8. After completing the process in Step P86, the CPU 10 executes Step P87.
In Step P87, the CPU 10 reads the count value Y from the count value Y storage memory M8. After completing the process in Step P87, the CPU 10 executes Step P88.

ステップP88において、CPU10は、印刷絵柄の天地方向の総画素数記憶用メモリM6から、印刷絵柄の天地方向の総画素数を読込む。CPU10は、ステップP88の処理が完了した後、ステップP89を実行する。   In Step P88, the CPU 10 reads the total number of pixels in the vertical direction of the printed pattern from the memory M6 for storing the total number of pixels in the vertical direction of the printed pattern. After completing the process in Step P88, the CPU 10 executes Step P89.

ステップP89において、CPU10は、カウント値Yが印刷絵柄の天地方向の総画素数よりも大きいかどうか判断する。CPU10は、カウント値Yが印刷絵柄の天地方向の総画素数よりも大きい場合、ステップP90を実行する。また、CPU10は、カウント値Yが印刷絵柄の天地方向の総画素数よりも大きくない場合、ステップP66を実行する。   In Step P89, the CPU 10 determines whether or not the count value Y is larger than the total number of pixels in the vertical direction of the printed pattern. When the count value Y is larger than the total number of pixels in the vertical direction of the printed pattern, the CPU 10 executes Step P90. On the other hand, when the count value Y is not larger than the total number of pixels in the vertical direction of the printed pattern, the CPU 10 executes Step P66.

ステップP90において、CPU10は、カウント値X記憶用メモリM9から、カウント値Xを読込む。CPU10は、ステップP90の処理が完了した後、ステップP91を実行する。
ステップP91において、CPU10は、カウント値Xに1を加算し、求めた値をカウント値X記憶用メモリM9に上書きする。CPU10は、ステップP91の処理が完了した後、ステップP92を実行する。
In Step P90, the CPU 10 reads the count value X from the count value X storage memory M9. After completing the process in Step P90, the CPU 10 executes Step P91.
In Step P91, the CPU 10 adds 1 to the count value X and overwrites the obtained value in the count value X storage memory M9. After completing the process in Step P91, the CPU 10 executes Step P92.

ステップP92において、CPU10は、カウント値Y記憶用メモリM8に、21を上書きする。CPU10は、ステップP92の処理が完了した後、ステップP93を実行する。
ステップP93において、CPU10は、カウント値X記憶用メモリM9から、カウント値Xを読込む。CPU10は、ステップP93の処理が完了した後、ステップP94を実行する。
In Step P92, the CPU 10 overwrites 21 in the count value Y storage memory M8. After completing the process in Step P92, the CPU 10 executes Step P93.
In Step P93, the CPU 10 reads the count value X from the count value X storage memory M9. After completing the process in Step P93, the CPU 10 executes Step P94.

ステップP94において、CPU10は、カウント値Y記憶用メモリM8から、カウント値Yを読込む。CPU10は、ステップP94の処理が完了した後、ステップP95を実行する。   In Step P94, the CPU 10 reads the count value Y from the count value Y storage memory M8. After completing the process in Step P94, the CPU 10 executes Step P95.

ステップP95において、CPU10は、印刷絵柄の3値化データ記憶用メモリM15のアドレス(X,Y)の位置の3値化データを読込み、アドレス(X,Y)の位置の3値化データ記憶用メモリM16に記憶する。CPU10は、ステップP95の処理が完了した後、ステップP96を実行する。   In Step P95, the CPU 10 reads the ternary data at the address (X, Y) position of the printed pattern ternary data storage memory M15 and stores the ternary data at the address (X, Y) position. Store in the memory M16. After completing the process in Step P95, the CPU 10 executes Step P96.

ステップP96において、CPU10は、(X,Y)のアドレス位置の3値化データが1であるかどうか判断する。CPU10は、(X,Y)のアドレス位置の3値化データが1である場合、ステップP97を実行する。また、CPU10は、(X,Y)のアドレス位置の3値化データが1でない場合、ステップP113を実行する。   In Step P96, the CPU 10 determines whether or not the ternary data at the address position (X, Y) is 1. When the ternary data at the address position (X, Y) is 1, the CPU 10 executes Step P97. On the other hand, when the ternary data at the address position (X, Y) is not 1, the CPU 10 executes Step P113.

ステップP97において、CPU10は、第1の判断用の合計値記憶用メモリM17に、0を上書きする。CPU10は、ステップP97の処理が完了した後、ステップP98を実行する。尚、第1の判断用の合計値は、図4のように、天方向の20個の画素の3値化データが0であることを判断する為のものである。
ステップP98において、CPU10は、カウント値N記憶用メモリM18に、1を上書きする。CPU10は、ステップP98の処理が完了した後、ステップP99を実行する。
In Step P97, the CPU 10 overwrites 0 in the first determination total value storage memory M17. After completing the process in Step P97, the CPU 10 executes Step P98. Note that the total value for the first determination is for determining that the ternary data of 20 pixels in the top direction is 0 as shown in FIG.
In Step P98, the CPU 10 overwrites 1 in the count value N storage memory M18. After completing the process in Step P98, the CPU 10 executes Step P99.

ステップP99において、CPU10は、カウント値X記憶用メモリM9から、カウント値Xを読込む。CPU10は、ステップP99の処理が完了した後、ステップP100を実行する。
ステップP100において、CPU10は、カウント値Y記憶用メモリM8から、カウント値Yを読込む。CPU10は、ステップP100の処理が完了した後、ステップP101を実行する。
In Step P99, the CPU 10 reads the count value X from the count value X storage memory M9. After completing the process in Step P99, the CPU 10 executes Step P100.
In Step P100, the CPU 10 reads the count value Y from the count value Y storage memory M8. After completing the process in Step P100, the CPU 10 executes Step P101.

ステップP101において、CPU10は、カウント値N記憶用メモリM18から、カウント値Nを読込む。CPU10は、ステップP101の処理が完了した後、ステップP102を実行する。   In Step P101, the CPU 10 reads the count value N from the count value N storage memory M18. After completing the process in Step P101, the CPU 10 executes Step P102.

ステップP102において、CPU10は、印刷絵柄の3値化データ記憶用メモリM15のアドレス(X,Y−N)の位置の3値化データを読込み、アドレス(X,Y−N)の位置の3値化データ記憶用メモリM19に記憶する。CPU10は、ステップP102の処理が完了した後、ステップP103を実行する。   In step P102, the CPU 10 reads the ternary data at the position of the address (X, YN) in the memory M15 for storing the ternary data of the printed picture, and the ternary value at the position of the address (X, YN). Stored in the data storage memory M19. After completing the process in Step P102, the CPU 10 executes Step P103.

ステップP103において、CPU10は、第1の判断用の合計値記憶用メモリM17から、第1の判断用の合計値を読込む。CPU10は、ステップP103の処理が完了した後、ステップP104を実行する。   In Step P103, the CPU 10 reads the first judgment total value from the first judgment total value storage memory M17. After completing the process in Step P103, the CPU 10 executes Step P104.

ステップP104において、CPU10は、第1の判断用の合計値に印刷絵柄の3値化データ記憶用メモリM15のアドレス(X,Y−N)の位置の3値化データを加算し、求めた値を第1の判断用の合計値記憶用メモリM17に上書きする。CPU10は、ステップP104の処理が完了した後、ステップP105を実行する。   In step P104, the CPU 10 adds the ternary data at the position of the address (X, Y-N) of the printed pattern ternary data storage memory M15 to the total value for the first determination, and obtains the calculated value. Is overwritten in the first judgment total value storage memory M17. After completing the process in Step P104, the CPU 10 executes Step P105.

ステップP105において、CPU10は、カウント値N記憶用メモリM18から、カウント値Nを読込む。CPU10は、ステップP105の処理が完了した後、ステップP106を実行する。   In Step P105, the CPU 10 reads the count value N from the count value N storage memory M18. After completing the process in Step P105, the CPU 10 executes Step P106.

ステップP106において、CPU10は、カウント値Nに1を加算し、求めた値をカウント値N記憶用メモリM18に上書きする。CPU10は、ステップP106の処理が完了した後、ステップP107を実行する。   In Step P106, the CPU 10 adds 1 to the count value N, and overwrites the obtained value in the count value N storage memory M18. After completing the process in Step P106, the CPU 10 executes Step P107.

ステップP107において、CPU10は、カウント値N記憶用メモリM18から、カウント値Nを読込む。CPU10は、ステップP107の処理が完了した後、ステップP108を実行する。   In Step P107, the CPU 10 reads the count value N from the count value N storage memory M18. After completing the process in Step P107, the CPU 10 executes Step P108.

ステップP108において、CPU10は、カウント値Nが20よりも大きいかどうか判断する。CPU10は、カウント値Nが20よりも大きい場合、ステップP109を実行する。また、CPU10は、カウント値Nが20より大きくない場合、ステップP99を実行する。   In Step P108, the CPU 10 determines whether or not the count value N is greater than 20. When the count value N is greater than 20, the CPU 10 executes Step P109. On the other hand, when the count value N is not larger than 20, the CPU 10 executes Step P99.

ステップP109において、CPU10は、第1の判断用の合計値記憶用メモリM17から、第1の判断用の合計値を読込む。CPU10は、ステップP109の処理が完了した後、ステップP110を実行する。   In Step P109, the CPU 10 reads the first judgment total value from the first judgment total value storage memory M17. After completing the process in Step P109, the CPU 10 executes Step P110.

ステップP110において、CPU10は、第1の判断用の合計値が0であるかどうか判断する。CPU10は、第1の判断用の合計値が0である場合、ステップP111を実行する。また、CPU10は、第1の判断用の合計値が0でない場合、ステップP113を実行する。   In step P110, the CPU 10 determines whether or not the first determination total value is zero. When the total value for the first determination is 0, the CPU 10 executes Step P111. On the other hand, when the total value for the first determination is not 0, the CPU 10 executes Step P113.

ステップP111において、CPU10は、判断用データ記憶用メモリM20のアドレス(X−1,Y)の位置のデータを読込み、アドレス(X−1,Y)の位置の判断用データ記憶用メモリM22に記憶する。CPU10は、ステップP111の処理が完了した後、ステップP112を実行する。   In step P111, the CPU 10 reads the data at the position of the address (X-1, Y) in the determination data storage memory M20 and stores it in the determination data storage memory M22 at the position of the address (X-1, Y). To do. After completing the process in Step P111, the CPU 10 executes Step P112.

ステップP112において、CPU10は、判断用データ記憶用メモリM20のアドレス(X−1,Y)の位置のデータに1を加算し、求めた値を判断用データ記憶用メモリM20のアドレス(X,Y)の位置に上書きする。CPU10は、ステップP112の処理が完了した後、ステップP113を実行する。   In Step P112, the CPU 10 adds 1 to the data at the position of the address (X-1, Y) of the determination data storage memory M20, and uses the obtained value as the address (X, Y of the determination data storage memory M20). ) Is overwritten. After completing the process in Step P112, the CPU 10 executes Step P113.

ステップP113において、CPU10は、カウント値Y記憶用メモリM8から、カウント値Yを読込む。CPU10は、ステップP113の処理が完了した後、ステップP114を実行する。
ステップP114において、CPU10は、カウント値Yに1を加算し、求めた値をカウント値Y記憶用メモリM8に上書きする。CPU10は、ステップP114の処理が完了した後、ステップP115を実行する。
In Step P113, the CPU 10 reads the count value Y from the count value Y storage memory M8. After completing the process in Step P113, the CPU 10 executes Step P114.
In step P114, the CPU 10 adds 1 to the count value Y, and overwrites the obtained value in the count value Y storage memory M8. After completing the process in Step P114, the CPU 10 executes Step P115.

ステップP115において、CPU10は、カウント値Y記憶用メモリM8から、カウント値Yを読込む。CPU10は、ステップP115の処理が完了した後、ステップP116を実行する。
ステップP116において、CPU10は、印刷絵柄の天地方向の総画素数記憶用メモリM6から、印刷絵柄の天地方向の総画素数を読込む。CPU10は、ステップP116の処理が完了した後、ステップP117を実行する。
In Step P115, the CPU 10 reads the count value Y from the count value Y storage memory M8. After completing the process in Step P115, the CPU 10 executes Step P116.
In Step P116, the CPU 10 reads the total number of pixels in the vertical direction of the printed pattern from the memory M6 for storing the total number of pixels in the vertical direction of the printed pattern. After completing the process in Step P116, the CPU 10 executes Step P117.

ステップP117において、CPU10は、カウント値Yが印刷絵柄の天地方向の総画素数よりも大きいかどうか判断する。CPU10は、カウント値Yが印刷絵柄の天地方向の総画素数よりも大きい場合、ステップP118を実行する。また、CPU10は、カウント値Yが印刷絵柄の天地方向の総画素数より大きくない場合、ステップP93を実行する。   In Step P117, the CPU 10 determines whether or not the count value Y is larger than the total number of pixels in the vertical direction of the printed picture. When the count value Y is larger than the total number of pixels in the vertical direction of the printed pattern, the CPU 10 executes Step P118. On the other hand, when the count value Y is not larger than the total number of pixels in the vertical direction of the printed pattern, the CPU 10 executes Step P93.

ステップP118において、CPU10は、カウント値X記憶用メモリM9から、カウント値Xを読込む。CPU10は、ステップP118の処理が完了した後、ステップP119を実行する。
ステップP119において、CPU10は、カウント値Xに1を加算し、求めた値をカウント値X記憶用メモリM9に上書きする。CPU10は、ステップP119の処理が完了した後、ステップP120を実行する。
In Step P118, the CPU 10 reads the count value X from the count value X storage memory M9. After completing the process in Step P118, the CPU 10 executes Step P119.
In Step P119, the CPU 10 adds 1 to the count value X, and overwrites the obtained value in the count value X storage memory M9. After completing the process in Step P119, the CPU 10 executes Step P120.

ステップP120において、CPU10は、カウント値X記憶用メモリM9から、カウント値Xを読込む。CPU10は、ステップP120の処理が完了した後、ステップP121を実行する。
ステップP121において、CPU10は、印刷絵柄の左右方向の総画素数記憶用メモリM5から、印刷絵柄の左右方向の総画素数を読込む。CPU10は、ステップP121の処理が完了した後、ステップP122を実行する。
In Step P120, the CPU 10 reads the count value X from the count value X storage memory M9. After completing the process in Step P120, the CPU 10 executes Step P121.
In Step P121, the CPU 10 reads the total number of pixels in the left and right direction of the printed pattern from the memory M5 for storing the total number of pixels in the left and right direction of the printed pattern. After completing the process in Step P121, the CPU 10 executes Step P122.

ステップP122において、CPU10は、カウント値Xが印刷絵柄の左右方向の総画素数よりも大きいかどうか判断する。CPU10は、カウント値Xが印刷絵柄の左右方向の総画素数よりも大きい場合、ステップP123を実行する。また、CPU10は、カウント値Xが印刷絵柄の左右方向の総画素数よりも大きくない場合、ステップP92を実行する。   In Step P122, the CPU 10 determines whether or not the count value X is larger than the total number of pixels in the left and right direction of the printed pattern. When the count value X is larger than the total number of pixels in the left-right direction of the printed picture, the CPU 10 executes Step P123. On the other hand, when the count value X is not larger than the total number of pixels in the left-right direction of the printed picture, the CPU 10 executes Step P92.

以上の動作フローによって、図3に示す各画素を3値化して示すデータ・ベースより、3値化データが1であり、その天方向の20個の画素の3値化データが0である画素を判断用の画素として求めると共に、その画素の左側の画素が判断用の画素でない場合には判断用データとして1を書込み、判断用の画素である場合には左側の画素の判断用データに1を加算した値を判断用データとして書込み、図4に示すような判断用データのデータ・ベースを作成する。   According to the above operation flow, from the data base shown by ternarizing each pixel shown in FIG. 3, the ternary data is 1 and the ternary data of 20 pixels in the sky direction is 0. Is determined as a determination pixel, and if the pixel on the left side of the pixel is not a determination pixel, 1 is written as the determination data. If the pixel is a determination pixel, 1 is added to the determination data of the left pixel. The value obtained by adding is written as determination data, and a data base of determination data as shown in FIG. 4 is created.

ステップP123において、CPU10は、カウント値C記憶用メモリM21に、0を上書きする。CPU10は、ステップP123の処理が完了した後、ステップP124を実行する。
ステップP124において、CPU10は、カウント値X記憶用メモリM9に、10を上書きする。CPU10は、ステップP124の処理が完了した後、ステップP125を実行する。
In Step P123, the CPU 10 overwrites 0 in the count value C storage memory M21. After completing the process in Step P123, the CPU 10 executes Step P124.
In Step P124, the CPU 10 overwrites 10 in the count value X storage memory M9. After completing the process in Step P124, the CPU 10 executes Step P125.

ステップP125において、CPU10は、カウント値Y記憶用メモリM8に、21を上書きする。CPU10は、ステップP125の処理が完了した後、ステップP126を実行する。   In Step P125, the CPU 10 overwrites 21 in the count value Y storage memory M8. After completing the process in Step P125, the CPU 10 executes Step P126.

ステップP126において、CPU10は、判断用データ記憶用メモリのアドレス(X,Y)の位置の判断用データを読込み、アドレス(X,Y)の位置の判断用データ記憶用メモリM23に記憶する。CPU10は、ステップP126の処理が完了した後、ステップP127を実行する。   In Step P126, the CPU 10 reads the determination data at the position of the address (X, Y) in the determination data storage memory and stores it in the determination data storage memory M23 at the address (X, Y). After completing the process in Step P126, the CPU 10 executes Step P127.

ステップP127において、CPU10は、アドレス(X,Y)の位置の判断用データが10以上であるかどうか判断する。CPU10は、アドレス(X,Y)の位置の判断用データが10以上である場合、ステップP128を実行する。また、CPU10は、アドレス(X,Y)の位置の判断用データが10以上でない場合、ステップP193を実行する。   In Step P127, the CPU 10 determines whether or not the data for determining the position of the address (X, Y) is 10 or more. When the determination data for the position of the address (X, Y) is 10 or more, the CPU 10 executes Step P128. On the other hand, when the data for determining the position of the address (X, Y) is not 10 or more, the CPU 10 executes Step P193.

ステップP128において、CPU10は、カウント値L記憶用メモリM24に、1を上書きする。CPU10は、ステップP128の処理が完了した後、ステップP129を実行する。
ステップP129において、CPU10は、カウント値Y記憶用メモリM8から、カウント値Yを読込む。CPU10は、ステップP129の処理が完了した後、ステップP130を実行する。
In Step P128, the CPU 10 overwrites 1 in the count value L storage memory M24. After completing the process in Step P128, the CPU 10 executes Step P129.
In Step P129, the CPU 10 reads the count value Y from the count value Y storage memory M8. After completing the process in Step P129, the CPU 10 executes Step P130.

ステップP130において、CPU10は、カウント値L記憶用メモリM24から、カウント値Lを読込む。CPU10は、ステップP130の処理が完了した後、ステップP131を実行する。   In Step P130, the CPU 10 reads the count value L from the count value L storage memory M24. After completing the process in Step P130, the CPU 10 executes Step P131.

ステップP131において、CPU10は、カウント値Yにカウント値Lを加算し、天地方向の画素番号を演算し、天地方向の画素番号記憶用メモリM25に記憶する。CPU10は、ステップP131の処理が完了した後、ステップP132を実行する。   In Step P131, the CPU 10 adds the count value L to the count value Y, calculates the pixel number in the vertical direction, and stores it in the pixel number storage memory M25 in the vertical direction. After completing the process in Step P131, the CPU 10 executes Step P132.

ステップP132において、CPU10は、印刷絵柄の天地方向の総画素数記憶用メモリM6から、印刷絵柄の天地方向の総画素数を読込む。CPU10は、ステップP132の処理が完了した後、ステップP133を実行する。   In Step P132, the CPU 10 reads the total number of pixels in the vertical direction of the printed pattern from the memory M6 for storing the total number of pixels in the vertical direction of the printed pattern. After completing the process in Step P132, the CPU 10 executes Step P133.

ステップP133において、CPU10は、天地方向の画素番号が(印刷絵柄の天地方向の総画素数−19)よりも大きいかどうか判断する。CPU10は、天地方向の画素番号が(印刷絵柄の天地方向の総画素数−19)よりも大きくない場合、ステップP134を実行する。また、CPU10は、天地方向の画素番号が(印刷絵柄の天地方向の総画素数−19)よりも大きい場合、ステップP198を実行する。   In Step P133, the CPU 10 determines whether or not the pixel number in the vertical direction is larger than (total number of pixels in the vertical direction of the printed pattern−19). When the pixel number in the vertical direction is not larger than (total number of pixels in the vertical direction of the printed pattern−19), the CPU 10 executes Step P134. On the other hand, when the pixel number in the vertical direction is larger than (total number of pixels in the vertical direction of the printed pattern−19), the CPU 10 executes Step P198.

ステップP134において、CPU10は、印刷絵柄の3値化データ記憶用メモリM15のアドレス(X、Y+L)の位置の3値化データを読込み、アドレス(X,Y+L)の位置の3値化データ記憶用メモリM26に記憶する。CPU10は、ステップP134の処理が完了した後、ステップP135を実行する。   In Step P134, the CPU 10 reads the ternary data at the position of the address (X, Y + L) in the ternary data storage memory M15 for the print pattern, and stores the ternary data at the position of the address (X, Y + L). Store in the memory M26. After completing the process in Step P134, the CPU 10 executes Step P135.

ステップP135において、CPU10は、アドレス(X、Y+L)の位置の3値化データが1であるかどうか判断する。CPU10は、アドレス(X、Y+L)の位置の3値化データが1である場合、ステップP136を実行する。また、CPU10は、アドレス(X、Y+L)の位置の3値化データが1でない場合、ステップP138を実行する。   In Step P135, the CPU 10 determines whether or not the ternary data at the position of the address (X, Y + L) is 1. When the ternary data at the address (X, Y + L) is 1, the CPU 10 executes Step P136. On the other hand, if the ternary data at the position of the address (X, Y + L) is not 1, the CPU 10 executes Step P138.

ステップP136において、CPU10は、カウント値L記憶用メモリM24から、カウント値Lを読込む。CPU10は、ステップP136の処理が完了した後、ステップP137を実行する。   In Step P136, the CPU 10 reads the count value L from the count value L storage memory M24. After completing the process in Step P136, the CPU 10 executes Step P137.

ステップP137において、CPU10は、カウント値Lに1を加算し、求めた値をカウント値L記憶用メモリM24に上書きする。CPU10は、ステップP137の処理が完了した後、ステップP129を実行する。   In Step P137, the CPU 10 adds 1 to the count value L, and overwrites the obtained value in the count value L storage memory M24. After completing the process in Step P137, the CPU 10 executes Step P129.

ステップP138において、CPU10は、カウント値L記憶用メモリM24から、カウント値Lを読込む。CPU10は、ステップP138の処理が完了した後、ステップP139を実行する。   In Step P138, the CPU 10 reads the count value L from the count value L storage memory M24. After completing the process in Step P138, the CPU 10 executes Step P139.

ステップP139において、CPU10は、第2の判断用のしきい値記憶用メモリM27から、第2の判断用のしきい値を読込む。CPU10は、ステップP139の処理が完了した後、ステップP140を実行する。尚、第2の判断用のしきい値は、レジスター・マークとして選択した絵柄の天地方向の長さが短く、検出器42で検出する際誤検出が発生しないように、一定長さ以上の絵柄部分のみを選択する為に設けられている。   In Step P139, the CPU 10 reads the second determination threshold value from the second determination threshold value storage memory M27. After completing the process in Step P139, the CPU 10 executes Step P140. Note that the second judgment threshold value is that the pattern selected as the register mark has a short length in the vertical direction, and a pattern longer than a certain length so that no false detection occurs when the detector 42 detects it. It is provided to select only the part.

ステップP140において、CPU10は、カウント値Lが第2の判断用のしきい値以上であるかどうか判断する。CPU10は、カウント値Lが第2の判断用のしきい値以上である場合、ステップP141を実行する。また、CPU10は、カウント値Lが第2の判断用のしきい値以上でない場合、ステップP193を実行する。   In Step P140, the CPU 10 determines whether or not the count value L is equal to or greater than the second determination threshold value. When the count value L is greater than or equal to the second determination threshold value, the CPU 10 executes Step P141. On the other hand, when the count value L is not equal to or greater than the second determination threshold value, the CPU 10 executes Step P193.

ステップP141において、CPU10は、カウント値L記憶用メモリM24から、カウント値Lを読込む。CPU10は、ステップP141の処理が完了した後、ステップP142を実行する。   In Step P141, the CPU 10 reads the count value L from the count value L storage memory M24. After completing the process in Step P141, the CPU 10 executes Step P142.

ステップP142において、CPU10は、カウント値Lが1よりも大きいかどうか判断する。CPU10は、カウント値Lが1よりも大きい場合、ステップP143を実行する。また、CPU10は、カウント値Lが1よりも大きくない場合、ステップP165を実行する。   In Step P142, the CPU 10 determines whether or not the count value L is greater than 1. When the count value L is greater than 1, the CPU 10 executes Step P143. If the count value L is not greater than 1, the CPU 10 executes Step P165.

ステップP143において、CPU10は、第2の判断用の合計値記憶用メモリM28に、0を上書きする。CPU10は、ステップP143の処理が完了した後、ステップP144を実行する。   In Step P143, the CPU 10 overwrites 0 in the second determination total value storage memory M28. After completing the process in Step P143, the CPU 10 executes Step P144.

ステップP144において、CPU10は、カウント値N記憶用メモリM18に、1を上書きする。CPU10は、ステップP144の処理が完了した後、ステップP144−1を実行する。   In Step P144, the CPU 10 overwrites 1 in the count value N storage memory M18. After completing the process in Step P144, the CPU 10 executes Step P144-1.

ステップP144−1において、CPU10は、カウント値M記憶用メモリM29に、0を上書きする。CPU10は、ステップP144−1の処理が完了した後、ステップP145を実行する。   In Step P144-1, the CPU 10 overwrites 0 in the count value M storage memory M29. After completing the process in Step P144-1, the CPU 10 executes Step P145.

ステップP145において、CPU10は、カウント値X記憶用メモリM9から、カウント値Xを読込む。CPU10は、ステップP145の処理が完了した後、ステップP146を実行する。
ステップP146において、CPU10は、カウント値Y記憶用メモリM8から、カウント値Yを読込む。CPU10は、ステップP146の処理が完了した後、ステップP147を実行する。
In Step P145, the CPU 10 reads the count value X from the count value X storage memory M9. After completing the process in Step P145, the CPU 10 executes Step P146.
In Step P146, the CPU 10 reads the count value Y from the count value Y storage memory M8. After completing the process in Step P146, the CPU 10 executes Step P147.

ステップP147において、CPU10は、カウント値N記憶用メモリM18から、カウント値Nを読込む。CPU10は、ステップP147の処理が完了した後、ステップP148を実行する。   In Step P147, the CPU 10 reads the count value N from the count value N storage memory M18. After completing the process in Step P147, the CPU 10 executes Step P148.

ステップP148において、CPU10は、カウント値M記憶用メモリM29から、カウント値Mを読込む。CPU10は、ステップP148の処理が完了した後、ステップP149を実行する。   In Step P148, the CPU 10 reads the count value M from the count value M storage memory M29. After completing the process in Step P148, the CPU 10 executes Step P149.

ステップP149において、CPU10は、印刷絵柄の3値化データ記憶用メモリM15のアドレス(X−M、Y+N)の位置の3値化データを読込み、アドレス(X−M,Y+N)の位置の3値化データ記憶用メモリM30に記憶する。CPU10は、ステップP149の処理が完了した後、ステップP150を実行する。   In step P149, the CPU 10 reads the ternary data at the position of the address (X−M, Y + N) in the memory M15 for storing the ternary data of the printed picture, and the ternary value at the position of the address (X−M, Y + N). Stored in the data storage memory M30. After completing the process in Step P149, the CPU 10 executes Step P150.

ステップP150において、CPU10は、第2の判断用の合計値記憶用メモリM28から、第2の判断用の合計値を読込む。CPU10は、ステップP150の処理が完了した後、ステップP151を実行する。   In Step P150, the CPU 10 reads the second judgment total value from the second judgment total value storage memory M28. After completing the process in Step P150, the CPU 10 executes Step P151.

ステップP151において、CPU10は、第2の判断用の合計値に印刷絵柄の3値化データ記憶用メモリM15のアドレス(X−M,Y+N)の位置の3値化データを加算し、求めた値を第2の判断用の合計値記憶用メモリM28に上書きする。CPU10は、ステップP151の処理が完了した後、ステップP152を実行する。尚、第2の判断用の合計値は、図5の左方向の10個の画素及び地方向の(L−1)個の画素の3値化データがすべて1であること、言い換えれば、A1の範囲のように、矩形の範囲がすべて1であることを判断する為のものである。   In step P151, the CPU 10 adds the ternary data at the position of the address (X−M, Y + N) of the printed pattern ternary data storage memory M15 to the total value for the second determination, and obtains the calculated value. Is overwritten in the second judgment total value storage memory M28. After completing the process in Step P151, the CPU 10 executes Step P152. Note that the total value for the second determination is that all the ternary data of the 10 pixels in the left direction and the (L−1) pixels in the ground direction in FIG. 5 are all 1, in other words, A1. It is for judging that the rectangular ranges are all 1 as in

ステップP152において、CPU10は、カウント値M記憶用メモリM29から、カウント値Mを読込む。CPU10は、ステップP152の処理が完了した後、ステップP153を実行する。   In Step P152, the CPU 10 reads the count value M from the count value M storage memory M29. After completing the process in Step P152, the CPU 10 executes Step P153.

ステップP153において、CPU10は、カウント値Mに1を加算し、求めた値をカウント値M記憶用メモリM29に上書きする。CPU10は、ステップP153の処理が完了した後、ステップP154を実行する。   In Step P153, the CPU 10 adds 1 to the count value M and overwrites the obtained value in the memory M29 for storing the count value M. After completing the process in Step P153, the CPU 10 executes Step P154.

ステップP154において、CPU10は、カウント値M記憶用メモリM29から、カウント値Mを読込む。CPU10は、ステップP154の処理が完了した後、ステップP155を実行する。   In Step P154, the CPU 10 reads the count value M from the count value M storage memory M29. After completing the process in Step P154, the CPU 10 executes Step P155.

ステップP155において、CPU10は、カウント値Mが10であるかどうか判断する。CPU10は、カウント値Mが10である場合、ステップP156を実行する。また、CPU10は、カウント値Mが10でない場合、ステップP145を実行する。   In Step P155, the CPU 10 determines whether or not the count value M is 10. When the count value M is 10, the CPU 10 executes Step P156. On the other hand, when the count value M is not 10, the CPU 10 executes Step P145.

ステップP156において、CPU10は、カウント値N記憶用メモリM18から、カウント値Nを読込む。CPU10は、ステップP156の処理が完了した後、ステップP157を実行する。   In Step P156, the CPU 10 reads the count value N from the count value N storage memory M18. After completing the process in Step P156, the CPU 10 executes Step P157.

ステップP157において、CPU10は、カウント値Nに1を加算し、求めた値をカウント値N記憶用メモリM18に上書きする。CPU10は、ステップP157の処理が完了した後、ステップP158を実行する。   In Step P157, the CPU 10 adds 1 to the count value N and overwrites the obtained value in the count value N storage memory M18. After completing the process in Step P157, the CPU 10 executes Step P158.

ステップP158において、CPU10は、カウント値N記憶用メモリM18から、カウント値Nを読込む。CPU10は、ステップP158の処理が完了した後、ステップP159を実行する。   In Step P158, the CPU 10 reads the count value N from the count value N storage memory M18. After completing the process in Step P158, the CPU 10 executes Step P159.

ステップP159において、CPU10は、カウント値L記憶用メモリM24から、カウント値Lを読込む。CPU10は、ステップP159の処理が完了した後、ステップP160を実行する。   In Step P159, the CPU 10 reads the count value L from the count value L storage memory M24. After completing the process in Step P159, the CPU 10 executes Step P160.

ステップP160において、CPU10は、カウント値Nが(カウント値L−1)よりも大きいかどうか判断する。CPU10は、カウント値Nが(カウント値L−1)よりも大きい場合、ステップP161を実行する。また、CPU10は、カウント値Nが(カウント値L−1)よりも大きくない場合、ステップP144−1を実行する。   In Step P160, the CPU 10 determines whether or not the count value N is larger than (count value L-1). When the count value N is larger than (count value L-1), the CPU 10 executes Step P161. On the other hand, when the count value N is not greater than (count value L-1), the CPU 10 executes Step P144-1.

ステップP161において、CPU10は、カウント値L記憶用メモリM24から、カウント値Lを読込む。CPU10は、ステップP161の処理が完了した後、ステップP162を実行する。   In Step P161, the CPU 10 reads the count value L from the count value L storage memory M24. After completing the process in Step P161, the CPU 10 executes Step P162.

ステップP162において、CPU10は、(カウント値L−1)に10を乗算し、第2の判断用の値を演算し、第2の判断用の値記憶用メモリM31に記憶する。CPU10は、ステップP162の処理が完了した後、ステップP163を実行する。   In Step P162, the CPU 10 multiplies (count value L-1) by 10, calculates the second determination value, and stores it in the second determination value storage memory M31. After completing the process in Step P162, the CPU 10 executes Step P163.

ステップP163において、CPU10は、第2の判断用の合計値記憶用メモリM28から、第2の判断用の合計値を読込む。CPU10は、ステップP163の処理が完了した後、ステップP164を実行する。   In Step P163, the CPU 10 reads the second judgment total value from the second judgment total value storage memory M28. After completing the process in Step P163, the CPU 10 executes Step P164.

ステップP164において、CPU10は、第2の判断用の合計値が第2の判断用の値と等しいかどうか判断する。CPU10は、第2の判断用の合計値が第2の判断用の値と等しい場合、ステップP165を実行する。また、CPU10は、第2の判断用の合計値が第2の判断用の値と等しくない場合、ステップP193を実行する。   In Step P164, the CPU 10 determines whether or not the second determination total value is equal to the second determination value. When the total value for the second determination is equal to the value for the second determination, the CPU 10 executes Step P165. On the other hand, when the total value for the second determination is not equal to the value for the second determination, the CPU 10 executes Step P193.

ステップP165において、CPU10は、第3の判断用の合計値記憶用メモリM32に、0を上書きする。CPU10は、ステップP165の処理が完了した後、ステップP166を実行する。尚、第3の判断用の合計値は、図5の左方向の10個の画素及び地方向の20個の画素の3値化データがすべて0であること、言い換えれば、A0の範囲がすべて0であることを判断する為のものである。   In Step P165, the CPU 10 overwrites 0 on the third determination total value storage memory M32. After completing the process in Step P165, the CPU 10 executes Step P166. Note that the total value for the third determination is that the ternary data of 10 pixels in the left direction and 20 pixels in the ground direction in FIG. 5 are all 0, in other words, the range of A0 is all. It is for judging that it is 0.

ステップP166において、CPU10は、カウント値N記憶用メモリM18に、1を上書きする。CPU10は、ステップP166の処理が完了した後、ステップP166−1を実行する。   In Step P166, the CPU 10 overwrites 1 in the count value N storage memory M18. After completing the process in Step P166, the CPU 10 executes Step P166-1.

ステップP166−1において、CPU10は、カウント値M記憶用メモリM29に、0を上書きする。CPU10は、ステップP166−1の処理が完了した後、ステップP167を実行する。   In Step P166-1, the CPU 10 overwrites 0 in the count value M storage memory M29. After completing the process in Step P166-1, the CPU 10 executes Step P167.

ステップP167において、CPU10は、カウント値X記憶用メモリM9から、カウント値Xを読込む。CPU10は、ステップP167の処理が完了した後、ステップP168を実行する。
ステップP168において、CPU10は、カウント値Y記憶用メモリM8から、カウント値Yを読込む。CPU10は、ステップP168の処理が完了した後、ステップP169を実行する。
In Step P167, the CPU 10 reads the count value X from the count value X storage memory M9. After completing the process in Step P167, the CPU 10 executes Step P168.
In Step P168, the CPU 10 reads the count value Y from the count value Y storage memory M8. After completing the process in Step P168, the CPU 10 executes Step P169.

ステップP169において、CPU10は、カウント値L記憶用メモリM24から、カウント値Lを読込む。CPU10は、ステップP169の処理が完了した後、ステップP170を実行する。   In Step P169, the CPU 10 reads the count value L from the count value L storage memory M24. After completing the process in Step P169, the CPU 10 executes Step P170.

ステップP170において、CPU10は、カウント値N記憶用メモリM18から、カウント値Nを読込む。CPU10は、ステップP170の処理が完了した後、ステップP171を実行する。   In Step P170, the CPU 10 reads the count value N from the count value N storage memory M18. After completing the process in Step P170, the CPU 10 executes Step P171.

ステップP171において、CPU10は、カウント値M記憶用メモリM29から、カウント値Mを読込む。CPU10は、ステップP171の処理が完了した後、ステップP172を実行する。   In Step P171, the CPU 10 reads the count value M from the count value M storage memory M29. After completing the process in Step P171, the CPU 10 executes Step P172.

ステップP172において、CPU10は、印刷絵柄の3値化データ記憶用メモリM15のアドレス(X−M,Y+L−1+N)の位置の3値化データを読込み、アドレス(X−M,Y+L−1+N)の位置の3値化データ記憶用メモリM33に記憶する。CPU10は、ステップP172の処理が完了した後、ステップP173を実行する。   In step P172, the CPU 10 reads the ternary data at the position of the address (X−M, Y + L−1 + N) of the ternary data storage memory M15 for the print pattern, and reads the address (X−M, Y + L−1 + N). The position is stored in the ternary data storage memory M33. After completing the process in Step P172, the CPU 10 executes Step P173.

ステップP173において、CPU10は、第3の判断用の合計値記憶用メモリM32から、第3の判断用の合計値を読込む。CPU10は、ステップP173の処理が完了した後、ステップP174を実行する。   In Step P173, the CPU 10 reads the third determination total value from the third determination total value storage memory M32. After completing the process in Step P173, the CPU 10 executes Step P174.

ステップP174において、CPU10は、第3の判断用の合計値に印刷絵柄の3値化データ記憶用メモリM15のアドレス(X−M,Y+L−1+N)の位置の3値化データを加算し、求めた値を第3の判断用の合計値記憶用メモリM32に上書きする。CPU10は、ステップP174の処理が完了した後、ステップP175を実行する。   In step P174, the CPU 10 adds the ternary data at the position of the address (X−M, Y + L−1 + N) of the ternary data storage memory M15 for the print pattern to the third determination total value and obtains it. This value is overwritten in the total memory for storing total value M32 for third determination. After completing the process in Step P174, the CPU 10 executes Step P175.

ステップP175において、CPU10は、カウント値M記憶用メモリM29から、カウント値Mを読込む。CPU10は、ステップP175の処理が完了した後、ステップP176を実行する。   In Step P175, the CPU 10 reads the count value M from the count value M storage memory M29. After completing the process in Step P175, the CPU 10 executes Step P176.

ステップP176において、CPU10は、カウント値Mに1を加算し、求めた値をカウント値M記憶用メモリM29に上書きする。CPU10は、ステップP176の処理が完了した後、ステップP177を実行する。   In Step P176, the CPU 10 adds 1 to the count value M, and overwrites the obtained value in the memory M29 for storing the count value M. After completing the process in Step P176, the CPU 10 executes Step P177.

ステップP177において、CPU10は、カウント値M記憶用メモリM29から、カウント値Mを読込む。CPU10は、ステップP177の処理が完了した後、ステップP178を実行する。   In Step P177, the CPU 10 reads the count value M from the count value M storage memory M29. After completing the process in Step P177, the CPU 10 executes Step P178.

ステップP178において、CPU10は、カウント値Mが10であるかどうか判断する。CPU10は、カウント値Mが10である場合、ステップP179を実行する。また、CPU10は、カウント値Mが10でない場合、ステップP167を実行する。   In Step P178, the CPU 10 determines whether or not the count value M is 10. When the count value M is 10, the CPU 10 executes Step P179. On the other hand, when the count value M is not 10, the CPU 10 executes Step P167.

ステップP179において、CPU10は、カウント値N記憶用メモリM18から、カウント値Nを読込む。CPU10は、ステップP179の処理が完了した後、ステップP180を実行する。   In Step P179, the CPU 10 reads the count value N from the count value N storage memory M18. After completing the process in Step P179, the CPU 10 executes Step P180.

ステップP180において、CPU10は、カウント値Nに1を加算し、求めた値をカウント値N記憶用メモリM18に上書きする。CPU10は、ステップP180の処理が完了した後、ステップP181を実行する。   In Step P180, the CPU 10 adds 1 to the count value N, and overwrites the obtained value in the count value N storage memory M18. After completing the process in Step P180, the CPU 10 executes Step P181.

ステップP181において、CPU10は、カウント値N記憶用メモリM18から、カウント値Nを読込む。CPU10は、ステップP181の処理が完了した後、ステップP182を実行する。   In Step P181, the CPU 10 reads the count value N from the count value N storage memory M18. After completing the process in Step P181, the CPU 10 executes Step P182.

ステップP182において、CPU10は、カウント値Nが20よりも大きいかどうか判断する。CPU10は、カウント値Nが20よりも大きい場合、ステップP183を実行する。また、CPU10は、カウント値Nが20よりも大きくない場合、ステップP166−1を実行する。   In Step P182, the CPU 10 determines whether or not the count value N is larger than 20. When the count value N is greater than 20, the CPU 10 executes Step P183. On the other hand, when the count value N is not larger than 20, the CPU 10 executes Step P166-1.

ステップP183において、CPU10は、第3の判断用の合計値記憶用メモリM32から、第3の判断用の合計値を読込む。CPU10は、ステップP183の処理が完了した後、ステップP184を実行する。   In Step P183, the CPU 10 reads the third determination total value from the third determination total value storage memory M32. After completing the process in Step P183, the CPU 10 executes Step P184.

ステップP184において、CPU10は、第3の判断用の合計値が0であるかどうか判断する。CPU10は、第3の判断用の合計値が0である場合、ステップP185を実行する。また、CPU10は、第3の判断用の合計値が0でない場合、ステップP193を実行する。   In Step P184, the CPU 10 determines whether or not the third determination total value is zero. When the total value for the third determination is 0, the CPU 10 executes Step P185. On the other hand, when the total value for the third determination is not 0, the CPU 10 executes Step P193.

ステップP185において、CPU10は、カウント値C記憶用メモリM21から、カウント値Cを読込む。CPU10は、ステップP185の処理が完了した後、ステップP186を実行する。   In Step P185, the CPU 10 reads the count value C from the count value C storage memory M21. After completing the process in Step P185, the CPU 10 executes Step P186.

ステップP186において、CPU10は、カウント値Cに1を加算し、求めた値をカウント値C記憶用メモリM21に上書きする。CPU10は、ステップP186の処理が完了した後、ステップP187を実行する。   In Step P186, the CPU 10 adds 1 to the count value C and overwrites the obtained value in the count value C storage memory M21. After completing the process in Step P186, the CPU 10 executes Step P187.

ステップP187において、CPU10は、カウント値X記憶用メモリM9から、カウント値Xを読込む。CPU10は、ステップP187の処理が完了した後、ステップP188を実行する。
ステップP188において、CPU10は、カウント値Y記憶用メモリM8から、カウント値Yを読込む。CPU10は、ステップP188の処理が完了した後、ステップP189を実行する。
In Step P187, the CPU 10 reads the count value X from the count value X storage memory M9. After completing the process in Step P187, the CPU 10 executes Step P188.
In Step P188, the CPU 10 reads the count value Y from the count value Y storage memory M8. After completing the process in Step P188, the CPU 10 executes Step P189.

ステップP189において、CPU10は、カウント値C記憶用メモリM21から、カウント値Cを読込む。CPU10は、ステップP189の処理が完了した後、ステップP190を実行する。   In Step P189, the CPU 10 reads the count value C from the count value C storage memory M21. After completing the process in Step P189, the CPU 10 executes Step P190.

ステップP190において、CPU10は、ターゲット絵柄候補位置記憶用メモリM35のC番目のアドレス位置に、アドレス(X、Y)を書込む。CPU10は、ステップP190の処理が完了した後、ステップP191を実行する。   In Step P190, the CPU 10 writes the address (X, Y) at the Cth address position of the target picture candidate position storage memory M35. After completing the process in Step P190, the CPU 10 executes Step P191.

ステップP191において、CPU10は、カウント値L記憶用メモリM24から、カウント値Lを読込む。CPU10は、ステップP191の処理が完了した後、ステップP192を実行する。   In Step P191, the CPU 10 reads the count value L from the count value L storage memory M24. After completing the process in Step P191, the CPU 10 executes Step P192.

ステップP192において、CPU10は、ターゲット絵柄候補の長さ記憶用メモリM36のC番目のアドレス位置に、カウント値Lを書込む。CPU10は、ステップP192の処理が完了した後、ステップP193を実行する。
ステップP193において、CPU10は、カウント値Y記憶用メモリM8から、カウント値Yを読込む。CPU10は、ステップP193の処理が完了した後、ステップP194を実行する。
In Step P192, the CPU 10 writes the count value L at the C-th address position in the target picture candidate length storage memory M36. After completing the process in Step P192, the CPU 10 executes Step P193.
In Step P193, the CPU 10 reads the count value Y from the count value Y storage memory M8. After completing the process in Step P193, the CPU 10 executes Step P194.

ステップP194において、CPU10は、カウント値Yに1を加算し、求めた値をカウント値Y記憶用メモリM8に上書きする。CPU10は、ステップP194の処理が完了した後、ステップP195を実行する。
ステップP195において、CPU10は、カウント値Y記憶用メモリM8から、カウント値Yを読込む。CPU10は、ステップP195の処理が完了した後、ステップP196を実行する。
In Step P194, the CPU 10 adds 1 to the count value Y, and overwrites the obtained value in the count value Y storage memory M8. After completing the process in Step P194, the CPU 10 executes Step P195.
In Step P195, the CPU 10 reads the count value Y from the count value Y storage memory M8. After completing the process in Step P195, the CPU 10 executes Step P196.

ステップP196において、CPU10は、印刷絵柄の天地方向の総画素数記憶用メモリM6から、印刷絵柄の天地方向の総画素数を読込む。CPU10は、ステップP196の処理が完了した後、ステップP197を実行する。   In Step P196, the CPU 10 reads the total number of pixels in the vertical direction of the printed pattern from the memory M6 for storing the total number of pixels in the vertical direction of the printed pattern. After completing the process in Step P196, the CPU 10 executes Step P197.

ステップP197において、CPU10は、カウント値Yが(印刷絵柄の天地方向の総画素数−19)よりも大きいか判断する。CPU10は、カウント値Yが(印刷絵柄の天地方向の総画素数−19)よりも大きい場合、ステップP198を実行する。また、CPU10は、カウント値Yが(印刷絵柄の天地方向の総画素数−19)よりも大きくない場合、ステップP126を実行する。   In Step P197, the CPU 10 determines whether or not the count value Y is larger than (total number of pixels in the vertical direction of the printed pattern minus 19). When the count value Y is larger than (total number of pixels in the vertical direction of the printed pattern−19), the CPU 10 executes Step P198. On the other hand, when the count value Y is not larger than (total number of pixels in the vertical direction of the printed pattern−19), the CPU 10 executes Step P126.

ステップP198において、CPU10は、カウント値X記憶用メモリM9から、カウント値Xを読込む。CPU10は、ステップP198の処理が完了した後、ステップP199を実行する。
ステップP199において、CPU10は、カウント値Xに1を加算し、求めた値をカウント値X記憶用メモリM9に上書きする。CPU10は、ステップP199の処理が完了した後、ステップP200を実行する。
In Step P198, the CPU 10 reads the count value X from the count value X storage memory M9. After completing the process in Step P198, the CPU 10 executes Step P199.
In Step P199, the CPU 10 adds 1 to the count value X and overwrites the obtained value in the count value X storage memory M9. After completing the process in Step P199, the CPU 10 executes Step P200.

ステップP200において、CPU10は、カウント値X記憶用メモリM9から、カウント値Xを読込む。CPU10は、ステップP200の処理が完了した後、ステップP201を実行する。
ステップP201において、CPU10は、印刷絵柄の左右方向の総画素数記憶用メモリM5から、印刷絵柄の左右方向の総画素数を読込む。CPU10は、ステップP201の処理が完了した後、ステップP202を実行する。
In Step P200, the CPU 10 reads the count value X from the count value X storage memory M9. After completing the process in Step P200, the CPU 10 executes Step P201.
In Step P201, the CPU 10 reads the total number of pixels in the left and right direction of the printed pattern from the memory M5 for storing the total number of pixels in the left and right direction of the printed pattern. After completing the process in Step P201, the CPU 10 executes Step P202.

ステップP202において、CPU10は、カウント値Xが印刷絵柄の左右方向の総画素数よりも大きいかどうか判断する。CPU10は、カウント値Xが印刷絵柄の左右方向の総画素数よりも大きい場合、ステップP203を実行する。また、CPU10は、カウント値Xが印刷絵柄の左右方向の総画素数よりも大きくない場合、ステップP125を実行する。   In Step P202, the CPU 10 determines whether or not the count value X is larger than the total number of pixels in the left and right direction of the printed picture. When the count value X is larger than the total number of pixels in the left-right direction of the printed picture, the CPU 10 executes Step P203. On the other hand, when the count value X is not larger than the total number of pixels in the left-right direction of the printed picture, the CPU 10 executes Step P125.

以上の動作フローによって、図4に示す各画素の判断用データより、図5のA1で示す範囲のすべての画素の3値化データが1であり、A0で示す範囲のすべての画素の3値化データが0である矩形状の絵柄部分の右下の画素のアドレス(X、Y)を求め、ターゲット絵柄候補位置として記憶する。   According to the above operation flow, the ternary data of all the pixels in the range indicated by A1 in FIG. 5 is 1, and the ternary values of all the pixels in the range indicated by A0 are obtained from the determination data for each pixel shown in FIG. The address (X, Y) of the pixel on the lower right of the rectangular picture portion whose digitized data is 0 is obtained and stored as the target picture candidate position.

ステップP203において、CPU10は、カウント値C記憶用メモリM21から、カウント値Cを読込む。CPU10は、ステップP203の処理が完了した後、ステップP204を実行する。   In Step P203, the CPU 10 reads the count value C from the count value C storage memory M21. After completing the process in Step P203, the CPU 10 executes Step P204.

ステップP204において、CPU10は、カウント値Cが0であるかどうか判断する。CPU10は、カウント値Cが0である場合、ステップP205を実行する。また、CPU10は、カウント値Cが0でない場合、ステップP206を実行する。   In Step P204, the CPU 10 determines whether or not the count value C is zero. When the count value C is 0, the CPU 10 executes Step P205. On the other hand, when the count value C is not 0, the CPU 10 executes Step P206.

ステップP205において、CPU10は、表示器に、エラー・メッセージ「該当ターゲット絵柄無し」を表示する。CPU10は、ステップP206の処理が完了した後、処理を終了する。   In Step P205, the CPU 10 displays an error message “No target picture” on the display. After completing the process in Step P206, the CPU 10 ends the process.

ステップP206において、CPU10は、カウント値C1記憶用メモリM37に、1を上書きする。CPU10は、ステップP206の処理が完了した後、ステップP207を実行する。   In Step P206, the CPU 10 overwrites 1 in the count value C1 storage memory M37. After completing the process in Step P206, the CPU 10 executes Step P207.

ステップP207において、CPU10は、カウント値C1記憶用メモリM37から、カウント値C1を読込む。CPU10は、ステップP207の処理が完了した後、ステップP208を実行する。   In Step P207, the CPU 10 reads the count value C1 from the count value C1 storage memory M37. After completing the process in Step P207, the CPU 10 executes Step P208.

ステップP208において、CPU10は、ターゲット絵柄候補位置記憶用メモリM35のC1番目のアドレス位置に記憶されたアドレス(X,Y)を読込み、C1番目のアドレス位置のアドレス(X,Y)記憶用メモリM38に記憶する。CPU10は、ステップP208の処理が完了した後、ステップP209を実行する。   In Step P208, the CPU 10 reads the address (X, Y) stored at the C1th address position of the target picture candidate position storage memory M35, and stores the address (X, Y) storage memory M38 at the C1th address position. To remember. After completing the process in Step P208, the CPU 10 executes Step P209.

ステップP209において、CPU10は、ターゲット絵柄候補の長さ記憶用メモリM36のC1番目のアドレス位置に記憶されたカウント値Lを読込み、C1番目のアドレス位置のカウント値L記憶用メモリM39を記憶する。   In Step P209, the CPU 10 reads the count value L stored in the C1th address position of the target picture candidate length storage memory M36, and stores the count value L storage memory M39 in the C1th address position.

ステップP210において、CPU10は、カウント値N1記憶用メモリM40に、0を上書きする。CPU10は、ステップP210の処理が完了した後、ステップP211を実行する。尚、カウント値N1は、ターゲット絵柄候補位置の画素から天方向に21番目以上離れた画素の左方向の10個の画素の3値化データがすべて0である範囲の天方向の画素数を表している。   In Step P210, the CPU 10 overwrites 0 in the count value N1 storage memory M40. After completing the process in Step P210, the CPU 10 executes Step P211. Note that the count value N1 represents the number of pixels in the celestial direction in a range where all the ternary data of 10 pixels in the left direction of the pixels 21 or more away in the celestial direction from the pixel at the target picture candidate position are all zero. ing.

ステップP211において、CPU10は、C1番目のアドレス位置のアドレス(X,Y)記憶用メモリM38から、C1番目のアドレス位置のカウント値Yを読込む。CPU11は、ステップP210の処理が完了した後、ステップP212を実行する。   In Step P211, the CPU 10 reads the count value Y of the C1th address position from the memory M38 for storing the address (X, Y) of the C1th address position. After completing the process in Step P210, the CPU 11 executes Step P212.

ステップP212において、CPU10は、カウント値N1記憶用メモリM40から、カウント値N1を読込む。CPU10は、ステップP212の処理が完了した後、ステップP213を実行する。   In Step P212, the CPU 10 reads the count value N1 from the count value N1 storage memory M40. After completing the process in Step P212, the CPU 10 executes Step P213.

ステップP213において、CPU10は、カウント値Yより21及びカウント値N1を減算し、天地方向の画素番号を演算し、天地方向の画素番号記憶用メモリM25に記憶する。CPU11は、ステップP213の処理が完了した後、ステップP214を実行する。   In Step P213, the CPU 10 subtracts 21 and the count value N1 from the count value Y, calculates the pixel number in the vertical direction, and stores it in the pixel number storage memory M25 in the vertical direction. After completing the process in Step P213, the CPU 11 executes Step P214.

ステップP214において、CPU10は、天地方向の画素番号が1よりも小さいかどうか判断する。CPU10は、天地方向の画素番号が1よりも小さい場合、ステップP232を実行する。また、CPU10は、天地方向の画素番号が1よりも小さくない場合、ステップP215を実行する。   In Step P214, the CPU 10 determines whether or not the pixel number in the vertical direction is smaller than 1. When the pixel number in the vertical direction is smaller than 1, the CPU 10 executes Step P232. On the other hand, when the pixel number in the vertical direction is not smaller than 1, the CPU 10 executes Step P215.

ステップP215において、CPU10は、第4の判断用の合計値記憶用メモリM41に、0を上書きする。CPU10は、ステップP215の処理が完了した後、ステップP216を実行する。尚、第4の判断用の合計値は、ターゲット絵柄候補位置の画素から天方向に21番目以上離れた画素の左方向の10個の画素の3値化データがすべて0であるかどうか、又は、ターゲット絵柄候補位置の画素に絵柄の幅を加算し、更に地方向に21番目以上離れた画素の左方向の10個の画素の3値化データがすべて0であるかどうかを判断する為のものである。   In Step P215, the CPU 10 overwrites 0 in the fourth determination total value storage memory M41. After completing the process in Step P215, the CPU 10 executes Step P216. Note that the fourth total value for judgment is whether all the ternary data of 10 pixels in the left direction of the pixels 21 or more away in the celestial direction from the pixel at the target picture candidate position are all zero, or , To add the width of the pattern to the pixel at the target pattern candidate position, and to determine whether or not all the ternary data of the 10 pixels in the left direction of the pixel that is 21th or more away in the ground direction is 0 Is.

ステップP216において、CPU10は、カウント値M記憶用メモリM29に、0を上書きする。CPU10は、ステップP216の処理が完了した後、ステップP217を実行する。   In Step P216, the CPU 10 overwrites 0 in the count value M storage memory M29. After completing the process in Step P216, the CPU 10 executes Step P217.

ステップP217において、CPU10は、C1番目のアドレス位置のアドレス(X,Y)記憶用メモリM38から、C1番目のアドレス位置のカウント値Xを読込む。CPU10は、ステップP217の処理が完了した後、ステップP218を実行する。   In Step P217, the CPU 10 reads the count value X of the C1th address position from the memory M38 for storing the address (X, Y) of the C1th address position. After completing the process in Step P217, the CPU 10 executes Step P218.

ステップP218において、CPU10は、C1番目のアドレス位置のアドレス(X,Y)記憶用メモリM38から、C1番目のアドレス位置のカウント値Yを読込む。CPU10は、ステップP218の処理が完了した後、ステップP219を実行する。   In Step P218, the CPU 10 reads the count value Y at the C1th address position from the memory M38 for storing the address (X, Y) at the C1th address position. After completing the process in Step P218, the CPU 10 executes Step P219.

ステップP219において、CPU10は、カウント値N1記憶用メモリM40から、カウント値N1を読込む。CPU10は、ステップP219の処理が完了した後、ステップP220を実行する。   In Step P219, the CPU 10 reads the count value N1 from the count value N1 storage memory M40. After completing the process in Step P219, the CPU 10 executes Step P220.

ステップP220において、CPU10は、カウント値M記憶用メモリM29から、カウント値Mを読込む。CPU10は、ステップP220の処理が完了した後、ステップP221を実行する。   In Step P220, the CPU 10 reads the count value M from the count value M storage memory M29. After completing the process in Step P220, the CPU 10 executes Step P221.

ステップP221において、CPU10は、印刷絵柄の3値化データ記憶用メモリM15のアドレス(X−M,Y−21−N1)の位置の3値化データを読込み、アドレス(X−M,Y−21−N1)の位置の3値化データ記憶用メモリM42に記憶する。CPU10は、ステップP221の処理が完了した後、ステップP222を実行する。   In Step P221, the CPU 10 reads the ternarized data at the position of the address (XM, Y-21-N1) of the memory M15 for storing the ternary data of the print pattern, and reads the address (XM, Y-21). The data is stored in the ternary data storage memory M42 at the position −N1). After completing the process in Step P221, the CPU 10 executes Step P222.

ステップP222において、CPU10は、第4の判断用の合計値記憶用メモリM41から、第4の判断用の合計値を読込む。CPU10は、ステップP222の処理が完了した後、ステップP223を実行する。   In Step P222, the CPU 10 reads the fourth judgment total value from the fourth judgment total value storage memory M41. After completing the process in Step P222, the CPU 10 executes Step P223.

ステップP223において、CPU10は、第4の判断用の合計値に印刷絵柄の3値化データ記憶用メモリM15のアドレス(X−M,Y−21−N1)の位置の3値化データを加算し、求めた値を第4の判断用の合計値記憶用メモリM41に上書きする。CPU10は、ステップP223の処理が完了した後、ステップP224を実行する。   In Step P223, the CPU 10 adds the ternary data at the position of the address (XM, Y-21-N1) of the ternary data storage memory M15 for the printed pattern to the fourth determination total value. Then, the obtained value is overwritten in the fourth determination total value storage memory M41. After completing the process in Step P223, the CPU 10 executes Step P224.

ステップP224において、CPU10は、カウント値M記憶用メモリM29から、カウント値Mを読込む。CPU10は、ステップP224の処理が完了した後、ステップP225を実行する。   In Step P224, the CPU 10 reads the count value M from the count value M storage memory M29. After completing the process in Step P224, the CPU 10 executes Step P225.

ステップP225において、CPU10は、カウント値Mに1を加算し、求めた値をカウント値M記憶用メモリM29に上書きする。CPU10は、ステップP225の処理が完了した後、ステップP226を実行する。   In Step P225, the CPU 10 adds 1 to the count value M, and overwrites the obtained value in the count value M storage memory M29. After completing the process in Step P225, the CPU 10 executes Step P226.

ステップP226において、CPU10は、カウント値M記憶用メモリM29から、カウント値Mを読込む。CPU10は、ステップP226の処理が完了した後、ステップP227を実行する。   In Step P226, the CPU 10 reads the count value M from the count value M storage memory M29. After completing the process in Step P226, the CPU 10 executes Step P227.

ステップP227において、CPU10は、カウント値Mが10であるかどうか判断する。CPU10は、カウント値Mが10である場合、ステップP228を実行する。また、CPU10は、カウント値Mが10でない場合、ステップP217を実行する。   In Step P227, the CPU 10 determines whether or not the count value M is 10. When the count value M is 10, the CPU 10 executes Step P228. On the other hand, when the count value M is not 10, the CPU 10 executes Step P217.

ステップP228において、CPU10は、第4の判断用の合計値記憶用メモリM41から、第4の判断用の合計値を読込む。CPU10は、ステップP228の処理が完了した後、ステップP229を実行する。   In Step P228, the CPU 10 reads the fourth determination total value from the fourth determination total value storage memory M41. After completing the process in Step P228, the CPU 10 executes Step P229.

ステップP229において、CPU10は、第4の判断用の合計値が0であるかどうか判断する。CPU10は、第4の判断用の合計値が0である場合、ステップP230を実行する。また、CPU10は、第4の判断用の合計値が0でない場合、ステップP232を実行する。   In Step P229, the CPU 10 determines whether or not the fourth determination total value is zero. When the total value for the fourth determination is 0, the CPU 10 executes Step P230. On the other hand, when the total value for the fourth determination is not 0, the CPU 10 executes Step P232.

ステップP230において、CPU10は、カウント値N1記憶用メモリM40から、カウント値N1を読込む。CPU10は、ステップP230の処理が完了した後、ステップP231を実行する。   In Step P230, the CPU 10 reads the count value N1 from the count value N1 storage memory M40. After completing the process in Step P230, the CPU 10 executes Step P231.

ステップP231において、CPU10は、カウント値N1に1を加算し、求めた値をカウント値N1記憶用メモリM40に上書きする。CPU10は、ステップP231の処理が完了した後、ステップP211を実行する。   In Step P231, the CPU 10 adds 1 to the count value N1, and overwrites the obtained value in the memory M40 for storing the count value N1. After completing the process in Step P231, the CPU 10 executes Step P211.

ステップP232において、CPU10は、カウント値N2記憶用メモリM43に、0を上書きする。CPU10は、ステップP232の処理が完了した後、ステップP233を実行する。尚、カウント値N2は、ターゲット絵柄候補位置の画素に絵柄の幅を加算し、更に地方向に21番目以上離れた画素の左方向の10個の画素の3値化データがすべて0である範囲の地方向の画素数を表している。   In Step P232, the CPU 10 overwrites 0 in the count value N2 storage memory M43. After completing the process in Step P232, the CPU 10 executes Step P233. In addition, the count value N2 is a range in which all of the ternary data of 10 pixels in the left direction of the pixels that are 21th or more away in the ground direction are all 0 by adding the width of the pattern to the pixel at the target pattern candidate position. Represents the number of pixels in the ground direction.

ステップP233において、CPU10は、C1番目のアドレス位置のアドレス(X,Y)記憶用メモリM38から、C1番目のアドレス位置のカウント値Yを読込む。CPU10は、ステップP233の処理が完了した後、ステップP234を実行する。   In Step P233, the CPU 10 reads the count value Y of the C1th address position from the memory M38 for storing the address (X, Y) of the C1th address position. After completing the process in Step P233, the CPU 10 executes Step P234.

ステップP234において、CPU10は、C1番目のアドレス位置のカウント値L記憶用メモリM39から、C1番目のアドレス位置のカウント値Lを読込む。CPU10は、ステップP234の処理が完了した後、ステップP235を実行する。   In Step P234, the CPU 10 reads the count value L of the C1th address position from the memory M39 for storing the count value L of the C1th address position. After completing the process in Step P234, the CPU 10 executes Step P235.

ステップP235において、CPU10は、カウント値N2記憶用メモリM43から、カウント値N2を読込む。CPU10は、ステップP235の処理が完了した後、ステップP236を実行する。   In Step P235, the CPU 10 reads the count value N2 from the count value N2 storage memory M43. After completing the process in Step P235, the CPU 10 executes Step P236.

ステップP236において、CPU10は、カウント値Yにカウント値L、20及びカウント値N2を加算し、天地方向の画素番号を演算し、天地方向の画素番号記憶用メモリM25に記憶する。CPU10は、ステップP236の処理が完了した後、ステップP237を実行する。   In Step P236, the CPU 10 adds the count values L and 20 and the count value N2 to the count value Y, calculates the pixel number in the vertical direction, and stores it in the pixel number storage memory M25 in the vertical direction. After completing the process in Step P236, the CPU 10 executes Step P237.

ステップP237において、CPU10は、印刷絵柄の天地方向の総画素数記憶用メモリM6から、印刷絵柄の天地方向の総画素数を読込む。CPU10は、ステップP237の処理が完了した後、ステップP238を実行する。   In Step P237, the CPU 10 reads the total number of pixels in the vertical direction of the printed pattern from the memory M6 for storing the total number of pixels in the vertical direction of the printed pattern. After completing the process in Step P237, the CPU 10 executes Step P238.

ステップP238において、CPU10は、天地方向の画素番号が印刷絵柄の天地方向の総画素数よりも大きいかどうか判断する。CPU10は、天地方向の画素番号が印刷絵柄の天地方向の総画素数よりも大きい場合、ステップP256を実行する。また、CPU10は、天地方向の画素番号が印刷絵柄の天地方向の総画素数よりも大きくない場合、ステップP239を実行する。   In Step P238, the CPU 10 determines whether or not the pixel number in the vertical direction is larger than the total number of pixels in the vertical direction of the printed pattern. When the pixel number in the vertical direction is greater than the total number of pixels in the vertical direction of the printed pattern, the CPU 10 executes Step P256. On the other hand, when the pixel number in the vertical direction is not larger than the total number of pixels in the vertical direction of the printed pattern, the CPU 10 executes Step P239.

ステップP239において、CPU10は、第4の判断用の合計値記憶用メモリM41に、0を上書きする。CPU10は、ステップP239の処理が完了した後、ステップP240を実行する。   In Step P239, the CPU 10 overwrites 0 in the fourth determination total value storage memory M41. After completing the process in Step P239, the CPU 10 executes Step P240.

ステップP240において、CPU10は、カウント値M記憶用メモリM29に、0を上書きする。CPU10は、ステップP240の処理が完了した後、ステップP241を実行する。   In Step P240, the CPU 10 overwrites 0 in the count value M storage memory M29. After completing the process in Step P240, the CPU 10 executes Step P241.

ステップP241において、CPU10は、C1番目のアドレス位置のアドレス(X,Y)記憶用メモリM38から、C1番目のアドレス位置のカウント値Xを読込む。CPU10は、ステップP241の処理が完了した後、ステップP242を実行する。   In Step P241, the CPU 10 reads the count value X of the C1th address position from the memory M38 for storing the address (X, Y) of the C1th address position. After completing the process in Step P241, the CPU 10 executes Step P242.

ステップP242において、CPU10は、C1番目のアドレス位置のアドレス(X,Y)記憶用メモリM38から、C1番目のアドレス位置のカウント値Yを読込む。CPU10は、ステップP242の処理が完了した後、ステップP242−1を実行する。   In Step P242, the CPU 10 reads the count value Y at the C1th address position from the memory M38 for storing the address (X, Y) at the C1th address position. After completing the process in Step P242, the CPU 10 executes Step P242-1.

ステップP242−1において、CPU10は、C1番目のアドレス位置のカウント値L記憶用メモリM39から、C1番目のアドレス位置のカウント値Lを読込む。CPU10は、ステップP242−1の処理が完了した後、ステップP243を実行する。   In Step P242-1, the CPU 10 reads the count value L of the C1th address position from the memory M39 for storing the count value L of the C1th address position. After completing the process in Step P242-1, the CPU 10 executes Step P243.

ステップP243において、CPU10は、カウント値N2記憶用メモリM43から、カウント値N2を読込む。CPU10は、ステップP243の処理が完了した後、ステップP244を実行する。   In Step P243, the CPU 10 reads the count value N2 from the count value N2 storage memory M43. After completing the process in Step P243, the CPU 10 executes Step P244.

ステップP244において、CPU10は、カウント値M記憶用メモリM29から、カウント値Mを読込む。CPU10は、ステップP244の処理が完了した後、ステップP245を実行する。   In Step P244, the CPU 10 reads the count value M from the count value M storage memory M29. After completing the process in Step P244, the CPU 10 executes Step P245.

ステップP245において、CPU10は、印刷絵柄の3値化データ記憶用メモリM15のアドレス(X−M,Y+L+20+N2)の位置の3値化データを読込み、アドレス(X−M,Y+L+20+N2)の位置の3値化データ記憶用メモリM44に記憶する。CPU10は、ステップP245の処理が完了した後、ステップP246を実行する。   In step P245, the CPU 10 reads the ternary data at the position of the address (X−M, Y + L + 20 + N2) in the memory M15 for storing the ternary data of the print pattern, and the ternary value at the position of the address (X−M, Y + L + 20 + N2). Stored in the data storage memory M44. After completing the process in Step P245, the CPU 10 executes Step P246.

ステップP246において、CPU10は、第4の判断用の合計値記憶用メモリM41から、第4の判断用の合計値を読込む。CPU10は、ステップP246の処理が完了した後、ステップP247を実行する。   In Step P246, the CPU 10 reads the fourth judgment total value from the fourth judgment total value storage memory M41. After completing the process in Step P246, the CPU 10 executes Step P247.

ステップP247において、CPU10は、第4の判断用の合計値に印刷絵柄の3値化データ記憶用メモリM15のアドレス(X−M,Y+L+20+N2)の位置の3値化データを加算し、求めた値を第4の判断用の合計値記憶用メモリM41に上書きする。CPU10は、ステップP247の処理が完了した後、ステップP248を実行する。   In step P247, the CPU 10 adds the ternary data at the position of the address (X−M, Y + L + 20 + N2) of the printed pattern ternary data storage memory M15 to the total value for the fourth determination, and obtains the calculated value. Is overwritten in the fourth judgment total value storage memory M41. After completing the process in Step P247, the CPU 10 executes Step P248.

ステップP248において、CPU10は、カウント値M記憶用メモリM29から、カウント値Mを読込む。CPU10は、ステップP248の処理が完了した後、ステップP249を実行する。   In Step P248, the CPU 10 reads the count value M from the count value M storage memory M29. After completing the process in Step P248, the CPU 10 executes Step P249.

ステップP249において、CPU10は、カウント値Mに1を加算し、求めた値をカウント値M記憶用メモリM29に上書きする。CPU10は、ステップP249の処理が完了した後、ステップP250を実行する。   In Step P249, the CPU 10 adds 1 to the count value M, and overwrites the obtained value in the memory M29 for storing the count value M. After completing the process in Step P249, the CPU 10 executes Step P250.

ステップP250において、CPU10は、カウント値M記憶用メモリM29から、カウント値Mを読込む。CPU10は、ステップP250の処理が完了した後、ステップP251を実行する。   In Step P250, the CPU 10 reads the count value M from the count value M storage memory M29. After completing the process in Step P250, the CPU 10 executes Step P251.

ステップP251において、CPU10は、カウント値Mが10であるかどうか判断する。CPU10は、カウント値Mが10である場合、ステップP252を実行する。また、CPU10は、カウント値Mが10でない場合、ステップP241を実行する。   In Step P251, the CPU 10 determines whether or not the count value M is 10. When the count value M is 10, the CPU 10 executes Step P252. On the other hand, when the count value M is not 10, the CPU 10 executes Step P241.

ステップP252において、CPU10は、第4の判断用の合計値記憶用メモリM41から、第4の判断用の合計値を読込む。CPU10は、ステップP252の処理が完了した後、ステップP253を実行する。   In Step P252, the CPU 10 reads the fourth determination total value from the fourth determination total value storage memory M41. After completing the process in Step P252, the CPU 10 executes Step P253.

ステップP253において、CPU10は、第4の判断用の合計値が0であるかどうか判断する。CPU10は、第4の判断用の合計値が0である場合、ステップP254を実行する。また、CPU10は、第4の判断用の合計値が0でない場合、ステップP256を実行する。   In Step P253, the CPU 10 determines whether or not the fourth determination total value is zero. When the total value for the fourth determination is 0, the CPU 10 executes Step P254. On the other hand, when the total value for the fourth determination is not 0, the CPU 10 executes Step P256.

ステップP254において、CPU10は、カウント値N2記憶用メモリM43から、カウント値N2を読込む。CPU10は、ステップP254の処理が完了した後、ステップP255を実行する。   In Step P254, the CPU 10 reads the count value N2 from the count value N2 storage memory M43. After completing the process in Step P254, the CPU 10 executes Step P255.

ステップP255において、CPU10は、カウント値N2に1を加算し、求めた値をカウント値N2記憶用メモリM43に上書きする。CPU10は、ステップP255の処理が完了した後、ステップP233を実行する。   In Step P255, the CPU 10 adds 1 to the count value N2, and overwrites the obtained value in the memory M43 for storing the count value N2. After completing the process in Step P255, the CPU 10 executes Step P233.

ステップP256において、CPU10は、カウント値C1記憶用メモリM37から、カウント値C1を読込む。CPU10は、ステップP256の処理が完了した後、ステップP257を実行する。   In Step P256, the CPU 10 reads the count value C1 from the count value C1 storage memory M37. After completing the process in Step P256, the CPU 10 executes Step P257.

ステップP257において、CPU10は、カウント値N1記憶用メモリM40から、カウント値N1を読込む。CPU10は、ステップP257の処理が完了した後、ステップP258を実行する。   In Step P257, the CPU 10 reads the count value N1 from the count value N1 storage memory M40. After completing the process in Step P257, the CPU 10 executes Step P258.

ステップP258において、CPU10は、カウント値N2記憶用メモリM43から、カウント値N2を読込む。CPU10は、ステップP258の処理が完了した後、ステップP259を実行する。   In Step P258, the CPU 10 reads the count value N2 from the count value N2 storage memory M43. After completing the process in Step P258, the CPU 10 executes Step P259.

ステップP259において、CPU10は、カウント値N1にカウント値N2を加算し、ターゲット絵柄の拡大余白部長さを演算し、ターゲット絵柄の拡大余白部長さ記憶用メモリM45のC1番目のアドレス位置に記憶する。CPU10は、ステップP259の処理が完了した後、ステップP260を実行する。   In step P259, the CPU 10 adds the count value N2 to the count value N1, calculates the expanded margin length of the target pattern, and stores it in the C1th address position of the expanded margin length storage memory M45 of the target pattern. After completing the process in Step P259, the CPU 10 executes Step P260.

ステップP260において、CPU10は、カウント値C1記憶用メモリM37から、カウント値C1を読込む。CPU10は、ステップP260の処理が完了した後、ステップP261を実行する。   In Step P260, the CPU 10 reads the count value C1 from the count value C1 storage memory M37. After completing the process in Step P260, the CPU 10 executes Step P261.

ステップP261において、CPU10は、カウント値C1に1を加算し、求めた値をカウント値C1記憶用メモリM37に上書きする。CPU10は、ステップP261の処理が完了した後、ステップP262を実行する。   In Step P261, the CPU 10 adds 1 to the count value C1, and overwrites the obtained value in the memory C37 for storing the count value C1. After completing the process in Step P261, the CPU 10 executes Step P262.

ステップP262において、CPU10は、カウント値C1記憶用メモリM37から、カウント値C1を読込む。CPU10は、ステップP262の処理が完了した後、ステップP263を実行する。   In Step P262, the CPU 10 reads the count value C1 from the count value C1 storage memory M37. After completing the process in Step P262, the CPU 10 executes Step P263.

ステップP263において、CPU10は、カウント値C記憶用メモリM21から、カウント値Cを読込む。CPU10は、ステップP263の処理が完了した後、ステップP264を実行する。   In Step P263, the CPU 10 reads the count value C from the count value C storage memory M21. After completing the process in Step P263, the CPU 10 executes Step P264.

ステップP264において、CPU10は、カウント値C1がカウント値Cよりも大きいか判断する。CPU10は、カウント値C1がカウント値Cよりも大きい場合、ステップP265を実行する。また、CPU10は、カウント値C1がカウント値Cよりも大きくない場合、ステップP207を実行する。   In Step P264, the CPU 10 determines whether the count value C1 is larger than the count value C. When the count value C1 is larger than the count value C, the CPU 10 executes Step P265. On the other hand, when the count value C1 is not greater than the count value C, the CPU 10 executes Step P207.

ステップP265において、CPU10は、カウント値C記憶用メモリM21から、カウント値Cを読込む。CPU10は、ステップP265の処理が完了した後、ステップP266を実行する。   In Step P265, the CPU 10 reads the count value C from the count value C storage memory M21. After completing the process in Step P265, the CPU 10 executes Step P266.

ステップP266において、CPU10は、カウント値Cが1であるかどうか判断する。CPU10は、カウント値Cが1である場合、ステップP267を実行する。また、CPU10は、カウント値Cが1でない場合、ステップP283を実行する。   In Step P266, the CPU 10 determines whether or not the count value C is 1. When the count value C is 1, the CPU 10 executes Step P267. On the other hand, when the count value C is not 1, the CPU 10 executes Step P283.

ステップP267において、CPU10は、ターゲット絵柄の拡大余白部長さ記憶用メモリM45の1番目のアドレス位置に記憶されたターゲット絵柄の拡大余白部長さを読込み、C1番目のアドレス位置に記憶されたターゲット絵柄の拡大余白部長さ記憶用メモリM46に記憶する。CPU10は、ステップP267の処理が完了した後、ステップP268を実行する。   In Step P267, the CPU 10 reads the expanded margin length of the target pattern stored in the first address position of the expanded margin length storage memory M45 of the target pattern, and reads the target pattern stored in the C1th address position. This is stored in the expanded margin length memory M46. After completing the process in Step P267, the CPU 10 executes Step P268.

ステップP268において、CPU10は、1番目のアドレス位置に記憶されたターゲット絵柄の拡大余白部長さを、余白部の最大長さ記憶用メモリM47に上書きする。CPU10は、ステップP268の処理が完了した後、ステップP269を実行する。   In Step P268, the CPU 10 overwrites the expanded margin length of the target pattern stored at the first address position in the maximum length storage memory M47 of the margin. After completing the process in Step P268, the CPU 10 executes Step P269.

ステップP269において、CPU10は、余白部の最大長さ位置記憶用メモリM48に、1を上書きする。CPU10は、ステップP269の処理が完了した後、ステップP270を実行する。   In Step P269, the CPU 10 overwrites 1 in the memory M48 for storing the maximum length position of the margin. After completing the process in Step P269, the CPU 10 executes Step P270.

ステップP270において、CPU10は、カウント値C1記憶用メモリM37に、2を上書きする。CPU10は、ステップP270の処理が完了した後、ステップP271を実行する。   In Step P270, the CPU 10 overwrites 2 in the memory M37 for storing the count value C1. After completing the process in Step P270, the CPU 10 executes Step P271.

ステップP271において、CPU10は、カウント値C1記憶用メモリM37から、カウント値C1を読込む。CPU10は、ステップP271の処理が完了した後、ステップP272を実行する。   In Step P271, the CPU 10 reads the count value C1 from the count value C1 storage memory M37. After completing the process in Step P271, the CPU 10 executes Step P272.

ステップP272において、CPU10は、ターゲット絵柄の拡大余白部長さ記憶用メモリM45のC1番目のアドレス位置に記憶されたターゲット絵柄の拡大余白部長さを読込む。CPU10は、ステップP272の処理が完了した後、ステップP273を実行する。   In Step P272, the CPU 10 reads the expanded margin portion length of the target pattern stored at the C1th address position in the memory M45 for storing the expanded margin portion length of the target pattern. After completing the process in Step P272, the CPU 10 executes Step P273.

ステップP273において、CPU10は、余白部の最大長さ記憶用メモリM47から、余白部の最大長さを読込む。CPU10は、ステップP273の処理が完了した後、ステップP274を実行する。   In Step P273, the CPU 10 reads the maximum length of the margin from the memory M47 for storing the maximum length of the margin. After completing the process in Step P273, the CPU 10 executes Step P274.

ステップP274において、CPU10は、C1番目のアドレス位置に記憶されたターゲット絵柄の拡大余白部長さが余白部の最大長さよりも大きいかどうか判断する。CPU10は、C1番目のアドレス位置に記憶されたターゲット絵柄の拡大余白部長さが余白部の最大長さよりも大きい場合、ステップP275を実行する。また、CPU10は、C1番目のアドレス位置に記憶されたターゲット絵柄の拡大余白部長さが余白部の最大長さよりも大きくない場合、ステップP278を実行する。   In Step P274, the CPU 10 determines whether or not the enlarged blank portion length of the target pattern stored at the C1th address position is larger than the maximum length of the blank portion. CPU10 performs step P275, when the expansion margin part length of the target picture memorize | stored in the C1st address position is larger than the maximum length of a margin part. On the other hand, when the extended margin length of the target pattern stored at the C1th address position is not larger than the maximum length of the margin, the CPU 10 executes Step P278.

ステップP275において、CPU10は、余白部の最大長さ記憶用メモリM47に、C1番目のアドレス位置に記憶されたターゲット絵柄の拡大余白部長さを上書きする。CPU10は、ステップP275の処理が完了した後、ステップP276を実行する。   In Step P275, the CPU 10 overwrites the maximum margin storage length memory M47 with the expanded margin length of the target pattern stored at the C1th address position. After completing the process in Step P275, the CPU 10 executes Step P276.

ステップP276において、CPU10は、カウント値C1記憶用メモリM37から、カウント値C1を読込む。CPU10は、ステップP276の処理が完了した後、ステップP277を実行する。   In Step P276, the CPU 10 reads the count value C1 from the count value C1 storage memory M37. After completing the process in Step P276, the CPU 10 executes Step P277.

ステップP277において、CPU10は、余白部の最大長さ位置記憶用メモリM48に、カウント値C1を上書きする。CPU10は、ステップP277の処理が完了した後、ステップP278を実行する。   In Step P277, the CPU 10 overwrites the count value C1 in the margin length maximum length position storage memory M48. After completing the process in Step P277, the CPU 10 executes Step P278.

ステップP278において、CPU10は、カウント値C1記憶用メモリM37から、カウント値C1を読込む。CPU10は、ステップP278の処理が完了した後、ステップP279を実行する。   In Step P278, the CPU 10 reads the count value C1 from the count value C1 storage memory M37. After completing the process in Step P278, the CPU 10 executes Step P279.

ステップP279において、CPU10は、カウント値C1に1を加算し、求めた値をカウント値C1記憶用メモリM37に上書きする。CPU10は、ステップP279の処理が完了した後、ステップP280を実行する。   In Step P279, the CPU 10 adds 1 to the count value C1, and overwrites the obtained value in the memory C37 for storing the count value C1. After completing the process in Step P279, the CPU 10 executes Step P280.

ステップP280において、CPU10は、カウント値C1記憶用メモリM37から、カウント値C1を読込む。CPU10は、ステップP280の処理が完了した後、ステップP281を実行する。   In Step P280, the CPU 10 reads the count value C1 from the count value C1 storage memory M37. After completing the process in Step P280, the CPU 10 executes Step P281.

ステップP281において、CPU10は、カウント値C記憶用メモリM21から、カウント値Cを読込む。CPU10は、ステップP281の処理が完了した後、ステップP282を実行する。   In Step P281, the CPU 10 reads the count value C from the count value C storage memory M21. After completing the process in Step P281, the CPU 10 executes Step P282.

ステップP282において、CPU10は、カウント値C1がカウント値Cよりも大きいかどうか判断する。CPU10は、カウント値C1がカウント値Cよりも大きい場合、ステップP286を実行する。また、CPU10は、カウント値C1がカウント値Cよりも大きくない場合、ステップP271を実行する。   In Step P282, the CPU 10 determines whether or not the count value C1 is larger than the count value C. When the count value C1 is larger than the count value C, the CPU 10 executes Step P286. On the other hand, when the count value C1 is not greater than the count value C, the CPU 10 executes Step P271.

ステップP283において、CPU10は、ターゲット絵柄の拡大余白部長さ記憶用メモリM45の1番目のアドレス位置に記憶されたターゲット絵柄の拡大余白部長さを読込み、C1番目のアドレス位置に記憶されたターゲット絵柄の拡大余白部長さ記憶用メモリM46に記憶する。CPU10は、ステップP283の処理が完了した後、ステップP284を実行する。   In step P283, the CPU 10 reads the expanded margin length of the target pattern stored in the first address position of the expanded margin length storage memory M45 of the target pattern, and reads the target pattern stored in the C1th address position. This is stored in the expanded margin length memory M46. After completing the process in Step P283, the CPU 10 executes Step P284.

ステップP284において、CPU10は、1番目のアドレス位置に記憶されたターゲット絵柄の拡大余白部長さを、余白部の最大長さ記憶用メモリM47に上書きする。CPU10は、ステップP284の処理が完了した後、ステップP285を実行する。   In Step P284, the CPU 10 overwrites the expanded margin portion length of the target pattern stored at the first address position in the maximum length storage memory M47 of the margin portion. After completing the process in Step P284, the CPU 10 executes Step P285.

ステップP285において、CPU10は、余白部の最大長さ位置記憶用メモリM48に、1を上書きする。CPU10は、ステップP285の処理が完了した後、ステップP286を実行する。   In Step P285, the CPU 10 overwrites 1 in the maximum length position storage memory M48 of the margin. After completing the process in Step P285, the CPU 10 executes Step P286.

以上の動作フローによって、ターゲット絵柄候補位置のうち、天地方向に最も大きな拡大余白部があるものを、ターゲット絵柄として選択する。   Through the above operation flow, the target picture candidate position having the largest expanded margin in the top-to-bottom direction is selected as the target picture.

ステップP286において、CPU10は、印刷絵柄の左右方向の長さ記憶用メモリM3から、印刷絵柄の左右方向の長さを読込む。CPU10は、ステップP286の処理が完了した後、ステップP287を実行する。   In Step P286, the CPU 10 reads the length of the printed pattern in the left-right direction from the memory M3 for storing the length of the printed pattern in the left-right direction. After completing the process in Step P286, the CPU 10 executes Step P287.

ステップP287において、CPU10は、印刷絵柄の左右方向の総画素数記憶用メモリM5から、印刷絵柄の左右方向の総画素数を読込む。CPU10は、ステップP287の処理が完了した後、ステップP288を実行する。   In Step P287, the CPU 10 reads the total number of pixels in the horizontal direction of the printed picture from the memory M5 for storing the total number of pixels in the horizontal direction of the printed picture. After completing the process in Step P287, the CPU 10 executes Step P288.

ステップP288において、CPU10は、印刷絵柄の左右方向の長さを印刷絵柄の左右方向の総画素数で除算し、各画素の左右方向の長さを演算し、各画素の左右方向の長さ記憶用メモリM49に記憶する。CPU10は、ステップP288の処理が完了した後、ステップP289を実行する。   In step P288, the CPU 10 divides the length of the printed picture in the left-right direction by the total number of pixels in the left-right direction of the printed picture, calculates the length in the left-right direction of each pixel, and stores the length in the left-right direction of each pixel. Stored in the memory M49. After completing the process in Step P288, the CPU 10 executes Step P289.

ステップP289において、CPU10は、印刷絵柄の天地方向の長さ記憶用メモリM4から、印刷絵柄の天地方向の長さを読込む。CPU10は、ステップP289の処理が完了した後、ステップP290を実行する。   In Step P289, the CPU 10 reads the length of the print pattern in the vertical direction from the memory M4 for storing the length of the print pattern in the vertical direction. After completing the process in Step P289, the CPU 10 executes Step P290.

ステップP290において、CPU10は、印刷絵柄の天地方向の総画素数記憶用メモリM6から、印刷絵柄の天地方向の総画素数を読込む。CPU10は、ステップP290の処理が完了した後、ステップP291を実行する。   In Step P290, the CPU 10 reads the total number of pixels in the vertical direction of the printed pattern from the memory M6 for storing the total number of pixels in the vertical direction of the printed pattern. After completing the process in Step P290, the CPU 10 executes Step P291.

ステップP291において、CPU10は、印刷絵柄の天地方向の長さを印刷絵柄の天地方向の総画素数で除算し、各画素の天地方向の長さを演算し、各画素の天地方向の長さ記憶用メモリM50に記憶する。CPU10は、ステップP291の処理が完了した後、ステップP292を実行する。   In step P291, the CPU 10 divides the vertical length of the printed pattern by the total number of pixels in the vertical direction of the printed pattern, calculates the vertical length of each pixel, and stores the vertical length of each pixel. Stored in the memory M50. After completing the process in Step P291, the CPU 10 executes Step P292.

ステップP292において、CPU10は、余白部の最大長さ位置記憶用メモリM48に記憶されたカウント値C1を読込む。CPU10は、ステップP292の処理が完了した後、ステップP293を実行する。   In Step P292, the CPU 10 reads the count value C1 stored in the margin length maximum length position storage memory M48. After completing the process in Step P292, the CPU 10 executes Step P293.

ステップP293において、CPU10は、ターゲット絵柄候補位置記憶用メモリM35のC1番目のアドレス位置に記憶されたアドレス(X,Y)を読込み、ターゲット絵柄のアドレス記憶用メモリM51に記憶する。CPU10は、ステップP293の処理が完了した後、ステップP294を実行する。   In Step P293, the CPU 10 reads the address (X, Y) stored in the C1th address position of the target picture candidate position storage memory M35, and stores it in the target picture address storage memory M51. After completing the process in Step P293, the CPU 10 executes Step P294.

ステップP294において、CPU10は、ターゲット絵柄候補の長さ記憶用メモリM36のC1番目のアドレス位置に記憶されたカウント値Lを読込み、ターゲット絵柄の長さ記憶用メモリM52に記憶する。CPU10は、ステップP294の処理が完了した後、ステップP295を実行する。   In Step P294, the CPU 10 reads the count value L stored in the C1-th address position of the target picture candidate length storage memory M36 and stores it in the target picture length storage memory M52. After completing the process in Step P294, the CPU 10 executes Step P295.

ステップP295において、CPU10は、ターゲット絵柄のアドレス記憶用メモリM51より、カウント値Xの値を読込む。CPU10は、ステップP295の処理が完了した後、ステップP296を実行する。   In Step P295, the CPU 10 reads the count value X from the address memory M51 for the target picture. After completing the process in Step P295, the CPU 10 executes Step P296.

ステップP296において、CPU10は、各画素の左右方向の長さ記憶用メモリM49から、各画素の左右方向の長さを読込む。CPU10は、ステップP296の処理が完了した後、ステップP297を実行する。   In Step P296, the CPU 10 reads the length of each pixel in the left-right direction from the memory for memory length M49 in the left-right direction. After completing the process in Step P296, the CPU 10 executes Step P297.

ステップP297において、CPU10は、((カウント値X−5)×(各画素の左右方向の長さ))を演算してターゲット絵柄の左右方向中心の印刷絵柄内の位置を求め、ターゲット絵柄の左右方向中心の印刷絵柄内の位置記憶用メモリM53に記憶する。CPU10は、ステップP297の処理が完了した後、ステップP298を実行する。   In step P297, the CPU 10 calculates ((count value X−5) × (length of each pixel in the left-right direction)) to obtain the position in the print pattern at the center in the left-right direction of the target pattern, and This is stored in the position storage memory M53 in the direction-centered printed picture. After completing the process in Step P297, the CPU 10 executes Step P298.

ステップP298において、CPU10は、左側の余白部長さ記憶用メモリM1から、左側の余白部長さを読込む。CPU10は、ステップP298の処理が完了した後、ステップP299を実行する。   In Step P298, the CPU 10 reads the left margin portion length from the left margin portion length storage memory M1. After completing the process in Step P298, the CPU 10 executes Step P299.

ステップP299において、CPU10は、ターゲット絵柄の左右方向中心の印刷絵柄内の位置に左側の余白部長さを加算し、ターゲット絵柄の左右方向の中心位置を演算し、ターゲット絵柄の左右方向の中心位置記憶用メモリM54に記憶する。CPU10は、ステップP299の処理が完了した後、ステップP300を実行する。   In step P299, the CPU 10 adds the left margin length to the position in the print pattern at the center in the left-right direction of the target pattern, calculates the center position in the left-right direction of the target pattern, and stores the center position in the left-right direction of the target pattern. Stored in the memory M54. After completing the process in Step P299, the CPU 10 executes Step P300.

ステップP300において、CPU10は、ターゲット絵柄のアドレス記憶用メモリM51より、カウント値Yの値を読込む。CPU10は、ステップP300の処理が完了した後、ステップP301を実行する。   In Step P300, the CPU 10 reads the value of the count value Y from the address memory M51 for the target picture. After completing the process in Step P300, the CPU 10 executes Step P301.

ステップP301において、CPU10は、各画素の天地方向の長さ記憶用メモリM50から、各画素の天地方向の長さを読込む。CPU10は、ステップP301の処理が完了した後、ステップP302を実行する。   In Step P301, the CPU 10 reads the vertical length of each pixel from the vertical storage memory M50 of each pixel. After completing the process in Step P301, the CPU 10 executes Step P302.

ステップP302において、CPU10は、((カウント値Y−1)×(各画素の天地方向の長さ))を演算してターゲット絵柄の天方向端の印刷絵柄内の位置を求め、ターゲット絵柄の天方向端の印刷絵柄内の位置記憶用メモリM55に記憶する。CPU10は、ステップP302の処理が完了した後、ステップP303を実行する。   In step P302, the CPU 10 calculates ((count value Y-1) × (length of each pixel in the vertical direction)) to obtain the position in the print pattern at the top end of the target pattern, and the top of the target pattern. This is stored in the position storage memory M55 in the printed picture at the direction end. After completing the process in Step P302, the CPU 10 executes Step P303.

ステップP303において、CPU10は、天側の余白部長さ記憶用メモリM2から、天側の余白部長さを読込む。CPU10は、ステップP303の処理が完了した後、ステップP304を実行する。   In Step P303, the CPU 10 reads the top margin portion length memory from the top margin portion length storage memory M2. After completing the process in Step P303, the CPU 10 executes Step P304.

ステップP304において、CPU10は、ターゲット絵柄の天方向端の印刷絵柄内の位置に天側の余白部長さを加算し、ターゲット絵柄の天方向端の基準位置を演算し、ターゲット絵柄の天方向端の基準位置記憶用メモリM56に記憶する。CPU10は、ステップP304の処理が完了した後、ステップP305を実行する。   In step P304, the CPU 10 adds the margin length on the top side to the position in the print pattern at the top end of the target pattern, calculates the reference position at the top end of the target pattern, and calculates the top end of the target pattern. The data is stored in the reference position storage memory M56. After completing the process in Step P304, the CPU 10 executes Step P305.

ステップP305において、CPU10は、ターゲット絵柄の長さ記憶用メモリM52から、ターゲット絵柄の長さ(カウント値L)を読込む。CPU10は、ステップP305の処理が完了した後、ステップP306を実行する。   In Step P305, the CPU 10 reads the length of the target picture (count value L) from the target picture length storage memory M52. After completing the process in Step P305, the CPU 10 executes Step P306.

ステップP306において、CPU10は、各画素の天地方向の長さ記憶用メモリM50から、各画素の天地方向の長さを読込む。CPU10は、ステップP306の処理が完了した後、ステップP307を実行する。   In Step P306, the CPU 10 reads the vertical length of each pixel from the vertical storage memory M50 of each pixel. After completing the process in Step P306, the CPU 10 executes Step P307.

ステップP307において、CPU10は、(ターゲット絵柄の長さ(カウント値L)×各画素の天地方向の長さ)を演算してターゲット絵柄の天地方向の基準長さを求め、ターゲット絵柄の天地方向の基準長さ記憶用メモリM57に記憶する。CPU10は、ステップP307の処理が完了した後、ステップP308を実行する。   In step P307, the CPU 10 calculates (the length of the target pattern (count value L) × the length of each pixel in the vertical direction) to obtain the reference length of the target pattern in the vertical direction, and determines the vertical direction of the target pattern. The data is stored in the reference length storage memory M57. After completing the process in Step P307, the CPU 10 executes Step P308.

ステップP308において、CPU10は、カット・オフ・コントロール装置の制御開始スイッチ19がオペレータによりONにされているかどうか判断する。CPU10は、カット・オフ・コントロール装置の制御開始スイッチ19がオペレータによりONにされている場合、ステップP309を実行する。また、CPU10は、カット・オフ・コントロール装置の制御開始スイッチ19がオペレータによりONにされていない場合、ステップP308を実行する。   In Step P308, the CPU 10 determines whether or not the control start switch 19 of the cut-off control device is turned on by the operator. When the control start switch 19 of the cut-off control device is turned on by the operator, the CPU 10 executes Step P309. On the other hand, when the control start switch 19 of the cut-off control device has not been turned on by the operator, the CPU 10 executes Step P308.

ステップP309において、CPU10は、ターゲット絵柄の左右方向の中心位置−検出器左右方向位置検出用カウンタのカウント値変換テーブル記憶用メモリM58から、ターゲット絵柄の左右方向の中心位置−検出器左右方向位置検出用カウンタのカウント値変換テーブルを読込む。CPU10は、ステップP309の処理が完了した後、ステップP310を実行する。   In step P309, the CPU 10 detects the center position of the target pattern in the left-right direction from the memory M58 for storing the left-right direction of the target pattern—the count value conversion table storage memory M58 of the counter for detecting the position in the left-right direction of the detector. Read the count value conversion table of the counter. After completing the process in Step P309, the CPU 10 executes Step P310.

ステップP310において、CPU10は、ターゲット絵柄の左右方向の中心位置記憶用メモリM54から、ターゲット絵柄の左右方向の中心位置を読込む。CPU10は、ステップP310の処理が完了した後、ステップP311を実行する。   In Step P310, the CPU 10 reads the center position in the left-right direction of the target picture from the memory M54 for storing the target picture in the left-right direction. After completing the process in Step P310, the CPU 10 executes Step P311.

ステップP311において、CPU10は、ターゲット絵柄の左右方向の中心位置−検出器左右方向位置検出用カウンタのカウント値変換テーブルを用いて、ターゲット絵柄の左右方向の中心位置より、ターゲット絵柄の左右方向の中心位置に対応する検出器左右方向位置検出用カウンタのカウント値を求め、ターゲット絵柄の左右方向の中心位置に対応する検出器左右方向位置検出用カウンタのカウント値記憶用メモリM59に記憶する。CPU10は、ステップP311の処理が完了した後、ステップP312を実行する。   In step P311, the CPU 10 uses the count value conversion table of the left and right center position of the target pattern-detector left and right position detection counter to determine the center of the target pattern in the left and right direction from the center position in the left and right direction of the target pattern. The count value of the detector left-right direction position detection counter corresponding to the position is obtained and stored in the count value storage memory M59 of the detector left-right direction position detection counter corresponding to the center position in the left-right direction of the target pattern. After completing the process in Step P311, the CPU 10 executes Step P312.

ステップP312において、CPU10は、検出器左右方向位置検出用カウンタ29より、カウント値を読込み、検出器左右方向位置検出用カウンタのカウント値記憶用メモリM60に記憶する。CPU10は、ステップP312の処理が完了した後、ステップP313を実行する。   In Step P312, the CPU 10 reads the count value from the detector left-right direction position detection counter 29 and stores it in the count value storage memory M60 of the detector left-right direction position detection counter. After completing the process in Step P312, the CPU 10 executes Step P313.

ステップP313において、CPU10は、ターゲット絵柄の左右方向の中心位置に対応する検出器左右方向位置検出用カウンタのカウント値が検出器左右方向位置検出用カウンタのカウント値と等しいかどうか判断する。CPU10は、ターゲット絵柄の左右方向の中心位置に対応する検出器左右方向位置検出用カウンタのカウント値が検出器左右方向位置検出用カウンタのカウント値と等しい場合、ステップP325を実行する。また、CPU10は、ターゲット絵柄の左右方向の中心位置に対応する検出器左右方向位置検出用カウンタのカウント値が検出器左右方向位置検出用カウンタのカウント値と等しくない場合、ステップP314を実行する。   In Step P313, the CPU 10 determines whether or not the count value of the detector horizontal position detection counter corresponding to the horizontal center position of the target pattern is equal to the count value of the detector horizontal position detection counter. When the count value of the detector left-right direction position detection counter corresponding to the center position in the left-right direction of the target pattern is equal to the count value of the detector left-right direction position detection counter, the CPU 10 executes Step P325. On the other hand, when the count value of the detector left-right direction position detection counter corresponding to the center position in the left-right direction of the target pattern is not equal to the count value of the detector left-right direction position detection counter, the CPU 10 executes Step P314.

ステップP314において、CPU10は、ターゲット絵柄の左右方向の中心位置に対応する検出器左右方向位置検出用カウンタのカウント値が検出器左右方向位置検出用カウンタのカウント値よりも大きいかどうか判断する。CPU10は、ターゲット絵柄の左右方向の中心位置に対応する検出器左右方向位置検出用カウンタのカウント値が検出器左右方向位置検出用カウンタのカウント値よりも大きい場合、ステップP315を実行する。また、CPU10は、ターゲット絵柄の左右方向の中心位置に対応する検出器左右方向位置検出用カウンタのカウント値が検出器左右方向位置検出用カウンタのカウント値よりも大きくない場合、ステップP320を実行する。   In Step P314, the CPU 10 determines whether or not the count value of the detector left-right direction position detection counter corresponding to the center position in the left-right direction of the target pattern is larger than the count value of the detector left-right direction position detection counter. CPU10 performs step P315, when the count value of the detector left-right direction position detection counter corresponding to the center position of the left-right direction of a target pattern is larger than the count value of the detector left-right direction position detection counter. On the other hand, when the count value of the detector horizontal position detection counter corresponding to the center position in the horizontal direction of the target pattern is not larger than the count value of the detector horizontal position detection counter, the CPU 10 executes Step P320. .

ステップP315において、CPU10は、検出器左右方向位置調整用モータ・ドライバ27に、正転指令を出力する。CPU10は、ステップP315の処理が完了した後、ステップP316を実行する。   In Step P315, the CPU 10 outputs a normal rotation command to the detector left-right direction position adjustment motor driver 27. After completing the process in Step P315, the CPU 10 executes Step P316.

ステップP316において、CPU10は、ターゲット絵柄の左右方向の中心位置に対応する検出器左右方向位置検出用カウンタのカウント値記憶用メモリM59から、ターゲット絵柄の左右方向の中心位置に対応する検出器左右方向位置検出用カウンタのカウント値を読込む。CPU10は、ステップP316の処理が完了した後、ステップP317を実行する。   In Step P316, the CPU 10 determines the detector left-right direction corresponding to the center position in the left-right direction of the target pattern from the count value storage memory M59 of the detector left-right direction position detection counter corresponding to the center position in the left-right direction of the target pattern. Read the count value of the position detection counter. After completing the process in Step P316, the CPU 10 executes Step P317.

ステップP317において、CPU10は、検出器左右方向位置検出用カウンタ29より、カウント値を読込み、検出器左右方向位置検出用カウンタのカウント値記憶用メモリM60に記憶する。CPU10は、ステップP317の処理が完了した後、ステップP318を実行する。   In Step P317, the CPU 10 reads the count value from the detector left-right direction position detection counter 29 and stores it in the count value storage memory M60 of the detector left-right direction position detection counter. After completing the process in Step P317, the CPU 10 executes Step P318.

ステップP318において、CPU10は、ターゲット絵柄の左右方向の中心位置に対応する検出器左右方向位置検出用カウンタのカウント値が検出器左右方向位置検出用カウンタのカウント値と等しいかどうか判断する。CPU10は、ターゲット絵柄の左右方向の中心位置に対応する検出器左右方向位置検出用カウンタのカウント値が検出器左右方向位置検出用カウンタのカウント値と等しい場合、ステップP319を実行する。また、CPU10は、ターゲット絵柄の左右方向の中心位置に対応する検出器左右方向位置検出用カウンタのカウント値が検出器左右方向位置検出用カウンタのカウント値と等しくない場合、ステップP316を実行する。   In Step P318, the CPU 10 determines whether or not the count value of the detector horizontal position detection counter corresponding to the horizontal center position of the target pattern is equal to the count value of the detector horizontal position detection counter. When the count value of the detector left-right direction position detection counter corresponding to the center position in the left-right direction of the target pattern is equal to the count value of the detector left-right direction position detection counter, the CPU 10 executes Step P319. On the other hand, when the count value of the detector left-right direction position detection counter corresponding to the center position in the left-right direction of the target pattern is not equal to the count value of the detector left-right direction position detection counter, the CPU 10 executes Step P316.

ステップP319において、CPU10は、検出器左右方向位置調整用モータ・ドライバ27への正転指令の出力を停止する。CPU10は、ステップP319の処理が完了した後、ステップP325を実行する。   In Step P319, the CPU 10 stops the output of the normal rotation command to the detector horizontal position adjustment motor driver 27. After completing the process in Step P319, the CPU 10 executes Step P325.

ステップP320において、CPU10は、検出器左右方向位置調整用モータ・ドライバ27に、逆転指令を出力する。CPU10は、ステップP320の処理が完了した後、ステップP321を実行する。   In Step P320, the CPU 10 outputs a reverse rotation command to the detector left-right direction position adjustment motor driver 27. After completing the process in Step P320, the CPU 10 executes Step P321.

ステップP321において、CPU10は、ターゲット絵柄の左右方向の中心位置に対応する検出器左右方向位置検出用カウンタのカウント値記憶用メモリM59から、ターゲット絵柄の左右方向の中心位置に対応する検出器左右方向位置検出用カウンタのカウント値を読込む。CPU10は、ステップP321の処理が完了した後、ステップP322を実行する。   In Step P321, the CPU 10 moves the detector left-right direction corresponding to the center position in the left-right direction of the target pattern from the count value storage memory M59 of the detector left-right position detection counter corresponding to the center position in the left-right direction of the target pattern. Read the count value of the position detection counter. After completing the process in Step P321, the CPU 10 executes Step P322.

ステップP322において、CPU10は、検出器左右方向位置検出用カウンタ29より、カウント値を読込み、検出器左右方向位置検出用カウンタのカウント値記憶用メモリM60に記憶する。CPU10は、ステップP322の処理が完了した後、ステップP323を実行する。   In Step P322, the CPU 10 reads the count value from the detector left-right direction position detection counter 29 and stores it in the count value storage memory M60 of the detector left-right direction position detection counter. After completing the process in Step P322, the CPU 10 executes Step P323.

ステップP323において、CPU10は、ターゲット絵柄の左右方向の中心位置に対応する検出器左右方向位置検出用カウンタのカウント値が検出器左右方向位置検出用カウンタのカウント値と等しいかどうか判断する。CPU10は、ターゲット絵柄の左右方向の中心位置に対応する検出器左右方向位置検出用カウンタのカウント値が検出器左右方向位置検出用カウンタのカウント値と等しい場合、ステップP324を実行する。また、CPU10は、ターゲット絵柄の左右方向の中心位置に対応する検出器左右方向位置検出用カウンタのカウント値が検出器左右方向位置検出用カウンタのカウント値と等しくない場合、ステップP321を実行する。   In Step P323, the CPU 10 determines whether the count value of the detector left-right direction position detection counter corresponding to the center position in the left-right direction of the target pattern is equal to the count value of the detector left-right direction position detection counter. When the count value of the detector left-right direction position detection counter corresponding to the center position in the left-right direction of the target pattern is equal to the count value of the detector left-right direction position detection counter, the CPU 10 executes Step P324. On the other hand, when the count value of the detector left-right direction position detection counter corresponding to the center position in the left-right direction of the target pattern is not equal to the count value of the detector left-right direction position detection counter, the CPU 10 executes Step P321.

ステップP324において、CPU10は、検出器左右方向位置調整用モータ・ドライバ27への逆転指令の出力を停止する。CPU10は、ステップP324の処理が完了した後、ステップP325を実行する。   In Step P324, the CPU 10 stops the output of the reverse rotation command to the detector horizontal position adjustment motor driver 27. After completing the process in Step P324, the CPU 10 executes Step P325.

以上の動作フローによって、ターゲット絵柄の左右方向の中心位置が求められると共に、検出器42がターゲット絵柄の左右方向の中心位置に位置付けられる。   With the above operation flow, the center position in the left-right direction of the target pattern is obtained, and the detector 42 is positioned at the center position in the left-right direction of the target pattern.

ステップP325において、CPU10は、ターゲット絵柄の天地方向の基準長さ記憶用メモリM57から、ターゲット絵柄の天地方向の基準長さを読込む。CPU10は、ステップP325の処理が完了した後、ステップP326を実行する。   In step P325, the CPU 10 reads the reference length in the vertical direction of the target pattern from the reference length storage memory M57 in the vertical direction of the target pattern. After completing the process in Step P325, the CPU 10 executes Step P326.

ステップP326において、CPU10は、ターゲット絵柄の天地方向の基準長さより、ターゲット絵柄の天地方向の基準長さに対応する印刷機の回転位相検出用カウンタ39のカウント値を求め、ターゲット絵柄の天地方向の基準長さに対応する印刷機の回転位相検出用カウンタ39のカウント値記憶用メモリM61に記憶する。CPU10は、ステップP326の処理が完了した後、ステップP327を実行する。   In step P326, the CPU 10 obtains the count value of the rotation phase detection counter 39 of the printing press corresponding to the reference length in the vertical direction of the target pattern from the reference length in the vertical direction of the target pattern, and determines the vertical direction of the target pattern. The value is stored in the count value storage memory M61 of the counter 39 for detecting the rotational phase of the printing press corresponding to the reference length. After completing the process in Step P326, the CPU 10 executes Step P327.

ステップP327において、CPU10は、ターゲット絵柄の天方向端の基準位置−印刷機の回転位相検出用カウンタのカウント値変換テーブル記憶用メモリM62から、ターゲット絵柄の天方向端の基準位置−印刷機の回転位相検出用カウンタ39のカウント値変換テーブルを読込む。CPU10は、ステップP327の処理が完了した後、ステップP328を実行する。   In step P327, the CPU 10 determines from the reference position of the top end of the target pattern—the count value conversion table storage memory M62 of the counter for detecting the rotational phase of the printing press—the reference position of the top end of the target pattern—the rotation of the printing press. The count value conversion table of the phase detection counter 39 is read. After completing the process in Step P327, the CPU 10 executes Step P328.

ステップP328において、CPU10は、ターゲット絵柄の天方向端の基準位置記憶用メモリM56から、ターゲット絵柄の天方向端の基準位置を読込む。CPU10は、ステップP328の処理が完了した後、ステップP329を実行する。   In Step P328, the CPU 10 reads the reference position at the top end of the target pattern from the reference position storage memory M56 at the top end of the target pattern. After completing the process in Step P328, the CPU 10 executes Step P329.

ステップP329において、CPU10は、ターゲット絵柄の天方向端の基準位置−印刷機の回転位相検出用カウンタ39のカウント値変換テーブルを用いて、ターゲット絵柄の天方向端の基準位置より、ターゲット絵柄の天方向端の基準位置に対応する印刷機の回転位相検出用カウンタ39のカウント値を求め、ターゲット絵柄の天方向端の基準位置−印刷機の回転位相検出用カウンタ39のカウント値記憶用メモリM63に記憶する。CPU10は、ステップP329の処理が完了した後、ステップP330を実行する。   In Step P329, the CPU 10 uses the reference position at the top end of the target pattern to the reference value at the top end of the target pattern using the count value conversion table of the counter 39 for rotational phase detection of the printing press. The count value of the rotation phase detection counter 39 of the printing press corresponding to the reference position of the direction end is obtained, and the reference position of the target image at the top end of the target pattern minus the count value storage memory M63 of the rotation phase detection counter 39 of the printing press. Remember. After completing the process in Step P329, the CPU 10 executes Step P330.

ステップP330において、CPU10は、検出範囲(カウンタのカウント値)記憶用メモリM64から、検出範囲(15画素分の天地方向の長さに相当するカウンタのカウント値)を読込む。CPU10は、ステップP330の処理が完了した後、ステップP331を実行する。   In Step P330, the CPU 10 reads the detection range (count value of the counter corresponding to the length in the vertical direction for 15 pixels) from the detection range (count value of the counter) storage memory M64. After completing the process in Step P330, the CPU 10 executes Step P331.

ステップP331において、CPU10は、ターゲット絵柄の天方向端の位置に対応する印刷機の回転位相検出用カウンタ39のカウント値より検出範囲(カウンタのカウント値)を減算し、検出開始時の印刷機の回転位相検出用カウンタ39のカウント値を演算し、検出開始時の印刷機の回転位相検出用カウンタのカウント値記憶用メモリM65に記憶する。CPU10は、ステップP331の処理が完了した後、ステップP332を実行する。   In Step P331, the CPU 10 subtracts the detection range (count value of the counter) from the count value of the rotation phase detection counter 39 of the printing press corresponding to the position of the top end of the target pattern, and the printing press at the start of detection. The count value of the rotation phase detection counter 39 is calculated and stored in the count value storage memory M65 of the rotation phase detection counter of the printing press at the start of detection. After completing the process in Step P331, the CPU 10 executes Step P332.

ステップP332において、CPU10は、検出開始用カウンタ31に、検出開始時の印刷機の回転位相検出用カウンタ39のカウント値を出力し、検出開始時の印刷機の回転位相検出用カウンタ39のカウント値を設定する。CPU10は、ステップP332の処理が完了した後、ステップP333を実行する。   In step P332, the CPU 10 outputs the count value of the rotation phase detection counter 39 of the printing press at the start of detection to the detection start counter 31, and the count value of the rotation phase detection counter 39 of the printing press at the start of detection. Set. After completing the process in Step P332, the CPU 10 executes Step P333.

ステップP333において、CPU10は、ターゲット絵柄の天方向端の基準位置に対応する印刷機の回転位相検出用カウンタのカウント値記憶用メモリM63から、ターゲット絵柄の天方向端の基準位置に対応する印刷機の回転位相検出用カウンタ39のカウント値を読込む。CPU10は、ステップP333の処理が完了した後、ステップP334を実行する。   In Step P333, the CPU 10 determines, from the count value storage memory M63 of the rotation phase detection counter of the printing machine corresponding to the reference position at the top end of the target picture, the printing machine corresponding to the reference position at the top end of the target picture. The count value of the rotation phase detection counter 39 is read. After completing the process in Step P333, the CPU 10 executes Step P334.

ステップP334において、CPU10は、検出範囲(カウンタのカウント値)記憶用メモリM64から、検出範囲(カウンタのカウント値)を読込む。CPU10は、ステップP334の処理が完了した後、ステップP335を実行する。   In Step P334, the CPU 10 reads the detection range (count value of the counter) from the memory for storing the detection range (count value of the counter) M64. After completing the process in Step P334, the CPU 10 executes Step P335.

ステップP335において、CPU10は、ターゲット絵柄の天方向端の基準位置に対応する印刷機の回転位相検出用カウンタ39のカウント値に検出範囲(カウンタのカウント値)を加算し、検出終了時の印刷機の回転位相検出用カウンタ39のカウント値を演算し、検出終了時の印刷機の回転位相検出用カウンタのカウント値記憶用メモリM66に記憶する。CPU10は、ステップP335の処理が完了した後、ステップP336を実行する。   In step P335, the CPU 10 adds the detection range (count value of the counter) to the count value of the rotation phase detection counter 39 of the printing press corresponding to the reference position at the top end of the target pattern, and the printing press at the end of detection. The count value of the rotation phase detection counter 39 is calculated and stored in the count value storage memory M66 of the rotation phase detection counter of the printing press at the end of detection. After completing the process in Step P335, the CPU 10 executes Step P336.

ステップP336において、CPU10は、検出終了用カウンタ32に、検出終了時の印刷機の回転位相検出用カウンタ39のカウント値を出力し、検出終了用カウンタ32に、検出終了時の印刷機の回転位相検出用カウンタ39のカウント値を設定する。CPU10は、ステップP336の処理が完了した後、ステップP337を実行する。   In Step P336, the CPU 10 outputs the count value of the rotation phase detection counter 39 of the printing press at the end of detection to the detection end counter 32, and the rotation phase of the printing press at the end of detection to the detection end counter 32. The count value of the detection counter 39 is set. After completing the process in Step P336, the CPU 10 executes Step P337.

以上の動作フローによって、ターゲット絵柄の天方向端に対応する印刷機の基準回転位相及び天地方向基準長さが求められると共に、検出器42がターゲット絵柄を検出すべき検出範囲が設定される。   With the above operation flow, the reference rotation phase and the vertical direction reference length of the printing machine corresponding to the top edge of the target picture are obtained, and the detection range in which the detector 42 should detect the target picture is set.

ステップP337において、CPU10は、検出器42に接続された立ち上がり用ワン・ショット・パルス発生回路36の出力がONになっているかどうか判断する。CPU10は、検出器42に接続された立ち上がり用ワン・ショット・パルス発生回路36の出力がONになっている場合、ステップP338を実行する。また、CPU10は、検出器42に接続された立ち上がり用ワン・ショット・パルス発生回路36の出力がONになっていない場合、ステップP337を再度実行する。   In Step P337, the CPU 10 determines whether or not the output of the rising one-shot pulse generation circuit 36 connected to the detector 42 is ON. When the output of the rising one-shot pulse generation circuit 36 connected to the detector 42 is ON, the CPU 10 executes Step P338. On the other hand, when the output of the rising one-shot pulse generation circuit 36 connected to the detector 42 is not ON, the CPU 10 executes Step P337 again.

ステップP338において、CPU10は、立ち上がり用ラッチ35より、ターゲット絵柄の天方向端検出時の印刷機の回転位相検出用カウンタ39のカウント値を読込み、ターゲット絵柄の天方向端の位置に対応する印刷機の回転位相検出用カウンタのカウント値記憶用メモリM67に記憶する。CPU10は、ステップP338の処理が完了した後、ステップP339を実行する。   In Step P338, the CPU 10 reads the count value of the rotation phase detection counter 39 of the printing machine when the top edge of the target picture is detected from the rising latch 35, and the printing machine corresponding to the position of the top edge of the target picture. Is stored in the count value storage memory M67 of the rotation phase detection counter. After completing the process in Step P338, the CPU 10 executes Step P339.

ステップP339において、CPU10は、検出器42に接続された立ち下がり用ワン・ショット・パルス発生回路37の出力がONになっているかどうか判断する。CPU10は、検出器42に接続された立ち下がり用ワン・ショット・パルス発生回路37の出力がONになっている場合、ステップP340を実行する。また、CPU10は、検出器42に接続された立ち下がり用ワン・ショット・パルス発生回路37の出力がONになっていない場合、ステップP339を再度実行する。   In Step P339, the CPU 10 determines whether or not the output of the falling one-shot pulse generation circuit 37 connected to the detector 42 is ON. When the output of the falling one-shot pulse generation circuit 37 connected to the detector 42 is ON, the CPU 10 executes Step P340. On the other hand, when the output of the falling one-shot pulse generation circuit 37 connected to the detector 42 is not ON, the CPU 10 executes Step P339 again.

ステップP340において、CPU10は、立ち下がり用ラッチ38より、ターゲット絵柄の地方向端検出時の印刷機の回転位相検出用カウンタ39のカウント値を読込み、ターゲット絵柄の地方向端の位置に対応する印刷機の回転位相検出用カウンタ39のカウント値記憶用メモリM68に記憶する。CPU10は、ステップP340の処理が完了した後、ステップP341を実行する。   In step P340, the CPU 10 reads the count value of the rotational phase detection counter 39 of the printing machine when the ground direction end of the target pattern is detected from the falling latch 38, and prints corresponding to the position of the ground direction end of the target pattern. Is stored in the count value storage memory M68 of the counter 39 for detecting the rotational phase of the machine. After completing the process in Step P340, the CPU 10 executes Step P341.

ステップP341において、CPU10は、ターゲット絵柄の地方向端の位置に対応する印刷機の回転位相検出用カウンタ39のカウント値よりターゲット絵柄の天方向端の位置に対応する印刷機の回転位相検出用カウンタ39のカウント値を減算し、ターゲット絵柄の天地方向の長さに対応する印刷機の回転位相検出用カウンタ39のカウント値を求め、ターゲット絵柄の天地方向の長さに対応する印刷機の回転位相検出用カウンタのカウント値記憶用メモリM69に記憶する。CPU10は、ステップP341の処理が完了した後、ステップP342を実行する。   In Step P341, the CPU 10 determines the rotation phase detection counter of the printing press corresponding to the position of the top end of the target pattern from the count value of the rotation phase detection counter 39 of the printing press corresponding to the position of the end of the target pattern in the ground direction. The count value of 39 is subtracted to obtain the count value of the counter 39 for detecting the rotational phase of the printing press corresponding to the vertical length of the target pattern, and the rotational phase of the printing press corresponding to the vertical length of the target pattern. The value is stored in the count value storage memory M69 of the detection counter. After completing the process in Step P341, the CPU 10 executes Step P342.

ステップP342において、CPU10は、ターゲット絵柄の天地方向の基準長さに対応する印刷機の回転位相検出用カウンタのカウント値記憶用メモリM61から、ターゲット絵柄の天地方向の基準長さに対応する印刷機の回転位相検出用カウンタ39のカウント値を読込む。CPU10は、ステップP342の処理が完了した後、ステップP343を実行する。   In Step P342, the CPU 10 determines the printing press corresponding to the reference length of the target pattern in the vertical direction from the count value storage memory M61 of the rotation phase detection counter of the printing machine corresponding to the reference length in the vertical direction of the target pattern. The count value of the rotation phase detection counter 39 is read. After completing the process in Step P342, the CPU 10 executes Step P343.

ステップP343において、CPU10は、ターゲット絵柄の天地方向の長さに対応する印刷機の回転位相検出用カウンタ39のカウント値よりターゲット絵柄の天地方向の基準長さに対応する印刷機の回転位相検出用カウンタ39のカウント値を減算し、ターゲット絵柄の天地方向の長さの差(カウンタのカウント値)を演算し、ターゲット絵柄の天地方向の長さの差(カウンタのカウント値)記憶用メモリM70に記憶する。CPU10は、ステップP343の処理が完了した後、ステップP344を実行する。   In Step P343, the CPU 10 detects the rotational phase of the printing press corresponding to the reference length in the vertical direction of the target pattern from the count value of the rotational phase detection counter 39 of the printing pattern corresponding to the vertical length of the target pattern. The count value of the counter 39 is subtracted to calculate the difference in the length of the target pattern in the vertical direction (count value of the counter), and the difference in the length of the target pattern in the vertical direction (count value of the counter) is stored in the memory M70. Remember. After completing the process in Step P343, the CPU 10 executes Step P344.

ステップP344において、CPU10は、ターゲット絵柄の天地方向の長さの差(カウンタのカウント値)よりターゲット絵柄の天地方向の長さの差(カウンタのカウント値)の絶対値を演算し、ターゲット絵柄の天地方向の長さの差(カウンタのカウント値)の絶対値記憶用メモリM71に記憶する。CPU10は、ステップP344の処理が完了した後、ステップP345を実行する。   In step P344, the CPU 10 calculates the absolute value of the difference in the vertical direction of the target pattern (count value of the counter) from the difference in the vertical direction of the target pattern (count value of the counter). The difference in length in the vertical direction (count value of the counter) is stored in the absolute value storage memory M71. After completing the process in Step P344, the CPU 10 executes Step P345.

ステップP345において、CPU10は、ターゲット絵柄の天地方向の長さの差の許容値(カウンタのカウント値)記憶用メモリM72から、ターゲット絵柄の天地方向の長さの差の許容値(カウンタのカウント値)を読込む。CPU10は、ステップP345の処理が完了した後、ステップP346を実行する。   In Step P345, the CPU 10 reads the allowable difference in the length of the target pattern in the vertical direction (count value of the counter) from the memory M72 for storing the difference in the length of the target pattern in the vertical direction (the count value of the counter). ). After completing the process in Step P345, the CPU 10 executes Step P346.

ステップP346において、CPU10は、ターゲット絵柄の天地方向の長さの差(カウンタのカウント値)の絶対値がターゲット絵柄の天地方向の長さの差の許容値(カウンタのカウント値)以下であるかどうか判断する。CPU10は、ターゲット絵柄の天地方向の長さの差(カウンタのカウント値)の絶対値がターゲット絵柄の天地方向の長さの差の許容値(カウンタのカウント値)以下である場合、ステップP347を実行する。また、CPU10は、ターゲット絵柄の天地方向の長さの差(カウンタのカウント値)の絶対値がターゲット絵柄の天地方向の長さの差の許容値(カウンタのカウント値)以下でない場合、ステップP337を実行する。   In Step P346, the CPU 10 determines whether the absolute value of the difference in the vertical length of the target pattern (counter count value) is less than or equal to the allowable difference in the vertical direction of the target pattern (counter count value). Judge whether. When the absolute value of the difference in the length of the target pattern in the vertical direction (count value of the counter) is equal to or less than the allowable value of the difference in the length of the target pattern in the vertical direction (count value of the counter), the CPU 10 performs Step P347. Run. On the other hand, when the absolute value of the difference in length of the target pattern in the vertical direction (count value of the counter) is not less than the allowable value of the difference in length of the target pattern in the vertical direction (count value of the counter), step P337 Execute.

ステップP347において、CPU10は、ターゲット絵柄の天方向端の位置に対応する印刷機の回転位相検出用カウンタのカウント値記憶用メモリM67から、ターゲット絵柄の天方向端の位置に対応する印刷機の回転位相検出用カウンタ39のカウント値を読込む。CPU10は、ステップP347の処理が完了した後、ステップP348を実行する。   In Step P347, the CPU 10 rotates the printing press corresponding to the position of the top end of the target pattern from the count value storage memory M67 of the counter for detecting the rotational phase of the printing press corresponding to the position of the top end of the target pattern. The count value of the phase detection counter 39 is read. After completing the process in Step P347, the CPU 10 executes Step P348.

ステップP348において、CPU10は、ターゲット絵柄の天方向端の位置に対応する印刷機の回転位相検出用カウンタ39のカウント値よりターゲット絵柄検出時の印刷機の回転位相検出用カウンタ39のカウント値を減算し、印刷機の回転位相検出用カウンタ39のカウント値差を演算し、印刷機の回転位相検出用カウンタのカウント値差記憶用メモリM73に記憶する。CPU10は、ステップP348の処理が完了した後、ステップP349を実行する。   In step P348, the CPU 10 subtracts the count value of the rotation phase detection counter 39 of the printing press at the time of target image detection from the count value of the rotation phase detection counter 39 of the printing press corresponding to the position of the top end of the target design. Then, the count value difference of the rotation phase detection counter 39 of the printing press is calculated and stored in the count value difference storage memory M73 of the rotation phase detection counter of the printing press. After completing the process in Step P348, the CPU 10 executes Step P349.

ステップP349において、CPU10は、印刷機の回転位相検出用カウンタ39のカウント値差より、印刷機の回転位相検出用カウンタ39のカウント値差の絶対値を演算し、印刷機の回転位相検出用カウンタのカウント値差の絶対値記憶用メモリM74を記憶する。CPU10は、ステップP349の処理が完了した後、ステップP350を実行する。   In step P349, the CPU 10 calculates the absolute value of the count value difference of the rotation phase detection counter 39 of the printing press from the count value difference of the rotation phase detection counter 39 of the printing press, and the rotation phase detection counter of the printing press. The absolute value storage memory M74 of the count value difference is stored. After completing the process in Step P349, the CPU 10 executes Step P350.

ステップP350において、CPU10は、許容値(カウンタのカウント値)記憶用メモリM75から、許容値(カウンタのカウント値)を読込む。CPU10は、ステップP350の処理が完了した後、ステップP351を実行する。   In step P350, the CPU 10 reads the allowable value (count value of the counter) from the memory M75 for storing the allowable value (count value of the counter). After completing the process in Step P350, the CPU 10 executes Step P351.

ステップP351において、CPU10は、印刷機の回転位相検出用カウンタ39のカウント値差の絶対値が許容値(カウンタのカウント値)よりも大きいかどうか判断する。CPU10は、印刷機の回転位相検出用カウンタ39のカウント値差の絶対値が許容値(カウンタのカウント値)よりも大きい場合、ステップP352を実行する。また、CPU10は、印刷機の回転位相検出用カウンタ39のカウント値差の絶対値が許容値(カウンタのカウント値)よりも大きくない場合、ステップP370を実行する。   In Step P351, the CPU 10 determines whether or not the absolute value of the count value difference of the rotation phase detection counter 39 of the printing press is larger than an allowable value (count value of the counter). When the absolute value of the count value difference of the rotation phase detection counter 39 of the printing press is larger than the allowable value (count value of the counter), the CPU 10 executes Step P352. On the other hand, when the absolute value of the count value difference of the rotation phase detection counter 39 of the printing press is not larger than the allowable value (count value of the counter), the CPU 10 executes Step P370.

ステップP352において、CPU10は、印刷機の回転位相検出用カウンタのカウント値差−コンペンセータ・ロール位置検出用カウンタのカウント値変換テーブル記憶用メモリM76から、印刷機の回転位相検出用カウンタ39のカウント値差−コンペンセータ・ロール位置検出用カウンタ45のカウント値変換テーブルを読込む。CPU10は、ステップP352の処理が完了した後、ステップP353を実行する。   In step P352, the CPU 10 determines the count value of the rotation phase detection counter 39 of the printing press from the count value conversion table storage memory M76 of the counter for rotation phase detection of the printing press−counter for the compensator / roll position detection. The count value conversion table of the difference-compensator / roll position detection counter 45 is read. After completing the process in Step P352, the CPU 10 executes Step P353.

ステップP353において、CPU10は、印刷機の回転位相検出用カウンタのカウント値差記憶用メモリM73から、印刷機の回転位相検出用カウンタ39のカウント値差を読込む。CPU10は、ステップP353の処理が完了した後、ステップP354を実行する。   In Step P353, the CPU 10 reads the count value difference of the rotation phase detection counter 39 of the printing press from the count value difference storage memory M73 of the rotation phase detection counter of the printing press. After completing the process in Step P353, the CPU 10 executes Step P354.

ステップP354において、CPU10は、印刷機の回転位相検出用カウンタ39のカウント値差−コンペンセータ・ロール位置検出用カウンタ45のカウント値変換テーブルを用いて、印刷機の回転位相検出用カウンタのカウント値差より、補正すべきコンペンセータ・ロール位置検出用カウンタ45のカウント値を求め、補正すべきコンペンセータ・ロール位置検出用カウンタのカウント値記憶用メモリM77に記憶する。CPU10は、ステップP354の処理が完了した後、ステップP355を実行する。   In Step P354, the CPU 10 uses the count value difference of the counter 39 for rotational phase detection of the printing press-the count value conversion table of the counter 45 for detection of the compensator / roll position, and the count value difference of the counter for rotational phase detection of the printing press. Thus, the count value of the compensator / roll position detection counter 45 to be corrected is obtained and stored in the count value storage memory M77 of the compensator / roll position detection counter to be corrected. After completing the process in Step P354, the CPU 10 executes Step P355.

ステップP355において、CPU10は、補正すべきコンペンセータ・ロール位置検出用カウンタ45のカウント値が0であるかどうか判断する。CPU10は、補正すべきコンペンセータ・ロール位置検出用カウンタ45のカウント値が0である場合、ステップP370を実行する。また、CPU10は、補正すべきコンペンセータ・ロール位置検出用カウンタ45のカウント値が0でない場合、ステップP356を実行する。   In Step P355, the CPU 10 determines whether or not the count value of the compensator / roll position detection counter 45 to be corrected is zero. When the count value of the compensator / roll position detection counter 45 to be corrected is 0, the CPU 10 executes Step P370. On the other hand, when the count value of the compensator / roll position detection counter 45 to be corrected is not 0, the CPU 10 executes Step P356.

ステップP356において、CPU10は、コンペンセータ・ロール位置検出用カウンタ45より、カウント値を読込み、コンペンセータ・ロール位置検出用カウンタのカウント値記憶用メモリM78に記憶する。CPU10は、ステップP356の処理が完了した後、ステップP357を実行する。   In Step P356, the CPU 10 reads the count value from the compensator / roll position detection counter 45 and stores it in the count value storage memory M78 of the compensator / roll position detection counter. After completing the process in Step P356, the CPU 10 executes Step P357.

ステップP357において、CPU10は、コンペンセータ・ロール位置検出用カウンタ45のカウント値に補正すべきコンペンセータ・ロール位置検出用カウンタ45のカウント値を加算し、目標とするコンペンセータ・ロール位置検出用カウンタ45のカウント値を演算し、目標とするコンペンセータ・ロール位置検出用カウンタ45のカウント値記憶用メモリM79に記憶する。CPU10は、ステップP357の処理が完了した後、ステップP358を実行する。   In Step P357, the CPU 10 adds the count value of the compensator / roll position detection counter 45 to be corrected to the count value of the compensator / roll position detection counter 45, and counts the target compensator / roll position detection counter 45. The value is calculated and stored in the count value storage memory M79 of the target compensator / roll position detection counter 45. After completing the process in Step P357, the CPU 10 executes Step P358.

ステップP358において、CPU10は、コンペンセータ・ロール位置検出用カウンタ45より、カウント値を読込み、コンペンセータ・ロール位置検出用カウンタ45のカウント値記憶用メモリM78に記憶する。CPU10は、ステップP358の処理が完了した後、ステップP359を実行する。   In Step P358, the CPU 10 reads the count value from the compensator / roll position detection counter 45 and stores it in the count value storage memory M78 of the compensator / roll position detection counter 45. After completing the process in Step P358, the CPU 10 executes Step P359.

ステップP359において、CPU10は、目標とするコンペンセータ・ロール位置検出用カウンタ45のカウント値がコンペンセータ・ロール位置検出用カウンタ45のカウント値よりも大きいかどうか判断する。CPU10は、目標とするコンペンセータ・ロール位置検出用カウンタ45のカウント値がコンペンセータ・ロール位置検出用カウンタ45のカウント値よりも大きい場合、ステップP360を実行する。また、CPU10は、目標とするコンペンセータ・ロール位置検出用カウンタ45のカウント値がコンペンセータ・ロール位置検出用カウンタ45のカウント値よりも大きくない場合、ステップP365を実行する。   In Step P359, the CPU 10 determines whether or not the target count value of the compensator / roll position detection counter 45 is larger than the count value of the compensator / roll position detection counter 45. When the count value of the target compensator / roll position detection counter 45 is larger than the count value of the compensator / roll position detection counter 45, the CPU 10 executes Step P360. On the other hand, when the count value of the target compensator / roll position detection counter 45 is not greater than the count value of the compensator / roll position detection counter 45, the CPU 10 executes Step P365.

ステップP360において、CPU10は、コンペンセータ・ロール位置調整用モータ・ドライバ43に、正転指令を出力する。CPU10は、ステップP360の処理が完了した後、ステップP361を実行する。   In Step P360, the CPU 10 outputs a normal rotation command to the compensator / roll position adjusting motor / driver 43. After completing the process in Step P360, the CPU 10 executes Step P361.

ステップP361において、CPU10は、目標とするコンペンセータ・ロール位置検出用カウンタのカウント値記憶用メモリM79から、目標とするコンペンセータ・ロール位置検出用カウンタ45のカウント値を読込む。CPU10は、ステップP361の処理が完了した後、ステップP362を実行する。   In Step P361, the CPU 10 reads the count value of the target compensator / roll position detection counter 45 from the count value storage memory M79 of the target compensator / roll position detection counter. After completing the process in Step P361, the CPU 10 executes Step P362.

ステップP362において、CPU10は、コンペンセータ・ロール位置検出用カウンタ45より、カウント値を読込み、コンペンセータ・ロール位置検出用カウンタのカウント値記憶用メモリM78に記憶する。CPU10は、ステップP362の処理が完了した後、ステップP363を実行する。   In Step P362, the CPU 10 reads the count value from the compensator / roll position detection counter 45 and stores it in the count value storage memory M78 of the compensator / roll position detection counter. After completing the process in Step P362, the CPU 10 executes Step P363.

ステップP363において、CPU10は、目標とするコンペンセータ・ロール位置検出用カウンタ45のカウント値がコンペンセータ・ロール位置検出用カウンタ45のカウント値と等しいかどうか判断する。CPU10は、目標とするコンペンセータ・ロール位置検出用カウンタ45のカウント値がコンペンセータ・ロール位置検出用カウンタ45のカウント値と等しい場合、ステップP364を実行する。また、CPU10は、目標とするコンペンセータ・ロール位置検出用カウンタ45のカウント値がコンペンセータ・ロール位置検出用カウンタ45のカウント値と等しくない場合、ステップP361を実行する。   In Step P363, the CPU 10 determines whether or not the target count value of the compensator / roll position detection counter 45 is equal to the count value of the compensator / roll position detection counter 45. When the count value of the target compensator / roll position detection counter 45 is equal to the count value of the compensator / roll position detection counter 45, the CPU 10 executes Step P364. On the other hand, when the count value of the target compensator / roll position detection counter 45 is not equal to the count value of the compensator / roll position detection counter 45, the CPU 10 executes Step P361.

ステップP364において、CPU10は、コンペンセータ・ロール位置調整用モータ・ドライバ43への正転指令の出力を停止する。CPU10は、ステップP364の処理が完了した後、ステップP370を実行する。   In Step P364, the CPU 10 stops outputting the normal rotation command to the compensator / roll position adjusting motor / driver 43. After completing the process in Step P364, the CPU 10 executes Step P370.

ステップP365において、CPU10は、コンペンセータ・ロール位置調整用モータ・ドライバ43に、逆転指令を出力する。CPU10は、ステップP365の処理が完了した後、ステップP366を実行する。   In Step P365, the CPU 10 outputs a reverse rotation command to the compensator / roll position adjusting motor / driver 43. After completing the process in Step P365, the CPU 10 executes Step P366.

ステップP366において、CPU10は、目標とするコンペンセータ・ロール位置検出用カウンタのカウント値記憶用メモリM79から、目標とするコンペンセータ・ロール位置検出用カウンタ45のカウント値を読込む。CPU10は、ステップP366の処理が完了した後、ステップP367を実行する。   In Step P366, the CPU 10 reads the count value of the target compensator / roll position detection counter 45 from the count value storage memory M79 of the target compensator / roll position detection counter. After completing the process in Step P366, the CPU 10 executes Step P367.

ステップP367において、CPU10は、コンペンセータ・ロール位置検出用カウンタ45より、カウント値を読込み、コンペンセータ・ロール位置検出用カウンタのカウント値記憶用メモリM78に記憶する。CPU10は、ステップP367の処理が完了した後、ステップP368を実行する。   In Step P367, the CPU 10 reads the count value from the compensator / roll position detection counter 45 and stores it in the count value storage memory M78 of the compensator / roll position detection counter. After completing the process in Step P367, the CPU 10 executes Step P368.

ステップP368において、CPU10は、目標とするコンペンセータ・ロール位置検出用カウンタ45のカウント値がコンペンセータ・ロール位置検出用カウンタ45のカウント値と等しいかどうか判断する。CPU10は、目標とするコンペンセータ・ロール位置検出用カウンタ45のカウント値がコンペンセータ・ロール位置検出用カウンタ45のカウント値と等しい場合、ステップP369を実行する。また、CPU10は、目標とするコンペンセータ・ロール位置検出用カウンタ45のカウント値がコンペンセータ・ロール位置検出用カウンタ45のカウント値と等しくない場合、ステップP366を実行する。   In Step P368, the CPU 10 determines whether or not the target count value of the compensator / roll position detection counter 45 is equal to the count value of the compensator / roll position detection counter 45. When the count value of the target compensator / roll position detection counter 45 is equal to the count value of the compensator / roll position detection counter 45, the CPU 10 executes Step P369. When the count value of the target compensator / roll position detection counter 45 is not equal to the count value of the compensator / roll position detection counter 45, the CPU 10 executes Step P366.

ステップP369において、CPU10は、コンペンセータ・ロール位置調整用モータ・ドライバ43への逆転指令の出力を停止する。CPU10は、ステップP369の処理が完了した後、ステップP370を実行する。   In Step P369, the CPU 10 stops outputting the reverse rotation command to the compensator / roll position adjusting motor / driver 43. After completing the process in Step P369, the CPU 10 executes Step P370.

以上の動作フローによって、検出器42によって実際に検出されたターゲット絵柄の天方向端に対応する印刷機の回転位相とターゲット絵柄の天方向端に対応する印刷機の基準回転位相の差に応じて、コンペンセータ・ロール61の位置が調整され、断裁胴67が各絵柄の間隔の中央部分でウェブ57を断裁するようになる。   According to the above operation flow, according to the difference between the rotational phase of the printing press corresponding to the top end of the target pattern actually detected by the detector 42 and the reference rotational phase of the printing press corresponding to the top end of the target pattern. Then, the position of the compensator roll 61 is adjusted, and the cutting cylinder 67 cuts the web 57 at the central portion of the interval between the patterns.

ステップP370において、CPU10は、カット・オフ・コントロール装置の制御終了スイッチ20がオペレータによりONにされているかどうか判断する。CPU10は、カット・オフ・コントロール装置の制御終了スイッチ20がオペレータによりONにされている場合、処理を終了する。また、CPU10は、カット・オフ・コントロール装置の制御終了スイッチ20がオペレータによりONにされていない場合、ステップP308を実行する。   In Step P370, the CPU 10 determines whether or not the control end switch 20 of the cut-off control device has been turned ON by the operator. When the control end switch 20 of the cut-off control device is turned on by the operator, the CPU 10 ends the process. On the other hand, when the control end switch 20 of the cut-off control device is not turned ON by the operator, the CPU 10 executes Step P308.

以上のように、本発明に係る帯状体断裁位置制御装置及び帯状体断裁位置制御方法によれば、PPF等の印刷絵柄のデジタル情報から、カット・オフ・コントロールに最適なターゲット絵柄を検索し、印刷開始前に帯状体断裁位置制御装置へ検索したターゲット絵柄の座標と特徴とをプリセットし、印刷を開始する前にプリセットされたターゲット絵柄の座標へセンサを移動させることができる。   As described above, according to the strip cutting position control device and the strip cutting position control method according to the present invention, the optimal target pattern for cut-off control is searched from the digital information of the printed pattern such as PPF, It is possible to preset the coordinates and features of the searched target picture to the strip cutting position control device before starting printing, and to move the sensor to the preset target picture coordinates before starting printing.

したがって、本発明に係る帯状体断裁位置制御装置及び帯状体断裁位置制御方法によれば、プリセットされたターゲット絵柄の座標位置へセンサを自動で移動させるため、ターゲット絵柄を見失うことなく断裁位置を制御でき、従来必要であったセンサ位置移動の必要がなくなり調整時間を削減することができる。また、センサの移動忘れ、移動位置の正確さなど人為的なミスがなくなり、センサ位置を変更し直すといった無駄時間を削減することができる。   Therefore, according to the strip cutting position control device and strip cutting position control method according to the present invention, the sensor is automatically moved to the preset coordinate position of the target pattern, so that the cutting position is controlled without losing sight of the target pattern. This eliminates the need to move the sensor position, which was necessary in the past, and can reduce the adjustment time. In addition, there is no human error such as forgetting to move the sensor or the accuracy of the moving position, and it is possible to reduce wasted time such as changing the sensor position again.

本発明は、例えば、輪転印刷機におけるウェブの断裁位置制御装置に利用することが可能である。   The present invention can be used, for example, in a web cutting position control device in a rotary printing press.

本発明の実施例に係る帯状体断裁位置制御装置が適用される印刷機の構成を示した図である。It is the figure which showed the structure of the printing machine with which the strip | belt body cutting position control apparatus which concerns on the Example of this invention is applied. 本発明の実施例に係る検出器の構成を示した図である。It is the figure which showed the structure of the detector which concerns on the Example of this invention. 本発明の実施例に係る絵柄データより各画素のコントラストを予想して求めた3値化データの例を示した図である。It is the figure which showed the example of the ternary data calculated | required by estimating the contrast of each pixel from the pattern data which concern on the Example of this invention. 本発明の実施例に係る判断用データの例を示した図である。It is the figure which showed the example of the data for judgment which concerns on the Example of this invention. 本発明の実施例に係るターゲット絵柄の候補の探索の例を示した図である。It is the figure which showed the example of the search of the candidate of the target pattern which concerns on the Example of this invention. 本発明の実施例に係る帯状体断裁位置制御装置におけるハードウェア構成を示したハードブロック図である。It is the hardware block diagram which showed the hardware constitutions in the strip | belt body cutting position control apparatus which concerns on the Example of this invention. 図6Aに続くハードブロック図である。FIG. 6B is a hardware block diagram following FIG. 6A. 図6Bに続くハードブロック図である。FIG. 6B is a hardware block diagram following FIG. 6B. 本発明の実施例に係る帯状体断裁位置制御装置の動作フロー図である。It is an operation | movement flowchart of the strip | belt-shaped body cutting position control apparatus which concerns on the Example of this invention. 図7Aに続く動作フロー図である。It is an operation | movement flowchart following FIG. 7A. 図7Bに続く動作フロー図である。It is the operation | movement flowchart following FIG. 7B. 図7Cに続く動作フロー図である。FIG. 7B is an operation flow diagram following FIG. 7C. 図8Aに続く動作フロー図である。It is the operation | movement flowchart following FIG. 8A. 図8Aに続く動作フロー図である。It is the operation | movement flowchart following FIG. 8A. 図9Aに続く動作フロー図である。It is an operation | movement flowchart following FIG. 9A. 図9Bに続く動作フロー図である。It is an operation | movement flowchart following FIG. 9B. 図9Cに続く動作フロー図である。It is an operation | movement flowchart following FIG. 9C. 図9Dに続く動作フロー図である。It is an operation | movement flowchart following FIG. 9D. 図10Aに続く動作フロー図である。It is an operation | movement flowchart following FIG. 10A. 図10Bに続く動作フロー図である。It is an operation | movement flowchart following FIG. 10B. 図10Cに続く動作フロー図である。It is an operation | movement flowchart following FIG. 10C. 図10Dに続く動作フロー図である。It is an operation | movement flowchart following FIG. 10D. 図11Aに続く動作フロー図である。It is an operation | movement flowchart following FIG. 11A. 図11Aに続く動作フロー図である。It is an operation | movement flowchart following FIG. 11A. 図11Aに続く動作フロー図である。It is an operation | movement flowchart following FIG. 11A. 図11Dに続く動作フロー図である。It is an operation | movement flowchart following FIG. 11D. 図11Eに続く動作フロー図である。It is an operation | movement flowchart following FIG. 11E. 図12Aに続く動作フロー図である。It is an operation | movement flowchart following FIG. 12A. 図12Bに続く動作フロー図である。It is an operation | movement flowchart following FIG. 12B. 図13Aに続く動作フロー図である。It is the operation | movement flowchart following FIG. 13A. 図13Bに続く動作フロー図である。It is an operation | movement flowchart following FIG. 13B. 図13Cに続く動作フロー図である。It is an operation | movement flowchart following FIG. 13C. 従来のカット・オフ・コントロール装置におけるレジスター・マークの検出器の例を示した図である。It is the figure which showed the example of the detector of the register mark in the conventional cut-off control apparatus.

符号の説明Explanation of symbols

42 検出器
44 モータ
50 印刷機
51 給紙部
52 印刷部
53 乾燥部
54 ウェブパス部
55 折部
56 スタンド
57 ウェブ
58 ガイドローラ群
59 絵柄
61 コンペンセータ・ロール
63 制御部
64 三角フォーマ
65 ガイドローラ
66 ニップローラ
67 断裁胴
42 Detector 44 Motor 50 Printing Machine 51 Paper Feeding Unit 52 Printing Unit 53 Drying Unit 54 Web Passing Unit 55 Folding Unit 56 Stand 57 Web 58 Guide Roller Group 59 Picture 61 Compensator Roll 63 Control Unit 64 Triangular Former 65 Guide Roller 66 Nip Roller 67 Cutting cylinder

Claims (2)

帯状体に絵柄を印刷する印刷手段と、
前記印刷手段によって印刷された絵柄を検出する検出手段と、
前記検出手段を帯状体の幅方向に移動させる検出手段移動手段と、
前記印刷手段で印刷された前記帯状体を、帯状体搬送方向と直行する方向に断裁する断裁手段と、
前記検出手段が前記絵柄を検出した時の前記断裁手段の回転位相を求め、求めた回転位相と予め定められた基準の回転位相を比較し、比較した結果に応じて前記断裁手段による前記帯状体の断裁位置を調整する制御手段と
を備えた帯状体断裁位置制御装置において、
前記制御手段が、
第1のしきい値と第1のしきい値より大きい第2のしきい値を記憶し、
前記印刷手段で印刷される絵柄の画像データのうち、第1のしきい値より小さい画像データの第1の画素の位置を求めると共に、
前記印刷手段で印刷される絵柄の画像データのうち、第2のしきい値より大きい画像データの第2の画素の位置を求め、
前記第1の画素の位置及び前記第2の画素の位置より、前記印刷手段で印刷される絵柄の画像データ内の基準とすべき絵柄を選択し、
前記基準とすべき絵柄の位置より基準とすべき前記断裁手段の回転位相を求め、
前記基準とすべき前記断裁手段の回転位相を前記予め定められた基準の回転位相とすると共に、
前記基準とすべき絵柄の位置より前記検出手段の帯状体の幅方向の位置を求め、前記検出手段移動手段を制御し、
前記第1の画素の位置及び前記第2の画素の位置より、前記第2の画素の位置から帯状体搬送方向に平行な方向の第1の方向に予め定められた第1の数の前記第1の画素の位置が連続して並んでいる第2の画素の位置を求め、第3の画素の位置とし、
前記第3の画素の位置より、前記第3の画素の位置から帯状体搬送方向と直交する方向に予め定められた第2の数の前記第3の画素の位置が連続して並んでいる第3の画素の位置を求め、第4の画素の位置とし、
前記第4の画素の位置のうち、前記第4の画素の位置から帯状体搬送方向上流側に連続して並んでいる前記第2の画素の位置の数を数え、第3の数とし、
前記第4の画素の位置のうち、前記第4の画素の位置から帯状体搬送方向と直交する方向に第2の数の範囲内で、帯状体搬送方向に平行な方向の第1の方向に第3の数の範囲内が、前記第2の画素の位置である前記第4の画素の位置を求め、第5の画素の位置とし、
前記第5の画素の位置のうち、前記第5の画素の位置から帯状体搬送方向と直交する方向に第2の数の範囲内で、帯状体搬送方向に平行な方向の第1の方向と反対の方向に第4の数の範囲内が、前記第1の画素の位置である範囲を求め、前記基準とすべき絵柄とする
ことを特徴とする帯状体断裁位置制御装置。
Printing means for printing a pattern on the belt;
Detecting means for detecting a picture printed by the printing means;
Detecting means moving means for moving the detecting means in the width direction of the belt,
Cutting means for cutting the strip printed by the printing means in a direction perpendicular to the strip transport direction;
When the detecting means detects the pattern, the rotational phase of the cutting means is obtained, the obtained rotational phase is compared with a predetermined reference rotational phase, and the strip by the cutting means according to the comparison result. A strip cutting position control device comprising a control means for adjusting the cutting position of
The control means is
Storing a first threshold and a second threshold greater than the first threshold;
While obtaining the position of the first pixel of the image data smaller than the first threshold among the image data of the pattern printed by the printing means,
Obtaining the position of the second pixel of the image data larger than the second threshold among the image data of the pattern printed by the printing means;
From the position of the first pixel and the position of the second pixel, select a pattern to be a reference in the image data of the pattern printed by the printing unit,
Obtain the rotation phase of the cutting means to be the reference from the position of the pattern to be the reference,
The rotational phase of the cutting means to be the reference is set as the predetermined reference rotational phase,
Obtain the position in the width direction of the band of the detection means from the position of the pattern to be the reference, control the detection means moving means ,
From the position of the first pixel and the position of the second pixel, a first number of the first number determined in advance in a first direction parallel to the strip transporting direction from the position of the second pixel. The position of the second pixel in which the positions of one pixel are continuously arranged is obtained, and is set as the position of the third pixel.
A predetermined number of third pixel positions are successively arranged from the position of the third pixel in a direction orthogonal to the strip conveyance direction from the position of the third pixel. 3 pixel position is determined as the fourth pixel position,
Among the positions of the fourth pixels, the number of the positions of the second pixels that are continuously arranged from the position of the fourth pixels to the upstream side in the belt conveyance direction is counted, and the third number is obtained.
Among the positions of the fourth pixels, within a second number range from the position of the fourth pixels in a direction orthogonal to the band transport direction, in a first direction parallel to the strip transport direction Within the third number range, the position of the fourth pixel, which is the position of the second pixel, is determined as the position of the fifth pixel,
A first direction in a direction parallel to the strip transport direction within a second number of positions of the fifth pixel in a direction orthogonal to the strip transport direction from the position of the fifth pixel; A strip-shaped body cutting position control device characterized in that a range in which the fourth number in the opposite direction is the position of the first pixel is obtained and used as the reference pattern .
帯状体に絵柄を印刷する印刷手段と、
前記印刷手段によって印刷された絵柄を検出する検出手段と、
前記検出手段を帯状体の幅方向に移動させる検出手段移動手段と、
前記印刷手段で印刷された前記帯状体を、帯状体搬送方向と直行する方向に断裁する断裁手段と、
前記検出手段が前記絵柄を検出した時の前記断裁手段の回転位相を求め、求めた回転位相と予め定められた基準の回転位相を比較し、比較した結果に応じて前記断裁手段による前記帯状体の断裁位置を調整する制御手段と
を備えた帯状体断裁位置制御装置における帯状体断裁位置制御方法において、
第1のしきい値と第1のしきい値より大きい第2のしきい値を記憶し、
前記印刷手段で印刷される絵柄の画像データのうち、第1のしきい値より小さい画像データの第1の画素の位置を求めると共に、
前記印刷手段で印刷される絵柄の画像データのうち、第2のしきい値より大きい画像データの第2の画素の位置を求め、
前記第1の画素の位置及び前記第2の画素の位置より、前記印刷手段で印刷される絵柄の画像データ内の基準とすべき絵柄を選択し、
前記基準とすべき絵柄の位置より基準とすべき前記断裁手段の回転位相を求め、
前記基準とすべき前記断裁手段の回転位相を前記予め定められた基準の回転位相とすると共に、
前記基準とすべき絵柄の位置より前記検出手段の帯状体の幅方向の位置を求め、前記検出手段移動手段を制御し、
前記第1の画素の位置及び前記第2の画素の位置より、前記第2の画素の位置から帯状体搬送方向に平行な方向の第1の方向に予め定められた第1の数の前記第1の画素の位置が連続して並んでいる第2の画素の位置を求め、第3の画素の位置とし、
前記第3の画素の位置より、前記第3の画素の位置から帯状体搬送方向と直交する方向に予め定められた第2の数の前記第3の画素の位置が連続して並んでいる第3の画素の位置を求め、第4の画素の位置とし、
前記第4の画素の位置のうち、前記第4の画素の位置から帯状体搬送方向上流側に連続して並んでいる前記第2の画素の位置の数を数え、第3の数とし、
前記第4の画素の位置のうち、前記第4の画素の位置から帯状体搬送方向と直交する方向に第2の数の範囲内で、帯状体搬送方向に平行な方向の第1の方向に第3の数の範囲内が、前記第2の画素の位置である前記第4の画素の位置を求め、第5の画素の位置とし、
前記第5の画素の位置のうち、前記第5の画素の位置から帯状体搬送方向と直交する方向に第2の数の範囲内で、帯状体搬送方向に平行な方向の第1の方向と反対の方向に第4の数の範囲内が、前記第1の画素の位置である範囲を求め、前記基準とすべき絵柄とする
ことを特徴とする帯状体断裁位置制御方法。
Printing means for printing a pattern on the belt;
Detecting means for detecting a picture printed by the printing means;
Detecting means moving means for moving the detecting means in the width direction of the belt,
Cutting means for cutting the strip printed by the printing means in a direction perpendicular to the strip transport direction;
When the detecting means detects the pattern, the rotational phase of the cutting means is obtained, the obtained rotational phase is compared with a predetermined reference rotational phase, and the strip by the cutting means according to the comparison result. In the strip cutting position control method in the strip cutting position control device comprising a control means for adjusting the cutting position of
Storing a first threshold and a second threshold greater than the first threshold;
While obtaining the position of the first pixel of the image data smaller than the first threshold among the image data of the pattern printed by the printing means,
Obtaining the position of the second pixel of the image data larger than the second threshold among the image data of the pattern printed by the printing means;
From the position of the first pixel and the position of the second pixel, select a pattern to be a reference in the image data of the pattern printed by the printing unit,
Obtain the rotation phase of the cutting means to be the reference from the position of the pattern to be the reference,
The rotational phase of the cutting means to be the reference is set as the predetermined reference rotational phase,
Obtain the position in the width direction of the band of the detection means from the position of the pattern to be the reference, control the detection means moving means ,
From the position of the first pixel and the position of the second pixel, a first number of the first number determined in advance in a first direction parallel to the strip transporting direction from the position of the second pixel. The position of the second pixel in which the positions of one pixel are continuously arranged is obtained, and is set as the position of the third pixel.
A predetermined number of third pixel positions are successively arranged from the position of the third pixel in a direction orthogonal to the strip conveyance direction from the position of the third pixel. 3 pixel position is determined as the fourth pixel position,
Among the positions of the fourth pixels, the number of the positions of the second pixels that are continuously arranged from the position of the fourth pixels to the upstream side in the belt conveyance direction is counted, and the third number is obtained.
Among the positions of the fourth pixels, within a second number range from the position of the fourth pixels in a direction orthogonal to the band transport direction, in a first direction parallel to the strip transport direction Within the third number range, the position of the fourth pixel, which is the position of the second pixel, is determined as the position of the fifth pixel,
A first direction in a direction parallel to the strip transport direction within a second number of positions of the fifth pixel in a direction orthogonal to the strip transport direction from the position of the fifth pixel; A strip-shaped body cutting position control method characterized in that a range in which the fourth number is in the opposite direction is the position of the first pixel is obtained and used as the reference pattern .
JP2008239600A 2007-09-19 2008-09-18 Strip-shaped body cutting position control device and strip-shaped body cutting position control method Expired - Fee Related JP5399032B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008239600A JP5399032B2 (en) 2007-09-19 2008-09-18 Strip-shaped body cutting position control device and strip-shaped body cutting position control method

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2007241991 2007-09-19
JP2007241991 2007-09-19
JP2008239600A JP5399032B2 (en) 2007-09-19 2008-09-18 Strip-shaped body cutting position control device and strip-shaped body cutting position control method

Publications (3)

Publication Number Publication Date
JP2009090456A JP2009090456A (en) 2009-04-30
JP2009090456A5 JP2009090456A5 (en) 2011-10-20
JP5399032B2 true JP5399032B2 (en) 2014-01-29

Family

ID=40662948

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008239600A Expired - Fee Related JP5399032B2 (en) 2007-09-19 2008-09-18 Strip-shaped body cutting position control device and strip-shaped body cutting position control method

Country Status (1)

Country Link
JP (1) JP5399032B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109333626A (en) * 2018-12-17 2019-02-15 天津金宝印刷有限公司 A kind of printing paper cutting processing device
CN112140709B (en) * 2020-10-09 2021-06-18 肇庆市长盛纸品有限公司 Environment-friendly printing and drying integrated machine based on green printing technology

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ES2030491T3 (en) * 1988-02-19 1992-11-01 Asea Brown Boveri Ag PROCEDURE FOR THE DETERMINATION OF THE POSITION OF CARTE FOR PRINTING MACHINES.
JP3053670B2 (en) * 1991-07-11 2000-06-19 大日本印刷株式会社 Cutting position control device
JP3278207B2 (en) * 1992-09-25 2002-04-30 大日本印刷株式会社 Image inspection equipment
JP4945847B2 (en) * 2001-03-30 2012-06-06 大日本印刷株式会社 Cutting position control system

Also Published As

Publication number Publication date
JP2009090456A (en) 2009-04-30

Similar Documents

Publication Publication Date Title
WO2021137505A1 (en) Display apparatus
WO2017155341A1 (en) Apparatus and method for controlling auto focus of camera module
WO2016024730A1 (en) Refrigerator and controlling method thereof
WO2010082800A2 (en) Portable display device
WO2020145718A1 (en) Display substrate
WO2015183050A1 (en) Optical tracking system, and method for calculating posture and location of marker part in optical tracking system
WO2017126832A1 (en) Image forming apparatus
JP2009018565A (en) Liquid transfer member position adjusting method and apparatus of rotary stencil-printing plate liquid-coating machine
WO2021215589A1 (en) Ocr-based document analysis system and method
JP5399032B2 (en) Strip-shaped body cutting position control device and strip-shaped body cutting position control method
JP5726246B2 (en) Strip-shaped body cutting position control device and strip-shaped body cutting position control method
CN101259776A (en) Contact-pressure adjusting method and contact-pressure adjusting system for liquid application machine
EP2014466A2 (en) Liquid transfer member position adjusting method and apparatus of rotary stencil printing plate liquid coating machine
EP2002977A2 (en) Liquid transfer member pressing force adjusting method and apparatus of rotary stencil printing plate liquid coating machine
EP3365731A1 (en) Image forming apparatus
JP5394646B2 (en) Method and apparatus for adjusting pressing force of liquid transfer member of rotary stencil liquid coating machine
JP5457341B2 (en) Color adjustment method for printed matter
WO2022149739A1 (en) Electronic device including hinge structure
CN101323200A (en) Liquid transfer member pressing force adjusting method and apparatus of rotary stencil printing plate liquid coating machine
US6157684A (en) One bit matched filter with low complexity and high speed
EP2002978B2 (en) Liquid transfer member pressing force adjusting method and apparatus of rotary stencil printing plate liquid coating machine
WO2022097854A1 (en) Block type vehicle body assembly structure
WO2023121375A1 (en) Calibration device for display and personal computer having same
WO2024147515A1 (en) Interface device integrally provided with cover
JP5416818B2 (en) Printing stop method and apparatus for web-fed rotary printing press

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110901

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110901

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: 20121005

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20130507

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130807

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20130816

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: 20131001

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131023

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees