JPS6115449B2 - - Google Patents

Info

Publication number
JPS6115449B2
JPS6115449B2 JP53123440A JP12344078A JPS6115449B2 JP S6115449 B2 JPS6115449 B2 JP S6115449B2 JP 53123440 A JP53123440 A JP 53123440A JP 12344078 A JP12344078 A JP 12344078A JP S6115449 B2 JPS6115449 B2 JP S6115449B2
Authority
JP
Japan
Prior art keywords
register
digit
print
printing
date
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
JP53123440A
Other languages
Japanese (ja)
Other versions
JPS5552182A (en
Inventor
Takeshi Yasuda
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP12344078A priority Critical patent/JPS5552182A/en
Publication of JPS5552182A publication Critical patent/JPS5552182A/en
Publication of JPS6115449B2 publication Critical patent/JPS6115449B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】[Detailed description of the invention]

本発明はカレンダの特に基準曜日列の日付印字
を効果的に行なうカレンダ印字機能を有する小型
電子機器に関する。 カレンダは各家庭、会社等の諸々の場所や状況
において各人が日常頻繁に必要としたりあるいは
利用するものであるが、そのカレンダは第三者に
よつて作られており1年間の一般大衆共通の特定
日(祝祭日、行事、故事等)が既にその中に固定
した情報として意味付けられているのである。ま
た、カレンダは一般には多くの人人が共通に利用
できる状態に置かれているか、所持可能な手帳等
に添えられている。ところが、必要とするときに
カレンダが手元にない場合、会社、商店若しくは
個人の休日、行事等のスケジユールをカレンダに
記入したい場合あるいは他国のカレンダを利用し
たい場合等に於て意外に入手が困難であつたり、
また既存のカレンダ中に記入しにくかつたりする
もので、各人がカレンダを任意に自分の希望にあ
つたように使用するには好ましいものではなかつ
た。 ところで、近年小型印字装置を有する携帯ある
いは移動が容易な簡易型の小型電子機器例えば小
型印字装置付き小型電子式計算機、電子式金銭登
録機が普及し、会社、商店、個人等の幅広いユー
ザが使用するようになつてきており、身近に上記
小型電子機器が存在するようになつてきた。これ
によれば、小型印字装置を有する上記小型電子機
器は計算機能のみならずデータに応じて数字、記
号等の印字ができ、記録に留めることができるの
で便利なものとなつている。そして、上記小型印
字装置は1行の印字終了後に記録紙をフイードし
て次の行の印字が可能なように制御されるもの
で、所謂行単位にデータを印字する構成になつて
いる。また、例えば赤と黒の印字用リボンを設け
てこのリボンの交換により2色印字が可能となる
構造も有しているが、この2色印字は記録紙幅方
向にリボンが配列されているため、1行単位でし
か色を変えることができない。従つて印字データ
を桁毎に異なる色で印字することはできないので
ある。 一方、1か月のカレンダは一般に基準曜日列を
例えば日曜日とした場合、この日曜日に該当する
日付が最左端の縦列に並ぶようなフオーマツトで
配列され、その日曜日の日付は赤色で表わされ、
他の日付とは一目で区別できるようになつてい
る。従つて、このようなフオーマツトのカレンダ
を上記電子機器の小型印字装置で印字するように
すると、最左端の縦列の日曜日の日付のみを赤印
字に付することはできず、結局カレンダの各日付
は総て黒印字か赤印字の何れかにせざるを得な
い。このため日曜日の基準曜日列の日付を他の日
付と区別して意味付けることができず使用者には
不便なものとなつてしまう。 他方、カレンダも上記したフオーマツトに限ら
ず、例えば独国等で使用されているように基準曜
日列としての日曜日の日付を順次横一列に配列す
るフオーマツトとしたものがある。これであれば
日曜日列が同一行内になるため、上記小型印字装
置を用いた場合でも行単位毎のリボン交換による
色別印字が可能となるのである。 本発明は上記事情に鑑みて成されたもので、従
来の小型印字装置を有する電子機器を用いて、カ
レンダを記録紙に印字する際、特に基準曜日列の
日付を意味付けて日付し易い配列でカレンダ作成
が可能なカレンダ印字機能を有する小型電子機器
を提供するものである。 以下図面を参照しながら本発明の一実施例を説
明する。第1図は小型印字装置を有する小型電子
式計算機を示すもので、符号10はキー入力部で
あり、ここには置数キー101および四則演算等
のためのフアンクシヨンキー102が配設されて
いる。またこのキー入力部10には特にカレンダ
情報を得るために、年月データを置数キー操作と
併用して入力せしめる
The present invention relates to a small electronic device having a calendar printing function that effectively prints dates on a calendar, particularly in a reference day column. Calendars are something that people frequently need or use on a daily basis in various places and situations such as homes and companies, but the calendars are created by a third party and are common to the general public for one year. Specific dates (holidays, events, stories, etc.) have already been given meaning as fixed information. In addition, calendars are generally placed in a state where they can be used commonly by many people, or attached to a notebook or the like that can be carried. However, if you don't have a calendar at hand when you need it, if you want to write schedules for company, store, or personal holidays, events, etc. on a calendar, or if you want to use a calendar from another country, it can be surprisingly difficult to obtain one. Hot,
Furthermore, it is difficult to write information on existing calendars, and it is not desirable for each person to use the calendar in a way that suits their wishes. Incidentally, in recent years, portable or easily movable small electronic devices with small printing devices, such as small electronic calculators with small printing devices and electronic cash registers, have become popular, and are used by a wide range of users such as companies, shops, and individuals. The above-mentioned small electronic devices have become commonplace. According to this, the above-mentioned small-sized electronic device having a small-sized printing device is convenient because it can not only perform calculation functions but also print numbers, symbols, etc. according to data and keep records. The compact printing device is controlled so that after printing one line is finished, the recording paper is fed so that the next line can be printed, and data is printed line by line. It also has a structure in which, for example, red and black printing ribbons are provided and two-color printing is possible by replacing these ribbons, but this two-color printing is possible because the ribbons are arranged in the width direction of the recording paper. You can only change the color for one line. Therefore, it is not possible to print print data in different colors for each digit. On the other hand, a one-month calendar is generally arranged in such a format that, when the standard day of the week column is Sunday, the dates corresponding to this Sunday are lined up in the leftmost vertical column, and the dates of that Sunday are displayed in red.
This allows you to distinguish it from other dates at a glance. Therefore, if a calendar in this format is printed using the small printing device of the electronic device mentioned above, it will not be possible to print only the Sunday date in the leftmost vertical column in red, and in the end each date on the calendar will be printed in red. Everything must be printed in either black or red. For this reason, it is not possible to distinguish the date in the standard day of the week column of Sunday from other dates and give it meaning, which is inconvenient for the user. On the other hand, calendars are not limited to the above-mentioned format; for example, as used in Germany, some calendars have a format in which Sunday dates are sequentially arranged in a horizontal line as a standard day of the week column. If this is done, the Sunday column will be in the same row, so even when using the above-mentioned small printing device, it will be possible to print by color by replacing the ribbon for each row. The present invention has been made in view of the above-mentioned circumstances, and when printing a calendar on recording paper using an electronic device having a conventional small printing device, it is possible to create an arrangement in which the dates in the standard day of the week column are particularly meaningful and easy to date. The purpose of the present invention is to provide a small electronic device having a calendar printing function capable of creating a calendar. An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 shows a small electronic calculator with a small printing device, and numeral 10 is a key input section, in which a number key 101 and a function key 102 for performing arithmetic operations, etc. are arranged. There is. In addition, the key input section 10 is configured to input year and month data in combination with numeric key operations, especially in order to obtain calendar information.

【式】キー103お よびカレンダ印字を実行させる[Formula] Key 103 and print the calendar.

【式】キー 104が配設されている。上記キー入力部10か
らの入力情報は詳細は後述するCPU(中央処理
部)11に入力されて、カレンダ情報算出演算及
びその他各種演算が行われ、そこから出力される
演算情報及び印字命令は印字部12に与えられ
る。印字部12は小型印字装置を構成する図示せ
ぬモータで回転駆動する印字ドラム121、この
印字ドラム121に対向する印字位置に設けられ
たハンマ122、印字ドラム121の回転軸に取
り付けられ後述するドラム回転角位置を検出する
ドラム回転位置検出器123、印字ドラム121
とハンマ122との間に挿入される記録紙124
及び上下に例えば赤と黒の2色に分割された印字
リボン125、この小型印字装置に対する印字デ
ータ、各種印字制御信号を供給するプリントコン
トローラ126を有している。上記印字ドラム1
21は桁数が15桁で各桁共にドラム周面に「0」
〜「9」の数字体の活字が配列されている。そし
てドラム回転位置検出器123はこの印字ドラム
121の回転角位置を検出してプリントコントロ
ーラ126へ印字制御信号としてのドラム回転位
置検出信号の供給を行なう。また、ハンマ122
は印字ドラム121の各桁に対応して15個のハン
マを備えており、プリントコントローラ126か
らの印字データ及び上記ドラム回転位置検出信号
に基づいて選択駆動される。 第2図はCPU11の詳細を示すもので、図中
13は各種マイクロプログラム例えば四則演算等
を処理するルーチン及び本発明に係るカレンダ系
処理ルーチンが組み込まれているROM(リー
ド・オンリ・メモリ)である。また14は上記
ROM13から次アドレス信号〔NA〕が与えられ
てROM13に格納されているマイクロプログラ
ムの各ステツプのアドレスを指定するROMアド
レス部である。上記ROM13はRAM(ランダ
ム・アクセス・メモリ)15に対して後述するレ
ジスタの行アドレスを指定する行アドレス指定信
号〔UA〕、列アドレス指定部16を介して上記
レジスタの列アドレス(桁)を指定する列アドレ
ス指定信号〔LA〕を夫々出力すると共にコード
信号〔CO〕及びインストラクシヨンデコーダ1
7に対するインストラクシヨン信号〔INS〕を出
力する。上記インストラクシヨンデコーダ17は
上記インストラクシヨン信号〔INS〕に従つてゲ
ート制御信号A〜C及び減算信号Sub、判断命令
J、1桁、2桁の桁上げ信号及び1桁の桁下げ信
号D〜F、印字命令あるいはリボン交換命令など
を各々対応する出力端より送出するものである。
上記RAM15は印字データの記憶されるXレジ
スタ、日付の計数を行なうYレジスタ、当月の末
日を記憶するZレジスタ及び年月データを記憶す
るレジスタ等で構成されている。これらのレジス
タは第3図に示す如く、1〜15桁目には日付デー
タ、C1〜C3桁にはフラツグ等のデータが記憶さ
れる。上記列アドレス指定部16は列アドレス指
定信号〔LA〕に基づき上記RAM15の各レジス
タの列アドレスを指定すると共に上記インストラ
クシヨンデコーダ17から出力される1桁及び2
桁の桁上げ信号D,Fあるいは1桁の桁下げ信号
Fに従つて、桁上げあるいは桁下げすべきレジス
タの列アドレスを順次指定して桁上げあるいは桁
下げを行なうものである。而して行アドレス指定
信号〔UA〕及び列アドレス指定信号〔LA〕によ
りアドレス指定された被演算数、演算数は上記イ
ンストラクシヨンデコーダ17からのゲート制御
信号A,Bの供給されているゲート回路18,1
9を各々介して演算判断部20へ供給され、演算
結果は再びRAM15に書き込まれる。コード信
号〔CO〕はインストラクシヨンデコーダ17か
らのゲート制御信号Cの供給されているゲート回
路21を介して上記演算判断部20へ供給され
る。この演算判断部20には上記インストラクシ
ヨンデコーダ17から減算命令Sub、判断命令J
が供給されて加減算を基礎とした各種演算、大小
比較及びデータの有無の判断が行われる。そして
この判断結果は上記ROMアドレス部14に供給
され、ROM13から出力される次アドレス信号
〔NA〕とアドレス加算されて次のマイクロ命令の
アドレス指定が行われる。更にRAM15のレジ
スタXに記憶された印字データはゲート回路18
を介して印字部12へ送られ、印字が行われる。 次に上記の構成をもとに本発明の一実施例を
1978年12月のカレンダを自動的に印字させる動作
を例にして第4図のフローチヤート及び第5図の
状態図を参照して説明する。先ず、1978年12月の
年月データをキー入力部10で□1、□9、□7、□8

[Formula] key 104 is provided. The input information from the key input unit 10 is input to the CPU (Central Processing Unit) 11 (details of which will be described later), where calendar information calculation calculations and other various calculations are performed, and the calculation information and print commands output from there are printed. Section 12. The printing unit 12 includes a printing drum 121 rotatably driven by a motor (not shown) constituting a small printing device, a hammer 122 provided at a printing position opposite to this printing drum 121, and a drum attached to the rotating shaft of the printing drum 121 and described later. Drum rotational position detector 123 for detecting rotational angular position, printing drum 121
Recording paper 124 inserted between and hammer 122
It also has a printing ribbon 125 divided into two colors, for example, red and black, on the upper and lower sides, and a print controller 126 that supplies printing data and various printing control signals to this small printing device. Above printing drum 1
21 has 15 digits, and each digit has a "0" on the drum circumference.
~ "9" numeral type letters are arranged. The drum rotational position detector 123 detects the rotational angular position of the print drum 121 and supplies a drum rotational position detection signal as a print control signal to the print controller 126. Also, hammer 122
is equipped with 15 hammers corresponding to each digit of the print drum 121, and is selectively driven based on print data from the print controller 126 and the drum rotational position detection signal. Figure 2 shows the details of the CPU 11, and numeral 13 in the figure is a ROM (read-only memory) in which various microprograms, such as routines for processing four arithmetic operations, and calendar processing routines according to the present invention are incorporated. be. Also, 14 is above
This is a ROM address section to which the next address signal [NA] is applied from the ROM 13 and designates the address of each step of the microprogram stored in the ROM 13. The ROM 13 sends a row address designation signal [UA] to the RAM (random access memory) 15 that designates the row address of the register, which will be described later, and a column address (digit) of the register through the column address designation section 16. It outputs the column address designation signal [LA] respectively, and also outputs the code signal [CO] and instruction decoder 1.
Outputs an instruction signal [INS] for 7. The instruction decoder 17 outputs gate control signals A to C, a subtraction signal Sub, a judgment command J, a 1-digit, 2-digit carry signal, and a 1-digit carry down signal D according to the instruction signal [INS]. ~F, printing commands, ribbon exchange commands, etc. are sent from the respective output terminals.
The RAM 15 is composed of an X register for storing print data, a Y register for counting the date, a Z register for storing the last day of the current month, and a register for storing year and month data. As shown in FIG. 3, these registers store date data in the 1st to 15th digits and data such as flags in the C1 to C3 digits. The column address designation section 16 designates the column address of each register of the RAM 15 based on the column address designation signal [LA], and also specifies the 1-digit and 2-digit addresses output from the instruction decoder 17.
In accordance with the digit carry signals D and F or the single digit carry down signal F, the column address of the register to be carried up or down is sequentially specified to carry out the carry or carry down. The operands and operands addressed by the row address designation signal [UA] and column address designation signal [LA] are the gates to which the gate control signals A and B from the instruction decoder 17 are supplied. circuit 18,1
9 to the calculation determining section 20, and the calculation results are written to the RAM 15 again. The code signal [CO] is supplied to the arithmetic determination section 20 via the gate circuit 21 to which the gate control signal C from the instruction decoder 17 is supplied. This arithmetic judgment unit 20 receives a subtraction instruction Sub and a judgment instruction J from the instruction decoder 17.
is supplied to perform various calculations based on addition and subtraction, size comparisons, and determination of the presence or absence of data. The result of this determination is then supplied to the ROM address unit 14, where it is added to the next address signal [NA] output from the ROM 13 to designate the address of the next microinstruction. Furthermore, the print data stored in the register X of the RAM 15 is sent to the gate circuit 18.
The image is sent to the printing unit 12 via the printer 12 and printed. Next, an embodiment of the present invention will be described based on the above configuration.
An example of the operation of automatically printing a calendar for December 1978 will be explained with reference to the flowchart of FIG. 4 and the state diagram of FIG. 5. First, enter the year and month data for December 1978 by entering □1, □9, □7, □8 using the key input section 10.
,

【式】□1、□2、[Formula] □1, □2,

【式】の順にキー操 作して第4図に示す処理S1においてRAM15の
年月データ記憶レジスタにその年月データを記憶
させる。次にカレンダ印字実行キー
By operating the keys in the order of [Formula], the year and month data is stored in the year and month data storage register of the RAM 15 in step S1 shown in FIG. Next, press the calendar print execution key.

【式】 を操作すると1978年12月のカレンダ印字動作が第
6図の印字フオーマツトで自動的に行われる。そ
のカレンダ印字の動作として、先ず処理S2におい
て上記年月データ記憶レジスタに記憶されている
年月データがROM13からのマイクロ命令に従
つて印字レジスタXに書き込まれ、更に印字部1
2に送られプリントコントローラ126の印字制
御により小型印字装置で記録紙124に
「197812」の印字動作が行われる。次に処理S3
進み、上記年月データに基づく大の月、小の月、
或いは〓年の判断等が演算判断部20で行われて
当該12月の末日データが末日記憶レジスタZの1
〜2桁目に書き込まれる。従つて入力データ「12
月」に対しては末日データ「31」が第5図aの1
(但し本例では日付をレジスタの2桁を用いて表
わしている。また第5図レジスタ状態図の空白部
は「0」が書き込まれているものとする。)に示
す如く、行アドレス指定信号〔UA〕及び列アド
レス指定部16を介した列アドレス指定信号
〔LA〕に指定されて末日記憶レジスタZの1〜2
桁に「31」(1桁目に「1」、2桁目に「3」が書
き込まれ、処理S4に進む。処理S4では入力された
月データに基づいて当該月の初日(1日)の曜日
の算出が行われる。この曜日の算出は仮想基準日
から所望年月日までの日数を算出し、この算出日
数を補正した後「7」で除算することにより行わ
れる。即ち、上記仮想基準日を西暦0年3月1日
とし、この基準日から西暦a年b月c日までの日
数は、b≧3であれば (365.25×a)+〔30.6×(b−3)〕+c … b<3であれば 〔365.25×(a−1)〕+〔30.6×(b+9)〕+c
… (但し、式とも年の項は小数点以下切捨、
月の項は小数点以下四捨五入) の何れかの式により求められる。そして上記年月
日の曜日は日曜日から土曜日を「0」〜「6」の
数値で表わすとすると上記日数を「+1」して補
正し、これを「7」で除算することにより求めら
れる。そこでa=1978、b=12、c=1として
式により基準日からの日数「722740」が得られ、
「+1」補正した日数「722741」を「7」を除算
すると余り「5」が得られ、この余りが曜日を表
わすことになる。つまり1978年12月1日は金曜日
であることが判明する。そしてこの曜日データ
「5」がROM13から出力される行アドレス指定
信号〔UA〕及び列アドレス指定信号〔LA〕に指
定されて第5図aの1に示す如く日付計数レジス
タYの1桁目及びC2桁、末日記憶レジスタZの
C1桁に書き込まれる。次の処理S5では上記入力
年月データに従つて当該月の印字桁数の算出が行
われる。つまり、入力年月が〓年以外の2月で1
日が日曜日の場合には4桁、入力年月が大の月で
その1日が金曜日か土曜日あるいはその月が小の
月で1日が土曜日の場合には6桁、上記以外の場
合は5桁となるのである。しかして上記入力年月
の桁数は6桁となり、末日記憶レジスタZのC2
桁に「6」が書き込まれる。ステツプS6では日曜
日から土曜日までの1週間分の印字のためのコー
ド信号「7」がROM13より出力され、演算判
断部20を介してRAM15の日付計数レジスタ
YのC1桁に第5図aの1に示す如く書き込まれ
る。そして次のステツプS7へ進み、第1行目に印
字すべき初日の日付の算出が行われるもので、コ
ード信号「8」と日付計数レジスタYの1桁目に
記憶されている曜日データとの減算を行なうこと
によつて初日の日付が算出される。従つて、コー
ド信号「8」及び日付計数レジスタYの1桁目の
内容「5」が演算判断部20へ供給され、インス
トラクシヨンデコーダ17の減算命令Subに従つ
て「8−5」の減算が成され、この減算結果
「3」は上記日付計数レジスタYの1桁目に書き
込まれる。これによりカレンダ印字の際の第1行
日の初日「3」が設定されることになる。次のス
テツプS3ではカレンダ印字の際の第2行目の初日
の算出のために上記日付計数レジスタYの1桁目
のデータを印字レジスタXのC1桁に転送して一
時記憶が成される。そしてステツプS9へ進み、印
字レジスタXの1〜15桁へのブランキングコード
(簡単のために“B”で表わす)の書き込みが行
われる。即ち、行アドレス指定信号〔UA〕によ
り印字レジスタXが指定されると共に列アドレス
指定部16により1桁目から15桁目までの各桁が
順次指定され、その都度ゲート回路21、演算判
断部20を介してROM13から供給されるブラ
ンキングコード“B”がこの印字レジスタXの1
〜15桁に第5図aの2の如く書き込まれる。この
ブランキングコード“B”の書き込まれた桁に対
して、印字の際にプリントコントローラ126で
は印字が成されない様に制御される。次にステツ
プS10へ進み、上記末日記憶レジスタZのC2桁の
印字桁数データが印字レジスタXのC2桁へ転送
されて一時記憶される。この印字レジスタXの
C2桁の内容は所定基準曜日列の日付(各印字行
の日付)を計数する際のカウンタとして用いられ
る。次のステツプS11では末日記憶レジスタZの
C1桁が「0」であるか否かの判断が行われるも
ので、ROM13の命令により末日記憶レジスタ
ZのC1桁の内容が演算判断部20へ供給され、
インストラクシヨンデコーダ17から出力される
判断命令Jに従つてデータが「0」であるか否か
の判断が行われる。第5図aの2に示す如く末日
記憶レジスタZのC1桁は「5」であるから判断
結果はデータ有りとなつてROMアドレス部14
では次アドレス信号〔NA〕と共にアドレス変換
が行われ、その結果ステツプS12へ進む。このス
テツプS12では第6図の第1列に示すように印字
すべき日付がない箇所(1日以前)に“・”を印
字させるために印字レジスタXの1桁目に“・”
印字に供する印字コード(本例では説明を簡略化
するため上記印字コードを“・”で表わしてい
る)が第5図aの3に示す如く書き込まれる。そ
して次のステツプS13では印字桁数の記憶されて
いる印字レジスタXのC2桁の内容に対し「−
1」の減算が行われ、の減算結果が「0」である
か否かの判断が行われる。即ち、後述するステツ
プで日付の計数が行われる毎に上記印字レジスタ
XのC2桁の内容が「−1」され、所定の基準曜
日列に対するすべての日付の計数が行われたか否
かの判断が成されるのである。従つて、印字レジ
スタXのC2桁の内容「6」及びROM13からの
コード信号「1」が演算判断部21へ供給され、
減算命令Subに従つて「6−1」の減算が行われ
る。この減算結果「5」は再び上記印字レジスタ
XのC2桁に書き込まれると共に判断命令Jに従
つてこの減算結果が「0」か否かの判断が行われ
る。この時点では上記減算結果が「0」でないた
め、ステツプS14へ進む。ステツプS14では印字レ
ジスタXの1〜14桁の内容に対して1桁だけの桁
上げが行われる。即ち、行アドレス指定信号
〔UA〕により印字レジスタXが指定されると共
にインストラクシヨンデコーダ17から列アドレ
ス指定部16へ1桁桁上げ信号Dが印加されるこ
とにより、この列アドレス指定部16では桁上げ
される桁及び1桁上位の桁の指定が各桁毎順次行
われ、上記印字レジスタXの内容は演算判断部2
0を介して1桁上位の桁に書き込まれて桁上げが
成される。この桁上げ動作が終了するとステツプ
S15へ進み、印字レジスタXの1桁目にブランキ
ングコード“B”が書き込まれる。更にステツプ
S16では印字レジスタXの1〜13桁に対して2桁
分の桁上げが行われる。この桁上げ動作はインス
トラクシヨンデコーダ17から2桁桁上げ信号E
が列アドレス指定部16に印加されることにより
上記ステツプS10と同様の動作で行われる。次の
ステツプS17では末日記憶レジスタZの1〜2桁
目に記憶されている当該月の末日データと日付計
数レジスタYの1〜2桁目の日付データとの大小
比較が行われる。即ち、ROM13によりアドレ
ス指定された日付計数レジスタY及び末日記憶レ
ジスタZの夫々のレジスタの1〜2桁目の内容は
ゲート回路18及び19を介して判断命令Jの印
加されている演算判断部20へ夫々供給されて大
小比較が行われる。第5図aの3に示す如く上記
日付計数レジスタYの1桁目は「3」、2桁目は
「0」であり、このレジスタYの1〜2桁目には
日付「3」が記憶され、また上記末日記憶レジス
タZの1桁目は「1」であり、2桁目は「3」で
あり、このレジスタZの1〜2桁目には日付
「3」が記憶されているため「Z≧Y」と判断さ
れ、ステツプS18へ進む。なお「Z<Y」の時に
は、詳細は後述するが第6図の最終列に示すよう
に末日以後に“・”の印字が行われるように処理
される。上記ステツプS18では日付計数レジスタ
Yの1〜2桁の内容が印字レジスタXの1〜2桁
目に書き込まれる。従つて、この時点では第5図
aの4に示すように印字レジスタXの1桁目は
「3」、2桁目は「0」となる。そして次のステツ
プS19では日付計数レジスタYの1〜2桁の内容
に対して「+7」の加算を行なうことにより日付
の計数が行われるのである。即ち、ROM13の
命令により日付計数レジスタYの1〜2桁の内容
及びROM13から出力されるコード信号「7」
が演算判断部20に供給されて両者の加算が行わ
れる。今日付計数レジスタYの1〜2桁には日付
「3」が記憶されているため加算結果は「10」と
なつて再び上記レジスタYの1〜2桁に書き込ま
れ、第5図aの4の如くなる。次にステツプS20
へ進み、上記印字レジスタXの2桁目が「0」で
あるか否かを検出することにより印字レジスタX
の1〜2桁目に記憶されている日付が1桁か2桁
かの判断が行われる。第5図aの4に示すように
現在印字レジスタXの2桁目は「0」であり印字
レジスタXに記憶される日付は1桁であるため、
次のステツプS21へ進む。このステツプS21では、
上記処理S1で入力された当該月の曜日が金曜日又
は土曜日であるかが判断される。即ち上記処理S4
で日付計数レジスタYのC2桁に書き込まれた曜
日データが「5」又は「6」の何れかに等しいか
否かが判断される。そこで等しいと判断された場
合はステツプS22に進み、印字レジスタXの3〜
15桁の桁下げが行われる。また等しくないと判断
された場合はステツプS23へ進み、印字レジスタ
Xの2桁目にブランキングコード“B”が書き込
まれる。つまりステツプS21乃至ステツプS23では
第6図に示すカレンダ印字のフオーマツトに於て
カレンダの左から第2列の日付が2桁であれば第
1列と第2列の間にスペースを設け、1桁であれ
ばスペースを設けないようにするものである。本
例では第5図aの4に示すように日付計数レジス
タYのC2桁は「5」であるからステツプS22へ進
む。ステツプS22ではインストラクシヨンデコー
ダ17から列アドレス指定部16へ桁下げ信号F
が印加されることにより印字レジスタXの3〜15
桁に対する桁下げが行われ、第5図aの5に示す
如くなる。そしてステツプS13乃至ステツプS20
上記同様に実行される。ステツプS20では印字レ
ジスタXの1桁目には「0」、2桁目には「1」
が記憶されているため「X2≠0」となり直接ス
テツプS13へ進むことになる。以後ステツプS13
至ステツプS20が循環して実行され、印字レジス
タXには第5図aの6に示す如く順次「+7」さ
れた日付データが書き込まれる。しかして、ステ
ツプS13に於て印字レジスタXのC2桁の内容が順
次「−1」されて「0」となると印字すべき日付
データの書き込みが終了してステツプS24へ進
む。このステツプS24は印字レジスタXに書き込
まれた印字データが日曜日であるか否かを判断す
るものである。即ち1週間印字のためのカウンタ
である日付計数レジスタYのC1桁の内容が
「7」であるか否かによつて判断が成される。従
つて第5図aの5に示す如く上記レジスタYの
C1桁は「7」であるからステツプS25へ進む。ス
テツプS25では上記ステツプS24で印字レジスタX
の印字データが日曜日であることにより印字部1
2にてこの印字データを赤印字させるために、印
字レジスタXのC3桁に「1」が書き込まれる。
そして処理S25に進み、第5図aの7の如く書き
込まれた印字レジスタXの1〜15桁目の日付デー
タの印字が行われる。即ち、先ず印字レジスタX
のC3桁に「1」が書き込まれているため、イン
ストラクシヨンデコーダ17からリボン交換命令
が印字部12へ印加されてリボン125の赤色側
が選択される。次に印字レジスタXの1〜15桁目
の印字データはゲート回路18を介して印字部1
2のプリントコントローラ126に供給される。
このプリントコントローラ126ではインストラ
クシヨンデコーダ17から印加される印字命令に
従つてドラム回転位置検出器123から出力され
るドラム回転位置検出信号及び印字レジスタXか
ら送出された印字データに基づいてハンマ122
の選択駆動が成され、赤色リボンを用いて日曜日
に該当する日付の印字が第6図の第1行目に示す
如く(赤色印字を点線で示している)行われる。
この印字動作が終了すると上記印字レジスタXの
C3桁はクリアされると共に記録紙124の紙送
りが1行分だけ行われ、次のステツプS27へ進
む。ステツプS27では処理S26にて日曜日の印字が
終了したことにより日付計数レジスタYのC1
の内容が「1」だけ減算され、この減算結果が
「0」か否かの判断が行われる。従つて、日付計
数レジスタYのC1桁の内容「7」は「−1」さ
れて「6」となるため、次のステツプS28へ進
む。このステツプS28は末日記憶レジスタZのC1
桁が「0」であるか否かの判断が行われる。ここ
で、このC1の内容が「0」でなければ次のステ
ツプS29へ進んでこのレジスタZのC1桁に対して
「−1」の減算が行われて次のステツプS30へ進
み、また上記レジスタZのC1の内容が「0」で
あれば直接ステツプS30に進む。この時点では第
5図aの7に示すように末日記憶レジスタZの
C1桁には「5」が記憶されているため、ステツ
プS28を経てステツプS29に進み、「−1」されて
このレジスタZのC1桁は「4」となつてステツ
プS30に進む。このステツプS30は各曜日(印字
行)の初日の日付を算出するもので、印字レジス
タXのC1桁の内容「3」は「+1」されて
「4」となり、再び印字レジスタXのC1桁に書き
込まれるのである。従つて次の印字行即ち月曜日
の初日は「4」となるのである。そして、次のス
テツプS31、ステツプS32は上記ステツプS30で求
められた各曜日の初日が「8」以上とならないよ
うに補正するステツプである。従つて印字レジス
タXのC1内容が「8」より小であれば直接次の
ステツプS33に進むか、「8」以上であれば上記印
字レジスタXのC1の内容はステツプS32で「7」
だけ減じられてステツプS33に進む。第5図aの
8に示すように上記印字レジスタXのC1
「4」であるからステツプS31では「C1<8」と判
断され、次のステツプS33へ進む。ステツプS33
びステツプS34は新たな曜日に対する初日設定の
ためのステツプで、ステツプS33では日付計数レ
ジスタYの2桁目に「0」が書き込まれ、更にス
テツプS34では上記ステツプS30で算出された印字
レジスタXのC1桁の内容が上記レジスタYの1
桁目に書き込まれて第5図aの8に示すようにな
る。そして上記同様にステツプS9乃至ステツプ
S12が実行されて印字レジスタXは第5図bの9
の如くなり、更にステツプS12乃至ステツプS22
実行されて第5図bの10の如くなる。そして以
後ステツプS13乃至ステツプS20が循環して実行さ
れ、印字レジスタXには第5図bの11のように
月曜日に該当する日付が書き込まれる。そしてス
テツプS19に於て日付計数レジスタYの1〜2桁
の日付内容が「+7」されて第5図bの11のよ
うに日付「32」となるとステツプS17では末日記
憶レジスタZの1〜2桁の末日データが「31」で
あるから「Z<Y」と判断され、次のステツプ
S35へ進む。ステツプS35では印字レジスタXの2
桁目にブランキングコード“B”が書き込まれ、
更に次のステツプS12では印字レジスタXの1桁
目に“・”印字のための印字コードが書き込まれ
る。即ち、このステツプS35、ステツプS12では第
6図に示すカレンダの最終列に於て末日を越える
日付の箇所に“・”印字を行なうようにするもの
である。従つて印字レジスタXの1〜2桁目は第
5図bの12のようになる。そして次のステツプ
S13では印字レジスタXのC2桁は「−1」されて
「0」となつてステツプS24へ進む。この時ステツ
プS24では日付計数レジスタYのC1桁が「6」で
あるため直接処理S26へ進む。処理S26では第5図
bの13に示す印字レジスタXの1〜15桁の印字
データの印字が成される。ここでは印字レジスタ
XのC3桁が「0」であるからインストラクシヨ
ンデコーダ17からはリボン交換命令が出力され
ず、黒のリボンを用いて第6図の第2行目の月曜
日の印字が行われる。この印字動作が終了すると
ステツプS27乃至ステツプS34が実行されて各レジ
スタは第5図bの14の如くなる。以下上述の月
曜日の印字と同様に各ステツプが実行され、第5
図bの15に示す印字レジスタXの内容に従つて
火曜日の印字が行われる。また水曜日、木曜日の
印字に対しても上記同様にして行われ、第5図c
の16,17に示す如くの印字レジスタXの内容
に従つて水曜日、木曜日の印字が行われる。そし
て木曜日の印字が終了するとステツプS27乃至ス
テツプS29を経てステツプS30に進む。このステツ
プS30では印字レジスタXのC1桁の内容「7」が
「+1」されて「8」となる。そしてステツプS31
では上記印字レジスタXのC1桁の内容が「8」
であるためステツプS32へ進み、このC1桁の内容
は「7」だけ減じられて「1」となる。このた
め、次のステツプS33、ステツプS34により第5図
cの18に示す如く日付計数レジスタYの1〜2
桁目には金曜日の初日の日付設定が行われる。そ
してステツプS9、ステツプS10を経てステツプS11
へ進む。ステツプS11では末日記憶レジスタZの
C1桁の内容は5図cの18に示す如く「0」で
あるからステツプS18へ進む。更にステツプS19
至ステツプS22及びステツプS13乃至ステツプS17
を実行した後ステツプS18乃至ステツプS20及びス
テツプS13乃至ステツプS17が循環して順次実行さ
れる。そこで金曜日の日付データがすべて印字レ
ジスタXに書き込まれるとステツプS13に於て印
字レジスタXのC2桁目が順次「−1」されて
「0」となるとステツプS24、ステツプS25を経て
処理S26へ進み、第5図cの21に示す印字レジ
スタXの1〜15桁の印字データに従つて金曜日の
印字が行われる。また土曜日に対しても上記同様
にして行われ、第5図cの22の如く書き込まれ
た印字レジスタXの内容に従つて土曜日の印字が
行われる。土曜日の印字が終了するとステツプ
S27へ進む。ステツプS27では日付計数レジスタY
のC1桁の内容が「−1」されて「0」となるた
め上記した一連のカレンダ印字の動作が終了す
る。 この様にして、第6図のカレンダ状態図の如
く、第1行目には日曜日に該当する日付を赤色印
字し、第2行目乃至第7行目には月曜日乃至土曜
日の各曜日に該当する日付が黒色印字されるので
ある。 なお、上記実施例では年月データ入力毎にカレ
ンダ印字を行なう様にしたが、例えば年データだ
けの入力では1月〜12月のカレンダを自動的に連
続して印字したり、あるいは2つの年月データの
入力でその2つの年月間のカレンダを印字するよ
うにしてもよい。また入力年月データに基づくカ
レンダ情報の算出方法及びカレンダ印字の形態は
上記実施例に限定されず、要は曜日を縦方向にと
り、各曜日に該当する日付を曜日毎に記録紙の幅
方向に印字すれば良い。更に上記実施例では赤黒
リボンを用いたが例えば緑黒を用いて日曜日と平
日を区別するようにしても良い。更にまた小型印
字装置も上記実施例に限らず、例えばサーマルプ
リンタ等でも良いことは勿論である。要は本発明
の要旨を逸脱しない範囲であれば良いのである。 以上詳細に説明した如く、本発明によれば、印
字すべきカレンダの年月を指定してカレンダ情報
を算出し、このカレンダ情報を七曜日を縦にして
各曜日毎順次記録紙の幅方向に印字する様にした
ことにより、日曜日と他の曜日とを色分けして印
字することができ非常に見安いものとなると共に
必要に応じてカレンダを容易に作成することがで
きるのである。また独国等の慣習に適合したカレ
ンダの作成が可能となる等実用上便利なカレンダ
を提供することが可能となるのである。
When [Formula] is operated, the calendar printing operation for December 1978 is automatically performed in the print format shown in Figure 6. As the calendar printing operation, first, in process S2 , the year and month data stored in the year and month data storage register is written to the print register X according to the microinstruction from the ROM 13, and then
2, and under the print control of the print controller 126, the small printing device prints "197812" on the recording paper 124. Next, proceed to processing S 3 , and based on the above year and month data, the large month, small month,
Or, the judgment of the year, etc. is performed in the arithmetic judgment unit 20, and the data of the last day of December is stored in 1 of the last day storage register Z.
~Written in the second digit. Therefore, the input data "12
The last day data "31" is 1 in Figure 5 a for "Month".
(However, in this example, the date is expressed using two digits of the register. Also, it is assumed that "0" is written in the blank part of the register state diagram in Figure 5.) As shown in the figure, the row address designation signal [UA] and the column address designation signal [LA] via the column address designation unit 16, and the last day storage registers Z 1 to 2
"31"("1" in the first digit and "3" in the second digit) is written in the digit, and the process proceeds to step S 4. In step S 4 , the first day (first day) of the month is written based on the input month data. ) is calculated.This day of the week is calculated by calculating the number of days from the virtual reference date to the desired date, correcting this calculated number of days, and then dividing by "7".In other words, the above The virtual reference date is March 1, year 0, and the number of days from this reference date to day b, month c, year a, is (365.25 x a) + [30.6 x (b-3)] if b≧3. +c...If b<3, [365.25×(a-1)]+[30.6×(b+9)]+c
… (However, in both formulas, the year term is rounded down to the decimal point,
Month terms are rounded off to the nearest whole number). The day of the week of the above year/month is determined by correcting the above number of days by "+1" and dividing this by "7", assuming that Sunday to Saturday are represented by numbers from "0" to "6". Therefore, by setting a = 1978, b = 12, and c = 1, the number of days from the reference date "722740" is obtained by the formula,
When the number of days "722741" corrected by "+1" is divided by "7", a remainder "5" is obtained, and this remainder represents the day of the week. In other words, December 1, 1978 turns out to be a Friday. Then, this day of the week data "5" is specified by the row address designation signal [UA] and column address designation signal [LA] output from the ROM 13, and the first digit of the date count register Y and C 2 digits, last day storage register Z
C written to 1 digit. In the next process S5 , the number of printing digits for the month is calculated according to the input year and month data. In other words, if the input year and month is February other than 〓,
4 digits if the day is Sunday; 6 digits if the input year is a major month and the first day is a Friday or Saturday; or 6 digits if the input year is a minor month and the first day is a Saturday; otherwise 5 digits It becomes a digit. Therefore, the number of digits in the above input year and month is 6 digits, and C 2 of last day storage register Z.
"6" is written in the digit. In step S6 , the code signal "7" for printing for one week from Sunday to Saturday is output from the ROM 13, and the code signal " 7 " in FIG. It is written as shown in 1. The program then proceeds to the next step S7 , where the first day's date to be printed on the first line is calculated, using the code signal "8" and the day of the week data stored in the first digit of the date count register Y. The first day's date is calculated by subtracting . Therefore, the code signal "8" and the content "5" of the first digit of the date count register Y are supplied to the arithmetic judgment section 20, and the subtraction of "8-5" is performed according to the subtraction instruction Sub of the instruction decoder 17. The subtraction result "3" is written to the first digit of the date count register Y. As a result, "3", the first day of the first row of calendar printing, is set. In the next step S3 , in order to calculate the first day of the second line when printing the calendar, the data of the first digit of the date count register Y is transferred to the C 1 digit of the print register X and temporarily stored. Ru. The process then proceeds to step S9 , where a blanking code (represented by "B" for simplicity) is written into the 1st to 15th digits of the print register X. That is, the row address designation signal [UA] designates the print register The blanking code “B” supplied from the ROM 13 via
It is written in the ~15th digit as shown in 2 in Figure 5a. At the time of printing, the print controller 126 controls the digit in which the blanking code "B" is written so that no printing is performed. Next, the process advances to step S10 , where the C2 digit print digit number data of the last day storage register Z is transferred to the C2 digit of the print register X and temporarily stored. This print register
C The 2 -digit content is used as a counter when counting the date of the predetermined reference day of the week column (the date of each printed line). In the next step S11 , the last day memory register Z is
It is determined whether the C 1 digit is "0" or not, and the contents of the C 1 digit of the last day storage register Z are supplied to the arithmetic judgment unit 20 by the instruction of the ROM 13.
In accordance with the judgment instruction J output from the instruction decoder 17, it is judged whether the data is "0" or not. As shown in 2 of FIG.
Then, address conversion is performed together with the next address signal [NA], and as a result, the process advances to step S12 . In this step S12 , as shown in the first column of Fig. 6, in order to print a "•" in a place where there is no date to be printed (before the first day), a "•" is placed in the first digit of the print register X.
A print code to be used for printing (in this example, the above-mentioned print code is represented by "." to simplify the explanation) is written as shown in 3 in FIG. 5a. Then, in the next step S13 , the content of C 2 digits of the print register
1'' is subtracted, and it is determined whether the subtraction result is 0. That is, each time dates are counted in the step described below, the contents of the C 2 digits of the above print register is achieved. Therefore, the C 2- digit content "6" of the print register
A subtraction of "6-1" is performed according to the subtraction instruction Sub. The result of this subtraction "5" is again written to the C2 digit of the print register X, and it is determined in accordance with the judgment instruction J whether or not the result of this subtraction is "0". At this point, since the result of the subtraction is not "0", the process advances to step S14 . In step S14 , the contents of the 1st to 14th digits of the print register X are carried up by one digit. That is, as the print register The digit to be carried up and the digit higher than the digit are specified in sequence for each digit, and the contents of the above-mentioned print register
A carry is performed by writing to the next higher digit through 0. When this carry operation is completed, the step
Proceeding to S15 , blanking code "B" is written in the first digit of print register X. further steps
At S16 , digits 1 to 13 of the print register X are carried up by two digits. This carry operation is a 2-digit carry signal E from the instruction decoder 17.
is applied to the column address designating section 16, thereby performing the same operation as the above step S10 . In the next step S17 , a comparison is made between the last day data of the month stored in the first and second digits of the last day storage register Z and the date data in the first and second digits of the date count register Y. That is, the contents of the first to second digits of the date counting register Y and the last day storage register Z, which are addressed by the ROM 13, are transferred to the arithmetic judgment section 20 to which the judgment instruction J is applied via the gate circuits 18 and 19. The data are supplied to each of the above and compared in size. As shown in Figure 5a-3, the first digit of the date counting register Y is "3" and the second digit is "0", and the date "3" is stored in the first and second digits of this register Y. Also, the first digit of the last date storage register Z is "1" and the second digit is "3", and the date "3" is stored in the first and second digits of this register Z. It is determined that "Z≧Y" and the process proceeds to step S18 . Note that when "Z<Y", the details will be described later, but as shown in the last column of FIG. 6, processing is performed such that "." is printed after the last day. In step S18 , the contents of the first and second digits of the date count register Y are written into the first and second digits of the print register X. Therefore, at this point, the first digit of the print register X becomes "3" and the second digit becomes "0", as shown in 4 of FIG. 5a. In the next step S19 , the date is counted by adding "+7" to the 1st to 2nd digit contents of the date counting register Y. That is, the contents of 1 to 2 digits of the date count register Y and the code signal "7" output from the ROM 13 according to the command of the ROM 13.
is supplied to the arithmetic/judgment section 20, and the two are added. Since the date "3" is stored in the 1st and 2nd digits of today's count register Y, the addition result becomes "10" and is written again in the 1st and 2nd digits of the register Y, and the 4 It will be like this. Next step S 20
The process proceeds to print register X by detecting whether the second digit of the print register
It is determined whether the date stored in the first to second digits is one-digit or two-digit. As shown at 4 in Figure 5a, the second digit of the print register X is currently "0" and the date stored in the print register X is one digit.
Proceed to the next step S21 . In this step S 21 ,
It is determined whether the day of the week of the month input in the above process S1 is Friday or Saturday. That is, the above processing S 4
Then, it is determined whether the day of the week data written in the C 2 digit of the date count register Y is equal to either "5" or "6". If it is determined that they are equal, proceed to step S22 , and print registers 3 to 3 of print register
A 15-digit shift is performed. If it is determined that they are not equal, the process proceeds to step S23 , where a blanking code "B" is written in the second digit of the print register X. That is, in steps S21 to S23 , in the calendar printing format shown in FIG. 6, if the date in the second column from the left of the calendar is two digits, a space is provided between the first and second columns. If it is a single digit, no space is provided. In this example, as shown at 4 in FIG. 5a, the C2 digit of the date count register Y is "5", so the process advances to step S22 . In step S22 , the instruction decoder 17 sends a carry down signal F to the column address designation section 16.
3 to 15 of print register X is applied.
The digits are downgraded, as shown at 5 in FIG. 5a. Steps S13 to S20 are then executed in the same manner as described above. At step S 20 , the first digit of print register X is "0" and the second digit is "1".
is stored, "X 2 ≠ 0" and the process directly proceeds to step S13 . Thereafter, steps S13 to S20 are executed in a circular manner, and date data incremented by "+7" is sequentially written into the print register X as shown at 6 in FIG. 5a. In step S13 , when the contents of the C 2 digits of the print register X are sequentially incremented by ``1'' and become ``0'', writing of the date data to be printed is completed and the process proceeds to step S24 . This step S24 is for determining whether the print data written in the print register X is a Sunday. That is, the determination is made based on whether the content of the C 1 digit of the date count register Y, which is a counter for printing for one week, is "7". Therefore, as shown in 5 of FIG. 5a, the above register Y is
Since the first digit of C is "7", proceed to step S25 . At step S 25 , print register X is set at step S 24 above.
Because the print data of is Sunday, print part 1
In order to print this print data in red in step 2, "1" is written in the C 3 digit of the print register X.
The process then proceeds to step S25 , where the date data written in the 1st to 15th digits of the print register X as shown in 7 of FIG. 5a is printed. That is, first, print register
Since "1" is written in the third digit of C, a ribbon exchange command is applied from the instruction decoder 17 to the printing section 12, and the red side of the ribbon 125 is selected. Next, the print data of the 1st to 15th digits of the print register
2 print controller 126.
The print controller 126 uses the drum rotation position detection signal output from the drum rotation position detector 123 in accordance with the print command applied from the instruction decoder 17 and the print data sent from the print register X to the hammer 122.
The date corresponding to Sunday is printed using the red ribbon as shown in the first line of FIG. 6 (the red printing is indicated by a dotted line).
When this printing operation is completed, the above print register
The third digit C is cleared and the recording paper 124 is fed by one line, and the process advances to the next step S27 . In step S27 , since Sunday printing has been completed in process S26 , the content of the C 1 digit of the date count register Y is subtracted by "1", and it is determined whether the result of this subtraction is "0" or not. . Therefore, the content "7" of the first digit C of the date count register Y is "-1"ed to become "6", so the process advances to the next step S28 . This step S28 is C1 of last day storage register Z.
A determination is made as to whether the digit is "0". Here, if the content of this C1 is not "0", the process proceeds to the next step S29 , where "-1" is subtracted from the C1 digit of this register Z, and the process proceeds to the next step S30 . , and if the content of C1 of the register Z is "0", the process directly proceeds to step S30 . At this point, as shown in 7 of Figure 5a, the last day memory register Z is
Since "5" is stored in the C 1 digit, the process proceeds to step S 29 via step S 28 , where it is set to "-1", and the C 1 digit of this register Z becomes "4", and the process proceeds to step S 30 . move on. This step S30 is to calculate the first day date of each day of the week (print line), and the C 1 digit content "3" of print register It is written in 1 digit. Therefore, the next print line, that is, the first day of Monday, will be "4". The next step S31 and step S32 are steps for correcting the first day of each day of the week determined in step S30 above so that it does not exceed "8". Therefore , if the content of C1 of the print register 7”
is reduced and the process proceeds to step S33 . As shown at 8 in FIG. 5a, since C 1 of the print register X is "4", it is determined in step S31 that "C 1 <8", and the process proceeds to the next step S33 . Step S33 and step S34 are steps for setting the first day of a new day of the week. In step S33 , "0" is written in the second digit of the date count register Y, and further in step S34 , the setting in step S30 is performed. The content of C 1 digit of calculated print register X is 1 of register Y above.
It is written in the digit as shown in 8 of FIG. 5a. Then, in the same way as above, step S 9 to step
S 12 is executed and the print register X is set to 9 in Figure 5b.
Steps S12 to S22 are further executed, resulting in a state as shown in 10 of FIG. 5b. Thereafter, steps S13 to S20 are executed in a circular manner, and the date corresponding to Monday is written in the print register X as shown in 11 in FIG. 5b. Then, in step S19 , the date contents of the 1st and 2nd digits of the date count register Y are incremented by ``+7'' to become the date ``32'' as shown in 11 in FIG. ~Since the two-digit last day data is “31”, it is determined that “Z<Y” and the next step is
Proceed to S 35 . At step S 35 , print register X 2
A blanking code “B” is written in the digit,
Furthermore, in the next step S12 , a print code for printing "." is written in the first digit of the print register X. That is, in step S35 and step S12 , "." is printed in the last column of the calendar shown in FIG. 6 where the date exceeds the last day. Therefore, the first and second digits of the print register X are as shown in 12 in FIG. 5b. And the next step
In S13 , the C2 digit of the print register At this time, in step S24 , the first digit C of the date count register Y is "6", so the process directly proceeds to step S26 . In step S26 , the 1st to 15th digit print data of the print register X shown at 13 in FIG. 5b is printed. Here, since the C 3rd digit of print register It will be done. When this printing operation is completed, steps S27 to S34 are executed, and each register becomes like 14 in FIG. 5b. Below, each step is executed in the same way as the Monday printing described above, and the fifth
Printing for Tuesday is performed according to the contents of the print register X shown at 15 in FIG. b. The same procedure as above is also applied to printing on Wednesday and Thursday, as shown in Figure 5c.
Printing on Wednesday and Thursday is performed according to the contents of the print register X as shown in 16 and 17 of FIG. When Thursday's printing is completed, the process proceeds to step S30 via steps S27 to S29 . In this step S30 , the content "7" of the first digit C of the print register X is incremented by "+1" to become "8". And step S 31
Then, the content of C 1 digit of the above print register X is "8"
Therefore, the process advances to step S32 , and the content of this one digit C is subtracted by "7" to become "1". Therefore, in the next step S33 and step S34 , the dates 1 to 2 of the date count register Y are changed as shown in 18 of FIG. 5c.
The date of the first day of Friday is set in the digit. Then step S 9 , step S 10 , and step S 11
Proceed to. In step S11 , the last day memory register Z is
Since the content of the first digit C is "0" as shown at 18 in Figure 5c, the process advances to step S18 . Furthermore, steps S 19 to S 22 and steps S 13 to S 17
After executing steps S 18 to S 20 and steps S 13 to S 17 are sequentially executed. Then, when all of Friday's date data has been written to the print register X , the second digit of C of the print register Proceeding to step S26 , Friday printing is performed in accordance with the print data of digits 1 to 15 of the print register X shown at 21 in FIG. 5c. The same procedure as described above is also carried out for Saturday, and printing for Saturday is carried out according to the contents of the print register X written as 22 in FIG. 5c. When Saturday's printing is finished, the step
Proceed to S 27 . In step S27 , date count register Y
Since the content of the first digit of C is incremented by "-1" and becomes "0", the series of calendar printing operations described above are completed. In this way, as shown in the calendar state diagram in Figure 6, the date corresponding to Sunday is printed in red on the first line, and the date corresponding to each day of the week from Monday to Saturday is printed on the second to seventh lines. The date will be printed in black. In the above embodiment, the calendar is printed each time the year and month data is input, but for example, when only year data is input, the calendars for January to December are automatically printed consecutively, or the calendars for two years are printed consecutively. By inputting month data, calendars for the two years and months may be printed. In addition, the method of calculating calendar information based on the input year and month data and the form of calendar printing are not limited to the above embodiments.In short, the days of the week are taken in the vertical direction, and the dates corresponding to each day of the week are printed in the width direction of the recording paper for each day of the week. Just print it out. Further, although red and black ribbons are used in the above embodiment, for example, green and black ribbons may be used to distinguish Sundays from weekdays. Furthermore, the compact printing device is not limited to the above-mentioned embodiment, and it goes without saying that, for example, a thermal printer or the like may be used. In short, it is sufficient as long as it does not deviate from the gist of the present invention. As explained in detail above, according to the present invention, calendar information is calculated by specifying the year and month of the calendar to be printed, and this calendar information is printed sequentially in the width direction of the recording paper for each day of the week with the seven days of the week vertically. By printing, Sundays and other days of the week can be printed in different colors, making them very cheap to read and making it easy to create calendars as needed. In addition, it is possible to provide a calendar that is convenient for practical purposes, such as making it possible to create a calendar that conforms to the customs of countries such as Germany.

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

第1図は本発明の一実施例の構成を示す全体構
成図、第2図は第1図中のCPUの詳細な回路ブ
ロツク図、第3図は第2図中のRAM内のレジス
タ構成図、第4図は同例の動作を説明するための
フローチヤート、第5図a〜cは上記フローチヤ
ートに伴うレジスタ状態図、第6図はカレンダ印
字状態図である。 10…キー入力部、101…置数キー、103
…DATEキー、104…CALEキー、11…
CPU、12…印字部、125…印字リボン、1
3…ROM、14…ROMアドレス部、15…
RAM、17…インストラクシヨンデコーダ、2
0…演算判断部。
Figure 1 is an overall configuration diagram showing the configuration of an embodiment of the present invention, Figure 2 is a detailed circuit block diagram of the CPU in Figure 1, and Figure 3 is a diagram of the register configuration in the RAM in Figure 2. , FIG. 4 is a flowchart for explaining the operation of the same example, FIGS. 5a to 5c are register status diagrams accompanying the above flowchart, and FIG. 6 is a calendar printing status diagram. 10...Key input section, 101...Number key, 103
...DATE key, 104...CALE key, 11...
CPU, 12...Printing section, 125...Printing ribbon, 1
3...ROM, 14...ROM address section, 15...
RAM, 17... Instruction decoder, 2
0...Arithmetic judgment section.

Claims (1)

【特許請求の範囲】[Claims] 1 印字すべきカレンダの年月を指定するための
指定手段と、予め設定された基準年月日情報にも
とづいて上記指定された年月のカレンダ情報を曜
日別に算出する算出手段と、該算出された曜日別
の日付を記録紙の幅方向に横一列に印字すると共
に順次記録紙を送りながら1週間単位の日付を縦
列に印字する印字手段とを具備したことを特徴と
するカレンダ印字機能を有する小型電子機器。
1. A specifying means for specifying the year and month of the calendar to be printed; a calculating means for calculating calendar information for the specified year and month for each day of the week based on preset reference date information; It has a calendar printing function characterized by being equipped with printing means that prints the dates for each day of the week in a horizontal line in the width direction of the recording paper and prints the dates of each week in vertical columns while sequentially feeding the recording paper. Small electronic equipment.
JP12344078A 1978-10-06 1978-10-06 Small sized electronic unit having calendar print function Granted JPS5552182A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12344078A JPS5552182A (en) 1978-10-06 1978-10-06 Small sized electronic unit having calendar print function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12344078A JPS5552182A (en) 1978-10-06 1978-10-06 Small sized electronic unit having calendar print function

Publications (2)

Publication Number Publication Date
JPS5552182A JPS5552182A (en) 1980-04-16
JPS6115449B2 true JPS6115449B2 (en) 1986-04-24

Family

ID=14860636

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12344078A Granted JPS5552182A (en) 1978-10-06 1978-10-06 Small sized electronic unit having calendar print function

Country Status (1)

Country Link
JP (1) JPS5552182A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56111941A (en) * 1980-02-06 1981-09-04 Matsushita Electric Ind Co Ltd Calendar printer

Also Published As

Publication number Publication date
JPS5552182A (en) 1980-04-16

Similar Documents

Publication Publication Date Title
JP3505320B2 (en) Information processing equipment
GB2060968A (en) Electronic cash register
JPS6115449B2 (en)
US4361874A (en) Schedule table printing apparatus
US20020032759A1 (en) Electronic filing system having displayed retrieval image change
JPS5929892B2 (en) Display method of data input device
JPS6115448B2 (en)
JP3219919B2 (en) Data setting registration device for time clock
EP0395067A2 (en) Electronic display device for displaying calendar information
JPH10129084A (en) Printer
EP0350065B1 (en) Electronic apparatus having a calendar-display function
JP2732617B2 (en) Data recording device and camera
JPH09120406A (en) Database processor
JP2987886B2 (en) Camera data recording device and camera
US5060187A (en) Data input and output device
JP2925219B2 (en) Document creation device
JPH067393Y2 (en) Electronics
JP2883440B2 (en) Label printing device
JPS60134333A (en) Electronic equipment
JP2592353Y2 (en) Input device for setting contents in time clock
JPH05181806A (en) Electric calender
JPH0410093A (en) Time recorder system with self-report function
JPS6133590A (en) Copy charge calculator
JPS6037634Y2 (en) calendar printing device
JPS62271120A (en) Accounting processor