JPH1125230A - IC card device - Google Patents

IC card device

Info

Publication number
JPH1125230A
JPH1125230A JP9172213A JP17221397A JPH1125230A JP H1125230 A JPH1125230 A JP H1125230A JP 9172213 A JP9172213 A JP 9172213A JP 17221397 A JP17221397 A JP 17221397A JP H1125230 A JPH1125230 A JP H1125230A
Authority
JP
Japan
Prior art keywords
card
processing mode
data
detection sensor
insertion slot
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
JP9172213A
Other languages
Japanese (ja)
Inventor
Makoto Oogiku
誠 大菊
Takahisa Hirasawa
貴久 平澤
Yuji Fujinuma
勇二 藤沼
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.)
Hitachi Ltd
Original Assignee
Tokico Ltd
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 Tokico Ltd filed Critical Tokico Ltd
Priority to JP9172213A priority Critical patent/JPH1125230A/en
Publication of JPH1125230A publication Critical patent/JPH1125230A/en
Pending legal-status Critical Current

Links

Abstract

(57)【要約】 【課題】 本発明は処理モードを変更する際の操作が面
倒であり、手間がかかることを課題とするものである。 【解決手段】 ICカード装置1の内部には、制御回路
6、電源7、SRAM8、EEPROM9、表示駆動部
10、リセット制御部11、電源制御部12、通信制御
部13、クロック制御部14、発振子15、電源スイッ
チ25、第1のカード検出センサ26、第2のカード検
出センサ27等が収納されている。また、EEPROM
9には、第1のカード検出センサ26によりICカード
3の挿入が検出されている間、ICカード3に対するデ
ータの処理モードを変更する制御プログラムと、第1の
カード検出センサ26及び第2のカード検出センサ27
によりICカード3の挿入が検出されたとき、設定され
た処理モードに基づきICカード3にする処理を行う制
御プログラムとが格納されている。
(57) [Summary] An object of the present invention is to perform a complicated operation when changing a processing mode and to take time and effort. SOLUTION: Inside an IC card device 1, a control circuit 6, a power supply 7, an SRAM 8, an EEPROM 9, a display drive unit 10, a reset control unit 11, a power control unit 12, a communication control unit 13, a clock control unit 14, an oscillation, A child 15, a power switch 25, a first card detection sensor 26, a second card detection sensor 27, and the like are housed. Also, EEPROM
9 includes a control program for changing a data processing mode for the IC card 3 while the insertion of the IC card 3 is detected by the first card detection sensor 26, a control program for changing the first card detection sensor 26 and the second Card detection sensor 27
And a control program for performing a process of setting the IC card 3 based on the set processing mode when the insertion of the IC card 3 is detected.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はICカードのメモリ
に記憶されたデータを読み取り、あるいはICカードの
メモリにデータを記憶させるICカード装置に関する。
The present invention relates to an IC card device for reading data stored in a memory of an IC card or storing data in a memory of the IC card.

【0002】[0002]

【従来の技術】個人のデータが記憶されるメモリ(EE
PROM)及びデータの読み取り・書き込みの制御を行
う1チップマイコンが内蔵されたICカードを各人に配
付して個人データを管理する管理システムの開発が進め
られている。例えば、各事業所毎にICカードの読み取
り・書き込みの各処理を行うICカード装置を設置する
ことにより、複数の事業所における出入りの入退場時
間、日付等の利用者個人の時系列データをICカードに
記憶させることができるので、各人がICカードを携帯
し、各事業所に設置されたICカード装置にICカード
を挿入するだけで、各個人の入場日時(出勤日時)、退
場日時(退社日時)、出勤日数等のデータを管理するこ
とができる。
2. Description of the Related Art Memory (EE) for storing personal data
A management system that manages personal data by distributing an IC card having a built-in PROM (PROM) and a one-chip microcomputer for controlling reading and writing of data to each person is being developed. For example, by installing an IC card device that performs each process of reading and writing an IC card at each business office, the user's personal time-series data such as entry and exit times and dates at a plurality of business offices can be stored in an IC. Since each person can carry the IC card and insert the IC card into an IC card device installed at each business office, the entry date and time (work date and time) and the exit time ( It is possible to manage data such as the date of leaving work and the number of days of work.

【0003】そして、ICカード装置では、ICカード
が挿入されると、ICカードの表面に設けられた端子を
介して所定の動作クロック、電源を供給すると共に、デ
ータの読み取りあるいは書き込みを行う。そのため、利
用者個人は常にICカードを携帯し、出勤時にはICカ
ードをICカード装置のカード挿入口に挿入してICカ
ードのメモリに入場日時を記憶させ、退社時にはICカ
ードのメモリに退場日時を記憶させる。
In the IC card device, when the IC card is inserted, a predetermined operation clock and power are supplied through terminals provided on the surface of the IC card, and data is read or written. Therefore, the user always carries the IC card, inserts the IC card into the card slot of the IC card device at the time of going to work, stores the entry date and time in the IC card memory, and stores the exit date and time in the IC card memory when leaving the company. Remember.

【0004】ところで、ICカードに記憶させる事項が
増えており、例えば入場日時、退場日時だけでなく、早
退日時、フレックスの有無、外出、有給休暇、欠勤等の
処理を行う場合、ICカード装置に処理モードを切り替
えるモード切替スイッチを設け、スイッチ操作により処
理モードを切り替えてICカードに記憶させる事項を変
更するようにしていた。
[0004] By the way, items to be stored in the IC card are increasing. For example, when processing not only entry and exit dates and times, but also early exit dates and times, presence / absence of flex, going out, paid vacation, absence, etc. A mode changeover switch for switching the processing mode is provided, and the items to be stored in the IC card by switching the processing mode by operating the switch are changed.

【0005】[0005]

【発明が解決しようとする課題】従来のICカード装置
では、処理モードを切り替えるモード切替スイッチを設
ける必要があったため、処理モード数が増加するとその
分スイッチ数が増えてモード切替スイッチの操作が複雑
化すると共に、切替操作が面倒であるといった問題があ
った。
In the conventional IC card device, it is necessary to provide a mode changeover switch for switching the processing mode. Therefore, when the number of processing modes increases, the number of switches increases accordingly and the operation of the mode changeover switch becomes complicated. And the switching operation is troublesome.

【0006】また、モード切替スイッチを間違って操作
してしまうと、ICカードに記憶された時刻が別の処理
モードのデータとして扱われるため、出勤時間を集計す
る際の誤差となり、実際の勤務時間と対応せず、その分
給与計算に差が生じてしまうといった問題が生じる。そ
こで、本発明は上記問題を解決したICカード装置を提
供することを目的とする。
If the mode changeover switch is operated by mistake, the time stored in the IC card is treated as data of another processing mode, and this causes an error in counting the time of attendance. However, there is a problem that a difference occurs in the salary calculation. Therefore, an object of the present invention is to provide an IC card device that solves the above problem.

【0007】[0007]

【課題を解決するための手段】上記課題を解決するた
め、本発明は以下のような特徴を有する。上記請求項1
記載の発明は、ICカードが挿入されるカード挿入口を
有し、該カード挿入口に挿入されたICカードに対して
データの読み取り、記憶を行うICカード装置におい
て、前記カード挿入口の入口に設けられ前記ICカード
が前記カード挿入口の入口に挿入されたことを検出する
第1のカード検出部材と、前記カード挿入口の内部に設
けられ前記ICカードが前記カード挿入口の内部に挿入
されたことを検出する第2のカード検出部材と、前記第
1のカード検出部材により前記ICカードの挿入が検出
されている間、前記ICカードに対するデータの処理モ
ードを変更するデータ処理モード変更手段と、前記第1
のカード検出部材及び前記第2のカード検出部材により
前記ICカードの挿入が検出されたとき、前記データ処
理モード変更手段により設定された処理モードに基づき
前記ICカードに対する処理を行うデータ処理手段と、
を備えてなることを特徴とするものである。
In order to solve the above problems, the present invention has the following features. Claim 1
The invention described above has an IC card device that has a card insertion slot into which an IC card is inserted, and reads and stores data with respect to the IC card inserted into the card insertion hole. A first card detection member provided for detecting that the IC card is inserted into the entrance of the card insertion slot; and a first card detection member provided inside the card insertion slot, wherein the IC card is inserted inside the card insertion slot. A second card detecting member for detecting that the IC card has been inserted, and a data processing mode changing means for changing a processing mode of data to the IC card while the insertion of the IC card is detected by the first card detecting member. , The first
Data processing means for performing processing on the IC card based on the processing mode set by the data processing mode change means when the insertion of the IC card is detected by the card detection member and the second card detection member;
It is characterized by comprising.

【0008】従って、請求項1記載の発明によれば、第
1のカード検出部材によりICカードの挿入が検出され
ている間にICカードに対するデータの処理モードを変
更し、第1のカード検出部材及び第2のカード検出部材
によりICカードの挿入が検出されたときにデータ処理
モード変更手段により設定された処理モードに基づきI
Cカードに対する処理を行うため、複数のモード切替ス
イッチが不要になり、構成の簡略化及び操作の簡素化を
図ることができ、ICカードの記憶部に間違った処理モ
ードでデータを記憶させてしまうことを防止してICカ
ードに記憶されたデータの信頼性を高めることができ
る。
Therefore, according to the first aspect of the present invention, the data processing mode for the IC card is changed while the insertion of the IC card is detected by the first card detection member, and the first card detection member is changed. And when the insertion of the IC card is detected by the second card detection member, based on the processing mode set by the data processing mode changing means.
Since processing is performed on the C card, a plurality of mode changeover switches are not required, so that the configuration and operation can be simplified, and data is stored in the storage unit of the IC card in an incorrect processing mode. This prevents the reliability of the data stored in the IC card.

【0009】また、請求項2記載の発明は、ICカード
が挿入されるカード挿入口を有し、該カード挿入口に挿
入されたICカードの記憶部に記憶されたデータを読み
取り、あるいは前記ICカードの記憶部にデータを記憶
させるICカード装置において、前記カード挿入口の入
口に設けられ前記ICカードが前記カード挿入口の入口
に挿入されたことを検出する第1のカード検出部材と、
前記カード挿入口の内部に設けられ前記ICカードが前
記カード挿入口の内部に挿入されたことを検出する第2
のカード検出部材と、前記第1のカード検出部材により
検出された前記ICカードの出し入れ回数に応じて、前
記ICカードに対するデータの処理モードを変更するデ
ータ処理モード変更手段と、前記第2のカード検出部材
により前記ICカードの挿入が検出されたとき、前記デ
ータ処理モード変更手段により設定された処理モードに
基づき前記ICカードに対する処理を行うデータ処理手
段と、を備えてなることを特徴とするものである。
According to a second aspect of the present invention, there is provided a card insertion slot into which an IC card is inserted, and reads data stored in a storage section of the IC card inserted into the card insertion slot, or reads the data from the IC card. An IC card device for storing data in a storage unit of a card, a first card detection member provided at an entrance of the card insertion slot and detecting that the IC card is inserted into the entrance of the card insertion slot,
A second card provided inside the card slot for detecting that the IC card has been inserted into the card slot;
Card detection member, data processing mode changing means for changing a data processing mode for the IC card in accordance with the number of times the IC card is inserted and removed detected by the first card detection member, and the second card Data processing means for performing processing on the IC card based on the processing mode set by the data processing mode changing means when the detection member detects the insertion of the IC card. It is.

【0010】従って、請求項2記載の発明によれば、I
Cカードの出し入れ回数に応じて、ICカードに対する
データの処理モードを変更し、第2のカード検出部材に
よりICカードの挿入が検出されたとき、設定された処
理モードに基づきICカードに対する処理を行うため、
複数のモード切替スイッチが不要になり、構成の簡略化
及び操作の簡素化を図ることができ、ICカードの記憶
部に間違った処理モードでデータを記憶させてしまうこ
とを防止してICカードに記憶されたデータの信頼性を
高めることができる。
Therefore, according to the second aspect of the present invention, I
The data processing mode for the IC card is changed according to the number of times the C card is inserted and removed, and when the insertion of the IC card is detected by the second card detection member, the processing for the IC card is performed based on the set processing mode. For,
A plurality of mode changeover switches are not required, the configuration can be simplified and the operation can be simplified, and it is possible to prevent the data from being stored in the wrong processing mode in the storage unit of the IC card and to save the data on the IC card. The reliability of the stored data can be increased.

【0011】また、請求項3記載の発明は、ICカード
が挿入されるカード挿入口を有し、該カード挿入口に挿
入されたICカードの記憶部に記憶されたデータを読み
取り、あるいは前記ICカードの記憶部にデータを記憶
させるICカード装置において、電源のオン・オフ時間
間隔を測定するオン・オフ時間間隔測定手段と、該オン
・オフ時間間隔測定手段により測定された電源のオン・
オフ時間間隔が予め設定された所定時間以下のとき前記
ICカードに対するデータの処理モードを変更するデー
タ処理モード変更手段と、前記オン・オフ時間間隔測定
手段により測定された電源のオン・オフ時間間隔が予め
設定された所定時間以上のとき前記データ処理モードを
不変として設定された処理モードに基づき前記カード挿
入口に挿入された前記ICカードに対する処理を行うデ
ータ書き込み手段と、を備えてなることを特徴とするも
のである。
According to a third aspect of the present invention, there is provided a card insertion slot into which an IC card is inserted, wherein data stored in a storage section of the IC card inserted into the card insertion slot is read, or In an IC card device for storing data in a storage unit of a card, an on / off time interval measuring means for measuring a power on / off time interval, and a power on / off time measured by the on / off time interval measuring means.
A data processing mode changing means for changing a data processing mode for the IC card when the off time interval is equal to or less than a predetermined time; and a power on / off time interval measured by the on / off time interval measuring means. Data writing means for performing processing on the IC card inserted into the card insertion slot based on the processing mode set when the data processing mode is unchanged when the predetermined time is equal to or longer than a predetermined time. It is a feature.

【0012】従って、請求項3記載の発明によれば、電
源のオン・オフ時間間隔が予め設定された所定時間以下
のときICカードに対するデータの処理モードを変更
し、電源のオン・オフ時間間隔が予め設定された所定時
間以上のときデータ処理モードを不変として設定された
処理モードに基づきカード挿入口に挿入されたICカー
ドに対する処理を行うため、複数のモード切替スイッチ
が不要になり、構成の簡略化及び操作の簡素化を図るこ
とができ、ICカードの記憶部に間違った処理モードで
データを記憶させてしまうことを防止してICカードに
記憶されたデータの信頼性を高めることができる。
Therefore, according to the third aspect of the present invention, when the power on / off time interval is shorter than a predetermined time, the data processing mode for the IC card is changed, and the power on / off time interval is changed. When a predetermined time is equal to or longer than a predetermined time, the data processing mode is set to be invariable and the IC card inserted into the card insertion slot is processed based on the set processing mode. Simplification and simplification of operation can be achieved, and it is possible to prevent data from being stored in the storage unit of the IC card in an incorrect processing mode, thereby improving the reliability of data stored in the IC card. .

【0013】[0013]

【発明の実施の形態】以下、図面と共に本発明の一実施
例について説明する。尚、図1はICカード読み取り・
書き込み装置の斜視図、図2はICカード読み取り・書
き込み装置のブロック図である。ICカード装置(以下
「装置」と称す)1は、側面からみると略三角形状に形
成されており、カード挿入操作が容易に行えるように前
面1aが傾斜されている。この前面1aの中央には、液
晶ディスプレイ等よりなる表示器2が配設され、表示器
2の左右両側にはICカード3を挿入するためのカード
挿入口4,5が設けられている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. In addition, FIG.
FIG. 2 is a block diagram of an IC card reading / writing device. The IC card device (hereinafter referred to as "device") 1 is formed in a substantially triangular shape when viewed from the side, and the front surface 1a is inclined so that a card insertion operation can be easily performed. A display 2 composed of a liquid crystal display or the like is provided at the center of the front surface 1a, and card insertion ports 4 and 5 for inserting an IC card 3 are provided on both left and right sides of the display 2.

【0014】装置1の内部には、制御回路6、電源7、
SRAM8、EEPROM(Electrically Erasabie Pr
ogrammable Read Only Memory )9、表示駆動部10、
リセット制御部11、電源制御部12、通信制御部1
3、クロック制御部14、発振子15、電源スイッチ2
5、第1のカード検出センサ(第1のカード検出部材)
26、第2のカード検出センサ(第2のカード検出部
材)27が収納されている。
A control circuit 6, a power supply 7,
SRAM8, EEPROM (Electrically Erasabie Pr
ogrammable Read Only Memory) 9, display driver 10,
Reset control unit 11, power supply control unit 12, communication control unit 1
3, clock control unit 14, oscillator 15, power switch 2
5. First card detection sensor (first card detection member)
26, a second card detection sensor (second card detection member) 27 is housed.

【0015】制御回路6は装置全体の制御を行うデバイ
スであり、1チップマイコン等よりなる。上記電源7は
装置1内の各デバイスに電源を供給すると共に、カード
挿入口4,5に挿入されたICカード3に電源を供給す
る。また、SRAM8はスタティック形メモリであり、
制御回路6が制御を行う際に一時的にデータが記憶され
る。
The control circuit 6 is a device for controlling the entire apparatus, and comprises a one-chip microcomputer or the like. The power supply 7 supplies power to each device in the apparatus 1 and also supplies power to the IC card 3 inserted into the card insertion ports 4 and 5. The SRAM 8 is a static memory,
When the control circuit 6 performs control, data is temporarily stored.

【0016】また、EEPROM9は、電気的に書き込
みが行える不揮発性メモリであり、制御回路6が制御を
行うための制御プログラムや各データ等が記憶されてい
る。この制御プログラムには、後述するように第1のカ
ード検出センサ26によりICカード3の挿入が検出さ
れている間、ICカード3に対するデータの処理モード
を変更する制御プログラム(データ処理モード変更手
段)と、第1のカード検出センサ26及び第2のカード
検出センサ27によりICカード3の挿入が検出された
とき、設定された処理モードに基づきICカード3にす
る処理を行う制御プログラム(データ書き込み手段)と
が格納されている。
The EEPROM 9 is an electrically writable non-volatile memory, and stores a control program for the control circuit 6 to perform control, various data, and the like. This control program includes a control program (data processing mode changing means) for changing a data processing mode for the IC card 3 while the insertion of the IC card 3 is detected by the first card detection sensor 26 as described later. And a control program (data writing means) for performing processing for converting to an IC card 3 based on the set processing mode when insertion of the IC card 3 is detected by the first card detection sensor 26 and the second card detection sensor 27. ) And are stored.

【0017】表示駆動部10は、表示器2にメッセージ
を表示させると共に、制御回路6からの表示データの受
け渡しエリアとしても使用される。また、リセット制御
部11はICカード3に対してリセットパルスを入力す
る制御部であり、ICカード3はリセットパルスが入力
されると動作を開始する。さらに電源制御部12は、I
Cカード3への電源供給を制御しており、ICカード3
と通信中には電源を遮断せず、ICカード3がイジェク
トされる際に確実に電源を遮断するように制御する。
The display drive section 10 displays a message on the display 2 and is also used as an area for receiving display data from the control circuit 6. The reset control unit 11 is a control unit that inputs a reset pulse to the IC card 3, and the IC card 3 starts operating when a reset pulse is input. Further, the power supply control unit 12
The power supply to the C card 3 is controlled.
The control is performed so that the power is not cut off during communication with the IC card and the power is surely cut off when the IC card 3 is ejected.

【0018】また、通信制御部13は、ICカード3と
の通信を行っており、例えば日付、入場時間あるいは退
場時間等の時系列データを送受信する。ICカード3は
送受信兼用であるので、通信制御部13はICカード3
を送信又は受信に切り換えるようになっている。そのた
め、制御回路6から送/受信切換信号aが出力される
と、通信制御部13はICカード3に対する通信モード
を送信又は受信に切り換える。従って、通信制御部13
は送/受信切換信号aの供給によりICカード3への送
信データbを送信し、あるいはICカード3からの受信
データbを受信してICカード3に対するデータの読み
取り・書き込みを行う。
The communication control unit 13 communicates with the IC card 3 and transmits and receives time-series data such as a date, an entry time, or an exit time. Since the IC card 3 is used for both transmission and reception, the communication control unit 13
Is switched to transmission or reception. Therefore, when the transmission / reception switching signal a is output from the control circuit 6, the communication control unit 13 switches the communication mode for the IC card 3 to transmission or reception. Therefore, the communication control unit 13
Transmits the transmission data b to the IC card 3 by supplying the transmission / reception switching signal a, or receives the reception data b from the IC card 3 and reads / writes the data to / from the IC card 3.

【0019】また、クロック制御部14は制御回路6か
らの制御信号により、発振子15から出力されるクロッ
クパルスを制御している。尚、発振子15は、例えば水
晶振動子よりなり、一定の周波数(本実施例では、3.
5795MHz)のクロックパルスを出力するように形成
されている。図3はICカード3の構成を示すブロック
である。
The clock controller 14 controls a clock pulse output from the oscillator 15 in accordance with a control signal from the control circuit 6. Note that the oscillator 15 is made of, for example, a crystal oscillator, and has a fixed frequency (in this embodiment, 3.
5795 MHz). FIG. 3 is a block diagram illustrating the configuration of the IC card 3.

【0020】ICカード3は、内部に1チップマイコン
よりなるCPU17と、EEPROM18とを有する。
EEPROM18には、当該ICカード3の利用者のI
D番号が記憶されていると共に、装置1から送信された
入退場日時(入退場日付、入場時間又は退場時間等)が
記憶される。また、ICカード3の表面には、装置1の
カード挿入口4,5に挿入された際に接続される外部端
子が配設されている。本実施例では、電源端子(Vcc)
19、リセット端子(RST)20、クロック端子(C
LK)21、アース端子(GND)22、電源端子(V
pp)23、I/Oインタフェース(I/O)24等の外
部端子がICカード3に設けられている。
The IC card 3 has a CPU 17 composed of a one-chip microcomputer and an EEPROM 18 therein.
The EEPROM 18 stores the I-card of the user of the IC card 3.
The D number is stored, and the entry / exit date and time (entrance / exit date, entry time or exit time, etc.) transmitted from the device 1 is stored. Further, on the surface of the IC card 3, external terminals to be connected when inserted into the card insertion slots 4 and 5 of the device 1 are provided. In this embodiment, the power supply terminal (Vcc)
19, a reset terminal (RST) 20, a clock terminal (C
LK) 21, ground terminal (GND) 22, power supply terminal (V
pp) 23 and external terminals such as an I / O interface (I / O) 24 are provided on the IC card 3.

【0021】上記構成とされたICカード3がカード挿
入口4,5の一方に挿入されると、電源端子(Vcc)1
9が電源制御部12に接続されてCPU17に電源供給
すると共に、リセット端子(RST)20がリセット制
御部11に接続される。これと同時に、クロック端子
(CLK)21はクロック制御部14に接続されてクロ
ックパルスが入力され、I/Oインタフェース(I/
O)24は通信制御部13に接続されて制御回路6から
出力された日付、入場時間あるいは退場時間等の送信デ
ータが入力される。そのため、通信制御部13から送信
された送信データは、I/Oインタフェース(I/O)
24を介してCPU17に供給されてEEPROM18
に記憶される。
When the IC card 3 having the above configuration is inserted into one of the card insertion slots 4 and 5, a power supply terminal (Vcc) 1
9 is connected to the power control unit 12 to supply power to the CPU 17, and a reset terminal (RST) 20 is connected to the reset control unit 11. At the same time, the clock terminal (CLK) 21 is connected to the clock control unit 14 and receives a clock pulse, and the I / O interface (I / O)
O) 24 is connected to the communication control unit 13 and receives transmission data such as a date, an entry time, or an exit time output from the control circuit 6. Therefore, the transmission data transmitted from the communication control unit 13 is transmitted to the I / O interface (I / O)
24, and supplied to the CPU 17 via the EEPROM 18.
Is stored.

【0022】図4は装置1に内蔵されたカードR/W機
構を示す縦断面図である。装置1の内部には、通信制御
部13を介してICカード3に情報を書き込み、あるい
はICカード3に記憶された情報を読み込むカードR/
W機構28が設けられている。このカードR/W機構2
8は、入口がカード挿入口4,5となっており、筐体2
9の内部にカード挿入口4,5と連通された空間30が
形成されている。
FIG. 4 is a longitudinal sectional view showing a card R / W mechanism incorporated in the apparatus 1. Inside the device 1, a card R / R that writes information to the IC card 3 via the communication control unit 13 or reads information stored in the IC card 3.
A W mechanism 28 is provided. This card R / W mechanism 2
Reference numeral 8 denotes a card insertion slot 4 or 5 at the entrance,
A space 30 communicating with the card insertion ports 4 and 5 is formed in the inside 9.

【0023】この空間30の天井には、第1のカード検
出センサ26と第2のカード検出センサ27が設けられ
ている。第1,第2のカード検出センサ26,27は、
夫々光センサ等からなり、ICカード3で反射した光を
受光してICカード3の挿入を検出するようになってい
る。また、第1のカード検出センサ26は、ICカード
3の先端がカード挿入口4,5に挿入されたことを検出
する位置に設けられ、第2のカード検出センサ27はI
Cカード3の先端が読み取り・書き込み可能な位置まで
挿入されたことを検出する位置に設けられている。
On the ceiling of the space 30, a first card detection sensor 26 and a second card detection sensor 27 are provided. The first and second card detection sensors 26 and 27
Each is composed of an optical sensor or the like, and receives light reflected by the IC card 3 to detect insertion of the IC card 3. The first card detection sensor 26 is provided at a position for detecting that the leading end of the IC card 3 has been inserted into the card insertion slots 4 and 5, and the second card detection sensor 27 is
The C card 3 is provided at a position for detecting that the leading end of the C card 3 has been inserted to a readable / writable position.

【0024】さらに、空間30の奥部には、ICカード
3に情報の書き込み、あるいは情報の読み込みを行うR
/Wヘッド31が設けられている。従って、第1のカー
ド検出センサ26及び第2のカード検出センサ27が共
にICカード3が挿入されたことを検出すると、R/W
ヘッド31がICカード3の各端子に接触して情報の書
き込み、あるいは情報の読み込みを実行する。
Further, in the deep part of the space 30, an R for writing information to or reading information from the IC card 3 is provided.
/ W head 31 is provided. Therefore, when both the first card detection sensor 26 and the second card detection sensor 27 detect that the IC card 3 is inserted, the R / W
The head 31 contacts each terminal of the IC card 3 to write information or read information.

【0025】図5は制御回路6が実行する処理を説明す
るためのフローチャートである。制御回路6は、電源ス
イッチ25がオンに操作されると、カード挿入口4,5
の一方に挿入されたICカード3との通信を行う。図5
中、ステップS1(以下「ステップ」を省略する)にお
いて、第1のカード検出センサ26がオンになったかど
うかをチェックする。ICカード3がカード挿入口4に
挿入されてICカード3の先端が第1のカード検出セン
サ26の下方に至ると、第1のカード検出センサ26は
ICカード3で反射した光を受光してオンに切り替わ
る。
FIG. 5 is a flowchart for explaining the processing executed by the control circuit 6. When the power switch 25 is turned on, the control circuit 6 operates the card insertion ports 4 and 5.
Communication with the IC card 3 inserted into one of the two. FIG.
In step S1 (hereinafter, "step" is omitted), it is checked whether the first card detection sensor 26 is turned on. When the IC card 3 is inserted into the card insertion slot 4 and the leading end of the IC card 3 reaches below the first card detection sensor 26, the first card detection sensor 26 receives the light reflected by the IC card 3 Switch on.

【0026】そのため、S1で第1のカード検出センサ
26がオンに切り替わると、S2に進み、前回実行され
た処理モードを表示器2に表示させる。操作者は、前回
と同じ処理モードで良いときは、そのままICカード3
をカードR/W機構28の空間30の奥まで挿入する。
そして、ICカード3の下面側に配された各端子が空間
30の奥部に設けられたR/Wヘッド31に接触する
と、時刻データ(情報)の書き込み、あるいは時刻デー
タ(情報)の読み込みが実行される。
Therefore, when the first card detection sensor 26 is turned on in S1, the process proceeds to S2, and the processing mode executed last time is displayed on the display 2. When the operator can use the same processing mode as the last time, the IC card 3
Into the space 30 of the card R / W mechanism 28.
Then, when each terminal arranged on the lower surface side of the IC card 3 comes into contact with the R / W head 31 provided at the back of the space 30, writing of time data (information) or reading of time data (information) is performed. Be executed.

【0027】次のS3では、第2のカード検出センサ2
7がオンになったかどうかをチェックする。処理モード
を変更させる必要がないときは、ICカード3の先端が
第2のカード検出センサ27の下方に至り、第2のカー
ド検出センサ27はICカード3で反射した光を受光し
てオンに切り替わる。そのため、カード検出センサ2
6,27が共にオンであるときは、S4に進み、表示器
2に表示された処理モードを設定した後、S5で設定さ
れた所定の処理モードで現在の時刻データ(情報)をI
Cカード3のEEPROM18に記憶させる。 しか
し、上記S3において、表示器2に表示された処理モー
ド以外の処理モードを実行させたいときは、ICカード
3の先端がカード挿入口4に挿入された状態で挿入操作
を停止させる。
In the next S3, the second card detection sensor 2
Check if 7 is turned on. When there is no need to change the processing mode, the leading end of the IC card 3 reaches below the second card detection sensor 27, and the second card detection sensor 27 receives light reflected by the IC card 3 and turns on. Switch. Therefore, the card detection sensor 2
When both 6 and 27 are on, the process proceeds to S4, where the processing mode displayed on the display 2 is set, and the current time data (information) is set to I in the predetermined processing mode set in S5.
The data is stored in the EEPROM 18 of the C card 3. However, in S3, when it is desired to execute a processing mode other than the processing mode displayed on the display 2, the insertion operation is stopped in a state where the leading end of the IC card 3 is inserted into the card insertion slot 4.

【0028】上記S3において、ICカード3の先端が
カード挿入口4に挿入された状態で挿入操作が停止され
た場合、第1のカード検出センサ26がオンで第2のカ
ード検出センサ27がオフであるので、S6に移行して
この状態で予め設定された所定時間n秒が経過したかど
うかをチェックする。この状態のまま所定時間n秒が経
過するまで、S3,S6の処理を繰り返しており、所定
時間n秒が経過すると、S7に進み、処理モードを順次
変更する。本実施例では、例えばICカード3に記憶さ
せる処理モードを入場時刻、退場時刻、早退時刻、フレ
ックス入場時刻、残業退社時刻の何れかの処理モードに
変更する。
In S3, when the insertion operation is stopped while the tip of the IC card 3 is inserted into the card insertion slot 4, the first card detection sensor 26 is turned on and the second card detection sensor 27 is turned off. Therefore, the process goes to S6 to check whether a predetermined time n seconds has elapsed in this state. In this state, the processing of S3 and S6 is repeated until the predetermined time n seconds elapses. When the predetermined time n seconds elapses, the process proceeds to S7, and the processing mode is sequentially changed. In this embodiment, for example, the processing mode stored in the IC card 3 is changed to any one of the entry time, exit time, early exit time, flex entry time, and overtime exit time.

【0029】次のS8では、変更した処理モードを表示
器2に表示させて操作者に知らせる。そして、上記S3
に戻る。まだ、第1のカード検出センサ26がオンで第
2のカード検出センサ27がオフであるときは、再びS
3,S6〜S8の処理を繰り返すことによりその回数分
だけ処理モードを順次更新する。操作者は、上記のよう
にして処理モードが変更されて希望する処理モードが表
示器2に表示されると、ICカード3をカード挿入口4
の奥まで挿入させる。これにより、ICカード3の先端
が第2のカード検出センサ27の下方に至り、第2のカ
ード検出センサ27はICカード3で反射した光を受光
してオンに切り替わる。
In the next step S8, the changed processing mode is displayed on the display 2 to notify the operator. And the above S3
Return to If the first card detection sensor 26 is still on and the second card detection sensor 27 is off, S
3, the processing mode is sequentially updated by the number of times by repeating the processing of S6 to S8. When the processing mode is changed as described above and the desired processing mode is displayed on the display 2, the operator inserts the IC card 3 into the card insertion slot 4.
Insert it all the way to the back. As a result, the leading end of the IC card 3 reaches below the second card detection sensor 27, and the second card detection sensor 27 receives light reflected by the IC card 3 and is turned on.

【0030】そのため、S3において、カード検出セン
サ26,27が共にオンであるときは、S4に進み、変
更された処理モードを設定した後、S5で変更された処
理モードで現在の時刻データ(情報)をICカード3の
EEPROM18に記憶させる。次の、S9では、IC
カード3に所定の処理モードで現在の時刻データ(情
報)を記憶させて処理が終了したことを表示器2に表示
させる。続いてS10に進み、第2のカード検出センサ
27がオフになったかどうかをチェックする。ICカー
ド3がカード挿入口4から引き出されると、まず第2の
カード検出センサ27がオフとなり、S11に進み、表
示器2に表示された処理モードを消去する。
Therefore, if both the card detection sensors 26 and 27 are ON in S3, the process proceeds to S4, where the changed processing mode is set, and then the current time data (information ) Is stored in the EEPROM 18 of the IC card 3. Next, in S9, IC
The current time data (information) is stored in the card 3 in a predetermined processing mode, and the display 2 indicates that the processing is completed. Subsequently, the process proceeds to S10, where it is checked whether the second card detection sensor 27 has been turned off. When the IC card 3 is pulled out from the card insertion slot 4, first, the second card detection sensor 27 is turned off, the process proceeds to S11, and the processing mode displayed on the display 2 is erased.

【0031】また、S10で第2のカード検出センサ2
7がオンであるときは、S12に進み、表示器2に「カ
ードイジェクト」を表示して操作者にICカード3を引
き出すことを促す。そして、S13では、第1のカード
検出センサ26がオフになったかどうかをチェックす
る。このS13において、第1のカード検出センサ26
がオンであるときは、S14に移行して表示器2に「カ
ードイジェクト」を表示して操作者にICカード3を引
き出すことを促す。またS13において、ICカード3
がカード挿入口4から引き出されると、第1のカード検
出センサ26がオフとなり、今回の処理が終了する。
In S10, the second card detection sensor 2
If the switch 7 is on, the process proceeds to S12, in which "card eject" is displayed on the display 2 to urge the operator to pull out the IC card 3. Then, in S13, it is checked whether the first card detection sensor 26 has been turned off. In this S13, the first card detection sensor 26
Is ON, the process proceeds to S14, where "Card Eject" is displayed on the display 2 to urge the operator to pull out the IC card 3. In S13, the IC card 3
Is pulled out from the card insertion slot 4, the first card detection sensor 26 is turned off, and the current processing ends.

【0032】このように、ICカード3の挿入動作を途
中で停止させることにより処理モードを順次変更するこ
とができるので、希望する処理モードに簡単に変更する
ことができる。しかも、面倒なスイッチ操作が不要であ
るため、処理モードを増加させる場合でもスイッチ数を
増やす必要がなく、処理モード変更操作の簡略化及び迅
速化を図ることができる。
As described above, the processing mode can be sequentially changed by stopping the insertion operation of the IC card 3 halfway, so that the desired processing mode can be easily changed. In addition, since troublesome switch operations are not required, the number of switches does not need to be increased even when the number of processing modes is increased, and the processing mode changing operation can be simplified and speeded up.

【0033】上記実施例においては、第1のカード検出
センサ26、第2のカード検出センサ27を空間30の
天井に設けたが、これに限ることなく、例えば第1のカ
ード検出センサ26、第2のカード検出センサ27を床
面に設けても良い。また、第1のカード検出センサ2
6、第2のカード検出センサ27は反射した光を受光し
てICカード3の挿入を検出する構成となっているが、
これに限らず、受光部と発光部とを分離させ、発光部か
らの光が遮られることによりICカード3の挿入を検出
するようにしても良い。
In the above embodiment, the first card detection sensor 26 and the second card detection sensor 27 are provided on the ceiling of the space 30, but the invention is not limited to this. For example, the first card detection sensor 26 and the second The second card detection sensor 27 may be provided on the floor. Also, the first card detection sensor 2
6. The second card detection sensor 27 is configured to detect the insertion of the IC card 3 by receiving the reflected light,
However, the insertion of the IC card 3 may be detected by separating the light receiving unit and the light emitting unit and blocking the light from the light emitting unit.

【0034】図6はカードR/W機構の変形例を示す縦
断面図である。カードR/W機構28は、筐体29の内
部に形成された空間30の天井に、カード挿入口4から
挿入されたICカード3の上面に摺接して転動するロー
ラ32が回転自在に設けられている。ローラ32は、表
面がゴム等の摩擦係数の大きい材質により形成されてい
る。
FIG. 6 is a longitudinal sectional view showing a modification of the card R / W mechanism. The card R / W mechanism 28 is provided with a roller 32 that slides on the upper surface of the IC card 3 inserted through the card insertion slot 4 and rolls on the ceiling of a space 30 formed inside the housing 29. Have been. The surface of the roller 32 is formed of a material having a large friction coefficient such as rubber.

【0035】そのため、ローラ32は、ICカード3が
挿入又は引抜き操作されると、ICカード3表面の摩擦
により回転するものであり、カード挿入操作時にはA方
向に回転し、カード引き抜き時にはB方向に回転する。
また、筐体29の上面には、ローラ32の回転方向を検
出するための磁気センサ33が設けられている。この磁
気センサ33は、ローラ32に埋設された複数の磁石
(図示せず)の検出パルスの時間間隔からローラ32の
回転方向を判別することができる。
Therefore, when the IC card 3 is inserted or pulled out, the roller 32 rotates due to friction on the surface of the IC card 3, and rotates in the direction A when the card is inserted and in the direction B when the card is pulled out. Rotate.
A magnetic sensor 33 for detecting the rotation direction of the roller 32 is provided on the upper surface of the housing 29. The magnetic sensor 33 can determine the rotation direction of the roller 32 based on the time interval between detection pulses of a plurality of magnets (not shown) embedded in the roller 32.

【0036】図7は制御回路6が実行する処理の変形例
1を説明するためのフローチャートである。図7中、S
21において、ICカード3がカード挿入口4に挿入さ
れて第1のカード検出センサ26がオンになると、S2
2に進み、前回実行された処理モードを表示器2に表示
させる。
FIG. 7 is a flowchart for explaining a first modification of the processing executed by the control circuit 6. In FIG. 7, S
At 21, when the IC card 3 is inserted into the card insertion slot 4 and the first card detection sensor 26 is turned on, S 2
Then, the process proceeds to step S2, and the processing mode executed last time is displayed on the display device 2.

【0037】操作者は、前回と同じ処理モードで良いと
きは、そのままICカード3をカードR/W機構28の
空間30の奥まで挿入する。このカード挿入操作により
ICカード3がカードR/W機構28内部に設けられた
ローラ32に摺接し、ローラ32がA方向に回転する。
その後、ICカード3の下面側に配された各端子は、カ
ードR/W機構28のR/Wヘッド31に接触し、時刻
データの書き込み、あるいは時刻データの読み込みが実
行される。
The operator inserts the IC card 3 as far as possible into the space 30 of the card R / W mechanism 28 when the same processing mode as the previous time is sufficient. By this card insertion operation, the IC card 3 comes into sliding contact with the roller 32 provided inside the card R / W mechanism 28, and the roller 32 rotates in the A direction.
After that, each terminal arranged on the lower surface side of the IC card 3 comes into contact with the R / W head 31 of the card R / W mechanism 28, and time data is written or time data is read.

【0038】次のS23では、ローラ32の回転が磁気
センサ33により検出されたか否かをチェックする。こ
のS23でローラ32の回転が検出されたときはS24
に進み、ローラ32の回転方向がA方向(カード挿入方
向)に正転かどうかをチェックする。そして、ローラ3
2の回転方向がA方向に正転であるときは、S25に進
み、表示器2に表示された処理モードを設定する。しか
し、S24において、ローラ32の回転方向がA方向で
ないときは、ICカード3が引き抜かれて操作者が記憶
操作を中断したものと判断してS21に戻る。
In the next step S23, it is checked whether or not the rotation of the roller 32 is detected by the magnetic sensor 33. If the rotation of the roller 32 is detected in S23, the process proceeds to S24.
To check whether the rotation direction of the roller 32 is normal in the direction A (card insertion direction). And roller 3
If the rotation direction of No. 2 is normal rotation in the A direction, the process proceeds to S25, and the processing mode displayed on the display 2 is set. However, if the rotation direction of the roller 32 is not the A direction in S24, it is determined that the IC card 3 has been pulled out and the operator has interrupted the storage operation, and the process returns to S21.

【0039】次のS26では、第2のカード検出センサ
27がオンになったかどうかをチェックする。そして、
ICカード3の挿入により第2のカード検出センサ27
がオンに切り替わりカード検出センサ26,27が共に
オンであるときは、S27に進み、S25で設定された
所定の処理モードで現在の時刻データ(情報)をICカ
ード3のEEPROM18に記憶させる。
In the next step S26, it is checked whether or not the second card detection sensor 27 has been turned on. And
When the IC card 3 is inserted, the second card detection sensor 27
Is turned on and both the card detection sensors 26 and 27 are on, the process proceeds to S27, and the current time data (information) is stored in the EEPROM 18 of the IC card 3 in the predetermined processing mode set in S25.

【0040】しかし、上記S23において、表示器2に
表示された処理モード以外の処理モードを実行させたい
ときは、ICカード3の先端がカード挿入口4に挿入さ
れた状態で挿入操作を停止させる。このとき、ICカー
ド3の先端がローラ32に達していないので、ローラ3
2は回転していない。上記S23において、ローラ32
の回転が検出されていないときは、ICカード3の先端
がカード挿入口4に挿入された状態で挿入操作が停止さ
れているので、第1のカード検出センサ26がオンで磁
気センサ33がローラ32の回転を検出していない。こ
の場合、S28に移行してこの状態のまま所定時間(n
秒)が経過したかどうかをチェックする。
However, in S23, when it is desired to execute a processing mode other than the processing mode displayed on the display 2, the insertion operation is stopped with the tip of the IC card 3 inserted into the card insertion slot 4. . At this time, since the tip of the IC card 3 has not reached the roller 32,
2 is not rotating. In the above S23, the roller 32
When the rotation of the IC card 3 is not detected, the insertion operation is stopped with the tip of the IC card 3 inserted into the card insertion slot 4, so that the first card detection sensor 26 is turned on and the magnetic sensor 33 is 32 rotation has not been detected. In this case, the process shifts to S28, and in this state, the predetermined time (n
Second) has elapsed.

【0041】この状態のまま所定時間(n秒)が経過す
るまで、S23,S28の処理を繰り返しており、所定
時間(n秒)が経過する前にICカード3の挿入操作が
行われてローラ32が回転したときは、前述したS24
以降の処理を実行する。しかし、所定時間(n秒)が経
過した場合は、S29に進み、処理モードを順次変更す
る。本実施例では、例えばICカード3に記憶させる時
刻を入場時刻、退場時刻、早退時刻、フレックス入場時
刻、残業時刻の何れかの処理モードに変更する。
The processes in S23 and S28 are repeated until a predetermined time (n seconds) elapses in this state. Before the predetermined time (n seconds) elapses, the IC card 3 is inserted and the roller 32 rotates, the above-described S24
Execute the following processing. However, if the predetermined time (n seconds) has elapsed, the process proceeds to S29, and the processing mode is sequentially changed. In the present embodiment, for example, the time stored in the IC card 3 is changed to any of the processing modes of entry time, exit time, early exit time, flex entry time, and overtime time.

【0042】次のS30では、変更した処理モードを表
示器2に表示させて操作者に知らせる。そして、上記S
23に戻る。まだ、第1のカード検出センサ26がオン
でローラ32の回転が検出されないときは、再びS2
3,S28〜S30の処理を繰り返すことによりその回
数分だけ処理モードを順次更新する。操作者は、上記の
ようにして処理モードが変更されて希望する処理モード
が表示器2に表示されると、ICカード3をカード挿入
口4の奥まで挿入させる。これにより、ICカード3の
先端がローラ32を回転させながら第2のカード検出セ
ンサ27の下方に至り、第2のカード検出センサ27は
ICカード3で反射した光を受光してオンに切り替わ
る。
In the next step S30, the changed processing mode is displayed on the display 2 to notify the operator. And the above S
Return to 23. If the first card detection sensor 26 is still on and the rotation of the roller 32 has not been detected, the process returns to S2.
3, the processing mode is sequentially updated by the number of times by repeating the processing of S28 to S30. When the processing mode is changed as described above and the desired processing mode is displayed on the display 2, the operator inserts the IC card 3 into the card insertion slot 4. Thus, the tip of the IC card 3 reaches below the second card detection sensor 27 while rotating the roller 32, and the second card detection sensor 27 receives light reflected by the IC card 3 and is turned on.

【0043】そのため、S26において、カード検出セ
ンサ26,27が共にオンであるときは、S27に進
み、変更された処理モードを設定した後、S28で変更
された処理モードで現在の時刻データ(情報)をICカ
ード3のEEPROM18に記憶させる。S26におい
て、第2のカード検出センサ27がオフであるときは、
S31に移行してローラ32の回転方向がB方向(カー
ド引き抜き方向)に逆転かどうかをチェックする。そし
て、ローラ32の回転方向がB方向に逆転であるとき
は、ICカード3が引き抜かれてローラ32が逆転した
ものと判断してS23に戻る。しかし、S31におい
て、ローラ32の回転方向がB方向でないときは、IC
カード3が挿入されているものと判断してS26に戻
り、S27以降の処理を実行する。
Therefore, if the card detection sensors 26 and 27 are both on in S26, the process proceeds to S27, where the changed processing mode is set, and then the current time data (information ) Is stored in the EEPROM 18 of the IC card 3. In S26, when the second card detection sensor 27 is off,
The flow shifts to S31, where it is checked whether the rotation direction of the roller 32 is reversed in the direction B (card removal direction). If the rotation direction of the roller 32 is reversed in the direction B, it is determined that the IC card 3 has been pulled out and the roller 32 has been reversed, and the process returns to S23. However, if the rotation direction of the roller 32 is not the B direction in S31, IC
It is determined that the card 3 has been inserted, and the process returns to S26 to execute the processing from S27.

【0044】次の、S32では、ICカード3に所定の
処理モードで現在の時刻データ(情報)を記憶させて処
理が終了したことを表示器2に表示させる。続いてS3
3に進み、第2のカード検出センサ27がオフになった
かどうかをチェックする。ICカード3がカード挿入口
4から引き出されると、まず第2のカード検出センサ2
7がオフとなり、S34に進み、表示器2に表示された
処理モードを消去する。
In the next step S32, the current time data (information) is stored in the IC card 3 in a predetermined processing mode, and the display 2 indicates that the processing is completed. Then S3
Proceed to 3 to check whether the second card detection sensor 27 has been turned off. When the IC card 3 is pulled out from the card insertion slot 4, first, the second card detection sensor 2
7 is turned off, the process proceeds to S34, and the processing mode displayed on the display 2 is deleted.

【0045】また、S33で第2のカード検出センサ2
7がオンであるときは、S35に進み、表示器2に「カ
ードイジェクト」を表示して操作者にICカード3を引
き出すことを促す。そして、S36では、第1のカード
検出センサ26がオフになったかどうかをチェックす
る。このS36において、第1のカード検出センサ26
がオンであるときは、S37に移行して表示器2に「カ
ードイジェクト」を表示して操作者にICカード3を引
き出すことを促す。またS36において、ICカード3
がカード挿入口4から引き出されると、第1のカード検
出センサ26がオフとなり、今回の処理が終了する。
In step S33, the second card detection sensor 2
When 7 is on, the process proceeds to S35, where "Card Eject" is displayed on the display 2 to urge the operator to pull out the IC card 3. Then, in S36, it is checked whether the first card detection sensor 26 has been turned off. In this S36, the first card detection sensor 26
Is ON, the process proceeds to S37, where "Card Eject" is displayed on the display 2 to urge the operator to pull out the IC card 3. In S36, the IC card 3
Is pulled out from the card insertion slot 4, the first card detection sensor 26 is turned off, and the current processing ends.

【0046】このように、ICカード3の挿入動作を途
中で停止させることにより処理モードを順次変更するこ
とができるので、面倒なスイッチ操作が不要であり、希
望する処理モードに簡単に変更することができる。しか
も、ICカード3の挿入操作あるいは引き抜き操作によ
り回転するローラ32の回転方向を監視することにより
ICカード3の挿入状態あるいは引き抜き状態を確認す
ることができるので、処理モード変更操作の誤操作を防
止でき、希望する処理モードを簡単に設定することがで
きる。
As described above, the processing mode can be sequentially changed by stopping the insertion operation of the IC card 3 in the middle, so that troublesome switch operation is unnecessary, and the desired processing mode can be easily changed. Can be. In addition, since the insertion state or the removal state of the IC card 3 can be confirmed by monitoring the rotation direction of the roller 32 rotated by the insertion operation or the removal operation of the IC card 3, erroneous operation of the processing mode change operation can be prevented. The desired processing mode can be easily set.

【0047】図8は制御回路6が実行する処理の変形例
2を説明するためのフローチャートである。尚、変形例
2の構成は前述した変形例1と同様であるので、その説
明は省略する。図8中、S41において、ICカード3
がカード挿入口4に挿入されて第1のカード検出センサ
26がオンになると、S42に進み、前回実行された処
理モードを表示器2に表示させる。
FIG. 8 is a flowchart for explaining a second modification of the processing executed by the control circuit 6. The configuration of Modification 2 is the same as that of Modification 1 described above, and a description thereof will not be repeated. In FIG. 8, in S41, the IC card 3
Is inserted into the card insertion slot 4 to turn on the first card detection sensor 26, the process proceeds to S42, and the processing mode executed last time is displayed on the display 2.

【0048】操作者は、前回と同じ処理モードで良いと
きは、そのままICカード3をカードR/W機構28の
空間30の奥まで挿入する。このカード挿入操作により
ICカード3がカードR/W機構28内部に設けられた
ローラ32に摺接し、ローラ32がA方向に回転する。
その後、ICカード3の下面側に配された各端子は、カ
ードR/W機構28のR/Wヘッド31に接触し、時刻
データの書き込み、あるいは時刻データの読み込みが実
行される。
The operator inserts the IC card 3 as far as possible into the space 30 of the card R / W mechanism 28 when the same processing mode as the previous time is sufficient. By this card insertion operation, the IC card 3 comes into sliding contact with the roller 32 provided inside the card R / W mechanism 28, and the roller 32 rotates in the A direction.
After that, each terminal arranged on the lower surface side of the IC card 3 comes into contact with the R / W head 31 of the card R / W mechanism 28, and time data is written or time data is read.

【0049】次のS43では、ローラ32の回転が磁気
センサ33により検出されたか否かをチェックする。こ
のS43でローラ32の回転が検出されないときはS4
4に進み、所定時間n秒が経過したかどうかをチェック
する。S44で所定時間n秒が経過していないときは、
前述したS43に戻り、ローラ32の回転の有無を確認
する。また、S44において、ローラ32の回転が検出
されないまま所定時間n秒が経過したときは、S45に
進み、ローラ32の回転方向がA方向(カード挿入方
向)に正転かどうかをチェックする。そして、ローラ3
2の回転方向がA方向に正転であるときは、S46に進
み、表示器2に表示された処理モードを設定する。しか
し、S45において、ローラ32の回転方向がA方向で
ないときは、ICカード3が引き抜かれて操作者が記憶
操作を中断したものと判断してS41に戻る。
In the next S43, it is checked whether or not the rotation of the roller 32 is detected by the magnetic sensor 33. If the rotation of the roller 32 is not detected in S43, the process proceeds to S4
Proceed to 4 to check whether a predetermined time n seconds has elapsed. If the predetermined time n seconds has not elapsed in S44,
Returning to step S43, it is checked whether the roller 32 has rotated. If the predetermined time n seconds has elapsed without detecting the rotation of the roller 32 in S44, the process proceeds to S45 to check whether the rotation direction of the roller 32 is normal in the direction A (card insertion direction). And roller 3
When the rotation direction of No. 2 is normal rotation in the A direction, the process proceeds to S46, and the processing mode displayed on the display 2 is set. However, if the rotation direction of the roller 32 is not the A direction in S45, it is determined that the IC card 3 has been pulled out and the operator has interrupted the storage operation, and the process returns to S41.

【0050】ICカード3の挿入により第1のカード検
出センサ26がオンとなり、その後所定時間n秒が経過
したときに磁気センサ33がローラ32の正転を検出し
たときは、S47に進み、S46で設定された所定の処
理モードで現在の時刻データ(情報)をICカード3の
EEPROM18に記憶させる。しかし、表示器2に表
示された処理モード以外の処理モードを実行させたいと
きは、ICカード3の先端がローラ32に摺接するまで
カードR/W機構28内部に挿入させる。
When the first card detection sensor 26 is turned on by the insertion of the IC card 3 and the magnetic sensor 33 detects the normal rotation of the roller 32 when a predetermined time n seconds has elapsed after that, the process proceeds to S47 and S46. The current time data (information) is stored in the EEPROM 18 of the IC card 3 in the predetermined processing mode set in the above. However, when it is desired to execute a processing mode other than the processing mode displayed on the display 2, the IC card 3 is inserted into the card R / W mechanism 28 until the leading end of the IC card 3 slides on the roller 32.

【0051】従って、上記S43において、ローラ32
の回転が検出されたときは、ICカード3の先端がカー
ドR/W機構28の空間30内に挿入された状態で、S
48に移行し、この状態のまま所定時間n秒が経過する
したかどうかをチェックする。すなわち、ICカード3
がカードR/W機構28の空間30内に挿入され、且つ
ローラ32が所定時間(n秒)回転し続けたときは、S
49の処理を実行し、所定時間(n秒)ローラ32が回
転しないときは、設定された処理モードで現在の時刻デ
ータ(情報)をICカード3に記憶させる。
Therefore, in the above S43, the roller 32
When the rotation of the IC card 3 is detected, the state in which the leading end of the IC card 3 is inserted into the space 30 of the card R / W mechanism 28 and S
The process proceeds to 48, and it is checked whether or not a predetermined time n seconds has elapsed in this state. That is, the IC card 3
Is inserted into the space 30 of the card R / W mechanism 28 and the roller 32 continues to rotate for a predetermined time (n seconds), S
When the process of 49 is performed and the roller 32 does not rotate for a predetermined time (n seconds), the current time data (information) is stored in the IC card 3 in the set processing mode.

【0052】従って、S48で所定時間(n秒)が経過
するまで、S43,S48の処理を繰り返しており、所
定時間(n秒)が経過する前にICカード3の挿入操作
が行われてローラ32が停止したときは、前述したS4
4以降の処理を実行する。しかし、S48において、所
定時間(n秒)が経過した場合は、S49に進み、処理
モードを順次変更する。本実施例では、例えばICカー
ド3に記憶させる時刻を入場時刻、退場時刻、早退時
刻、フレックス入場時刻、残業時刻の何れかの処理モー
ドに変更する。
Therefore, the processing of S43 and S48 is repeated until the predetermined time (n seconds) elapses in S48, and the insertion operation of the IC card 3 is performed before the predetermined time (n seconds) elapses. 32 stops, the aforementioned S4
4 and subsequent processes are executed. However, if the predetermined time (n seconds) has elapsed in S48, the process proceeds to S49, and the processing mode is sequentially changed. In the present embodiment, for example, the time stored in the IC card 3 is changed to any of the processing modes of entry time, exit time, early exit time, flex entry time, and overtime time.

【0053】次のS50では、変更した処理モードを表
示器2に表示させて操作者に知らせる。そして、上記S
43に戻る。まだ、第1のカード検出センサ26がオン
でローラ32の回転が検出されているときは、再びS4
3,S48〜S50の処理を繰り返すことによりその回
数分だけ処理モードを順次更新する。操作者は、上記の
ようにして処理モードが変更されて希望する処理モード
が表示器2に表示されると、ICカード3をカード挿入
口4の奥まで挿入して停止させる。
In the next step S50, the changed processing mode is displayed on the display 2 to notify the operator. And the above S
Return to 43. If the first card detection sensor 26 is still on and the rotation of the roller 32 is detected, the process returns to S4.
3. The processing mode is sequentially updated by the number of times by repeating the processing of S48 to S50. When the processing mode is changed as described above and the desired processing mode is displayed on the display 2, the operator inserts the IC card 3 into the card insertion slot 4 and stops it.

【0054】そのため、S45において、カード検出セ
ンサ26がオンであると共にローラ32が正転したとき
は、S46に進み、変更された処理モードを設定した
後、S47で変更された処理モードで現在の時刻データ
(情報)をICカード3のEEPROM18に記憶させ
る。S46の処理が終了すると、S51に進み、ICカ
ード3に所定の処理モードで現在の時刻データ(情報)
を記憶させて処理が終了したことを表示器2に表示させ
る。
Therefore, when the card detection sensor 26 is ON and the roller 32 rotates forward in S45, the process proceeds to S46, where the changed processing mode is set, and the current processing mode is changed in S47. The time data (information) is stored in the EEPROM 18 of the IC card 3. When the process of S46 is completed, the process proceeds to S51, in which the current time data (information) is stored in the IC card 3 in a predetermined processing mode.
Is stored on the display 2 to indicate that the processing is completed.

【0055】次のS52では、ローラ32の回転方向が
B方向(カード引き抜き方向)に逆転かどうかをチェッ
クする。そして、ローラ32の回転方向がB方向に逆転
であるときは、S53に進み、表示器2に表示された処
理モードを消去する。また、S52でローラ32の回転
方向がA方向に正転であるときは、S54に進み、表示
器2に「カードイジェクト」を表示して操作者にICカ
ード3を引き出すことを促す。そして、S55では、第
1のカード検出センサ26がオフになったかどうかをチ
ェックする。
In the next step S52, it is checked whether or not the rotation direction of the roller 32 is reversed in the direction B (card removal direction). When the rotation direction of the roller 32 is reverse to the direction B, the process proceeds to S53, and the processing mode displayed on the display 2 is deleted. If the rotation direction of the roller 32 is normal in the direction A in S52, the process proceeds to S54, in which "Card Eject" is displayed on the display 2 to urge the operator to pull out the IC card 3. Then, in S55, it is checked whether the first card detection sensor 26 has been turned off.

【0056】このS55において、第1のカード検出セ
ンサ26がオフになると、ICカード3がカード挿入口
4から引き出されたものと判断して、今回の処理が終了
する。このように、ICカード3の挿入動作によりロー
ラ32を回転させることにより処理モードを順次変更す
ることができるので、面倒なスイッチ操作が不要であ
り、希望する処理モードに簡単に変更することができ
る。しかも、ローラ32の回転方向が正転であるとき
は、時刻データ(情報)をICカード3に記憶させ、ロ
ーラ32の回転方向が逆転であるときは、やり直しある
いは終了にできるので、第2のカード検出センサ27を
不要にできると共に、ICカード3の挿入又は引き抜き
操作により希望する処理モードを簡単に設定することが
できる。
In step S55, when the first card detection sensor 26 is turned off, it is determined that the IC card 3 has been pulled out from the card insertion slot 4, and the current processing ends. As described above, since the processing mode can be sequentially changed by rotating the roller 32 by the insertion operation of the IC card 3, a troublesome switch operation is unnecessary, and the processing mode can be easily changed to a desired processing mode. . In addition, when the rotation direction of the roller 32 is normal rotation, the time data (information) is stored in the IC card 3, and when the rotation direction of the roller 32 is reverse rotation, it is possible to start over or end the second operation. The card detection sensor 27 can be omitted, and a desired processing mode can be easily set by inserting or removing the IC card 3.

【0057】図9は制御回路6が実行する処理の変形例
3を説明するためのフローチャートである。尚、変形例
3の構成は前述した変形例1と同様であるので、その説
明は省略する。図9中、S61において、ICカード3
がカード挿入口4に挿入されて第1のカード検出センサ
26がオンになると、S62に進み、前回実行された処
理モードを表示器2に表示させる。前回と同じ処理モー
ドで良いときは、ICカード3がカードR/W機構28
の空間30の奥まで挿入される。
FIG. 9 is a flowchart for explaining a third modification of the processing executed by the control circuit 6. The configuration of Modification 3 is the same as that of Modification 1 described above, and a description thereof will not be repeated. In FIG. 9, in S61, the IC card 3
Is inserted into the card insertion slot 4 to turn on the first card detection sensor 26, the process proceeds to S62, and the processing mode executed last time is displayed on the display 2. When the same processing mode as the previous time is sufficient, the IC card 3 is
Is inserted all the way into the space 30.

【0058】次のS63では、第1のカード検出センサ
26がオン・オフとなったかどうかをチェックしてお
り、処理モードを変更させたいときは、ICカード3を
カード挿入口4で出し入れする。これにより第1のカー
ド検出センサ26がオン・オフ動作することになる。そ
して、S63において、第1のカード検出センサ26が
オン・オフ動作しないときは、S64に進み、所定時間
(n秒)が経過したかどうかをチェックする。
In the next step S63, it is checked whether or not the first card detection sensor 26 has been turned on / off. When it is desired to change the processing mode, the IC card 3 is inserted and removed through the card slot 4. As a result, the first card detection sensor 26 turns on and off. If the first card detection sensor 26 does not perform the on / off operation in S63, the process proceeds to S64, and it is checked whether a predetermined time (n seconds) has elapsed.

【0059】所定時間(n秒)が経過する間に第1のカ
ード検出センサ26がオン・オフ動作しないときは、S
65に進み、第2のカード検出センサ27がオンになっ
たかどうかをチェックする。そして、ICカード3の挿
入により第2のカード検出センサ27がオンであるとき
は、S66に進み、第2のカード検出センサ27がオフ
であるときは、上記S64に戻り所定時間(n秒)が経
過したかどうかをチェックする。
If the first card detection sensor 26 does not turn on / off while the predetermined time (n seconds) elapses, S
Proceeding to 65, it is checked whether the second card detection sensor 27 has been turned on. When the second card detection sensor 27 is turned on due to the insertion of the IC card 3, the process proceeds to S66, and when the second card detection sensor 27 is turned off, the process returns to S64 and the predetermined time (n seconds) Check if has passed.

【0060】S66では、第1,第2のカード検出セン
サ26,27が共にオフであるかどうかをチェックす
る。このS66において、第1,第2のカード検出セン
サ26,27が共にオフであるときは、ICカード3が
引き抜かれて操作が中断されてものと判断してS61に
戻る。しかし、S66において、第1,第2のカード検
出センサ26,27が共にオフでないときは、ICカー
ド3がカードR/W機構28に装着されているので、S
67に進み、設定された所定の処理モードで現在の時刻
データ(情報)をICカード3のEEPROM18に記
憶させる。
In S66, it is checked whether both the first and second card detection sensors 26 and 27 are off. If both the first and second card detection sensors 26 and 27 are off at S66, it is determined that the IC card 3 is pulled out and the operation is interrupted, and the process returns to S61. However, if both the first and second card detection sensors 26 and 27 are not off in S66, the IC card 3 is mounted on the card R / W mechanism 28,
Proceeding to 67, the current time data (information) is stored in the EEPROM 18 of the IC card 3 in the set predetermined processing mode.

【0061】しかし、上記S63において、第1のカー
ド検出センサ26がオン・オフ動作したときは、S69
に進み、所定時間(n秒)が経過したかどうかをチェッ
クする。所定時間(n秒)が経過する間に第1のカード
検出センサ26がオン・オフ動作しないときは、上記S
64以降の処理を実行し、所定時間(n秒)が経過する
間に第1のカード検出センサ26がオン・オフ動作した
とき(図10の波形図参照)は、すなわち所定時間(n
秒)以内にICカード3を2回出し入れしたときはS7
0に進み、処理モードを順次変更する。本実施例では、
例えばICカード3に記憶させる時刻を入場時刻、退場
時刻、早退時刻、フレックス入場時刻、残業時刻の何れ
かの処理モードに変更する。
However, if the first card detection sensor 26 is turned on / off in S63, the process proceeds to S69.
To check whether a predetermined time (n seconds) has elapsed. If the first card detection sensor 26 does not perform the on / off operation during the elapse of the predetermined time (n seconds), the above-described S
When the first card detection sensor 26 is turned on / off while the predetermined time (n seconds) elapses (see the waveform diagram of FIG. 10), the processing of the predetermined time (n
S7 when the IC card 3 is put in and out twice within seconds)
The process proceeds to 0, and the processing mode is sequentially changed. In this embodiment,
For example, the time stored in the IC card 3 is changed to one of the processing modes of entry time, exit time, early exit time, flex entry time, and overtime time.

【0062】次のS71では、変更した処理モードを表
示器2に表示させて操作者に知らせる。そして、上記S
63に戻る。まだ、ICカード3の出し入れ操作が行わ
れて第1のカード検出センサ26がオン・オフ動作した
ときは、再びS70,S71の処理を繰り返すことによ
りその回数分だけ処理モードを順次更新する。操作者
は、上記のようにして処理モードが変更されて希望する
処理モードが表示器2に表示されると、ICカード3を
カードR/W機構28の奥まで挿入させる。
In the next step S71, the changed processing mode is displayed on the display 2 to notify the operator. And the above S
Return to 63. If the first card detection sensor 26 is still turned on and off by the operation of inserting and removing the IC card 3, the processing mode is sequentially updated by the number of times by repeating the processing of S70 and S71 again. When the processing mode is changed as described above and the desired processing mode is displayed on the display 2, the operator inserts the IC card 3 into the card R / W mechanism 28.

【0063】そして、上記S63〜S66の処理が実行
されて、カード検出センサ26,27が共にオンである
ときは、S67で変更された処理モードを設定した後、
S68で変更された処理モードで現在の時刻データ(情
報)をICカード3のEEPROM18に記憶させる。
次の、S72では、ICカード3に所定の処理モードで
現在の時刻データ(情報)を記憶させて処理が終了した
ことを表示器2に表示させる。続いてS73に進み、第
2のカード検出センサ27がオフになったかどうかをチ
ェックする。ICカード3がカード挿入口4から引き出
されると、まず第2のカード検出センサ27がオフとな
り、S74に進み、表示器2に表示された処理モードを
消去する。
When the processes of S63 to S66 are executed and both of the card detection sensors 26 and 27 are on, after the processing mode changed in S67 is set,
The current time data (information) is stored in the EEPROM 18 of the IC card 3 in the processing mode changed in S68.
In the next step S72, the current time data (information) is stored in the IC card 3 in a predetermined processing mode, and the display 2 indicates that the processing is completed. Subsequently, the flow advances to S73 to check whether or not the second card detection sensor 27 has been turned off. When the IC card 3 is pulled out from the card insertion slot 4, first, the second card detection sensor 27 is turned off, the process proceeds to S74, and the processing mode displayed on the display 2 is erased.

【0064】また、S73で第2のカード検出センサ2
7がオンであるときは、S35に進み、表示器2に「カ
ードイジェクト」を表示して操作者にICカード3を引
き出すことを促す。そして、S76では、第1のカード
検出センサ26がオフになったかどうかをチェックす
る。このS36において、ICカード3がカード挿入口
4から引き出されると、第1のカード検出センサ26が
オフとなり、今回の処理が終了する。
At S73, the second card detection sensor 2
When 7 is on, the process proceeds to S35, where "Card Eject" is displayed on the display 2 to urge the operator to pull out the IC card 3. Then, in S76, it is checked whether the first card detection sensor 26 has been turned off. In this S36, when the IC card 3 is pulled out from the card insertion slot 4, the first card detection sensor 26 is turned off, and the current processing ends.

【0065】このように、ICカード3を出し入れした
回数により処理モードを順次変更することができるの
で、面倒なスイッチ操作が不要であり、希望する処理モ
ードに簡単に変更することができ、処理モード変更の誤
操作を防止できる。図11は本発明の変形例4のブロッ
クである。同図中、前述した図2の構成と同一部分には
同一符号を付してその説明を省略する。
As described above, the processing mode can be sequentially changed according to the number of times the IC card 3 is inserted and removed, so that a troublesome switch operation is unnecessary, and the processing mode can be easily changed to a desired processing mode. Erroneous operation of the change can be prevented. FIG. 11 is a block diagram of a fourth modification of the present invention. In the figure, the same parts as those in the configuration of FIG. 2 described above are denoted by the same reference numerals, and description thereof will be omitted.

【0066】電源7から供給される電圧は電源監視装置
35により監視されており、電源スイッチ25がオフに
操作されて電圧が低下し所定電圧以下になると、電源監
視装置35から電源電圧低下信号が出力される。また、
RTC(Real Time clock)36は、時間カウンタあるい
はICカレンダとも呼ばれており、日時を自動的にカウ
ントしている。制御回路6は、このRTC36から日時
を任意に読み出すことができる。
The voltage supplied from the power supply 7 is monitored by a power supply monitoring device 35. When the power supply switch 25 is turned off and the voltage decreases to a predetermined voltage or less, a power supply voltage reduction signal is output from the power supply monitoring device 35. Is output. Also,
The RTC (Real Time Clock) 36 is also called a time counter or an IC calendar, and automatically counts the date and time. The control circuit 6 can arbitrarily read the date and time from the RTC 36.

【0067】図12及び図13は制御回路6が実行する
処理の変形例4を説明するためのフローチャートであ
る。尚、図12は電源スイッチ25がオフに操作された
ときの処理を説明するためのフローチャート、図13は
電源スイッチ25がオンに操作されたときの処理を説明
するためのフローチャートである。今、ICカード装置
1の電源がオンの状態となっているものとする。そし
て、電源スイッチ25がオフに操作されると、電源監視
装置35から電源電圧低下信号が出力され、制御回路6
に通知される。
FIGS. 12 and 13 are flow charts for explaining a fourth modification of the processing executed by the control circuit 6. FIG. 12 is a flowchart for explaining a process when the power switch 25 is turned off, and FIG. 13 is a flowchart for explaining a process when the power switch 25 is turned on. Now, it is assumed that the power supply of the IC card device 1 is turned on. When the power switch 25 is turned off, a power supply voltage drop signal is output from the power supply monitoring device 35 and the control circuit 6
Will be notified.

【0068】この電源電圧低下信号を受け取った制御回
路6は、S81において、RTC36から日時を読み出
し、S82で不揮発性メモリよりなるICカード3のE
EPROM18に記憶させる。そして、電源電圧が各装
置の動作電圧以下に低下した時点でシステムダウンとな
る。
The control circuit 6 which has received the power supply voltage lowering signal reads the date and time from the RTC 36 in S81, and reads the date and time of the IC card 3 composed of the nonvolatile memory in S82.
It is stored in the EPROM 18. Then, when the power supply voltage drops below the operating voltage of each device, the system goes down.

【0069】次に、システムダウンした後に再び電源を
オンにした場合の処理について説明する。この場合、電
源スイッチ25がオンに操作されると、電源電圧が上昇
し、各装置が動作可能となった時点でシステムが稼働開
始する。そのとき、制御回路6は、S83でRTC36
から日時を読み出し、レジスタ(図示せず)や高速で読
み書きできるSRAM8等に格納する。ここでは、この
日時を「日時1」と呼ぶ。
Next, the processing when the power is turned on again after the system is down will be described. In this case, when the power switch 25 is turned on, the power supply voltage increases, and the system starts operating when each device becomes operable. At that time, the control circuit 6 determines in step S83 that the RTC 36
The date and time are read out from the memory and stored in a register (not shown) or an SRAM 8 which can read and write at high speed. Here, this date is referred to as “date 1”.

【0070】次にS84で、EEPROM18に格納さ
れている電源電圧低下時に記録した日時を読み出す。こ
こでは、この日時を「日時2」と呼ぶ。そして、S85
で「日時1」と「日時2」とを比較する。次のS86に
おいて、「日時1」と「日時2」との差がn秒以下の場
合(日時2−日時1≦n秒)、S86に移行して処理モ
ードをmからm+1に変更する。従って、電源スイッチ
25がオフに操作してから電源スイッチ25がオンに操
作されるまでの経過時間がn秒以下のときは複数ある処
理モードを順次変更することができる。
Next, in S84, the date and time recorded in the EEPROM 18 when the power supply voltage has dropped is read. Here, this date is referred to as “date 2”. And S85
Then, “date 1” and “date 2” are compared. In the next S86, if the difference between “date 1” and “date 2” is n seconds or less (date 2−date 1 ≦ n seconds), the process proceeds to S86 and the processing mode is changed from m to m + 1. Therefore, when the elapsed time from when the power switch 25 is turned off to when the power switch 25 is turned on is n seconds or less, the plurality of processing modes can be sequentially changed.

【0071】次のS87では、S86で変更されたm+
1の処理モードが存在するか否かをチェックする。も
し、変更されたm+1の処理モードが存在しないとき
は、S88に移行して初期値の処理モード1に戻す。ま
た、S87でm+1の処理モードが存在するときは、S
89に進む。このS89では、変更されたm+1の処理
モードを表示器2に表示させる。 そして、S90に進
み、変更された処理モードで現在の時刻データをICカ
ード3のEEPROM18に記憶させる。
In the next S87, m + changed in S86
It is checked whether or not one processing mode exists. If the changed processing mode of m + 1 does not exist, the flow shifts to S88 to return to the processing mode 1 of the initial value. Further, when the processing mode of m + 1 exists in S87, S
Go to 89. In S89, the display unit 2 displays the changed processing mode of m + 1. Then, the process proceeds to S90, where the current time data is stored in the EEPROM 18 of the IC card 3 in the changed processing mode.

【0072】また、S85において、「日時1」と「日
時2」との差がn秒以上の場合(日時2−日時1>n
秒)には、処理モードを変更させる必要がないものとし
てS91に進み、変更された処理モードで現在の時刻デ
ータをICカード3のEEPROM18に記憶させる。
このように、電源スイッチ25のオン・オフ操作の時間
間隔を監視して処理モードが順次変更されるため、電源
スイッチ25のオン・オフ操作の回数に応じて処理モー
ドを順次変更することができるので、希望する処理モー
ドに簡単に変更することができ、処理モード変更の誤操
作を防止できる。
In S85, if the difference between "date 1" and "date 2" is n seconds or more (date 2-date 1> n
In (seconds), it is determined that there is no need to change the processing mode, and the flow advances to S91 to store the current time data in the EEPROM 18 of the IC card 3 in the changed processing mode.
As described above, since the processing mode is sequentially changed by monitoring the time interval of the ON / OFF operation of the power switch 25, the processing mode can be sequentially changed according to the number of ON / OFF operations of the power switch 25. Therefore, the processing mode can be easily changed to a desired processing mode, and erroneous operation of changing the processing mode can be prevented.

【0073】尚、上記実施例では、ICカード3のEE
PROM18に時刻を記憶させる処理モードを変更させ
る場合を一例として説明したが、これに限らず、他の情
報を記憶させる装置にも適用できるのは勿論である。
In the above embodiment, the EE of the IC card 3
The case of changing the processing mode for storing the time in the PROM 18 has been described as an example. However, the present invention is not limited to this, and it is needless to say that the present invention can be applied to a device for storing other information.

【0074】[0074]

【発明の効果】上述の如く、請求項1記載の発明によれ
ば、第1のカード検出部材によりICカードの挿入が検
出されている間にICカードに対するデータの処理モー
ドを変更し、第1のカード検出部材及び第2のカード検
出部材によりICカードの挿入が検出されたときにデー
タ処理モード変更手段により設定された処理モードに基
づきICカードに対する処理を行うため、複数のモード
切替スイッチが不要になり、構成の簡略化及び操作の簡
素化を図ることができ、ICカードの記憶部に間違った
処理モードでデータを記憶させてしまうことを防止して
ICカードに記憶されたデータの信頼性を高めることが
できる。
As described above, according to the first aspect of the present invention, the data processing mode for the IC card is changed while the insertion of the IC card is detected by the first card detecting member. When the insertion of the IC card is detected by the card detection member and the second card detection member, the IC card performs processing on the IC card based on the processing mode set by the data processing mode changing means, so that a plurality of mode changeover switches are unnecessary. This makes it possible to simplify the configuration and the operation, and to prevent the data from being stored in the storage unit of the IC card in the wrong processing mode, thereby improving the reliability of the data stored in the IC card. Can be increased.

【0075】また、請求項2記載の発明によれば、IC
カードの出し入れ回数に応じて、ICカードに対するデ
ータの処理モードを変更し、第2のカード検出部材によ
りICカードの挿入が検出されたとき、設定された処理
モードに基づきICカードに対する処理を行うため、複
数のモード切替スイッチが不要になり、構成の簡略化及
び操作の簡素化を図ることができ、ICカードの記憶部
に間違った処理モードでデータを記憶させてしまうこと
を防止してICカードに記憶されたデータの信頼性を高
めることができる。
According to the second aspect of the present invention, an IC
To change the data processing mode for the IC card in accordance with the number of card insertions and removals, and to perform processing on the IC card based on the set processing mode when the insertion of the IC card is detected by the second card detection member. In addition, a plurality of mode changeover switches are not required, the configuration can be simplified and the operation can be simplified, and it is possible to prevent data from being stored in an incorrect processing mode in a storage unit of the IC card. The reliability of the data stored in the memory can be improved.

【0076】また、請求項3記載の発明によれば、電源
のオン・オフ時間間隔が予め設定された所定時間以下の
ときICカードに対するデータの処理モードを変更し、
電源のオン・オフ時間間隔が予め設定された所定時間以
上のときデータ処理モードを不変として設定された処理
モードに基づきカード挿入口に挿入されたICカードに
対する処理を行うため、複数のモード切替スイッチが不
要になり、構成の簡略化及び操作の簡素化を図ることが
でき、ICカードの記憶部に間違った処理モードでデー
タを記憶させてしまうことを防止してICカードに記憶
されたデータの信頼性を高めることができる。
According to the third aspect of the present invention, the data processing mode for the IC card is changed when the power on / off time interval is equal to or less than a predetermined time.
When the power on / off time interval is equal to or longer than a predetermined time, a plurality of mode changeover switches are used to perform processing on the IC card inserted into the card insertion slot based on the set processing mode with the data processing mode unchanged. Can be eliminated, the configuration can be simplified and the operation can be simplified, and the data stored in the IC card can be stored in the storage section of the IC card by preventing the data from being stored in the wrong processing mode. Reliability can be improved.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明になるICカード装置の一実施例の斜視
図である。
FIG. 1 is a perspective view of one embodiment of an IC card device according to the present invention.

【図2】ICカード装置の構成を示すブロック図であ
る。
FIG. 2 is a block diagram illustrating a configuration of an IC card device.

【図3】ICカードの構成を説明するためのブロック図
である。
FIG. 3 is a block diagram illustrating a configuration of an IC card.

【図4】カードR/W機構の構成を拡大して示す縦断面
図である。
FIG. 4 is an enlarged longitudinal sectional view showing a configuration of a card R / W mechanism.

【図5】制御回路が実行する処理のフローチャートであ
る。
FIG. 5 is a flowchart of a process executed by a control circuit.

【図6】カードR/W機構の変形例を説明するための縦
断面図である。
FIG. 6 is a longitudinal sectional view for explaining a modification of the card R / W mechanism.

【図7】制御回路が実行する処理の変形例1を説明する
ためのフローチャートである。
FIG. 7 is a flowchart illustrating a first modification of the process executed by the control circuit.

【図8】制御回路が実行する処理の変形例2を説明する
ためのフローチャートである。
FIG. 8 is a flowchart illustrating a second modification of the process executed by the control circuit.

【図9】制御回路が実行する処理の変形例3を説明する
ためのフローチャートである。
FIG. 9 is a flowchart illustrating a third modification of the process executed by the control circuit.

【図10】所定時間内に第1のカード検出センサから出
力されるパルスの波形図である。
FIG. 10 is a waveform diagram of a pulse output from a first card detection sensor within a predetermined time.

【図11】本発明の変形例4のブロックである。FIG. 11 is a block diagram of Modification 4 of the present invention.

【図12】電源スイッチがオフに操作されたときの処理
を説明するためのフローチャートである。
FIG. 12 is a flowchart illustrating a process when a power switch is turned off.

【図13】電源スイッチがオンに操作されたときの処理
を説明するためのフローチャートである。
FIG. 13 is a flowchart illustrating a process when the power switch is turned on.

【符号の説明】[Explanation of symbols]

1 ICカード装置 2 表示器 3 ICカード 4,5 カード挿入口 6 制御回路 9 EEPROM 10 表示駆動部 11 リセット制御部 12 電源制御部 13 通信制御部 14 クロック制御部 15 発振子 17 CPU 18 EEPROM 25 電源スイッチ 26 第1のカード検出センサ 27 第2のカード検出センサ 28 カードR/W機構 31 R/Wヘッド 32 ローラ 33 磁気センサ 35 電源監視装置 36 TRC DESCRIPTION OF SYMBOLS 1 IC card apparatus 2 Display 3 IC card 4, 5 Card insertion slot 6 Control circuit 9 EEPROM 10 Display drive unit 11 Reset control unit 12 Power control unit 13 Communication control unit 14 Clock control unit 15 Oscillator 17 CPU 18 EEPROM 25 Power supply Switch 26 First card detection sensor 27 Second card detection sensor 28 Card R / W mechanism 31 R / W head 32 Roller 33 Magnetic sensor 35 Power supply monitoring device 36 TRC

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 ICカードが挿入されるカード挿入口を
有し、該カード挿入口に挿入されたICカードに対して
データの読み取り、記憶を行うICカード装置におい
て、 前記カード挿入口の入口に設けられ前記ICカードが前
記カード挿入口の入口に挿入されたことを検出する第1
のカード検出部材と、 前記カード挿入口の内部に設けられ前記ICカードが前
記カード挿入口の内部に挿入されたことを検出する第2
のカード検出部材と、 前記第1のカード検出部材により前記ICカードの挿入
が検出されている間、前記ICカードに対するデータの
処理モードを変更するデータ処理モード変更手段と、 前記第1のカード検出部材及び前記第2のカード検出部
材により前記ICカードの挿入が検出されたときに前記
データ処理モード変更手段により設定された処理モード
に基づき前記ICカードに対する処理を行うデータ処理
手段と、 を備えてなることを特徴とするICカード装置。
1. An IC card device having a card insertion slot into which an IC card is inserted, and reading and storing data with respect to the IC card inserted into the card insertion slot. A first detecting means for detecting that the IC card is inserted into an entrance of the card insertion slot;
And a second card detection member provided inside the card insertion slot for detecting that the IC card has been inserted into the card insertion slot.
A card detection member, data processing mode changing means for changing a processing mode of data to the IC card while the insertion of the IC card is detected by the first card detection member, and the first card detection Data processing means for performing processing on the IC card based on the processing mode set by the data processing mode changing means when the insertion of the IC card is detected by the member and the second card detection member. An IC card device characterized by:
【請求項2】 ICカードが挿入されるカード挿入口を
有し、該カード挿入口に挿入されたICカードの記憶部
に記憶されたデータを読み取り、あるいは前記ICカー
ドの記憶部にデータを記憶させるICカード装置におい
て、 前記カード挿入口の入口に設けられ前記ICカードが前
記カード挿入口の入口に挿入されたことを検出する第1
のカード検出部材と、 前記カード挿入口の内部に設けられ前記ICカードが前
記カード挿入口の内部に挿入されたことを検出する第2
のカード検出部材と、 前記第1のカード検出部材により検出された前記ICカ
ードの出し入れ回数に応じて、前記ICカードに対する
データの処理モードを変更するデータ処理モード変更手
段と、 前記第2のカード検出部材により前記ICカードの挿入
が検出されたとき、前記データ処理モード変更手段によ
り設定された処理モードに基づき前記ICカードに対す
る処理を行うデータ処理手段と、 を備えてなることを特徴とするICカード装置。
2. A device having a card insertion slot into which an IC card is inserted, reading data stored in a storage section of the IC card inserted into the card insertion slot, or storing data in a storage section of the IC card. An IC card device provided at an entrance of the card insertion slot for detecting that the IC card is inserted into the entrance of the card insertion slot.
And a second card detection member provided inside the card insertion slot for detecting that the IC card has been inserted into the card insertion slot.
A card detection member, data processing mode changing means for changing a data processing mode for the IC card in accordance with the number of times the IC card is inserted and removed detected by the first card detection member, and the second card And a data processing means for performing processing on the IC card based on the processing mode set by the data processing mode changing means when the insertion of the IC card is detected by a detection member. Card device.
【請求項3】 ICカードが挿入されるカード挿入口を
有し、該カード挿入口に挿入されたICカードの記憶部
に記憶されたデータを読み取り、あるいは前記ICカー
ドの記憶部にデータを記憶させるICカード装置におい
て、 電源のオン・オフ時間間隔を測定するオン・オフ時間間
隔測定手段と、 該オン・オフ時間間隔測定手段により測定された電源の
オン・オフ時間間隔が予め設定された所定時間以下のと
き前記ICカードに対するデータの処理モードを変更す
るデータ処理モード変更手段と、 前記オン・オフ時間間隔測定手段により測定された電源
のオン・オフ時間間隔が予め設定された所定時間以上の
とき前記データ処理モードを不変として設定された処理
モードに基づき前記カード挿入口に挿入された前記IC
カードに対する処理を行うデータ書き込み手段と、 を備えてなることを特徴とするICカード装置。
3. A card insertion slot into which an IC card is inserted, and reads data stored in a storage section of the IC card inserted into the card insertion slot, or stores data in a storage section of the IC card. An on / off time interval measuring means for measuring a power on / off time interval; and a power on / off time interval measured by the on / off time interval measuring means, wherein the power on / off time interval is predetermined. Data processing mode changing means for changing a data processing mode for the IC card when the time is equal to or less than a predetermined time; and a power on / off time interval measured by the on / off time interval measuring means being longer than a predetermined time. When the IC inserted into the card insertion slot based on the processing mode set as the data processing mode is unchanged
An IC card device comprising: a data writing unit that performs processing on a card.
JP9172213A 1997-06-27 1997-06-27 IC card device Pending JPH1125230A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9172213A JPH1125230A (en) 1997-06-27 1997-06-27 IC card device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9172213A JPH1125230A (en) 1997-06-27 1997-06-27 IC card device

Publications (1)

Publication Number Publication Date
JPH1125230A true JPH1125230A (en) 1999-01-29

Family

ID=15937699

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9172213A Pending JPH1125230A (en) 1997-06-27 1997-06-27 IC card device

Country Status (1)

Country Link
JP (1) JPH1125230A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009064293A (en) * 2007-09-07 2009-03-26 Toshiba Corp Information processing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009064293A (en) * 2007-09-07 2009-03-26 Toshiba Corp Information processing device

Similar Documents

Publication Publication Date Title
CA2198299C (en) Card holder-type balance display
EP1798668B1 (en) Card processor
KR100985096B1 (en) Data storage
KR100245433B1 (en) Battery powered computer
EP0620555A2 (en) Electronic device having ferroelectric memory
EP0398545A1 (en) Method and apparatus for storing data in a non-volatile memory
KR20040029953A (en) Communication apparatus communicating with recording medium memory and recording medium drive apparatus
US20020023956A1 (en) Information transmitting system featuring transmission upon alignment of a memory and a writing/reading element
RU2137180C1 (en) Device and method for control of operations of monitor circuit of display data channel
JPH10105473A (en) Electronic equipment
KR0177490B1 (en) Record carrier, bead and monthly dispenser
JPH09230496A (en) External memory device
JP2004280308A (en) Information reading device, information writing device, program for information reading device, and program for information writing device
US20020005908A1 (en) Electronic apparatus with clock and clock information storage function
JPH1011545A (en) IC card device
JPH0126221B2 (en)
JP3140607B2 (en) Information reading device
JP3036926B2 (en) Card type timer
JP3983489B2 (en) Operating information collection device
KR100654985B1 (en) Record reproducing apparatus, record medium adaptor and record reproducing method
JP2730948B2 (en) Information recording / reproducing device
JPH11184984A (en) IC card device
JPH09300780A (en) Image forming apparatus and power consumption control method for image forming apparatus
KR0175998B1 (en) Hospital-television control apparatus
JP3053270B2 (en) Power supply backup method and device