1273044 • 九、發明說明: 【發明所屬之技術領域】 本發明係有關於一種印表機,特別係有關於一種可自 動清潔光學尺的印表機。 【先前技#ί】 ’ 參照第1 a圖,其係顯示習知之印表機10,包括一殼體 * 1、一導桿2、一喷墨裝置3以及一光學尺4。導桿2、喷 ❿ 墨裝置3以及光學尺4係設置於殼體1之中。參照第lb 圖,其係顯示第la圖中的A部分放大圖,其中,喷墨裝 置3設於導桿2之上,並沿該導桿2移動,光學尺4則平 行於該導桿2。搭配參照第lc圖,其係顯示喷墨裝置3的 背側結構,其中,噴墨裝置3包括一編碼器5,設於該喷 ' 墨裝置3的背侧,該光學尺4通過該編碼器5。印表機10 '透過該編碼器5讀取該光學尺4上的光學記號(光栅),而 判斷該喷墨裝置3的移動速度以及距離,藉此精準的控制 • 該喷墨裝置3的移動。 . 但印表機10經過長時間的列印之後,由於墨滴的喷濺 以及外界的微粒污染,光學尺4的表面會累積微塵、墨水 以及油污,污染光學尺4上的光學記號,導致該編碼器5 讀取錯誤,造成該喷墨裝置3發生列印圖案錯位、圖形失 真、開機死機以及碰撞殼體1等情形。 在習知技術中,清潔光學尺4的步驟繁瑣,需要拆卸 殼體1以及其他相對應的元件,以人工的方式進行清潔, 0535-A21501TWF(N2);F05109;LEMON 5 1273044 因此造成時間與金錢的損失,並造成使用者的不便。 【發明内容】 本發明即為了欲解決習知技術之問題,而提供之一種 印表機,包括一導桿、一光學尺、一喷墨裝置以及一清潔 , 單元。光學尺平行於該導桿。喷墨裝置設於該導桿之上, • 包括一編碼器,該光學尺穿過該編碼器。清潔單元用以清 Φ 潔該光學尺,其中,該光學尺穿過該清潔單元。 應用本發明之印表機,由於光學尺係直接由清潔單元 以自動化的方式進行清潔。因此,在清潔光學尺的過程中, 毋須拆解印表機的殼體以及元件,因而可提高光學尺清潔 過程的便利性,並節省光學尺清潔步驟的時間。 【實施方式】 φ 參照第2圖,其係顯示本發明之印表機100,包括一 殼體110、一導桿120、一喷墨裝置130以及一光學尺140。 ' 導桿120、喷墨裝置130以及光學尺140係設置於殼體110 • 之中。搭配參照第3圖,其係顯示喷墨裝置130的背侧結 構,其中,喷墨裝置130包括一編碼器150,設於該喷墨 裝置130的背侧,該光學尺140通過該編碼器150。印表 機100透過該編碼器150讀取該光學尺140上的光學記號 (光栅),而判斷該喷墨裝置130的移動速度、距蘼以及叙 置。該印表機100並包括一清潔單元200,設於該喷墨裝 0535-A21501TWF(N2);F05109;LEMON 6 1273044 ' 置130上。該清潔單元200容許該光學尺140穿過,並以 可選擇的方式接觸光學尺140,以對光學尺140進行清潔。 參照第4a圖,其係顯示清潔單元200的細部結構,清 潔單元200包括殼體201、一第一部件210以及一第二部 件220。第一部件210以及第二部件220設於殼體201之 中。該第一部件210呈E字形,該第二部件220呈U字形。 該第一部件210具有第一清潔元件211、第一磁力元件 • 212、第一彈力元件213以及第一注入管路214。第二部件 • 220包括第二磁力元件222。第一注入管路214連接該第一 清潔元件211。第一彈力元件213接觸該殼體201。在第 4a圖的實施例中,第一部件210為可動元件,第二部件220 為一固定元件;然而實際應用第一部件210亦可為清潔元 件211 —直接觸光學尺140的固定元件,而第二部件220 可選擇為可動元件或固定元件。當印表機處於待機或是列 印模式時,該第一部件210位於一第一位置A1,此時,第 一清潔元件211未接觸光學尺140。 參照第4b圖,當使用者欲清潔該光學尺140時,即控 - 制印表機100進入一清潔模式,此時,第一磁力元件212 - 亦即電磁鐵在電流作用下產生磁性,並與第二磁力元件 222相互吸引,藉以第一部件210從該第一位置A1移動至 該第二位置A2,且第一部件210的移動使第一彈力元件 213處於拉伸狀態。在A2位置下,第一清潔元件211觸及 光學尺140,並透過光學尺140與清潔單元200之間的相 對移動而清潔光學尺140。 0535-A21501 TWF(N2) ;F05109;LEMON 7 1273044 - 在清潔步驟之前,使用者可將水或是清潔液滴入第一 注入管路214,藉此濕潤第一清潔元件211而提升清潔效 果。 清潔完成後,解除第一磁力元件212與第二磁力元件 222之間的磁力,該第一部件210即在第一彈力元件213 的作用下從第二位置A2回復至第一位置A1。本實施例 中,第一彈力元件213為一彈簧。 ’ 參照第5a圖,其係顯示一變形例的清潔單元200’,其 ❿ 特點在於,該第二部件220呈E字形(搭配參照第5b圖), 更包括一第二清潔元件221、一第二彈力元件223以及一 第二注入管路224。該第二注入管路224連接該第二清潔 元件221。第二彈力元件223接觸殼體201。在第5a圖的 實施例中,該第一部件210與該第二部件220均為可動元 件。當印表機處於待機或是列印模式時,該第一部件210 以及第二部件220均位於一第一位置A1,此時,第一清潔 元件211以及第二清潔部件221均未接觸光學尺140。 參照第5c圖,當使用者欲清潔該光學尺14Ό時,即控 制印表機100進入一清潔模式,此時,第一磁力元件212 - 與該第二磁力元件222之間以電流感應產生磁力而相互吸 引,而使該第一部件210以及該第二部件220從該第一位 置A1移動至該第二位置A2。此時,該第一清潔元件211 以及該第二清潔元件221接觸該光學尺140,並透過光學 尺140與清潔單元200’之間的相對移動而清潔光學尺140。 在清潔步驟之前,使用者可將水或是清潔液滴入第一 0535-A21501TWF(N2);F05109;LEMON 8 1273044 β 注入管路214以及第二注入管路224,藉此濕潤該第一清 潔元件211以及該第二清潔元件221而提升清潔效果。 當清潔完成後,第一磁力元件212與該第二磁力元件 222之間的磁力解除,該第一部件210受到第一彈力元件 213的作用而從該第二位置Α2移動至該第一位置Α1,該 第二部件220受到第二彈力元件223的作用而從該第二位 置Α2移動至該第一位置Α1。第二彈力元件223為一彈簧。 * 參照第6圖,其係顯示本發明之另一變形例,其中清 • 潔單元200緊鄰該編碼器150。 特別說明的是,本發明之前述實施例中,第一磁力元 件212和第二磁力元件222均為電磁鐵,但實際應用中, 只要第一磁力元件212與第二磁力元件222的配合可達成 如上所述之清潔時靠近、清潔完畢分開的功能即可,比如 第一磁力元件212為電磁線圈,第二磁力元件222為永久 磁鐵等。 應用本發明之印表機100,由於光學尺4係直接由清 潔單元200以自動化的方式進行清潔。因此,在清潔光學 , 尺4的過程中,毋須拆解印表機100的殼體以及元件,因 而可提高光學尺清潔過程的便利性,並節省光學尺清潔步 驟的時間。 雖然本發明已以具體之較佳實施例揭露如上,然其並 非用以限定本發明,任何熟習此項技藝者,在不脫離本發 明作之精神和範圍内,仍可作些許的,更動與潤飾,因此本 0535-A21501TWF(N2);F05109;LEMON 9 1273044 發明之保護範圍當視後附之申請專利範圍所界定者為準。 0535-A21501TWF(N2);F05109;LEMON 10 1273044 【圖式簡單說明】 第la圖係顯示習知之印表機; 第lb圖係顯示第la圖中的A部分放大圖; 第lc圖係顯示習知喷墨裝置的背侧結構; 第2圖係顯示本發明之印表機; 第3圖係顯示本發明之喷墨裝置的背侧結構; 第4a圖係顯示本發明之清潔單元的細部結構; • 第4b圖係顯示清潔單元清潔光學尺的情形; • 第5a圖係顯示本發明之一變形例的清潔單元; 第5b圖係顯示第一部件與第二部件的立體圖; 第5c圖係顯示變形例中,清潔單元清潔光學尺的情形; 第6圖係顯示本發明之另一變形例。 【主要元件符號說明】 1〜殼體 2〜導桿 * 3〜噴墨裝置 - 4〜光學尺 - 5〜編碼器 10〜印表機 100〜印表機 110〜殼體 120〜導桿 130〜喷墨裝置 0535-A21501 TWF( N2) ;F05109; LEMON 11 1273044 140〜光學尺 150〜編碼器 200、200,〜清潔單元 201〜殼體 210〜第一部件 211〜第一清潔元件 212〜第一磁力元件 213〜第一彈力元件 • 214〜第一注入管路 220〜第二部件 221〜第二清潔元件 222〜第二磁力元件 223〜第二彈力元件 224〜第二注入管路 0535-A21501TWF(N2);F05109;LEMON 121273044 • EMBODIMENT DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a printer, and more particularly to a printer capable of automatically cleaning an optical scale. Referring to Fig. 1a, there is shown a conventional printer 10 comprising a housing *1, a guide rod 2, an ink jet device 3, and an optical scale 4. The guide rod 2, the ink jet device 3, and the optical scale 4 are disposed in the casing 1. Referring to FIG. 1b, which is an enlarged view of a portion A in the first drawing, wherein the ink jet device 3 is disposed above the guide rod 2 and moves along the guide rod 2, and the optical scale 4 is parallel to the guide rod 2 . Referring to FIG. 1c, which shows the back side structure of the ink jet device 3, wherein the ink jet device 3 includes an encoder 5 disposed on the back side of the ink jet device 3 through which the optical scale 4 passes. 5. The printer 10' reads the optical mark (grating) on the optical scale 4 through the encoder 5, and determines the moving speed and distance of the ink jet device 3, thereby precisely controlling the movement of the ink jet device 3. . However, after the printer 10 has been printed for a long time, the surface of the optical scale 4 accumulates dust, ink and oil stains due to the splash of ink droplets and external particle contamination, contaminating the optical mark on the optical scale 4, resulting in the The encoder 5 reads an error, causing the ink jet device 3 to have a print pattern misalignment, a pattern distortion, a boot failure, and a collision with the casing 1. In the prior art, the step of cleaning the optical scale 4 is cumbersome, and the housing 1 and other corresponding components need to be disassembled and cleaned manually, 0535-A21501TWF(N2); F05109; LEMON 5 1273044, thus causing time and money The loss and the inconvenience caused to the user. SUMMARY OF THE INVENTION The present invention provides a printer including a guide rod, an optical scale, an ink jet device, and a cleaning unit in order to solve the problems of the prior art. The optical scale is parallel to the guide. An ink jet device is disposed on the guide bar, and includes an encoder that passes through the encoder. The cleaning unit is used to clean the optical ruler, wherein the optical ruler passes through the cleaning unit. With the printer of the present invention, the optical ruler is cleaned in an automated manner directly by the cleaning unit. Therefore, in the process of cleaning the optical scale, it is not necessary to disassemble the housing and components of the printer, thereby improving the convenience of the optical rule cleaning process and saving the time for the optical rule cleaning step. [Embodiment] φ Referring to Fig. 2, there is shown a printer 100 of the present invention comprising a housing 110, a guide bar 120, an ink jet device 130, and an optical scale 140. The guide bar 120, the ink jet device 130, and the optical scale 140 are disposed in the housing 110. Referring to FIG. 3, which shows the back side structure of the ink jet device 130, the ink jet device 130 includes an encoder 150 disposed on the back side of the ink jet device 130 through which the optical scale 140 passes. . The printer 100 reads the optical mark (grating) on the optical scale 140 through the encoder 150, and determines the moving speed, distance, and description of the ink jet device 130. The printer 100 includes a cleaning unit 200 disposed on the ink jet assembly 0535-A21501TWF(N2); F05109; LEMON 6 1273044'. The cleaning unit 200 allows the optical scale 140 to pass through and selectively contact the optical scale 140 to clean the optical scale 140. Referring to Fig. 4a, which shows a detailed structure of the cleaning unit 200, the cleaning unit 200 includes a housing 201, a first member 210, and a second member 220. The first component 210 and the second component 220 are disposed in the housing 201. The first member 210 has an E shape, and the second member 220 has a U shape. The first component 210 has a first cleaning element 211, a first magnetic element 212, a first spring element 213, and a first injection line 214. The second component • 220 includes a second magnetic element 222. A first injection line 214 connects the first cleaning element 211. The first elastic element 213 contacts the housing 201. In the embodiment of FIG. 4a, the first component 210 is a movable component, and the second component 220 is a fixed component; however, the actual application of the first component 210 may also be the cleaning component 211 - directly contacting the fixing component of the optical scale 140, and The second component 220 can be selected as a movable element or a fixed element. When the printer is in the standby or printing mode, the first component 210 is in a first position A1, at which time the first cleaning element 211 is not in contact with the optical scale 140. Referring to FIG. 4b, when the user wants to clean the optical scale 140, the control-printer 100 enters a cleaning mode, at which time the first magnetic element 212, that is, the electromagnet, generates magnetism under the action of current, and The second magnetic element 222 is attracted to each other, whereby the first member 210 is moved from the first position A1 to the second position A2, and the movement of the first member 210 causes the first elastic member 213 to be in a stretched state. In the A2 position, the first cleaning element 211 touches the optical scale 140 and cleans the optical scale 140 through the relative movement between the optical scale 140 and the cleaning unit 200. 0535-A21501 TWF(N2); F05109; LEMON 7 1273044 - Before the cleaning step, the user can drop water or cleaning into the first injection line 214, thereby moistening the first cleaning element 211 to enhance the cleaning effect. After the cleaning is completed, the magnetic force between the first magnetic element 212 and the second magnetic element 222 is released, and the first member 210 is returned from the second position A2 to the first position A1 by the action of the first elastic member 213. In this embodiment, the first elastic element 213 is a spring. Referring to Fig. 5a, which shows a cleaning unit 200' according to a modification, the second member 220 is E-shaped (refer to FIG. 5b), and further includes a second cleaning member 221, a first The second elastic element 223 and a second injection line 224. The second injection line 224 is coupled to the second cleaning element 221. The second elastic member 223 contacts the housing 201. In the embodiment of Figure 5a, the first component 210 and the second component 220 are both movable elements. When the printer is in the standby mode or the printing mode, the first component 210 and the second component 220 are both located at a first position A1. At this time, the first cleaning component 211 and the second cleaning component 221 are not in contact with the optical ruler. 140. Referring to FIG. 5c, when the user wants to clean the optical scale 14 ,, that is, the printer 100 is controlled to enter a cleaning mode, at this time, the first magnetic element 212 - and the second magnetic element 222 are magnetically induced to generate a magnetic force. While attracting each other, the first member 210 and the second member 220 are moved from the first position A1 to the second position A2. At this time, the first cleaning member 211 and the second cleaning member 221 contact the optical scale 140, and the optical scale 140 is cleaned by relative movement between the optical scale 140 and the cleaning unit 200'. Before the cleaning step, the user can drop water or cleaning into the first 0535-A21501TWF (N2); F05109; LEMON 8 1273044 β injection line 214 and the second injection line 224, thereby wetting the first cleaning The element 211 and the second cleaning element 221 enhance the cleaning effect. When the cleaning is completed, the magnetic force between the first magnetic element 212 and the second magnetic element 222 is released, and the first member 210 is moved from the second position Α2 to the first position by the action of the first elastic element 213. The second member 220 is moved from the second position Α2 to the first position Α1 by the action of the second elastic member 223. The second elastic element 223 is a spring. * Referring to Fig. 6, there is shown another modification of the present invention in which the cleaning unit 200 is adjacent to the encoder 150. Specifically, in the foregoing embodiment of the present invention, the first magnetic element 212 and the second magnetic element 222 are both electromagnets, but in practical applications, the cooperation of the first magnetic element 212 and the second magnetic element 222 can be achieved. As described above, the function of closing and cleaning after cleaning is sufficient, for example, the first magnetic element 212 is an electromagnetic coil, and the second magnetic element 222 is a permanent magnet or the like. With the printer 100 of the present invention, since the optical scale 4 is directly cleaned by the cleaning unit 200 in an automated manner. Therefore, in the process of cleaning the optics 4, it is not necessary to disassemble the housing and components of the printer 100, thereby improving the convenience of the optical rule cleaning process and saving the time of the optical rule cleaning step. While the present invention has been described above in terms of the preferred embodiments, the invention is not intended to be limited thereto, and may be modified and modified without departing from the spirit and scope of the invention. Retouching, therefore, the scope of protection of the invention is as defined in the scope of the appended patent application, which is incorporated by reference. 0535-A21501TWF(N2); F05109; LEMON 10 1273044 [Simplified description of the drawing] The first drawing shows the conventional printer; the lb shows the enlarged part A of the first drawing; The back side structure of the ink jet device is shown; the second figure shows the printer of the present invention; the third figure shows the back side structure of the ink jet apparatus of the present invention; and the 4a figure shows the detailed structure of the cleaning unit of the present invention; • Figure 4b shows the cleaning unit cleaning the optical scale; • Figure 5a shows the cleaning unit according to a variant of the invention; Figure 5b shows the perspective view of the first part and the second part; Figure 5c In the modified example, the cleaning unit cleans the optical scale; Fig. 6 shows another modification of the present invention. [Main component symbol description] 1 ~ housing 2 ~ guide rod * 3 ~ inkjet device - 4 ~ optical ruler - 5 ~ encoder 10 ~ printer 100 ~ printer 110 ~ housing 120 ~ guide 130 ~ Inkjet device 0535-A21501 TWF (N2); F05109; LEMON 11 1273044 140~ optical scale 150~ encoder 200, 200, ~ cleaning unit 201 ~ housing 210 ~ first part 211 ~ first cleaning element 212 ~ first Magnetic element 213 to first elastic element 214 to first injection line 220 to second member 221 to second cleaning element 222 to second magnetic element 223 to second elastic element 224 to second injection line 0535-A21501TWF ( N2); F05109; LEMON 12