JP2008040818A - Stepping motor controller, time recorder, and computer program - Google Patents

Stepping motor controller, time recorder, and computer program Download PDF

Info

Publication number
JP2008040818A
JP2008040818A JP2006214711A JP2006214711A JP2008040818A JP 2008040818 A JP2008040818 A JP 2008040818A JP 2006214711 A JP2006214711 A JP 2006214711A JP 2006214711 A JP2006214711 A JP 2006214711A JP 2008040818 A JP2008040818 A JP 2008040818A
Authority
JP
Japan
Prior art keywords
card
pulse
stepping motor
drive pulse
time
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.)
Pending
Application number
JP2006214711A
Other languages
Japanese (ja)
Inventor
Koji Ebara
浩次 江原
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.)
Seiko Precision Inc
Original Assignee
Seiko Precision Inc
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 Seiko Precision Inc filed Critical Seiko Precision Inc
Priority to JP2006214711A priority Critical patent/JP2008040818A/en
Priority to TW96126830A priority patent/TW200813895A/en
Priority to PCT/JP2007/065410 priority patent/WO2008018437A1/en
Publication of JP2008040818A publication Critical patent/JP2008040818A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K13/00Conveying record carriers from one station to another, e.g. from stack to punching mechanism
    • G06K13/02Conveying record carriers from one station to another, e.g. from stack to punching mechanism the record carrier having longitudinal dimension comparable with transverse dimension, e.g. punched card
    • G06K13/08Feeding or discharging cards

Abstract

<P>PROBLEM TO BE SOLVED: To provide a stepping motor controller capable of increasing a card feeding speed for realizing accurate and stable card feed control. <P>SOLUTION: The steeping motor controller 20 supplies first drive pulses to a steeping motor 7 driving a card feed mechanism until a card insertion side front part reaches a predetermined position after card feeding for ejecting a card is started. After arrival at the predetermined position, the steeping motor controller 20 supplies second drive pulses at pulse speed lower than that of the first drive pulses to the stepping motor 7. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、カード送り機構を駆動させるステッピングモータ制御装置に関し、特にタイムレコーダにおけるタイムカード送り機構を駆動させるステッピングモータ制御装置に関する。   The present invention relates to a stepping motor control device that drives a card feeding mechanism, and more particularly to a stepping motor control device that drives a time card feeding mechanism in a time recorder.

例えば出勤時間等を管理するために用いられる一般的なタイムレコーダは、カード送り機構により、カード挿入口に挿入されたタイムカードを所定位置に送る構成となっている。   For example, a general time recorder used for managing working hours and the like is configured to send a time card inserted into a card insertion slot to a predetermined position by a card feeding mechanism.

この種のタイムレコーダにおけるカード送り機構の駆動源として、正確な回転角度制御に適し、長寿命である等という利点からステッピングモータ(パルスモータともいう)が使用されるケースが少なくない(例えば、特許文献1)。   In many cases, a stepping motor (also referred to as a pulse motor) is used as a drive source for a card feeding mechanism in this type of time recorder because of its advantage of being suitable for accurate rotation angle control and having a long service life (for example, patent documents). 1).

特許文献1で開示されるタイムレコーダは、タイムカードの挿入口の下方位置に、挿入されたタイムカードの先端部で押上げられると作動するカード検出スイッチを備えている。そして、前記カード検出スイッチによるタイムカードの検出に基づいて、カード送り機構が当該タイムカードを所定の位置に搬送(カード送り)する。   The time recorder disclosed in Patent Document 1 includes a card detection switch that operates when pushed up at the tip of the inserted time card at a position below the insertion slot of the time card. Then, based on the detection of the time card by the card detection switch, the card feeding mechanism conveys (card feeds) the time card to a predetermined position.

特開2004−110794号公報JP 2004-110794 A

しかしながら、特許文献1のタイムレコーダにおけるカード送り機構の制御では、カード送りを高速化すると、タイムカードの排出時において、タイムカ−ドが勢いよく飛び出し上下動することで、いったんOFFになった前記カード検出スイッチを再度ONにしてしまい、タイムカードの引き込みを開始させてしまう虞があった。   However, in the control of the card feeding mechanism in the time recorder of Patent Document 1, when the card feeding speed is increased, the time card is ejected and moved up and down at the time of discharging the time card, so that the card once turned off is detected. There is a possibility that the switch is turned on again and the time card is started to be pulled in.

本発明は、上記問題に鑑みてなされたものであり、カード送りの高速化を図れ、正確且つ安定したカード送り制御を実現できるステッピングモータ制御装置を提供することを目的とする。   The present invention has been made in view of the above problems, and an object of the present invention is to provide a stepping motor control device capable of increasing the card feeding speed and realizing accurate and stable card feeding control.

本発明に係るステッピングモータ制御装置は、カード送り機構を駆動させるステッピングモータの制御装置において、カードを排出するためのカード送りが開始されてから当該カードの挿入側先端部が所定位置に到達するまでは、第1の駆動パルスを前記ステッピングモータに供給し、前記所定位置到達後は、前記第1の駆動パルスよりもパルス速度が遅い第2の駆動パルスを前記ステッピングモータに供給する駆動パルス供給手段と、を備える、ことを特徴とする。   The stepping motor control device according to the present invention is a stepping motor control device for driving a card feeding mechanism, from the start of card feeding for ejecting a card until the leading end of the insertion side of the card reaches a predetermined position. Supplies a first drive pulse to the stepping motor and, after reaching the predetermined position, a drive pulse supply means for supplying a second drive pulse having a pulse speed slower than that of the first drive pulse to the stepping motor. And comprising.

また、前記カードを排出するためのカード送り開始の際、前記第1の駆動パルスのパルス速度に基づいて、前記カードの挿入側先端部が前記所定位置まで到達するのに必要なパルス数を算出する所要パルス数算出手段と、前記ステッピングモータに供給される前記第1の駆動パルスのパルス数を計数するパルスカウンタと、を更に備え、前記所定位置への到達有無が、前記所要パルス数算出手段の算出結果及び前記パルスカウンタの計数結果に基づき判定される、とする構成にしてもよい。   Further, when the card feed for discharging the card is started, the number of pulses necessary for the insertion side tip of the card to reach the predetermined position is calculated based on the pulse speed of the first drive pulse. And a pulse counter for counting the number of pulses of the first drive pulse supplied to the stepping motor, and whether or not the predetermined position is reached is determined by the required pulse number calculation means. It is also possible to adopt a configuration in which the determination is made based on the calculation result and the count result of the pulse counter.

また、前記カードを排出するためのカード送り開始の際、前記第1の駆動パルスのパルス速度に基づいて、前記カードの挿入側先端部が前記所定位置まで到達するのに必要な時間を算出する所要時間算出手段と、前記ステッピングモータへの前記第1の駆動パルスの供給時間を計時するタイマと、を更に備え、前記所定位置への到達有無が、前記所要時間算出手段の算出結果及び前記タイマの計時結果に基づき判定される、とする構成にしてもよい。   In addition, when the card feeding for discharging the card is started, the time required for the insertion side tip of the card to reach the predetermined position is calculated based on the pulse speed of the first drive pulse. A required time calculating means; and a timer for timing the supply time of the first drive pulse to the stepping motor, wherein whether or not the predetermined position is reached is determined by the calculation result of the required time calculating means and the timer. It may be configured to be determined based on the time measurement result of

また、本発明に係るタイムレコーダは、上記構成のステッピングモータ制御装置の何れかを備えたことを特徴とする。   In addition, a time recorder according to the present invention includes any one of the stepping motor control devices configured as described above.

また、本発明に係るコンピュータプログラムは、コンピュータを、カードを排出するためのカード送りが開始されてから当該カードの挿入側先端部が所定位置に到達するまでは、カード送り機構を駆動させるステッピングモータに第1の駆動パルスを供給し、前記所定位置到達後は、前記第1の駆動パルスよりもパルス速度が遅い第2の駆動パルスを前記ステッピングモータに供給する駆動パルス供給手段として機能させる、ことを特徴とする。   Further, the computer program according to the present invention is a stepping motor that drives the card feeding mechanism from the start of card feeding for ejecting the card until the insertion side tip of the card reaches a predetermined position. Supplying a first driving pulse to the stepping motor after the predetermined position is reached, and supplying a second driving pulse having a pulse speed slower than that of the first driving pulse to the stepping motor; It is characterized by.

以上の如く、本発明のステッピングモータ制御装置によれば、カードを排出するためのカード送りの速度を調整することで、カードの排出を安定化させ得る。また、このステッピングモータ制御装置を用いることにより、高速動作が可能なタイムレコーダを提供できる。   As described above, according to the stepping motor control device of the present invention, the card ejection can be stabilized by adjusting the card feeding speed for ejecting the card. Further, a time recorder capable of high-speed operation can be provided by using this stepping motor control device.

以下、本発明に係るステッピングモータ制御装置の一実施形態について図面を参照して説明する。   Hereinafter, an embodiment of a stepping motor control device according to the present invention will be described with reference to the drawings.

図1は、本実施形態に係るステッピングモータ制御装置を実装したタイムレコーダ1の概略構成を示す図である。   FIG. 1 is a diagram illustrating a schematic configuration of a time recorder 1 in which the stepping motor control device according to the present embodiment is mounted.

図1において、3は、タイムカード2を挿入するためのカード挿入口であり、4は、該カード挿入口3からタイムカード2が挿入された場合に、これを検出するカード検出センサである。5は、挿入されたタイムカード2を引き込み、又は、挿入されたタイムカード2を引き出すためのローラ軸であり、6a,6bは、ローラ軸5に設けられた左右一対の送りローラである。7は、ローラ軸5の駆動(回転)源である送りモータであり、8は送りモータ7の駆動力をローラ軸5に伝達するタイミングベルトである。9a,9bは、引き込まれたタイムカード2が最大引き込み位置まで達した場合に、これを検出する左右一対のカード検出センサである。   In FIG. 1, 3 is a card insertion slot for inserting the time card 2, and 4 is a card detection sensor for detecting when the time card 2 is inserted from the card insertion slot 3. Reference numeral 5 denotes a roller shaft for drawing the inserted time card 2 or pulling out the inserted time card 2, and 6 a and 6 b are a pair of left and right feed rollers provided on the roller shaft 5. 7 is a feed motor that is a drive (rotation) source of the roller shaft 5, and 8 is a timing belt that transmits the driving force of the feed motor 7 to the roller shaft 5. 9a and 9b are a pair of left and right card detection sensors for detecting when the drawn time card 2 reaches the maximum drawing position.

送りモータ7は、パルス信号(駆動パルス)が与えられることで、決められたステップ単位で回転するステッピングモータ(パルスモータ)である。   The feed motor 7 is a stepping motor (pulse motor) that rotates by a predetermined step unit when a pulse signal (drive pulse) is given.

カード検出センサ4,9a,9bは、タイムカード2の先端部を検出する、例えば、発光素子と受光素子(何れも図示せず)からなる透過型の光センサである。尚、特にセンサの種別に限定はなく、例えば、反射型の光センサであっても構わない。あるいは、タイムカード2の先端部が接触することでレバーがONになって作動するスイッチ式のセンサであってもよい。   The card detection sensors 4, 9 a, and 9 b are transmissive optical sensors that detect the front end portion of the time card 2, and include, for example, a light emitting element and a light receiving element (both not shown). In addition, there is no limitation in particular in the kind of sensor, For example, you may be a reflection type optical sensor. Alternatively, it may be a switch type sensor that operates by turning on the lever when the tip of the time card 2 comes into contact.

図2は、本実施形態に係るステッピングモータ制御装置20の内部構成を示すブロック図である。ステッピングモータ制御装置20は、制御部21と、駆動パルス発生部22と、ドライバ23と、所要パルス数算出部24と、パルスカウンタ25と、前記カード検出センサ4,9a,9bとから構成される。   FIG. 2 is a block diagram showing an internal configuration of the stepping motor control device 20 according to the present embodiment. The stepping motor control device 20 includes a control unit 21, a drive pulse generation unit 22, a driver 23, a required pulse number calculation unit 24, a pulse counter 25, and the card detection sensors 4, 9a, 9b. .

制御部21は、図示しないマイクロコンピュータと、マイクロコンピュータによる処理の手順を定義したプログラムを格納するROMと、ワークエリア等に使用するRAMとを備え、ステッピングモータ制御装置20全般の制御を行う。また、カード検出センサ4,9a,9bがタイムカード2の先端部を検出すると、各カード検出センサからの信号(検出信号)が、制御部21に入力される。また、タイムカード2に印字が行われる位置についての情報(印字位置情報)と、印字が終了したことを示す信号(印字終了信号)とが、タイムレコーダ1全般の制御を行う主制御装置30(例えば、マイクロコンピュータ、ROM、RAM等から構成される)から通知される。尚、制御部21は、主制御装置30の一機能部とする構成であってもよい。   The control unit 21 includes a microcomputer (not shown), a ROM that stores a program that defines a processing procedure by the microcomputer, and a RAM that is used for a work area and the like, and controls the stepping motor control device 20 in general. Further, when the card detection sensors 4, 9 a, 9 b detect the leading end portion of the time card 2, signals (detection signals) from the respective card detection sensors are input to the control unit 21. Further, a main controller 30 (for example, a control for controlling the entire time recorder 1) includes information (print position information) about a position where printing is performed on the time card 2 and a signal indicating that printing is completed (printing end signal). , Microcomputer, ROM, RAM, etc.). The control unit 21 may be configured as one function unit of the main control device 30.

駆動パルス発生部22は、送りモータ7の図示しない駆動軸を所定の回転速度で回転させるための駆動パルスを発生する。また、駆動パルス発生部22は、例えば、他励方式の発振回路等により構成され、制御部21からの発振制御信号に基づき、駆動パルスを所望のパルス速度に調整することができる。   The drive pulse generator 22 generates a drive pulse for rotating a drive shaft (not shown) of the feed motor 7 at a predetermined rotation speed. Further, the drive pulse generator 22 is constituted by, for example, a separately-excited oscillation circuit or the like, and can adjust the drive pulse to a desired pulse speed based on the oscillation control signal from the controller 21.

ドライバ23は、駆動パルス及び制御部21からの制御信号に基づき、送りモータ7の前記駆動軸の回転制御を行う。   The driver 23 controls the rotation of the drive shaft of the feed motor 7 based on the drive pulse and the control signal from the control unit 21.

所要パルス数算出部24は、制御部21からの算出指令信号により、現在の位置から搬送(カード送り)経路上の所定位置(例えば、ローラ軸5の中心軸からカード引き込み方向に向かって8mmの位置)までのタイムカード2の搬送に要するパルス数を駆動パルス発生部22が発生する駆動パルスのパルス速度に従って算出する。そして、その算出結果を制御部21に通知する。   In response to a calculation command signal from the control unit 21, the required pulse number calculation unit 24 has a predetermined position on the conveyance (card feed) path from the current position (for example, 8 mm from the central axis of the roller shaft 5 toward the card drawing direction). The number of pulses required for transporting the time card 2 to the position) is calculated according to the pulse speed of the drive pulse generated by the drive pulse generator 22. Then, the calculation result is notified to the control unit 21.

パルスカウンタ25は、制御部21からの計数開始信号に基づき、駆動パルス発生部22が発生する駆動パルスのパルス数をカウントする。そして、そのカウント値を制御部21に通知する。   The pulse counter 25 counts the number of drive pulses generated by the drive pulse generator 22 based on the count start signal from the controller 21. Then, the control unit 21 is notified of the count value.

以上のように構成されたステッピングモータ制御装置20が行うカード送り制御に係る処理手順を図3のフローチャートに沿って説明する。   A processing procedure related to card feeding control performed by the stepping motor control device 20 configured as described above will be described with reference to the flowchart of FIG.

カード送り制御処理は、タイムカード2が、タイムレコーダ1のカード挿入口3に挿入され、当該タイムカード2の先端部がカード検出センサ4の検出領域内まで到達することにより開始される。より具体的には、タイムカード2の先端部を検出したカード検出センサ4からの検出信号が、制御部21に入力されることにより開始される。   The card feed control process is started when the time card 2 is inserted into the card insertion slot 3 of the time recorder 1 and the leading end of the time card 2 reaches the detection area of the card detection sensor 4. More specifically, the detection is started by inputting a detection signal from the card detection sensor 4 that detects the leading end of the time card 2 to the control unit 21.

先ず、制御部21は、引き込み用駆動パルスについての発振開始信号を駆動パルス発生部22に送出する。駆動パルス発生部22は、制御部21からの前記発振開始信号を受けると、所定パルス速度の引き込み用駆動パルスを発生する。また、制御部21は、ドライバ23に引き込み用駆動制御信号を送出する。該引き込み用駆動制御信号を受けたドライバ23は、駆動パルス発生部22から送られる引き込み用駆動パルスを送りモータ7に供給する(ステップS301)。   First, the control unit 21 sends an oscillation start signal for the pull-in drive pulse to the drive pulse generation unit 22. When the drive pulse generator 22 receives the oscillation start signal from the controller 21, the drive pulse generator 22 generates a pull-in drive pulse having a predetermined pulse speed. In addition, the control unit 21 sends a pull-in drive control signal to the driver 23. The driver 23 that has received the pull-in drive control signal supplies the pull-in drive pulse sent from the drive pulse generator 22 to the feed motor 7 (step S301).

送りモータ7に引き込み用駆動パルスが供給されると、カード送り機構(本実施形態では、ローラ軸5、送りローラ6a,6b)が駆動し、タイムカード2の引き込みが開始される。具体的には、送りモータ7の図示しない駆動軸が回転し、該回転による駆動力が、タイミングベルト8を介して、ローラ軸5に伝達される。すると、該ローラ軸5の回転が始まり、送りローラ6a,6bによって、挿入されたタイムカード2が内部に引き込まれる。   When the pull-in drive pulse is supplied to the feed motor 7, the card feed mechanism (in this embodiment, the roller shaft 5, the feed rollers 6a and 6b) is driven, and the pull-in of the time card 2 is started. Specifically, a drive shaft (not shown) of the feed motor 7 rotates, and the driving force generated by the rotation is transmitted to the roller shaft 5 via the timing belt 8. Then, the rotation of the roller shaft 5 starts, and the inserted time card 2 is drawn into the inside by the feed rollers 6a and 6b.

しかる後、タイムカード2の先端部が最大引き込み位置(即ち、最下点)まで達すると(ステップS302でYES)、カード検出センサ9a,9bがこれを検出し、制御部21に検出信号を送出する。制御部21は、カード検出センサ9a,9bからの前記検出信号を受けると、発振停止信号を駆動パルス発生部22に送出する。これにより、引き込み用駆動パルスの供給が停止され(ステップS303)、当該タイムカード2の引き込み処理が停止する。   Thereafter, when the leading end of the time card 2 reaches the maximum retracted position (that is, the lowest point) (YES in step S302), the card detection sensors 9a and 9b detect this and send a detection signal to the control unit 21. To do. When the control unit 21 receives the detection signals from the card detection sensors 9 a and 9 b, it sends an oscillation stop signal to the drive pulse generation unit 22. Thereby, the supply of the driving pulse for drawing is stopped (step S303), and the drawing process of the time card 2 is stopped.

タイムカード2の引き込み処理の停止中、主制御装置30から印字位置情報が制御部21に通知される(停止前に通知される仕様でもよい)。次に、制御部21は、かかる印字位置情報に基づき、タイムカード2の所定の印字欄に印字が行われる位置(印字位置)までタイムカード2を引き上げる制御を行う。   While the pull-in process of the time card 2 is stopped, the print position information is notified from the main control device 30 to the control unit 21 (the specification notified before the stop may be used). Next, the control unit 21 performs control to raise the time card 2 to a position (printing position) where printing is performed in a predetermined printing field of the time card 2 based on the printing position information.

具体的には、制御部21は、引き上げ用駆動パルスについての発振開始信号を駆動パルス発生部22に送出する。駆動パルス発生部22は、制御部21からの前記発振開始信号を受けると、引き上げ用駆動パルスを発生する。また、制御部21は、ドライバ23に引き上げ用駆動制御信号を送出する。該引き上げ用駆動制御信号を受けたドライバ23は、送りモータ7の駆動軸の回転方向が引き込み時と逆回転になるように送りモータ7を制御し、駆動パルス発生部22から送られる引き上げ用駆動パルスを送りモータ7に供給する(ステップS304)。   Specifically, the control unit 21 sends an oscillation start signal for the pulling drive pulse to the drive pulse generating unit 22. When the drive pulse generator 22 receives the oscillation start signal from the controller 21, the drive pulse generator 22 generates a pull-up drive pulse. In addition, the control unit 21 sends a pulling drive control signal to the driver 23. Upon receiving the pulling drive control signal, the driver 23 controls the feed motor 7 so that the rotation direction of the drive shaft of the feed motor 7 is reverse to that during pulling, and the pulling drive sent from the drive pulse generator 22. A pulse is supplied to the feed motor 7 (step S304).

送りモータ7に引き上げ用駆動パルスが供給されると、送りモータ7の駆動軸が、引き込み時とは逆方向に回転することで、ローラ軸5も引き込み時とは逆方向に回転する。従ってタイムカード2は上部に引き上げられる。   When the pulling drive pulse is supplied to the feed motor 7, the drive shaft of the feed motor 7 rotates in the direction opposite to that during pulling, and the roller shaft 5 also rotates in the direction opposite to that during pulling. Therefore, the time card 2 is pulled up.

しかる後、印字位置までタイムカード2が引き上げられると(ステップS305でYES)、制御部21は、発振停止信号を駆動パルス発生部22に送出する。これにより、引き上げ用駆動パルスの供給が停止され(ステップS306)、タイムカード2の引き上げが停止される。   Thereafter, when time card 2 is pulled up to the printing position (YES in step S305), control unit 21 sends an oscillation stop signal to drive pulse generation unit 22. Thereby, the supply of the driving pulse for raising is stopped (step S306), and the raising of the time card 2 is stopped.

かかる引き上げ停止中に、図示しない印字部により、タイムカード2の印字欄に所定情報(例えば、出退勤情報等)が書き込まれる(印字処理)。この印字処理が終了すると(ステップS307でYES)、主制御装置30より印字終了信号が制御部21に送出される。   While the pulling is stopped, predetermined information (for example, attendance information) is written in the printing field of the time card 2 by a printing unit (not shown) (printing process). When this printing process is completed (YES in step S307), a printing end signal is sent from the main controller 30 to the control unit 21.

制御部21は、主制御装置30からの前記印字終了信号を受けると、排出用駆動パルスである第1の駆動パルスについての発振開始信号を駆動パルス発生部22に送出する。駆動パルス発生部22は、制御部21からの前記発振開始信号を受けると、第1の駆動パルス(例えば、600pps(pulse per second))を発生する。また、制御部21は、ドライバ23に排出用駆動制御信号を送出する。該排出用駆動制御信号を受けたドライバ23は、駆動パルス発生部22から送られる第1の駆動パルスを送りモータ7に供給する(ステップS308)。このようにして、制御部21、駆動パルス発生部22及びドライバ23によって、送りモータ7に第1の駆動パルスが供給される。   Upon receiving the print end signal from the main control device 30, the control unit 21 sends an oscillation start signal for the first drive pulse that is a discharge drive pulse to the drive pulse generation unit 22. When receiving the oscillation start signal from the control unit 21, the drive pulse generator 22 generates a first drive pulse (for example, 600 pps (pulse per second)). In addition, the control unit 21 sends a discharge drive control signal to the driver 23. The driver 23 that has received the ejection drive control signal supplies the first drive pulse sent from the drive pulse generator 22 to the feed motor 7 (step S308). In this way, the first drive pulse is supplied to the feed motor 7 by the control unit 21, the drive pulse generation unit 22, and the driver 23.

第1の駆動パルスの供給が開始されると、ローラ軸5の回転が始まり、送りローラ6a,6bによって、タイムカード2は、排出されるべくカード挿入口3に向かって搬送される。   When the supply of the first drive pulse is started, the rotation of the roller shaft 5 starts, and the time card 2 is conveyed toward the card insertion port 3 to be discharged by the feed rollers 6a and 6b.

また、制御部21は、第1の駆動パルスについての前記発振開始信号を駆動パルス発生部22に送出するのと同一タイミングで、所要パルス数算出部24に算出指令信号を送出する。所要パルス数算出部24は、制御部21からの前記算出指令信号を受けると、タイムカード2の挿入側先端部が搬送経路上の所定位置まで到達するのに要するパルス数(所要パルス数)を算出する(ステップS309)。   Further, the control unit 21 sends a calculation command signal to the required pulse number calculation unit 24 at the same timing as sending the oscillation start signal for the first drive pulse to the drive pulse generation unit 22. When the required pulse number calculation unit 24 receives the calculation command signal from the control unit 21, the required pulse number calculation unit 24 calculates the number of pulses (required pulse number) required for the insertion side tip of the time card 2 to reach a predetermined position on the transport path. Calculate (step S309).

前記所定位置は、タイムカード2の排出を安定させる目的で予め設定された、タイムカード2の搬送(カード送り)速度を減速させるポイント(減速位置)である。この減速位置は、送りローラ6a,6bからタイムカード2が外れる間際の位置(例えば、ローラ軸5の中心軸から8mmの位置)に設定される。   The predetermined position is a point (deceleration position) that is set in advance for the purpose of stabilizing the discharge of the time card 2 and decelerates the conveyance (card feed) speed of the time card 2. The deceleration position is set to a position just before the time card 2 is removed from the feed rollers 6a and 6b (for example, a position 8 mm from the center axis of the roller shaft 5).

所要パルス数算出部24は、制御部21から取得した現在の位置情報(主制御装置30から通知される印字位置情報)及び前記減速位置の情報と、第1の駆動パルスのパルス速度とに基づいて、所要パルス数の算出を行い、その算出結果を制御部21に通知する。   The required pulse number calculation unit 24 is based on the current position information (print position information notified from the main control device 30) acquired from the control unit 21, the information on the deceleration position, and the pulse speed of the first drive pulse. Then, the required number of pulses is calculated, and the calculation result is notified to the control unit 21.

さらに、制御部21は、所要パルス数算出部24に算出指令信号を送出するのと同一タイミングで、パルスカウンタ25に計数開始信号を送出する。パルスカウンタ25は、制御部21からの前記計数開始信号を受けると、駆動パルス発生部22が発生する第1の駆動パルスの計数(即ち、パルス数のカウント)を開始する(ステップS310)。   Further, the control unit 21 sends a count start signal to the pulse counter 25 at the same timing as sending the calculation command signal to the required pulse number calculation unit 24. When receiving the count start signal from the control unit 21, the pulse counter 25 starts counting the first drive pulse generated by the drive pulse generating unit 22 (that is, counting the number of pulses) (step S310).

以上のようにして、タイムカード2の排出のためのカード送りが開始されると、制御部21は、所要パルス数算出部24が算出した所要パルス数と、パルスカウンタ25によってカウントされたパルス数とを比較することで、タイムカード2の挿入側先端部が減速位置まで搬送されたか否かを判定する(ステップS311)。   When card feeding for discharging the time card 2 is started as described above, the control unit 21 calculates the required pulse number calculated by the required pulse number calculation unit 24 and the pulse number counted by the pulse counter 25. To determine whether or not the insertion-side tip of the time card 2 has been transported to the deceleration position (step S311).

以上の判定の結果、タイムカード2の挿入側先端部が減速位置に到達した場合(ステップS311でYES)、制御部21は、第2の駆動パルスについての発振開始信号を駆動パルス発生部22に送出する。駆動パルス発生部22は、制御部21からの前記発振開始信号を受けると、前記第1の駆動パルスよりもパルス速度が遅い第2の駆動パルス(例えば、300pps)を発生する。ドライバ23は、駆動パルス発生部22から送られる第2の駆動パルスを送りモータ7に供給する(ステップS312)。   As a result of the above determination, when the insertion side tip of the time card 2 has reached the deceleration position (YES in step S311), the control unit 21 sends an oscillation start signal for the second drive pulse to the drive pulse generation unit 22. Send it out. When the drive pulse generator 22 receives the oscillation start signal from the controller 21, the drive pulse generator 22 generates a second drive pulse (for example, 300 pps) having a pulse speed slower than that of the first drive pulse. The driver 23 supplies the second drive pulse sent from the drive pulse generator 22 to the feed motor 7 (step S312).

第2の駆動パルスの供給が開始されると、送りモータ7の図示しない駆動軸の回転速度が減速し、カード送り(搬送)速度も減速する。しかる後、タイムカード2が、送りローラ6a,6bから外れ、カード検出センサ4の検出領域からも脱すると、カード検出センサ4は、未検出信号を制御部21に送出する。制御部21は、カード検出センサ4からの前記未検出信号を受けると、タイムカード2の排出が完了したと判定し(ステップS313でYES)、発振停止信号を駆動パルス発生部22に送出する。これにより、第2の駆動パルスの供給が停止され(ステップS314)、カード送り機構(ローラ軸5、送りローラ6a,6b)の駆動が停止する。以上でカード送り制御処理は終了となる。   When the supply of the second drive pulse is started, the rotational speed of the drive shaft (not shown) of the feed motor 7 is reduced, and the card feed (conveyance) speed is also reduced. Thereafter, when the time card 2 is detached from the feed rollers 6 a and 6 b and is also removed from the detection area of the card detection sensor 4, the card detection sensor 4 sends an undetected signal to the control unit 21. When the control unit 21 receives the non-detection signal from the card detection sensor 4, it determines that the discharge of the time card 2 has been completed (YES in step S 313), and sends an oscillation stop signal to the drive pulse generation unit 22. As a result, the supply of the second drive pulse is stopped (step S314), and the drive of the card feed mechanism (roller shaft 5, feed rollers 6a and 6b) is stopped. This is the end of the card feed control process.

以上のように、本実施形態に係るステッピングモータ制御装置20は、タイムカ−ド2を排出するためのカード送り制御において、最初は、第1の駆動パルスを送りモータ7に供給して、高速にタイムカード2を搬送し、タイムカード2が排出される間際のポイント(減速位置)で、第2の駆動パルスを送りモータ7に供給して、搬送速度を減速させる。これにより、高速なカード送り(搬送)をしつつも、排出の際の過剰な勢いを抑制でき、タイムカード2が安定して排出されることになる。   As described above, in the card feed control for discharging the time card 2, the stepping motor control device 20 according to the present embodiment first supplies the first drive pulse to the feed motor 7 to increase the speed. The time card 2 is conveyed, and at the point (deceleration position) just before the time card 2 is ejected, the second drive pulse is supplied to the feed motor 7 to decelerate the conveyance speed. Thereby, while carrying out high-speed card feeding (conveyance), excessive momentum at the time of discharge can be suppressed, and the time card 2 is stably discharged.

尚、本発明に係るステッピングモータ制御装置は、上記実施形態に限定されるものではなく、本発明の要旨を逸脱しない範囲で種々の変更が可能である。   The stepping motor control device according to the present invention is not limited to the above embodiment, and various modifications can be made without departing from the gist of the present invention.

例えば、上記実施形態では、タイムカード2の挿入側先端部が減速位置に到達したか否かの判定(ステップS311の処理)を所要パルス数算出部が算出した所要パルス数と、パルスカウンタがカウントしたパルス数に基づき行っているが、タイムカード2の挿入側先端部が減速位置に到達したか否かの判定の手法はこれに限定されることはない。例えば、第1の駆動パルスのパルス速度に基づいて、タイムカードの挿入側先端部が減速位置まで到達するのに必要な時間を算出する所要時間算出部と、送りモータ(ステッピングモータ)への第1の駆動パルスの供給時間を計時するタイマとを備えて、前記所要時間算出部の算出結果及び前記タイマの計時結果に基づき減速位置への到達有無を判定する仕様にしてもよい。   For example, in the above-described embodiment, the required pulse number calculated by the required pulse number calculation unit and the pulse counter count whether or not the insertion-side tip of the time card 2 has reached the deceleration position (processing in step S311). However, the method for determining whether or not the insertion side tip of the time card 2 has reached the deceleration position is not limited to this. For example, based on the pulse speed of the first drive pulse, a time calculation unit that calculates the time required for the leading end of the insertion side of the time card to reach the deceleration position, and a first to the feed motor (stepping motor) A timer for measuring the supply time of one drive pulse, and determining whether or not the vehicle has reached the deceleration position based on the calculation result of the required time calculation unit and the time measurement result of the timer.

また、減速位置の近傍に光センサ等のカード検出センサを配置し、このカード検出センサからの信号(未検出信号)によって、減速位置への到達有無を判定する仕様にしてもよい。この場合、タイムカードの挿入側先端部が、前記カード検出センサの検出領域から脱すると(即ち、タイムカードが検出されなくなると)、これを示す信号(未検出信号)が、ステッピングモータ制御装置の制御部に送出される。そして、前記カード検出センサからの前記未検出信号を受けた制御部は、タイムカードの挿入側先端部が減速位置に到達したものとして判定する。   In addition, a card detection sensor such as an optical sensor may be arranged in the vicinity of the deceleration position, and the specification for determining whether or not the vehicle reaches the deceleration position may be made based on a signal (undetected signal) from the card detection sensor. In this case, when the insertion end of the time card is removed from the detection area of the card detection sensor (that is, when the time card is not detected), a signal indicating this (undetected signal) is sent to the stepping motor control device. It is sent to the control unit. And the control part which received the said non-detection signal from the said card | curd detection sensor determines with the insertion side front-end | tip part of a time card having reached the deceleration position.

本発明の一実施形態に係るタイムレコーダの概略構成を示す図である。It is a figure which shows schematic structure of the time recorder which concerns on one Embodiment of this invention. 同実施形態において、ステッピングモータ制御装置の内部構成を示すブロック図である。FIG. 3 is a block diagram showing an internal configuration of a stepping motor control device in the same embodiment. 同実施形態において、ステッピングモータ制御装置によるカード送り制御の処理手順を示すフローチャートである。In the same embodiment, it is a flowchart which shows the process sequence of card | curd feed control by a stepping motor control apparatus.

1 タイムレコーダ
2 タイムカード
3 カード挿入口
4,9a,9b カード検出センサ
5 ローラ軸
6a,6b 送りローラ
7 送りモータ
8 タイミングベルト
20 ステッピングモータ制御装置
21 制御部
22 駆動パルス発生部
23 ドライバ
24 所要パルス数算出部
25 パルスカウンタ
30 主制御装置
DESCRIPTION OF SYMBOLS 1 Time recorder 2 Time card 3 Card insertion slot 4, 9a, 9b Card detection sensor 5 Roller shaft 6a, 6b Feed roller 7 Feed motor 8 Timing belt 20 Stepping motor control device 21 Control part 22 Drive pulse generation part 23 Driver 24 Required pulse number Calculation unit 25 Pulse counter 30 Main controller

Claims (5)

カード送り機構を駆動させるステッピングモータの制御装置において、
カードを排出するためのカード送りが開始されてから当該カードの挿入側先端部が所定位置に到達するまでは、第1の駆動パルスを前記ステッピングモータに供給し、前記所定位置到達後は、前記第1の駆動パルスよりもパルス速度が遅い第2の駆動パルスを前記ステッピングモータに供給する駆動パルス供給手段と、を備える、
ことを特徴とするステッピングモータ制御装置。
In the control device of the stepping motor that drives the card feeding mechanism,
The first driving pulse is supplied to the stepping motor from the start of the card feed for discharging the card until the leading end of the insertion side of the card reaches the predetermined position, and after reaching the predetermined position, Drive pulse supply means for supplying a second drive pulse having a pulse speed slower than that of the first drive pulse to the stepping motor,
A stepping motor control device characterized by the above.
前記カードを排出するためのカード送り開始の際、前記第1の駆動パルスのパルス速度に基づいて、前記カードの挿入側先端部が前記所定位置まで到達するのに必要なパルス数を算出する所要パルス数算出手段と、
前記ステッピングモータに供給される前記第1の駆動パルスのパルス数を計数するパルスカウンタと、を更に備え、
前記所定位置への到達有無が、前記所要パルス数算出手段の算出結果及び前記パルスカウンタの計数結果に基づき判定される、
ことを特徴とする請求項1に記載のステッピングモータ制御装置。
A requirement to calculate the number of pulses required for the insertion side tip of the card to reach the predetermined position based on the pulse speed of the first drive pulse when starting the card feed for ejecting the card A pulse number calculating means;
A pulse counter that counts the number of pulses of the first drive pulse supplied to the stepping motor;
Whether or not the predetermined position has been reached is determined based on the calculation result of the required pulse number calculating means and the counting result of the pulse counter.
The stepping motor control device according to claim 1.
前記カードを排出するためのカード送り開始の際、前記第1の駆動パルスのパルス速度に基づいて、前記カードの挿入側先端部が前記所定位置まで到達するのに必要な時間を算出する所要時間算出手段と、
前記ステッピングモータへの前記第1の駆動パルスの供給時間を計時するタイマと、を更に備え、
前記所定位置への到達有無が、前記所要時間算出手段の算出結果及び前記タイマの計時結果に基づき判定される、
ことを特徴とする請求項1に記載のステッピングモータ制御装置。
Time required to calculate the time required for the insertion side tip of the card to reach the predetermined position on the basis of the pulse speed of the first drive pulse when starting card feeding for discharging the card A calculation means;
A timer for measuring the supply time of the first drive pulse to the stepping motor,
Whether or not the predetermined position has been reached is determined based on a calculation result of the required time calculation means and a time measurement result of the timer.
The stepping motor control device according to claim 1.
請求項1乃至請求項3の何れか1項に記載のステッピングモータ制御装置を備えたことを特徴とするタイムレコーダ。   A time recorder comprising the stepping motor control device according to any one of claims 1 to 3. コンピュータを、
カードを排出するためのカード送りが開始されてから当該カードの挿入側先端部が所定位置に到達するまでは、カード送り機構を駆動させるステッピングモータに第1の駆動パルスを供給し、前記所定位置到達後は、前記第1の駆動パルスよりもパルス速度が遅い第2の駆動パルスを前記ステッピングモータに供給する駆動パルス供給手段として機能させる、
ことを特徴とするコンピュータプログラム。
Computer
The first driving pulse is supplied to the stepping motor that drives the card feeding mechanism from the start of the card feeding for ejecting the card until the leading end of the insertion side of the card reaches the predetermined position. After arriving, it functions as a drive pulse supply means for supplying the stepping motor with a second drive pulse whose pulse speed is slower than that of the first drive pulse.
A computer program characterized by the above.
JP2006214711A 2006-08-07 2006-08-07 Stepping motor controller, time recorder, and computer program Pending JP2008040818A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2006214711A JP2008040818A (en) 2006-08-07 2006-08-07 Stepping motor controller, time recorder, and computer program
TW96126830A TW200813895A (en) 2006-08-07 2007-07-23 Time recorder, stepping motor control device, and program
PCT/JP2007/065410 WO2008018437A1 (en) 2006-08-07 2007-08-07 Time recorder, stepping motor control device, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006214711A JP2008040818A (en) 2006-08-07 2006-08-07 Stepping motor controller, time recorder, and computer program

Publications (1)

Publication Number Publication Date
JP2008040818A true JP2008040818A (en) 2008-02-21

Family

ID=39032967

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006214711A Pending JP2008040818A (en) 2006-08-07 2006-08-07 Stepping motor controller, time recorder, and computer program

Country Status (3)

Country Link
JP (1) JP2008040818A (en)
TW (1) TW200813895A (en)
WO (1) WO2008018437A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH087490Y2 (en) * 1985-11-13 1996-03-04 株式会社精工舎 Time recorder
JPH0739196B2 (en) * 1988-06-10 1995-05-01 沖電気工業株式会社 Printer paper feed control method
JPH02105283A (en) * 1988-10-13 1990-04-17 Matsushita Electric Ind Co Ltd Card device
JPH11255390A (en) * 1998-03-09 1999-09-21 Matsushita Electric Ind Co Ltd Paper emerging device
JP4312544B2 (en) * 2002-08-30 2009-08-12 セイコープレシジョン株式会社 Time recorder

Also Published As

Publication number Publication date
TWI336455B (en) 2011-01-21
TW200813895A (en) 2008-03-16
WO2008018437A1 (en) 2008-02-14

Similar Documents

Publication Publication Date Title
KR20010050714A (en) Printer and control method therefor
JP2012218836A (en) Paper feeder
JP5978703B2 (en) Transport device
JP2006212794A (en) Label issuance controlling method of label printer
US8894065B2 (en) Printing apparatus and method for conveying sheet
JP2009298061A (en) Recording apparatus
JP2006298587A (en) Sheet feeding method and sheet feeding device
JP6705260B2 (en) Inkjet recording device
JP2008040818A (en) Stepping motor controller, time recorder, and computer program
JP2004261916A (en) Cutting apparatus for printer
US10183507B2 (en) Image recording apparatus and image recording method
JP5578248B2 (en) Recording device
JP5195318B2 (en) Motor control apparatus, recording apparatus, and motor control method
US10513403B2 (en) Sheet conveying device and image forming apparatus
JP2002302313A (en) Device and method of detecting remaining amount of roll paper and recording device
JP4703318B2 (en) Continuous paper processing apparatus and operation control method
JP4884125B2 (en) Stepping motor control device, time recorder and computer program
US20120242038A1 (en) Printing apparatus and printing method
JP2005320148A (en) Mark detection method for continuous paper, mark detection mechanism, and printer
EP2503397B1 (en) Image processing device and computer control program
US20200102179A1 (en) Image Forming Apparatus
JP2007216618A (en) Image forming apparatus
JP2007062858A (en) Image forming device
JP3916051B2 (en) Printing device
JP2023121272A (en) Printer and method for controlling printer

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080312

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080513

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080630

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080805

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20081202