JPH039034Y2 - - Google Patents

Info

Publication number
JPH039034Y2
JPH039034Y2 JP19984582U JP19984582U JPH039034Y2 JP H039034 Y2 JPH039034 Y2 JP H039034Y2 JP 19984582 U JP19984582 U JP 19984582U JP 19984582 U JP19984582 U JP 19984582U JP H039034 Y2 JPH039034 Y2 JP H039034Y2
Authority
JP
Japan
Prior art keywords
data
load
set time
storage means
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP19984582U
Other languages
Japanese (ja)
Other versions
JPS604994U (en
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 filed Critical
Priority to JP19984582U priority Critical patent/JPS604994U/en
Publication of JPS604994U publication Critical patent/JPS604994U/en
Application granted granted Critical
Publication of JPH039034Y2 publication Critical patent/JPH039034Y2/ja
Granted legal-status Critical Current

Links

Description

【考案の詳細な説明】 <技術分野> この考案は例えば学校、工場等で時報信号発生
装置或は各種の負荷を起動停止制御するプログラ
ムタイマに関し、特に時報信号の発生時刻の設定
及び負荷の起動停止制御等を行なう設定をカード
読取手段によつて入力することができるようにし
たプログラムタイマの改良に関するものである。
[Detailed description of the invention] <Technical field> This invention relates to a program timer that controls the start and stop of time signal generators or various loads in schools, factories, etc., and is particularly applicable to setting the generation time of the time signal and starting the load. The present invention relates to an improvement of a program timer in which settings for performing stop control, etc. can be input using card reading means.

<従来技術の説明> 例えば学校、工場、銀行等において始業、終業
を知らせる時報を行なうこと、及び例えば照明灯
空調機器の電源を投入切断すること等の目的でプ
ログラムタイマと称する装置が実用されている。
<Description of Prior Art> A device called a program timer has been put into practical use for the purpose of, for example, making a time signal to notify the start and end of work in schools, factories, banks, etc., and for turning on and off the power of lighting, air conditioning equipment, etc. There is.

このプログラムタイマは概略計時装置と設定時
刻データ記憶手段とによつて構成された設定時刻
に達する毎に例えばチヤイム等の負荷を動作させ
る。チヤイムの他に空調機器、照明灯、ポンプ、
防犯設備等の他に負荷を制御する場合は、これら
各負荷毎に設定時刻データ記憶手段が設けられ、
各設定時刻データ記憶手段に記憶した設定時刻デ
ータに応じて各負荷が制御される。
This program timer operates a load such as a chime every time a set time, which is constituted by a general timing device and a set time data storage means, is reached. In addition to the system, we also provide air conditioning equipment, lighting, pumps,
When controlling loads in addition to security equipment, etc., a set time data storage means is provided for each of these loads.
Each load is controlled according to the set time data stored in each set time data storage means.

各負荷別に設けられた設定時刻データ記憶手段
に時刻を設定する手段としては、従来はキイーボ
ードから入力するものが一般的であつた。然し乍
らキイーボードからの入力は設定数が多い場合は
時間が掛り、面倒な作業である。
Conventionally, the means for setting the time in the set time data storage means provided for each load has generally been input from a keyboard. However, inputting from a keyboard is a time-consuming and troublesome task when there are many settings.

このため最近の傾向としてカードに設定時刻に
対応する符号を記入し、この記号をカード読取手
段によつて読取らせることにより設定できるもの
が提案された。
For this reason, a recent trend has been to write a code corresponding to the set time on a card, and to make the setting possible by reading this code with a card reading means.

第1図及び第2図を用いて従来のカード入力式
のプログラムタイマを説明する。
A conventional card input type program timer will be explained using FIGS. 1 and 2.

第1図は従来のカード式プログラムタイマの概
略の構造を示す。図中101は中央処理装置、1
02はこの中央処理装置101を所定の順序で動
作させるプログラムを収納したROM、103は
中央処理装置101とROM102の協動によつ
て現在時刻と曜日を計時している計時手段、10
4は設定時刻データ記憶手段である。この記憶手
段104はRAMによつて構成することができ、
制御すべき負荷の数に対応した数の領域、例えば
A,B,C,D,E,Fが設けられる。
FIG. 1 shows the general structure of a conventional card-type program timer. In the figure, 101 is a central processing unit, 1
02 is a ROM that stores a program for operating the central processing unit 101 in a predetermined order; 103 is a clock means that measures the current time and day of the week through cooperation between the central processing unit 101 and the ROM 102;
4 is a set time data storage means. This storage means 104 can be constituted by RAM,
A number of areas, for example A, B, C, D, E, and F, are provided corresponding to the number of loads to be controlled.

105はカード読取手段を示す。このカード読
取手段105にカード106を差込むことにより
カード106に記入した時刻データが例えば光学
的に読取られ入力ポート107から中央処理装置
101を介して設定時刻データ記憶手段104に
取込まれる。この設定時刻データ記憶手段104
は中央処理装置101に内蔵したRAMとは別に
外部に設けたものとする。
105 indicates a card reading means. By inserting the card 106 into the card reading means 105, the time data written on the card 106 is read optically, for example, and is taken into the set time data storage means 104 from the input port 107 via the central processing unit 101. This set time data storage means 104
is provided externally in addition to the RAM built into the central processing unit 101.

108は出力回路である。この出力回路108
は中央処理装置101の検索によつて設定時刻記
憶手段104の各領域A〜Fに記憶した設定時刻
と、計時手段103によつて計時された現在時刻
及び曜日とが常時比較され、現在時刻と曜日が記
憶手段104に記憶した設定時刻と一致すると、
その記憶領域に対応した出力スイツチSA〜SFが
オン又はオフに制御され、出力端子109a〜1
09fに接続した各負荷(特に図示しない)を起
動及び停止制御する。
108 is an output circuit. This output circuit 108
The set time stored in each area A to F of the set time storage means 104 through the search by the central processing unit 101 is constantly compared with the current time and day of the week measured by the clock means 103, and the current time and day of the week are compared. When the day of the week matches the set time stored in the storage means 104,
Output switches SA to SF corresponding to the storage area are controlled to be turned on or off, and output terminals 109a to 109a to 1
Start and stop control of each load (not particularly shown) connected to 09f.

第2図にカード106の記入例を示す。カード
106には時刻記入欄201と、条件設定欄20
2とが設けられる。条件設定欄202には負荷指
定欄202aと、時報、タイマ選択欄202b
と、曜日指定欄202cと、吹鳴時間指定欄20
2dとが設けられる。
FIG. 2 shows an example of entries on the card 106. The card 106 has a time entry field 201 and a condition setting field 20.
2 are provided. The condition setting field 202 includes a load specification field 202a and a time signal/timer selection field 202b.
, day of the week specification field 202c, and blowing time specification field 20
2d is provided.

負荷指定欄202aには設定時刻データ記憶手
段104に設けた領域A〜Fに対応して記号A〜
Fが印刷され、負荷を指定するときその負荷に対
応する記号を例えばエンピツ等で黒く塗りつぶし
てマークを付すことにより負荷の指定が行なわれ
る。カード1枚につき一つの負荷を指定すること
ができる。つまり例えば、負荷指定記号Aによつ
て広告灯の点灯制御を行なうとき、記号Aを黒く
塗りつぶす。時報、タイマ選択欄202bでは負
荷が広告灯の場合はタイマ側の欄を黒く塗りつぶ
す。更に曜日指定欄では広告灯を点灯すべき曜日
の全てについて黒く塗りつぶす。そして時刻記入
欄201には点灯時刻と消灯時刻を黒く塗つて記
入する。つまり、時刻記入欄201の先頭の列は
時の10位の数値を表わし、2列目は時の1位の数
値を表わす。3列目は分の10位の値を表わし、4
列目は分の1位の値を表わす。よつて例えば12時
30分を記入するには第1列目の「1」と2列目の
「2」と3列目の「3」と4列目の「0」を黒く
塗りつぶすことにより時刻を記入することができ
る。広告灯の消灯時刻は次の欄に記入する。
The load designation column 202a has symbols A to F corresponding to areas A to F provided in the set time data storage means 104.
F is printed, and when specifying a load, the load is specified by marking the symbol corresponding to the load by filling it in black with, for example, a pencil. One load can be specified per card. That is, for example, when controlling the lighting of advertising lights using the load designation symbol A, the symbol A is painted black. In the time signal/timer selection column 202b, if the load is an advertising light, the column on the timer side is filled in black. Furthermore, in the day of the week designation field, all days of the week on which advertising lights should be turned on are filled in black. Then, in the time entry column 201, the lighting time and light-off time are written in black. That is, the first column of the time entry field 201 represents the 10th digit of the hour, and the second column represents the 1st digit of the hour. The third column represents the decimal value of the minute, 4
The column represents the value of the first minute. For example, 12 o'clock
To enter 30 minutes, fill in the time by blacking out "1" in the first column, "2" in the second column, "3" in the third column, and "0" in the fourth column. can. Enter the time when the advertising lights will be turned off in the next column.

<従来の欠点> 従来のこの種カード入力式プログラムタイマは
各負荷毎に記憶領域が指定されている。従つて先
に説明したように広告灯の点灯及び消灯制御のよ
うな場合にはその負荷に指定された記憶領域を点
灯と消灯だけの2点しか使わないこととなる。よ
つてこのような場合多くの記憶素子が無駄となつ
ている。
<Conventional Disadvantages> In this type of conventional card input type program timer, a storage area is specified for each load. Therefore, as explained above, in cases such as controlling the lighting and turning off of advertising lights, only two storage areas designated for the load are used for turning on and turning off the lights. Therefore, in such cases, many memory elements are wasted.

これに対し負荷の種類によつては1枚のカード
で書き切れない程時刻データの数が多い場合があ
る。このような場合、従来は時刻データ列を複数
に分断し、その複数に分断した時刻データ列を複
数の記憶領域に分散して収納するようにしてい
る。
On the other hand, depending on the type of load, the amount of time data may be so large that it cannot be written on one card. In such a case, conventionally, the time data string is divided into a plurality of pieces, and the divided time data strings are distributed and stored in a plurality of storage areas.

このように複数の記憶領域、例えばBとCに分
散した時刻データ列によつて一つの負荷を制御す
る場合には領域BとCに対応する出力スイツチ
SBとSCを並列接続し、その並列接続した出力ス
イツチSBとSCの接点出力により一つの負荷を制
御するようにしている。従つて多くの設定時刻デ
ータを必要とする負荷が多い場合には、記憶領域
が不足する欠点がある。
In this way, when one load is controlled by time data strings distributed in multiple storage areas, for example B and C, output switches corresponding to areas B and C are
SB and SC are connected in parallel, and one load is controlled by the contact outputs of the parallel-connected output switches SB and SC. Therefore, when there is a large load that requires a large amount of set time data, there is a drawback that the storage area is insufficient.

このように従来のカード入力式プログラムタイ
マによれば、空白のある記憶領域が存在しても、
その記憶領域を他の負荷の時刻データ収納用とし
て利用することができないため、記憶手段104
を有効に利用できない欠点がある。
In this way, according to the conventional card input type program timer, even if there is a blank storage area,
Since the storage area cannot be used for storing time data of other loads, the storage means 104
There is a drawback that it cannot be used effectively.

この欠点を補う記憶の方式として負荷毎に記憶
領域を分割しない方式が考えられる。つまりこの
記憶方式はカードを挿入する毎に中央処理装置1
01が記憶手段104の空きアドレスを検出し、
その空きアドレスに新しい時刻データを記憶させ
る方式である。この記憶方式を以下では時刻デー
タ収納領域可変記憶方式と呼ぶこととする。
As a storage method that compensates for this drawback, a method that does not divide the storage area for each load can be considered. In other words, with this storage method, each time a card is inserted, the central processing unit 1
01 detects a free address in the storage means 104,
This method stores new time data in the vacant address. This storage method will hereinafter be referred to as a time data storage area variable storage method.

この時刻データ収納領域可変記憶方式によれ
ば、負荷別に記憶領域を指定しないから短かいプ
ログラムと長いプログラムが混在した場合、総合
して記憶手段104の容量内におさまればよい。
このため設定時刻データ数が大きいデータ列でも
連続して記憶することができる。つまり同一負荷
に関する設定時刻データが1枚のカードに収容し
きれない場合、又は曜日により設定時刻が異る場
合に異なる曜日毎にカードを作成する必要のある
場合複数のカードに分散し、その複数のカードを
順にカード読取手段105に通すことにより、そ
の入力順にデータを記憶することができる。
According to this time data storage area variable storage method, storage areas are not specified for each load, so even if short programs and long programs coexist, the total can be accommodated within the capacity of the storage means 104.
Therefore, even data strings with a large number of set time data can be stored continuously. In other words, if the set time data related to the same load cannot be stored on one card, or if the set time differs depending on the day of the week and it is necessary to create a card for each day of the week, it is distributed to multiple cards. By sequentially passing the cards through the card reading means 105, data can be stored in the order in which they were input.

ところでこの時刻データ収納領域可変記憶方式
を採る場合には次のような不都合が生じる。つま
り或る負荷の時刻データ列が不要となつた場合、
その負荷の時刻データ列を消去すると空きアドレ
ス領域が発生する。消去した時刻データ列が他の
負荷の時刻データ列の間にある場合は、データ列
とデータ列の間に空きアドレス領域が発生する。
However, when this time data storage area variable storage method is adopted, the following inconvenience occurs. In other words, if the time data string for a certain load is no longer needed,
When the time data string of the load is deleted, a free address area is generated. If the erased time data string is between the time data strings of other loads, an empty address area is generated between the data strings.

この空きアドレス領域をそのままにしておく
と、時刻データを検索する動作において空きアド
レス領域もデータの有る無しを検索するため無駄
な時間が発生する。また新しい時刻データ列を書
込む場合、空きアドレス領域に丁度収納できるデ
ータ列であれば問題ないが、新たに書込むデータ
数と空きアドレス数とが一致しない場合が一般的
である。
If this free address area is left as it is, in the operation of searching for time data, the free address area is also searched for the presence or absence of data, resulting in wasted time. Furthermore, when writing a new time data string, there is no problem if the data string can just be accommodated in the empty address area, but generally the number of newly written data and the number of empty addresses do not match.

このため空きアドレス領域が発生した場合、そ
の空きアドレス領域に続く次のアドレス領域に記
憶されたデータ列を逐次前に移し変える動作を必
要とする。
Therefore, when an empty address area occurs, it is necessary to sequentially move the data string stored in the next address area following the empty address area forward.

データの記憶領域を移し変える場合、空きアド
レス領域が一個所であれば後続のデータは空きア
ドレスの数だけ前に移せばよい。然し乍ら時刻デ
ータ収納領域可変記憶方式の特徴として同一負荷
の時刻データを分散して追加することができるこ
とから、空きアドレス領域が分散して複数個所に
発生することが現実に存在する。
When moving data storage areas, if there is only one free address area, subsequent data can be moved forward by the number of free addresses. However, as a feature of the time data storage area variable storage system, time data of the same load can be added in a distributed manner, so in reality, empty address areas may be distributed and generated in a plurality of locations.

この状態を第3図を使つて説明する。つまり第
3図に示すように負荷Aのデータ列がA1,A2
A3,A4のように分散して存在し、このデータ列
A1〜A4を消去すると4個所に空き領域が発生す
る。消去しないデータ列B2,C1,D1はデータ列
A1の空きアドレス領域分だけ前にずらせばよい。
然し乍らデータ列C2はA1とA2の空きアドレス領
域分だけ前にずらさなければならない。またデー
タ列D2はA1,A2,A3の空きアドレス領域分だけ
前にずらす。更にデータ列B2とE1はA1,A2
A3,A4の空きアドレス領域分だけ前にずらす必
要がある。
This state will be explained using FIG. In other words, as shown in Figure 3, the data string of load A is A 1 , A 2 ,
This data string exists distributed like A 3 and A 4 .
When A 1 to A 4 are deleted, four free areas will be created. Data strings B 2 , C 1 , and D 1 that are not deleted are data strings.
Just move it forward by the free address area of A1 .
However, the data string C2 must be shifted forward by the amount of free address areas A1 and A2 . Furthermore, the data string D 2 is shifted forward by the vacant address areas of A 1 , A 2 , and A 3 . Furthermore, the data strings B 2 and E 1 are A 1 , A 2 ,
It is necessary to shift it forward by the free address area of A 3 and A 4 .

このようなとき一般には第1回目としてデータ
列B1,C1,D1,C2,D2,B2,E1を全てA1の空き
アドレス領域分だけ前にずらし、次にデータ列
C2,D2,B2,E1をA2の空きアドレス領域分だけ
前にずらし、データ列D2,B2,E1をA3の空きア
ドレス領域分だけ前にずらし、データ列B2,E1
をA4の空きアドレス領域分だけ前にずらす動作
が行われる。
In such a case, the first step is to shift all the data strings B 1 , C 1 , D 1 , C 2 , D 2 , B 2 , E 1 forward by the free address area of A 1, and then move the data strings forward by the free address area of A 1 .
Shift C 2 , D 2 , B 2 , E 1 forward by the free address area of A 2 , shift the data string D 2 , B 2 , E 1 forward by the free address area of A 3 , and shift the data string B 2 , E1
is shifted forward by the free address area of A4 .

このようにデータ列を移し変える動作は、消去
によつて発生する空きアドレス領域の数に対応し
た回数分だけ行わなければならない。この処理の
ために時間が掛り、消去操作を行つた後に新しい
データを入力するにはしばらく待たなければなら
ない。本出願人等の実験では消去操作後、再書込
みができるまでに最大約10〜15秒程度の待ち時間
が生じた。このため実用化した場合、カード式に
よつてせつかくデータを入力する速度を速くした
にもかかわらず、データを書替る場合に不要とな
つたデータを消去してから新しいデータを書込ん
だカードを差し込むことができるまでに待ち時間
が発生し、この点で利用者に使い勝手の悪い装置
を与えることとなる。
This operation of shifting data strings must be performed a number of times corresponding to the number of empty address areas generated by erasure. This process is time consuming and requires a short wait before new data can be entered after the erase operation. In experiments conducted by the present applicant, there was a maximum waiting time of about 10 to 15 seconds after the erasing operation until rewriting could be performed. For this reason, when put into practical use, even though the speed of inputting urgent data is increased by the card type, when data is to be rewritten, unnecessary data is erased and new data is written to the card. There is a waiting time before the device can be inserted, and in this respect the user is presented with an inconvenient device.

<考案の目的> この考案は時刻データ収納領域可変記憶方式の
欠点を一掃し、使い勝手のよいこの種プログラム
タイマを提供しようとするものである。
<Purpose of the invention> This invention aims to eliminate the drawbacks of the time data storage area variable storage method and provide this type of program timer that is easy to use.

<考案の概要> この考案では空きアドレス数を計数する手段を
設け、この空きアドレス数の計数手段により移動
させようとする前に存在する空きアドレス数を計
数させ、その計数値に従つてデータ列を移動させ
るように構成したものである。
<Summary of the invention> In this invention, a means for counting the number of free addresses is provided, and the number of free addresses existing before being moved is counted by this means for counting the number of free addresses, and a data string is created according to the counted value. It is configured to move.

従つてこの考案によれば移動させようとするデ
ータ列の前に複数の空きアドレス領域が存在して
も、その移動させようとするデータ列はただの1
回だけの移動により、所定のアドレス位置に移動
させることができる。この結果その処理時間は大
幅に短縮され最大約200ミリ秒程度にすることが
できた。
Therefore, according to this invention, even if there are multiple free address areas in front of the data string to be moved, the data string to be moved is only one address area.
It can be moved to a predetermined address position by moving only once. As a result, the processing time was significantly reduced to about 200 milliseconds at most.

<考案の実施例> 第4図にこの考案の一実施例を、第5図にこの
考案のプログラムタイマに用いるカードを示す。
第4図及び第5図において第1図及び第2図と対
応する部分には同一符号を付して示す。
<Embodiment of the invention> Fig. 4 shows an embodiment of this invention, and Fig. 5 shows a card used in the program timer of this invention.
In FIGS. 4 and 5, parts corresponding to those in FIGS. 1 and 2 are designated by the same reference numerals.

この考案においては設定時刻データを記憶する
記憶手段104は単なるRAMを用いるものであ
り、負荷別に記憶領域を規定するものではない。
従つて設定時刻データを記入したカードを読取装
置105に読取らせることにより、その読込み順
序に従つて記憶手段104に各負荷の設定時刻デ
ータが記憶される。各負荷毎に記憶領域を設けな
いため、各時刻データには時刻データの他に負荷
を表わすデータと、曜日を表わすデータを付加す
る。その一例を第6図に示す。第6図において、
B0〜B7はビツト番号である。つまりこの例では
8ビツトを1ワードとして記憶手段104の一つ
のアドレスに記憶するようにし、四つのアドレス
ADR1〜ADR4を使つて一つの設定時刻データを
記憶するようにした場合を示す。このように各設
定時刻データに負荷を表わすデータと、曜日を表
わすデータ等を付加することにより、設定時刻デ
ータが記憶手段104内のどのアドレスに記憶さ
れていても、負荷別に検索して取出すことができ
る。この結果、同一負荷に関してカードを何枚で
も入力することができる。また一度入力した負荷
に関して追加データを記憶手段104に書込むこ
とができる。
In this invention, the storage means 104 for storing set time data uses a mere RAM, and storage areas are not defined for each load.
Therefore, by causing the reading device 105 to read the card on which the set time data is written, the set time data for each load is stored in the storage means 104 in accordance with the reading order. Since a storage area is not provided for each load, data representing the load and data representing the day of the week are added to each time data in addition to the time data. An example is shown in FIG. In Figure 6,
B0 to B7 are bit numbers. In other words, in this example, 8 bits are stored as one word in one address of the storage means 104, and four addresses are stored.
A case is shown in which one set time data is stored using ADR 1 to ADR 4 . By adding data representing the load, data representing the day of the week, etc. to each set time data in this way, it is possible to search and retrieve the set time data by load, regardless of which address in the storage means 104 the set time data is stored in. I can do it. As a result, any number of cards can be entered for the same load. Further, additional data regarding the load once input can be written into the storage means 104.

このように記憶手段104に記憶した設定時刻
データは、常時中央処理装置101により検索さ
れ、刻時手段103に計時されている現在時刻と
曜日を比較し、一致が検出されると負荷データと
入切データに従つてスイツチSA,SB……SFの
中の対応するスイツチを入切制御する。
The set time data stored in the storage means 104 is constantly searched by the central processing unit 101, and the current time measured by the clock means 103 is compared with the day of the week, and when a match is detected, the set time data is inputted with the load data. According to the off data, the corresponding switches in switches SA, SB...SF are controlled on/off.

一方この考案においては不要になつた設定時刻
データを消去することと、消去によつて生じた空
きアドレスに後続のデータを移し替える手段40
1を設ける。この移し替え手段401は、消去動
作とデータの移し替えを行うプログラムを収納し
たROM401aと、消去によつて生じたアドレ
ス数を計数する計数手段401bと該当検索アド
レスを収納する収納手坪401cとによつて構成
することができる。
On the other hand, in this invention, there is a means 40 for erasing set time data that is no longer needed, and for transferring subsequent data to a vacant address created by the erasure.
1 will be provided. This transfer means 401 includes a ROM 401a that stores a program for performing an erase operation and data transfer, a counting means 401b that counts the number of addresses generated by the erase, and a storage handle 401c that stores the corresponding search address. It can be configured accordingly.

ROM401aには第7図に示すフローチヤー
トに従つて中央処理装置101を動作させるプロ
グラムが収納される。消去指令は例えば第5図に
示すカード106に示す消去指令欄501にマー
クを付すことにより与えられる。消去指令欄50
1はこの例では全消去欄501aと、負荷別消去
欄501bとを設けた場合を示す。前消去欄50
1aにマークを付した場合は記憶手段104の全
てのデータを全部消去する。これに対し負荷別消
去欄501bにマークを付した場合は、これに続
く負荷指定欄202aで指定した負荷のデータを
消去する動作が実行され、更に消去によつて生じ
た空アドレスに後続のデータを移し替える。
The ROM 401a stores a program for operating the central processing unit 101 according to the flowchart shown in FIG. The erasure command is given, for example, by placing a mark in the erasure command column 501 shown on the card 106 shown in FIG. Erase command column 50
1 indicates a case where an all deletion column 501a and a load-specific deletion column 501b are provided in this example. Previous erase column 50
If 1a is marked, all data in the storage means 104 is completely erased. On the other hand, if a mark is placed in the load-specific deletion field 501b, the operation of deleting the data of the load specified in the subsequent load specification field 202a is executed, and the subsequent data is added to the empty address created by the deletion. Transfer.

消去及びデータの移し替えは例えば第7図に示
すフローチヤートのように実行することができ
る。
Erasure and data transfer can be executed, for example, as shown in the flowchart shown in FIG.

負荷別の消去指定が入力されると、中央処理
装置101は消去すべき負荷データを取込む。
この負荷データは中央処理装置101内のレジ
スタ又はRAM等にストアされる。
When the deletion designation for each load is input, the central processing unit 101 takes in the load data to be deleted.
This load data is stored in a register or RAM in the central processing unit 101.

中央処理装置101は記憶手段104の先頭
アドレスを該当検索アドレス記憶手段401c
から取り出し検索を始める。ただし記憶手段1
04の先頭アドレスはあらかじめこの処理の直
前に該当検索アドレス記憶手段401c内に格
納しておく。
The central processing unit 101 stores the start address of the storage means 104 as the corresponding search address storage means 401c.
Take it out and start searching. However, storage means 1
The start address of 04 is stored in advance in the corresponding search address storage means 401c immediately before this processing.

該当検索アドレスのデータが消去すべき負荷
のデータと一致しているかを判定する。判定の
結果不一致であればステツプに飛ぶ。
It is determined whether the data of the corresponding search address matches the data of the load to be erased. If there is no match as a result of the judgment, the process jumps to step.

ステツプにおいて消去すべき負荷と一致し
た場合は、その先頭アドレスのデータを消去す
ると共に計数手段401bの計数値を+1とす
る。
If the load matches the load to be erased in the step, the data at the start address is erased and the count value of the counting means 401b is increased by +1.

消去しないデータであつた場合には、そのデ
ータを計数手段401bの計数値分だけ前アド
レスに移動させる。
If the data is not to be erased, the data is moved to the previous address by the count value of the counting means 401b.

該当検索アドレス記憶手段401c内のアド
レスのデータを+1とする。
The address data in the corresponding search address storage means 401c is set to +1.

記憶手段104内の時刻データをすべて検索
し終つたかを判定し、終了していない場合には
ステツプに戻る。
It is determined whether all the time data in the storage means 104 have been searched, and if the search has not been completed, the process returns to step.

記憶手段104内にある総てのデータの検索を
終了した場合は書き替え動作が終了する。
When all the data in the storage means 104 has been searched, the rewriting operation ends.

以上のステツプ,,によつて構成される
ルーチンと、,,によつて構成されるルー
チンとを繰返すことにより記憶手段104に記憶
された或る特定した負荷の設定時刻データを消去
することができ、また消去と共に空きアドレスに
後続のデータが書込まれる。従つてデータとデー
タの間に空きアドレスが存在する状態が発生する
ことがなく、データを記憶した領域の後に大きな
空白領域を得ることができる。
By repeating the routine constituted by the above steps and the routine constituted by , it is possible to erase the set time data of a certain specified load stored in the storage means 104. , At the same time as erasing, subsequent data is written to a vacant address. Therefore, a situation in which empty addresses exist between data does not occur, and a large blank area can be obtained after the area where data is stored.

<考案の効果> 上記したようにこの考案によれば記憶手段10
4を負荷別に領域を設定しないから、設定数が少
ない負荷と設定数が多い負荷が混在した場合に、
全体で記憶手段104の記憶容量内におさまれば
よいため、特に設定数が多い負荷の設定時刻デー
タを支障なく記憶することができる。また一度記
憶したデータに追加を行うことも容易に行うこと
ができる。
<Effect of the invention> As described above, according to this invention, the storage means 10
4. Since areas are not set for each load, when loads with a small number of settings and loads with a large number of settings coexist,
Since the entire amount only needs to be within the storage capacity of the storage means 104, it is possible to store the set time data of a load having a particularly large number of settings without any problem. Additionally, additions can be easily made to data once stored.

更に不要のデータを消去した場合、消去によつ
て生じた空きアドレスを計数手段401bによつ
て計数し、この計数値に従つて次のアドレスに存
在するデータを前のアドレスに移動させるから、
空きアドレスが点在する場合でも全てのデータは
ただ一度だけ移動させるだけで前のデータの末尾
につめることができる。よつて短時間にデータの
消去と前アドレスへの移動を実行できる。この結
果不要データを消去した後に新しいデータを入力
する場合待ち時間を感じさせないから、利用者は
消去を行うためのカードを読取装置105に通し
た後、すぐに新しいデータを書込んだカードを読
取装置105に通すことができる。従つて使い勝
手のよいプログラムタイマを提供できる。
Furthermore, when unnecessary data is erased, the counting means 401b counts the empty address created by the erasure, and the data existing at the next address is moved to the previous address according to this count value.
Even if empty addresses are scattered, all data can be moved to the end of the previous data by just moving it once. Therefore, data can be erased and moved to the previous address in a short time. As a result, when inputting new data after erasing unnecessary data, the user does not feel any waiting time, so after swiping the card for erasing through the reader 105, the user can immediately read the card on which new data has been written. It can be passed through device 105. Therefore, an easy-to-use program timer can be provided.

尚上述ではデータを消去し、後続のデータを空
きアドレスに移し替える書き替え手段401を
ROM401aと計数手段401bによつて構成
した例を説明したが、ROM401aは全体の制
御順序を記憶したROM102の一部を使うこと
ができる。また計数手段401bは中央処理装置
101内に存在するレジスタ或はRAMを用いて
構成することもできる。
In addition, in the above description, the rewriting means 401 that erases data and transfers subsequent data to a free address is used.
Although an example has been described in which the ROM 401a and the counting means 401b are used, a part of the ROM 102 that stores the entire control sequence can be used as the ROM 401a. Further, the counting means 401b can also be configured using a register or RAM existing in the central processing unit 101.

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

第1図は従来のプログラムタイマを説明するた
めのブロツク図、第2図はこのプログラムタイマ
を用いるカードを説明するための正面図、第3図
は可変記録方式で設定時刻データを記憶手段に記
憶した場合の不都合を説明するための記憶領域の
状態を示す図、第4図はこの考案の一実施例を示
すブロツク図、第5図はこの考案によるプログラ
ムタイマに用いるカードを説明するための正面
図、第6図はこの考案のプログラムタイマの設定
時刻データの記憶状態を説明するための図、第7
図はこの考案の要部の動作を説明するためのフロ
ーチヤートである。 101:中央処理装置、102:ROM、10
3:計時手段、104:設定時刻記憶手段、10
5:カード読取手段、108:出力回路、SA〜
SF:出力スイツチ、401:データ消去及びデ
ータを移動させる手段、401a:データ消去及
びデータを移動させる動作を行うプログラムを収
納したROM、401b:空きアドレス数を計数
する計数手段。
Figure 1 is a block diagram for explaining a conventional program timer, Figure 2 is a front view for explaining a card that uses this program timer, and Figure 3 is for storing set time data in a storage means using a variable recording method. Figure 4 is a block diagram showing an embodiment of this invention, and Figure 5 is a front view of a card used in a program timer according to this invention. Figures 6 and 7 are diagrams for explaining the storage state of the set time data of the program timer of this invention.
The figure is a flowchart for explaining the operation of the main parts of this invention. 101: Central processing unit, 102: ROM, 10
3: Time measurement means, 104: Set time storage means, 10
5: Card reading means, 108: Output circuit, SA~
SF: output switch, 401: means for erasing data and moving data, 401a: ROM storing a program for performing operations for erasing data and moving data, 401b: counting means for counting the number of free addresses.

Claims (1)

【実用新案登録請求の範囲】 A 負荷を制御する時刻及び曜日をを記憶する設
定時刻データ記憶手段と、 B 刻時信号により現在時刻と曜日を計時する計
時手段と、 C この計時手段により計時される現在時刻及び
曜日と上記設定時刻データ記憶手段に記憶した
設定時刻及び曜日との一致を検出する検出手段
と、 D この検出手段の一致出力により負荷を制御す
る信号を出力する出力手段と、 E 上記設定時刻データ記憶手段に負荷の種類別
に設定時刻、曜日に関するデータ及び上記設定
時刻データ記憶手段に記憶されている全てのデ
ータ又は指定した負荷に関するデータを消去す
るか否かを入力するカード読取手段と、 F このカード読取手段により上記設定時刻デー
タ記憶手段に記憶されたデータを消去するマー
クを読取ることにより記憶された全てのデータ
又は指定された負荷に関するデータを消去し、
消去によつて生じた空アドレス数を計数する計
数手段と G この計数手段で計数された計数値に従つて空
アドレスに続く後方のデータを順次空アドレス
に移し替える手段と、 を具備して成るプログラムタイマ。
[Scope of Claim for Utility Model Registration] A. Setting time data storage means for storing the time and day of the week at which the load is to be controlled; B. Time-measuring means for measuring the current time and day of the week using a clock signal; C. (D) a detection means for detecting a match between the current time and day of the week stored in the set time data storage means and the set time and day of the week stored in the set time data storage means; Card reading means for inputting into the set time data storage means data regarding the set time and day of the week for each type of load and whether all data stored in the set time data storage means or data regarding a designated load is to be deleted. F. By reading a mark for erasing data stored in the set time data storage means using this card reading means, all stored data or data regarding the designated load is erased;
A counting means for counting the number of empty addresses generated by erasure; and a means for sequentially transferring data following the empty address to the empty address according to the count counted by the counting means. program timer.
JP19984582U 1982-12-29 1982-12-29 program timer Granted JPS604994U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19984582U JPS604994U (en) 1982-12-29 1982-12-29 program timer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19984582U JPS604994U (en) 1982-12-29 1982-12-29 program timer

Publications (2)

Publication Number Publication Date
JPS604994U JPS604994U (en) 1985-01-14
JPH039034Y2 true JPH039034Y2 (en) 1991-03-06

Family

ID=30425371

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19984582U Granted JPS604994U (en) 1982-12-29 1982-12-29 program timer

Country Status (1)

Country Link
JP (1) JPS604994U (en)

Also Published As

Publication number Publication date
JPS604994U (en) 1985-01-14

Similar Documents

Publication Publication Date Title
US4435769A (en) Portable type automobile repair estimate issuing device
US4542477A (en) Information retrieval device
US4078465A (en) Programmable memory system for electronic musical instrument
GB1153025A (en) Electronic Calculator
GB2108741A (en) Document data storage in word processor
CA2017298C (en) Electronic odometer
JPH039034Y2 (en)
JP2661131B2 (en) Information storage and reading method and apparatus
JPH0330877Y2 (en)
JPH039033Y2 (en)
JPH0311755Y2 (en)
JPH0311754Y2 (en)
JPS6231919Y2 (en)
JP2002312253A (en) Portable information terminal device
JP2576088B2 (en) Electronic equipment with data storage device
US3763475A (en) Stored program computer with plural shift register storage
EP0049112B1 (en) Method and apparatus for controlling writing and reading of data in cassette memories
JP2538907B2 (en) IC card
JPH0532863Y2 (en)
JPS60135983A (en) Electronic learning apparatus
JPS57101983A (en) Information retrieval device
JPH0480414B2 (en)
JPS63262782A (en) Data storing system
EP0353097A2 (en) A text processing system
JPH0629774B2 (en) Item information registration method in label printer