JP5672889B2 - Drawing apparatus, laser irradiation apparatus, drawing control method, drawing control program, and recording medium recording the same - Google Patents

Drawing apparatus, laser irradiation apparatus, drawing control method, drawing control program, and recording medium recording the same Download PDF

Info

Publication number
JP5672889B2
JP5672889B2 JP2010208579A JP2010208579A JP5672889B2 JP 5672889 B2 JP5672889 B2 JP 5672889B2 JP 2010208579 A JP2010208579 A JP 2010208579A JP 2010208579 A JP2010208579 A JP 2010208579A JP 5672889 B2 JP5672889 B2 JP 5672889B2
Authority
JP
Japan
Prior art keywords
line segment
continuous
waiting time
order
speed
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
JP2010208579A
Other languages
Japanese (ja)
Other versions
JP2011104991A (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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2010208579A priority Critical patent/JP5672889B2/en
Publication of JP2011104991A publication Critical patent/JP2011104991A/en
Application granted granted Critical
Publication of JP5672889B2 publication Critical patent/JP5672889B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Electronic Switches (AREA)
  • Laser Beam Processing (AREA)
  • Image Generation (AREA)

Description

本発明は、描画装置、レーザ照射装置、描画制御方法、描画制御プログラム、及びこれを記録した記録媒体に関する。 The present invention relates to a drawing apparatus, a laser irradiation apparatus , a drawing control method, a drawing control program, and a recording medium recording the same.

金属、プラスチック、感熱紙等の媒体にレーザ光を照射して加熱することで、媒体に文字、数字、又は記号等を書き込む技術を活用したレーザ照射装置(レーザマーカ、又はレーザマーキング装置)が市販されている。   Laser irradiation devices (laser markers or laser marking devices) that use technology to write letters, numbers, symbols, etc. on a medium by irradiating a medium such as metal, plastic, or thermal paper with laser light are heated. ing.

レーザ照射装置のレーザ光源としてガスレーザ、固体レーザ、液体レーザ、半導体レーザ等を用いてレーザ光を照射することにより、文字等を金属、プラスチック、感熱紙等の媒体に書き込むことができる。   By irradiating a laser beam using a gas laser, a solid-state laser, a liquid laser, a semiconductor laser, or the like as a laser light source of the laser irradiation apparatus, characters or the like can be written on a medium such as metal, plastic, or thermal paper.

金属やプラスチックは、レーザ光を照射して加熱することにより、削ったり焦がしたりすることで描画が行われる。一方、感熱紙は、熱により変色する性質をもっており、レーザ光照射による加熱で記録層が発色することで描画が行われる。   Metals and plastics are drawn by shaving or scorching by irradiating with laser light and heating. On the other hand, thermal paper has the property of being discolored by heat, and drawing is performed when the recording layer is colored by heating with laser light irradiation.

感熱紙は、金属やプラスチックの媒体に比べて取り扱いが容易であるため、例えば、物流等の分野で物品の宛先や物品名を印字する媒体として広く用いられている。   Since thermal paper is easier to handle than metal and plastic media, it is widely used as a medium for printing the address of an article and the name of an article in the field of logistics, for example.

そして、このような感熱紙でも書き込み、消去を繰り返し行えるリライタブルのものが登場してきた。例えば、物流で利用する際には、コンテナに媒体を貼ったまま書き込み、消去ができることが望ましい。このため、フレキシブルジョイントにより構成された複数のレンズ系の一端から入射したレーザ光による画像を他端まで伝達するリレーレンズ系を用いて、非接触でレーザ光を媒体に照射して発熱させることで文字等を描く装置が提案されている(例えば、特許文献1参照)。   And rewritable paper that can be written and erased even with such thermal paper has appeared. For example, when used in physical distribution, it is desirable that writing and erasing can be performed with a medium attached to a container. For this reason, by using a relay lens system that transmits an image by laser light incident from one end of a plurality of lens systems configured by a flexible joint to the other end, the medium is irradiated with laser light in a non-contact manner to generate heat. An apparatus for drawing characters and the like has been proposed (see, for example, Patent Document 1).

また、レーザによる画像形成方法としては、1つの原画像データを複数のラインに分割して、ライン毎に感光ドラムにレーザを照射する画像形成方法がある(例えば、特許文献2参照)。   As an image forming method using a laser, there is an image forming method in which one original image data is divided into a plurality of lines and a photosensitive drum is irradiated with a laser for each line (see, for example, Patent Document 2).

ところで、このサーマルリライタブル媒体は、ある温度の熱で発色が消去され、さらに高熱をかけると発色する性質を持っている。しかし、過大な熱負荷を加えるとサーマルリライタブル媒体が変質し、媒体の寿命が短くなったり、消去が完全に行えなくなったりするなどの劣化が現れやすくなる。   By the way, this thermal rewritable medium has such a property that the color development is erased by heat at a certain temperature and the color develops when further heat is applied. However, when an excessive heat load is applied, the thermal rewritable medium changes in quality, and deterioration such as the life of the medium being shortened or being unable to be completely erased easily occurs.

ここでサーマルリライタブル媒体に文字を描画することを考える。文字のストロークをレーザでなぞることで発熱し文字が媒体上に浮き上がる。図1は、サーマルリライタブル媒体にレーザで描画された文字の一例を示す。図1の文字は例えば数字の「7」を変形したものであるが、交点1でストロークが交差している。ストローク同士が交差していると、直前に描いたストロークの余熱があるうちに、再度レーザがあたることになり、結果として交点1がより高熱になってしまうため、サーマルリライタブル媒体に悪影響が出てしまう。   Consider drawing characters on a thermal rewritable medium. By tracing the strokes of characters with a laser, heat is generated and the characters float on the medium. FIG. 1 shows an example of characters drawn with a laser on a thermal rewritable medium. The character in FIG. 1 is, for example, a modification of the number “7”, but the strokes intersect at intersection 1. If the strokes intersect, the laser will strike again while there is residual heat of the stroke drawn immediately before, and as a result, the intersection 1 will become hotter, which will adversely affect the thermal rewritable medium. End up.

また、交点がなくても数字の「7」では折り返し部分2が存在するが、レーザの照射方向を制御するミラーの慣性の影響により、折り返し部分2では比較的長時間折り返し点付近にレーザが照射されるのでやはり高熱になってしまい、サーマルリライタブル媒体に悪影響をもたらす。   Further, even if there is no intersection point, the folded portion 2 exists at the number “7”, but due to the inertia of the mirror that controls the laser irradiation direction, the folded portion 2 is irradiated with the laser near the folding point for a relatively long time. As a result, the temperature becomes high and the thermal rewritable medium is adversely affected.

そこで、レーザを重複して照射することを回避する技術が提案されている(例えば、特許文献3,4参照。)。特許文献3には、レーザで描画するに際し、線が重複する箇所は、前に描いた線を通り越してから次の線を描くようにレーザを走査する記録方法が開示されている。特許文献4には、レーザの描画線が交差する場合に、交差する描画点に照射されるレーザのパワー及び照射時間の少なくとも一方を少なくするように制御する記録消去装置が開示されている。   Therefore, techniques for avoiding redundant irradiation of lasers have been proposed (see, for example, Patent Documents 3 and 4). Patent Document 3 discloses a recording method in which, when drawing with a laser, a laser is scanned so that a portion where a line overlaps passes a previously drawn line and then the next line is drawn. Patent Document 4 discloses a recording / erasing apparatus that performs control so as to reduce at least one of the laser power and the irradiation time applied to the intersecting drawing points when the laser drawing lines intersect.

上述のように、特許文献1乃至4には、レーザを重複して照射することを回避する技術が開示されている。   As described above, Patent Documents 1 to 4 disclose techniques for avoiding redundant laser irradiation.

また、特開2002−224863号公報には、レーザの重複照射を回避するためには、レーザ照射(描画)と、レーザ非照射の状態で次の描画位置までジャンプ(空走)することが頻繁に必要になるため、描画順を調整することにより、空走距離が最短になる描画順を決定するレーザマーキング装置が開示されている。   Japanese Patent Application Laid-Open No. 2002-224863 frequently jumps (runs idle) to the next drawing position in a state of laser irradiation (drawing) and non-laser irradiation in order to avoid laser overlapping irradiation. Therefore, there has been disclosed a laser marking device that determines the drawing order that minimizes the free running distance by adjusting the drawing order.

レーザマーキング装置は、ガルバノミラーを走査するガルバノスキャナを含み、描画しようとする文字等を表す座標データを用いてガルバノミラーを走査することにより、レーザ光を照射して描画を行う。   The laser marking device includes a galvano scanner that scans a galvano mirror, and performs drawing by irradiating a laser beam by scanning the galvano mirror using coordinate data representing characters or the like to be drawn.

ところで、一般的に、ガルバノミラーの慣性による挙動遅れや制御遅れ等が存在するため、制御装置からガルバノスキャナに座標データを入力しても、レーザ照射点(ガルバノミラーの位置)に追従遅れが生じる。   By the way, since there is generally a behavioral delay or a control delay due to the inertia of the galvanometer mirror, even if coordinate data is input from the control device to the galvanometer scanner, a tracking delay occurs at the laser irradiation point (galvanometer mirror position). .

また、上述のような追従遅れは、レーザマーキング装置のようにレーザ照射を行う装置に限らず、X−Yプロッタのように2軸方向にヘッド等を走査する描画装置においても同様に生じる。   Further, the follow-up delay as described above is not limited to an apparatus that performs laser irradiation such as a laser marking apparatus, but also occurs in a drawing apparatus that scans a head or the like in a biaxial direction such as an XY plotter.

しかしながら、このような追従遅れを考慮して描画順を最適化することは行われていなかった。   However, the drawing order has not been optimized in consideration of such a follow-up delay.

そこで、描画装置の追従遅れを考慮して描画順を最適化する描画順決定装置、描画制御装置、レーザ照射装置、最適化フォントDB、描画制御方法、描画制御プログラム、及びこれを記録した記録媒体を提供することを目的とする。   Therefore, a drawing order determination device, drawing control device, laser irradiation device, optimized font DB, drawing control method, drawing control program, and recording medium on which this is recorded, which optimizes the drawing order in consideration of the tracking delay of the drawing device The purpose is to provide.

本発明の実施の形態の一観点の描画装置は、一又は複数の連続的な線分と、他の一又は複数の連続的な線分を描画する間に描画を行わない空走区間を設け、媒体に一又は複数の線分を含む描画対象を描画する描画順を決定する描画装置であって、前記描画対象を描画するための描画情報に基づき、前記媒体に前記描画対象を描画する描画位置を決定する描画位置決定手段と、前記描画情報又は前記描画位置に基づき、前記描画対象に含まれる線分と、前記線分に連続する前記空走区間を表す空走線分との方向変化度合を演算する方向変化度合演算手段と、前記方向変化度合に基づいて、前記一又は複数の連続的な線分の描画終了点において、当該線分に連続する前記空走線分の空走を待機する第1待機時間、又は、前記空走線分に連続する前記一又は複数の連続的な線分の描画開始点において、当該空走線分に連続する前記線分の描画を待機する第2待機時間を設定する待機時間設定手段と、描画対象の描画時間が短くなるように描画順を決定する描画順決定手段とを含む。 A drawing apparatus according to an embodiment of the present invention provides one or a plurality of continuous line segments and a free running section in which drawing is not performed while another one or more continuous line segments are drawn. A drawing apparatus for determining a drawing order for drawing a drawing target including one or more line segments on a medium, wherein the drawing target is drawn on the medium based on drawing information for drawing the drawing target Direction change between a drawing position determining means for determining a position, a line segment included in the drawing object, and a free running line segment representing the free running section that is continuous with the line segment based on the drawing information or the drawing position Based on the direction change degree calculating means for calculating the degree, and at the drawing end point of the one or more continuous line segments, the free running line segment that is continuous with the line segment is calculated. First waiting time to wait, or before continuing to the idle running line In the drawing start point of one or more continuous segments, the standby time setting means for setting the second waiting time to wait for drawing the line segment that is continuous with the empty run segment, the drawing time of the object Drawing order determining means for determining the drawing order so as to be shorter .

また、前記待機時間設定手段は、前記描画終了点を含む線分と、当該線分に連続する前記空走線分との方向変化度合が所定度合い以上の場合に、前記第1待機時間を設定してもよい。   Further, the waiting time setting means sets the first waiting time when the direction change degree between the line segment including the drawing end point and the idle line segment continuing to the line segment is equal to or greater than a predetermined degree. May be.

また、前記待機時間設定手段は、前記描画開始点を含む線分と、前記空走線分との方向変化度合が所定度合い以上の場合に、前記第2待機時間を設定してもよい。   The waiting time setting means may set the second waiting time when the direction change degree between the line segment including the drawing start point and the idle line segment is not less than a predetermined level.

また、前記描画順決定手段は、前記描画対象を描画するための描画時間が短くなるように、前記第1待機時間又は前記前記第2待機時間を反映した前記描画対象の描画順を決定してもよい。 Further, the drawing order determining means such that said writing time for drawing the drawing object becomes shorter, and determines the drawing order of said drawing object that reflects the first waiting time or the said second waiting time Also good.

また、前記描画位置決定手段が決定した描画位置に基づき、描画対象に含まれる連続する線分群として扱う線分群を生成する線分群生成手段をさらに含み、前記描画順決定手段は、前記線分群生成手段が生成する線分群を描画するための描画時間が短くなるように、前記線分群の描画順を決定してもよい。 The image processing apparatus further includes line segment group generation means for generating a line segment group to be treated as a continuous line segment group included in the drawing target based on the drawing position determined by the drawing position determination means, and the drawing order determination means includes as writing time for drawing the line segment group is shortened to the generation means for generating, it may determine the drawing order of the line segment group.

また、前記待機時間設定手段によって前記第2待機時間が設定された場合に、前記一又は複数の線分を描画する描画速度よりも、前記空走区間を空走する空走速度を高く設定する速度設定手段をさらに含み、前記描画順決定手段は、前記速度設定手段によって設定された前記描画速度及び前記空走速度が反映された前記描画順を決定してもよい。   In addition, when the second waiting time is set by the waiting time setting means, a free running speed for running in the free running section is set higher than a drawing speed for drawing the one or more line segments. The drawing order determining unit may further include a speed setting unit, and the drawing order determining unit may determine the drawing order in which the drawing speed and the idling speed set by the speed setting unit are reflected.

また、前記空走区間の距離が所定距離以上の場合に、前記空走区間を空走する空走速度を前記一又は複数の線分を描画する描画速度よりも高く設定する速度設定手段をさらに含んでもよい。   In addition, when the distance of the idle running section is equal to or greater than a predetermined distance, a speed setting unit that sets an idle running speed idle in the idle running section higher than a drawing speed for drawing the one or more line segments is further provided. May be included.

また、前記決定された前記描画位置及び前記描画順を反映した描画命令を生成する描画命令生成手段をさらにんでもよい The drawing commands may also further including do the drawing command generation means for generating a reflecting said drawing position and the drawing order of the determined.

本発明の実施の形態の一観点のレーザ照射装置は、レーザを照射するレーザ発振器と、前記レーザ発振器が照射するレーザの照射方向を制御する方向制御ミラーと、前記方向制御ミラーを駆動する方向制御モータと、前記描画命令に基づき、前記レーザ発振器の照射出力の制御、及び前記方向制御モータの駆動制御を行う、前記に記載の描画装置とを有する。 A laser irradiation apparatus according to an embodiment of the present invention includes a laser oscillator that irradiates a laser, a direction control mirror that controls an irradiation direction of the laser irradiated by the laser oscillator, and a direction control that drives the direction control mirror. The above-described drawing apparatus that controls the irradiation output of the laser oscillator and the drive control of the direction control motor based on the drawing command.

本発明の実施の形態の一観点の描画制御方法は、一又は複数の連続的な線分と、他の一又は複数の連続的な線分を描画する間に描画を行わない空走区間を設け、媒体に一又は複数の線分を含む描画対象を描画する描画順をコンピュータが決定する描画制御方法であって、前記コンピュータ、前記描画対象を描画するための描画情報に基づき、前記媒体に前記描画対象を描画する描画位置を決定、前記描画情報又は前記描画位置に基づき、前記描画対象に含まれる線分と、前記線分に連続する前記空走区間を表す空走線分との方向変化度合を演算、前記方向変化度合に基づいて、前記一又は複数の連続的な線分の描画終了点において、当該線分に連続する前記空走線分の空走を待機する第1待機時間、又は、前記空走線分に連続する前記一又は複数の連続的な線分の描画開始点において、当該空走線分に連続する前記線分の描画を待機する第2待機時間を設定し、描画対象の描画時間が短くなるように描画順を決定するA drawing control method according to an aspect of an embodiment of the present invention includes an idle running section in which drawing is not performed while drawing one or more continuous line segments and another one or more continuous line segments. A drawing control method in which a computer determines a drawing order for drawing a drawing target including one or a plurality of line segments on the medium, wherein the computer is based on drawing information for drawing the drawing target. wherein determining the drawing position to draw the drawing object to, based on the drawing information or the drawing position, the line segments included in the drawing object, and an empty run segment representing the empty run section continuous with the line calculates the direction change degree, on the basis of the direction change degree, the drawing end point of the one or more continuous segments, first waits for an empty run of the idling-run segment that is continuous with the line segment 1 waiting time or the above continuous running line Or in a plurality of successive segments of the drawing start point, and sets the second standby time to wait for drawing the line segment that is continuous with the idling-run line, drawn as drawing time of the object becomes shorter order To decide .

本発明の実施の形態の一観点の描画制御プログラムは、コンピュータに、一又は複数の連続的な線分と、他の一又は複数の連続的な線分を描画する間に描画を行わない空走区間を設け、媒体に一又は複数の線分を含む描画対象を描画する描画順を決定する描画順決定処理を実行させるための描画制御プログラムであって、前記コンピュータが、前記描画対象を描画するための描画情報に基づき、前記媒体に前記描画対象を描画する描画位置を決定、前記描画情報又は前記描画位置に基づき、前記描画対象に含まれる線分と、前記線分に連続する前記空走区間を表す空走線分との方向変化度合を演算し、前記方向変化度合に基づいて、前記一又は複数の連続的な線分の描画終了点において、当該線分に連続する前記空走線分の空走を待機する第1待機時間、又は、前記空走線分に連続する前記一又は複数の連続的な線分の描画開始点において、当該空走線分に連続する前記線分の描画を待機する第2待機時間を設定し、描画対象の描画時間が短くなるように描画順を決定するA drawing control program according to an aspect of an embodiment of the present invention provides an empty space that does not perform drawing while drawing one or more continuous line segments and another one or more continuous line segments on a computer. the run sections provided, a rendering control program for executing the drawing order determining process of determining a drawing order to draw a drawing object that includes one or more line segments on the medium, the computer drawing the drawing target A drawing position for drawing the drawing target on the medium is determined based on the drawing information for performing, and based on the drawing information or the drawing position, a line segment included in the drawing target and the line segment continuous to the line segment are determined. The direction change degree with the free running line segment representing the free running section is calculated, and the sky that continues to the line segment at the drawing end point of the one or more continuous line segments is calculated based on the direction change degree. Wait for a free run 1 waiting time, or the 2nd waiting time which waits for the drawing of the said line segment which continues to the said idle line in the drawing start point of the said one or several continuous line segment which continues to the said idle line Is set , and the drawing order is determined so as to shorten the drawing time of the drawing target .

本発明の実施の形態の一観点の描画制御プログラムを記録した記録媒体は、前記に記載の描画制御プログラムを記録したものである。 A recording medium on which a drawing control program according to an aspect of the present invention is recorded is a recording medium on which the drawing control program described above is recorded.

描画装置の追従遅れを考慮して描画順を最適化する描画装置、レーザ照射装置、描画制御方法、描画制御プログラム、及びこれを記録した記録媒体を提供できる。 It is possible to provide a drawing apparatus, a laser irradiation apparatus , a drawing control method, a drawing control program, and a recording medium on which this is recorded, which optimizes the drawing order in consideration of the follow-up delay of the drawing apparatus .

従来のレーザマーキング装置による描画の問題点を説明するための図である。It is a figure for demonstrating the problem of the drawing by the conventional laser marking apparatus. 実施の形態のレーザマーキング装置100のハードウェア構成の一例を示す図である。It is a figure which shows an example of the hardware constitutions of the laser marking apparatus 100 of embodiment. 描画制御装置20のハードウェア構成の一例を示す図である。2 is a diagram illustrating an example of a hardware configuration of a drawing control apparatus 20. FIG. フォントデータ、座標データ、及び座標データに基づいて描画された文字の一例を表す図である。It is a figure showing an example of the character drawn based on font data, coordinate data, and coordinate data. 実施の形態の描画制御装置20の機能ブロックを示す図である。It is a figure which shows the functional block of the drawing control apparatus 20 of embodiment. (a)は、描画条件DB43の一例を示す図であり、(b)は、相連続する線分同士、又は線分とこの線分に連続する空走線分のなす角度の定義の仕方を説明するための図であり、(c)は所要時間DB44の一例を示す図である。(A) is a figure which shows an example of drawing condition DB43, (b) is how to define the angle which a line segment and the free-running line segment which continues to this line segment make between line segments. It is a figure for demonstrating, (c) is a figure which shows an example of required time DB44. 実施の形態の描画制御装置20による描画順決定処理を表すフローチャートである。It is a flowchart showing the drawing order determination process by the drawing control apparatus 20 of embodiment. (a)は文字列の一例を示す図であり、(b)は(a)に示す文字列の描画基点の一例を示す図である。(A) is a figure which shows an example of a character string, (b) is a figure which shows an example of the drawing base point of the character string shown to (a). 線分同士の間に空走線分がある様々なパターンを示す図である。It is a figure which shows the various patterns which have a free running line segment between line segments. 実施の形態2の描画制御装置220の機能ブロックを示す図である。FIG. 10 is a diagram illustrating functional blocks of a drawing control apparatus 220 according to the second embodiment. 実施の形態2の描画制御装置220による描画順決定処理を表すフローチャートである。10 is a flowchart illustrating a drawing order determination process performed by the drawing control apparatus 220 according to the second embodiment. 実施の形態2の描画制御装置220の描画順決定手段22による描画対象の各々を描画する描画順を決定する処理を表すフローチャートである。10 is a flowchart illustrating a process of determining a drawing order for drawing each drawing target by a drawing order determination unit 22 of the drawing control apparatus 220 according to the second embodiment. 実施の形態2の描画制御装置220の描画順決定手段22によって描画順が決定される文字列の一例を示す図である。It is a figure which shows an example of the character string by which a drawing order is determined by the drawing order determination means 22 of the drawing control apparatus 220 of Embodiment 2. FIG. 実施の形態2の描画制御装置220の描画順決定手段22による各描画対象に含まれる線分を描画する描画順を決定する処理を表すフローチャートである。10 is a flowchart illustrating a process of determining a drawing order for drawing a line segment included in each drawing target by a drawing order determination unit 22 of the drawing control apparatus 220 according to the second embodiment. 実施の形態2の描画制御装置220の描画順決定手段22によって線分の描画順が決定される描画対象の一例を示す図である。FIG. 10 is a diagram illustrating an example of a drawing target whose line segment drawing order is determined by the drawing order determination unit 22 of the drawing control apparatus 220 according to the second embodiment. 実施の形態2の描画制御装置における待機時間演算処理を表すフローチャートである。10 is a flowchart illustrating a standby time calculation process in the drawing control apparatus according to the second embodiment.

以下、本発明の描画装置、レーザ照射装置、描画制御方法、描画制御プログラム、及びこれを記録した記録媒体を適用した実施の形態について説明する。 DESCRIPTION OF EXEMPLARY EMBODIMENTS Embodiments to which a drawing apparatus, a laser irradiation apparatus , a drawing control method, a drawing control program, and a recording medium on which the drawing apparatus of the present invention are applied will be described below.

ここでは、「描画対象」なる文言は、文字、数字、記号、図形等の描画の対象を表すものとして用いる。また、「文字」とは、遍(へん)や旁(つくり)、又は、更にその一部等、文字の全体又は一部を表す文言として用いる。同様に、「数字」、「記号」、「図形」は、数字、記号、図形の全体又は一部を表す文言として用いる。   Here, the term “drawing target” is used to indicate a drawing target such as letters, numbers, symbols, and figures. In addition, the “character” is used as a word representing the whole or a part of a character such as a genre, a sword (making), or a part thereof. Similarly, “numerals”, “symbols”, and “graphics” are used as words that represent all or part of the numbers, symbols, and graphics.

また、「線分」とは、文字等の描画対象に含まれ、描画対象を描画するために両端の座標が決まっている区間をいう。この線分は、直線の一部だけでなく、曲線の一部も含み、太さを有する。   The “line segment” refers to a section that is included in a drawing target such as a character and whose coordinates at both ends are determined in order to draw the drawing target. This line segment includes not only a part of a straight line but also a part of a curve, and has a thickness.

また、「一筆部品」とは、描画が開始される位置から次に描画が終了される位置までに連続的に描画される一又は複数の線分を含むものとして用いる。例えば、レーザ照射で描画を行う場合は、レーザの1回の照射開始点から照射終了点までに描画される文字等の一画が一筆部品となる。   Further, the “single-stroke component” is used as including one or a plurality of line segments that are continuously drawn from the position at which drawing is started to the position at which drawing is ended next. For example, when drawing is performed by laser irradiation, one stroke of characters or the like drawn from the start point of laser irradiation to the end point of irradiation becomes one stroke part.

このため、文字、数字、記号、図形等の描画対象は、1以上の一筆部品を含み、一筆部品は、1以上の線分を含む。   For this reason, drawing objects such as letters, numbers, symbols, and figures include one or more one-stroke parts, and one-stroke parts include one or more line segments.

また、「空走区間」なる文言は、描画対象に含まれる一の線分の端点Aと、他の線分の端点Bが離間している場合において、端点Aの次に他の線分の描画を行うべく端点Bに描画位置を移動するために空走する場合の区間ABいう。   Further, the term “free running section” means that when the end point A of one line segment included in the drawing target and the end point B of another line segment are separated from each other, the other line segment is next to the end point A. This is the section AB when the vehicle runs idle to move the drawing position to the end point B for drawing.

また、「空走線分」なる文言は、空走区間ABを仮想的な線分として表す場合に用いる。   The term “idle line segment” is used when the idling section AB is represented as a virtual line segment.

なお、実施の形態の一筆部品(一画)は、従来のストロークフォントのストロークに対応するが、実施の形態の一筆部品は、レーザ照射装置としてのレーザマーキング装置100による文字の描画に最適化されるものであって、公的機関(例えば、日本規格協会、ISO等)等が定める一画と同じであってもよいし異なっていてもよい。実施の形態のレーザマーキング装置100は、レーザ光により媒体を発色させて一筆部品を描画するため、一筆部品を適切な形状に調整する。   The one-stroke component (one stroke) of the embodiment corresponds to the stroke of the conventional stroke font, but the one-stroke component of the embodiment is optimized for drawing characters by the laser marking device 100 as a laser irradiation device. It may be the same as or different from a stroke defined by a public organization (for example, Japanese Standards Association, ISO, etc.). The laser marking device 100 according to the embodiment adjusts the one-stroke component to an appropriate shape in order to draw the one-stroke component by coloring the medium with laser light.

また、「描画順」なる文言は、描画対象に含まれる線分を描画する順(線分をどちらの端部から描画するかという描画順も含む)と、文章等に含まれる複数の描画対象の各々を描画する順との2つの意味を有するものとして用いる。   In addition, the term “drawing order” includes the order in which line segments included in the drawing target are drawn (including the drawing order of which line segment is drawn from), and a plurality of drawing targets included in the text. These are used to have two meanings of the order of drawing.

以下、実施の形態1、2の描画装置、レーザ照射装置、描画制御方法、描画制御プログラム、及びこれを記録した記録媒体について説明する。 Hereinafter, the drawing apparatus, the laser irradiation apparatus , the drawing control method, the drawing control program, and the recording medium recording the same according to the first and second embodiments will be described.

<実施の形態1>
図2は、実施の形態1のレーザマーキング装置100のハードウェア構成の一例を示す図である。
<Embodiment 1>
FIG. 2 is a diagram illustrating an example of a hardware configuration of the laser marking apparatus 100 according to the first embodiment.

レーザマーキング装置100は、レーザを照射する描画装置10、及び、描画装置10の描画を制御する描画制御装置20を有する。描画装置10は、レーザを照射するレーザ発振器11、レーザの照射方向を変える方向制御ミラー13、方向制御ミラー13を駆動する方向制御モータ12、光学レンズ14、及び集光レンズ15を含む。   The laser marking device 100 includes a drawing device 10 that irradiates a laser, and a drawing control device 20 that controls drawing of the drawing device 10. The drawing apparatus 10 includes a laser oscillator 11 that irradiates a laser, a direction control mirror 13 that changes the laser irradiation direction, a direction control motor 12 that drives the direction control mirror 13, an optical lens 14, and a condenser lens 15.

レーザ発振器11は、半導体レーザ(LD(Laser Diode))であるが、気体レーザ、固体レーザ、液体レーザ等でもよい。方向制御モータ12は、方向制御ミラー13の反射面の向きを2軸に制御する例えばサーボモータである。方向制御モータ12と方向制御ミラー13とによりガルバノミラーを構成する。ガルバノミラーによってレーザの照射点が走査される。光学レンズ14は、レーザ光のスポット径を大きくするレンズであり、集光レンズ15はレーザ光を収束させるレンズである。   The laser oscillator 11 is a semiconductor laser (LD (Laser Diode)), but may be a gas laser, a solid laser, a liquid laser, or the like. The direction control motor 12 is, for example, a servo motor that controls the direction of the reflecting surface of the direction control mirror 13 to two axes. The direction control motor 12 and the direction control mirror 13 constitute a galvano mirror. A laser irradiation point is scanned by a galvanometer mirror. The optical lens 14 is a lens that increases the spot diameter of the laser light, and the condenser lens 15 is a lens that converges the laser light.

リライタブル媒体50は、180℃以上の温度に加熱して急冷することで発色し、130〜170℃の温度に加熱することで消色する書き換え可能な感熱媒体である。通常の感熱紙やサーマルリライタブル媒体は近赤外領域のレーザ光を吸収しないので、近赤外レーザ波長を発振するレーザ光源(半導体レーザや固体レーザのYAG等)を用いる場合は、感熱紙、サーマルリライタブル媒体にレーザ光を吸収する材料の添加や層を追加する必要がある。なお、書き換えとは、レーザ光で加熱して記録を行い、レーザ光又は温風、ホットスタンプ等で加熱して消去することである。また、書き換えができないサーマルペーパとは、加熱により消色が困難な感熱紙をいう。実施の形態1では、使用する媒体の例として、リライタブル媒体50を使用した場合を説明するが、書き換えができないサーマルペーパ、プラスチック、金属等のように書き換えが可能でない媒体に対しても、好適に適用できる。   The rewritable medium 50 is a rewritable heat-sensitive medium that develops color when heated to a temperature of 180 ° C. or higher and rapidly cools and decolors when heated to a temperature of 130 to 170 ° C. Normal thermal paper and thermal rewritable media do not absorb near-infrared laser light, so when using a laser light source that oscillates near-infrared laser wavelengths (semiconductor lasers, solid-state laser YAG, etc.) It is necessary to add a material or a layer that absorbs laser light to the rewritable medium. Note that rewriting means recording by heating with laser light, and erasing by heating with laser light, hot air, hot stamp, or the like. The non-rewritable thermal paper refers to thermal paper that is difficult to be decolored by heating. In the first embodiment, a case where a rewritable medium 50 is used will be described as an example of a medium to be used. However, it is also suitable for a medium that cannot be rewritten such as thermal paper, plastic, metal, etc. that cannot be rewritten. Applicable.

図3は、描画制御装置20のハードウェア構成の一例を示す図である。図3は、主にソフトウェアによって描画制御装置20を実装する場合のハードウェア構成図であり、コンピュータを実体としている。コンピュータを実体とせず描画制御装置20を実現する場合、ASIC((Application Specific Integrated Circuit))等の特定機能向けに生成されたICを利用する。   FIG. 3 is a diagram illustrating an example of a hardware configuration of the drawing control apparatus 20. FIG. 3 is a hardware configuration diagram when the drawing control apparatus 20 is mainly implemented by software, and a computer is an entity. When the drawing control apparatus 20 is realized without using a computer as an entity, an IC generated for a specific function such as an ASIC (Application Specific Integrated Circuit) is used.

描画制御装置20は、CPU31、メモリ32、ハードディスク35、入力装置36、CD−ROMドライブ33、ディスプレイ37及びネットワーク装置34を有する。ハードディスク35には、ストロークフォントの一連の文字のフォントデータを記憶するフォントデータDB41、フォントデータから重複を排除した描画命令を生成し描画装置10を制御する文字描画プログラム42、描画条件DB43、及び所要時間DB44が記憶されている。ここで、所要時間DB44は、後述する描画順決定処理において線分の描画順を順次決定する段階で、後述する所要時間を格納するためのDBである。その内容については、描画順決定処理の説明と併せて後述する。   The drawing control device 20 includes a CPU 31, a memory 32, a hard disk 35, an input device 36, a CD-ROM drive 33, a display 37 and a network device 34. The hard disk 35 includes a font data DB 41 that stores font data of a series of stroke font characters, a character drawing program 42 that generates a drawing command that eliminates duplication from the font data and controls the drawing device 10, a drawing condition DB 43, and a required A time DB 44 is stored. Here, the required time DB 44 is a DB for storing the required time described later at the stage of sequentially determining the drawing order of the line segments in the drawing order determining process described later. The contents will be described later together with the description of the drawing order determination process.

CPU31は、ハードディスク35から文字描画プログラム42を読み出して実行し、後述する手順で、リライタブル媒体50に文字を描画する。メモリ32は、DRAM等の揮発性メモリで、CPU31が文字描画プログラム42を実行する際の作業エリアとなる。   The CPU 31 reads and executes the character drawing program 42 from the hard disk 35 and draws characters on the rewritable medium 50 in the procedure described later. The memory 32 is a volatile memory such as a DRAM, and serves as a work area when the CPU 31 executes the character drawing program 42.

入力装置36は、マウスやキーボード等の描画装置10を制御する指示をユーザが入力するための装置である。リライタブル媒体50に描画する文章又は図形(以下、文章等)や、文章等に含まれる描画対象のサイズ等を表す描画条件は、例えば、入力装置36を介してユーザによって入力される。入力された描画条件は、描画条件DB43として、例えば、ハードディスク35に記憶される。描画条件には、文章等の中における各描画対象の位置、サイズ、及び描画順等を表すデータが含まれる。描画条件のデータ構造については図6を用いて後述する。   The input device 36 is a device for a user to input an instruction to control the drawing device 10 such as a mouse or a keyboard. A drawing condition indicating a sentence or a figure (hereinafter referred to as a sentence or the like) to be drawn on the rewritable medium 50 or a size of a drawing target included in the sentence or the like is input by the user via the input device 36, for example. The input drawing conditions are stored in, for example, the hard disk 35 as the drawing condition DB 43. The drawing conditions include data representing the position, size, drawing order, etc. of each drawing target in a sentence or the like. The data structure of the drawing conditions will be described later with reference to FIG.

ディスプレイ37は、例えば文字描画プログラム42が指示する画面情報に基づき所定の解像度や色数で、GUI(Graphical User Interface)画面を表示するユーザインターフェイスとなる。例えば、リライタブル媒体50に描画する文字の入力欄が表示される。   The display 37 is a user interface that displays a GUI (Graphical User Interface) screen with a predetermined resolution and number of colors based on, for example, screen information instructed by the character drawing program 42. For example, an input field for characters to be drawn on the rewritable medium 50 is displayed.

CD−ROMドライブ33は、CD-ROM38を脱着可能に構成され、CD−ROM38からデータを読み出し、また、記録可能な記録媒体にデータを書き込む際に利用される。フォントデータDB41、及び文字描画プログラム42は、CD-ROM38に記憶された状態で配布され、CD-ROM38から読み出されてハードディスク35にインストールされる。CD−ROM38は、この他、DVD、ブルーレイディスク、SDカード、メモリースティック(登録商標)、マルチメディアカード、xDカード等、不揮発性のメモリで代用することができる。   The CD-ROM drive 33 is configured to be detachable from the CD-ROM 38, and is used when reading data from the CD-ROM 38 and writing data on a recordable recording medium. The font data DB 41 and the character drawing program 42 are distributed in a state stored in the CD-ROM 38, read from the CD-ROM 38, and installed in the hard disk 35. In addition, the CD-ROM 38 can be replaced with a nonvolatile memory such as a DVD, a Blu-ray disc, an SD card, a memory stick (registered trademark), a multimedia card, and an xD card.

ネットワーク装置34は、LANやインターネット等のネットワークに接続するためのインターフェイス(例えばイーサネット(登録商標)カード)であり、OSI基本参照モデルの物理層、データリンク層に規定されたプロトコルに従う処理を実行して、描画装置10に文字コードに応じた描画命令を送信することを可能とする。フォントデータDB41、及び文字描画プログラム42は、ネットワークを介して接続した所定のサーバからダウンロードすることができる。なお、ネットワーク経由でなく、USB(Universal Serial Bus)、IEEE1394、ワイヤレスUSB、Bluetooth等で直接、描画制御装置20と描画装置10を接続してもよい。   The network device 34 is an interface (for example, an Ethernet (registered trademark) card) for connecting to a network such as a LAN or the Internet, and executes processing in accordance with protocols defined in the physical layer and data link layer of the OSI basic reference model. Thus, a drawing command corresponding to the character code can be transmitted to the drawing apparatus 10. The font data DB 41 and the character drawing program 42 can be downloaded from a predetermined server connected via a network. Note that the drawing control apparatus 20 and the drawing apparatus 10 may be directly connected via USB (Universal Serial Bus), IEEE 1394, wireless USB, Bluetooth, or the like, not via a network.

リライタブル媒体50に描画される描画対象の文字は、上述のように入力装置36から入力され、例えばリスト状のデータとしてハードディスク35に記憶されている。なお、リライタブル媒体50に描画される描画対象である文字等を含む文章等や、文章等に含まれる描画対象のサイズは、描画条件を構成する。   Characters to be drawn drawn on the rewritable medium 50 are input from the input device 36 as described above, and are stored in the hard disk 35 as, for example, list-like data. Note that the text or the like including characters to be drawn on the rewritable medium 50 or the size of the drawing target included in the text or the like constitutes a drawing condition.

文字は、UNICODEやJISコード等の文字コードで特定され、描画制御装置20は文字コードに対応する文字のフォントデータをフォントデータDB41から読み出し、描画装置10を制御するための描画命令を生成する際に用いる。   The character is specified by a character code such as UNICODE or JIS code, and the drawing control device 20 reads out font data of the character corresponding to the character code from the font data DB 41 and generates a drawing command for controlling the drawing device 10. Used for.

また、描画対象の文字の文字コードは、入力装置36から入力される場合と、予めハードディスク35に記憶されている場合(ネットワーク経由で入力される場合を含む)とがある。   The character code of the character to be drawn may be input from the input device 36 or stored in the hard disk 35 in advance (including a case where the character code is input via a network).

入力装置36から入力される場合は、キーボードのキーを押下することで入力されるキーコードに対応した文字コード、又は、IME(Input Method Editor)が起動している場合にキーコードからIMEが変換した文字コードが対象文字コード取得手段24に入力される。また、ハードディスク35に予め記憶されている場合は、例えば、宛先等の文字列がリスト状に記憶されているので、文字列の文字を指定する文字コードが読み出され、対象文字コード取得手段24に入力される。   When input from the input device 36, the character code corresponding to the key code input by pressing a key on the keyboard, or the IME is converted from the key code when the IME (Input Method Editor) is activated. The character code thus obtained is input to the target character code acquisition means 24. Further, when stored in advance in the hard disk 35, for example, since character strings such as destinations are stored in a list, a character code designating the characters of the character string is read out, and the target character code acquisition means 24 is read out. Is input.

また、描画対象が数字の「1」のように、全て直線状の線分で構成されている場合は、各線分の座標を容易に抽出することができる。しかしながら、アウトラインフォントでは曲線をスケーラブルに描画できるように、例えばベジェ曲線のような曲線で描画できるようになっている。曲線で描画されていると、線分間の距離の算出が複雑になるので、曲線を含む描画対象であっても直線状の線分に変換して描画することが好適になる。   Further, when the drawing target is composed of straight line segments such as the number “1”, the coordinates of each line segment can be easily extracted. However, the outline font can be drawn with a curve such as a Bezier curve so that the curve can be drawn in a scalable manner. Since the calculation of the distance between line segments becomes complicated when drawn with a curved line, it is preferable to draw a drawing by converting it into a straight line segment even if the drawing target includes a curved line.

そこで、実施の形態1の描画制御装置20は、フォントデータが曲線を含む場合、曲線部分を直線に変換し、各直線の線分の座標を検出する。なお、文字が曲線を含む場合、フォントデータには曲線制御用のデータが含まれているので、その文字が曲線を含むか否かはフォントデータから判定される。   Therefore, when the font data includes a curve, the drawing control apparatus 20 according to the first embodiment converts the curve portion into a straight line and detects the coordinates of the line segment of each straight line. If the character includes a curve, the font data includes data for curve control. Therefore, whether or not the character includes a curve is determined from the font data.

図4は、フォントデータ、座標データ、及び座標データに基づいて描画された文字の一例を表す図である。図4(a)は、描画情報としてのフォントデータの一例を示す。図4(a)のフォントデータはアルファベットの「r」という文字のフォントデータを示し、4つの線分で定義するためのデータを含む。フォントデータは、各線分の端点の座標と、描画順を有する。フォントデータに含まれる端点の座標は、文字をビットマップに配置した場合のビットマップの所定画素を原点に指定されている。   FIG. 4 is a diagram illustrating an example of font data, coordinate data, and characters drawn based on the coordinate data. FIG. 4A shows an example of font data as drawing information. The font data in FIG. 4A indicates font data of the letter “r” of the alphabet, and includes data for defining with four line segments. The font data has the coordinates of the end points of each line segment and the drawing order. The coordinates of the end points included in the font data are specified with the predetermined pixel of the bitmap when the character is arranged in the bitmap as the origin.

なお、実施の形態1の描画制御装置20は、描画順を最適化するために、フォントデータに含まれる描画順を変更する場合がある。   Note that the drawing control apparatus 20 of the first embodiment may change the drawing order included in the font data in order to optimize the drawing order.

ストロークフォントをレーザ等で描画する場合、座標だけではレーザを照射しながら移動するのか、レーザを照射しないで移動するのかを判別できない。このため、ストロークフォントのフォントデータには、レーザの描画開始位置(人間が書くとすると筆をおろす位置)と移動命令、レーザの描画終了位置(人間が書くとすると筆を上げる位置)と移動命令が含まれている。   When drawing a stroke font with a laser or the like, it is not possible to determine whether the movement is performed while irradiating the laser or not without irradiating the laser based on the coordinates alone. For this reason, the font data of the stroke font includes the laser drawing start position (position where the brush is lowered if a person writes) and a movement command, and the laser drawing end position (position where the brush is raised if a human writes) and a movement command. It is included.

図4(a)では、「m」はレーザの描画開始位置とその座標までの移動命令を示し、「d」は描画終了位置とその座標までの移動命令を示す。従って、「m」は筆を上げて移動することを意味し、「d」は筆を下ろして移動することを意味する。このように、フォントデータは、座標による文字の形状、描画の順番、描画の方向(図では矢印を有する線分)を規定し、「m」と「d」によりレーザ照射の有無を規定する。すなわち、一以上の連続した「d」に対応づけられた座標により表される線分が一筆部品である。   In FIG. 4A, “m” indicates a laser drawing start position and a movement command up to the coordinates thereof, and “d” indicates a drawing end position and a movement command up to the coordinates thereof. Therefore, “m” means that the brush is moved up and moved, and “d” means that the brush is moved down and moved. As described above, the font data defines the character shape according to the coordinates, the drawing order, and the drawing direction (in the figure, a line segment having an arrow), and the presence or absence of laser irradiation is defined by “m” and “d”. That is, a line segment represented by coordinates associated with one or more consecutive “d” is a one-stroke component.

従って、図4(a)に示す描画情報としてのフォントデータは、座標(100,500)から座標(100、50)まで線分が描かれ、座標(100,50)から座標(120、220)までは線分を描かずに移動し、座標(120、220)から座標(230、500)まで線分が描かれ、座標(230、500)から座標(300、500)まで線分が描かれ、さらに、座標(300、500)から座標(400、450)まで線分が描かれることを表す。   Accordingly, in the font data as the drawing information shown in FIG. 4A, a line segment is drawn from the coordinates (100, 500) to the coordinates (100, 50), and the coordinates (100, 50) to the coordinates (120, 220). Moves without drawing a line segment, a line segment is drawn from coordinates (120, 220) to coordinate (230, 500), and a line segment is drawn from coordinates (230, 500) to coordinate (300, 500) Furthermore, it represents that a line segment is drawn from the coordinates (300, 500) to the coordinates (400, 450).

一方、描画される文字の形状は、線分を指定する2点の座標が線分の数だけあれば特定できることになる。図4(b)は、媒体に実際に描画される文字(ここでは「r」)を構成する各線分の座標の一例を示す。図4(b)は、媒体に描画対象を描画する描画位置を表すデータとしての座標データを示しており、描画情報としてのフォントデータに基づき文字の大きさを2倍に拡大した場合の座標データを表す。ストロークフォントは、アウトラインフォントようにスケーラブルフォントの一種なので、例えば、リライタブル媒体50に描画する際の文字の大きさを指定できるようになっている。   On the other hand, the shape of the drawn character can be specified if the coordinates of the two points specifying the line segment are the same as the number of line segments. FIG. 4B shows an example of the coordinates of each line segment constituting a character (here, “r”) that is actually drawn on the medium. FIG. 4B shows coordinate data as data representing a drawing position at which a drawing target is drawn on a medium, and the coordinate data when the character size is doubled based on font data as drawing information. Represents. Since the stroke font is a kind of scalable font such as an outline font, for example, the size of characters when drawing on the rewritable medium 50 can be designated.

ストロークフォントの文字の大きさの調整方法はいくつか知られているが、ここでは説明のため単にフォントデータの座標をそれぞれ2倍にした。例えば文字の中心からの距離に応じて線分の座標を調整してもよい。   Several methods for adjusting the character size of the stroke font are known, but for the sake of explanation, the coordinates of the font data are simply doubled. For example, the coordinates of the line segment may be adjusted according to the distance from the center of the character.

アルファベットの「r」のように4つの線分を含む文字の場合、線分の座標は4組となる。図4(b)に示す[0]〜[3]は、各線分の描画順を示し、描画順の右側に続く4つの数字のうち、最初の2つの数値は線分の始点の座標を表し、残りの(右側の)2つの数値は線分の終点の座標を表す。   In the case of a character including four line segments such as “r” in the alphabet, the coordinates of the line segments are four sets. [0] to [3] shown in FIG. 4B indicate the drawing order of each line segment, and the first two numerical values of the four numbers that follow the right side of the drawing order indicate the coordinates of the start point of the line segment. The remaining two numbers (on the right) represent the coordinates of the end point of the line segment.

図4(b)に示す描画位置を表すデータとしての座標データを用いると、描画対象である「r」は、図4(c)に示すように、点A→点B、点C→点D→点E→点Fの順に描画される。   When the coordinate data as the data representing the drawing position shown in FIG. 4B is used, the drawing target “r” is point A → point B and point C → point D as shown in FIG. 4C. Drawing is performed in the order of point E → point F.

次に、図5を用いて実施の形態1の描画制御装置の機能ブロックについて説明する。   Next, functional blocks of the drawing control apparatus according to the first embodiment will be described with reference to FIG.

図5は、実施の形態1の描画制御装置20の機能ブロックを示す図である。各ブロックをソフトウェアで実現する場合、各ブロックはCPU31が文字描画プログラム42を実行することで実現される。   FIG. 5 is a diagram illustrating functional blocks of the drawing control apparatus 20 according to the first embodiment. When each block is realized by software, each block is realized by the CPU 31 executing the character drawing program 42.

描画制御装置20は、主制御手段211、描画位置決定手段21、描画順決定手段22、描画命令生成手段23、対象文字コード取得手段24、フォントデータ取得手段25、描画条件取得手段26、方向変化度合演算手段27、方向変化度合判定手段28、速度演算手段29、待機時間演算手段30、空走距離演算手段212、及び空走距離判定手段213を含む。なお、描画制御装置20のうち、描画命令生成手段23を除く、主制御手段211、描画位置決定手段21、描画順決定手段22、対象文字コード取得手段24、フォントデータ取得手段25、描画条件取得手段26、方向変化度合演算手段27、方向変化度合判定手段28、速度演算手段29、待機時間演算手段30、空走距離演算手段212、及び空走距離判定手段213は、描画順決定装置を構成する。   The drawing control apparatus 20 includes a main control unit 211, a drawing position determination unit 21, a drawing order determination unit 22, a drawing command generation unit 23, a target character code acquisition unit 24, a font data acquisition unit 25, a drawing condition acquisition unit 26, and a direction change. A degree calculation means 27, a direction change degree determination means 28, a speed calculation means 29, a standby time calculation means 30, an idle distance calculation means 212, and an idle distance determination means 213 are included. Of the drawing control apparatus 20, the main control means 211, the drawing position determination means 21, the drawing order determination means 22, the target character code acquisition means 24, the font data acquisition means 25, and the drawing condition acquisition, excluding the drawing command generation means 23. The means 26, the direction change degree calculating means 27, the direction change degree determining means 28, the speed calculating means 29, the standby time calculating means 30, the idle distance calculating means 212, and the idle distance determining means 213 constitute a drawing order determining device. To do.

主制御手段211は、後述する描画順の決定処理を実行する際に描画位置決定手段21、描画順決定手段22、描画命令生成手段23、対象文字コード取得手段24、フォントデータ取得手段25、描画条件取得手段26、方向変化度合演算手段27、方向変化度合判定手段28、速度演算手段29、待機時間演算手段30、空走距離演算手段212、及び空走距離判定手段213の処理を統括する処理と、その他に必要となる周辺処理を実行する制御手段である。   The main control unit 211 performs drawing position determination unit 21, drawing order determination unit 22, drawing command generation unit 23, target character code acquisition unit 24, font data acquisition unit 25, drawing when executing drawing order determination processing described later. A process that supervises the processes of the condition acquisition means 26, the direction change degree calculation means 27, the direction change degree determination means 28, the speed calculation means 29, the standby time calculation means 30, the idle distance calculation means 212, and the idle distance determination means 213. And control means for executing other peripheral processing required.

描画位置決定手段21は、フォントデータ取得手段25によってフォントデータDB41から読み出されるフォントデータと、描画条件取得手段26によって描画条件DB43から読み出される描画条件とに基づいて、描画対象をリライタブル媒体50に描画する描画位置である座標データを決定する。なお、描画条件には、文章等の中における各描画対象の位置、サイズ、及び描画順等を表すデータが含まれる。描画条件を表すデータについては図6を用いて後述する。   The drawing position determination unit 21 draws a drawing target on the rewritable medium 50 based on the font data read from the font data DB 41 by the font data acquisition unit 25 and the drawing conditions read from the drawing condition DB 43 by the drawing condition acquisition unit 26. The coordinate data that is the drawing position to be determined is determined. Note that the drawing conditions include data representing the position, size, drawing order, and the like of each drawing target in a sentence or the like. Data representing the drawing conditions will be described later with reference to FIG.

描画順決定手段22は、描画対象に含まれる線分を描画する描画順と、文章等に含まれる複数の描画対象の各々を描画する描画順との両方の描画順を決定する。   The drawing order determination unit 22 determines both the drawing order for drawing a line segment included in the drawing object and the drawing order for drawing each of a plurality of drawing objects included in the text.

描画命令生成手段23は、描画位置決定手段21によって決定される座標データ、描画順決定手段22によって決定される描画順、速度演算手段29によって演算される描画速度、及び待機時間演算手段30によって演算される待機時間を反映した描画命令を生成する。生成された描画命令は、描画装置10に入力され、この結果、ユーザによって入力装置36に入力された文章等を表す描画対象が描画装置10によってリライタブル媒体50に描画される。   The drawing command generation means 23 is calculated by the coordinate data determined by the drawing position determination means 21, the drawing order determined by the drawing order determination means 22, the drawing speed calculated by the speed calculation means 29, and the waiting time calculation means 30. A drawing command reflecting the waiting time to be generated is generated. The generated drawing command is input to the drawing device 10, and as a result, a drawing target representing a sentence or the like input to the input device 36 by the user is drawn on the rewritable medium 50 by the drawing device 10.

対象文字コード取得手段24は、ユーザによって入力装置36に入力された文章等に含まれる描画対象の文字コードを取得する。   The target character code acquisition unit 24 acquires a character code to be drawn included in text or the like input to the input device 36 by the user.

フォントデータ取得手段25は、対象文字コード取得手段24によって取得された文字コードに基づいてフォントデータDB41を参照し、文字コードに対応づけられたフォントデータを読み出す。   The font data acquisition unit 25 refers to the font data DB 41 based on the character code acquired by the target character code acquisition unit 24 and reads font data associated with the character code.

描画条件取得手段26は、リライタブル媒体50に描画する描画対象である文字等を含む文章等や、文章等に含まれる描画対象のサイズの条件を表す描画条件をハードディスク35に記憶された描画条件DB43から取得する。   The drawing condition acquisition means 26 is a drawing condition DB 43 stored in the hard disk 35 for drawing conditions including drawing characters and the like to be drawn on the rewritable medium 50, and drawing conditions indicating drawing size conditions included in the writings. Get from.

方向変化度合演算手段27は、描画位置決定手段21によって決定される座標データに基づき、相連続する線分同士のなす角度、又は、線分とこの線分に連続する空走線分のなす角度を方向変化度合として演算する。   The direction change degree calculating means 27 is based on the coordinate data determined by the drawing position determining means 21, or an angle formed between consecutive line segments, or an angle formed between a line segment and a free running line continued to the line segment. Is calculated as the degree of direction change.

方向変化度合判定手段28は、方向変化度合演算手段27によって演算された方向変化度合が所定度合より大きいか否かの判定を行う。実施の形態1では、所定度合は30°に設定されており、方向変化度合判定手段28は、相連続する線分同士のなす角度が30°より大きいか否かを判定する。相連続する線分同士のなす角度と、線分とこの線分に連続する空走線分のなす角度の定義の仕方については、図6を用いて後述する。   The direction change degree determination means 28 determines whether or not the direction change degree calculated by the direction change degree calculation means 27 is greater than a predetermined degree. In the first embodiment, the predetermined degree is set to 30 °, and the direction change degree determining means 28 determines whether or not the angle formed by the continuous line segments is larger than 30 °. The method of defining the angle between the line segments that are continuous and the angle between the line segment and the free running line segment that is continuous with the line segment will be described later with reference to FIG.

速度演算手段29は、描画対象の描画を行う際の描画速度と、空走区間を空走する際の空走速度とを演算する。空走速度は、次の(A)、(B)、(C)で示される第1ルールの下に決定される。
(A):空走区間の長さが所定長さより長い場合は、空走速度を描画速度より高くする。
(B):空走区間の長さが所定長さ以下であっても、空走区間の終了点で待機時間が設定されて場合は、空走速度を描画速度より高くする。
(C):(A)(B)以外の場合は、空走速度を描画速度と同一にする。
The speed calculation means 29 calculates the drawing speed when drawing the drawing target and the free running speed when running in the free running section. The idling speed is determined under the first rule indicated by the following (A), (B), and (C).
(A): When the length of the idling section is longer than the predetermined length, the idling speed is made higher than the drawing speed.
(B): Even if the length of the idling section is equal to or shorter than the predetermined length, if the waiting time is set at the end point of the idling section, the idling speed is made higher than the drawing speed.
(C): In cases other than (A) and (B), the idling speed is made equal to the drawing speed.

待機時間演算手段30は、描画終了点において次の線分の描画開始を待機する時間teと、描画開始点において次の線分の描画開始を待機する時間tsとを演算する。待機時間te、tsは、次の(D)、(E)、(F)で示される第2ルールの下に決定される。待機時間演算手段30によって演算される待機時間を表すデータは、描画順決定手段22によって生成される描画順に組み込まれる。
(D):線分とこの線分に連続する空走線分とのなす角度が所定の角度以下の場合は描画終了点で待機時間teを挿入しない。
(E)線分とこの線分に連続する空走線分とのなす角度が所定の角度より大きい場合は描画終了点で待機時間teを挿入する。
(F):空走線分とこの空走線分に連続する線分とのなす角度が所定の角度以下の場合は描画開始点で待機時間tsを挿入しない。
(G)空走線分とこの空走線分に連続する線分とのなす角度が所定の角度より大きい場合は描画開始点で待機時間tsを挿入する。
(H):空走線分とこの空走線分に連続する線分とのなす角度が所定の角度以下の場合((F)の場合)であっても、空走速度が描画速度よりも高い場合は描画開始点で待機時間tsを挿入する。
The waiting time calculating means 30 calculates a time te for waiting for the next line segment to start drawing at the drawing end point, and a time ts for waiting for the next line segment to start drawing at the drawing start point. The waiting times te and ts are determined under the second rule indicated by the following (D), (E), and (F). Data representing the standby time calculated by the standby time calculation means 30 is incorporated in the drawing order generated by the drawing order determination means 22.
(D): When the angle formed by the line segment and the free running line segment continuous to the line segment is equal to or smaller than the predetermined angle, the waiting time te is not inserted at the drawing end point.
(E) When the angle between the line segment and the free running line segment that is continuous with the line segment is larger than a predetermined angle, the waiting time te is inserted at the drawing end point.
(F): The waiting time ts is not inserted at the drawing start point when the angle formed between the free running line segment and the continuous line segment is equal to or smaller than a predetermined angle.
(G) When the angle formed between the free running line segment and the continuous line segment is larger than a predetermined angle, the waiting time ts is inserted at the drawing start point.
(H): Even when the angle between the free running line segment and the continuous line segment is equal to or smaller than a predetermined angle (in the case of (F)), the free running speed is higher than the drawing speed. If it is higher, the waiting time ts is inserted at the drawing start point.

空走距離演算手段212は、座標データに基づき、空走区間の距離を演算する。   The free running distance calculation means 212 calculates the free running section distance based on the coordinate data.

空走距離判定手段213は、空走距離演算手段212によって演算された空走区間の距離が所定距離以上であるか否かを判定する。   The free running distance determination unit 213 determines whether the distance of the free running section calculated by the free running distance calculation unit 212 is equal to or greater than a predetermined distance.

図6(a)は、描画条件DB43の一例を示す図であり、図6(b)は、相連続する線分同士のなす角度と、線分とこの線分に連続する空走線分のなす角度の定義の仕方を説明するための図であり、(c)は所要時間DB44の一例を示す図である。   FIG. 6A is a diagram showing an example of the drawing condition DB 43. FIG. 6B shows an angle formed between continuous line segments, a line segment, and a free running line segment that is continuous with the line segment. It is a figure for demonstrating how to define the angle to make, (c) is a figure which shows an example of required time DB44.

図6(a)に示すように、描画条件DB43は、描画対象の種別を特定するための文字コードの一例としてのJISコード、文章等を表す描画対象の各々が配置される位置(x、y座標)を表す位置データ、サイズ、及び描画順を表すデータを含む。描画順を表すデータは、図7を用いて後述する描画順決定処理によって線分毎に確定される。また、描画対象の位置を示す座標値は、例えば、描画対象が配置される領域の左上の点の座標である。   As shown in FIG. 6A, the drawing condition DB 43 is arranged such that each drawing target representing a JIS code, a sentence, etc. as an example of a character code for specifying the type of drawing target is arranged (x, y Position data representing coordinates), size, and data representing the drawing order. Data representing the drawing order is determined for each line segment by drawing order determination processing described later with reference to FIG. The coordinate value indicating the position of the drawing target is, for example, the coordinates of the upper left point of the region where the drawing target is arranged.

図6(b)に示すように、相連続する線分同士のなす角度(すなわち、方向変化度合)は、相連続する線分ABと線分BCに対して、線分ABの延長線lと線分BCとがなす角度θとして求められる。また、線分とこの線分に連続する空走線分とのなす角は、図6(b)に示す線分AB又は線分BCのいずれか一方を空走線分に置き換えた場合の角度として求められる。   As shown in FIG. 6B, the angle formed between the continuous line segments (that is, the degree of direction change) is an extension line l of the line segment AB with respect to the continuous line segments AB and BC. It is obtained as an angle θ formed by the line segment BC. In addition, the angle formed by the line segment and the free running line continuous to the line segment is an angle when either the line segment AB or the line segment BC shown in FIG. 6B is replaced with the free running line segment. As required.

図6(c)に示すように、所要時間DB44は、線分の端部のx、y座標と所要時間を関連付けて格納するDBである。所要時間DB44は、実施の形態1の描画順決定処理において次の描画順の候補となる線分を決定する際に、総当たり形式で演算される候補線分の端部までの所要時間を格納する。   As shown in FIG. 6C, the required time DB 44 is a DB that stores the x and y coordinates of the end of the line segment in association with the required time. The required time DB 44 stores the required time to the end of the candidate line segment calculated in the brute force format when determining the line segment as the next drawing order candidate in the drawing order determination process of the first embodiment. To do.

なお、JISコード、x座標値、y座標値、描画対象のサイズ、描画順、及び所要時間として、アルファベットと数字を組み合わせた記号を示すが、実際の描画制御装置では具体的なコード番号、x座標値、y座標値、及び描画対象のサイズ、描画順、及び所要時間を表す数値が与えられる。   In addition, although the symbol which combined the alphabet and the number is shown as a JIS code, x-coordinate value, y-coordinate value, drawing object size, drawing order, and required time, in an actual drawing control apparatus, a specific code number, x A coordinate value, a y-coordinate value, and a numerical value representing the size of the drawing target, the drawing order, and the required time are given.

次に、図7を用いて、実施の形態1の描画制御装置20による描画順決定処理について説明する。   Next, a drawing order determination process performed by the drawing control apparatus 20 according to the first embodiment will be described with reference to FIG.

図7は、実施の形態1の描画制御装置20による描画順決定処理を表すフローチャートである。   FIG. 7 is a flowchart showing a drawing order determination process performed by the drawing control apparatus 20 according to the first embodiment.

まず、描画位置決定手段21は、フォントデータ取得手段25によってフォントデータDB41から読み出されるフォントデータと、描画条件取得手段26によって描画条件DB43から読み出される描画条件とに基づいて、描画対象をリライタブル媒体50に描画する描画位置である座標データを決定する(ステップS1)。   First, the drawing position determination unit 21 sets a drawing target as a rewritable medium 50 based on the font data read from the font data DB 41 by the font data acquisition unit 25 and the drawing conditions read from the drawing condition DB 43 by the drawing condition acquisition unit 26. The coordinate data that is the drawing position for drawing is determined (step S1).

このステップS1の処理に際し、フォントデータ取得手段25は、対象文字コード取得手段24によって取得された文字コードに基づいてフォントデータDB41を参照し、文字コードに対応づけられたフォントデータを読み出す。そして、描画位置決定手段21は、フォントデータ取得手段25によってフォントデータDB41から読み出されるフォントデータと、描画条件取得手段26によって描画条件DB43から読み出される描画条件に含まれるサイズのデータとに基づいて、描画対象をリライタブル媒体50に描画する描画位置である座標データを決定する。以上により、ステップS1の処理が行われる。   In the process of step S1, the font data acquisition unit 25 refers to the font data DB 41 based on the character code acquired by the target character code acquisition unit 24, and reads font data associated with the character code. Then, the drawing position determination means 21 is based on the font data read from the font data DB 41 by the font data acquisition means 25 and the size data included in the drawing conditions read from the drawing condition DB 43 by the drawing condition acquisition means 26. Coordinate data that is a drawing position for drawing the drawing target on the rewritable medium 50 is determined. Thus, the process of step S1 is performed.

例えば、図8(a)に示すような文字列を描く場合は、図8(b)に示すように描画基点(例えば、左上の点を基点とし、基点の座標値は(x0,y0)とする)を設定し、描画条件に含まれる文字サイズ等から、描画対象に含まれる各線分を描画する位置を表す座標データを決定する。   For example, when a character string as shown in FIG. 8A is drawn, as shown in FIG. 8B, the drawing base point (for example, the upper left point is the base point, and the coordinate value of the base point is (x0, y0) ) Is set, and coordinate data representing a position for drawing each line segment included in the drawing target is determined from the character size included in the drawing conditions.

次に、主制御手段211は、描画装置10のレーザの照射点の現在位置と、描画順を決定する線分の総数とを取得する(ステップS2)。レーザの照射点の位置は、方向制御モータ12(図2参照)を制御するための2軸方向のデータからx、y座標を表す値として取得することができる。また、線分の総数は、描画条件に含まれるすべての描画対象のフォントデータ、又は、ステップS1で決定した座標データに基づいて取得することができる。   Next, the main control unit 211 acquires the current position of the laser irradiation point of the drawing apparatus 10 and the total number of line segments that determine the drawing order (step S2). The position of the laser irradiation point can be obtained as a value representing the x and y coordinates from the biaxial data for controlling the direction control motor 12 (see FIG. 2). The total number of line segments can be acquired based on all the font data to be drawn included in the drawing conditions or the coordinate data determined in step S1.

次に、主制御手段211は、ステップS2で取得した照射点の現在位置がいずれかの線分の端点に一致するか否かを判定する(ステップS3)。この判定は、ステップS1で決定した座標データに含まれる線分の端点を表すx、y座標の中に、ステップS2で取得した照射点の現在位置を表すx、y座標と一致するデータがあるか否かを判定することによって行われる。   Next, the main control unit 211 determines whether or not the current position of the irradiation point acquired in step S2 matches the end point of any line segment (step S3). In this determination, among the x and y coordinates representing the end points of the line segment included in the coordinate data determined in step S1, there is data that matches the x and y coordinates representing the current position of the irradiation point acquired in step S2. This is done by determining whether or not.

主制御手段211は、ステップS3で一致するデータがあると判定した場合は、x、y座標で表される端点を一端とする線分を描画開始線分とする(ステップS4Y)。描画開始線分とは、描画条件に含まれるすべての描画対象に含まれるすべての線分のうち、最初に描画を行う線分をいう。なお、ステップS4Yで選択される描画開始線分の両端のうち、描画が開始されるのは、ステップS3で照射点の現在位置と一致した端点である。   If the main control unit 211 determines in step S3 that there is matching data, the main control unit 211 sets a line segment having one end at the end point represented by the x and y coordinates as a drawing start line segment (step S4Y). The drawing start line segment is a line segment to be drawn first among all the line segments included in all drawing targets included in the drawing conditions. Of the both ends of the drawing start line segment selected in step S4Y, the drawing is started at the end point coincident with the current position of the irradiation point in step S3.

一方、主制御手段211は、ステップS3で一致するデータが無いと判定した場合は、照射点を表すx、y座標に一番近い端点を座標データから抽出し、その端点を含む線分を描画開始線分とする(ステップS4N)。なお、描画が開始されるのは、照射点を表すx、y座標に一番近い端点である。   On the other hand, if the main control unit 211 determines that there is no matching data in step S3, the main control unit 211 extracts the end point closest to the x and y coordinates representing the irradiation point from the coordinate data, and draws a line segment including the end point. A start line segment is set (step S4N). Note that drawing is started at the end point closest to the x and y coordinates representing the irradiation point.

主制御手段211は、次に描画する線分の候補となる候補線分の端点を選択する(ステップS5)。この処理は、描画順が次となる線分の描画開始点の候補を選択するための処理であり、後述するステップS18までの処理がすべての線分を候補として総当たり形式で繰り返し実行されることにより、座標データに含まれる端点を次々と選択して行く処理である。総当たり形式で各線分を候補線分とした場合の待機時間を演算し、後述するステップS16において待機時間が最も短いと判定された候補線分の端点を次の描画開始点として決定する。なお、線分は2つの端点を含むため、ステップS5の処理を繰り返し実行することにより、各線分の両端の端点が選択されることになる。   The main control means 211 selects the end points of candidate line segments that are candidates for the next line segment to be drawn (step S5). This process is a process for selecting candidates for the drawing start point of the line segment whose drawing order is the next, and the processes up to step S18 described later are repeatedly executed in a brute force format with all line segments as candidates. Thus, the end point included in the coordinate data is selected one after another. The standby time when each line segment is a candidate line segment in the brute force format is calculated, and the end point of the candidate line segment determined to have the shortest standby time in step S16 described later is determined as the next drawing start point. Since the line segment includes two end points, the end points at both ends of each line segment are selected by repeatedly executing the process of step S5.

ここで、ステップS5で選択される端点(描画順が次となる候補線分の描画開始点)と、描画順がその前であると決定している線分の描画終了点とを結ぶ線分は、空走線分となる。空走線分の両端は、座標データから得られる。例えば、図9(a)に示す例では、描画順が決定している線分ABの描画終了点Bと、描画順がその次となる候補線分CDの描画開始点Cとを結ぶ線分が空走線分BCとなる。   Here, the line segment connecting the end point selected in step S5 (the drawing start point of the candidate line segment whose drawing order is the next) and the drawing end point of the line segment whose drawing order is determined to be before it. Is the empty line segment. Both ends of the free running line segment are obtained from the coordinate data. For example, in the example shown in FIG. 9A, a line segment connecting the drawing end point B of the line segment AB whose drawing order is determined and the drawing start point C of the candidate line segment CD whose drawing order is the next. Becomes the free running segment BC.

次いで、方向変化度合演算手段27は、ステップS5で選択した端点によって得られる空走線分と、描画順が決定している線分とのなす角θe(方向変化度合)を演算する(ステップS6)。なす角は、座標データに基づき、図6(b)に示す要領で求められる。例えば、図9(a)で示す例では、描画順の決定している線分ABと、空走線分BCとのなす角度をθeとして演算することになる。なお、図9(a)に示す例では、線分ABと空走線分BCは同一直線上にあるため、θeは0°となる。   Next, the direction change degree calculating means 27 calculates an angle θe (direction change degree) formed by the idle line segment obtained by the end point selected in step S5 and the line segment whose drawing order is determined (step S6). ). The formed angle is obtained in the manner shown in FIG. 6B based on the coordinate data. For example, in the example shown in FIG. 9A, the angle formed between the line segment AB whose drawing order is determined and the idle line segment BC is calculated as θe. In the example shown in FIG. 9A, the line segment AB and the free-running line segment BC are on the same straight line, so θe is 0 °.

次いで、方向変化度合判定手段28は、ステップS6で演算されたなす角θeが所定の角度θ1以下であるか否かを判定する(ステップS7)。実施の形態1では、θ1は30°に設定されるが、この値に限られるものではない。   Next, the direction change degree determination means 28 determines whether or not the angle θe calculated in step S6 is equal to or smaller than a predetermined angle θ1 (step S7). In Embodiment 1, θ1 is set to 30 °, but is not limited to this value.

次に、空走距離演算手段212は、ステップS5で選択される端点と、描画順がその前であると決定している線分の描画終了点とを結ぶ空走線分の長さd(すなわち、空走区間の距離d)を座標データに基づいて演算する(ステップS8Y)。例えば、図9(a)に示す例では、空走線分BCの長さdが点B、Cの座標データに基づいて演算される。   Next, the free running distance calculation means 212 has a length d () of the free running line connecting the end point selected in step S5 and the drawing end point of the line segment whose drawing order is determined to be before it. That is, the distance d) of the free running section is calculated based on the coordinate data (step S8Y). For example, in the example shown in FIG. 9A, the length d of the free running line segment BC is calculated based on the coordinate data of points B and C.

ステップS8Yで空走区間の距離dが求まると、空走距離判定手段213は、空走区間の距離dが所定の距離d0以下であるか否かを判定する(ステップS9Y)。   When the distance d of the idling section is obtained in step S8Y, the idling distance determining means 213 determines whether or not the distance d of the idling section is equal to or less than a predetermined distance d0 (step S9Y).

次いで、方向変化度合演算手段27は、ステップS5で選択した端点を含む線分と、空走線分とのなす角θs(方向変化度合)を演算する(ステップS10A)。なす角θsは、座標データに基づき、図6(b)に示す要領で求められる。   Next, the direction change degree calculation means 27 calculates an angle θs (direction change degree) formed by the line segment including the end point selected in step S5 and the idle line segment (step S10A). The formed angle θs is obtained as shown in FIG. 6B based on the coordinate data.

ステップS10Aにおいて角度θsが演算されると、方向変化度合判定手段28は、角度θsが所定の角度θ2以下であるか否かを判定する(ステップS11A)。実施の形態1では、θ2はθ1と同一の30°に設定される。なお、θ2の値はθ1と同一である必要はなく、任意の角度に設定することができる。   When the angle θs is calculated in step S10A, the direction change degree determination unit 28 determines whether or not the angle θs is equal to or smaller than the predetermined angle θ2 (step S11A). In the first embodiment, θ2 is set to 30 °, which is the same as θ1. Note that the value of θ2 does not have to be the same as θ1, and can be set to an arbitrary angle.

ステップS11Aで角度θsが角度θ2以下であると判定された場合は、主制御手段211は、描画終了点における待機時間teを零(0)、描画開始点における待機時間tsを零(0)、空走区間の空走速度VをV1に設定する(ステップS12A)。なお、空走速度V1は、線分を描画する描画速度と同一の速度である。   When it is determined in step S11A that the angle θs is equal to or smaller than the angle θ2, the main control unit 211 sets the waiting time te at the drawing end point to zero (0), the waiting time ts at the drawing start point to zero (0), The idling speed V in the idling section is set to V1 (step S12A). The idle speed V1 is the same speed as the drawing speed for drawing a line segment.

ステップS12Aで待機時間teが零(0)に設定されるのは、ステップS7においてθeが所定のθ1以下であると判定されたからである。これは、図9(a)に示す例では、線分ABの描画終了点である点Bにおいて、線分ABと空走線分BCのなす角度θeが所定の角度θ1以下であり、空走区間に入る際の角度変化が比較的小さいため、レーザの照射点の追従遅れが収まるのを待機する時間を設ける必要がないと考えられるからである。   The reason why the standby time te is set to zero (0) in step S12A is that it is determined in step S7 that θe is equal to or less than a predetermined θ1. In the example shown in FIG. 9A, the angle θe formed by the line segment AB and the free-running line segment BC is equal to or less than the predetermined angle θ1 at the point B that is the drawing end point of the line segment AB. This is because it is considered that it is not necessary to provide a waiting time for the tracking delay of the laser irradiation point to be settled because the angle change when entering the section is relatively small.

また、ステップS12Aで待機時間tsが零(0)に設定されるのは、ステップS11Aにおいてθsが所定のθ2以下であると判定されたからである。これは、図9(a)に示す例では、線分CDの描画開始点である点Cにおいて、空走線分BCと線分CDのなす角度θsが所定の角度θ2以下であり、空走から描画に入る際の角度変化が比較的小さいため、レーザの照射点の追従遅れが収まるのを待機する時間を設ける必要がないと考えられるからである。   The reason why the standby time ts is set to zero (0) in step S12A is that it is determined in step S11A that θs is equal to or smaller than a predetermined θ2. In the example shown in FIG. 9A, the angle θs formed by the free running line BC and the line segment CD is not more than a predetermined angle θ2 at the point C that is the drawing start point of the line segment CD. This is because it is considered that it is not necessary to provide a time for waiting for the tracking delay of the laser irradiation point to be settled because the change in angle at the time of entering from drawing is relatively small.

また、ステップS12Aで空走速度Vを描画速度と同一のV1に設定するのは、ステップS9Yにおいて空走区間の距離dが距離d0以下であると判定され、空走区間の距離は比較的短いため、空走速度を上昇させる必要性に乏しいからである。また、空走区間が短くても空走速度を高くした方が空走時間は短くなるが、θsがθ2以下であることによって描画開始点(点C)における待機時間は零(0)に設定されているため、上昇させた空走速度を低下させるためだけに待機時間を設定する必要はないと考えられる。このため、空走速度VはV1に設定される。   In step S12A, the idling speed V is set to V1 which is the same as the drawing speed. In step S9Y, the distance d of the idling section is determined to be less than the distance d0, and the distance of the idling section is relatively short. Therefore, there is little need to increase the idle speed. Even if the idling section is short, increasing the idling speed shortens the idling time, but the waiting time at the drawing start point (point C) is set to zero (0) because θs is equal to or less than θ2. Therefore, it is considered that it is not necessary to set the waiting time only to reduce the increased idle speed. For this reason, the idling speed V is set to V1.

なお、ステップS12Aは、上述のルール(C)(D)(F)が適用された場合である。   Step S12A is a case where the above-described rules (C), (D), and (F) are applied.

以上のように、主制御手段211は、ステップS12Aで待機時間te、ts、及び空走速度Vが設定されると、描画終了点から空走して描画開始点で描画を開始するまでの所要時間tkを計算する(ステップS13)。   As described above, when the standby times te, ts, and the idling speed V are set in step S12A, the main control unit 211 needs to run idle from the drawing end point and start drawing at the drawing start point. Time tk is calculated (step S13).

tkは、ステップS2で取得されたN個の線分に含まれる2N個の端点のうち、k番目の端点について計算される所要時間である。kは、1≦k≦2(N−1)を満たす整数であり、tkは次式(1)で計算される。   tk is a required time calculated for the k-th end point among the 2N end points included in the N line segments acquired in step S2. k is an integer satisfying 1 ≦ k ≦ 2 (N−1), and tk is calculated by the following equation (1).

tk=tek+dk/V+tsk ・・・(1)
ここで、tekは、(N−1)本の候補線分に含まれる2(N−1)個の端点のうち、k番目の端点について演算された描画終了点での待機時間(第1待機時間)を表し、tskはk番目の端点について演算された描画開始点での待機時間(第2待機時間)を表す。また、dkはk番目の端点について演算された空走線分の長さを表し、Vは空走速度を表す。このため、dk/Vは、空走区間の空走に要する時間(空走時間)を表す。
tk = tek + dk / V + tsk (1)
Here, tek is a waiting time (first waiting time) at the drawing end point calculated for the k-th end point among 2 (N-1) end points included in the (N-1) candidate line segments. Tsk represents a waiting time (second waiting time) at the drawing start point calculated for the kth end point. Dk represents the length of the free running line segment calculated for the kth end point, and V represents the free running speed. For this reason, dk / V represents the time (idle time) required for idling in the idling section.

ステップS13で演算された所要時間は、k番目の端点のx、y座標と関連付けられて、ハードディスク35内に所要時間DB(図6(c)参照)として記憶される。   The required time calculated in step S13 is stored in the hard disk 35 as the required time DB (see FIG. 6C) in association with the x and y coordinates of the kth end point.

主制御手段211は、ステップS13の処理が終了すると、次の端点についての所要時間を演算すべく、kの値をインクリメントする(ステップS14)。   When the process of step S13 is completed, the main control unit 211 increments the value of k to calculate the required time for the next end point (step S14).

次いで、主制御手段211は、k≧2(N−1)が成立するかを判定する(ステップS15)。(N−1)本の候補線分に含まれる2(N−1)個のすべての端点についての処理が終了したか否かを判定するためである。   Next, the main control unit 211 determines whether k ≧ 2 (N−1) is satisfied (step S15). This is because it is determined whether or not the processing for all the 2 (N-1) end points included in the (N-1) candidate line segments has been completed.

主制御手段211は、ステップS15において、すべての端点についての処理が終了していないと判定した場合は、フローをステップS5にリターンする。   If the main control means 211 determines in step S15 that the processing has not been completed for all end points, the flow returns to step S5.

なお、ステップS11Aにおいて、角度θsが所定の角度θ2以下ではないと判定された場合は、フローはステップS12Bに進行し、主制御手段211は、描画終了点における待機時間teを零(0)、描画開始点における待機時間tsをt1、空走区間の空走速度VをV2に設定する(ステップS12B)。なお、空走速度V2は、線分を描画する描画速度の2倍の速度である。   When it is determined in step S11A that the angle θs is not equal to or smaller than the predetermined angle θ2, the flow proceeds to step S12B, and the main control unit 211 sets the waiting time te at the drawing end point to zero (0), The waiting time ts at the drawing start point is set to t1, and the idling speed V in the idling section is set to V2 (step S12B). The idle speed V2 is twice as fast as the drawing speed for drawing a line segment.

ステップS12Bで待機時間teが零(0)に設定されるのは、ステップS12Aの場合と同様に、ステップS7においてθeが所定のθ1以下であると判定されたからである。これは、図9(b)に示す例では、線分ABの描画終了点である点Bにおいて、線分ABと空走線分BCのなす角度θeが所定の角度θ1以下であり、空走区間に入る際の角度変化が比較的小さいため、レーザの照射点の追従遅れが収束するのを待機する時間を設ける必要がないと考えられるからである。   The reason why the standby time te is set to zero (0) in step S12B is that, in the same manner as in step S12A, it is determined in step S7 that θe is equal to or smaller than a predetermined θ1. In the example shown in FIG. 9B, the angle θe formed by the line segment AB and the idle line segment BC is equal to or less than the predetermined angle θ1 at the point B that is the drawing end point of the line segment AB. This is because it is considered that it is not necessary to provide a waiting time for the tracking delay of the laser irradiation point to converge because the change in angle when entering the section is relatively small.

また、ステップS12Bで待機時間tsがt1に設定されるのは、ステップS11Aにおいてθsが所定のθ2より大きいと判定されたからである。これは、図9(b)に示す例では、線分CDの描画開始点である点Cにおいて、空走線分BCと線分CDのなす角度θsが所定の角度θ2より大きく、空走から描画に入る際の角度変化が比較的大きいため、空走区間と描画区間との境界点(点C)で方向を変える際に、レーザの照射点の追従遅れが収まるのを待機する時間を設ける必要があると考えられるからである。   The reason why the standby time ts is set to t1 in step S12B is that it is determined in step S11A that θs is greater than the predetermined θ2. In the example shown in FIG. 9B, the angle θs formed by the free running line BC and the line segment CD is larger than the predetermined angle θ2 at the point C, which is the drawing start point of the line segment CD, and Since the angle change at the start of drawing is relatively large, when changing the direction at the boundary point (point C) between the free running section and the drawing section, a time for waiting for the tracking delay of the laser irradiation point to be settled is provided. This is because it is considered necessary.

また、ステップS12Bで空走速度Vを描画速度の2倍のV2に設定するのは、空走区間と線分とのなす角度が大きいことによって描画開始点(点C)で待機時間t1が設けられており、この待機時間t1を利用して空走速度V2から描画速度V1に減速する際の追従遅れを収束させられるため、空走距離がd0以下でも空走速度を高くして空走時間を短くするためである。   In step S12B, the idling speed V is set to V2, which is twice the drawing speed. The waiting time t1 is provided at the drawing start point (point C) because the angle between the idling section and the line segment is large. Since the waiting delay t1 is used to converge the follow-up delay when decelerating from the idle speed V2 to the drawing speed V1, the idle speed is increased even if the idle distance is less than d0. This is to shorten the length.

なお、ステップS12Bは、上述のルール(B)(D)(G)が適用された場合である。   Step S12B is a case where the above-described rules (B), (D), and (G) are applied.

また、ステップS9Yにおいて空走区間の距離dが所定の距離d0より長いと判定された場合は、フローはステップS11Bに進行し、方向変化度合判定手段28は、角度θsが所定の角度θ2以下であるか否かを判定する(ステップS11B)。ステップS11BはステップS11Aと同一内容であり、θ2はθ1と同一の30°に設定される。なお、θ2の値はθ1と同一である必要はなく、任意の角度に設定することができる。   If it is determined in step S9Y that the distance d of the idle section is longer than the predetermined distance d0, the flow proceeds to step S11B, and the direction change degree determination means 28 determines that the angle θs is equal to or less than the predetermined angle θ2. It is determined whether or not there is (step S11B). Step S11B has the same contents as step S11A, and θ2 is set to 30 °, which is the same as θ1. Note that the value of θ2 does not have to be the same as θ1, and can be set to an arbitrary angle.

ステップS11Bで角度θsが角度θ2以下であると判定された場合は、主制御手段211は、描画終了点における待機時間teを零(0)、描画開始点における待機時間tsをt1、空走区間の空走速度VをV2に設定する(ステップS12C)。なお、空走速度V2は、描画速度の2倍の速度である。   When it is determined in step S11B that the angle θs is equal to or smaller than the angle θ2, the main control unit 211 sets the waiting time te at the drawing end point to zero (0), the waiting time ts at the drawing start point to t1, and the idle running section. Is set to V2 (step S12C). The idle speed V2 is twice the drawing speed.

ステップS12Cで待機時間teが零(0)に設定されるのは、ステップS6において演算されたθeがステップS7において所定のθ1以下であると判定されたからである。これは、図9(c)に示す例では、線分ABの描画終了点である点Bにおいて、線分ABと空走線分BCは同一直線上にあり、なす角度θeは所定の角度θ1以下である。このように、空走区間に入る際の角度変化が比較的小さいため、レーザの照射点の追従遅れが収まるのを待機する時間を設ける必要がないと考えられるからである。   The reason why the standby time te is set to zero (0) in step S12C is that θe calculated in step S6 is determined to be equal to or smaller than a predetermined θ1 in step S7. In the example shown in FIG. 9C, the line segment AB and the free-running line segment BC are on the same straight line at the point B which is the drawing end point of the line segment AB, and the angle θe formed is a predetermined angle θ1. It is as follows. This is because it is considered that it is not necessary to provide time for waiting for the tracking delay of the laser irradiation point to be settled because the change in angle when entering the idle running section is relatively small.

また、ステップS12Cで待機時間tsがt1に設定されるのは、ステップS8Yにおいて演算された空走距離dがステップS9Yにおいてd0より長いと判定され、これにより空走速度が描画速度の2倍のV2に設定されたため、速度低下に伴う追従遅れを収束させる待機時間が必要になるからである。これは、図9(c)に示す例では、線分CDの描画開始点である点Cにおいて、空走速度V2から描画速度V1に減速されるため、レーザの照射点の追従遅れを収束させるための待機時間を設けたものである。   The reason why the standby time ts is set to t1 in step S12C is that the idle running distance d calculated in step S8Y is determined to be longer than d0 in step S9Y, and the idle running speed is thus twice the drawing speed. This is because, since V2 is set, a waiting time for converging the follow-up delay accompanying the speed reduction is required. In the example shown in FIG. 9C, the follow-up delay of the laser irradiation point is converged because the idle speed V2 is decelerated to the drawing speed V1 at the point C that is the drawing start point of the line segment CD. Standby time is provided.

また、ステップS12Cで空走速度Vを描画速度の2倍のV2に設定するのは、ステップS9Yにおいて空走区間の距離dが距離d0より長いと判定され、空走区間の距離が比較的長い場合であるため、空走速度を高くして空走時間を短縮するためである。   The reason why the idling speed V is set to V2 that is twice the drawing speed in step S12C is that the distance d of the idling section is determined to be longer than the distance d0 in step S9Y, and the distance of the idling section is relatively long. This is to increase the idle speed and shorten the idle time.

なお、ステップS12Cは、上述のルール(A)(D)(H)が適用された場合である。   Step S12C is a case where the above-described rules (A), (D), and (H) are applied.

また、ステップS11Bにおいて、角度θsが所定の角度θ2以下ではないと判定された場合は、フローはステップS12Dに進行し、主制御手段211は、描画終了点における待機時間teを零(0)、描画開始点における待機時間tsをt1、空走区間の空走速度VをV2に設定する(ステップS12D)。   If it is determined in step S11B that the angle θs is not equal to or smaller than the predetermined angle θ2, the flow proceeds to step S12D, and the main control unit 211 sets the waiting time te at the drawing end point to zero (0), The waiting time ts at the drawing start point is set to t1, and the idling speed V in the idling section is set to V2 (step S12D).

ステップS12Dで待機時間teが零(0)に設定されるのは、ステップS12Cと同一の理由である。   The reason why the standby time te is set to zero (0) in step S12D is the same reason as in step S12C.

また、ステップS12Dで待機時間tsがt1に設定されるのは、ステップS11Bにおいてθsが所定のθ2より大きいと判定されたからである。これは、図9(d)に示す例では、線分CDの描画開始点である点Cにおいて、空走線分BCと線分CDのなす角度θsが所定の角度θ2より大きく、空走から描画に入る際の角度変化が比較的大きいため、レーザの照射点の追従遅れが収まるのを待機する時間を設ける必要があると考えられるからである。   The reason why the standby time ts is set to t1 in step S12D is that it is determined in step S11B that θs is greater than the predetermined θ2. In the example shown in FIG. 9D, the angle θs formed by the free running line BC and the line segment CD is larger than the predetermined angle θ2 at the point C that is the drawing start point of the line segment CD. This is because it is considered that it is necessary to provide a time for waiting for the tracking delay of the laser irradiation point to be settled because the angle change at the start of drawing is relatively large.

また、ステップS12Dで空走速度Vを描画速度の2倍のV2に設定するのは、描画開始点である点Cで待機時間t1が設けられているので、空走速度を高くすることによって追従遅れが生じても点Cで吸収できるため、空走速度を高くして空走時間を短くするためである。   In step S12D, the idling speed V is set to V2, which is twice the drawing speed, because the waiting time t1 is provided at the drawing start point C. Therefore, the idling speed is increased by increasing the idling speed. This is because even if a delay occurs, it can be absorbed at the point C, so that the idling speed is increased to shorten the idling time.

なお、ステップS12Dは、上述のルール(A)(D)(G)が適用された場合である。   Step S12D is a case where the above-described rules (A), (D), and (G) are applied.

また、ステップS7において、θeがθ1より大きいと判定された場合は、フローはステップS8Nに進行し、空走距離演算手段212は、ステップS5で選択される端点と、描画順がその前であると決定している線分の描画終了点とを結ぶ空走線分の長さd(すなわち、空走区間の距離d)を座標データに基づいて演算する(ステップS8N)。例えば、図9(e)に示す例では、空走線分BCの長さdが点B、Cの座標データに基づいて演算される。   If it is determined in step S7 that θe is greater than θ1, the flow proceeds to step S8N, and the idle distance calculation means 212 has the end point selected in step S5 and the drawing order preceding it. Is calculated based on the coordinate data (see step S8N). For example, in the example shown in FIG. 9E, the length d of the free running segment BC is calculated based on the coordinate data of points B and C.

ステップS8Nで空走区間の距離dが求まると、空走距離判定手段213は、空走区間の距離dが所定の距離d0以下であるか否かを判定する(ステップS9N)。   When the distance d of the idling section is obtained in step S8N, the idling distance determination means 213 determines whether or not the distance d of the idling section is equal to or less than the predetermined distance d0 (step S9N).

次いで、方向変化度合演算手段27は、ステップS5で選択した端点を含む線分と、空走線分とのなす角θs(方向変化度合)を演算する(ステップS10C)。   Next, the direction change degree calculating means 27 calculates an angle θs (direction change degree) formed by the line segment including the end point selected in step S5 and the idle line segment (step S10C).

ステップS10Cにおいて角度θsが演算されると、方向変化度合判定手段28は、角度θsが所定の角度θ2以下であるか否かを判定する(ステップS11C)。実施の形態1では、θ2はθ1と同一の30°に設定される。なお、θ2の値はθ1と同一である必要はなく、任意の角度に設定することができる。   When the angle θs is calculated in step S10C, the direction change degree determination unit 28 determines whether or not the angle θs is equal to or smaller than the predetermined angle θ2 (step S11C). In the first embodiment, θ2 is set to 30 °, which is the same as θ1. Note that the value of θ2 does not have to be the same as θ1, and can be set to an arbitrary angle.

ステップS11Cで角度θsが角度θ2以下であると判定された場合は、主制御手段211は、描画終了点(点B)における待機時間teをt1、描画開始点(点C)における待機時間tsを零(0)、空走区間の空走速度VをV1に設定する(ステップS12E)。   When it is determined in step S11C that the angle θs is equal to or smaller than the angle θ2, the main control unit 211 sets the waiting time te at the drawing end point (point B) to t1, and the waiting time ts at the drawing start point (point C). Zero (0), the idling speed V of the idling section is set to V1 (step S12E).

ステップS12Eで待機時間teに設定されるのは、ステップS7においてθeが所定のθ1より大きいと判定されたからである。これは、図9(e)に示す例では、線分ABの描画終了点である点Bにおいて、線分ABと空走線分BCのなす角度θeが所定の角度θ1より大きく、空走区間に入る際の角度変化が比較的大きいため、角度変化によるレーザの照射点の追従遅れが収束するのを待機する時間を設ける必要があると考えられるからである。   The reason for setting the standby time te in step S12E is that it is determined in step S7 that θe is greater than the predetermined θ1. In the example shown in FIG. 9 (e), the angle θe formed by the line segment AB and the free-running line segment BC is larger than the predetermined angle θ1 at the point B that is the drawing end point of the line segment AB, and the free-running section. This is because the angle change at the time of entering is relatively large, and it is considered necessary to provide a time for waiting for the tracking delay of the laser irradiation point due to the angle change to converge.

また、ステップS12Eで待機時間tsが零(0)に設定されるのは、ステップS11Aにおいてθsが所定のθ2以下であると判定されたからである。これは、図9(e)に示す例では、線分CDの描画開始点である点Cにおいて、空走線分BCと線分CDのなす角度θsが所定の角度θ2以下であり、空走から描画に入る際の角度変化が比較的小さいため、レーザの照射点の追従遅れが収まるのを待機する時間を設ける必要がないと考えられるからである。   The reason why the standby time ts is set to zero (0) in step S12E is that it is determined in step S11A that θs is equal to or smaller than a predetermined θ2. In the example shown in FIG. 9E, the angle θs formed by the free running line BC and the line segment CD is equal to or less than the predetermined angle θ2 at the point C which is the drawing start point of the line CD. This is because it is considered that it is not necessary to provide a time for waiting for the tracking delay of the laser irradiation point to be settled because the change in angle at the time of entering from drawing is relatively small.

また、ステップS12Eで空走速度Vを描画速度と同一のV1に設定するのは、ステップS9Yにおいて空走区間の距離dが距離d0以下であると判定され、空走区間の距離は比較的短いため、空走速度を上昇させる必要性に乏しいからである。また、空走区間が短くても空走速度を高くした方が空走時間は短くなるが、θsがθ2以下であることによって描画開始点(点C)における待機時間は零(0)に設定されているため、上昇させた空走速度を低下させるためだけに待機時間を設定する必要はないと考えられる。このため、空走速度VはV1に設定される。   In step S12E, the idling speed V is set to V1 which is the same as the drawing speed. In step S9Y, it is determined that the distance d of the idling section is equal to or less than the distance d0, and the distance of the idling section is relatively short. Therefore, there is little need to increase the idle speed. Even if the idling section is short, increasing the idling speed shortens the idling time, but the waiting time at the drawing start point (point C) is set to zero (0) because θs is equal to or less than θ2. Therefore, it is considered that it is not necessary to set the waiting time only to reduce the increased idle speed. For this reason, the idling speed V is set to V1.

なお、ステップS12Eは、上述のルール(C)(E)(F)が適用された場合である。   Step S12E is a case where the above-described rules (C), (E), and (F) are applied.

また、ステップS11Cにおいて、角度θsが所定の角度θ2以下ではないと判定された場合は、フローはステップS12Fに進行し、主制御手段211は、描画終了点における待機時間teをt1、描画開始点における待機時間tsをt1、空走区間の空走速度VをV2に設定する(ステップS12F)。なお、空走速度V2は、線分を描画する描画速度の2倍の速度である。   If it is determined in step S11C that the angle θs is not equal to or smaller than the predetermined angle θ2, the flow proceeds to step S12F, and the main control unit 211 sets the waiting time te at the drawing end point to t1, and the drawing start point. Is set to t1, and the idling speed V of the idling section is set to V2 (step S12F). The idle speed V2 is twice as fast as the drawing speed for drawing a line segment.

ステップS12Fで待機時間teがt1に設定されるのは、ステップS12Eと同様の理由によるものである。   The reason why the standby time te is set to t1 in step S12F is for the same reason as in step S12E.

また、ステップS12Fで待機時間tsがt1に設定されるのは、ステップS11Cにおいてθsが所定のθ2より大きいと判定されたからである。これは、図9(f)に示す例では、線分CDの描画開始点である点Cにおいて、空走線分BCと線分CDのなす角度θsが所定の角度θ2より大きく、空走から描画に入る際の角度変化が比較的大きいため、レーザの照射点の追従遅れが収まるのを待機する時間を設ける必要があると考えられるからである。   The reason why the standby time ts is set to t1 in step S12F is that it is determined in step S11C that θs is greater than the predetermined θ2. In the example shown in FIG. 9 (f), the angle θs formed by the free running line BC and the line segment CD is larger than the predetermined angle θ 2 at the point C that is the drawing start point of the line segment CD. This is because it is considered that it is necessary to provide a time for waiting for the tracking delay of the laser irradiation point to be settled because the angle change at the start of drawing is relatively large.

また、ステップS12Fで空走速度Vを描画速度の2倍のV2に設定するのは、空走区間と線分とのなす角度が大きいことによって描画開始点(点C)で待機時間t1が設けられており、この待機時間t1を利用して空走速度V2から描画速度V1に減速する際の追従遅れを収束させられるため、空走距離がd0以下でも空走速度を高くして空走時間を短くするためである。   In step S12F, the idling speed V is set to V2, which is twice the drawing speed. The waiting time t1 is provided at the drawing start point (point C) because the angle between the idling section and the line segment is large. Since the waiting delay t1 is used to converge the follow-up delay when decelerating from the idle speed V2 to the drawing speed V1, the idle speed is increased even if the idle distance is less than d0. This is to shorten the length.

なお、ステップS12Fは、上述のルール(B)(E)(G)が適用された場合である。   Step S12F is a case where the above-described rules (B), (E), and (G) are applied.

また、ステップS9Nにおいて空走区間の距離dが所定の距離d0より長いと判定された場合は、フローはステップS11Dに進行し、方向変化度合判定手段28は、角度θsが所定の角度θ2以下であるか否かを判定する(ステップS11D)。ステップS11DはステップS11A、S11B、S11Cと同一内容であり、θ2はθ1と同一の30°に設定される。なお、θ2の値はθ1と同一である必要はなく、任意の角度に設定することができる。   If it is determined in step S9N that the distance d of the idle section is longer than the predetermined distance d0, the flow proceeds to step S11D, and the direction change degree determination means 28 determines that the angle θs is equal to or less than the predetermined angle θ2. It is determined whether or not there is (step S11D). Step S11D has the same contents as steps S11A, S11B, and S11C, and θ2 is set to 30 °, which is the same as θ1. Note that the value of θ2 does not have to be the same as θ1, and can be set to an arbitrary angle.

ステップS11Dで角度θsが角度θ2以下であると判定された場合は、主制御手段211は、描画終了点における待機時間teをt1、描画開始点における待機時間tsをt1、空走区間の空走速度VをV2に設定する(ステップS12G)。   When it is determined in step S11D that the angle θs is equal to or smaller than the angle θ2, the main control unit 211 sets the waiting time te at the drawing end point to t1, the waiting time ts at the drawing start point to t1, and the idle running section idle running. The speed V is set to V2 (step S12G).

ステップS12Gで待機時間teがt1に設定されるのは、ステップS12E、S12Fと同様の理由によるものである。   The reason why the standby time te is set to t1 in step S12G is the same as in steps S12E and S12F.

また、ステップS12Gで待機時間tsがt1に設定されるのは、空走距離dがステップS9Nにおいてd0より長いと判定され、これにより空走速度が描画速度の2倍のV2に設定されたため、速度低下に伴う追従遅れを収束させる待機時間が必要になるからである。これは、図9(g)に示す例では、線分CDの描画開始点である点Cにおいて、空走速度V2から描画速度V1に減速されるため、レーザの照射点の追従遅れが収まるのを待機する時間を設けたものである。   The reason why the standby time ts is set to t1 in step S12G is that the idle running distance d is determined to be longer than d0 in step S9N, and the idle running speed is set to V2 that is twice the drawing speed. This is because a waiting time for converging the follow-up delay accompanying the speed reduction is required. In the example shown in FIG. 9G, since the point C, which is the drawing start point of the line segment CD, is decelerated from the idle running speed V2 to the drawing speed V1, the follow-up delay of the laser irradiation point is reduced. A time to wait for is provided.

また、ステップS12Gで空走速度Vを描画速度の2倍のV2に設定するのは、ステップS9Nにおいて空走区間の距離dが距離d0より長いと判定され、空走区間の距離が比較的長い場合であるため、空走速度を高くして空走時間を短縮するためである。   The reason why the idling speed V is set to V2 that is twice the drawing speed in step S12G is that the distance d of the idling section is determined to be longer than the distance d0 in step S9N, and the distance of the idling section is relatively long. This is to increase the idle speed and shorten the idle time.

なお、ステップS12Gは、上述のルール(A)(E)(H)が適用された場合である。   Step S12G is a case where the above-described rules (A), (E), and (H) are applied.

また、ステップS11Dにおいて、角度θsが所定の角度θ2以下ではないと判定された場合は、フローはステップS12Hに進行し、主制御手段211は、描画終了点における待機時間teをt1、描画開始点における待機時間tsをt1、空走区間の空走速度VをV2に設定する(ステップS12H)。   If it is determined in step S11D that the angle θs is not equal to or smaller than the predetermined angle θ2, the flow proceeds to step S12H, and the main control unit 211 sets the waiting time te at the drawing end point to t1, and the drawing start point. Is set to t1, and the idling speed V in the idling section is set to V2 (step S12H).

ステップS12Hで待機時間teがt1に設定されるのは、ステップS12E、S12F、S12Gと同一の理由である。   The reason why the standby time te is set to t1 in step S12H is the same reason as in steps S12E, S12F, and S12G.

また、ステップS12Hで待機時間tsがt1に設定されるのは、ステップS11Dにおいてθsが所定のθ2より大きいと判定されたからである。これは、図9(h)に示す例では、線分CDの描画開始点である点Cにおいて、空走線分BCと線分CDのなす角度θsが所定の角度θ2より大きく、空走から描画に入る際の角度変化が比較的大きいため、レーザの照射点の追従遅れが収まるのを待機する時間を設ける必要があると考えられるからである。   The reason why the standby time ts is set to t1 in step S12H is that it is determined in step S11D that θs is greater than the predetermined θ2. In the example shown in FIG. 9 (h), at the point C that is the drawing start point of the line segment CD, the angle θs formed by the idle line segment BC and the line segment CD is larger than the predetermined angle θ2, and This is because it is considered that it is necessary to provide a time for waiting for the tracking delay of the laser irradiation point to be settled because the angle change at the start of drawing is relatively large.

また、ステップS12Hで空走速度Vを描画速度の2倍のV2に設定するのは、描画開始点である点Cで待機時間t1が設けられているので、空走速度を高くすることによって追従遅れが生じても点Cで吸収できるため、空走速度を高くして空走時間を短くするためである。   In step S12H, the idling speed V is set to V2, which is twice the drawing speed, because the waiting time t1 is provided at the drawing start point C. Therefore, the idling speed is increased by increasing the idling speed. This is because even if a delay occurs, it can be absorbed at the point C, so that the idling speed is increased to shorten the idling time.

なお、ステップS12Hは、上述のルール(A)(E)(G)が適用された場合である。   Step S12H is a case where the above-described rules (A), (E), and (G) are applied.

ステップS12B、S12C、S12D、S12E、S12F、S12G、S12Hの後にはステップS13において、描画開始までの所要時間が演算される。   After steps S12B, S12C, S12D, S12E, S12F, S12G, and S12H, the time required to start drawing is calculated in step S13.

以上で、ステップS13により、ステップS4Y又はS4Nで描画開始線分として決定した線分の描画終了点と、次に描画する線分の候補となる(N−1)本の候補線分に含まれる2(N−1)個の端点との間のすべての空走線分についての所要時間tkが総当たり形式で計算されたことになる。   In step S13, the drawing end point of the line segment determined as the drawing start line segment in step S4Y or S4N and the (N-1) candidate line segments that are candidates for the next line segment to be drawn are included. The required time tk for all the idle line segments between the 2 (N-1) end points is calculated in the brute force format.

これにより、ステップS15では、k≧2(N−1)が成立し、フローはステップS16に進行する。   Thereby, in step S15, k ≧ 2 (N−1) is established, and the flow proceeds to step S16.

ステップS16では、描画順決定手段22は、ステップS13で求められたすべての所要時間を実現する端点のうち、最短の所要時間の端点を求める(ステップS16)。   In step S16, the drawing order determination means 22 finds the end point of the shortest required time among the end points that realize all the required times obtained in step S13 (step S16).

ステップS16で端点が求められると、その端点を含む線分が描画開始線分の次の描画順の線分として確定する。すなわち、ステップS16は、描画順決定手段22が所要時間に基づいて描画順を決定するステップである。候補線分は2つの端点(両端)で規定されるため、候補線分の両端のうちの一方の端点がステップS16で求められることにより、その端点を含む候補線分が次の描画順の線分として確定されるものである。なお、描画順が確定された線分については、例えば、描画条件DB43(図6(a)参照)に描画順を格納すればよい。   When the end point is obtained in step S16, the line segment including the end point is fixed as the line segment in the next drawing order of the drawing start line segment. That is, step S16 is a step in which the drawing order determination means 22 determines the drawing order based on the required time. Since the candidate line segment is defined by two end points (both ends), one end point of both ends of the candidate line segment is obtained in step S16, so that the candidate line segment including the end point is the line in the next drawing order. It is determined as minutes. For the line segments for which the drawing order is determined, for example, the drawing order may be stored in the drawing condition DB 43 (see FIG. 6A).

次いで、主制御手段211は、すべての線分の描画順が確定したか否かを判定する(ステップS17)。この判定は、例えば、描画条件DB43に格納される描画順がすべての描画対象のすべての線分について確定しているか否かを判定することによって行われる。   Next, the main control unit 211 determines whether or not the drawing order of all line segments has been determined (step S17). This determination is performed, for example, by determining whether or not the drawing order stored in the drawing condition DB 43 is fixed for all line segments to be drawn.

主制御手段211は、ステップS17においてすべての線分の描画順が確定していないと判定した場合は、ステップS16で描画順を確定した線分の描画終了点を基準点に設定し、次の描画順の線分を決定すべくフローをステップS5にリターンする。   If the main control unit 211 determines in step S17 that the drawing order of all the line segments has not been determined, the main control unit 211 sets the drawing end point of the line segment in which the drawing order is determined in step S16 as a reference point, and The flow returns to step S5 to determine the line segment in the drawing order.

なお、ステップS16を繰り返し実行することにより、描画順の確定していない線分の数は1つずつ減るため、フローがステップS17からステップS5へリターンする過程で、総線分数Nがデクリメントされる(ステップS19)。ステップS19の処理が終了すると、デクリメントされた線分総数Nを用いて、ステップS5以下の処理が繰り返し実行される。   By repeatedly executing step S16, the number of line segments for which the drawing order has not been determined decreases by one, so the total line segment number N is decremented in the process of returning from step S17 to step S5. (Step S19). When the process of step S19 is completed, the processes in and after step S5 are repeatedly executed using the decremented line segment total number N.

そして、ステップS17において主制御手段211がすべての線分の描画順が確定したと判定した場合に、すべての線分の描画順が確定する。確定した描画順は、すべての描画対象を描画する描画時間が最短となるように最適化されたものである。これにより、実施の形態1の描画制御装置によって生成される最適化フォントDBが完成する。   If the main control unit 211 determines in step S17 that the drawing order of all line segments has been determined, the drawing order of all line segments is determined. The determined drawing order is optimized so that the drawing time for drawing all drawing objects is the shortest. Thereby, the optimized font DB generated by the drawing control apparatus of the first embodiment is completed.

以上、実施の形態1の描画制御装置20によれば、描画開始線分の描画終了点からすべての線分を候補として総当たり形式で描画に要する所要時間(待機時間と空走時間を含む所要時間)が最短の端点を含む線分を次の描画順の線分として繰り返し選択するので、描画順の最適化を図ることができる。   As described above, according to the drawing control apparatus 20 of the first embodiment, the time required for drawing in the brute force format with all line segments as candidates from the drawing end point of the drawing start line segment (required time including standby time and idle running time). Since the line segment including the end point with the shortest (time) is repeatedly selected as the line segment in the next drawing order, the drawing order can be optimized.

なお、以上では、描画順が一番となる線分(描画開始線分)をレーザの照射位置の初期位置で決める形態について説明したが、次のような手法で描画順を決定するようにしてもよい。上述した実施の形態では照射点の現在位置を基準とし、その照射点と同一又は一番近い端点を描画開始点としたが、以下の手法では、描画開始点についても最適化を行う点が異なる。   In the above description, the line segment (drawing start line segment) in which the drawing order is the best has been described as the initial position of the laser irradiation position. However, the drawing order is determined by the following method. Also good. In the above-described embodiment, the current position of the irradiation point is used as a reference, and the end point that is the same as or closest to the irradiation point is used as the drawing start point. However, the following method is different in that the drawing start point is also optimized. .

描画対象の線分はN本あり、各線分は両端点から描画が可能であるため、線分1本あたり2通りの描画順が考えられる。   Since there are N line segments to be drawn and each line segment can be drawn from both end points, two drawing orders can be considered for each line segment.

この場合に、すべての線分を描画する順番は、式(2)で表されるだけの組み合わせがある。   In this case, the order in which all line segments are drawn includes only combinations represented by Expression (2).

2N2(N−1)2(N−2)・・・2 ・・・(2)
ここで、は、べき乗を表す。
2N * 2 (N-1) * 2 (N-2) * ... * 2 (2)
Here, * represents a power.

これらの描画順の各々に対し、線分同士又は線分と空走線分の方向変化度合θと端点同士の距離dから、上述したte、ts、Vを決定し、各描画順についての所要時間の合計値を求める。   For each of these drawing orders, te, ts, V described above are determined from the direction change degree θ between the line segments or between the line segment and the idle line segment and the distance d between the end points, and the requirements for each drawing order. Find the total time.

そして、所要時間の合計値が最も短い描画順を最適化された描画順として抽出する。このように描画順を決定してもよい。   Then, the drawing order with the shortest total time required is extracted as the optimized drawing order. In this way, the drawing order may be determined.

<実施の形態2>
図10は、実施の形態2の描画制御装置220の機能ブロックを示す図である。各ブロックをソフトウェアで実現する場合、各ブロックはCPU31が文字描画プログラム42を実行することで実現される。
<Embodiment 2>
FIG. 10 is a diagram illustrating functional blocks of the drawing control apparatus 220 according to the second embodiment. When each block is realized by software, each block is realized by the CPU 31 executing the character drawing program 42.

描画制御装置220は、主制御手段211、描画位置決定手段21、描画順決定手段22、描画命令生成手段23、対象文字コード取得手段24、フォントデータ取得手段25、描画条件取得手段26、方向変化度合演算手段27、方向変化度合判定手段28、速度演算手段29、待機時間演算手段30、空走距離演算手段212、及び空走距離判定手段213に加えて、線分群生成手段221を含む。   The drawing control apparatus 220 includes a main control unit 211, a drawing position determination unit 21, a drawing order determination unit 22, a drawing command generation unit 23, a target character code acquisition unit 24, a font data acquisition unit 25, a drawing condition acquisition unit 26, and a direction change. In addition to the degree calculation means 27, the direction change degree determination means 28, the speed calculation means 29, the standby time calculation means 30, the idle travel distance calculation means 212, and the idle travel distance determination means 213, a line segment group generation means 221 is included.

すなわち、実施の形態2の描画制御装置220は、実施の形態1の描画制御装置20に、線分群生成手段221を付加した構成を有する。   That is, the drawing control apparatus 220 according to the second embodiment has a configuration in which the line segment group generation unit 221 is added to the drawing control apparatus 20 according to the first embodiment.

描画制御装置220のうち、描画命令生成手段23を除く、主制御手段211、描画位置決定手段21、描画順決定手段22、対象文字コード取得手段24、フォントデータ取得手段25、描画条件取得手段26、方向変化度合演算手段27、方向変化度合判定手段28、速度演算手段29、待機時間演算手段30、空走距離演算手段212、空走距離判定手段213、及び線分群生成手段221は、描画順決定装置を構成する。   Of the drawing control device 220, the main control means 211, the drawing position determination means 21, the drawing order determination means 22, the target character code acquisition means 24, the font data acquisition means 25, the drawing condition acquisition means 26, excluding the drawing command generation means 23. , Direction change degree calculating means 27, direction change degree determining means 28, speed calculating means 29, waiting time calculating means 30, idle running distance calculating means 212, idle running distance determining means 213, and line segment group generating means 221 are arranged in the drawing order. Configure the decision device.

主制御手段211は、描画順の決定処理を実行する際に、描画位置決定手段21、描画順決定手段22、描画命令生成手段23、対象文字コード取得手段24、フォントデータ取得手段25、描画条件取得手段26、方向変化度合演算手段27、方向変化度合判定手段28、速度演算手段29、待機時間演算手段30、空走距離演算手段212、空走距離判定手段213、及び線分群生成手段221の処理を統括する処理と、その他に必要となる周辺処理を実行する制御手段である。   When the main control unit 211 executes the drawing order determination process, the drawing position determination unit 21, the drawing order determination unit 22, the drawing command generation unit 23, the target character code acquisition unit 24, the font data acquisition unit 25, the drawing condition The acquisition means 26, direction change degree calculation means 27, direction change degree determination means 28, speed calculation means 29, standby time calculation means 30, idle distance calculation means 212, idle distance calculation means 213, and line segment group generation means 221 It is a control means for executing processing that supervises processing and peripheral processing necessary for other processing.

線分群生成手段221は、各線分の両端点の座標データに基づき、連続する線分を群として扱うための線分群を生成する。   The line segment group generation unit 221 generates a line segment group for handling continuous line segments as a group based on the coordinate data of both end points of each line segment.

線分群は、同一座標の端点を有する線分同士を連続する線分(線分群)として取り扱うものである。なお、線分が単独で存在する場合、すなわち、線分の両方の端点が他の線分の端点と同一座標を有しない場合は、一つの線分を線分群として取り扱うこととする。   The line segment group handles line segments having end points of the same coordinates as continuous line segments (line segment group). When a line segment exists alone, that is, when both end points of a line segment do not have the same coordinates as the end points of other line segments, one line segment is treated as a line segment group.

例えば、図4(c)に示す線分CD、線分DE、線分EFの3つの線分は、端点D、端点Eが同一座標の端点である。このため、線分群生成手段221は、3つの線分CD、DE、EFを含む線分群を生成する。また、図4(C)の線分ABは、単独で存在しているため、線分群生成手段221は、線分ABを線分群として生成する。   For example, in the three line segments shown in FIG. 4C, the line segment CD, the line segment DE, and the line segment EF, the end point D and the end point E are end points having the same coordinates. For this reason, the line segment group generation means 221 generates a line segment group including three line segments CD, DE, and EF. Further, since the line segment AB in FIG. 4C exists independently, the line segment group generation means 221 generates the line segment AB as a line segment group.

なお、描画位置決定手段21、描画順決定手段22、描画命令生成手段23、対象文字コード取得手段24、フォントデータ取得手段25、描画条件取得手段26、方向変化度合演算手段27、方向変化度合判定手段28、速度演算手段29、待機時間演算手段30、空走距離演算手段212、及び空走距離判定手段213は、それぞれ、実施の形態1の描画制御装置20に含まれる同一符号の各手段と基本的に同一である。このため、実施の形態2では、各手段に同一符号を用い、各手段の説明は省略し、以下では相違点を中心に説明を行う。   The drawing position determining means 21, the drawing order determining means 22, the drawing command generating means 23, the target character code acquiring means 24, the font data acquiring means 25, the drawing condition acquiring means 26, the direction change degree calculating means 27, and the direction change degree determining. The means 28, the speed calculation means 29, the standby time calculation means 30, the free running distance calculation means 212, and the free running distance determination means 213 are respectively the same reference numerals included in the drawing control apparatus 20 of the first embodiment. Basically the same. For this reason, in the second embodiment, the same reference numerals are used for the respective units, the description of the respective units is omitted, and the following description will focus on the differences.

図11は、実施の形態2の描画制御装置220による描画順決定処理を表すフローチャートである。図11は、描画制御装置220による描画順決定処理の全体のフローを示す。   FIG. 11 is a flowchart illustrating a drawing order determination process performed by the drawing control apparatus 220 according to the second embodiment. FIG. 11 shows an overall flow of the drawing order determination process by the drawing control apparatus 220.

描画制御装置220の描画位置決定手段21は、フォントデータ取得手段25によってフォントデータDB41から読み出されるフォントデータと、描画条件取得手段26によって描画条件DB43から読み出される描画条件とに基づいて、描画対象をリライタブル媒体50に描画する描画位置である座標データを決定する(ステップS201)。   The drawing position determination unit 21 of the drawing control device 220 selects a drawing target based on the font data read from the font data DB 41 by the font data acquisition unit 25 and the drawing conditions read from the drawing condition DB 43 by the drawing condition acquisition unit 26. Coordinate data that is a drawing position for drawing on the rewritable medium 50 is determined (step S201).

次に、描画制御装置220の描画順決定手段22は、描画対象の各々を描画する描画順を決定する(ステップS202)。例えば、描画対象が文字列の場合は、各文字を描画する順番が決定される。   Next, the drawing order determination means 22 of the drawing control apparatus 220 determines the drawing order for drawing each drawing target (step S202). For example, when the drawing target is a character string, the order of drawing each character is determined.

次に、描画制御装置220の描画順決定手段22は、各描画対象に含まれる線分を描画する描画順を決定する(ステップS203)。例えば、描画対象が文字列の場合は、各文字に含まれる線分を描画する順番が決定される。なお、フォントデータは描画順を有するが、実施の形態2では、描画順の最適化を行うために、フォントデータに含まれる描画順を変更する場合がある。   Next, the drawing order determination means 22 of the drawing control apparatus 220 determines the drawing order for drawing the line segments included in each drawing target (step S203). For example, when the drawing target is a character string, the order in which line segments included in each character are drawn is determined. Although the font data has a drawing order, in the second embodiment, the drawing order included in the font data may be changed in order to optimize the drawing order.

次に、描画制御装置220の待機時間演算手段30は、空走区間の始点と終点における待機時間と空走速度を決定する(ステップS204)。   Next, the standby time calculation means 30 of the drawing control device 220 determines the standby time and idle speed at the start point and end point of the idle running section (step S204).

以上のステップS201〜S204の処理で、すべての描画対象の描画順を決定する。   The drawing order of all drawing objects is determined by the processing in steps S201 to S204.

次に、図12及び図13を用いて、ステップS202で描画対象の各々を描画する描画順を決定する処理の詳細について説明する。   Next, details of processing for determining a drawing order for drawing each drawing target in step S202 will be described with reference to FIGS.

図12は、実施の形態2の描画制御装置220の描画順決定手段22による描画対象の各々を描画する描画順を決定する処理を表すフローチャートである。   FIG. 12 is a flowchart illustrating a process of determining a drawing order for drawing each drawing target by the drawing order determination unit 22 of the drawing control apparatus 220 according to the second embodiment.

図13は、実施の形態2の描画制御装置220の描画順決定手段22によって描画順が決定される文字列の一例を示す図である。   FIG. 13 is a diagram illustrating an example of a character string whose drawing order is determined by the drawing order determination unit 22 of the drawing control apparatus 220 according to the second embodiment.

図12に示すフローがスタートすると、描画順決定手段22は、ステップS201で読み出したフォントデータの数に基づき、文字列に含まれる文字数Nを計算する(ステップS211)。   When the flow shown in FIG. 12 starts, the drawing order determination unit 22 calculates the number N of characters included in the character string based on the number of font data read in step S201 (step S211).

次に、描画順決定手段22は、ステップS201で決定した座標データに基づき、すべての描画対象に対して、図13(A)に示すように、各文字を包含する矩形領域130を生成する(ステップS212)。   Next, the drawing order determination means 22 generates a rectangular area 130 that includes each character as shown in FIG. 13A for all drawing objects based on the coordinate data determined in step S201 (see FIG. 13A). Step S212).

矩形領域130は、座標データに基づいて描画対象を包含するように生成すればよく、描画順決定手段22は、原点Oに最も近い左上の頂点の座標を保持しておけばよい。   The rectangular area 130 may be generated so as to include the drawing target based on the coordinate data, and the drawing order determination unit 22 may hold the coordinates of the upper left vertex closest to the origin O.

ここでは、一例として、図13(B)に示すように5つの描画対象(「あ」「い」「う」「え」「お」)に対して、矩形領域131〜135を生成したこととする。   Here, as an example, as shown in FIG. 13B, rectangular areas 131 to 135 are generated for five drawing objects (“A”, “I”, “U”, “E”, “O”). To do.

次に、描画順決定手段22は、すべての描画対象の矩形領域の左上の座標に基づき、最も原点に近い矩形領域に包含される描画対象を、最初に描画する描画対象として決定する(ステップS213)。最も原点に近い矩形領域は、例えば、すべての矩形領域の左上の座標と原点との距離を求め、距離が最短の矩形領域を抽出することによって行えばよい。   Next, the drawing order determination means 22 determines the drawing target included in the rectangular area closest to the origin as the drawing target to be drawn first based on the upper left coordinates of all the rectangular areas to be drawn (step S213). ). The rectangular area closest to the origin may be obtained by, for example, obtaining the distance between the upper left coordinates of all the rectangular areas and the origin and extracting the rectangular area having the shortest distance.

図13(B)に示す例では、「あ」を包含する矩形領域131が最も原点Oに近いため、矩形領域131に包含される「あ」が最初に描画される描画対象となる。   In the example shown in FIG. 13B, since the rectangular area 131 including “A” is closest to the origin O, “A” included in the rectangular area 131 is a drawing target to be drawn first.

描画順決定手段22は、次に描画する描画対象を決定する(ステップS214)。次に描画する描画対象は、描画順が一つ前の描画対象を包含する矩形領域の左上の頂点の座標に最も近い左上頂点の座標を有する矩形領域に包含される描画対象に決定される。   The drawing order determination unit 22 determines a drawing target to be drawn next (step S214). The drawing object to be drawn next is determined as a drawing object included in the rectangular area having the coordinates of the upper left vertex closest to the coordinates of the upper left vertex of the rectangular area including the previous drawing object in the drawing order.

図13(B)に示す例では、「あ」の次に描画されるのは、「あ」を包含する矩形領域131の左上頂点に最も近い左上頂点を有する矩形領域132に包含される「い」である。   In the example shown in FIG. 13B, what is drawn after “A” is included in the rectangular region 132 having the upper left vertex closest to the upper left vertex of the rectangular region 131 including “A”. Is.

次に、描画順決定手段22は、Nから1を減じる(ステップS215)。   Next, the drawing order determination unit 22 subtracts 1 from N (step S215).

次に、描画順決定手段22は、Nが0になったか否かを判定する(ステップS216)。   Next, the drawing order determination means 22 determines whether N has become 0 (step S216).

描画順決定手段22は、ステップS216でNが0ではないと判定した場合(S216:NO)は、フローをステップS214にリターンし、次に描画する描画対象を決定する(ステップS214)。   If the drawing order determination unit 22 determines that N is not 0 in step S216 (S216: NO), it returns the flow to step S214, and determines the drawing object to be drawn next (step S214).

ステップS214〜S216が繰り返されることにより、図13(B)に示す例では、描画順は「い」「う」「え」「お」の順に決定される。   By repeating steps S214 to S216, in the example shown in FIG. 13B, the drawing order is determined in the order of “I” “U” “E” “O”.

描画順決定手段22は、ステップS216でNが0であると判定した場合(S216:YES)は、フローを終了する。   If the drawing order determination unit 22 determines that N is 0 in step S216 (S216: YES), the flow ends.

以上により、すべての描画対象の描画順が決定する。   As described above, the drawing order of all drawing objects is determined.

次に、図14及び図15を用いて、ステップS203で各描画対象に含まれる線分を描画する描画順を決定する処理の詳細について説明する。   Next, details of processing for determining a drawing order for drawing line segments included in each drawing target in step S203 will be described with reference to FIGS.

図14は、実施の形態2の描画制御装置220の描画順決定手段22による各描画対象に含まれる線分を描画する描画順を決定する処理を表すフローチャートである。図14に示す線分の描画順を決定する処理は、描画対象の各々について独立的に実行される処理である。   FIG. 14 is a flowchart illustrating a process of determining a drawing order for drawing line segments included in each drawing target by the drawing order determination unit 22 of the drawing control apparatus 220 according to the second embodiment. The process for determining the drawing order of the line segments shown in FIG. 14 is a process executed independently for each drawing target.

図15は、実施の形態2の描画制御装置220の描画順決定手段22によって線分の描画順が決定される描画対象の一例を示す図である。   FIG. 15 is a diagram illustrating an example of a drawing target whose drawing order is determined by the drawing order determination unit 22 of the drawing control apparatus 220 according to the second embodiment.

図14に示すフローがスタートすると、描画順決定手段22は、線分群生成手段221が生成する線分群の数Mをカウントする(ステップS221)。   When the flow shown in FIG. 14 is started, the drawing order determination unit 22 counts the number M of line segment groups generated by the line segment group generation unit 221 (step S221).

次に、描画順決定手段22は、どちらかの端点が他の線分群に隣接していない線分群のうち、他の線分群に隣接していない端点のx座標が最も原点Oに近い線分群を最初に描画する線分群に決定するとともに、最初に描画する線分群の始点(描画開始位置)を決定する(ステップS222)。   Next, the drawing order determination means 22 is a line segment group in which either end point is not adjacent to another line segment group and the x coordinate of the end point not adjacent to the other line segment group is closest to the origin O. Is determined as the line segment group to be drawn first, and the start point (drawing start position) of the line segment group to be drawn first is determined (step S222).

例えば、図15(A)に示すように、「あ」という平仮名には、7つの線分群151〜157が含まれる。線分群151〜157のうち、どちらかの端点が他の線分群に隣接していない線分群は、線分群151(両端)、152(一端)、155(一端)、156(一端)、157(一端)である。すなわち、「端点が他の線分群に隣接する」とは、端点が他の線分群の端点に隣接する場合と、端点が他の線分群の両端の間の線分に隣接する場合とがある。   For example, as illustrated in FIG. 15A, the hiragana “a” includes seven line segment groups 151 to 157. Among the line segment groups 151 to 157, a line segment group whose one of the end points is not adjacent to another line segment group is a line segment group 151 (both ends), 152 (one end), 155 (one end), 156 (one end), 157 ( One end). That is, “the end point is adjacent to another line segment group” may be the case where the end point is adjacent to the end point of another line segment group or the end point may be adjacent to the line segment between both ends of the other line segment group. .

図15(A)に示す例では、x座標が最も原点Oに近い端点は、線分群151の左端であるため、最初に描画する線分群は、線分群151に決定する。   In the example shown in FIG. 15A, since the end point whose x coordinate is closest to the origin O is the left end of the line segment group 151, the line segment group to be drawn first is determined as the line segment group 151.

また、描画順決定手段22は、ステップS221において、最初に描画する線分群の始点(描画開始位置)を決定する。図15(A)に示す例では、線分群151の始点を線分群151の両端のうち原点に近い方の端点(図15(A)中の左側の端点)に決定する。線分群151の右側の端点は、終点(描画終了位置)となる。   Further, the drawing order determining means 22 determines the start point (drawing start position) of the line segment group to be drawn first in step S221. In the example shown in FIG. 15A, the start point of the line segment group 151 is determined as the end point closer to the origin among the both ends of the line segment group 151 (the left end point in FIG. 15A). The end point on the right side of the line segment group 151 is the end point (drawing end position).

次に、描画順決定手段22は、次に描画を行う線分群を決定する(ステップS223)。   Next, the drawing order determination unit 22 determines a line segment group to be drawn next (step S223).

描画順決定手段22は、ステップS223では、描画順が一つ前の線分群の終点(描画終了位置)に最も近い端点を有する線分群を次に描画する線分群に決定する。   In step S223, the drawing order determination unit 22 determines the line segment group having the end point closest to the end point (drawing end position) of the previous line group in the drawing order as the line segment group to be drawn next.

図15(A)に示す例では、線分群151の右端に最も近い端点を有する線分群は線分群152であるため、描画順が線分群151の次となる線分群は線分群152に決定する。   In the example shown in FIG. 15A, since the line segment group having the end point closest to the right end of the line segment group 151 is the line segment group 152, the line segment group whose drawing order is next to the line segment group 151 is determined as the line segment group 152. .

次に、描画順決定手段22は、Mから1を減じる(ステップS224)。   Next, the drawing order determination means 22 subtracts 1 from M (step S224).

次に、描画順決定手段22は、Mが0になったか否かを判定する(ステップS225)。   Next, the drawing order determination unit 22 determines whether or not M is 0 (step S225).

描画順決定手段22は、Mが0ではないと判定した場合(S225:NO)は、フローをステップS223にリターンする。   If the drawing order determination unit 22 determines that M is not 0 (S225: NO), the flow returns to step S223.

この結果、ステップS223〜S225が繰り返し実行され、図15に示す例では、線分群152よりも後の描画順は、線分群153、154、155、156、157に決定する。   As a result, steps S223 to S225 are repeatedly executed, and in the example shown in FIG. 15, the drawing order after the line segment group 152 is determined as the line segment groups 153, 154, 155, 156, and 157.

以上より、線分群151〜157は、線分群151、152、153、154、155、156、157の順に描画されることになり、線分群153、154、155、156、157の各々の描画順は、図15(B)に矢印で示すように決定される。   As described above, the line segment groups 151 to 157 are drawn in the order of the line segment groups 151, 152, 153, 154, 155, 156, 157, and the drawing order of each of the line segment groups 153, 154, 155, 156, 157 is drawn. Is determined as indicated by an arrow in FIG.

すべての線分群の描画順が決まると、待機時間演算手段30は、ステップS204において、空走区間の始点と終点における待機時間と空走速度を決定する。   When the drawing order of all line segments is determined, the standby time calculation means 30 determines the standby time and idle speed at the start and end points of the idle section in step S204.

図16は、実施の形態2の描画制御装置における待機時間演算処理を表すフローチャートである。   FIG. 16 is a flowchart illustrating a standby time calculation process in the drawing control apparatus according to the second embodiment.

待機時間設定手段30は、描画順が決まった描画対象の描画順に含まれる空走区間について、空走区間の始点と終点に設ける待機時間を設定するために、空走区間を一つ選択する(ステップS231)。空走区間の選択は、描画順が早い方から一つずつ選択するようにすればよい。   The standby time setting means 30 selects one idle running section in order to set the standby time provided at the start point and the end point of the idle running section with respect to the idle running section included in the drawing order of the drawing target whose drawing order is determined ( Step S231). The idle section may be selected one by one from the earlier drawing order.

次いで、方向変化度合演算手段27は、ステップS231で選択した空走区間を表す空走線分と、空走線分の手前に位置する線分とのなす角θe(方向変化度合)を演算する(ステップS232)。なす角は、座標データに基づき、図6(b)に示す要領で求められる。   Next, the direction change degree calculation means 27 calculates an angle θe (direction change degree) formed by the free running line segment representing the free running section selected in step S231 and the line segment located before the free running line part. (Step S232). The formed angle is obtained in the manner shown in FIG. 6B based on the coordinate data.

次いで、方向変化度合判定手段28は、ステップS232で演算されたなす角θeが所定の角度θ1以下であるか否かを判定する(ステップS233)。実施の形態2では、θ1は30°に設定されるが、この値に限られるものではない。   Next, the direction change degree determination means 28 determines whether or not the angle θe calculated in step S232 is equal to or smaller than a predetermined angle θ1 (step S233). In Embodiment 2, θ1 is set to 30 °, but is not limited to this value.

次に、空走距離演算手段212は、ステップS231で選択される空走区間を表す空走線分の長さd(すなわち、空走区間の距離d)を座標データに基づいて演算する(ステップS234Y)。   Next, the free running distance calculation means 212 calculates the length d (that is, the free running section distance d) representing the free running section selected in Step S231 based on the coordinate data (Step S231). S234Y).

ステップS234Yで空走区間の距離dが求まると、空走距離判定手段213は、空走区間の距離dが所定の距離d0以下であるか否かを判定する(ステップS235Y)。   When the distance d of the idling section is obtained in step S234Y, the idling distance determining means 213 determines whether or not the distance d of the idling section is equal to or less than the predetermined distance d0 (step S235Y).

次いで、方向変化度合演算手段27は、ステップS231で選択した空走区間を表す空走線分と、空走線分に連続する線分とのなす角θs(方向変化度合)を演算する(ステップS236A)。なす角θsは、座標データに基づき、図6(b)に示す要領で求められる。   Next, the direction change degree calculating means 27 calculates an angle θs (direction change degree) formed by the free running line segment representing the free running section selected in step S231 and the line segment continuous to the free running line segment (step change degree). S236A). The formed angle θs is obtained as shown in FIG. 6B based on the coordinate data.

ステップS236Aにおいて角度θsが演算されると、方向変化度合判定手段28は、角度θsが所定の角度θ2以下であるか否かを判定する(ステップS237A)。実施の形態2では、θ2はθ1と同一の30°に設定される。なお、θ2の値はθ1と同一である必要はなく、任意の角度に設定することができる。   When the angle θs is calculated in step S236A, the direction change degree determination unit 28 determines whether or not the angle θs is equal to or smaller than the predetermined angle θ2 (step S237A). In the second embodiment, θ2 is set to 30 °, which is the same as θ1. Note that the value of θ2 does not have to be the same as θ1, and can be set to an arbitrary angle.

ステップS237Aで角度θsが角度θ2以下であると判定された場合は、主制御手段211は、描画終了点における待機時間teを零(0)、描画開始点における待機時間tsを零(0)、空走区間の空走速度VをV1に設定する(ステップS238A)。なお、空走速度V1は、線分を描画する描画速度と同一の速度である。   When it is determined in step S237A that the angle θs is equal to or smaller than the angle θ2, the main control unit 211 sets the waiting time te at the drawing end point to zero (0), the waiting time ts at the drawing start point to zero (0), The idling speed V in the idling section is set to V1 (step S238A). The idle speed V1 is the same speed as the drawing speed for drawing a line segment.

待機時間te、待機時間ts、空走速度Vを上述のように設定するのは、実施の形態1のステップS12Aと同一の理由によるものである。   The reason for setting the standby time te, the standby time ts, and the idling speed V as described above is due to the same reason as in step S12A of the first embodiment.

主制御手段211は、ステップS238Aで設定された待機時間te、待機時間ts、空走速度Vを描画命令生成手段25に受け渡す。   The main control unit 211 delivers the standby time te, the standby time ts, and the idling speed V set in step S238A to the drawing command generation unit 25.

描画命令生成手段25は、ステップS238Aで設定された待機時間te、待機時間ts、空走速度Vを描画命令に組み込む。   The drawing command generation means 25 incorporates the waiting time te, the waiting time ts, and the idle speed V set in step S238A into the drawing command.

また、ステップS237Aにおいて、角度θsが所定の角度θ2以下ではないと判定された場合は、フローはステップS238Bに進行し、主制御手段211は、描画終了点における待機時間teを零(0)、描画開始点における待機時間tsをt1、空走区間の空走速度VをV2に設定する(ステップS238B)。なお、空走速度V2は、線分を描画する描画速度の2倍の速度である。   If it is determined in step S237A that the angle θs is not equal to or smaller than the predetermined angle θ2, the flow proceeds to step S238B, and the main control unit 211 sets the waiting time te at the drawing end point to zero (0). The waiting time ts at the drawing start point is set to t1, and the idling speed V in the idling section is set to V2 (step S238B). The idle speed V2 is twice as fast as the drawing speed for drawing a line segment.

待機時間te、待機時間ts、空走速度Vを上述のように設定するのは、実施の形態1のステップS12Bと同一の理由によるものである。   The reason why the standby time te, the standby time ts, and the idling speed V are set as described above is due to the same reason as in step S12B of the first embodiment.

また、ステップS235Yにおいて空走区間の距離dが所定の距離d0より長いと判定された場合は、フローはステップS237Bに進行し、方向変化度合判定手段28は、角度θsが所定の角度θ2以下であるか否かを判定する(ステップS237B)。ステップS237BはステップS237Aと同一内容であり、θ2はθ1と同一の30°に設定される。なお、θ2の値はθ1と同一である必要はなく、任意の角度に設定することができる。   If it is determined in step S235Y that the distance d of the idle section is longer than the predetermined distance d0, the flow proceeds to step S237B, and the direction change degree determination means 28 determines that the angle θs is equal to or less than the predetermined angle θ2. It is determined whether or not there is (step S237B). Step S237B has the same contents as step S237A, and θ2 is set to 30 °, which is the same as θ1. Note that the value of θ2 does not have to be the same as θ1, and can be set to an arbitrary angle.

ステップS237Bで角度θsが角度θ2以下であると判定された場合は、主制御手段211は、描画終了点における待機時間teを零(0)、描画開始点における待機時間tsをt1、空走区間の空走速度VをV2に設定する(ステップS238C)。なお、空走速度V2は、描画速度の2倍の速度である。   When it is determined in step S237B that the angle θs is equal to or smaller than the angle θ2, the main control unit 211 sets the waiting time te at the drawing end point to zero (0), the waiting time ts at the drawing start point to t1, and the idle running section. Is set to V2 (step S238C). The idle speed V2 is twice the drawing speed.

待機時間te、待機時間ts、空走速度Vを上述のように設定するのは、実施の形態1のステップS12Cと同一の理由によるものである。   The reason for setting the standby time te, the standby time ts, and the idling speed V as described above is due to the same reason as Step S12C of the first embodiment.

また、ステップS237Bにおいて、角度θsが所定の角度θ2以下ではないと判定された場合は、フローはステップS238Dに進行し、主制御手段211は、描画終了点における待機時間teを零(0)、描画開始点における待機時間tsをt1、空走区間の空走速度VをV2に設定する(ステップS238D)。   If it is determined in step S237B that the angle θs is not equal to or smaller than the predetermined angle θ2, the flow proceeds to step S238D, and the main control unit 211 sets the waiting time te at the drawing end point to zero (0). The waiting time ts at the drawing start point is set to t1, and the idling speed V in the idling section is set to V2 (step S238D).

待機時間te、待機時間ts、空走速度Vを上述のように設定するのは、実施の形態1のステップS12Dと同一の理由によるものである。   The reason for setting the standby time te, the standby time ts, and the idling speed V as described above is due to the same reason as in step S12D of the first embodiment.

また、ステップS233において、θeがθ1より大きいと判定された場合は、フローはステップS234Nに進行し、空走距離演算手段212は、ステップS231で選択される端点と、描画順がその前であると決定している線分の描画終了点とを結ぶ空走線分の長さd(すなわち、空走区間の距離d)を座標データに基づいて演算する(ステップS234N)。例えば、図9(e)に示す例では、空走線分BCの長さdが点B、Cの座標データに基づいて演算される。   If it is determined in step S233 that θe is greater than θ1, the flow proceeds to step S234N, and the idle distance calculation means 212 has the end point selected in step S231 and the drawing order preceding it. Is calculated based on the coordinate data (i.e., the distance d of the idle running section) (see step S234N). For example, in the example shown in FIG. 9E, the length d of the free running segment BC is calculated based on the coordinate data of points B and C.

ステップS234Nで空走区間の距離dが求まると、空走距離判定手段213は、空走区間の距離dが所定の距離d0以下であるか否かを判定する(ステップS235N)。   When the distance d of the idling section is obtained in step S234N, the idling distance determining means 213 determines whether or not the distance d of the idling section is equal to or less than the predetermined distance d0 (step S235N).

次いで、方向変化度合演算手段27は、ステップS231で選択した端点を含む線分と、空走線分とのなす角θs(方向変化度合)を演算する(ステップS236C)。   Next, the direction change degree calculation means 27 calculates an angle θs (direction change degree) formed by the line segment including the end point selected in step S231 and the idle line segment (step S236C).

ステップS236Cにおいて角度θsが演算されると、方向変化度合判定手段28は、角度θsが所定の角度θ2以下であるか否かを判定する(ステップS237C)。実施の形態2では、θ2はθ1と同一の30°に設定される。なお、θ2の値はθ1と同一である必要はなく、任意の角度に設定することができる。   When the angle θs is calculated in step S236C, the direction change degree determination unit 28 determines whether or not the angle θs is equal to or smaller than the predetermined angle θ2 (step S237C). In the second embodiment, θ2 is set to 30 °, which is the same as θ1. Note that the value of θ2 does not have to be the same as θ1, and can be set to an arbitrary angle.

ステップS237Cで角度θsが角度θ2以下であると判定された場合は、主制御手段211は、描画終了点(点B)における待機時間teをt1、描画開始点(点C)における待機時間tsを零(0)、空走区間の空走速度VをV1に設定する(ステップS238E)。   When it is determined in step S237C that the angle θs is equal to or smaller than the angle θ2, the main control unit 211 sets the waiting time te at the drawing end point (point B) to t1, and the waiting time ts at the drawing start point (point C). Zero (0), the idling speed V of the idling section is set to V1 (step S238E).

待機時間te、待機時間ts、空走速度Vを上述のように設定するのは、実施の形態1のステップS12Eと同一の理由によるものである。   The reason for setting the standby time te, the standby time ts, and the idling speed V as described above is due to the same reason as in step S12E of the first embodiment.

また、ステップS237Cにおいて、角度θsが所定の角度θ2以下ではないと判定された場合は、フローはステップS238Fに進行し、主制御手段211は、描画終了点における待機時間teをt1、描画開始点における待機時間tsをt1、空走区間の空走速度VをV2に設定する(ステップS238F)。なお、空走速度V2は、線分を描画する描画速度の2倍の速度である。   If it is determined in step S237C that the angle θs is not equal to or smaller than the predetermined angle θ2, the flow proceeds to step S238F, and the main control unit 211 sets the waiting time te at the drawing end point to t1, and the drawing start point. Is set to t1, and the idling speed V of the idling section is set to V2 (step S238F). The idle speed V2 is twice as fast as the drawing speed for drawing a line segment.

待機時間te、待機時間ts、空走速度Vを上述のように設定するのは、実施の形態1のステップS12Fと同一の理由によるものである。   The reason for setting the standby time te, the standby time ts, and the idling speed V as described above is due to the same reason as in step S12F of the first embodiment.

また、ステップS235Nにおいて空走区間の距離dが所定の距離d0より長いと判定された場合は、フローはステップS237Dに進行し、方向変化度合判定手段28は、角度θsが所定の角度θ2以下であるか否かを判定する(ステップS237D)。ステップS237DはステップS237A、S237B、S237Cと同一内容であり、θ2はθ1と同一の30°に設定される。なお、θ2の値はθ1と同一である必要はなく、任意の角度に設定することができる。   If it is determined in step S235N that the distance d of the idle section is longer than the predetermined distance d0, the flow proceeds to step S237D, and the direction change degree determination means 28 determines that the angle θs is equal to or smaller than the predetermined angle θ2. It is determined whether or not there is (step S237D). Step S237D has the same contents as steps S237A, S237B, and S237C, and θ2 is set to 30 °, which is the same as θ1. Note that the value of θ2 does not have to be the same as θ1, and can be set to an arbitrary angle.

ステップS237Dで角度θsが角度θ2以下であると判定された場合は、主制御手段211は、描画終了点における待機時間teをt1、描画開始点における待機時間tsをt1、空走区間の空走速度VをV2に設定する(ステップS238G)。   If it is determined in step S237D that the angle θs is equal to or smaller than the angle θ2, the main control unit 211 sets the waiting time te at the drawing end point to t1, the waiting time ts at the drawing start point to t1, and the idling of the idling section. The speed V is set to V2 (step S238G).

待機時間te、待機時間ts、空走速度Vを上述のように設定するのは、実施の形態1のステップS12Gと同一の理由によるものである。   The reason for setting the standby time te, the standby time ts, and the idling speed V as described above is due to the same reason as in step S12G of the first embodiment.

また、ステップS237Dにおいて、角度θsが所定の角度θ2以下ではないと判定された場合は、フローはステップS238Hに進行し、主制御手段211は、描画終了点における待機時間teをt1、描画開始点における待機時間tsをt1、空走区間の空走速度VをV2に設定する(ステップS238H)。   If it is determined in step S237D that the angle θs is not equal to or smaller than the predetermined angle θ2, the flow proceeds to step S238H, and the main control unit 211 sets the waiting time te at the drawing end point to t1, and the drawing start point. Is set to t1, and the idling speed V in the idling section is set to V2 (step S238H).

待機時間te、待機時間ts、空走速度Vを上述のように設定するのは、実施の形態1のステップS12Hと同一の理由によるものである。   The reason for setting the standby time te, the standby time ts, and the idling speed V as described above is due to the same reason as in step S12H of the first embodiment.

ステップS238B〜S238Hが終了すると、主制御手段211は、ステップS238Aで設定された待機時間te、待機時間ts、空走速度Vを描画命令生成手段25に受け渡す。そして、描画命令生成手段25は、ステップS238Aで設定された待機時間te、待機時間ts、空走速度Vを描画命令に組み込む。   When steps S238B to S238H are completed, the main control unit 211 passes the standby time te, standby time ts, and idle speed V set in step S238A to the drawing command generation unit 25. Then, the drawing command generating means 25 incorporates the waiting time te, the waiting time ts, and the idling speed V set in step S238A into the drawing command.

以上により、描画命令が生成される。   Thus, a drawing command is generated.

以上、本発明の例示的な実施の形態1、2の描画装置、レーザ照射装置、描画制御方法、描画制御プログラム、及びこれを記録した記録媒体について説明したが、本発明は、具体的に開示された実施の形態に限定されるものではなく、特許請求の範囲から逸脱することなく、種々の変形や変更が可能である。 The drawing apparatus, the laser irradiation apparatus , the drawing control method, the drawing control program, and the recording medium storing the drawing according to the first and second exemplary embodiments of the present invention have been described above, but the present invention is specifically disclosed. The present invention is not limited to the embodiments described above, and various modifications and changes can be made without departing from the scope of the claims.

10 描画装置
11 レーザ発振器
12 方向制御モータ
13 方向制御ミラー
14 光学レンズ
15 集光レンズ
20 描画制御装置
21 描画位置決定手段
22 モード設定手段
23 描画順決定手段
24 描画命令生成手段
25 対象文字コード取得手段
26 フォントデータ取得手段
27 描画条件取得手段
28 方向変化度合演算手段
29 方向変化度合判定手段
30 描画速度演算手段
31 CPU
32、230 メモリ
33 CD−ROMドライブ
34 ネットワーク装置
35 ハードディスク
36 入力装置
37 ディスプレイ
38 CD−ROM(記憶媒体)
41 フォントデータDB
42 文字描画プログラム
43 描画条件DB
44 所要時間DB
50 リライタブル媒体
100 レーザマーキング装置
211 主制御手段
212 空走距離演算手段
213 空走距離判定手段
220 描画制御装置
221 線分群生成手段
DESCRIPTION OF SYMBOLS 10 Drawing apparatus 11 Laser oscillator 12 Direction control motor 13 Direction control mirror 14 Optical lens 15 Condensing lens 20 Drawing control apparatus 21 Drawing position determination means 22 Mode setting means 23 Drawing order determination means 24 Drawing command generation means 25 Target character code acquisition means 26 Font data acquisition means 27 Drawing condition acquisition means 28 Direction change degree calculation means 29 Direction change degree determination means 30 Drawing speed calculation means 31 CPU
32, 230 Memory 33 CD-ROM drive 34 Network device 35 Hard disk 36 Input device 37 Display 38 CD-ROM (storage medium)
41 Font data DB
42 Character drawing program 43 Drawing condition DB
44 Time required DB
DESCRIPTION OF SYMBOLS 50 Rewritable medium 100 Laser marking apparatus 211 Main control means 212 Empty travel distance calculation means 213 Empty travel distance determination means 220 Drawing control apparatus 221 Line segment group generation means

特開2004−90026号公報JP 2004-90026 JP 特開2004−341373号公報JP 2004-341373 A 特開2006−306063号公報JP 2006-306063 A 特許第3990891号公報Japanese Patent No. 3990891

Claims (12)

一又は複数の連続的な線分と、他の一又は複数の連続的な線分を描画する間に描画を行わない空走区間を設け、媒体に一又は複数の線分を含む描画対象を描画する描画順を決定する描画装置であって、
前記描画対象を描画するための描画情報に基づき、前記媒体に前記描画対象を描画する描画位置を決定する描画位置決定手段と、
前記描画情報又は前記描画位置に基づき、前記描画対象に含まれる線分と、前記線分に連続する前記空走区間を表す空走線分との方向変化度合を演算する方向変化度合演算手段と、
前記方向変化度合に基づいて、前記一又は複数の連続的な線分の描画終了点において、当該線分に連続する前記空走線分の空走を待機する第1待機時間、又は、前記空走線分に連続する前記一又は複数の連続的な線分の描画開始点において、当該空走線分に連続する前記線分の描画を待機する第2待機時間を設定する待機時間設定手段と
描画対象の描画時間が短くなるように描画順を決定する描画順決定手段と
を含む、描画装置
A drawing section including one or a plurality of continuous line segments and a free-running section in which drawing is not performed while the other one or a plurality of continuous line segments are drawn is provided on the medium. A drawing device for determining a drawing order for drawing ,
Drawing position determining means for determining a drawing position for drawing the drawing object on the medium based on drawing information for drawing the drawing object;
Direction change degree calculation means for calculating a direction change degree between a line segment included in the drawing object and an idle running line segment that is continuous with the line segment based on the drawing information or the drawing position; ,
Based on the direction change degree, at the drawing end point of the one or more continuous line segments, a first waiting time for waiting for idle running of the idle running line that continues to the line segment, or the empty A waiting time setting means for setting a second waiting time for waiting to draw the line segment continuous to the idle running line segment at a drawing start point of the one or more continuous line segments continuous to the running line segment; ,
A drawing apparatus , comprising: a drawing order determining unit that determines a drawing order so that a drawing time of a drawing target is shortened .
前記待機時間設定手段は、前記描画終了点を含む線分と、当該線分に連続する前記空走線分との方向変化度合が所定度合い以上の場合に、前記第1待機時間を設定する、請求項1に記載の描画装置The waiting time setting means sets the first waiting time when the direction change degree between the line segment including the drawing end point and the idle line segment continuing to the line segment is a predetermined degree or more. The drawing apparatus according to claim 1. 前記待機時間設定手段は、前記描画開始点を含む線分と、前記空走線分との方向変化度合が所定度合い以上の場合に、前記第2待機時間を設定する、請求項1に記載の描画装置The said waiting time setting means sets the said 2nd waiting time when the direction change degree of the line segment containing the said drawing start point and the said free running line segment is more than predetermined degree, The 2nd waiting time is set. Drawing device . 前記描画順決定手段は、前記描画対象を描画するための描画時間が短くなるように、前記第1待機時間又は前記前記第2待機時間を反映した前記描画対象の描画順を決定する請求項1乃至3のいずれか一項に記載の描画装置 Wherein the drawing order determining means such that said writing time for drawing the drawing target is shortened, determines the drawing object drawing order that reflects the first waiting time or the said second waiting time, claim The drawing apparatus according to any one of 1 to 3. 前記描画位置決定手段が決定した描画位置に基づき、描画対象に含まれる連続する線分群として扱う線分群を生成する線分群生成手段をさらに含み、
前記描画順決定手段は、前記線分群生成手段が生成する線分群を描画するための描画時間が短くなるように、前記線分群の描画順を決定する請求項1乃至3のいずれか一項に記載の描画装置
Based on the drawing position determined by the drawing position determining means , further includes a line segment group generating means for generating a line segment group to be treated as a continuous line segment group included in the drawing target ,
Wherein the drawing order determining means such that said writing time for drawing a line segment group segment group producing means generates becomes shorter, and determines the drawing order of the line group, any one of claims 1 to 3 The drawing apparatus described in 1.
前記待機時間設定手段によって前記第2待機時間が設定された場合に、前記一又は複数の線分を描画する描画速度よりも、前記空走区間を空走する空走速度を高く設定する速度設定手段をさらに含み、
前記描画順決定手段は、前記速度設定手段によって設定された前記描画速度及び前記空走速度が反映された前記描画順を決定する、請求項4又は5に記載の描画装置
A speed setting for setting a free running speed for running in the free running section higher than a drawing speed for drawing the one or more line segments when the second waiting time is set by the standby time setting means. Further comprising means,
The drawing apparatus according to claim 4, wherein the drawing order determination unit determines the drawing order in which the drawing speed and the idle speed set by the speed setting unit are reflected.
前記空走区間の距離が所定距離以上の場合に、前記空走区間を空走する空走速度を前記一又は複数の線分を描画する描画速度よりも高く設定する速度設定手段をさらに含む、請求項1乃至5のいずれか一項に記載の描画装置When the distance of the free running section is a predetermined distance or more, it further includes a speed setting means for setting a free running speed for running in the free running section higher than a drawing speed for drawing the one or more line segments, The drawing apparatus according to any one of claims 1 to 5. 前記決定された前記描画位置及び前記描画順を反映した描画命令を生成する描画命令生成手段をさらに含む、請求項1乃至7のいずれか一項記載の描画装置 Further comprising a drawing command generation means for generating a drawing command reflecting the determined said drawing position and the drawing order, the drawing apparatus according to any one of claims 1 to 7. レーザを照射するレーザ発振器と、
前記レーザ発振器が照射するレーザの照射方向を制御する方向制御ミラーと、
前記方向制御ミラーを駆動する方向制御モータと、
前記描画命令に基づき、前記レーザ発振器の照射出力の制御、及び前記方向制御モータの駆動制御を行う、請求項8に記載の描画装置
を有する、レーザ照射装置。
A laser oscillator for irradiating a laser;
A direction control mirror for controlling the irradiation direction of the laser irradiated by the laser oscillator;
A direction control motor for driving the direction control mirror;
A laser irradiation apparatus comprising: the drawing apparatus according to claim 8, which controls irradiation output of the laser oscillator and drive control of the direction control motor based on the drawing command.
一又は複数の連続的な線分と、他の一又は複数の連続的な線分を描画する間に描画を行わない空走区間を設け、媒体に一又は複数の線分を含む描画対象を描画する描画順をコンピュータが決定する描画制御方法であって、
前記コンピュータ
前記描画対象を描画するための描画情報に基づき、前記媒体に前記描画対象を描画する描画位置を決定
前記描画情報又は前記描画位置に基づき、前記描画対象に含まれる線分と、前記線分に連続する前記空走区間を表す空走線分との方向変化度合を演算
前記方向変化度合に基づいて、前記一又は複数の連続的な線分の描画終了点において、当該線分に連続する前記空走線分の空走を待機する第1待機時間、又は、前記空走線分に連続する前記一又は複数の連続的な線分の描画開始点において、当該空走線分に連続する前記線分の描画を待機する第2待機時間を設定し、
描画対象の描画時間が短くなるように描画順を決定する、描画制御方法。
A drawing section including one or a plurality of continuous line segments and a free-running section in which drawing is not performed while the other one or a plurality of continuous line segments are drawn is provided on the medium. A drawing control method in which a computer determines a drawing order for drawing,
The computer is
Based on the drawing information to draw the drawing object, and determines a drawing position to draw the drawing object on the medium,
Based on the drawing information or the drawing position, calculates the line segments included in the drawing object, the direction change degree of the idling-run segment representing the empty run section contiguous to said line,
Based on the direction change degree, at the drawing end point of the one or more continuous line segments, a first waiting time for waiting for idle running of the idle running line that continues to the line segment, or the empty At the drawing start point of the one or more continuous line segments continuous to the running line segment, setting a second waiting time to wait for the drawing of the line segment continuous to the idle running line segment ,
A drawing control method for determining a drawing order so as to shorten a drawing time of a drawing target .
コンピュータに、一又は複数の連続的な線分と、他の一又は複数の連続的な線分を描画する間に描画を行わない空走区間を設け、媒体に一又は複数の線分を含む描画対象を描画する描画順を決定する描画順決定処理を実行させるための描画制御プログラムであって、
前記コンピュータ
前記描画対象を描画するための描画情報に基づき、前記媒体に前記描画対象を描画する描画位置を決定
前記描画情報又は前記描画位置に基づき、前記描画対象に含まれる線分と、前記線分に連続する前記空走区間を表す空走線分との方向変化度合を演算し、
前記方向変化度合に基づいて、前記一又は複数の連続的な線分の描画終了点において、当該線分に連続する前記空走線分の空走を待機する第1待機時間、又は、前記空走線分に連続する前記一又は複数の連続的な線分の描画開始点において、当該空走線分に連続する前記線分の描画を待機する第2待機時間を設定し、
描画対象の描画時間が短くなるように描画順を決定する、描画制御プログラム。
Provide one or more continuous line segments in the computer and a free running section in which drawing is not performed while another one or more continuous line segments are drawn, and the medium includes one or more line segments A drawing control program for executing a drawing order determination process for determining a drawing order for drawing a drawing target,
Based on the drawing information for the computer to draw the drawing object, and determines a drawing position to draw the drawing object on the medium,
Based on the drawing information or the drawing position, a direction change degree between a line segment included in the drawing target and a free running line segment representing the free running section that is continuous with the line segment is calculated ,
Based on the direction change degree, at the drawing end point of the one or more continuous line segments, a first waiting time for waiting for idle running of the idle running line that continues to the line segment, or the empty At the drawing start point of the one or more continuous line segments continuous to the running line segment, setting a second waiting time to wait for the drawing of the line segment continuous to the idle running line segment ,
A drawing control program that determines a drawing order so that a drawing time of a drawing target is shortened .
請求項11に記載の描画制御プログラムを記録した記録媒体。 The recording medium which recorded the drawing control program of Claim 11 .
JP2010208579A 2009-10-19 2010-09-16 Drawing apparatus, laser irradiation apparatus, drawing control method, drawing control program, and recording medium recording the same Expired - Fee Related JP5672889B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010208579A JP5672889B2 (en) 2009-10-19 2010-09-16 Drawing apparatus, laser irradiation apparatus, drawing control method, drawing control program, and recording medium recording the same

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2009240399 2009-10-19
JP2009240399 2009-10-19
JP2010208579A JP5672889B2 (en) 2009-10-19 2010-09-16 Drawing apparatus, laser irradiation apparatus, drawing control method, drawing control program, and recording medium recording the same

Publications (2)

Publication Number Publication Date
JP2011104991A JP2011104991A (en) 2011-06-02
JP5672889B2 true JP5672889B2 (en) 2015-02-18

Family

ID=44229029

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010208579A Expired - Fee Related JP5672889B2 (en) 2009-10-19 2010-09-16 Drawing apparatus, laser irradiation apparatus, drawing control method, drawing control program, and recording medium recording the same

Country Status (1)

Country Link
JP (1) JP5672889B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7308217B2 (en) 2017-11-21 2023-07-13 コーニンクレッカ フィリップス エヌ ヴェ Shaving unit with retaining structure

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6326760B2 (en) 2012-12-10 2018-05-23 株式会社リコー Image recording system and image recording method
JP6431333B2 (en) * 2014-10-15 2018-11-28 キヤノン株式会社 Processing equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3429463B2 (en) * 1999-10-22 2003-07-22 サンクス株式会社 Laser marker
JP3629196B2 (en) * 2000-09-29 2005-03-16 サンクス株式会社 Laser marking device
JP4426124B2 (en) * 2001-01-31 2010-03-03 サンクス株式会社 Laser marking method, laser marking apparatus and program thereof
JP4610769B2 (en) * 2001-03-30 2011-01-12 パナソニック電工Sunx株式会社 Laser marking device
JP3806076B2 (en) * 2002-08-19 2006-08-09 株式会社東芝 Charged particle beam exposure data creation method, semiconductor device manufacturing method, and program
JP2004148322A (en) * 2002-10-28 2004-05-27 Sunx Ltd Laser marking device
JP2007218742A (en) * 2006-02-16 2007-08-30 Matsushita Electric Ind Co Ltd Route searching device and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7308217B2 (en) 2017-11-21 2023-07-13 コーニンクレッカ フィリップス エヌ ヴェ Shaving unit with retaining structure

Also Published As

Publication number Publication date
JP2011104991A (en) 2011-06-02

Similar Documents

Publication Publication Date Title
JP5397070B2 (en) Control device, laser irradiation device, optimized font data DB, recording method, program, storage medium
CN102227313B (en) Control device, laser projection device, recording method, computer program, and recording medium
US8581948B2 (en) Information processing apparatus, laser radiation device, render information generating method, control system, recording medium, and render information storage device
US9446601B2 (en) Drawing control method, laser irradiating apparatus, drawing control program, and recording medium having recorded therewith
JP6011271B2 (en) Information processing apparatus, system, information processing method, program, storage medium
JP5699481B2 (en) Drawing control apparatus, laser irradiation system, drawing method, drawing program, and storage medium
US8791970B2 (en) Information processing device, laser irradiation device, drawing information generating method, control system, and program
JP5655552B2 (en) Image processing device
JP5672889B2 (en) Drawing apparatus, laser irradiation apparatus, drawing control method, drawing control program, and recording medium recording the same
JP5458793B2 (en) Drawing control apparatus, laser irradiation apparatus, drawing control method, drawing control program, and recording medium recording the same
JP5983003B2 (en) Information processing apparatus, information processing method, system, and program
JP5810555B2 (en) Laser drawing device
JP2016177774A (en) Data generation device, data generation method, and program
JP5971041B2 (en) Information processing apparatus, system, information processing method, program, storage medium
JP5458794B2 (en) Drawing control apparatus, laser irradiation apparatus, drawing control method, drawing control program, and recording medium recording the same
JP5644287B2 (en) Drawing control apparatus, laser irradiation apparatus, drawing control method, drawing control program, and recording medium recording the same
JP6024445B2 (en) Information processing apparatus, system, information processing method, program, storage medium
JP5740808B2 (en) Control device and control method, laser irradiation system, control program, and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130813

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140729

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140805

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141003

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20141215

R151 Written notification of patent or utility model registration

Ref document number: 5672889

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees