JPH0331591B2 - - Google Patents

Info

Publication number
JPH0331591B2
JPH0331591B2 JP56109098A JP10909881A JPH0331591B2 JP H0331591 B2 JPH0331591 B2 JP H0331591B2 JP 56109098 A JP56109098 A JP 56109098A JP 10909881 A JP10909881 A JP 10909881A JP H0331591 B2 JPH0331591 B2 JP H0331591B2
Authority
JP
Japan
Prior art keywords
ribbon
label
data
key
print
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 - Lifetime
Application number
JP56109098A
Other languages
Japanese (ja)
Other versions
JPS5811636A (en
Inventor
Mitsuo Uchimura
Yukio Tanaka
Seiji Koike
Manabu Nishida
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.)
Toshiba Tec Corp
Original Assignee
Tokyo Electric 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 Tokyo Electric Co Ltd filed Critical Tokyo Electric Co Ltd
Priority to JP10909881A priority Critical patent/JPS5811636A/en
Publication of JPS5811636A publication Critical patent/JPS5811636A/en
Publication of JPH0331591B2 publication Critical patent/JPH0331591B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Impression-Transfer Materials And Handling Thereof (AREA)
  • Labeling Devices (AREA)

Description

【発明の詳細な説明】 〔発明の目的〕 (産業上の利用分野) 本発明は、はかりからのデータ例えば単価、重
量および値段等のデータをラベルにプリントして
発行するラベルプリンタに関するものである。
[Detailed Description of the Invention] [Object of the Invention] (Industrial Application Field) The present invention relates to a label printer that prints and issues data from a scale, such as unit price, weight, price, etc., on a label. .

(従来の技術) ラベルプリンタは、電子はかりによつて求めら
れた重量、その重量と単価重量当りの単価とから
演算された値段等のデータを、一枚毎にラベルに
プリントして発行するもので、特にスーパーマー
ケツト等において、個々の商品の値付け作業に広
く利用されてきている。
(Prior art) A label printer prints and issues data such as the weight determined by an electronic scale and the price calculated from that weight and the unit price per weight on each label. It has been widely used for pricing individual products, especially in supermarkets.

そして、この種のラベルプリンタの中で両端が
それぞれスプールに巻付けられたリボンを使用す
る型式のプリンタでは、リボンを一方向へ送りリ
ボンエンドに達したとき、リボンの送り方向を反
転させている。
Among these type of label printers, printers that use ribbons with both ends wrapped around spools feed the ribbon in one direction and, when it reaches the ribbon end, reverse the ribbon feeding direction. .

(発明が解決しようとする問題点) しかしながら、ラベルプリンタでは、リボンの
送りがラベル発行毎の間欠的動作であるため、た
とえばラベル一枚分のプリントを終了したラベル
発行終了時にセンサーがリボンエンドを検出した
状態になると、リボンに大きな張力が加わりリボ
ンに悪影響を与える問題を有している。
(Problem to be Solved by the Invention) However, in a label printer, the ribbon is fed intermittently every time a label is issued. When the detected state is reached, a large tension is applied to the ribbon, which poses a problem that adversely affects the ribbon.

本発明は、反転時にリボンに大きな張力が加わ
つている状態を防止するラベルプリンタを提供す
ることを目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to provide a label printer that prevents large tension from being applied to the ribbon during reversal.

〔発明の構成〕[Structure of the invention]

(問題点を解決するための手段) 本発明は、はかりからデータが与えられる毎に
そのデータをラベルにプリントして発行するラベ
ルプリンタであつて、前記はかりからのデータを
ラベルにプリントする印字ヘツドと、この印字ヘ
ツドとラベルとの間に挿通され両端がそれぞれス
プールに巻着されたリボンと、このリボンの送り
およびその送り方向を制御する少なくとも1以上
のリボン送りモータと、このリボン送りモータの
駆動によつて互いに異なる方向へ送られたリボン
がそれぞれのスプールの巻端に達したことを検知
しリボンエンド検出信号を出力するリボンエンド
検出装置と、前記リボン送りモータの駆動によつ
て送られるリボンの送り方向を記憶する識別手段
と、この識別手段に記憶されている内容を反転さ
せる反転手段と、プリントの終了を検出するプリ
ント終了検出手段と、前記はかりからのデータを
ラベルにプリントする際前記識別手段の内容に従
つて前記リボン送りモータの駆動を制御し、前記
プリント終了検出手段でプリントの終了が検出さ
れた状態で前記リボンエンド検出装置からのリボ
ンエンド検出信号があるとき前記反転手段で前記
識別手段の内容を反転させた後、反転された識別
手段の内容に従つて前記リボン送りモータを一定
時間駆動させる制御手段とを備えたものである。
(Means for Solving the Problems) The present invention is a label printer that prints and issues data on a label every time data is given from a scale, and includes a print head that prints data from the scale on a label. a ribbon inserted between the print head and the label and wound around a spool at both ends; at least one ribbon feed motor for controlling the feed and direction of the ribbon; A ribbon end detection device detects when the ribbons fed in different directions by the drive reach the end of each spool and outputs a ribbon end detection signal, and the ribbon is fed by the drive of the ribbon feed motor. an identification means for storing the feeding direction of the ribbon; an inversion means for reversing the contents stored in the identification means; a print end detection means for detecting the end of printing; and when printing the data from the scale on a label. The reversing means controls the drive of the ribbon feed motor according to the contents of the identification means, and when there is a ribbon end detection signal from the ribbon end detection device while the end of printing is detected by the print end detection means. and a control means for inverting the content of the identification means and then driving the ribbon feeding motor for a predetermined period of time in accordance with the inverted content of the identification means.

(作用) 本発明は、はかりからデータが与えられる毎に
データを一枚毎にラベルにプリントして発行し、
プリントをする際にリボン送りモータの駆動によ
つて送られるリボンの送り方向を記憶する識別手
段の内容にしたがつて、リボン送りモータの駆動
を制御する。そして、プリント終了検出手段では
かりから与えられたデータのプリント終了が検知
された状態で、リボンエンド検出信号があるとき
は、反転手段で識別手段の内容を反転させた後、
この反転された内容に従つてリボン送りモータを
一定時間駆動させ、リボンに大きな張力が加わつ
ている状態を解除する。
(Function) The present invention prints and issues data on a label each time data is given from a scale,
The drive of the ribbon feed motor is controlled according to the contents of the identification means that stores the feeding direction of the ribbon fed by the drive of the ribbon feed motor when printing. Then, when the printing end detection means detects the end of printing of the data given from the scale and there is a ribbon end detection signal, the reversing means inverts the contents of the identification means, and then,
The ribbon feed motor is driven for a certain period of time in accordance with this inverted content, and the state in which large tension is applied to the ribbon is released.

(実施例) 以下、本発明を図面に示す実施例に基づき説明
する。
(Example) The present invention will be described below based on an example shown in the drawings.

第1図は一実施例のラベルプリンタ1の外観を
示している。このラベルプリンタ1は、筐体2の
外部に複数台例えば第1、第2のはかりH1,H2
を接続できる構造である。ラベルプリンタ1に接
続される第1、第2のはかりH1,H2は、本体a
の上方に秤量皿b、正面に図示しないキーボード
および表示器をそれぞれ備えている。そして、予
めキーボードによつて単価重量当りの単価を設定
した後、秤量皿bに被計量物を載せると、その被
計量物の重量を計測するとともに、重量と単価と
から値段を演算し、それらの各データつまり単
価、重量および値段を表示器に表示する一方、前
記ラベルプリンタ1からの要求に従つてそれらの
各データをラベルプリンタ1へ伝送する機能をも
つものである。また、前記筐体2には、その正面
に操作パネル3が、上部にラベル発行口4および
台紙送出口5を有するカバー6がそれぞれ設けら
れている。前記操作パネル3には、第2図に示す
如く、複数種のスイツチ、キーおよびステータス
ランプがそれぞれ設けられている。すなわち、ス
イツチとしては電源スイツチ7、自動、手動およ
び定額の各ポジシヨンに対応するモードを選択す
るモード切換スイツチ8、ラベル発行スイツチ9
および6連のデジタルスイツチからなる日付設定
スイツチ10が設けられている。また、キーとし
ては前記第1のはかりH1に対応するプリント
キー11、前記第2のはかりH2に対応するプリ
ントキー12および合計キー13が設けられて
いる。さらに、ステータスランプとしては前記電
源スイツチ7がオン状態のときに点灯される電源
ランプ14、前記プリント、キー11,12
が押された際にその押されたキーに対応して点灯
される確認ランプ15,16およびラベルが無い
状態のとき点灯されるラベル異常検出ランプ17
がそれぞれ設けられている。
FIG. 1 shows the appearance of a label printer 1 according to an embodiment. This label printer 1 has a plurality of scales, for example, first and second scales H 1 and H 2 installed outside the housing 2.
It has a structure that allows connection of The first and second scales H 1 and H 2 connected to the label printer 1 are connected to the main body a.
A weighing plate b is provided above the weighing plate b, and a keyboard and display (not shown) are provided on the front. After setting the unit price per weight using the keyboard in advance, when the object to be weighed is placed on the weighing pan b, the weight of the object to be weighed is measured, the price is calculated from the weight and the unit price, and the price is calculated from the weight and unit price. It has a function of displaying each data, that is, unit price, weight, and price, on a display, and transmitting each of these data to the label printer 1 in accordance with a request from the label printer 1. Further, the casing 2 is provided with an operation panel 3 on the front thereof, and a cover 6 having a label issuing port 4 and a mount paper delivery port 5 on the top thereof. As shown in FIG. 2, the operation panel 3 is provided with a plurality of types of switches, keys, and status lamps. In other words, the switches include a power switch 7, a mode changeover switch 8 for selecting a mode corresponding to each of automatic, manual and fixed amount positions, and a label issue switch 9.
A date setting switch 10 consisting of six digital switches is also provided. Further, as keys, a print key 11 corresponding to the first scale H1 , a print key 12 corresponding to the second scale H2 , and a total key 13 are provided. Furthermore, status lamps include a power lamp 14 that is lit when the power switch 7 is in the on state;
Confirmation lamps 15 and 16 that are lit in response to the pressed key when is pressed, and a label abnormality detection lamp 17 that is lit when there is no label.
are provided for each.

第3図は前記ラベルプリンタ1の筐体2の内部
構造を示している。この筐体2の内部には、後部
一側壁にブザー21が取付けられているととも
に、後部他側寄りの帯状の台紙22をロール状に
して巻付けたリール23が、前記他側寄りに前記
リール23から引出された台紙22の両面を挟持
して送り出す一対の送りローラ24,25がそれ
ぞれ設けられている。一方の送りローラ25は、
ラベル送りモータ26によつて回転し、他方の送
りローラ24との間に挟持した台紙22を、案内
板27に沿つて前記台紙送出口5へ送り出す。ま
た、前記リール23と一対の送りローラ24,2
5との間には、案内板28と、この案内板28に
沿つて案内された台紙22を鋭角的に屈曲させ、
その外表面に一定のピツチ毎に粘着されたラベル
29を台紙22から剥離し、投光器および受光器
からなるラベル検出器30の光軸を通して前記ラ
ベル発行口4へ投出する剥離体31とがそれぞれ
設けられている。ラベル検出器30は、投光器お
よび受光器の光軸がラベル29によつて遮断され
たときラベル検出信号LDを出力する。また、剥
離体31に対向する位置には、ラベル29との間
にリボン32が通る間〓を介してドツド式の印字
ヘツド33が設けられている。また、リボン32
の両端は、リボンエンド検出装置34を介して、
リボン送りモータ35が正転(同図中時計方向)
時にその回転が伝達されるスプール36と、リボ
ン送りモータ35が逆転(同図中反時計方向)時
にその回転が伝達されるスプール37とに巻着さ
れている。
FIG. 3 shows the internal structure of the casing 2 of the label printer 1. As shown in FIG. Inside this housing 2, a buzzer 21 is attached to one rear side wall, and a reel 23 in which a band-shaped mount 22 is wound in a roll shape is attached to the other side of the rear side. A pair of feed rollers 24 and 25 are provided, respectively, to sandwich and feed both sides of the mount 22 pulled out from the mount 23. One feed roller 25 is
It is rotated by a label feed motor 26 and sends out the mount 22 held between it and the other feed roller 24 to the mount paper outlet 5 along a guide plate 27. Further, the reel 23 and a pair of feed rollers 24, 2
5, a guide plate 28 and a mount 22 guided along the guide plate 28 are bent at an acute angle,
A peeling body 31 peels off the labels 29 adhered to the outer surface at regular intervals from the mount 22 and projects them into the label issuing port 4 through the optical axis of the label detector 30 consisting of a light emitter and a light receiver. It is provided. The label detector 30 outputs a label detection signal LD when the optical axes of the emitter and receiver are blocked by the label 29. Further, a dot-type printing head 33 is provided at a position facing the peeling body 31 with a gap between the ribbon 32 and the label 29. Also, ribbon 32
Both ends of the ribbon are detected through the ribbon end detection device 34
Ribbon feed motor 35 rotates forward (clockwise in the figure)
It is wound around a spool 36 to which the rotation is transmitted at times, and a spool 37 to which the rotation is transmitted when the ribbon feed motor 35 is reversed (counterclockwise in the figure).

前記リボンエンド検出装置34は、第4図およ
び第5図に示す如く、フレーム41に前記印字ヘ
ツド33とスプール36との間および印字ヘツド
33とスプール37との間においてそれぞれリボ
ン32と接する一対の固定ローラ42a,42
b、43a,43bが回動自在に固定されている
とともに、その固定ローラ42a,43aと固定
ローラ42a,42bとの間にテンシヨンレバー
44が前記リボン32の張設方向に対して略直角
方向へ摺動自在に設けられている。テンシヨンレ
バー44には、前記フレーム41に螺合されたガ
イド支柱45に対して、摺動する長孔46が形成
されているとともに、一端部および略中間部に前
記固定ローラ42a,42b、43a,43bに
接したリボン32を、その張設方向に対して略直
角方向へ蛇行させるテンシヨンローラ47,48
が回動自在に固定されている。そして、テンシヨ
ンレバー44は、テンシヨンローラ48と前記ガ
イド支柱45との間に張設されたスプリング49
により常時一端側へ付勢された状態にあるが、ス
プール36,37のいずれかの回転によつてリボ
ン32がスプール36,37の巻端に達すると、
そのときの張力の増大によつて他方向へ変位し、
その先端を投光器および受光器からなるリボンエ
ンド検出器50の光軸上に進入させるように動作
させる。このとき、リボンエンド検出器50から
はリボンエンド検出信号RDが出力されるように
なつている。
As shown in FIGS. 4 and 5, the ribbon end detection device 34 includes a pair of ribbon end detecting devices that are in contact with the ribbon 32 between the print head 33 and the spool 36 and between the print head 33 and the spool 37, respectively, on the frame 41. Fixed rollers 42a, 42
b, 43a, 43b are rotatably fixed, and a tension lever 44 is provided between the fixed rollers 42a, 43a and the fixed rollers 42a, 42b in a direction substantially perpendicular to the direction in which the ribbon 32 is stretched. It is provided so that it can slide freely. The tension lever 44 is formed with a long hole 46 that slides on the guide column 45 screwed onto the frame 41, and has the fixed rollers 42a, 42b, 43a at one end and approximately in the middle. , 43b, tension rollers 47, 48 that meander the ribbon 32 in contact with the ribbons 32 in a direction substantially perpendicular to the tensioning direction thereof.
is rotatably fixed. The tension lever 44 has a spring 49 stretched between the tension roller 48 and the guide column 45.
However, when the ribbon 32 reaches the winding end of the spools 36, 37 due to the rotation of either of the spools 36, 37,
Due to the increase in tension at that time, it is displaced in the other direction,
The tip is operated so as to enter onto the optical axis of the ribbon end detector 50 consisting of a light emitter and a light receiver. At this time, the ribbon end detector 50 outputs a ribbon end detection signal RD.

第6図は、前記ラベルプリンタ1の回路構成を
示している。この第6図中51は中央処理装置
CPUである。そして、CPU51は、プリント終
了検出手段、反転手段および制御手段としての機
能を有し、また、CPU51には、アドレスバス
およびデータバス52を通じて、I/Oユニツト
53,54、インプツトポート55,56、リー
ドオンメモリROM57および上記の各チツプを
選択するチツプセレクタ58がそれぞれ接続され
ているとともに、前記リボンエンド検出器50か
らのリボンエンド検出信号RDおよび前記ラベル
検出器30からのラベル検出信号LDが与えられ
るようになつている。前記I/Oユニツト53に
は、内部に前記CPU51からのタイマーセツト
信号TSによつてセツトされ設定時間(約10ms)
経過後、前記CPU51へ割込信号TWを与えるキ
ースキヤンタイマー61が内蔵されているととも
に、外部に前記ブザー21、ステータスランプ
(確認ランプ、ラベル異常検出ランプ等)、リボン
送りモータ35、ラベル送りモータ26、印字ヘ
ツド33をそれぞれ駆動させるドライバー回路6
2,63,64,65,66が接続されている。
また、前記I/Oユニツト54には、内部にラン
ダムアクセスメモリRAM67が内蔵されている
とともに、外部に前記操作パネル3上の各種キー
やスイツチ類の操作に応じたコードデータを発生
するキーマトリツクス回路68および前記第1、
第2のはかりH1,H2を動作させるドライバー回
路69,70が接続されている。また、前記イン
プツトポート55,56には、前記胆1、第2の
はかりH1,H2からの出力データがフオトカプラ
71,72を介して与えられる。さらに、前記
ROM57には、第8図から第11図に示す処理
を実行させるプログラムが記憶されている。
FIG. 6 shows the circuit configuration of the label printer 1. As shown in FIG. 51 in this figure 6 is the central processing unit
It is the CPU. The CPU 51 has functions as print end detection means, inverting means, and control means.The CPU 51 also has I/O units 53, 54, input ports 55, 56 through an address bus and a data bus 52. , a lead-on memory ROM 57, and a chip selector 58 for selecting each of the chips described above are connected to each other, and a ribbon end detection signal RD from the ribbon end detector 50 and a label detection signal LD from the label detector 30 are connected. It's starting to be given. The I/O unit 53 is internally set by the timer set signal TS from the CPU 51 for a set time (approximately 10 ms).
There is a built-in key scan timer 61 that gives an interrupt signal TW to the CPU 51 after the elapsed time, and externally the buzzer 21, status lamps (confirmation lamp, label abnormality detection lamp, etc.), ribbon feed motor 35, and label feed motor. 26, driver circuit 6 for driving each print head 33
2, 63, 64, 65, and 66 are connected.
The I/O unit 54 also has a built-in random access memory RAM 67, and an external key matrix that generates code data according to the operations of various keys and switches on the operation panel 3. circuit 68 and said first;
Driver circuits 69 and 70 for operating the second scales H 1 and H 2 are connected. Furthermore, output data from the first and second scales H 1 and H 2 are applied to the input ports 55 and 56 via photocouplers 71 and 72. Furthermore, the above
The ROM 57 stores a program for executing the processes shown in FIGS. 8 to 11.

前記I/Oユニツト54内のROM67には、
第7図に示す如く、予め定められたアドレスに各
種フラグ、レジスタおよびメモリ等が割付けられ
ている。前記フラグとしては、前記CPU51が
前記第1、第2のはかりH1,H2からのプリント
指令を受けたとき、“1”にセツトされるコマン
ド受信フラグCPF、前記第1、第2のはかりH1
H2からの出力データを取込んだ際、そのデータ
が第1のはかりH1からのデータであるか、第2
のはかりH2からのデータであるかを識別するデ
ータ識別フラグDAF、前記合計キー13が押さ
れたとき、“1”にセツトされる合計キーフラグ
TOFおよびリボンの送り方向を識別する識別手
段であるリボン送り方向識別フラグSPFがある。
また、前記レジスタとしては、演算に供されるワ
ーキングレジスタWORがある。さらに、前記メ
モリとしては、前記第1、第2のはかりH1,H2
からの出力データを取込んだ際そのデータを格納
するデータ格納メモリDAM、そのデータ格納メ
モリDAMに格納されたデータのうち、前記印字
ヘツド33によつて印字するプリントデータを編
集するプリントバツフアメモリ(PBM)、前記操
作パネル3上の各種キーが押された際に、押され
たキーのコードデータを記憶するキーバツフアメ
モリKBM、前記日付設定スイツチ10によつて
設定されるデータを記憶する設定データ格納メモ
リDGM、前記第1、第2のはかりH1,H2から
の値段データをそれぞれ集計記憶する第1、第2
の合計メモリTO1M,TO2Mおよび第1、第2の
はかりH1,H2の処理点数を記憶する第1、第2
の点数メモリCO1M,CO2M等がある。なお、前
記設定データ格納メモリDGMには、通常年2
桁、月2桁、日2桁が設定されるが、年データの
場合1年に1回の変更であるため、本実施例では
その年2桁に対応するデジタルスイツチ10aに
より定額モードにおけるカウントデータが記憶さ
れるようになつている。このほか、RAM67に
は、ブザー21がオンのとき“1”に、オフのと
き“0”に設定されるブザーオンオフフラグ
BUFが設けられている。
The ROM 67 in the I/O unit 54 includes:
As shown in FIG. 7, various flags, registers, memories, etc. are allocated to predetermined addresses. The flags include a command reception flag CPF that is set to "1" when the CPU 51 receives a print command from the first and second scales H 1 and H 2 ; H1 ,
When importing output data from H 2 , whether the data is from the first scale H 1 or the second
A data identification flag DAF that identifies whether the data is from the scale H2 ; a total key flag that is set to "1" when the total key 13 is pressed;
There is a ribbon feeding direction identification flag SPF which is an identification means for identifying TOF and the ribbon feeding direction.
Further, as the register, there is a working register WOR used for calculations. Furthermore, as the memory, the first and second scales H 1 and H 2
a data storage memory DAM that stores the data when output data is taken in from the printer; and a print buffer memory that edits the print data to be printed by the print head 33 among the data stored in the data storage memory DAM. (PBM), a key buffer memory KBM that stores the code data of the pressed key when various keys on the operation panel 3 are pressed; and a key buffer memory KBM that stores the data set by the date setting switch 10. Setting data storage memory DGM, first and second scales that aggregate and store price data from the first and second scales H1 and H2 , respectively;
The first and second scales store the total memories TO 1 M, TO 2 M and the number of processing points of the first and second scales H 1 and H 2 .
There are point memory CO 1 M, CO 2 M, etc. Note that the setting data storage memory DGM normally contains
Digit, 2 digits for the month, and 2 digits for the day are set, but in the case of yearly data, it is changed once a year, so in this embodiment, the count data in the flat rate mode is set by the digital switch 10a corresponding to the 2 digits of the year. is beginning to be remembered. In addition, the RAM 67 contains a buzzer on/off flag that is set to "1" when the buzzer 21 is on and "0" when it is off.
A BUF is provided.

次に、本ラベルプリンタ1の作用を第8図から
第11図に示すフローチヤートに沿つて説明す
る。いま、電源スイツチ7がオンされると、
CPU51は、第8図のメインルーチンに示す如
く、初期条件を設定し(ステツプ1)、I/Oユ
ニツト53,54をクリアし(ステツプ2)、
RAM67をクリアし(ステツプ3)、リボン3
2を一定量送る(ステツプ4)。このとき、リボ
ン送り方向識別フラグSPFが“1”であればリボ
ン送りモータ35を一定時間正回転させ、またリ
ボン送り方向識別フラグSPFが“0”であればリ
ボン送りモータ35を一定時間逆回転させること
により、リボン32のたるみを吸収する。続い
て、タイマーセツト信号HSをI/Oユニツト5
3へ与え、キースキヤンタイマー61をセツトし
た後(ステツプ5)、ステツプ6以降のループを
繰返す。このステツプ6以降のループを繰返し処
理している過程において、キースキヤンタイマー
61が設定時間(約10msの時間)経過すると、
そのキースキヤンタイマー61から割込信号TW
がCPU51へ与えられる。すると、CPU51は、
第9図のタイマー割込処理を実行した後、再び第
8図のメインルーチンへ戻り引続き処理を続行す
る。タイマー割込処理では、キーが押されたか否
か(ステツプ31)、コマンド受信フラグCMFが
“1”であるか否か(ステツプ32)、ブザー21
がオンであるか否か(ステツプ33)を順に判断
し、それらがいずれも否の場合には、直接キース
キヤンタイマー61を再セツトする(ステツプ3
4)。したがつて、タイマー割込処理の最後にキ
ースキヤンタイマー61が再セツトされるため、
そのキースキヤンタイマー61の設定時間経過す
る毎にタイマー割込処理が実行されることにな
る。
Next, the operation of the present label printer 1 will be explained along the flowcharts shown in FIGS. 8 to 11. Now, when the power switch 7 is turned on,
As shown in the main routine of FIG. 8, the CPU 51 sets initial conditions (step 1), clears the I/O units 53 and 54 (step 2),
Clear RAM67 (step 3) and ribbon 3
2 is sent by a certain amount (step 4). At this time, if the ribbon feed direction identification flag SPF is "1", the ribbon feed motor 35 is rotated in the forward direction for a certain period of time, and if the ribbon feed direction identification flag SPF is "0", the ribbon feed motor 35 is rotated in the reverse direction for a certain period of time. By doing so, the slack of the ribbon 32 is absorbed. Next, the timer set signal HS is sent to the I/O unit 5.
3 and sets the key scan timer 61 (step 5), the loop from step 6 onwards is repeated. In the process of repeating the loop from step 6 onwards, when the key scan timer 61 has elapsed for the set time (approximately 10 ms),
Interrupt signal TW from the key scan timer 61
is given to the CPU 51. Then, the CPU 51
After executing the timer interrupt process shown in FIG. 9, the process returns to the main routine shown in FIG. 8 to continue the process. In the timer interrupt process, it is determined whether a key is pressed (step 31), whether the command reception flag CMF is "1" (step 32), and whether the buzzer 21
is on (step 33), and if both are negative, directly resets the key scan timer 61 (step 3).
4). Therefore, since the key scan timer 61 is reset at the end of the timer interrupt process,
Timer interrupt processing is executed every time the set time of the key scan timer 61 elapses.

そこで、具体的な使用方法を説明する。使用方
法には、モード切換スイツチ8によつて選択され
る3つの業務、つまり第1のはかりH1または第
2のはかりH2から送られてくるデータをラベル
29に自動的にプリントして発行する自動発行業
務、プリントキー11またはプリントキー1
2を押す毎に押されたキーに対応する第1のはか
りH1または第2のはかりH2からのデータをラベ
ル29にプリントして発行する手動発行業務およ
びプリントキー11またはプリントキー12
を押す毎に押されたキーに対応する第1、第2の
はかりH1,H3においてキーボードより置数され
たデータを値段としてラベル29にプリントして
発行する定額発行業務のほかに、上記各業務にお
いて集計されたデータをラベルにプリントして発
行する態様がある。
Therefore, a specific usage method will be explained. The method of use involves automatically printing and issuing the data sent from the first scale H1 or the second scale H2 on a label 29, which is selected by the mode changeover switch 8. Automatic issuance of print key 11 or print key 1
2. Manual issuing task of printing and issuing data from the first scale H1 or second scale H2 corresponding to the pressed key on a label 29 each time 2 is pressed, and print key 11 or print key 12.
In addition to the fixed amount issuance business in which the data entered from the keyboard on the first and second scales H 1 and H 3 corresponding to the key pressed each time is printed as a price on the label 29, the above-mentioned There is a mode in which the data compiled in each business is printed on a label and issued.

自動発行業務の場合には、モード切換スイツチ
8の自動のポジシヨンに切換える。すると、第8
図のメインルーチンのステツプ6以降のループに
おいて、キーバツフアメモリKBMにコードデー
タがあるか(ステツプ6)、モード切換スイツチ
8が自動モードかをそれぞれ判断し(ステツプ
8)、このステツプ8の結果、自動モードのコー
ドを第1、第2のはかりH1,H2へ送り(ステツ
プ15)、第1のはかりH1からプリント指令があ
るか(ステツプ16)、第2のはかりH2からプリ
ント指令があるかをを順に判断する(ステツプ1
7)。ここで、第1、第2のはかりH1,H2のい
ずれからもプリント指令がないと、ステツプ12
の判断の結果によつてステツプ13またはステツ
プ14の処理を行なつた後ステツプ6へ戻る。し
たがつて、この場合には、ステツプ6,8,1
5,16,17,12,13(または14)のル
ープを繰返し処理するとともに、キースキヤンタ
イマー61が設定時間経過する毎にタイマー割込
処理を実行している状態にある。
In the case of automatic issuance work, the mode changeover switch 8 is switched to the automatic position. Then, the 8th
In the loop after step 6 of the main routine shown in the figure, it is determined whether there is code data in the key buffer memory KBM (step 6) and whether mode changeover switch 8 is in automatic mode (step 8), and the result of step 8 is determined. , sends the automatic mode code to the first and second scales H 1 and H 2 (step 15), and checks if there is a print command from the first scale H 1 (step 16), then prints from the second scale H 2. Determine whether there is a command (Step 1)
7). Here, if there is no print command from either the first or second scale H 1 or H 2 , step 12 is executed.
After performing the processing in step 13 or 14 depending on the result of the judgment, the process returns to step 6. Therefore, in this case, steps 6, 8, 1
5, 16, 17, 12, and 13 (or 14) are repeatedly processed, and the key scan timer 61 executes timer interrupt processing every time a set time elapses.

ここで、第1のはかりH1または第2のはかり
H2において、キーボードにより単位重量当りの
単価を設定した後、秤量皿bに被計量物を載せる
と、その被計量物の重量が計測されるとともに、
単価データと重量データとから値段が演算され、
それらのデータが表示器に表示された後、プリン
ト指令がラベルプリンタ1に対して送られる。
Here, the first scale H 1 or the second scale
In H 2 , after setting the unit price per unit weight using the keyboard, when the object to be weighed is placed on weighing pan b, the weight of the object is measured, and
The price is calculated from the unit price data and weight data,
After these data are displayed on the display, a print command is sent to the label printer 1.

いま、第1のはかりH1からプリント指令が送
られると、それをステツプ16において判断した
後、コマンド受信フラグCMFを“1”にセツト
(ステツプ21)、データ識別フラグDAFを“1”
にセツトし(ステツプ22)、第1のはかりH1
らのデータつまり単価、重量および値段を各デー
タを取込みデータ格納メモリDAMへ格納する
(ステツプ23)。また、第2のはかりH2からプ
リント指令が送られると、それをステツプ17に
おいて判断した後、コマンド受信フラグCMFを
“1”にセツトし(ステツプ18)、データ識別フ
ラグCAFを“0”にリセツトし(ステツプ1
9)、第2のはかりH2からのデータを取込みデー
タ格納メモリDAMへ格納する(ステツプ20)。
このとき、第1のはかりH1または第2のはかり
H2からのプリント指令に基づきコマンド受信フ
ラグCMFがセツトされると、キースキヤンタイ
マー61の設定時間経過後、タイマー割込処理へ
入つたとき、ステツプ32の判断の結果、ブザー
21をオン(ブザーオンオフフラグBUFを“1”
にセツト)し(ステツプ36)、コマンド受信フ
ラグCMFを“0”にリセツトした(ステツプ3
7)後、ステツプ34の処理を行なう。これによ
り、再度タイマー割込処理へ入つたとき、コマン
ド受信フラグCMFが“0”にリセツトされ、ブ
ザー21がオン(ブザーオンオフフラグBUFが
“1”によつて判断)であるから、ステツプ31,
32,33に判断の結果、ブザー21をオフ(ブ
ザーオンオフフラグBUF“0”にリセツト)した
後(ステツプ38)、ステツプ34の処理を行な
う。したがつて、第1のはかりH1または第2の
はかりH2からプリント指令が与えられると、キ
ースキヤンタイマー61の設定時間(約10ms)
の間ブザー21が鳴つているため、後述するステ
ツプ25,73の判断においてラベル発行スイツ
チ9がオフつまりラベルを発行させない場合で
も、実際に処理が行なわれていることを知らせる
ことができる。このようにして、いずれか一方の
はかりH1,H2からのデータがデータ格納メモリ
DAMへ格納されると、次にデータ格納メモリ
DAMのデータつまりプリントデータをプリント
バツフアメモリPBMへセツトし(ステツプ2
4)、ラベル発行スイツチ9がオンであるか否か
を判断する(ステツプ25)。このとき、ラベル
発行スイツチ9がオンでなければラベル29を発
行ることなく直接ステツプ27の処理へ進むが、
ラベル発行スイツチ9がオンであればラベル発行
処理を行なう(ステツプ26)。
Now, when a print command is sent from the first scale H1 , it is determined in step 16, and then the command reception flag CMF is set to "1" (step 21), and the data identification flag DAF is set to "1".
(Step 22), and the data from the first scale H1 , that is, the unit price, weight, and price, are taken in and stored in the data storage memory DAM (Step 23). When a print command is sent from the second scale H2 , it is determined in step 17, and then the command reception flag CMF is set to "1" (step 18), and the data identification flag CAF is set to "0". Reset (Step 1)
9), the data from the second scale H2 is taken in and stored in the data storage memory DAM (step 20).
At this time, the first scale H 1 or the second scale
When the command reception flag CMF is set based on the print command from H2 , when the timer interrupt process is entered after the set time of the key scan timer 61 has elapsed, the buzzer 21 is turned on as a result of the judgment in step 32. On/off flag BUF is set to “1”
(step 36), and reset the command reception flag CMF to "0" (step 3).
7) After that, the process of step 34 is performed. As a result, when the timer interrupt process is entered again, the command reception flag CMF is reset to "0" and the buzzer 21 is on (determined by the buzzer on/off flag BUF being "1"), so step 31,
As a result of the determination in steps 32 and 33, the buzzer 21 is turned off (the buzzer on/off flag BUF is reset to "0") (step 38), and then the process of step 34 is performed. Therefore, when a print command is given from the first scale H1 or the second scale H2 , the setting time of the key scan timer 61 (approximately 10 ms)
Since the buzzer 21 is sounding during this time, it is possible to notify that the process is actually being performed even if the label issuing switch 9 is off in the judgments in steps 25 and 73 to be described later, that is, the label is not issued. In this way, data from either scale H 1 or H 2 is stored in the data storage memory.
Once stored in DAM, the data storage memory
Set the DAM data, that is, the print data, to the print buffer memory PBM (Step 2)
4) It is determined whether the label issue switch 9 is on (step 25). At this time, if the label issuing switch 9 is not on, the process proceeds directly to step 27 without issuing the label 29.
If the label issue switch 9 is on, label issue processing is performed (step 26).

ラベル発行処理は、第10図に示す如く、まず
リボン送り方向識別フラグSPFをチエツクし、そ
れが“1“であればリボン送りモータ35を正回
転させ、また“0”であればリボン送りモータ3
5を逆回転させ(ステツプ41)、リボン送りモ
ータ26の駆動によつて、ラベル送りを開始し
(ステツプ42)、プリントバツフアメモリPBM
のデータをI/Oユニツト53へ与え、それをド
ライバー回路66によつて制御される印字ヘツド
33によりラベル29にプリントさせる(ステツ
プ43)。プリントバツフアメモリPBMのデータ
がすべてI/Oユニツトに与えられることによ
り、プリント終了検出手段でプリントの終了が検
出されると(ステツプ44)、次にラベル送りモ
ータ26の駆動を停止させることによりラベル送
りを停止させた後(ステツプ45)、リボンエン
ド検出器50からリボンエンド検出信号RDがあ
るか否かを判断する(ステツプ46)。このとき、
リボンエンド検出信号RDがなければつまりリボ
ン32が終端でなければ直接ステツプ50の処理
へ進む。また、リボンエンド検出信号RDがあれ
ばつまりリボン32が終端に達していれば、続い
てリボン送り方向識別フラグSPFを反転手段で反
転するとともにブザー21をオン(ブザーオンオ
フフラグBUFを“1”にセツト)し(ステツプ
47)、リボン送り方向識別フラグSPFの状態に
よつてリボン送りモータ35を逆転または正転さ
せ(ステツプ48)、図示しないタイマーをセツ
トし(ステツプ49)、タイマーの設定時間経過
後リボン送りモータ35を停止しかつブザー21
をオフする(ステツプ50)。したがつて、ラベ
ル発行後、リボン32が終端に達していれば、リ
ボン32の送り方向が反転され一定時間予備送り
されるため、次のプリント時にはリボン32が円
滑に送られる状態となつている。また、この間、
ブザー21のオンによりオペレータに対してキー
操作の待期をうながす。
In the label issuing process, as shown in FIG. 10, first, the ribbon feed direction identification flag SPF is checked, and if it is "1", the ribbon feed motor 35 is rotated in the forward direction, and if it is "0", the ribbon feed motor 35 is rotated forward. 3
5 is reversely rotated (step 41), label feeding is started by driving the ribbon feeding motor 26 (step 42), and the print buffer memory PBM is
The data is applied to the I/O unit 53 and printed on the label 29 by the print head 33 controlled by the driver circuit 66 (step 43). When all the data in the print buffer memory PBM is given to the I/O unit and the end of printing is detected by the print end detection means (step 44), the drive of the label feed motor 26 is stopped. After label feeding is stopped (step 45), it is determined whether or not there is a ribbon end detection signal RD from the ribbon end detector 50 (step 46). At this time,
If there is no ribbon end detection signal RD, that is, if the ribbon 32 is not at the end, the process directly advances to step 50. If there is a ribbon end detection signal RD, that is, if the ribbon 32 has reached the end, then the ribbon feeding direction identification flag SPF is inverted by the inverting means and the buzzer 21 is turned on (the buzzer on/off flag BUF is set to "1"). (step 47), rotates the ribbon feed motor 35 in reverse or forward direction depending on the state of the ribbon feed direction identification flag SPF (step 48), sets a timer (not shown) (step 49), and causes the set time of the timer to elapse. Stop the rear ribbon feed motor 35 and turn on the buzzer 21.
is turned off (step 50). Therefore, if the ribbon 32 reaches the end after the label is issued, the feeding direction of the ribbon 32 is reversed and the ribbon 32 is preliminary fed for a certain period of time, so that the ribbon 32 can be fed smoothly during the next printing. . Also, during this time,
Turning on the buzzer 21 prompts the operator to wait for key operation.

この後、データ識別フラグDAFをチエツクし
(ステツプ27)、それが“1”であれば第1の合
計メモリTO1Mにプリントデータの値段データ
を、第1の点数メモリCO1Mに“1”をそれぞれ
加算し、また“0”であれば第2の合計メモリ
TO2Mにプリントデータの値段データを、第2の
点数メモリCO2Mに“1”をそれぞれ加算した
後、ラベル検出器30からラベル検出信号LDが
あるか否かを判断する(ステツプ12)。ここで、
ラベル検出信号LDがあればつまりラベル29が
正常であれば、ラベル異常検出ランプ17を消灯
させる処理(ステツプ13)を、ラベル検出信号
LDがなければ、ラベル異常検出ランプ17を点
灯させる処理(ステツプ14)を行なつた後、ス
テツプ6のキーインへ戻る。
After this, the data identification flag DAF is checked (step 27), and if it is "1", the price data of the print data is stored in the first total memory TO 1 M, and "1" is stored in the first point memory CO 1 M. ” are added respectively, and if it is “0”, the second total memory
After adding the price data of the print data to TO 2 M and adding "1" to the second point memory CO 2 M, it is determined whether or not there is a label detection signal LD from the label detector 30 (step 12). . here,
If the label detection signal LD is present, that is, if the label 29 is normal, the process (step 13) of turning off the label abnormality detection lamp 17 is performed using the label detection signal LD.
If there is no LD, the process of lighting the label abnormality detection lamp 17 (step 14) is performed, and then the process returns to step 6, key-in.

したがつて、自動発行業務の場合には、第1の
はかりH1または第2のはかりH2からプリント指
令を受ける毎に、ラベル発行スイツチ9がオンで
あることを条件として、はかりH1,H2からのデ
ータをラベル29に自動的にプリントするととも
に、その値段データを第1または第2の合計メモ
リTO1M,TO2Mへ、点数データを第1または第
2の点数メモリCO1M,CO2Mへそれぞれ加算処
理することになる。また、ラベル発行スイツチ9
がオフであれば、ラベルが発行されないが、値段
データおよび点数データの集計だけは行なわれ
る。
Therefore, in the case of automatic issuing work, each time a print command is received from the first scale H1 or the second scale H2 , the label issuing switch 9 is turned on. The data from H 2 is automatically printed on the label 29, and the price data is sent to the first or second total memory TO 1 M, TO 2 M, and the score data is sent to the first or second score memory CO 1 Addition processing will be performed to M and CO 2 M respectively. In addition, the label issue switch 9
If is off, no labels will be issued, but only price data and point data will be aggregated.

手動発行業務の場合には、モード切換スイツチ
8を手動のポジシヨンに切換える。すると、第8
図のメインルーチンのステツプ6以降のループに
おいて、ステツプ6,8,9の判断後、手動モー
ドのコードを第1、第2のはかりH1,H2へ送り
(ステツプ10)、次にステツプ12の判断によつ
てステツプ13またはステツプ14の処理を行な
つた後ステツプ6へ戻る。従つて、この場合に
は、ステツプ6,8,9,10,12,13(ま
たは14)のループを繰返し処理するとともに、
キースキヤンタイマー61が設定時間経過する毎
にタイマー割込処理を実行している状態にある。
In the case of manual issuance work, the mode changeover switch 8 is switched to the manual position. Then, the 8th
In the loop after step 6 of the main routine in the figure, after the judgments in steps 6, 8, and 9, the manual mode code is sent to the first and second scales H 1 and H 2 (step 10), and then in step 12. After performing the processing in step 13 or 14 depending on the judgment, the process returns to step 6. Therefore, in this case, the loop of steps 6, 8, 9, 10, 12, 13 (or 14) is repeatedly processed, and
The key scan timer 61 is in a state in which timer interrupt processing is executed every time a set time elapses.

ここで、第1、第2のはかりH1,H2のいずれ
か、例えば第2のはかりH2において重量測定後、
そのデータをプリントする際にはプリントキー
12を押す。すると、第9図のタイマー割込処理
において、ステツプ31の判断の結果、押された
キーつまりプリントキー12のコードデータを
キーバツフアメモリKBMへ格納し(ステツプ3
5)、ステツプ36,37,34の処理を行なう。
この後、第8図のメインルーチンにおける処理を
続行するが、キースキヤンタイマー61が設定時
間経過後再びタイマー割込処理へ戻ると、ステツ
プ31,32の判断の後、ステツプ33の判断に
おいてブザー21がオンであるため、次に、ブザ
ー21をオフした後(ステツプ38)、ステツプ
34の処理を行なう。したがつて、キーが押され
ると、一定周期のタイマー割込処理に同期してキ
ーの確認音が発せられることになる。一方、第8
図のメインルーチンにおける処理を続行する際、
ステツプ6の判断においてキーバツフアメモリ
KBMにコードデータがあるため、次にキー処理
へ進むことになる(ステツプ7)。
Here, after measuring the weight at either the first or second scale H 1 or H 2 , for example, the second scale H 2 ,
To print the data, press the print key 12. Then, in the timer interrupt process shown in FIG.
5), perform the processing of steps 36, 37, and 34.
Thereafter, the processing in the main routine of FIG. 8 continues, but when the key scan timer 61 returns to the timer interrupt processing again after the set time has elapsed, the buzzer 21 is activated in the judgment in step 33 after the judgments in steps 31 and 32. Since this is on, the buzzer 21 is turned off (step 38), and then the process of step 34 is performed. Therefore, when a key is pressed, a key confirmation sound is emitted in synchronization with the timer interrupt processing at a constant period. On the other hand, the 8th
When continuing processing in the main routine shown in the figure,
The key buffer memory is determined in step 6.
Since the KBM has code data, the next step is key processing (step 7).

キー処理では、第11図に示す如く、まずキー
バツフアメモリKBMのコードデータを読み出し
た後(ステツプ51)、そのコードデータがプリ
ントキー11であるか(ステツプ52)、プリ
ントキー12であるか(ステツプ53)、合計
キー13であるか(ステツプ54)を順番に判断
する。この場合、プリントキー12であるか
ら、次にデータ識別フラグDAFを“0”にリセ
ツトした後(ステツプ56)、合計キーフラグ
TOFが“1”であるか否かを判断する(ステツ
プ57)。この場合、合計キーフラグTOFが
“0”つまり合計キー13が押されていないため、
次にモード切換スイツチ8が自動モードであるか
を判断する(ステツプ63)。モード切換スイツ
チ8は手動モードであるから、続いて、プリント
要求コードを第2のはかりH2へ送つた後(ステ
ツプ64)、第2のはかりH2からプリント指令が
あるか否かを判断する(ステツプ65)。ここで、
第2のはかりH2においては、重量測定前にラベ
ルプリンタ1からプリント要求コードを受けた場
合プリント指令を出すことはないが、重量測定後
であればプリント要求コードに対してプリント指
令を送る。すると、そのステツプ65の判断にお
いてプリント指令が送られたことを検知すると、
コマンド受信フラグCMFを“1”にセツトし
(ステツプ66)、第2のはかりH2からのデータ
を取り込みデータ格納メモリDAMへ格納し(ス
テツプ67)、モード切換スイツチ8が定額モー
ドであるかを判断する(ステツプ68)。モード
切換スイツチ8は手動モードであるから、次のデ
ータ格納メモリDAMのデータつまり単価、重量
および値段の各データをプリントデータとしてプ
リントバツフアメモリPBMへセツトした後(ス
テツプ69)、ラベル発行スイツチ9がオンであ
るか否かを判断する(ステツプ73)。ここで、
ラベル発行スイツチ9がオンでなければ直接ステ
ツプ75の処理へ進むが、ラベル発行スイツチ9
がオンであれば、ラベル発行処理(第10図)を
行つた後(ステツプ74)、第2の合計メモリ
TO2Mに値段データを、第2の点数メモリCO2M
に“1”をそれぞれ加算処理する(ステツプ7
5)。
In key processing, as shown in FIG. 11, after first reading the code data in the key buffer memory KBM (step 51), it is determined whether the code data is print key 11 (step 52) or print key 12. (Step 53), and whether it is the total key 13 (Step 54) is sequentially determined. In this case, the print key is 12, so after resetting the data identification flag DAF to "0" (step 56), the total key flag
It is determined whether TOF is "1" (step 57). In this case, the total key flag TOF is "0", that is, the total key 13 is not pressed, so
Next, it is determined whether the mode changeover switch 8 is in the automatic mode (step 63). Since the mode changeover switch 8 is in manual mode, next, after sending the print request code to the second scale H2 (step 64), it is determined whether or not there is a print command from the second scale H2 . (Step 65). here,
In the second scale H2 , if it receives a print request code from the label printer 1 before weight measurement, it does not issue a print command, but after weight measurement, it sends a print command in response to the print request code. Then, when it is detected in the judgment at step 65 that a print command has been sent,
The command reception flag CMF is set to "1" (step 66), the data from the second scale H2 is taken in and stored in the data storage memory DAM (step 67), and the mode selector switch 8 is checked to see if it is in the fixed rate mode. A judgment is made (step 68). Since the mode changeover switch 8 is in manual mode, after setting the next data in the data storage memory DAM, that is, unit price, weight, and price data as print data to the print buffer memory PBM (step 69), the label issue switch 9 is on (step 73). here,
If the label issue switch 9 is not on, the process will directly proceed to step 75;
is on, after performing the label issuing process (Figure 10) (step 74), the second total memory is
Price data in TO 2 M, second point memory CO 2 M
Add “1” to each (step 7)
5).

一方、第1のはかりH1からのデータをプリン
トするには、プリントキー11を押す。する
と、タイマー割込処理において、プリントキー
11のコードデータがキーバツフアメモリKBM
へ格納される。これにより、第11図のキー処理
では、ステツプ52の判断においてプリントキ
ー11を検知した後、データ識別フラグDAFを
“1”にセツトし(ステツプ76)、合計キーフラ
グTOFが“1”であるか(ステツプ77)、モー
ド切換スイツチ8が自動モードであるかを順に判
断する(ステツプ79)。ここでは、合計キーフ
ラグTOFが“0”モード切換スイツチ8が手動
モードであるから、次にプリント要求コードを第
1のはかりH1へ送つた後(ステツプ80)、第1
のはかりH1からプリント指令があるか否かを判
断する。その結果、第1のはかりH1からのプリ
ント指令があれば、続いてコマンド受信フラグ
(CMF)を“1”にセツトし(ステツプ82)、
第1のはかりH1からのデータを取込み、データ
格納メモリDAMへ格納した後(ステツプ83)、
ステツプ68の判断へ進むことになる。
On the other hand, to print the data from the first scale H1 , press the print key 11. Then, in the timer interrupt process, the code data of the print key 11 is stored in the key buffer memory KBM.
is stored in As a result, in the key processing shown in FIG. 11, after the print key 11 is detected in the determination at step 52, the data identification flag DAF is set to "1" (step 76), and the total key flag TOF is determined to be "1". (Step 77), and it is sequentially determined whether the mode changeover switch 8 is in the automatic mode (Step 79). Here, since the total key flag TOF is "0" and the mode changeover switch 8 is in manual mode, next, after sending the print request code to the first scale H1 (step 80),
It is determined from the scale H1 whether or not there is a print command. As a result, if there is a print command from the first scale H1 , then the command reception flag (CMF) is set to "1" (step 82),
After taking in the data from the first scale H1 and storing it in the data storage memory DAM (step 83),
The process then proceeds to step 68 for determination.

したがつて、手動発行業務の場合は、第1のは
かりH1または第2のはかりH2に被計量物を載せ
た後、そのはかりに対応するプリントキー11
またはプリントキー12を押せば、ラベル発行
スイツチ9がオンであることを条件として、はか
るからのデータをラベルにプリントするととも
に、その値段データを第1または第2の合計メモ
リTO1M,TO2Mへ、点数データを第1または第
2の点数メモリCO1M,CO2Mへそれぞれ加算処
理することになる。また、ラベル発行スイツチ9
がオフであれば、ラベルが発行されないが、値段
データおよび点数データの集計だけは行なわれ
る。
Therefore, in the case of manual issuing work, after placing the object to be weighed on the first scale H1 or the second scale H2 , press the print key 11 corresponding to that scale.
Alternatively, if the print key 12 is pressed, the data from the scale will be printed on the label, provided the label printing switch 9 is on, and the price data will be stored in the first or second total memory TO 1 M, TO 2. Then, the point data is added to the first or second point memory CO 1 M, CO 2 M, respectively. In addition, the label issue switch 9
If is off, no labels will be issued, but only price data and point data will be aggregated.

定額発行業務の場合には、モード切換スイツチ
8を定額のポジシヨンに切換える。すると、第8
図のメインルーチンのステツプ6以降のループに
おいて、ステツプ6,8,9の判断後、定額モー
ドのコードを第1、第2のはかりH1,H2へ送
り、次のステツプ12の判断によつてステツプ1
3またはステツプ14の処理を行なつた後ステツ
プ6へ戻る(ステツプ11)。従つて、この場合
には、ステツプ6,8,9,11,12,13
(またはステツプ14)のループを繰返し処理す
るとともに、キースキヤンタイマー61が設定時
間経過する毎にタイマー割込処理を実行している
状態にある。
In the case of fixed amount issuing business, the mode changeover switch 8 is switched to the fixed amount position. Then, the 8th
In the loop after step 6 of the main routine shown in the figure, after the determination in steps 6, 8, and 9, the fixed amount mode code is sent to the first and second scales H 1 and H 2 , and then the determination in step 12 is made. Step 1
After performing the processing in step 3 or step 14, the process returns to step 6 (step 11). Therefore, in this case, steps 6, 8, 9, 11, 12, 13
(or step 14) is repeated, and the key scan timer 61 executes timer interrupt processing every time the set time elapses.

ここで、日付設定スイツチ10の年2桁に対応
するデジタルスイツチ10aによりカウントデー
タを設定した後、プリントキー11またはプリ
ントキー12を押す。すると、タイマー割込処
理において、押されたキーのコードデータがキー
バツフアメモリKBMへ格納される。これによ
り、第11図のキー処理においては、手動発行業
務と同様にプリントキー11またはプリント
キー12に基づく処理が行なわれる。ただ、この
定額発行業務の場合には、ステツプ98の判断に
おいてモード切換スイツチ8が定額モードである
ため、プリントデータこの場合単価データをプリ
ントバツフアメモリPBMへセツトし(ステツプ
70)、設定データ格納メモリDGMのカウント
データをプリントバツフアメモリPBMへセツト
し(ステツプ71)、定額ラベルのラベルネーム
例えば“定額”をプリントバツフアメモリPBM
へセツトした後(ステツプ72)、ステツプ73
の判断へ進む処理となる。
Here, after setting the count data using the digital switch 10a corresponding to the two-digit year of the date setting switch 10, the print key 11 or the print key 12 is pressed. Then, in the timer interrupt process, the code data of the pressed key is stored in the key buffer memory KBM. As a result, in the key processing shown in FIG. 11, processing based on print key 11 or print key 12 is performed in the same way as in the manual issuing operation. However, in the case of this fixed-rate issuing business, since the mode selector switch 8 is set to the fixed-rate mode as determined in step 98, the print data, in this case unit price data, is set in the print buffer memory PBM (step 70) and the setting data is stored. Set the count data of the memory DGM to the print buffer memory PBM (step 71), and set the label name of the flat rate label, for example "Flat rate", to the print buffer memory PBM.
After setting (step 72), step 73
The process proceeds to a decision.

したがつて、定額発行業務の場合には、はかり
からの単価データが値段としてプリントされ、か
つ日付設定スイツチ10によつて設定されたカウ
ントデータおよび定額ラベルのラベルネームがプ
リントされる点を除き、手動発行業務と同様であ
る。
Therefore, in the case of flat rate issuance business, the unit price data from the scale is printed as the price, and the count data set by the date setting switch 10 and the label name of the flat rate label are printed. This is the same as manual issuance work.

以上が自動発行業務、手動発行業務および定額
発行業務における処理であるが、これらの業務に
おいて値段および点数データは第1、第2の合計
メモリTO1M,TO2Mおよび第1、第2の点数メ
モリCO1M,CO2Mに順次集計記憶された状態に
ある。そこで、これらのデータをラベル29に印
字して発行する場合には、合計キー13とプリン
トキー11またはプリントキー12との操作
によつて行なわせることができる。なお、この場
合のモード切換スイツチ8はいずれのポジシヨン
でも可能である。
The above is the processing in the automatic issuance business, manual issuance business, and fixed amount issuance business. In these businesses, price and point data are stored in the first and second total memories TO 1 M, TO 2 M, and in the first and second memories. The scores are stored in the point memories CO 1 M and CO 2 M sequentially. Therefore, when these data are printed on the label 29 and issued, it can be done by operating the total key 13 and the print key 11 or the print key 12. Note that the mode changeover switch 8 in this case can be in any position.

まず。合計キー13を押す。すると、タイマー
割込処理において、合計キー13のコードデータ
がキーバツフアメモリKBMへ格納される。これ
により、キー処理では、ステツプ54の判断によ
り合計キーフラグTOFを“1”にセツトする
(ステツプ55)。
first. Press total key 13. Then, in the timer interrupt process, the code data of the total key 13 is stored in the key buffer memory KBM. As a result, in the key processing, the total key flag TOF is set to "1" based on the judgment made in step 54 (step 55).

続いて、プリントキー11およびプリント
キー12のいずれかを押す。すると、タイマー割
込処理において、押されたキーのコードデータが
キーバツフアメモリKBMへ格納される。これに
より、キー処理ではステツプ55,53の判断の
結果、ステツプ76,56の処理を行なつた後、
ステツプ77,57の判断を行なう。例えばプリ
ントキー12が押された場合には、合計キーフ
ラグTOFが“1”にセツトされているため、次
に、第2の合計メモリTO2Mと第2の点数メモリ
CO2MのデータをプリントバツフアメモリPBM
へセツトし(ステツプ78)、合計ラベルのラベ
ルネーム例えば“合計”をプリントバツフアメモ
リPBMへセツトし(ステツプ59)、ラベル発行
処理(第10図)を行ない(ステツプ60)、合
計キーフラグTOFを“0”にリセツトした後
(ステツプ61)、第2の合計メモリTO2Mおよび
第2の点数メモリCO2Mのデータクリアする(ス
テツプ62)。また、プリントキー11が押さ
れた場合には、合計キーフラグTOFがセツトさ
れているため、次に、第1の合計メモリTO1Mお
よび第1の点数メモリCO1Mのデータをプリント
バツフアメモリPBMへセツトした後、ステツプ
59,60,61,62の処理を行なう。
Subsequently, either the print key 11 or the print key 12 is pressed. Then, in the timer interrupt process, the code data of the pressed key is stored in the key buffer memory KBM. As a result, in key processing, as a result of the judgments in steps 55 and 53, after performing the processing in steps 76 and 56,
Judgments in steps 77 and 57 are made. For example, when the print key 12 is pressed, the total key flag TOF is set to "1", so next, the second total memory TO 2 M and the second score memory
Print buffer memory PBM for CO2M data
(Step 78), sets the label name of the total label, for example, "Total", in the print buffer memory PBM (Step 59), performs the label issuing process (Fig. 10) (Step 60), and sets the total key flag TOF. After resetting to "0" (step 61), the data in the second total memory TO 2 M and the second score memory CO 2 M are cleared (step 62). Furthermore, when the print key 11 is pressed, since the total key flag TOF is set, the data in the first total memory TO 1 M and the first score memory CO 1 M are transferred to the print buffer memory. After setting to PBM, steps 59, 60, 61, and 62 are performed.

したがつて、合計ラベルの発行に際しては、ま
ず合計キー13を押し、次にプリントキー11
またはプリントキー12を押せばよいから、第
1、第2のはかりH1,H2にそれぞれ対応して合
計キーを設ける必要がない。
Therefore, when issuing a total label, first press the total key 13, then press the print key 11.
Alternatively, since it is sufficient to press the print key 12, there is no need to provide total keys corresponding to the first and second scales H 1 and H 2 respectively.

上記実施例によれば、はかりH1,H2からのデ
ータをラベルプリンタ1でラベル29にプリント
する際に、リボン32の送り方向を記憶したリボ
ン送り方向識別フラグSPFの内容に従つてリボン
送りモータ35の駆動を制御し、プリント終了後
互いに異なる方向へ送られたリボン29がそれぞ
れのスプール36,37の巻端に達したことを検
知するリボンエンド検出信号があるとき、前記リ
ボン送り方向識別フラグSPFの内容を反転するよ
うにしたので、1つのリボンエンド検出装置34
によつてリボン32の送り方向を制御することが
でき、また反転されたリボン送り方向識別フラグ
SPFの内容に従つてリボン送りモータ35を一定
時間駆動させるようにしたので、つまりリボン3
2が巻端に達するとそのリボン32を一定時間逆
方向へ送るようにしたので、反転時にリボン32
に大きな張力が加わつている状態を防止できる。
According to the above embodiment, when the label printer 1 prints the data from the scales H 1 and H 2 on the label 29, the ribbon is fed according to the contents of the ribbon feeding direction identification flag SPF that stores the feeding direction of the ribbon 32. When there is a ribbon end detection signal that controls the drive of the motor 35 and detects that the ribbons 29 sent in different directions after printing have reached the winding ends of their respective spools 36 and 37, the ribbon feeding direction is identified. Since the contents of the flag SPF are inverted, only one ribbon end detection device 34 is required.
The feeding direction of the ribbon 32 can be controlled by the inverted ribbon feeding direction identification flag.
Since the ribbon feed motor 35 is driven for a certain period of time according to the contents of the SPF, in other words, the ribbon 3
When the ribbon 2 reaches the winding end, the ribbon 32 is sent in the opposite direction for a certain period of time.
This prevents large tension from being applied to the

なお、上記実施例では1個のリボン送りモータ
35によつてリボン32の送りおよびその送り方
向を制御するようにしたが、例えばそれぞれのス
プール36,37を別々のリボン送りモータによ
つて駆動するようにしてもよい。
In the above embodiment, the feeding of the ribbon 32 and its feeding direction are controlled by one ribbon feeding motor 35, but for example, each spool 36, 37 may be driven by a separate ribbon feeding motor. You can do it like this.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、ラベル一枚分のプリントが終
了した、すなわちプリント終了検出手段でプリン
トが終了したと検出された状態でリボンエンド検
出信号があるとき、反転手段で識別手段の内容を
反転し、反転された識別手段の内容に従つて一定
時間モータを駆動させることにより、反転時にリ
ボンに大きな張力が加わつている状態を防止する
ことができるので、特に、間欠的動作であるラベ
ルプリンタでは、リボンへの影響を防止できる。
According to the present invention, when printing for one label is completed, that is, when the print end detection means detects that printing has ended and there is a ribbon end detection signal, the reversing means inverts the contents of the identification means. By driving the motor for a certain period of time according to the contents of the reversed identification means, it is possible to prevent a state in which large tension is applied to the ribbon during reversal, so especially in a label printer that operates intermittently, This can prevent the ribbon from being affected.

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

図は本発明のラベルプリンタの一実施例を示す
もので、第1図はそのラベルプリンタの外観を示
す正面図、第2図は操作パネルを示す正面図、第
3図は第1図における−線断面図、第4図は
リボンエンド検出装置を示す平面図、第5図は第
4図における−線断面図、第6図は回路構成
を示すブロツク図、第7図はRAMの内容を示す
説明図、第8図はメインルーンのフローチヤー
ト、第9図はタイマー割込処理のフローチヤー
ト、第10図はラベル発行処理のフローチヤー
ト、第11図はキー処理のフローチヤートであ
る。 1…ラベルプリンタ、29…ラベル、32…リ
ボン、33…印字ヘツド、34…リボンエンド検
出装置、35…リボン送りモータ、36,37…
スプール、51…プリント終了検出手段、反転手
段および制御手段としての機能を有するCPU、
57…ROM、SPF…識別手段としてのリボン送
り方向識別フラグ、H1,H2…はかり。
The figures show an embodiment of the label printer of the present invention. FIG. 1 is a front view showing the external appearance of the label printer, FIG. 2 is a front view showing the operation panel, and FIG. 3 is the same as in FIG. 1. 4 is a plan view showing the ribbon end detection device, FIG. 5 is a sectional view taken along the - line in FIG. 4, FIG. 6 is a block diagram showing the circuit configuration, and FIG. 7 is a diagram showing the contents of the RAM. 8 is a flowchart of the main rune, FIG. 9 is a flowchart of timer interrupt processing, FIG. 10 is a flowchart of label issuing processing, and FIG. 11 is a flowchart of key processing. DESCRIPTION OF SYMBOLS 1... Label printer, 29... Label, 32... Ribbon, 33... Print head, 34... Ribbon end detection device, 35... Ribbon feed motor, 36, 37...
Spool, 51...CPU having functions as print end detection means, reversing means, and control means;
57...ROM, SPF...ribbon feeding direction identification flag as identification means, H1 , H2 ...scale.

Claims (1)

【特許請求の範囲】 1 はかりからデータが与えられる毎にそのデー
タをラベルにプリントして発行するラベルプリン
タであつて、 前記はかりからのデータをラベルにプリントす
る印字ヘツドと、 この印字ヘツドとラベルとの間に挿通される両
端がそれぞれスプールに巻着されたリボンと、 このリボンの送りおよびその送り方向を制御す
る少なくとも1以上のリボン送りモータと、 このリボン送りモータの駆動によつて互いに異
なる方向へ送られたリボンがそれぞれのスプール
の巻端に達したことを検知しリボンエンド検出信
号を出力するリボンエンド検出装置と、 前記リボン送りモータの駆動によつて送られる
リボン送り方向を記憶する識別手段と、 この識別手段に記憶されている内容を反転させ
る反転手段と、 プリントの終了を検出するプリント終了検出手
段と、 前記はかりからのデータをラベルにプリントす
る際前記識別手段の内容に従つて前記リボン送り
モータの駆動を制御し、前記プリント終了検出手
段ではかりから与えられたデータのプリント終了
が検出された状態で前記リボンエンド検出装置か
らのリボンエンド検出信号があるとき前記反転手
段で前記識別手段の内容を反転させた後、反転さ
れた識別手段の内容に従つて前記リボン送りモー
タを一定時間駆動させる制御手段と を備えたことを特徴とするラベルプリンタ。
[Scope of Claims] 1. A label printer that prints and issues data on a label every time data is given from a scale, comprising: a print head that prints data from the scale on a label; and the print head and the label. a ribbon whose both ends are wound around spools, and at least one or more ribbon feed motors that control the feeding of this ribbon and its feeding direction; a ribbon end detection device that detects when the ribbon fed in the direction reaches the winding end of each spool and outputs a ribbon end detection signal; and a ribbon end detection device that stores the ribbon feeding direction in which the ribbon is fed by driving the ribbon feeding motor. an identifying means; an inverting means for reversing the contents stored in the identifying means; a printing end detecting means for detecting the end of printing; and controls the drive of the ribbon feed motor, and when there is a ribbon end detection signal from the ribbon end detection device while the print end detection means detects the end of printing of the data given from the scale, the reversing means controls the ribbon feed motor. A label printer comprising: control means for inverting the content of the identification means and then driving the ribbon feed motor for a certain period of time according to the inverted content of the identification means.
JP10909881A 1981-07-13 1981-07-13 Label printer Granted JPS5811636A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10909881A JPS5811636A (en) 1981-07-13 1981-07-13 Label printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10909881A JPS5811636A (en) 1981-07-13 1981-07-13 Label printer

Publications (2)

Publication Number Publication Date
JPS5811636A JPS5811636A (en) 1983-01-22
JPH0331591B2 true JPH0331591B2 (en) 1991-05-07

Family

ID=14501527

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10909881A Granted JPS5811636A (en) 1981-07-13 1981-07-13 Label printer

Country Status (1)

Country Link
JP (1) JPS5811636A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60123336A (en) * 1983-12-07 1985-07-02 株式会社寺岡精工 Label printer

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5377662A (en) * 1976-12-21 1978-07-10 Omron Tateisi Electronics Co Handling and processing apparatus of postal matter
JPS5541278A (en) * 1978-09-19 1980-03-24 Nec Corp Ribbon change mechanism
JPS5565584A (en) * 1978-11-13 1980-05-17 Mitsubishi Electric Corp Printer
JPS55107491A (en) * 1979-02-09 1980-08-18 Hitachi Koki Co Ltd Printer ink ribbon inversion device
JPS55121090A (en) * 1979-03-09 1980-09-17 Hitachi Koki Co Ltd Ink ribbon reversal system of printer
DE3068283D1 (en) * 1979-04-20 1984-07-26 Autelca Ag Ink ribbon transporting and reversing device
JPS566123A (en) * 1979-06-27 1981-01-22 Tokyo Electric Co Ltd Label printer with totalizing function

Also Published As

Publication number Publication date
JPS5811636A (en) 1983-01-22

Similar Documents

Publication Publication Date Title
US4630067A (en) Bar code printer
US5344247A (en) Printing device
US4765765A (en) Label printer
JPH11268360A (en) Printing method and apparatus
US4516208A (en) Label issuing apparatus with programmable label feed
JPH0331591B2 (en)
US5684931A (en) Label printer, such as a thermal printer for printing labels
JPH021743B2 (en)
EP0052848B1 (en) Label issuing apparatus
JPS6230646B2 (en)
US5694526A (en) Postage meter having a dot matrix printer
JPS5811634A (en) Label printer
JPS644920B2 (en)
JPS5811632A (en) label printer
JPS5811635A (en) Label printer
JPH0146316B2 (en)
JPS6163473A (en) printer
JP2973735B2 (en) Printing device
JPH021739B2 (en)
JPS6366743B2 (en)
JPS57140183A (en) Tag printer
JPS5925260B2 (en) electronic cash register
JPS6361185B2 (en)
JPS6137664B2 (en)
JPH0529049B2 (en)