經濟部中央標準局貝工消費合作社印製 A7 _____B7 五、發明説明(丨) 食衣住行爲民生之所必須,隨著生活品質之提高,對. 於針織品的品質與數量的需求也日益提高。一般的針織.品 係由針織機將線料編織而成,如圖一所示,爲一般針織機 之示意圖,爲求布料圖案之美觀及增進生產效率,一般係 將布料之圖案資料儲存在一記憶裝置內,然後由控制單元 配合計時脈波,將儲存在此記憶裝置內的圖形資料,經由 資料匯流排送到針織機的選針器中,選針器即可依據送來 之資料,致動所需的選針片,以編織所需圖案。 如圖二所示,爲習知的針織機中,控制電腦與選針器 連接之示意圖。如此圖所示,一台控制電腦控制Μ個選 針器之動作,其中每一選針器上有多組選針片(撥動針用 ),且電腦將使用者輸入的繪圖檔編譯轉輸出至選針器1 至Μ。由於每一選針器需個別接不同的資料,所以選針 器上設有一位址開關,並對於每一選針器設定不同之位址 〇 如圖三所示,爲習知選針器之操作流程圖。參見此圖 ,爲將資料DATA X送到選針器X之上’需執行下列步 . 驟:. 1) 電腦輸出選針器X之位址; 2) 所有選針器均接收到電腦所送的位址,並進行位址 比對,以使所需之選針器X致能(enable); ' 3) 電腦藉由匯流排輸出資料DATA X ; / 4) 所有選針器都接收到電腦送出之資料DATA X,但是 由於在步驟2)之時只有所需之選針,器X致能,因此只有 _._____-i___;__ 本紙張尺度適用中國國家標準(CNS ) A4規棒(210 X 297公羞〉 '(請先閱讀背面之注意事項再填寫本頁) .裝· if 經濟部中央標準局員工消費合作社印製 A7 __ B7 五、發明説明(>) 選針器X可以進行資料轉換,選針片依據所接收的資料·· 改變狀態。圖四所示爲習知選針器控制時序圖。 習知的選針器係依據上述流程而分別控制圖二中的選 針器1,2,..,M »然而一台針織機上多數有數十個以上的選 針器,如果要對於每一個選針器都要依序進行資料傳輸動 作,且要維持一定的生產率,則需多個電腦及多個傳輸界 面,以達成所需的通訊速度,然而這亦會增加生產成本。 因此本發明之目的在於提供一種可增進選針器通訊速 度之控制方法,以達到可利用PC架構之控制電腦即可進 行高速率控制選針器之目的。Printed by the Central Standards Bureau of the Ministry of Economic Affairs, Shellfish Consumer Cooperative A7 _____B7 V. Description of the Invention (丨) Food, clothing and housing are necessary for people's livelihood. With the improvement of the quality of life, the demand for the quality and quantity of knitwear is increasing . General knitting. The product is knitted by a knitting machine. As shown in Figure 1, it is a schematic diagram of a general knitting machine. In the memory device, the control unit cooperates with the timing pulse to send the graphic data stored in the memory device to the needle selector of the knitting machine through the data bus. The needle selector can then Move the desired selector to knit the desired pattern. As shown in Figure 2, it is a schematic diagram of the connection between a control computer and a needle selector in a conventional knitting machine. As shown in the figure, a control computer controls the movements of M needle selectors, where each needle selector has multiple sets of needle selectors (for turning needles), and the computer compiles and outputs the drawing files input by the user. To needle selector 1 to M. Since each needle selector needs to connect different data individually, there is an address switch on the needle selector, and a different address is set for each needle selector. As shown in Figure 3, it is the conventional needle selector. Operation flowchart. Refer to this figure, in order to send the data DATA X to the selector X, you need to perform the following steps: 1) The computer outputs the address of the selector X; 2) All the selectors are sent by the computer Address, and perform address comparison to enable the required selector X. (3) The computer outputs data DATA X through the bus; / 4) All the selectors receive the computer The data DATA X is sent out, but because only the required needles and device X are enabled at step 2), only _._____- i___; __ This paper size applies the Chinese National Standard (CNS) A4 gauge (210 X 297 public shame> '(Please read the precautions on the back before filling out this page). Install · if printed by A7 __ B7 by the Consumers' Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs 5. Explanation of the invention (>) Needle selector X can be performed Data conversion, needle selection changes state according to the received data. Figure 4 shows the control timing diagram of the conventional needle selector. The conventional needle selector controls the needle selector in Figure 2 according to the above process. 1, 2, .., M »However, most knitting machines have dozens of needle selectors. Each needle selector must perform data transmission in sequence, and to maintain a certain productivity, multiple computers and multiple transmission interfaces are required to achieve the required communication speed, but this will also increase production costs. Therefore, the present invention The purpose is to provide a control method that can increase the communication speed of the needle selector, so as to achieve the purpose of controlling the needle selector at a high rate by using a PC with a control computer.
爲了達成上述目的,本發明之方法進行下列步驟,如 果要對第k組選針器進行資料傳輸,亦即電腦輸出N筆 資料 DATA 1^.^至選針器(k-l)N+l,(k-l)N+2,._,kN 1) 電腦輸出選針器(k-l)N+l,(k-l)N+2,.·,kN之群 組位址At ; 2) 所有Μ個選針器都收到電腦輸出之群組位址Ak ,並進行群組比對,此時只有在第k組選針器{選針 器(k-l)N+l,(k-l)N + 2,.., kN}會被致能(enabie); 3) 電腦將多筆資料DATA lk..Nk整理壓縮爲一筆資 料DATA X輸出; 4) ^所有Μ個選針器皆收到_腦所送出之壓縮資料 DATA X,而依據步驟2,、只有第k組選針.器會被致 能,因此才能對於資料進行解壓縮、分離出所需資 ·· _____ 料,.並轉換至選針器上。 本紙張尺度賴中關家辟(CNS ) A4· ( 21GX297公^ ) ' ~ ' ! 裝 II (請先閲讀背面之注意事項再填寫本頁) ,ιτ Τ A7 B7 經濟部中央標準局員工消費合作社印製 五、發明説明(孑) 本:發明之其他特點及目的,可配合附圖及其較佳實施 例說明’而更易了解。 圖示說明 爲~~般針織機之示意圖; 爲習知的針織機中控制電腦與選針器連接之示意 圖; 圖三爲習知選針器之操作流程圖; 圖四所示爲習知選針器控制時序圖; 圖五爲本發明方法之方塊圖; 圖六爲本發明之流程圖; 圖七爲本發明之時序圖: 圖八爲實現本發明之電路方塊圖; 圖九爲實現本發明之詳細電路圖。 圖號說明. 102個別位址開關 104群組位址比對單元 106暫存器 解壓縮單元 . 110輸出部份 ' •發明之詳細說明 如圖五所示.,爲本,明方‘法之方塊圖,和圖二相較, 本發明方法_所有Μ個選針器分爲數個群組, 每個群組有Ν個學針器,亦即Μ個選針器分爲(1,2,·...Ν), (N+l,Ν + 2...2Ν), (2N+U.-..3N)...數個組群。由於每個匯流 • > ^ (請先閲讀背面之注意事項t填寫本頁) -* 丁 良 本紙張尺度適用中國國家標準(CNS ) A4規格(210X297公釐) A7 B7 經濟部中央橾準局貝工消費合作社印褽 五、發明説明(卜) 排連到選針器的數目下降(M>N),因此可以使用PC架構. 之控制電腦以達到高度控制的目的。 ' 參見圖六,爲本發明之流程圖,本發明之方法進行下 列步驟,如果要對第k組選針器進行資料傳輸,亦即電腦 輸出N筆資料DATA 1卜汍至選針器(k-l)N十1,(k-l)N+2,.., kN .1) 電腦輸出選針器(k-l)N + .l,(k-l)N + 2,.., kN之群 組位址At ; 2) 所有Μ個選針器都收到電腦輸出之位址Ak,並 進行群組比對,此時只有在第k組選針器{選針器 (k-l)N+l,(k-l)N + 2,·.,kN}會被致能(enable); 3) 電腦將多筆資料DATA lk..Nt整理壓縮爲一筆資 料DATA X輸出; 4) 所有Μ個選針器皆收到電腦所送出之壓縮資料 DATA X,而依據步驟2,只有第k組選針器會被致 能,因Jfc才能對於資料進行解壓縮、分離出所需資 料,並轉換至選針澀上。 .依次進行上述步驟1-4,即可對於不同組群的所有.Μ個選 ..針器送出選針器資料。' ? ... 參見圖七,爲本發g|之時序圖,可看出本發明可以在. 一個時脈週期.同時控制N個選針器,.因此效率大幅提升_ 。 . 圖八及圖九分別爲實現本發明之電路方塊圖及詳細電 路圖範例,但須知本發明之原理可以藉由其他不同之電路 -se (請先閱讀背面之注意事項再填寫本頁)In order to achieve the above object, the method of the present invention performs the following steps. If data is to be transmitted to the k-th needle selector, that is, the computer outputs N data DATA 1 ^. ^ To the needle selector (kl) N + 1, ( kl) N + 2, ._, kN 1) Computer output needle selector (kl) N + l, (kl) N + 2, .., kN group address At; 2) All M needle selectors Both receive the group address Ak output from the computer and perform group comparison. At this time, only the k-th needle selector {needle selector (kl) N + l, (kl) N + 2, .. ,, kN} will be enabled (enabie); 3) The computer will compress and compress multiple pieces of data DATA lk..Nk into one piece of data DATA X output; 4) ^ All M needle selectors will receive the compressed data sent by the brain DATA X, and according to step 2, only the k-th needle selection device will be enabled, so the data can be decompressed, the required materials are separated, _____ materials, and transferred to the needle selection device. This paper size is based on Zhongguanjiapi (CNS) A4 · (21GX297) ^ ~ '! II (Please read the precautions on the back before filling this page), ιτΤ A7 B7 Employees' Cooperatives, Central Standards Bureau, Ministry of Economic Affairs Printed 5. Description of the invention (孑) The other features and purposes of the invention can be more easily understood with reference to the drawings and the description of the preferred embodiments. The illustration is a schematic diagram of a general knitting machine; it is a schematic diagram of the connection between a control computer and a needle selector in a conventional knitting machine; Figure 3 is a flowchart of the operation of a conventional needle selector; Figure 4 shows a conventional selection Needle control timing diagram; Figure 5 is a block diagram of the method of the present invention; Figure 6 is a flowchart of the present invention; Figure 7 is a sequence diagram of the present invention: Figure 8 is a block diagram of a circuit for implementing the present invention; Detailed circuit diagram of the invention. Figure number description. 102 individual address switches 104 group address comparison unit 106 temporary register decompression unit. 110 output section '• The detailed description of the invention is shown in Figure 5. This method is based on the clear method Block diagram. Compared with Figure 2, the method of the present invention_all M needle selectors are divided into several groups, each group has N learner needle selectors, that is, M needle selectors are divided into (1, 2 ... N), (N + 1, N + 2 ... 2N), (2N + U .- .. 3N) ... several groups. As each confluence • & ^ (please read the note on the back first to fill in this page)-* Ding Liang This paper size is applicable to Chinese National Standard (CNS) A4 specification (210X297 mm) A7 B7 Central Bureau of Standards, Ministry of Economic Affairs Printed by Beigong Consumer Cooperative Co., Ltd. 5. Description of the invention (b) The number of rows connected to the needle selector has decreased (M &N; N), so the PC architecture can be used to control the computer to achieve a high degree of control. '' Refer to FIG. 6, which is a flowchart of the present invention. The method of the present invention performs the following steps. If data is to be transmitted to the k-th needle selector, the computer outputs N data DATA 1 to the needle selector (kl ) N ten 1, (kl) N + 2, .., kN .1) Computer output needle selector (kl) N + .l, (kl) N + 2, .., kN group address At; 2) All M needle selectors receive the address Ak output from the computer and perform group comparison. At this time, only the k-th needle selector {needle selector (kl) N + l, (kl) N + 2, ·., KN} will be enabled; 3) The computer will compress and compress multiple pieces of data DATA lk..Nt into one piece of data DATA X output; 4) All M needle selectors will be received by the computer The compressed data DATA X is sent. According to step 2, only the k-th needle selector will be enabled. Because Jfc can decompress the data, isolate the required data, and convert it to the needle selection. Perform the above steps 1-4 in sequence, and you can send the needle selector data to all the M selectors in different groups. '? ... See Figure 7 for the timing chart of this issue g | It can be seen that the present invention can control N needle selectors at the same time in one clock cycle, so the efficiency is greatly improved_. Figure 8 and Figure 9 are circuit block diagrams and detailed circuit diagram examples for implementing the present invention, but it should be noted that the principle of the present invention can be implemented by other different circuits -se (Please read the precautions on the back before filling this page)
本紙張尺度適用中國國家標準‘(〇>15)14規格7210^/297公秦) 經濟部中央榡準局員工消費合作杜印製 A7 B7 五、發明説明(t) 實行。 參見第八圖’爲實現本發明選針器控制方法的一個選 針器控制電路方塊圖。如此圖所示,此選針器控制電路主 要包含—個別位址開關102、一群組位址比對單元104、 ~暫存器106、一解壓縮單元1〇8及一個輸出部份11〇。 如此圖所示,在進行資料傳輸前,係先進行一個初始 化動作,由每個選針器±的控制電路的個別位址開關1 02 進行,以設定每個選針器在該群組中的資料起始段位,然 後此設定資料係記錄在暫存器1 06,以供後續使用。一般 ---------— 習知的選針器資料,係先傳輸位址資料,以選定特定選針 器;再傳輸圖形資料,以控制該特定選針器之出針狀況。 例如,由主電腦可以送出一個位元組的位址資料,以控制 多達256個選針器,然後再送出一個位元組的圖形資料至 該特定選針器,以控制該選針器之出針狀況》然而在習知 的選針器控制電路中,由於選針器只利用圖形資料中的某 個節段,.例如可能只使用一個位元組中的一位元資料:,造 -- 成資料傳輸效率無法提升。在本發明中,係利用群組位址 比對單元104來比對位址,以選擇一個組群的選針器,例 如,該群組位.址比對單元104可以比對一個位元組(..8 bit) 中的前5個位元,因此會有23 = 8値選針器會被致能。接 ... ·. . 下來所送的圖形資料係包含此群組(8個選針器)的出針 資料,而每個選針器所選用的資·料位址由在該選針器上暫 存器1 06中所儲存的起始段落資料決:定,再經由解壓縮單. - ·. 'v. · _元108將該段資料取出·,,再經由輸出部份110將此出針資 本紙張尺度適用中國國家標準(CNS ) A4規格(210X297公釐) (請先閱讀背面之注意事項再填寫本頁) 裝 經濟命中央標準局員工消費合作社印裝 A7 B7 五、發明説明(έ) 料送到該選針器的出針電路(未圖示),即可進行該選針· 器的出針動作。 如上所述,本發明中可藉由群組位址比對單元1 0 4比 對而選擇一組資料,而同時對該組資料進行資料傳輸工作 ;再利用暫存器1,06中所儲存的起始段落資料及解壓縮單 元10.8將壓縮資料解壓取出。因此可以大幅提升選.针器之 資料-輸效率。 第九圖爲實現本發明選針器控制方法的一個選針器控 制電路之詳細電路圖,但是須知本發明之電路可以依據本 發明之原理而加以變化。 按,以上所述,僅爲本發明之一具體實施例,惟本發 明之構造並不偈限於此,任何熟悉此項技藝者在本發明之 領域內,所實施之變化或修飾皆被涵蓋在本案之專利範圍 內。 97公釐) 本紙張尺度適用中國國家標準(CNS〉A4規格(210x5This paper size applies the Chinese national standard ‘(〇 > 15) 14 size 7210 ^ / 297 Gong Qin) Consumption cooperation by employees of the Central Bureau of Standards of the Ministry of Economic Affairs Du printed A7 B7 V. Description of invention (t) Implementation. See FIG. 8 'for a block diagram of a selector control circuit for implementing the selector control method of the present invention. As shown in the figure, the needle selector control circuit mainly includes an individual address switch 102, a group address comparison unit 104, a ~ register 106, a decompression unit 108, and an output section 11. . As shown in the figure, before data transmission, an initialization operation is performed first, which is performed by the individual address switch 1 02 of the control circuit of each needle selector ± to set each needle selector in the group. The beginning of the data, and then this setting data is recorded in the register 1 06 for subsequent use. General ---------— The conventional needle selector data is to first transfer the address data to select a specific needle selector; then transfer the graphic data to control the needle out status of the specific needle selector. For example, the host computer can send a byte of address data to control up to 256 needle selectors, and then send a byte of graphic data to the specific needle selector to control the needle selector. However, in the conventional needle selector control circuit, since the needle selector only uses a certain segment in the graphic data, for example, it may use only one bit of data in one byte :, make- -The efficiency of data transmission cannot be improved. In the present invention, the group address comparison unit 104 is used to compare addresses to select a group of needle selectors, for example, the group bits. The address comparison unit 104 can compare one byte. (..8 bit) the first 5 bits, so there will be 23 = 8 値 the needle selector will be enabled. Connect ... ·.. The graphic data sent down contains the needle output data of this group (8 needle selectors), and the material and material address selected by each needle selector is determined by the needle selector. The starting paragraph data stored in the upper register 1 06 is determined: then the decompression list is used.-·. 'V. · _Yuan 108 Take out the paragraph data ·, and then use the output section 110 to copy it. Needle capital paper size applies Chinese National Standard (CNS) A4 specification (210X297 mm) (Please read the precautions on the back before filling this page) Printed by the Central Bureau of Economics and Consumers Cooperative printed A7 B7 V. Description of the invention ( έ) The material is sent to the needle ejection circuit (not shown) of the selector, and the needle ejection operation of the selector can be performed. As described above, in the present invention, a group of data can be selected by the group address comparison unit 104 comparison, and data transmission work is performed on the group of data at the same time; the data stored in the temporary register 1,06 is used again. The first paragraph of data and the decompression unit 10.8 extract the compressed data. Therefore, the data-transmission efficiency of the needle selector can be greatly improved. The ninth figure is a detailed circuit diagram of a needle selector control circuit for realizing the needle selector control method of the present invention, but it should be noted that the circuit of the present invention can be changed according to the principle of the present invention. According to the above, it is only one specific embodiment of the present invention, but the structure of the present invention is not limited to this. Any person skilled in the art in the field of the present invention, the changes or modifications implemented are covered in Within the scope of the patent in this case. 97 mm) This paper size applies to Chinese national standards (CNS> A4 size (210x5