200813895 九、發明說明 【發明所屬之技術領域】 本發明係有關於驅動卡片輸送機構之步進電動機控制 裝置,特別是有關於計時器之驅動計時卡輸送機構之步進 電動機控制裝置。 【先前技術】 例如一般爲了管理上班時間所用之計時器係藉由卡片 輸送機構將插入至卡片插入口之計時卡輸送到所定位置的 構造。 作爲這種計時器的計時卡輸送機構之驅動來源,因爲 有適合於正確地控制旋轉角度及使用壽命長等優點而使用 步進電動機(也稱脈衝電動機)的例子也不少(例如專利 文件1 ) 〇 專利文件1所開示之計時器係在計時卡之插入口之下 方位置,具備有在以被插入之計時卡的先端部推上時,則 會動作之卡片檢測開關。然後,依據前記之卡片檢測開關 所致之計時卡的檢測,卡片輸送機構會將該計時卡輸送到 所定位置。 專利文獻1日本特開2004-1 1 0794號公報 【發明內容】 發明所欲解決之課題 但是,在專利文獻1的計時器之卡片輸送機構之控制 -4- 200813895 下’將卡片輸送局速化時,在計時卡排出時’因爲計時卡 順勢飛出而上下移動,可能會使暫時OFF的前述卡片檢測 開關再度成爲ON,有造成計時卡之吸入動作開始之虞。 本發明係以有鑑於上述問題所發明者,目的爲謀求卡 片輸送動作之高速化,提供能實現正確而且安定的卡片輸 送控制之步進電動機控制裝置。 用以解決課題之手段 與本發明有關之步進電動機控制裝置係作爲驅動卡片 輸送機構之步進電動機控制裝置其特徵爲具備:從用以排 出卡片之卡片輸送動作開始到該當卡片之插入側先端部到 達所定位置爲止,供給第1驅動脈衝給前述步進電動機, 到達前述所定位置之後,供給比前述第1驅動脈衝之脈衝 速度慢之第2驅動脈衝給前述步進電動機之驅動脈衝供給 手段。 又,亦可作爲以下構造,更一步具備:用以排出前述 卡片之卡片輸送動作開始時,依據前述第1驅動脈衝之脈 衝速度,計算出前述卡片之插入側先端部到達前述所定位 置爲止所需之脈衝數的所要脈衝數計算手段,及計算供給 至刖述步進電動機之則述第1驅動脈衝之脈衝數的脈衝計 數器;到達前述所定位置之有無係依據前述所要脈衝數計 算手段的計算結果及前述脈衝計數器的計數結果來判定。 又’亦可作爲以下構造,更一步具備:用以排出前述 卡片之卡片輸送動作開始時,依據前述第1驅動脈衝之脈 -5- 200813895 衝速度,計算出前述卡片之插入側先端部到達前述所定位 置爲止所需之時間的所要時間計算手段’及用來計時對前 述步進電動機之前述第1驅動脈衝之供給時間的計時器; 到達前述所定位置之有無係依據前述所要時間計算手段的 計算結果及前述計時器的計時結果來判斷。 又,與本發明有關之計時器係具備有上述任一構成之 步進電動機控制裝置爲特徵。 又,與本發明有關之電腦程式其特徵爲使電腦作爲以 下手段而作用:從用以排出卡片之卡片輸送動作開始到該 當卡片之插入側先端部到達所定位置爲止,供給第1驅動 脈衝給驅動卡片輸送機構的前述步進電動機,到達前述所 定位置之後,供給比前述第1驅動脈衝之脈衝速度慢之第 2驅動脈衝給前述步進電動機的驅動脈衝供給手段。 發明效果 如上所述’依據本發明之步進電動機控制裝置,藉由 調整用以排出卡片之卡片輸送速度。可使卡片的排出安定 化。又,藉由使用此步進電動機控制裝置,能夠提供可以 高速動作之計時器。 【實施方式】 以下’參照圖面來說明關於本發明之步進電動機控制 裝置的一實施型態。 圖1係揭不女裝有關於本實施型態之步進電動機控制 -6 - 200813895 裝置的計時器1之槪略構成圖。 於圖1中,3係計時卡2用以插入之卡片插入口; 4 係從卡片插入口 3插入計時卡2時,作爲檢測用之卡片檢 測感測器。5係用以吸入被插入之計時卡2,或是用以拉 出被插入之計時卡2的滾軸;6a、6b係設於滾軸5之左右 一對的輸送滾輪。7係滾軸5之驅動(旋轉)來源之輸送 電動機;8係傳達輸送電動機7之驅動力至滾軸5之正時 皮帶(timing belt)。9a,9b係被吸入之計時卡2到達最深 吸入位置時,作爲檢測用之左右一對的卡片檢測感測器。 輸送電動機7係依照被給予的脈衝信號(驅動脈衝) ,以已決定之步單位旋轉之步進電動機(脈衝電動機)。 卡片檢測感測器4、9a、9b係用以檢測計時卡2之先 端部,例如由發光元件與受光元件(任一皆未圖示)所構 成之透過型之光感測器。再者,感測器的種別沒有特別限 定,例如反射型之感測器光感測器也沒有關係。或是,藉 由接觸計時卡2之先端部,使控制桿成爲ON而動作的開 關式感測器也可。 圖2係揭示關於本實施型態之步進電動機控制裝置20 之內部構造的區塊圖。步進電動機控制裝置20係由控制 部2 1,及驅動脈衝發生部22,及驅動部23,及所要脈衝 計算部24,及脈衝計數器25,與前述卡片檢測感測器4、 9 a、9 b所構成。 控制部21係具備有:未圖示之微電腦,及儲存有界 定微電腦所致之處理程序之程式的ROM,及工作區域等所 200813895 使用的RAM,而執行步進電動機控制裝置2 0全部的控制 。又,當卡片檢測感測器4、9a、9b檢測計時卡2之先端 部時,從各檢測感測器的信號會輸入控制部2 1。又,於計 時卡2進行印字的位置有關資訊(印字位置資訊),及表 示印字動作結束的信號(印字結束信號)等,由執行計時 器1全體之控制的主控制裝置3 〇 (例如由微電腦、ROM、 RAM等所構成)來通知。或是,控制部21係作爲主控制 φ 裝置30之一功能部的構成也可。 驅動脈衝發生部22係發生使輸送電動機7之未圖示 驅動軸以所定旋轉速度旋轉的驅動脈衝。又,驅動脈衝發 生部22係例如由他激方式之震盪回路所構成,根據來自 控制部21的震盪控制信號,能夠調整驅動脈衝成爲所希 望的脈衝速度。 驅動部23係依據驅動脈衝及來自控制部2 1來控制信 號,進行輸送電動機7之前述驅動軸的旋轉控制。 • 所要脈衝計算部24係依照來自控制部2 1的計算指令 信號,從現在位置到搬送(卡片輸送)路徑上之所定位置 (例如,從滾軸5之中心軸往卡片吸入方向8mm的位置 )爲止’計時卡2之搬送所需脈衝數遵從驅動脈衝發生部 22所發生驅動脈衝之脈衝速度來計算出。然後,將其計算 結果通知控制部2 1。 脈衝計數器25係依據驅動脈衝及由控制部2 1來的控 制信號,計數驅動脈衝發生部22所發生驅動脈衝之脈衝 數。然後’將其計數値通知控制部2 !。 -8 - 200813895 如上所述,依圖3之流程表來說明構成之步進電動機 控制裝置20進行之關於卡片輸送控制的處理順序。 卡片輸送控制處理係從計時卡2被插入的計時器1的 卡片插入口 3,該計時卡2之先端部到達卡片檢測感測器 4的檢測領域爲止而開始。更具體的說,從卡片檢測感測 器4檢測計時卡2之先端部之檢測信號輸入控制部21時 開始。 φ 首先,控制部21係將吸入用驅動脈衝之震盪開始信 號送出到驅動脈衝發生部22。驅動脈衝發生部22係接收 來自控制部2 1的震盪開始信號時,發生所定脈衝速度之 吸入用驅動脈衝。又,控制部2 1係向驅動部23送出吸入 用驅動控制信號。接受該吸入用驅動控制信號之驅動部23 係供給輸送電動機7由驅動脈衝發生部22送來之析入用 驅動脈衝(步驟S301 )。 對輸送電動機7供給吸入用驅動脈衝時,驅動卡片輸 # 送機構(本實施型態下爲滾軸5、輸送滾軸6a、6b ),開 始吸入計時卡2。具體的說,輸送電動機7之未圖示之驅 動軸開始旋轉,該旋轉所致之驅動力會經由正時皮帶8, 傳達至滾軸5。於是,該滾軸5的旋轉會開始,藉由輸送 滾軸6a、6b,將插入的計時卡2吸入內部。 然後,當計時卡2之先端部到達最深吸入位置(即最 深點)時(步驟S302爲YES),被卡片檢測感測器9a、9b 檢測出,送出檢測信號至控制部2 1。控制部2 1係收到來 自卡片檢測感測器9a、9b的前述檢測信號後,向驅動脈 -9 - 200813895 衝發生部22送出震盪停止信號。藉此,吸入用驅動控制 信號之供給被停止(步驟S3 03 ),該計時卡2之吸入處 理也隨而停止。 計時卡2之吸入處理之停止中,來自主控制裝置30 的印字位置資訊會通知控制部2 1。接著,控制部2 1會根 據有關的印字資訊,到於計時卡2之所定印字欄進行印字 的位置(印字位置)爲止,進行計時卡2拉出控制。 φ 具體來說,控制部2 1,會將有關拉出用驅動脈衝之震 盪開始信號送出至驅動脈衝發生部22。驅動脈衝發生部 / 22係接收來自控制部2 1的震盪開始信號後,發生拉出用 驅動脈衝。又,控制部2 1係向驅動部2 3送出拉出用驅動 控制信號。接受該拉出用驅動控制信號之驅動部23係控 制輸送電動機7使輸送電動機7之驅動軸旋轉方向成爲與 吸入時逆向,供給輸送電動機7由驅動脈衝發生部22送 來的拉出用驅動脈衝(步驟S3 04 )。 • 當供給輸送電動機7拉出用驅動脈衝時,輸送電動機 7之驅動軸以吸入時之逆向旋轉,而滾軸5也與吸入時之 逆向旋轉。藉此計時卡2被拉出至上部。 然後,當計時卡2被拉出至印字位置時(步驟S3 05 爲YES )’控制部2 1會向驅動脈衝發生部22送出震盪停 止信號。藉此,拉出用驅動控制信號之供給被停止(步驟 S306),計時卡2之拉出處理也隨而停止。 在拉出處理停止中時,由未圖示之印字部份,在計時 卡2的印字欄寫入所定資訊(例如,上下班資訊)(印字 -10- 200813895 處理)。此印字處理結束時(步驟S 3 0 7爲YE S ),由主 控制裝置3 0送出印字結束信號給控制部2 1。 控制部2 1係接收由主控制裝置3 0來的前述印字結束 信號後,向驅動脈衝發生部22送出作爲排出用驅動脈衝 之第1驅動脈衝與跟著的震盪開始信號。驅動脈衝發生部 22係接收由控制部2 1來的前述震盪開始信號後,發生第 1 驅動脈衝(例如,600pps(pulse per second))。又, ^ 控制部2 1係向驅動部23送出排出用驅動控制信號。接受 該排出用驅動控制信號之驅動部2 3係供給輸送電動機7 由驅動脈衝發生部2 2送來的第1驅動脈衝(步驟S 3 0 8 ) 。如此,以控制部2 1、驅動脈衝發生部22及驅動部23, 供給輸送電動機7第1驅動脈衝(步驟S 3 0 8 )。 第1驅動脈衝的供給開始後,滾軸5開始旋轉,藉由 輸送滾軸6a、6b,將計時卡2朝要被排出之卡片插入口 3 搬送。 # 又,控制部2 1係在向驅動脈衝發生部22送出作爲排 出用驅動脈衝之第1驅動脈衝與跟著的震盪開始信號的同 時,向所要脈衝數計算部24送出算數指令信號。所要脈 衝數計算部24係接收來自控制部2 1的前述計算指令信號 後,計算計時卡2之先端部到達搬送路線上之所定位置爲 止所需要的脈衝數(所要脈衝數)(步驟S3 09 )。 前述所定位置係以安定計時卡2的排出爲目的而設定 ,爲計時卡2之搬送(卡片輸送)速度之減速點(減速位 置)。此減速位置係設定爲計時卡2從輸送滾軸6 a、6 b -11 - 200813895 離開時的位置(例如,離滾軸5之中心軸8 m m之位置) 〇 所要脈衝數計算部24係基於從控制部2 1取得的現在 位置資訊(由主控制裝置3 0所通知之印字位置資訊)及 前述減速位置之資訊,與第1驅動脈衝之脈衝速度,進行 所要脈衝數的計算,並通知控制部2 1其計算結果。 進而,控制部2 1係以向所要脈衝數計算部24送出算 數指令信號的相同時機,向脈衝計數器2 5送出計數開始 信號。脈衝計數器25係接收來自控制部2 1的前述計數開 始信號時,開始驅動脈衝發生部22所發生之第1驅動脈 衝之計數(即脈衝數之計數)(步驟S3 10)。 如上,當用以排出計時卡2的卡片輸送開始時,控制 部2 1係利用比較所要脈衝數計算部24所計算出之所要脈 衝數,與由脈衝計數器25所計數之脈衝數,來判定計時 卡 2之插入側先端部是否已被搬送到減速位置(步驟 S3 1 1 )。 以上的判定之結果,計時卡2之插入側先端部已到達 減速位置時(步驟S3 1 1爲YES ),控制部2 1會向驅動脈 衝發生部22送出關於第2驅動脈衝之震盪開始信號。驅 動脈衝發生部22係接收控制部2 1來的前述震盪開始信號 時,發生比前述第1驅動脈衝之脈衝速度慢之第2驅動脈 衝(例如,3 00pps)。驅動部23係供給輸送電動機7由 驅動脈衝發生部22送來的第2驅動脈衝(步驟S3 12)。 當第2驅動脈衝開始供給時,輸送電動機7之未圖示 -12- 200813895 驅動軸的旋轉速度會減速,卡片輸送(搬送)速度也會減 速。然後,當計時卡2從輸送滾軸6a、6b離開,並脫離 卡片檢測感測器4之檢測領域時,卡片檢測感測器4向控 制部2 1送出未檢測信號。控制部2 1係在接受來自卡片檢 測感測器4之前述未檢測信號時,判定計時卡2之排出結 束(步驟S3 13爲YES ),並向驅動脈衝發生部22送出震 盪停止信號。到此,第2驅動脈衝的供給停止(步驟 H S 314),卡片輸送機構(滾軸5、輸送滾軸6a、6b)之驅 動停止。以上,卡片輸送控制處理結束。 如上所述,關於本實施型態之步進電.動機控制裝置20 係於用以排出計時卡2之卡片輸送控制中,最初供給第1 驅動脈衝至輸送電動機7,高速搬送計時卡2,於計時卡2 被排出時之位置(減速位置),供給第2驅動脈衝至輸送 電動機7,讓搬送速度減速。藉此,可一邊進行高速的卡 片輸送(搬送),一邊能抑制排出時過剩的衝力,安定地 _ 排出計時卡2。 再者,關於本發明之步進電動機控制裝置係未限定於 上述實施型態,在不脫離本發明之要旨範圍下可做各種變 更。 例如,在上述實施型態,雖然計時卡2之插入側先端 部是否已到減速位置之判定(步驟3 1 1之處理)是依據所 要脈衝數計算部所計算出之所要脈衝數,與由脈衝計數器 所計數之脈衝數來進行,但是,計時卡2之插入側先端部 是否已到達減速位置之判定手法並不以此爲限。例如,作 -13- 200813895 爲具備:依據第1驅動脈衝之脈衝速度,計算出計時卡2 插入側先端部到達減速位置爲止所必要的時間之所要時間 計算部,及用以計時對輸送電動機(步進電動機)之前述 第1驅動脈衝之供給時間之計時器,並根據前述所要時間 計算部之計算結果及前述計時器之計時結果來判斷是否已 到減速位置之構造亦可。 又,在減速位置附近配置光感測器等之卡片檢測感測 Φ 器,藉由來自卡片檢測感測器之信號(未檢測信號),來 判斷是否已到減速位置之構成亦可。此時,當計時卡之插 入側先端部,從前述卡片檢測感測器之檢測領域脫離之時 (即,未檢測出有計時卡時),將表示此之信號(未檢測 信號),送出至步進電動機控制裝置之控制部。然後,接 收到來自前述卡片檢測感測器的前述未檢測信號之控制部 會判定計時卡之插入側先端部已到達減速位置。 φ 【圖式簡單說明】 〔圖1〕表示關於本發明的一實施型態之計時器之槪 略構造圖。 〔圖2〕揭示於同實施型態中,步進電動機控制裝置 之內部構造之區塊圖。 〔圖3〕揭示於同實施型態中,由步進電動機控制裝 置所致之卡片輸送控制的處理順序之流程表。 【主要元件符號說明】 -14- 200813895 1 :計時器 2 :計時卡 3 :卡片插入口 4、9a、9b :卡片檢測感測器 5 :滾軸 6a、6b:輸送滾軸 7 :輸送電動機BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a stepping motor control device for driving a card conveying mechanism, and more particularly to a stepping motor control device for driving a timing card conveying mechanism of a timer. [Prior Art] For example, a timer generally used for managing the working hours is a configuration in which a card transport mechanism that transports a time card inserted into a card insertion slot to a predetermined position is transported by a card transport mechanism. As a driving source of the timing card conveying mechanism of such a timer, there are many examples of using a stepping motor (also called a pulse motor) because of the advantages of being suitable for properly controlling the rotation angle and the long service life (for example, Patent Document 1) The timer disclosed in Patent Document 1 is located below the insertion opening of the time card, and has a card detection switch that operates when the front end of the inserted time card is pushed up. Then, based on the detection of the timing card caused by the card detecting switch described above, the card transport mechanism transports the timing card to the determined position. [Problem to be Solved by the Invention] However, in the control of the card transport mechanism of the timer of Patent Document 1, -4-200813895, the card transport speed is accelerated. When the time card is ejected, the card is detected to be turned up and down, and the card detection switch that is temporarily turned off may be turned ON again, which may cause the start of the inhalation operation of the time card. The present invention has been made in view of the above problems, and an object of the invention is to provide a stepping motor control device capable of achieving accurate and stable card transport control in order to increase the speed of the card transport operation. Means for Solving the Problem A stepping motor control device relating to the present invention is a stepping motor control device for driving a card conveying mechanism, which is characterized in that it is provided from a card conveying operation for discharging a card to a insertion side of the card insertion side. When the portion reaches the predetermined position, the first drive pulse is supplied to the stepping motor, and after reaching the predetermined position, the second drive pulse that is slower than the pulse speed of the first drive pulse is supplied to the drive pulse supply means of the stepping motor. Further, in the following configuration, when the card transporting operation for discharging the card is started, it is necessary to calculate the insertion side tip end portion of the card to reach the predetermined position based on the pulse speed of the first drive pulse. a calculation method of the required number of pulses of the number of pulses, and a pulse counter for calculating the number of pulses of the first drive pulse supplied to the stepping motor; the presence or absence of the predetermined position is based on the calculation result of the required pulse number calculation means And the counting result of the aforementioned pulse counter is determined. Further, it may be configured as follows: when the card transporting operation for discharging the card is started, the insertion side tip end portion of the card is calculated based on the pulse speed of the first drive pulse -5 - 200813895 a desired time calculation means for the time required for the predetermined position and a timer for counting the supply time of the first drive pulse of the stepping motor; and whether the arrival of the predetermined position is based on the calculation of the required time calculation means The result is judged by the timing result of the aforementioned timer. Further, the timepiece according to the present invention is characterized in that it includes the stepping motor control device having any of the above configurations. Further, the computer program according to the present invention is characterized in that the computer functions as follows: the first drive pulse is supplied to the drive from the start of the card transporting operation for discharging the card until the insertion end of the card reaches the predetermined position. After the stepping motor of the card transport mechanism reaches the predetermined position, the second drive pulse that is slower than the pulse speed of the first drive pulse is supplied to the drive pulse supply means of the stepping motor. EFFECT OF THE INVENTION As described above, the stepping motor control device according to the present invention adjusts the card conveying speed for discharging the card. The discharge of the card can be stabilized. Further, by using the stepping motor control device, it is possible to provide a timer that can operate at high speed. [Embodiment] Hereinafter, an embodiment of a stepping motor control device according to the present invention will be described with reference to the drawings. Fig. 1 is a schematic diagram showing the configuration of the timer 1 of the present embodiment with respect to the stepping motor control of the present embodiment -6 - 200813895. In Fig. 1, the 3 series timing card 2 is used for inserting the card insertion opening; 4 is the card detecting sensor for detecting when the time card 2 is inserted from the card insertion opening 3. 5 is for sucking the inserted time card 2 or a roller for pulling the inserted time card 2; 6a, 6b are a pair of left and right transport rollers. The drive (rotation) source of the 7-series roller 5 is a motor; 8 is a timing belt that conveys the driving force of the transport motor 7 to the roller 5. When 9a and 9b are inhaled, the time card 2 reaches the deepest suction position, and is used as a pair of card detection sensors for detection. The conveyance motor 7 is a stepping motor (pulse motor) that rotates in a determined step unit in accordance with the pulse signal (drive pulse) to be supplied. The card detecting sensors 4, 9a, 9b are for detecting the leading end portion of the time card 2, for example, a transmissive type photosensor composed of a light-emitting element and a light-receiving element (none of which is shown). Furthermore, the type of the sensor is not particularly limited, and it is also irrelevant for, for example, a reflective sensor light sensor. Alternatively, it is also possible to open the proximity sensor of the timing card 2 so that the control lever is turned ON and the switch sensor can be operated. Fig. 2 is a block diagram showing the internal configuration of the stepping motor control device 20 of the present embodiment. The stepping motor control device 20 is composed of a control unit 2 1, a drive pulse generating unit 22, a drive unit 23, a desired pulse calculating unit 24, and a pulse counter 25, and the card detecting sensors 4, 9a, and 9 b constitutes. The control unit 21 includes a microcomputer (not shown), a ROM in which a program for defining a processing program for the microcomputer is stored, and a RAM used in a work area such as 200813895, and all of the control of the stepping motor control unit 20 are executed. . Further, when the card detecting sensors 4, 9a, 9b detect the leading end portion of the time card 2, the signal from each detecting sensor is input to the control portion 21. Further, the timing card 2 performs positional information (printing position information) for printing, and a signal (printing end signal) indicating the end of the printing operation, and the main control device 3 (for example, by a microcomputer) that controls the entire timer 1 , ROM, RAM, etc.) to notify. Alternatively, the control unit 21 may be configured as a functional unit of one of the main control φ devices 30. The drive pulse generating unit 22 generates a drive pulse for rotating a drive shaft (not shown) of the transport motor 7 at a predetermined rotational speed. Further, the drive pulse generating unit 22 is constituted by, for example, a oscillating circuit of a creep mode, and the pulsation control signal from the control unit 21 can adjust the drive pulse to a desired pulse speed. The drive unit 23 controls the rotation of the drive shaft of the conveyance motor 7 in accordance with the drive pulse and the control signal from the control unit 21. The desired pulse calculation unit 24 is positioned from the current position to the position on the transport (card transport) path in accordance with the calculation command signal from the control unit 21 (for example, a position from the central axis of the roller 5 to the card suction direction of 8 mm) The number of pulses required for the timing of the timing card 2 is calculated in accordance with the pulse speed of the drive pulse generated by the drive pulse generating unit 22. Then, the calculation result is notified to the control unit 21. The pulse counter 25 counts the number of pulses of the drive pulse generated by the drive pulse generating unit 22 based on the drive pulse and the control signal from the control unit 21. Then, 'the number is counted' and the control unit 2 is notified. -8 - 200813895 As described above, the processing procedure for the card conveyance control by the stepping motor control device 20 constructed will be described based on the flow chart of Fig. 3. The card transport control process is started from the card insertion port 3 of the timer 1 into which the time card 2 is inserted, and the leading end portion of the time card 2 reaches the detection area of the card detecting sensor 4. More specifically, the card detecting sensor 4 starts when the detection signal of the leading end portion of the time card 2 is detected and input to the control unit 21. φ First, the control unit 21 sends the oscillation start signal of the suction drive pulse to the drive pulse generation unit 22. When the drive pulse generating unit 22 receives the oscillation start signal from the control unit 21, the drive pulse generating unit 22 generates a suction drive pulse for a predetermined pulse speed. Further, the control unit 21 sends a suction drive control signal to the drive unit 23. The drive unit 23 that receives the suction drive control signal is supplied to the transport motor 7 by the drive pulse generating unit 22 (step S301). When the suction drive pulse is supplied to the conveyance motor 7, the card feed mechanism (the roller 5 and the conveyance rollers 6a and 6b in the present embodiment) is driven to start the suction of the time card 2. Specifically, the drive shaft (not shown) of the transport motor 7 starts to rotate, and the driving force due to the rotation is transmitted to the roller 5 via the timing belt 8. Then, the rotation of the roller 5 is started, and the inserted timing card 2 is sucked into the inside by the conveyance rollers 6a, 6b. Then, when the leading end portion of the time card 2 reaches the deepest suction position (i.e., the deepest point) (YES in step S302), it is detected by the card detecting sensors 9a and 9b, and the detection signal is sent to the control unit 21. The control unit 2 1 receives the detection signals from the card detecting sensors 9a and 9b, and sends a shock stop signal to the drive pulse -9 - 200813895 rush generating unit 22. Thereby, the supply of the suction drive control signal is stopped (step S3 03), and the suction process of the time card 2 is also stopped. In the stop of the suction processing of the time card 2, the printing position information from the main control unit 30 is notified to the control unit 21. Next, the control unit 21 performs the timing card 2 pull-out control until the printing position (printing position) of the predetermined printing column of the time card 2 is based on the relevant printing information. φ Specifically, the control unit 2 1 sends an oscillation start signal regarding the pull-out drive pulse to the drive pulse generation unit 22. The drive pulse generating unit / 22 receives the oscillation start signal from the control unit 21 and generates a pull-out drive pulse. Further, the control unit 21 sends a pull-out drive control signal to the drive unit 23. The drive unit 23 that receives the pull-out drive control signal controls the transport motor 7 so that the drive shaft rotation direction of the transport motor 7 is reversed from the suction timing, and the pull-out drive pulse supplied from the drive pulse generating unit 22 to the feed motor 7 is supplied. (Step S3 04). • When the supply drive motor 7 pulls out the drive pulse, the drive shaft of the feed motor 7 rotates in the reverse direction during suction, and the roller 5 also rotates in the reverse direction during suction. Thereby the time card 2 is pulled out to the upper part. Then, when the time card 2 is pulled out to the printing position (YES in step S3 05), the control unit 21 sends an oscillation stop signal to the drive pulse generating unit 22. Thereby, the supply of the pull-out drive control signal is stopped (step S306), and the pull-out processing of the time card 2 is also stopped. When the pull-out processing is stopped, the predetermined information (for example, commute information) is written in the printing field of the time card 2 by the printing portion (not shown) (printing - -10-200813895 processing). When the printing process is completed (step S 3 0 7 is YE S ), the main control unit 30 sends a printing end signal to the control unit 21 . The control unit 21 receives the print end signal from the main control unit 30, and sends a first drive pulse as a discharge drive pulse and a subsequent start start signal to the drive pulse generation unit 22. The drive pulse generating unit 22 receives the oscillation start signal from the control unit 21, and generates a first drive pulse (for example, 600 pps (pulse per second)). Further, the control unit 21 sends a discharge drive control signal to the drive unit 23. The drive unit 23 that receives the discharge drive control signal supplies the first drive pulse sent from the drive motor 7 by the drive pulse generating unit 2 (step S 3 0 8 ). In this manner, the control unit 21, the drive pulse generating unit 22, and the drive unit 23 supply the first drive pulse of the transport motor 7 (step S3 0 8). After the supply of the first drive pulse is started, the roller 5 starts to rotate, and the timing roller 2 is conveyed toward the card insertion opening 3 to be discharged by the transport rollers 6a and 6b. In addition, the control unit 2 1 sends an arithmetic command signal to the desired pulse number calculation unit 24 while sending the first drive pulse as the discharge drive pulse to the drive pulse generation unit 22 and the following oscillation start signal. The desired pulse number calculation unit 24 receives the calculation command signal from the control unit 21, and calculates the number of pulses (the required number of pulses) required for the leading end portion of the time card 2 to reach a predetermined position on the transport path (step S3 09). . The predetermined position is set for the purpose of the discharge of the stable time card 2, and is the deceleration point (deceleration position) of the conveyance (card conveyance) speed of the time card 2. The deceleration position is set to a position when the timing card 2 is separated from the transport rollers 6a, 6b-11 - 200813895 (for example, a position 8 mm from the central axis of the roller 5). The required pulse number calculation unit 24 is based on The current position information (print position information notified by the main control unit 30) and the information of the deceleration position obtained from the control unit 21 are compared with the pulse speed of the first drive pulse, and the number of required pulses is calculated, and the control is notified. Part 2 1 its calculation result. Further, the control unit 21 sends a count start signal to the pulse counter 25 at the same timing when the arithmetic command signal is sent to the desired pulse number calculating unit 24. When receiving the counting start signal from the control unit 21, the pulse counter 25 starts counting of the first driving pulse (i.e., counting the number of pulses) generated by the driving pulse generating unit 22 (step S3 10). As described above, when the card transport for discharging the time card 2 is started, the control unit 21 determines the timing by using the number of pulses required by the comparison desired pulse number calculating unit 24 and the number of pulses counted by the pulse counter 25. Whether or not the insertion side leading end portion of the card 2 has been conveyed to the deceleration position (step S3 1 1 ). As a result of the above determination, when the insertion side leading end portion of the time card 2 has reached the deceleration position (YES in step S3 1 1), the control unit 21 sends an oscillation start signal to the drive pulse generation unit 22 regarding the second drive pulse. When the drive pulse generating unit 22 receives the oscillation start signal from the control unit 21, a second drive pulse (for example, 300 pps) which is slower than the pulse speed of the first drive pulse is generated. The drive unit 23 supplies the second drive pulse sent from the drive motor 7 by the drive pulse generating unit 22 (step S3 12). When the second drive pulse is started, the rotation speed of the drive shaft of the transport motor 7 is reduced, and the speed of the card transport (transport) is also decelerated. Then, when the time card 2 is separated from the transport rollers 6a, 6b and is separated from the detection area of the card detecting sensor 4, the card detecting sensor 4 sends an undetected signal to the control portion 21. When receiving the undetected signal from the card detecting sensor 4, the control unit 2 1 determines that the discharge of the time card 2 is completed (YES in step S3 13), and sends a shock stop signal to the drive pulse generating unit 22. At this point, the supply of the second drive pulse is stopped (step H S 314), and the driving of the card transport mechanism (roller 5, transport rollers 6a, 6b) is stopped. As described above, the card conveyance control process ends. As described above, in the card transport control for discharging the time card 2, the stepping motor control device 20 of the present embodiment first supplies the first drive pulse to the transport motor 7, and transports the time card 2 at a high speed. When the timing card 2 is discharged (deceleration position), the second drive pulse is supplied to the conveyance motor 7, and the conveyance speed is decelerated. As a result, high-speed card transport (transport) can be performed, and excessive force at the time of discharge can be suppressed, and the time card 2 can be discharged steadily. Further, the stepping motor control device according to the present invention is not limited to the above-described embodiment, and various modifications can be made without departing from the scope of the invention. For example, in the above embodiment, the determination as to whether or not the insertion side tip end portion of the time card 2 has reached the deceleration position (the processing of step 311) is based on the desired number of pulses calculated by the desired pulse number calculating portion, and the pulse The number of pulses counted by the counter is performed, but the determination method of whether or not the insertion side tip end of the timing card 2 has reached the deceleration position is not limited thereto. For example, 13-200813895 is provided with a required time calculation unit for calculating the time required for the insertion end side of the time card 2 to reach the deceleration position based on the pulse speed of the first drive pulse, and for timing the feed motor ( The timer of the supply time of the first drive pulse of the stepping motor is determined based on the calculation result of the required time calculation unit and the timing result of the timer to determine whether or not the deceleration position has been reached. Further, a card detecting sensor Φ such as a photo sensor is disposed in the vicinity of the deceleration position, and a signal (undetected signal) from the card detecting sensor is used to determine whether or not the deceleration position has been reached. At this time, when the insertion side tip end portion of the timing card is detached from the detection area of the card detecting sensor (that is, when the chronograph card is not detected), the signal indicating this (undetected signal) is sent to A control unit of the stepping motor control device. Then, the control unit that receives the aforementioned undetected signal from the card detecting sensor determines that the insertion side leading end portion of the timing card has reached the deceleration position. φ [Simplified description of the drawings] Fig. 1 is a schematic structural view showing a timer of an embodiment of the present invention. Fig. 2 is a block diagram showing the internal structure of the stepping motor control device in the same embodiment. Fig. 3 is a flow chart showing the processing sequence of the card conveyance control by the stepping motor control means in the same embodiment. [Main component symbol description] -14- 200813895 1 : Timer 2 : Timing card 3 : Card insertion port 4, 9a, 9b : Card detection sensor 5 : Roller 6a, 6b: Transport roller 7 : Transport motor
8 :正時皮帶 20 :步進電動機控制裝置 21 :控制部 22 :驅動脈衝發生部 23 :驅動部 24 :所要脈衝數計算部 25 :脈衝計數器 3 〇 :主控制裝置8 : Timing belt 20 : Stepping motor control unit 21 : Control unit 22 : Drive pulse generation unit 23 : Drive unit 24 : Required pulse number calculation unit 25 : Pulse counter 3 〇 : Main control unit
-15-15