WO2008018437A1 - Time recorder, stepping motor control device, and program - Google Patents

Time recorder, stepping motor control device, and program Download PDF

Info

Publication number
WO2008018437A1
WO2008018437A1 PCT/JP2007/065410 JP2007065410W WO2008018437A1 WO 2008018437 A1 WO2008018437 A1 WO 2008018437A1 JP 2007065410 W JP2007065410 W JP 2007065410W WO 2008018437 A1 WO2008018437 A1 WO 2008018437A1
Authority
WO
WIPO (PCT)
Prior art keywords
card
time
stepping motor
printing
detecting
Prior art date
Application number
PCT/JP2007/065410
Other languages
French (fr)
Japanese (ja)
Inventor
Koji Ebara
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.
Publication of WO2008018437A1 publication Critical patent/WO2008018437A1/en

Links

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

Definitions

  • Time recorder Time recorder, stepping motor control device, and program
  • the present invention relates to a time recorder having a transport mechanism for transporting a card, and a stepping motor control device for driving the transport mechanism.
  • a time recorder is used for managing the working hours of company employees and the like, and prints the current time on an inserted time card.
  • Time recorder power The position of printing time on the S time card changes from day to day. For this reason, a normal time recorder has a transport mechanism that transports the time card to a desired position, and prints the time after transporting the time card to an appropriate position. If the time card deviates from the appropriate printing position, the time printing position will also deviate. For this reason, it is necessary to accurately control the position where the time card is conveyed.
  • a stepping motor is often used as disclosed in Patent Document 1 in order to appropriately control the position of the time card.
  • the transport mechanism includes a sensor for detecting a time card inserted into the inlet formed on the upper surface of the time recorder.
  • the transport mechanism pulls in the time force in response to the sensor detection. After the characters are printed on the time card, the transport mechanism transports the time force to the original position and discharges it.
  • Patent Document 1 Japanese Unexamined Patent Application Publication No. 2004-1 10794
  • time recorder having such a configuration
  • the time card force S is moved to a predetermined position by the transfer mechanism and then dropped by gravity, and the sensor detects the time card.
  • the transport mechanism pulls the time card back into the time recorder and prints it. If the conveying speed is slow, such a problem does not occur. However, it takes time to transport the time card, which is inconvenient.
  • the present invention has been made in view of the above circumstances, and a time card is a time recorder.
  • the purpose is to make it difficult for the time card to be pulled into the time recorder when it is discharged.
  • the present invention provides a means for solving the problems aimed at preventing malfunction while transporting a time card at high speed.
  • a time recorder includes:
  • the card In order to discharge the card printed by the printing means, the card is conveyed at the first speed until it reaches a predetermined deceleration position, and after reaching the predetermined deceleration position, the first Conveying means for conveying at a second speed slower than the speed;
  • the conveying means is, for example,
  • a driving noise is supplied to the stepping motor at the first interval, and after the card reaches a predetermined deceleration position. Is longer than the first interval !, motor drive means for supplying drive pulses at the second interval;
  • the detection means for example,
  • Print position information output means for outputting print position information indicating the position of the card when the printing means prints characters on the card
  • Required pulse for obtaining a required pulse number indicating the number of drive pulses required by the stepping motor in order to convey the card from the print position indicated by the print position information output by the print position information output means to the deceleration position.
  • Number calculating means
  • X is provided with a pulse number arrival detecting means for detecting that the number counted by the above-mentioned counter has reached the required number of nores calculated by the required number of count calculating means and outputting a detection signal.
  • the detection means is, for example,
  • Print position information output means for outputting print position information indicating the position of the card when the printing means prints characters on the card
  • a stepping motor control device includes:
  • Detection means for detecting that the print medium has reached a predetermined position in the transport process; a stepping motor for driving the transport mechanism;
  • the stepping motor In response to detecting that the stepping motor is supplied with driving noise at a first interval and the detection means detects that the force is conveyed to the predetermined position, the stepping motor is more than the first interval. Pulse supplying means for supplying the driving noise to the stepping motor at a long second interval;
  • the time recorder of the present invention discharges after reducing the transport speed of the time card. This Therefore, it is possible to avoid a situation in which the time card conveyed and discharged at high speed jumps and falls due to gravity. As a result, the time force conveyed to the stop position is pulled back into the time recorder.
  • FIG. 1 is a diagram showing a time recorder according to an embodiment of the present invention and a time card inserted into the time recorder.
  • FIG. 2 is a diagram showing an internal configuration of a time recorder according to the embodiment of the present invention.
  • FIG. 3 is a block diagram showing an internal configuration of a stepping motor control device.
  • FIG. 4 is a flowchart showing a processing procedure of card feed control by the stepping motor control device.
  • FIG. 5 is a block diagram showing a modification of the internal configuration of the stepping motor control device.
  • FIG. 6 is a diagram showing a modification of the internal configuration of the time recorder.
  • time recorder 1 according to an embodiment of the present invention will be described.
  • the time recorder 1 is a stationary type equipped with a printing function for the time card 2.
  • the time recorder 1 includes a housing 11, a display panel 3, and the like.
  • the casing 11 accommodates other parts.
  • a card slot 11a for inserting the time card 2 into the time recorder 1 is provided on the upper surface of the housing 11.
  • the display panel 3 is composed of an LCD (liquid crystal display) panel or the like, and displays the current time and the like.
  • the time recorder 1 includes a card detection sensor 12, a roller shaft 13, feed rollers 14a and 14b, a motor 15, a timing belt 16, and card detection sensors 17a and 17b.
  • the card detection sensor 12 is composed of, for example, a transmissive optical sensor composed of a light emitting element and a light receiving element.
  • the card detection sensor 12 is configured so that the end of the inserted time card 2 passes between the light emitting element and the light receiving element, and detects the time card 2 inserted from the card inlet 11a.
  • the card detection sensor 12 is not limited to a transmission type optical sensor, but is, for example, a reflection type optical sensor, or a switch type sensor that operates by turning on the lever when the end of the time card 2 contacts. , May consist of! /
  • the roller shaft 13 rotates so as to pull in the inserted time card 2 or to discharge the inserted time card 2.
  • the roller shaft 13 is provided with a pair of left and right feed rollers 14a and 14b.
  • the feed rollers 14a and 14b contact the inserted time card 2 and rotate in accordance with the rotation of the roller shaft 13, thereby conveying the inserted time card 2 and drawing it into the time recorder 11.
  • the inserted time card 2 is discharged from the time recorder.
  • the motor 15 is a drive source (rotation source) for the roller shaft 13, and is configured by a stepping motor that rotates by a predetermined step unit when given a pulse signal (drive pulse).
  • the motor 15 has a lower pulse speed of the supplied drive noise. The longer it is, the slower it rotates.
  • the timing belt 16 transmits the driving force of the motor 15 to the roller shaft 13.
  • the card detection sensors 17a and 17b are composed of a pair of left and right sensors, and detect the time card 2 when the lower end of the drawn time card 2 reaches the maximum drawing position.
  • the printing unit 19 prints predetermined data, for example, the current time, on the time card 2 under the control of the main controller 30.
  • the stepping motor control device 20 includes a control unit 21, a drive panel generation unit 22, a driver 23, a required pulse number calculation unit 24, a pulse counter 25, and card detection sensors 12, 17a, 17b. Prepare.
  • the control unit 21 includes a microprocessor unit, a ROM (Read Only Memory) that stores a program that defines a processing procedure by the microprocessor unit, and a RAM (Randam Access Memory) that the microprocessor uses in a work area or the like. , Is provided.
  • the control unit 21 controls the entire stepping motor control device 20.
  • a detection signal indicating the detection is input to the control unit 21.
  • the drive pulse generator 22 generates a drive pulse for rotating the rotor of the motor 15 at a predetermined rotational speed. Further, the drive pulse generator 22 is constituted by, for example, an separately-excited oscillation circuit and adjusts the drive pulse to a desired pulse speed based on the oscillation control signal from the controller 21.
  • the driver 23 supplies a drive signal (phase switching signal) for controlling the rotation of the rotor of the motor 15 to the motor 15 based on the drive noise and the control signal from the control unit 21.
  • the required pulse number calculation unit 24 receives a calculation command signal from the control unit 21. Based on the pulse speed of the drive pulse generated by the drive pulse generator 22, the required panelless number calculator 24 transports the time force 2 from the current position to a predetermined discharge position on the transport path for sending the card. Calculate the number of drive noises required to do this (hereinafter referred to as “the number of required pulses”). This discharge position is set, for example, at a position of 8 mm from the central axis of the roller shaft 13 toward the card drawing direction. In addition, the required pulse number calculation unit 24 calculates the required required noise. The control unit 21 is notified of the number. It should be noted that a method of calculating the required number of drive pulses in a form in which the required number of pulses is obtained in advance, stored in tape, and the appropriate number of pulses is read from the table. It may be used.
  • the noise counter 25 responds to the count start signal from the control unit 21 and generates a drive noise generating unit.
  • the noise counter 25 notifies the control unit 21 of the count value.
  • the main controller 30 includes, for example, a microcomputer, ROM, RAM, and the like, and controls the entire time recorder 1.
  • the main control unit 30 controls the printing unit 19 to print predetermined information (for example, time and attendance information) in the printing field of the time mode 2.
  • the main controller 30 also sends information indicating the position printed on the time card 2 (hereinafter referred to as “print position information”) and a print end signal indicating the end of printing to the control unit 21.
  • the control unit 21 may be a function unit of the main control device 30! /.
  • the card detection sensor 12 detects the insertion of the time card 2 and sends a detection signal to the control unit 21. Send to.
  • the control unit 21 sends an oscillation start signal instructing the drive pulse generation unit 22 to generate a pull-in drive pulse.
  • the drive noise generator 22 Upon receiving this oscillation start signal, the drive noise generator 22 generates a pull-in drive noise at a predetermined pulse speed and supplies it to the driver 23. Further, the control unit 21 sends a pull-in drive control signal to the driver 23.
  • the driver 23 that has received this pull-in drive control signal supplies the pull-in drive noise received from the drive noise generator 22 to the motor 15 (step S1).
  • the card feed mechanism (in this embodiment, the roller shaft 13, the feed rollers 14a, 14b) is driven, and the pull-in of the time card 2 is started. Specifically, the rotor and the drive shaft of the motor 15 rotate, and are transmitted to the roller shaft 13 through the driving force force timing belt 16 by this rotation. As a result, the rotation of the roller shaft 13 starts, and the time card 2 is drawn into the time recorder 1 by the feed rollers 14a and 14b.
  • the card detection sensors 17a and 17b send a detection signal indicating the arrival to the control unit 21. Upon receiving this detection signal, the control unit 21 sends an oscillation stop signal to the drive noise generation unit 22. As a result, the supply of the pulling drive noise is stopped (step S3), and the pull-in of the time card 2 is stopped.
  • main controller 30 While the pull-in of time card 2 is stopped, main controller 30 sends print position information to control unit 21.
  • the main controller 30 may send the print position information before the time card 2 is stopped.
  • the control unit 21 Based on this print position information, the control unit 21 performs control to raise the time card 2 to a position (print position) where characters are printed in a predetermined print field of the time card 2.
  • the control unit 21 sends an oscillation start signal instructing generation of the pulling-up driving noise to the driving noise generating unit 22.
  • the drive noise generating unit 22 generates a pulling up drive noise.
  • the control unit 21 sends a pulling drive control signal to the driver 23.
  • the driver 23 controls the motor 15 so that the drive shaft of the motor 15 rotates in the direction opposite to the pull-in direction. In accordance with the pulse, a drive signal is supplied to the motor 15 (step S4).
  • step S5 When the pulling drive noise is supplied to the motor 15, the motor 15 rotates the drive shaft in the direction opposite to that during pulling. For this reason, the roller shaft 13 also rotates in the direction opposite to that at the time of drawing, and the time card 2 is pulled up.
  • the control unit 21 sends an oscillation stop signal to the drive pulse generation unit 22. As a result, the supply of the pulling drive norse is stopped (step S6), and the pulling of the time force mode 2 is stopped.
  • the main control unit 30 controls the printing unit 19 to write predetermined information (for example, attendance information) in the printing field of the time card 2 (printing process).
  • predetermined information for example, attendance information
  • main controller 30 sends a print end signal to control unit 21.
  • the control unit 21 Upon receiving this print end signal, the control unit 21 sends an oscillation start signal instructing the generation of the first drive noise, which is a drive noise for discharge, to the drive noise generation unit 22.
  • the noise generating unit 22 When receiving the oscillation start signal, the noise generating unit 22 generates the first driving noise (for example, 600 pps (pulse per second)), and the 23no 23 is given ⁇ .
  • control unit 21 sends a drive control signal for discharge to the driver 23.
  • the driver 23 that has received the discharge drive control signal supplies the drive signal according to the first drive pulse from the drive pulse generator 22 to the motor 15 (step S8).
  • the control unit 21, the drive pulse generation unit 22, and the driver 23 supply the motor 15 with the drive signal (phase switching signal) corresponding to the first drive pulse.
  • control unit 21 sends a calculation command signal to the required no-les number calculation unit 24 at the same timing as the timing at which the oscillation start signal for generating the first drive noise is sent to the drive noise generation unit 22. .
  • the required pulse number calculation unit 24 calculates the required number of pulses required for the insertion side tip of the time card 2 to reach a predetermined position on the transport path (step S9). ).
  • This predetermined position is a point set in advance to stabilize the discharge of the time card 2 and decelerates the conveyance speed (card feed speed) of the time card 2 (hereinafter referred to as "deceleration position"). ).
  • the deceleration position is set to a position just before the time card 2 is removed from the feed rollers 14a and 14b (for example, a position 8 mm from the central axis of the roller shaft 13).
  • control unit 21 sends the print position information received from the main control device 30 and the information indicating the deceleration position, together with the calculation command signal, to the required noise number calculation unit 24.
  • the required pulse number calculation unit 24 calculates the required number of pulses based on the print position information, the information indicating the deceleration position, and the pulse speed of the first drive pulse. For example, the required pulse number calculation unit 24 obtains the distance between the printing position and the deceleration position indicated by the printing position information. Further, the required pulse number calculation unit 24 divides the distance by the distance that the transport mechanism transports the card when one driving pulse is supplied to the stepping motor, thereby obtaining the required number of pulses. Then, the required number-of-pulses calculation unit 24 notifies the control unit 21 of the calculated required number of pulses.
  • control unit 21 sends a count start signal to the noise counter 25 at the same timing as sending the calculation command signal to the required dose number calculation unit 24.
  • Norse counter 25 When the counting start signal is received from the control unit 21, counting of the number of first driving noises generated by the driving noise generating unit 22 is started (step S10).
  • the control unit 21 counts the required number of pulses calculated by the required pulse number calculation unit 24 and the first count counted by the false counter 25. It is determined whether the insertion side end of the time card 2 has been transported to the deceleration position or not by comparing with the number of driving noises (step S11).
  • step S11 If the leading end of the insertion side of the time card 2 has reached the deceleration position (step S11; Yes), the control unit 21 starts oscillation instructing to generate the second driving noise. Send the signal to the drive noise generator 22. Upon receiving this oscillation start signal, the drive noise generator 22 generates a second drive noise (for example, 300 pps) that is slower than the first drive noise, and sends it to the driver 23. The driver 23 supplies the second driving panel received from the driving noise generating unit 22 to the motor 15 (step S12).
  • a second drive noise for example, 300 pps
  • the card detection sensor 12 sends an undetected signal indicating that the time card 2 does not exist in the detection area to the control unit 21.
  • the control unit 21 determines that the time card 2 is completely discharged (step S 13; Yes), and sends an oscillation stop signal to the drive pulse generation unit 22.
  • the supply of the second drive pulse is stopped (step S14), and the drive of the card feed mechanism (roller shaft 13, feed rollers 14a, 14b) is stopped. This is the end of the card feed control process.
  • the time recorder 1 transports the time card 2 to be ejected
  • the card reaches a predetermined deceleration position
  • the interval is longer than before the arrival.
  • drive noise is supplied to motor 15.
  • the time card transport speed is reduced. Therefore, when the time card 2 is transported to a predetermined stop position (upper end) and then jumps and falls, it is difficult to happen.
  • the card detection It is possible to prevent the time card 2 from which the sensor 12 has been discharged from being erroneously detected as the newly inserted time card 2. As a result, the time card conveyed to the stop position is drawn back into the time recorder.
  • stepping motor control device is not limited to the above-described embodiment, and various modifications can be made without departing from the gist of the present invention.
  • the required time for calculating the time required for the end of the time card 2 to reach the deceleration position based on the pulse speed of the first drive pulse For example, it is possible to determine that the lower end of the time card 2 has reached the deceleration position based on the transport time.
  • a calculating unit 24a and a timer 25a for measuring the supply time of the first driving noise to the motor 15 are provided.
  • the control unit 21 determines that the time card 2 has reached the deceleration position.
  • a card detection sensor 24b such as an optical sensor is provided in the vicinity of the deceleration position, and when the control unit 21 receives an undetected signal from the card detection sensor 24b, the card detection sensor 24b decreases. It may be determined that the time card 2 has reached the speed position.
  • a program for executing the control operation shown in FIG. 4 is recorded on a recording medium and distributed to a computer, for example, a processor constituting the main control device 30 and / or the control unit 21, and this is controlled by the computer. May be used for
  • the time card When the time card is transported to be discharged from the time recorder, the time card can be drawn back into the time recorder.

Abstract

A card detection sensor (12) detects a time card inserted through a card insertion opening. A control part (21) detects that printing on the inserted time card is completed. In response to the detection, a driver (23) supplies drive pulses to a motor (15) at first pulse intervals until the printed card reaches a predetermined decelerated position. After the card reaches the decelerated position, the driver (23) supplies the drive pulses at second pulse intervals that are longer than the first pulse intervals, and decelerates the motor (15) to discharge the time card.

Description

明 細 書  Specification
タイムレコーダ、ステッピングモータ制御装置、及び、プログラム 技術分野  Time recorder, stepping motor control device, and program
[0001] 本発明は、カードを搬送する搬送機構を有するタイムレコーダ、及び、搬送機構を 駆動するステッピングモータ制御装置に関する。  The present invention relates to a time recorder having a transport mechanism for transporting a card, and a stepping motor control device for driving the transport mechanism.
背景技術  Background art
[0002] タイムレコーダは、会社の従業員等の出勤時間等を管理するために用いられ、揷 入されたタイムカードに現在時刻等を印刷する。タイムレコーダ力 Sタイムカードに時刻 を印刷する位置は、 日々変化する。このため、通常のタイムレコーダは、タイムカード を所望の位置に搬送する搬送機構を備え、タイムカードを適切な位置に搬送してか ら時刻を印刷する。タイムカードが適切な印刷位置からずれると、時刻の印刷位置も ずれてしまう。このため、タイムカードを搬送する位置を正確に制御する必要がある。 搬送機構の駆動源には、タイムカードの位置制御を適切に行うため、特許文献 1に 開示されているように、ステッピングモータが使用されることが多い。  [0002] A time recorder is used for managing the working hours of company employees and the like, and prints the current time on an inserted time card. Time recorder power The position of printing time on the S time card changes from day to day. For this reason, a normal time recorder has a transport mechanism that transports the time card to a desired position, and prints the time after transporting the time card to an appropriate position. If the time card deviates from the appropriate printing position, the time printing position will also deviate. For this reason, it is necessary to accurately control the position where the time card is conveyed. As the drive source of the transport mechanism, a stepping motor is often used as disclosed in Patent Document 1 in order to appropriately control the position of the time card.
[0003] 搬送機構は、タイムレコーダの上面に形成された揷入口に揷入されたタイムカード を検出するためのセンサを備える。搬送機構は、センサの検出に応答して、タイム力 ードを引き込む。そして、搬送機構は、タイムカードに文字が印刷された後、タイム力 ードを元の位置にに搬送して排出する。  [0003] The transport mechanism includes a sensor for detecting a time card inserted into the inlet formed on the upper surface of the time recorder. The transport mechanism pulls in the time force in response to the sensor detection. After the characters are printed on the time card, the transport mechanism transports the time force to the original position and discharges it.
特許文献 1:特開 2004— 1 10794号公報  Patent Document 1: Japanese Unexamined Patent Application Publication No. 2004-1 10794
発明の開示  Disclosure of the invention
発明が解決しょうとする課題  Problems to be solved by the invention
[0004] このような構成のタイムレコーダでは、タイムカード力 S、搬送機構によって所定の位 置まで勢いよく搬送された後、重力により落下し、センサがこのタイムカードを検出し てしまう場合がある。この場合、搬送機構がタイムカードを再びタイムレコーダに引き 込んで、印字してしまう。搬送速度が遅ければ、このような問題は発生しない。しかし 、タイムカードの搬送に時間力 Sかかってしまい、不便である。  [0004] In the time recorder having such a configuration, there is a case where the time card force S is moved to a predetermined position by the transfer mechanism and then dropped by gravity, and the sensor detects the time card. In this case, the transport mechanism pulls the time card back into the time recorder and prints it. If the conveying speed is slow, such a problem does not occur. However, it takes time to transport the time card, which is inconvenient.
[0005] 本発明は、上記実情に鑑みてなされたものであり、タイムカードをタイムレコーダか ら排出するときに、タイムカードがタイムレコーダに引き込まれにくくすることを目的と する。 [0005] The present invention has been made in view of the above circumstances, and a time card is a time recorder. The purpose is to make it difficult for the time card to be pulled into the time recorder when it is discharged.
また、本発明は、タイムカードを高速に搬送しつつ誤動作を防止することを目的とす 課題を解決するための手段  Also, the present invention provides a means for solving the problems aimed at preventing malfunction while transporting a time card at high speed.
[0006] 上記課題を解決するために、本発明に係るタイムレコーダは、  In order to solve the above problems, a time recorder according to the present invention includes:
カードに時刻を含む文字を印刷するタイムレコーダであって、  A time recorder for printing characters including time on a card,
カードに文字を印刷する印刷手段と、  Printing means for printing characters on the card;
前記印刷手段により印刷されたカードを排出するために、前記カードが所定の減速 位置に到達するまでは、第 1の速度で搬送し、所定の減速位置に到達した後は、前 記第 1の速度よりも遅い第 2の速度で搬送する搬送手段と、  In order to discharge the card printed by the printing means, the card is conveyed at the first speed until it reaches a predetermined deceleration position, and after reaching the predetermined deceleration position, the first Conveying means for conveying at a second speed slower than the speed;
を備えることを特徴とする。  It is characterized by providing.
[0007] 前記搬送手段は、例えば、 [0007] The conveying means is, for example,
前記力一ドを搬送する搬送機構と、  A conveying mechanism for conveying the force,
前記搬送機構を駆動するステッピングモータと、  A stepping motor for driving the transport mechanism;
前記カードが所定の減速位置に到達したことを検出する検出手段と、  Detecting means for detecting that the card has reached a predetermined deceleration position;
前記検出手段の検出に応答し、前記カードが所定の減速位置に到達するまでは、 前記第 1の間隔で前記ステッピングモータに駆動ノ ルスを供給し、前記カードが所定 の減速位置に到達した後は、前記第 1の間隔よりも長!、第 2の間隔で駆動パルスを 供給するモータ駆動手段と、  In response to detection by the detection means, until the card reaches a predetermined deceleration position, a driving noise is supplied to the stepping motor at the first interval, and after the card reaches a predetermined deceleration position. Is longer than the first interval !, motor drive means for supplying drive pulses at the second interval;
力 構成される。  Power composed.
[0008] 前記検出手段は、例えば、 [0008] The detection means, for example,
前記印刷手段がカードに文字を印刷するときの、前記カードの位置を指示する印 刷位置情報を出力する印刷位置情報出力手段と、  Print position information output means for outputting print position information indicating the position of the card when the printing means prints characters on the card;
前記印刷位置情報出力手段により出力された印刷位置情報が示す印刷位置から 前記減速位置までカードを搬送するために、前記ステッピングモータが必要とする駆 動パルスの数を示す所要パルス数を求める所要パルス数算出手段と、  Required pulse for obtaining a required pulse number indicating the number of drive pulses required by the stepping motor in order to convey the card from the print position indicated by the print position information output by the print position information output means to the deceleration position. Number calculating means;
前記モータ駆動手段がステッピングモータに供給した駆動ノ ルスの数を計数する ノ ノレスカウンタと、 Counts the number of drive noises supplied to the stepping motor by the motor drive means. Noreless counter,
前記ノ ルスカウンタが計数した数が、前記所要ノ ルス数算出手段で算出した所要 ノ レス数に達したことを検出し、検出信号を出力するパルス数到達検出手段と、を備 X·る。  X is provided with a pulse number arrival detecting means for detecting that the number counted by the above-mentioned counter has reached the required number of nores calculated by the required number of count calculating means and outputting a detection signal.
[0009] また、前記検出手段は、例えば、  [0009] Further, the detection means is, for example,
前記印刷手段がカードに文字を印刷するときの、前記カードの位置を指示する印 刷位置情報を出力する印刷位置情報出力手段と、  Print position information output means for outputting print position information indicating the position of the card when the printing means prints characters on the card;
前記印刷位置情報出力手段により出力された印刷位置情報が示す印刷位置から 前記減速位置までカードを搬送するために、必要となる時間を求める所要時間算出 手段と、  A required time calculating means for obtaining a time required for transporting the card from the print position indicated by the print position information output by the print position information output means to the deceleration position;
前記搬送機構による搬送時間を計時する計時手段と、  A time measuring means for measuring a transport time by the transport mechanism;
前記計時手段の計時時間が、前記所要時間算出手段で算出した所要時間に達し たことを検出し、検出信号を出力する手段と、を備えて構成されてもよい。  And a means for detecting that the time measured by the time measuring means has reached the required time calculated by the required time calculating means, and outputting a detection signal.
[0010] 上記課題を解決するために、本発明に係るステッピングモータ制御装置は、 In order to solve the above problems, a stepping motor control device according to the present invention includes:
印刷媒体に文字を印刷する印刷手段と、  Printing means for printing characters on a print medium;
前記印刷手段により印刷された記録媒体を装置外に排出するために、印刷媒体を 搬送機構と、  A transport mechanism for discharging the recording medium printed by the printing means to the outside of the apparatus;
前記印刷媒体が搬送過程の所定位置に到達したことを検出する検出手段と、 前記搬送機構を駆動するステッピングモータと、  Detection means for detecting that the print medium has reached a predetermined position in the transport process; a stepping motor for driving the transport mechanism;
前記ステッピングモータに、第 1の間隔で駆動ノ ルスを供給し、前記所定位置に力 ードが搬送されたことを前記検出手段が検出したことに応答して、前記第 1の間隔よ りも長い第 2の間隔で前記駆動ノ ルスを前記ステッピングモータに供給するパルス供 給手段と、  In response to detecting that the stepping motor is supplied with driving noise at a first interval and the detection means detects that the force is conveyed to the predetermined position, the stepping motor is more than the first interval. Pulse supplying means for supplying the driving noise to the stepping motor at a long second interval;
を備えることを特徴とする。  It is characterized by providing.
[0011] さらに、コンピュータに対して本発明の主要機能を実行させるためのプログラムを提 供する。 [0011] Furthermore, a program for causing a computer to execute the main functions of the present invention is provided.
発明の効果  The invention's effect
[0012] 本発明のタイムレコーダは、タイムカードの搬送速度を減速してから排出する。この ため、高速で搬送及び排出したタイムカードがジャンプして、重力によって落下すると いった事態を避けることが可能となる。これにより、停止位置まで搬送されたタイム力 ードが、タイムレコーダに再度引き込まれに《なる。 [0012] The time recorder of the present invention discharges after reducing the transport speed of the time card. this Therefore, it is possible to avoid a situation in which the time card conveyed and discharged at high speed jumps and falls due to gravity. As a result, the time force conveyed to the stop position is pulled back into the time recorder.
図面の簡単な説明  Brief Description of Drawings
[0013] [図 1]本発明の実施形態に係るタイムレコーダとこのタイムレコーダに揷入されるタイ ムカードを示す図である。  FIG. 1 is a diagram showing a time recorder according to an embodiment of the present invention and a time card inserted into the time recorder.
[図 2]本発明の実施形態に係るタイムレコーダの内部構成を示す図である。  FIG. 2 is a diagram showing an internal configuration of a time recorder according to the embodiment of the present invention.
[図 3]ステッピングモータ制御装置の内部構成を示すブロック図である。  FIG. 3 is a block diagram showing an internal configuration of a stepping motor control device.
[図 4]ステッピングモータ制御装置によるカード送り制御の処理手順を示すフローチヤ ートである。  FIG. 4 is a flowchart showing a processing procedure of card feed control by the stepping motor control device.
[図 5]ステッピングモータ制御装置の内部構成の変形例を示すブロック図である。  FIG. 5 is a block diagram showing a modification of the internal configuration of the stepping motor control device.
[図 6]タイムレコーダの内部構成の変形例を示す図である。  FIG. 6 is a diagram showing a modification of the internal configuration of the time recorder.
符号の説明  Explanation of symbols
[0014] 1 タイムレコーダ [0014] 1 Time recorder
2 タイムカード  2 Time card
3 表示パネノレ  3 Display pane
11 筐体  11 Enclosure
11a カード揷入口  11a Card entrance
12, 17a, 17b カード検出センサ  12, 17a, 17b Card detection sensor
13 ローラ軸  13 Roller shaft
14a, 14b 送りローラ  14a, 14b Feed roller
15 モータ  15 Motor
16 タイミングべノレ卜  16 Timing range
19 印字部  19 Print section
20 ステッピングモータ制御装置  20 Stepping motor controller
21 制御部  21 Control unit
22 駆動パルス発生部  22 Drive pulse generator
23 ドライバ 24 所要パルス数算出部 23 Driver 24 Required number of pulse calculator
25 ノ ノレスカウンタ  25 Nores counter
30 主制御装置  30 Main controller
発明を実施するための最良の形態  BEST MODE FOR CARRYING OUT THE INVENTION
[0015] 以下、本発明の実施形態に係るタイムレコーダ 1を説明する。  Hereinafter, a time recorder 1 according to an embodiment of the present invention will be described.
タイムレコーダ 1は、図 1に示すように、タイムカード 2への印字機能を備える据置型 のものである。タイムレコーダ 1は、筐体 11、表示パネル 3、等を備えている。  As shown in FIG. 1, the time recorder 1 is a stationary type equipped with a printing function for the time card 2. The time recorder 1 includes a housing 11, a display panel 3, and the like.
[0016] 筐体 11は、他の部品を収容する。筐体 11の上面には、タイムレコーダ 1内にタイム カード 2を揷入するためのカード揷入口 11aが設けられている。表示パネル 3は、 LC D (液晶表示)パネル等から構成され、現在時刻等を表示する。  The casing 11 accommodates other parts. On the upper surface of the housing 11, a card slot 11a for inserting the time card 2 into the time recorder 1 is provided. The display panel 3 is composed of an LCD (liquid crystal display) panel or the like, and displays the current time and the like.
[0017] 次に、タイムレコーダ 1の内部構成について説明する。タイムレコーダ 1は、図 2に示 すように、カード検出センサ 12、ローラ軸 13、送りローラ 14a, 14b、モータ 15、タイミ ングベルト 16、カード検出センサ 17a, 17b、を備える。  Next, the internal configuration of the time recorder 1 will be described. As shown in FIG. 2, the time recorder 1 includes a card detection sensor 12, a roller shaft 13, feed rollers 14a and 14b, a motor 15, a timing belt 16, and card detection sensors 17a and 17b.
[0018] カード検出センサ 12は、例えば、発光素子と受光素子とから構成される透過型の 光センサから構成される。カード検出センサ 12は、揷入されたタイムカード 2の端部 が発光素子と受光素子の間を通過するように構成されており、カード揷入口 11aから 揷入されたタイムカード 2を検出する。なお、カード検出センサ 12は、透過型の光セ ンサに限らず、例えば、反射型の光センサ、タイムカード 2の端部が接触することでレ バーがオンになって作動するスィッチ式のセンサ、で構成されてもよ!/、。  [0018] The card detection sensor 12 is composed of, for example, a transmissive optical sensor composed of a light emitting element and a light receiving element. The card detection sensor 12 is configured so that the end of the inserted time card 2 passes between the light emitting element and the light receiving element, and detects the time card 2 inserted from the card inlet 11a. Note that the card detection sensor 12 is not limited to a transmission type optical sensor, but is, for example, a reflection type optical sensor, or a switch type sensor that operates by turning on the lever when the end of the time card 2 contacts. , May consist of! /
[0019] ローラ軸 13は、揷入されたタイムカード 2を引き込み、又は、揷入されたタイムカード 2を排出するように回転する。ローラ軸 13には、送りローラ 14a, 14bが、左右一対設 けられている。送りローラ 14aと 14bとは、揷入されたタイムカード 2に接触すると共に ローラ軸 13の回転に伴って回転することにより、揷入されたタイムカード 2を搬送し、 タイムレコーダ 11内に引き込み、又は、揷入されたタイムカード 2をタイムレコーダ 11 力 排出する。  [0019] The roller shaft 13 rotates so as to pull in the inserted time card 2 or to discharge the inserted time card 2. The roller shaft 13 is provided with a pair of left and right feed rollers 14a and 14b. The feed rollers 14a and 14b contact the inserted time card 2 and rotate in accordance with the rotation of the roller shaft 13, thereby conveying the inserted time card 2 and drawing it into the time recorder 11. , The inserted time card 2 is discharged from the time recorder.
[0020] モータ 15は、ローラ軸 13の駆動源(回転源)であり、パルス信号(駆動パルス)が与 えられることで、予め定められたステップ単位で回転するステッピングモータから構成 される。モータ 15は、供給される駆動ノ ルスのノ ルス速度が遅いほど (パルス間隔が 長いほど)、より低速に回転する。 [0020] The motor 15 is a drive source (rotation source) for the roller shaft 13, and is configured by a stepping motor that rotates by a predetermined step unit when given a pulse signal (drive pulse). The motor 15 has a lower pulse speed of the supplied drive noise. The longer it is, the slower it rotates.
[0021] タイミングベルト 16は、モータ 15の駆動力をローラ軸 13に伝達する。 The timing belt 16 transmits the driving force of the motor 15 to the roller shaft 13.
カード検出センサ 17a, 17bは、左右一対のセンサで構成され、引き込まれたタイム カード 2の下端部が最大引込位置に到達したときにタイムカード 2を検出する。  The card detection sensors 17a and 17b are composed of a pair of left and right sensors, and detect the time card 2 when the lower end of the drawn time card 2 reaches the maximum drawing position.
印字部 19は、主制御装置 30の制御下に、タイムカード 2に所定のデータ、例えば、 現在時刻を印字する。  The printing unit 19 prints predetermined data, for example, the current time, on the time card 2 under the control of the main controller 30.
[0022] 次に、モータ 15の駆動を制御するステッピングモータ制御装置 20の構成について 説明する。図 3に示すように、ステッピングモータ制御装置 20は、制御部 21、駆動パ ノレス発生部 22、ドライバ 23、所要パルス数算出部 24、パルスカウンタ 25、カード検 出センサ 12, 17a, 17b、を備える。  Next, the configuration of the stepping motor control device 20 that controls the driving of the motor 15 will be described. As shown in FIG. 3, the stepping motor control device 20 includes a control unit 21, a drive panel generation unit 22, a driver 23, a required pulse number calculation unit 24, a pulse counter 25, and card detection sensors 12, 17a, 17b. Prepare.
[0023] 制御部 21は、マイクロプロセッサユニット、このマイクロプロセッサユニットによる処理 の手順を定義したプログラムを格納する ROM (Read Only Memory),マイクロプロセ ッサュュットがワークエリア等に使用する RAM (Randam Access Memory),を備える。 制御部 21は、ステッピングモータ制御装置 20全体を制御する。また、各カード検出 センサ 12, 17a, 17bがタイムカード 2の端部を検出すると、検出したことを示す検出 信号が、制御部 21に入力される。  [0023] The control unit 21 includes a microprocessor unit, a ROM (Read Only Memory) that stores a program that defines a processing procedure by the microprocessor unit, and a RAM (Randam Access Memory) that the microprocessor uses in a work area or the like. , Is provided. The control unit 21 controls the entire stepping motor control device 20. When each of the card detection sensors 12, 17a, 17b detects the end of the time card 2, a detection signal indicating the detection is input to the control unit 21.
[0024] 駆動パルス発生部 22は、モータ 15のロータを所定の回転速度で回転させるための 駆動パルスを発生する。また、駆動パルス発生部 22は、例えば、他励方式の発振回 路等により構成され、制御部 21からの発振制御信号に基づき、駆動ノ ルスを所望の ノ ルス速度に調整する。ドライバ 23は、駆動ノ ルスと制御部 21からの制御信号とに 基づき、モータ 15のロータの回転を制御するための駆動信号 (相切換信号)をモータ 15に供給する。  The drive pulse generator 22 generates a drive pulse for rotating the rotor of the motor 15 at a predetermined rotational speed. Further, the drive pulse generator 22 is constituted by, for example, an separately-excited oscillation circuit and adjusts the drive pulse to a desired pulse speed based on the oscillation control signal from the controller 21. The driver 23 supplies a drive signal (phase switching signal) for controlling the rotation of the rotor of the motor 15 to the motor 15 based on the drive noise and the control signal from the control unit 21.
[0025] 所要パルス数算出部 24は、制御部 21から算出指令信号を受ける。そして、所要パ ノレス数算出部 24は、駆動パルス発生部 22が発生する駆動パルスのパルス速度に基 づいて、カードを送る搬送経路において現在位置から所定の排出位置までタイム力 ード 2を搬送するのに必要な駆動ノ ルスの数 (以下、「所要パルス数」という)を算出 する。この排出位置は、例えば、ローラ軸 13の中心軸からカード引込方向に向かつ て 8mmの位置に設定される。また、所要パルス数算出部 24は、求めた所要ノ ルス 数を制御部 21に通知する。なお、必要なパルス数を予め求めておき、これをテープ ル化して記憶し、テーブルから適切なノ ルス数を読み出すような形態で、必要な駆 動ノ ルスの数を算出するような方法を用いても良い。 The required pulse number calculation unit 24 receives a calculation command signal from the control unit 21. Based on the pulse speed of the drive pulse generated by the drive pulse generator 22, the required panelless number calculator 24 transports the time force 2 from the current position to a predetermined discharge position on the transport path for sending the card. Calculate the number of drive noises required to do this (hereinafter referred to as “the number of required pulses”). This discharge position is set, for example, at a position of 8 mm from the central axis of the roller shaft 13 toward the card drawing direction. In addition, the required pulse number calculation unit 24 calculates the required required noise. The control unit 21 is notified of the number. It should be noted that a method of calculating the required number of drive pulses in a form in which the required number of pulses is obtained in advance, stored in tape, and the appropriate number of pulses is read from the table. It may be used.
[0026] ノ ルスカウンタ 25は、制御部 21からの計数開始信号に応答し、駆動ノ ルス発生部 [0026] The noise counter 25 responds to the count start signal from the control unit 21 and generates a drive noise generating unit.
22が発生する駆動ノ^レスをカウントする。また、ノ ルスカウンタ 25は、カウント値を制 御部 21に通知する。  Count the drive nos where 22 occurs. Further, the noise counter 25 notifies the control unit 21 of the count value.
[0027] 主制御装置 30は、例えば、マイクロコンピュータ、 ROM、 RAM、等を備え、タイム レコーダ 1全体を制御する。主制御部 30は、例えば、印字部 19を制御して、タイム力 ード 2の印字欄に所定情報 (例えば、出退勤情報等)を印刷する。また、主制御装置 30は、タイムカード 2に印字される位置を示す情報(以下、「印字位置情報」という)と 、印字が終了したことを示す印字終了信号とを、制御部 21に送る。なお、制御部 21 は、主制御装置 30の一機能部であってもよ!/、。  The main controller 30 includes, for example, a microcomputer, ROM, RAM, and the like, and controls the entire time recorder 1. For example, the main control unit 30 controls the printing unit 19 to print predetermined information (for example, time and attendance information) in the printing field of the time mode 2. The main controller 30 also sends information indicating the position printed on the time card 2 (hereinafter referred to as “print position information”) and a print end signal indicating the end of printing to the control unit 21. The control unit 21 may be a function unit of the main control device 30! /.
[0028] 次に、上記構成を有するステッピングモータ制御装置 20の動作を説明する。カード 揷入口 11aから挿入されたタイムカード 2の下端部がカード検出センサ 12の検出領 域に到達すると、カード検出センサ 12が、タイムカード 2の揷入を検出し、検出信号 を、制御部 21に送る。  Next, the operation of the stepping motor control device 20 having the above configuration will be described. When the lower end of the time card 2 inserted from the card slot 11a reaches the detection area of the card detection sensor 12, the card detection sensor 12 detects the insertion of the time card 2 and sends a detection signal to the control unit 21. Send to.
[0029] この検出信号に応答して、制御部 21は、駆動ノ ルス発生部 22に、引込用駆動パ ルスを発生することを指示する発振開始信号を送る。この発振開始信号を受けた駆 動ノ ルス発生部 22は、所定パルス速度の引込用駆動ノ ルスを発生し、ドライバ 23に 供給する。また、制御部 21は、ドライバ 23に引込用駆動制御信号を送る。この引込 用駆動制御信号を受けたドライバ 23は、駆動ノ ルス発生部 22から受けた引込用駆 動ノ ルスをモータ 15に供給する(ステップ S l)。  In response to this detection signal, the control unit 21 sends an oscillation start signal instructing the drive pulse generation unit 22 to generate a pull-in drive pulse. Upon receiving this oscillation start signal, the drive noise generator 22 generates a pull-in drive noise at a predetermined pulse speed and supplies it to the driver 23. Further, the control unit 21 sends a pull-in drive control signal to the driver 23. The driver 23 that has received this pull-in drive control signal supplies the pull-in drive noise received from the drive noise generator 22 to the motor 15 (step S1).
[0030] モータ 15に引込用駆動ノ ルスが供給されると、カード送り機構 (本実施形態では、 ローラ軸 13、送りローラ 14a, 14b)が駆動し、タイムカード 2の引込が開始される。具 体的には、モータ 15のロータ及び駆動軸が回転し、この回転による駆動力力 タイミ ングベルト 16を介して、ローラ軸 13に伝達される。これにより、ローラ軸 13の回転が 始まり、送りローラ 14a, 14bによって、タイムカード 2がタイムレコーダ 1の内部に引き 込まれる。 [0031] タイムカード 2の先端部が最大引込位置まで到達すると (ステップ S2 ; Yes)、カード 検出センサ 17a, 17bは、到達したことを示す検出信号を、制御部 21に送る。制御部 21は、この検出信号を受けると、発振停止信号を駆動ノ ルス発生部 22に送る。これ により、引込用駆動ノ ルスの供給が停止され (ステップ S3)、タイムカード 2の引込が 停止する。 [0030] When the pull-in driving noise is supplied to the motor 15, the card feed mechanism (in this embodiment, the roller shaft 13, the feed rollers 14a, 14b) is driven, and the pull-in of the time card 2 is started. Specifically, the rotor and the drive shaft of the motor 15 rotate, and are transmitted to the roller shaft 13 through the driving force force timing belt 16 by this rotation. As a result, the rotation of the roller shaft 13 starts, and the time card 2 is drawn into the time recorder 1 by the feed rollers 14a and 14b. [0031] When the leading end of the time card 2 reaches the maximum retracted position (step S2; Yes), the card detection sensors 17a and 17b send a detection signal indicating the arrival to the control unit 21. Upon receiving this detection signal, the control unit 21 sends an oscillation stop signal to the drive noise generation unit 22. As a result, the supply of the pulling drive noise is stopped (step S3), and the pull-in of the time card 2 is stopped.
[0032] タイムカード 2の引込の停止中、主制御装置 30は、印字位置情報を制御部 21に送 る。なお、主制御装置 30は、タイムカード 2の引込の停止前に、印字位置情報を送る ようにしてもよい。制御部 21は、この印字位置情報に基づき、タイムカード 2の所定の 印字欄に文字が印刷される位置(印字位置)までタイムカード 2を引き上げる制御を 行う。  While the pull-in of time card 2 is stopped, main controller 30 sends print position information to control unit 21. The main controller 30 may send the print position information before the time card 2 is stopped. Based on this print position information, the control unit 21 performs control to raise the time card 2 to a position (print position) where characters are printed in a predetermined print field of the time card 2.
[0033] このとき、制御部 21は、引上用駆動ノ ルスを発生することを指示する発振開始信号 を、駆動ノ ルス発生部 22に送る。駆動ノ ルス発生部 22は、制御部 21から発振開始 信号を受けると、引上用駆動ノ ルスを発生する。また、制御部 21は、ドライバ 23に引 上用駆動制御信号を送る。この引上用駆動制御信号を受けたドライバ 23は、モータ 15の駆動軸が引込時と逆方向に回転するようにモータ 15を制御するため、駆動パ ノレス発生部 22から送られる引上用駆動パルスに従って、駆動信号をモータ 15に供 給する(ステップ S4)。  At this time, the control unit 21 sends an oscillation start signal instructing generation of the pulling-up driving noise to the driving noise generating unit 22. When receiving the oscillation start signal from the control unit 21, the drive noise generating unit 22 generates a pulling up drive noise. The control unit 21 sends a pulling drive control signal to the driver 23. Upon receiving this pull-up drive control signal, the driver 23 controls the motor 15 so that the drive shaft of the motor 15 rotates in the direction opposite to the pull-in direction. In accordance with the pulse, a drive signal is supplied to the motor 15 (step S4).
[0034] モータ 15に引上用駆動ノ ルスが供給されると、モータ 15は、駆動軸を引込時と逆 方向に回転させる。そのため、ローラ軸 13も引込時と逆方向に回転し、タイムカード 2 は上部に引き上げられる。印字位置情報が示す印字位置までタイムカード 2が弓 Iき 上げられると(ステップ S5 ; Yes)、制御部 21は、発振停止信号を駆動パルス発生部 22に送る。これにより、引上用駆動ノルスの供給が停止され (ステップ S6)、タイム力 ード 2の引上が停止される。  [0034] When the pulling drive noise is supplied to the motor 15, the motor 15 rotates the drive shaft in the direction opposite to that during pulling. For this reason, the roller shaft 13 also rotates in the direction opposite to that at the time of drawing, and the time card 2 is pulled up. When the time card 2 is lifted up to the print position indicated by the print position information (step S5; Yes), the control unit 21 sends an oscillation stop signal to the drive pulse generation unit 22. As a result, the supply of the pulling drive norse is stopped (step S6), and the pulling of the time force mode 2 is stopped.
[0035] 引上の停止中、主制御部 30は、印字部 19を制御して、タイムカード 2の印字欄に 所定情報 (例えば、出退勤情報等)を書き込む(印字処理)。この印字処理が終了す ると (ステップ S7 ; Yes)、主制御装置 30は、印字終了信号を制御部 21に送る。  [0035] While the pulling is stopped, the main control unit 30 controls the printing unit 19 to write predetermined information (for example, attendance information) in the printing field of the time card 2 (printing process). When this printing process ends (step S7; Yes), main controller 30 sends a print end signal to control unit 21.
[0036] 制御部 21は、この印字終了信号を受けると、排出用駆動ノ ルスである第 1の駆動 ノ ルスを発生することを指示する発振開始信号を駆動ノ ルス発生部 22に送る。駆動 ノ ルス発生部 22は、この発振開始信号を受けると、第 1の駆動ノ ルス(例えば、 600 pps (pulse per second) )を発生し、卜フ ノ 23に ·θ。 Upon receiving this print end signal, the control unit 21 sends an oscillation start signal instructing the generation of the first drive noise, which is a drive noise for discharge, to the drive noise generation unit 22. Drive When receiving the oscillation start signal, the noise generating unit 22 generates the first driving noise (for example, 600 pps (pulse per second)), and the 23no 23 is given θ.
[0037] また、制御部 21は、ドライバ 23に排出用駆動制御信号を送る。排出用駆動制御信 号を受けたドライバ 23は、駆動パルス発生部 22からの第 1の駆動パルスに従った駆 動信号を、モータ 15に供給する(ステップ S8)。このように、制御部 21、駆動パルス 発生部 22、ドライバ 23によって、モータ 15に第 1の駆動ノ ルスに対応する駆動信号 (相切換信号)が供給される。第 1の駆動ノ ルスの供給が開始されると、ローラ軸 13 の回転が始まり、送りローラ 14a, 14bによって、タイムカード 2は、排出されるべくカー ド揷入口 11aに向力、つて搬送される。  In addition, the control unit 21 sends a drive control signal for discharge to the driver 23. The driver 23 that has received the discharge drive control signal supplies the drive signal according to the first drive pulse from the drive pulse generator 22 to the motor 15 (step S8). In this way, the control unit 21, the drive pulse generation unit 22, and the driver 23 supply the motor 15 with the drive signal (phase switching signal) corresponding to the first drive pulse. When the supply of the first driving noise is started, the rotation of the roller shaft 13 starts, and the time card 2 is conveyed to the card inlet 11a by the feed rollers 14a and 14b so as to be discharged. The
[0038] さらに、制御部 21は、第 1の駆動ノ ルス発生用の発振開始信号を駆動ノ ルス発生 部 22に送るタイミングと同じタイミングで、所要ノ レス数算出部 24に算出指令信号を 送る。この算出指令信号を受けた所要パルス数算出部 24は、タイムカード 2の揷入 側先端部が搬送経路上の所定の位置まで到達するために必要な所要ノ ルス数を算 出する(ステップ S9)。  [0038] Further, the control unit 21 sends a calculation command signal to the required no-les number calculation unit 24 at the same timing as the timing at which the oscillation start signal for generating the first drive noise is sent to the drive noise generation unit 22. . Upon receiving this calculation command signal, the required pulse number calculation unit 24 calculates the required number of pulses required for the insertion side tip of the time card 2 to reach a predetermined position on the transport path (step S9). ).
[0039] この所定の位置は、タイムカード 2の排出を安定させるために予め設定された、タイ ムカード 2の搬送速度(カード送り速度)を減速させるポイントである(以下、「減速位 置」という)。この減速位置は、送りローラ 14a, 14bからタイムカード 2が外れる間際の 位置(例えば、ローラ軸 13の中心軸から 8mmの位置)に設定される。  [0039] This predetermined position is a point set in advance to stabilize the discharge of the time card 2 and decelerates the conveyance speed (card feed speed) of the time card 2 (hereinafter referred to as "deceleration position"). ). The deceleration position is set to a position just before the time card 2 is removed from the feed rollers 14a and 14b (for example, a position 8 mm from the central axis of the roller shaft 13).
[0040] また、制御部 21は、算出指令信号と共に、主制御装置 30から受けた印字位置情 報と、減速位置を示す情報とを、所要ノ ルス数算出部 24に送る。所要パルス数算出 部 24は、印字位置情報と、減速位置を示す情報と、第 1の駆動パルスのパルス速度 とに基づいて、所要ノ ルス数を算出する。所要パルス数算出部 24は、例えば、印字 位置情報が示す印字位置と減速位置との間の距離を求める。さらに、所要パルス数 算出部 24は、その距離を、 1つの駆動ノ ルスをステッピングモータに供給したときに 搬送機構がカードを搬送する距離で除算して、所要ノ ルス数を求める。そして、所要 ノ ルス数算出部 24は、求めた所要パルス数を制御部 21に通知する。  In addition, the control unit 21 sends the print position information received from the main control device 30 and the information indicating the deceleration position, together with the calculation command signal, to the required noise number calculation unit 24. The required pulse number calculation unit 24 calculates the required number of pulses based on the print position information, the information indicating the deceleration position, and the pulse speed of the first drive pulse. For example, the required pulse number calculation unit 24 obtains the distance between the printing position and the deceleration position indicated by the printing position information. Further, the required pulse number calculation unit 24 divides the distance by the distance that the transport mechanism transports the card when one driving pulse is supplied to the stepping motor, thereby obtaining the required number of pulses. Then, the required number-of-pulses calculation unit 24 notifies the control unit 21 of the calculated required number of pulses.
[0041] さらに、制御部 21は、所要ノ レス数算出部 24に算出指令信号を送るタイミングと同 一のタイミングで、ノ ルスカウンタ 25に計数開始信号を送る。ノ ルスカウンタ 25は、 制御部 21から計数開始信号を受けると、駆動ノ ルス発生部 22が発生する第 1の駆 動ノ ルスの数のカウントを開始する(ステップ S10)。 [0041] Further, the control unit 21 sends a count start signal to the noise counter 25 at the same timing as sending the calculation command signal to the required dose number calculation unit 24. Norse counter 25 When the counting start signal is received from the control unit 21, counting of the number of first driving noises generated by the driving noise generating unit 22 is started (step S10).
[0042] タイムカード 2を排出するためのカード送りが開始されると、制御部 21は、所要パル ス数算出部 24が算出した所要ノ ルス数と、ノ ルスカウンタ 25によってカウントされた 第 1の駆動ノ ルスの数とを比較して、タイムカード 2の揷入側端部が減速位置まで搬 送されたか否かを判別する (ステップ S 11)。  [0042] When the card feeding for discharging the time card 2 is started, the control unit 21 counts the required number of pulses calculated by the required pulse number calculation unit 24 and the first count counted by the false counter 25. It is determined whether the insertion side end of the time card 2 has been transported to the deceleration position or not by comparing with the number of driving noises (step S11).
[0043] タイムカード 2の揷入側先端部が減速位置に到達したのであれば (ステップ S 11 ;Y es)、制御部 21は、第 2の駆動ノ ルスを発生することを指示する発振開始信号を駆 動ノ ルス発生部 22に送る。この発振開始信号を受けた駆動ノ ルス発生部 22は、第 1の駆動ノ ルスよりもノ ルス速度が遅い第 2の駆動ノ ルス(例えば、 300pps)を発生 し、ドライバ 23に送る。ドライバ 23は、駆動ノ ルス発生部 22から受けた第 2の駆動パ ノレスをモータ 15に供給する(ステップ S 12)。  [0043] If the leading end of the insertion side of the time card 2 has reached the deceleration position (step S11; Yes), the control unit 21 starts oscillation instructing to generate the second driving noise. Send the signal to the drive noise generator 22. Upon receiving this oscillation start signal, the drive noise generator 22 generates a second drive noise (for example, 300 pps) that is slower than the first drive noise, and sends it to the driver 23. The driver 23 supplies the second driving panel received from the driving noise generating unit 22 to the motor 15 (step S12).
[0044] 第 2の駆動ノ ルスの供給が開始されると、モータ 15のロータ及び駆動軸の回転速 度が減速し、カード送り速度も減速する。タイムカード 2が搬送され、送りローラ 14a, 14bから外れると、送りローラ 14aと 14bは空回りを続ける。ただし、搬送速度が遅い ため、タイムカード 2が勢いでジャンプするようなことはなぐタイムカード 2はほぼその 位置を維持する。  [0044] When the supply of the second drive noise is started, the rotational speeds of the rotor and drive shaft of the motor 15 are reduced, and the card feed speed is also reduced. When the time card 2 is conveyed and removed from the feed rollers 14a and 14b, the feed rollers 14a and 14b continue to idle. However, since the transport speed is slow, the time card 2 keeps its position almost without the time card 2 jumping with momentum.
[0045] 続いて、ユーザが、タイムカードを 2を取り出すと、カード検出センサ 12は、制御部 2 1に、タイムカード 2が検出領域に存在しないことを示す未検出信号を送る。未検出 信号を受けた制御部 21は、タイムカード 2の排出が完了したと判別し (ステップ S 13 ; Yes)、発振停止信号を駆動パルス発生部 22に送る。これにより、第 2の駆動パルス の供給が停止され (ステップ S 14)、カード送り機構(ローラ軸 13、送りローラ 14a, 14 b)の駆動が停止する。以上で、カード送り制御処理が終わる。  Subsequently, when the user takes out the time card 2, the card detection sensor 12 sends an undetected signal indicating that the time card 2 does not exist in the detection area to the control unit 21. Receiving the undetected signal, the control unit 21 determines that the time card 2 is completely discharged (step S 13; Yes), 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 S14), and the drive of the card feed mechanism (roller shaft 13, feed rollers 14a, 14b) is stopped. This is the end of the card feed control process.
[0046] 以上説明したように、本実施形態によれば、タイムレコーダ 1は、タイムカード 2を排 出するよう搬送するときに、所定の減速位置にカードが到達すると、その到達前よりも 長い間隔でモータ 15に駆動ノ ルスを供給する。このため、タイムカードの搬送速度 は減速される。そのため、タイムカード 2が、所定の停止位置(上端)まで搬送された 後、ジャンプしして落下するといつた事態が起こりにくくなる。このため、カード検出セ ンサ 12が排出されたタイムカード 2を、新たに揷入されたタイムカード 2であると誤つ て検出する事態を防止できる。これにより、停止位置まで搬送されたタイムカードが、 タイムレコーダに再度引き込まれに《なる。 As described above, according to the present embodiment, when the time recorder 1 transports the time card 2 to be ejected, when the card reaches a predetermined deceleration position, the interval is longer than before the arrival. Then, drive noise is supplied to motor 15. For this reason, the time card transport speed is reduced. Therefore, when the time card 2 is transported to a predetermined stop position (upper end) and then jumps and falls, it is difficult to happen. For this reason, the card detection It is possible to prevent the time card 2 from which the sensor 12 has been discharged from being erroneously detected as the newly inserted time card 2. As a result, the time card conveyed to the stop position is drawn back into the time recorder.
[0047] なお、本発明に係るステッピングモータ制御装置は、上記実施形態に限定されるも のではなぐ本発明の要旨を逸脱しない範囲で種々の変更が可能である。  Note that 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 gist of the present invention.
[0048] タイムカード 2の端部が減速位置に到達したか否かの判別(ステップ S 11の処理)は 、所要ノ ルス数算出部 24が算出した所要ノ ルス数と、ノ ルスカウンタ 25がカウントし たノ ルス数とに基づ!/、て判別する手法に限られな!/、。  [0048] It is determined whether or not the end of the time card 2 has reached the deceleration position (the process of step S11). Based on the number of counted pulses! /!
例えば、搬送時間に基づいて、タイムカード 2の下端部が減速位置に到達したこと を判別することも可能である。この場合、例えば、図 5に示すように、第 1の駆動パル スのノ ルス速度に基づいて、タイムカード 2の端部が減速位置まで到達するのに必 要な所要時間を算出する所要時間算出部 24aと、モータ 15への第 1の駆動ノ ルスの 供給時間を計時するタイマ 25aと、を設ける。そして、タイマ 25aで計時した供給時間 、所要時間算出部 24aで算出した所要時間に達したときに、制御部 21が、減速位 置にタイムカード 2が到達したと判別する。  For example, it is possible to determine that the lower end of the time card 2 has reached the deceleration position based on the transport time. In this case, for example, as shown in FIG. 5, the required time for calculating the time required for the end of the time card 2 to reach the deceleration position based on the pulse speed of the first drive pulse. A calculating unit 24a and a timer 25a for measuring the supply time of the first driving noise to the motor 15 are provided. When the supply time counted by the timer 25a reaches the required time calculated by the required time calculation unit 24a, the control unit 21 determines that the time card 2 has reached the deceleration position.
[0049] また、図 6に示すように、減速位置の近傍に光センサ等のカード検出センサ 24bを 設け、制御部 21が、このカード検出センサ 24bからの未検出信号を受けたときに、減 速位置にタイムカード 2が到達したと判別してもよい。  Further, as shown in FIG. 6, a card detection sensor 24b such as an optical sensor is provided in the vicinity of the deceleration position, and when the control unit 21 receives an undetected signal from the card detection sensor 24b, the card detection sensor 24b decreases. It may be determined that the time card 2 has reached the speed position.
また、コンピュータ、例えば、主制御装置 30及び/又は制御部 21を構成するプロ セッサに、図 4に示す制御動作を実行させるプログラムを記録媒体などに記録して配 布し、これをコンピュータの制御に使用してもよい。  Further, a program for executing the control operation shown in FIG. 4 is recorded on a recording medium and distributed to a computer, for example, a processor constituting the main control device 30 and / or the control unit 21, and this is controlled by the computer. May be used for
[0050] この出願は、平成 18年 8月 7日に日本国特許庁に出願された特願 2006— 21471 1号を基礎としており、該出願の内容を、本願に取り込むものとする。  [0050] This application is based on Japanese Patent Application No. 2006-214711 filed with the Japan Patent Office on August 7, 2006, the contents of which are incorporated herein by reference.
産業上の利用可能性  Industrial applicability
[0051] タイムカードをタイムレコーダ力、ら排出するよう搬送するときに、タイムカードが再度 タイムレコーダに引き込まれに《できる。 [0051] When the time card is transported to be discharged from the time recorder, the time card can be drawn back into the time recorder.

Claims

請求の範囲 The scope of the claims
[1] カードに時刻を含む文字を印刷するタイムレコーダであって、  [1] A time recorder that prints characters including time on a card,
カードに文字を印刷する印刷手段と、  Printing means for printing characters on the card;
前記印刷手段により印刷されたカードを排出するために、前記カードが所定の減速 位置に到達するまでは、第 1の速度で搬送し、所定の減速位置に到達した後は、前 記第 1の速度よりも遅い第 2の速度で搬送する搬送手段と、  In order to eject the card printed by the printing means, the card is transported at a first speed until it reaches a predetermined deceleration position, and after reaching the predetermined deceleration position, the first Transport means for transporting at a second speed slower than the speed;
を備えることを特徴とするタイムレコーダ。  A time recorder comprising:
[2] 前記搬送手段は、 [2] The transport means includes
前記力一ドを搬送する搬送機構と、  A conveying mechanism for conveying the force,
前記搬送機構を駆動するステッピングモータと、  A stepping motor for driving the transport mechanism;
前記カードが所定の減速位置に到達したことを検出する検出手段と、  Detecting means for detecting that the card has reached a predetermined deceleration position;
前記検出手段の検出に応答し、前記カードが所定の減速位置に到達するまでは、 前記第 1の間隔で前記ステッピングモータに駆動ノ ルスを供給し、前記カードが所定 の減速位置に到達した後は、前記第 1の間隔よりも長!、第 2の間隔で駆動パルスを 供給するモータ駆動手段と、  In response to detection by the detection means, until the card reaches a predetermined deceleration position, a driving noise is supplied to the stepping motor at the first interval, and after the card reaches a predetermined deceleration position. Is longer than the first interval !, motor drive means for supplying drive pulses at the second interval;
力も構成される、ことを特徴とする請求項 1に記載のタイムレコーダ。  2. The time recorder according to claim 1, wherein force is also configured.
[3] 前記検出手段は、 [3] The detection means includes
前記印刷手段がカードに文字を印刷するときの、前記カードの位置を指示する印 刷位置情報を出力する印刷位置情報出力手段と、  Print position information output means for outputting print position information indicating the position of the card when the printing means prints characters on the card;
前記印刷位置情報出力手段により出力された印刷位置情報が示す印刷位置から 前記減速位置までカードを搬送するために、前記ステッピングモータが必要とする駆 動パルスの数を示す所要パルス数を求める所要パルス数算出手段と、  Required pulse for obtaining a required pulse number indicating the number of drive pulses required by the stepping motor in order to convey the card from the print position indicated by the print position information output by the print position information output means to the deceleration position. Number calculating means;
前記モータ駆動手段がステッピングモータに供給した駆動ノ ルスの数を計数する ノ ノレスカウンタと、  A no-less counter that counts the number of driving pulses supplied to the stepping motor by the motor driving means;
前記ノ ルスカウンタが計数した数が、前記所要ノ ルス数算出手段で算出した所要 ノ レス数に達したことを検出し、検出信号を出力するパルス数到達検出手段と、を備 える、  A pulse number arrival detecting means for detecting that the number counted by the Norse counter has reached the required number of nores calculated by the required number of count calculating means and outputting a detection signal;
ことを特徴とする請求項 2に記載のタイムレコーダ。 The time recorder according to claim 2, wherein:
[4] 前記検出手段は、 [4] The detection means includes
前記印刷手段がカードに文字を印刷するときの、前記カードの位置を指示する印 刷位置情報を出力する印刷位置情報出力手段と、  Print position information output means for outputting print position information indicating the position of the card when the printing means prints characters on the card;
前記印刷位置情報出力手段により出力された印刷位置情報が示す印刷位置から 前記減速位置までカードを搬送するために、必要となる時間を求める所要時間算出 手段と、  A required time calculating means for obtaining a time required for transporting the card from the print position indicated by the print position information output by the print position information output means to the deceleration position;
前記搬送機構による搬送時間を計時する計時手段と、  A time measuring means for measuring a transport time by the transport mechanism;
前記計時手段の計時時間が、前記所要時間算出手段で算出した所要時間に達し たことを検出し、検出信号を出力する手段と、を備える、  Means for detecting that the time measured by the time measuring means has reached the required time calculated by the required time calculating means, and outputting a detection signal.
ことを特徴とする請求項 2に記載のタイムレコーダ。  The time recorder according to claim 2, wherein:
[5] 印刷媒体に文字を印刷する印刷手段と、 [5] a printing means for printing characters on a print medium;
前記印刷手段により印刷された記録媒体を装置外に排出するために、印刷媒体を 搬送機構と、  A transport mechanism for discharging the recording medium printed by the printing means to the outside of the apparatus;
前記印刷媒体が搬送過程の所定位置に到達したことを検出する検出手段と、 前記搬送機構を駆動するステッピングモータと、  Detection means for detecting that the print medium has reached a predetermined position in the transport process; a stepping motor for driving the transport mechanism;
前記ステッピングモータに、第 1の間隔で駆動ノ ルスを供給し、前記所定位置に力 ードが搬送されたことを前記検出手段が検出したことに応答して、前記第 1の間隔よ りも長い第 2の間隔で前記駆動ノ ルスを前記ステッピングモータに供給するパルス供 給手段と、  In response to detecting that the stepping motor is supplied with driving noise at a first interval and the detection means detects that the force is conveyed to the predetermined position, the stepping motor is more than the first interval. Pulse supplying means for supplying the driving noise to the stepping motor at a long second interval;
を備えることを特徴とするステッピングモータ制御装置。  A stepping motor control device comprising:
[6] コンピュータに、 [6] On the computer,
揷入されたカードに文字を印刷する機能を有するタイムレコーダ力 S、前記カードに 文字を印刷する印刷処理が終了したことを検出する処理、  Time recorder power S having the function of printing characters on the inserted card, processing for detecting the completion of the printing process for printing characters on the card,
前記カードを所定の停止位置に排出するように搬送する搬送機構が、搬送の速度 を減速する所定の減速位置にカードを搬送したことを検出する処理、  A process for detecting that the transport mechanism that transports the card so as to eject the card to a predetermined stop position transports the card to a predetermined deceleration position that decelerates the transport speed;
前記印刷処理の終了を検出したことに応答して、前記搬送機構を駆動するステツピ ングモータに、第 1の間隔で駆動パルスを供給する処理、  A process of supplying a driving pulse at a first interval to a stepping motor that drives the transport mechanism in response to detecting the end of the printing process;
前記減速位置にカードが搬送されたことを検出したことに応答して、前記第 1の間 隔よりも長!/、第 2の間隔で、前記駆動ノ ルスを前記ステッピングモータに供給する処 理、 In response to detecting that the card has been transported to the deceleration position, Longer than the interval! /, A process of supplying the driving noise to the stepping motor at a second interval;
を実行させるためのプログラム。  A program for running
PCT/JP2007/065410 2006-08-07 2007-08-07 Time recorder, stepping motor control device, and program WO2008018437A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
WO2008018437A1 true WO2008018437A1 (en) 2008-02-14

Family

ID=39032967

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2007/065410 WO2008018437A1 (en) 2006-08-07 2007-08-07 Time recorder, stepping motor control device, and program

Country Status (3)

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

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02105283A (en) * 1988-10-13 1990-04-17 Matsushita Electric Ind Co Ltd Card device
JPH0739196B2 (en) * 1988-06-10 1995-05-01 沖電気工業株式会社 Printer paper feed control method
JPH087490Y2 (en) * 1985-11-13 1996-03-04 株式会社精工舎 Time recorder
JPH11255390A (en) * 1998-03-09 1999-09-21 Matsushita Electric Ind Co Ltd Paper emerging device
JP2004110794A (en) * 2002-08-30 2004-04-08 Seiko Precision Inc Time recorder

Patent Citations (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
JP2004110794A (en) * 2002-08-30 2004-04-08 Seiko Precision Inc Time recorder

Also Published As

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

Similar Documents

Publication Publication Date Title
JP4618315B2 (en) Sheet conveying apparatus and image recording apparatus
JP4451723B2 (en) Sheet handling equipment
WO2008018437A1 (en) Time recorder, stepping motor control device, and program
JP2004261916A (en) Cutting apparatus for printer
JP2006298587A (en) Sheet feeding method and sheet feeding device
JP2011138450A (en) Card-shaped medium processing device, and control method for card-shaped medium processing device
JP2000259888A (en) Paper money processor and its control method
JP2002302313A (en) Device and method of detecting remaining amount of roll paper and recording device
WO2008018417A1 (en) Time recorder, stepping motor control device, and program
JP2000159405A (en) Recording device
JP2005182260A (en) Card conveyance method and device therefor
JP2538570B2 (en) Roll paper presence / absence detection device in electrophotographic apparatus
JP2003155137A (en) Sheet carrying device and image processing device
JP6960730B2 (en) Media transfer device and image forming device
JP2002002981A (en) Medium conveying device and method thereof
JP3332976B2 (en) Sheet feeder
JP2505431B2 (en) Roll paper feeding device for electrophotographic apparatus
JPH10139190A (en) Method and device for controlling paper sheet feeding
JP3916051B2 (en) Printing device
JPS587389A (en) Slip printer
KR100334448B1 (en) Media handling device and media transport control method
JP2017087605A (en) Printing device and conveyance method
JP3288444B2 (en) Paper end detection device
JPS5929181A (en) Paper conveying mechanism
JP4182606B2 (en) Media processing device

Legal Events

Date Code Title Description
DPE2 Request for preliminary examination filed before expiration of 19th month from priority date (pct application filed from 20040101)
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 07792079

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

NENP Non-entry into the national phase

Ref country code: RU

122 Ep: pct application non-entry in european phase

Ref document number: 07792079

Country of ref document: EP

Kind code of ref document: A1

DPE2 Request for preliminary examination filed before expiration of 19th month from priority date (pct application filed from 20040101)