JPS63211495A - Inline system - Google Patents

Inline system

Info

Publication number
JPS63211495A
JPS63211495A JP62044552A JP4455287A JPS63211495A JP S63211495 A JPS63211495 A JP S63211495A JP 62044552 A JP62044552 A JP 62044552A JP 4455287 A JP4455287 A JP 4455287A JP S63211495 A JPS63211495 A JP S63211495A
Authority
JP
Japan
Prior art keywords
line
terminal
file unit
file
power
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP62044552A
Other languages
Japanese (ja)
Inventor
敏男 杉山
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 JP62044552A priority Critical patent/JPS63211495A/en
Publication of JPS63211495A publication Critical patent/JPS63211495A/en
Pending legal-status Critical Current

Links

Landscapes

  • Cash Registers Or Receiving Machines (AREA)
  • Communication Control (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は2台のファイルユニットと複数台のターミナ
ルをインライン接続してなるインラインシステムに関す
る。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an in-line system in which two file units and a plurality of terminals are connected in-line.

[従来の技術] 従来2台のファイルユニットと複数台のターミナルをイ
ンライン接続してなるインラインシステムにおいては、
ファイルユニットの一方を回線に接続するとともに他方
をバックアップ用として回線から切離しておき、一方の
ファイルユニットがダウンするとそれをブザーや表示器
によって知らせ、マニュアル切換えによって一方のファ
イルユニットを回線から切離すとともに他方のファイル
ユニットを回線に接続してバックアップするものであっ
た。
[Conventional technology] Conventionally, in an inline system in which two file units and multiple terminals are connected inline,
One side of the file unit is connected to the line, and the other is disconnected from the line for backup purposes.If one file unit goes down, a buzzer or display will notify you, and one file unit can be disconnected from the line by manual switching. The other file unit was connected to the line for backup.

また2台のファイルユニットに常時電源を投入しておき
、一方がダウンしたとき他方に自動的に切換えるもので
あった。
In addition, two file units were always powered on, and when one went down, the system automatically switched to the other.

[発明が解決しようとする問題点] 一方のファイルユニットがダウンしたときそれを知らせ
てマニュアルにより他方のファイルユニットに切換える
ものでは、切換えに遅れが生じるためダウン回復に時間
がかかり、システムにとって大きな損失となる問題があ
った。また自動切換えできるものでも2台のファイルユ
ニットに常時電源を投入していたのでは電力消費が大き
く、また使用していないファイルユニットが常に通電状
態となるため寿命が低下する問題があった。
[Problems to be Solved by the Invention] If one file unit is notified when it goes down and manually switches to the other file unit, there is a delay in switching, which takes time to recover from the downtime, resulting in a large loss to the system. There was a problem. Furthermore, even if automatic switching is possible, if two file units are constantly powered on, power consumption is large, and unused file units are always energized, resulting in shortened service life.

この発明はこのような問題を解決するために為されたも
ので、一方のファイルユニットのダウン時の他方のファ
イルユニットへの切換えが迅速にでき、またファイルユ
ニットへの電源の供給を使用時のみ立ち上げることによ
って電力消費の低減化及び寿命低下の防止を図ることが
できるインラインシステムを提供しようとするものであ
る。
This invention was made to solve these problems, and when one file unit goes down, it can be quickly switched to the other file unit, and power is supplied to the file unit only when it is in use. The present invention aims to provide an in-line system that can reduce power consumption and prevent shortening of life by starting up the system.

[問題点を解決するための手段] この発明は、商品販売データを登録処理するとともにレ
シート発行を行なう複数台のターミナルと、この各ター
ミナルが処理するデータをファイリングするファイルユ
ニットをインライン接続してなるインラインシステムに
おいて、ファイルユニットを2台インライン接続し、各
ファイルユニットは、各ターミナルからの電源コントロ
ール信号に応動してiilを立ち上げる電源立ち上げ手
段と、自己の故障によるダウン状態を検出して自己を回
線から切離すとともに′M源を立ち下げる手段と、電源
立ち上げ手段による電源の立ち上がりを検出して自己を
回線に接続し各ターミナルとデータ伝送制御を行なう伝
送制御手段とを設け、各ターミナルは、一方のファイル
ユニットのダウンを検出する手段と、この手段によって
ファイルのダウンが検出されると他方のファイルユニッ
トに電源コントロール信号を送信する手段とを設けたも
のである。
[Means for Solving the Problems] This invention consists of a plurality of terminals that register and process product sales data and issue receipts, and a file unit that files the data processed by each terminal, which are connected inline. In an inline system, two file units are connected inline, and each file unit has a power supply start-up means that starts up the IIL in response to a power control signal from each terminal, and a power supply start-up means that starts up the IIL in response to a power control signal from each terminal, and a power supply start-up means that starts up the and a means for disconnecting the 'M source from the line, and a transmission control means for detecting the rise of the power by the power supply start-up means, connecting itself to the line, and controlling data transmission with each terminal. The system is provided with means for detecting that one file unit is down, and means for transmitting a power control signal to the other file unit when the means detects that a file is down.

[作用] このような構成の本発明においては、ターミナルの1つ
から一方のファイルユニットに電源コントロール信号を
送信すると、そのファイルユニットは自己の電源を立ち
上げ、かつ保持する。そして一方のファイルユニットと
各ターミナルとでデータ伝送制御が行われる。このとき
他方のファイルユニットは電源がオフされたままにある
。この状態で一方のファイルユニットがダウンするとそ
のファイルユニットは自己を回線から切離すとともに電
源をオフする。これをターミナルが検出して他方のファ
イルユニットに電源コントロール信号を送出する。しか
して他方のファイルユニットでは電源を立ち上げて保持
し、自己を回線に接続してターミナルとデータ伝送制御
を行なうようになる。
[Operation] In the present invention having such a configuration, when a power control signal is transmitted from one of the terminals to one file unit, that file unit turns on and maintains its own power supply. Data transmission control is then performed between one file unit and each terminal. At this time, the other file unit remains powered off. If one file unit goes down in this state, that file unit disconnects itself from the line and turns off the power. The terminal detects this and sends a power control signal to the other file unit. The other file unit then turns on and maintains the power, connects itself to the line, and controls data transmission with the terminal.

[実施例] 以下、この発明の実施例を図面を参照して説明する。[Example] Embodiments of the present invention will be described below with reference to the drawings.

第1図において、1及び2はファイルユニット、31.
32.33、−3nはターミナルである。
In FIG. 1, 1 and 2 are file units, 31.
32.33, -3n are terminals.

−前記各ファイルユニット1.2と各ターミナル31〜
3nは伝送ライン4によってインライン接続されている
。また前記各ターミナル31〜3rLから各ファイルユ
ニット1.2には電源コントロール信号RPCCの伝送
ライン5t 、52がそれぞれ接続されている。
- Each of the file units 1.2 and each terminal 31~
3n are connected in-line by transmission line 4. Further, transmission lines 5t and 52 for power control signal RPCC are connected from each of the terminals 31 to 3rL to each file unit 1.2, respectively.

前記各ファイルコントローラ1.2は第2図に示すよう
に、制御部本体を構成するCPU11、このCPU11
が各部を制御するためのプログラムデータ等が格納され
ているROM12、前記cpuiiが処理するデータを
格納するメモリやタイマーを構成するカウンタなどが設
けられたRAM13、各ターミナル31〜3nにおいて
登録される各商品のコードとともにこの商品コードに対
応して単価、商品名、部門コードなどを設定したエリア
や売上点数や売上金額を累計するエリア等を設けたRA
Mファイル14、後述する電源制御回路15、各ターミ
ナル31〜3nとデータの伝送制御を行なう伝送コント
ローラ16、I10ボート17を設けている。
As shown in FIG.
A ROM 12 in which program data etc. for controlling various parts of the CPU are stored, a RAM 13 in which a memory for storing data processed by the CPU II and a counter constituting a timer, etc. Along with the product code, RA has an area where unit price, product name, department code, etc. are set corresponding to this product code, and an area where cumulative sales items and sales amount are set.
An M file 14, a power supply control circuit 15 to be described later, a transmission controller 16 for controlling data transmission to each of the terminals 31 to 3n, and an I10 boat 17 are provided.

前記I10ポート17にはランプ18及びブザー19が
接続されている。
A lamp 18 and a buzzer 19 are connected to the I10 port 17.

前記CPU11と80M12、RAM13及びRAMフ
ァイル14とはアドレスバスライン20゜データバスラ
イン21及びコントロールライン22を介して接続して
いる。また前記CPU11と伝送コントローラ16及び
I10ボート17とは前記データバスライン21及びコ
ントロールライン22を介して接続している。
The CPU 11, the 80M 12, the RAM 13, and the RAM file 14 are connected via an address bus line 20°, a data bus line 21, and a control line 22. Further, the CPU 11, the transmission controller 16, and the I10 boat 17 are connected via the data bus line 21 and control line 22.

前記伝送コントローラ16には回線接離用リレーが収納
され、前記CPU11によりそのリレーが制御されてコ
ントローラ16を伝送ライン4に対して接離制御してい
る。なお、回線切離し時は入力端子に接続された伝送ラ
イン4間を短絡する。
The transmission controller 16 houses a relay for connecting and disconnecting the line, and the relay is controlled by the CPU 11 to control the controller 16 to connect and disconnect from the transmission line 4 . Note that when disconnecting the line, the transmission lines 4 connected to the input terminals are short-circuited.

前記各ターミナル31〜3nは第3図に示すように、制
御部本体を構成するCPU31、このCPU31が各部
を制御するためのプログラムデータ等が格納されている
ROM32、前記CPU31が処理するデータを格納す
るメモリやタイマーを構成するカウンタ、その他部門別
や取引別などに分けてデータを累計登録する登録メモリ
などが設けられたRAM33、各ファイルユニット1゜
2とデータの伝送制御を行なう伝送コントローラ34、
プリンタ・ドロワコントローラ35、ディスプレイコン
トローラ36、キーボードコントローラ37を設けてい
る。
As shown in FIG. 3, each of the terminals 31 to 3n includes a CPU 31 constituting the main body of the control section, a ROM 32 that stores program data for the CPU 31 to control each section, and a ROM 32 that stores data processed by the CPU 31. RAM 33, which is equipped with a memory for storing data, a counter for configuring a timer, and a registration memory for cumulatively registering data divided by department or transaction, etc.; a transmission controller 34 for controlling data transmission with each file unit 1.2;
A printer/drawer controller 35, a display controller 36, and a keyboard controller 37 are provided.

前記プリンタ・ドロワコントローラ35にはレシート発
行やジャーナル印字のためのプリンタ38及びドロワ開
放部39が接続され、前記ディスプレイコントローラ3
6にはコードや金額を表示し、かつ業務状態などをラン
プ表示するディスプレイ40が接続され、かつキーボー
ドコントローラ37には商品コードなどを入力するキー
ボード41が接続されている。
The printer/drawer controller 35 is connected to a printer 38 for issuing receipts and printing a journal, and a drawer opening section 39 .
6 is connected to a display 40 that displays codes and amounts, as well as lamps to indicate business status, and a keyboard controller 37 is connected to a keyboard 41 for inputting product codes and the like.

前記CPtJ31とROM32及びRAM33とはアド
レスバスライン42、データバスライン43及びコント
ロールライン44を介して接続している。また前記CP
U31と各コントローラ34.35,36.37とは前
記データバスライン43及びコントロールライン44を
介して接続している。
The CPtJ 31, ROM 32, and RAM 33 are connected via an address bus line 42, a data bus line 43, and a control line 44. Also, the CP
U31 and each controller 34, 35, 36, 37 are connected via the data bus line 43 and control line 44.

前記伝送コントローラ34には回線接離用リレーが収納
され、前記CPU31によりそのリレーが制御されて伝
送コントローラ34を伝送ライン4に対して接離制御し
ている。なお、回線切離し時は入力端子に接続されてい
る伝送ライン4間を短絡する。
The transmission controller 34 houses a line connection/disconnection relay, and the CPU 31 controls the relay to control the transmission controller 34 to connect/disconnect the transmission line 4 . Note that when disconnecting the line, the transmission lines 4 connected to the input terminals are short-circuited.

前記各ファイルユニット1.2の電源制御回路15は第
4図に示すように、商用交流電源50に対して主スィッ
チ51を介して電源ユニット52を接続している。この
電源ユニット52は立ち上がり時にRESET信号を出
力するとともに+5■電圧を出力している。+5V電圧
の出力端子はダイオード53及び抵抗54を介して後述
するバッテリーの十端子にも接続されている。
As shown in FIG. 4, the power supply control circuit 15 of each file unit 1.2 connects a power supply unit 52 to a commercial AC power supply 50 via a main switch 51. This power supply unit 52 outputs a RESET signal at startup, and also outputs +5■ voltage. The +5V voltage output terminal is also connected to a terminal of a battery, which will be described later, via a diode 53 and a resistor 54.

また前記交流電源50に副スィッチ55を介してトラン
ス56の1次巻線を接続している。このトランス56の
2次巻線には全波整流回路57の入力端子が接続され、
その全波整流回路57の出力端子には平滑コンデンサ5
8が接続されている。
Further, the primary winding of a transformer 56 is connected to the AC power source 50 via a sub switch 55. The input terminal of a full-wave rectifier circuit 57 is connected to the secondary winding of this transformer 56.
A smoothing capacitor 5 is connected to the output terminal of the full-wave rectifier circuit 57.
8 are connected.

この平滑コンデンサ58にはレギュレータ59の入力端
子が接続され、そのレギュレータ59の出力端子には3
個のNPN型トランジスタ60゜61.62の並列回路
を介してリレー63のコイル64が接続されている。な
お、前記コイル64にはサージ吸収用のダイオード65
が並列に接続されている。
The input terminal of a regulator 59 is connected to this smoothing capacitor 58, and the output terminal of the regulator 59 has a
A coil 64 of a relay 63 is connected through a parallel circuit of NPN transistors 60°61.62. Note that the coil 64 is equipped with a diode 65 for surge absorption.
are connected in parallel.

前記リレー63の常開接点66は前記主スィッチ51に
並列に接続している。
A normally open contact 66 of the relay 63 is connected in parallel to the main switch 51.

また前記レギュレータ59の出力端子には抵抗67を介
して発光ダイオード68が接続されている。そしてこの
発光ダイオード68に主ス・イッチ69を並列に接続し
ている。前記各主スィッチ51.69は互いに連動して
オン、オフ動作するものである。
Further, a light emitting diode 68 is connected to the output terminal of the regulator 59 via a resistor 67. A main switch 69 is connected in parallel to this light emitting diode 68. The main switches 51, 69 are turned on and off in conjunction with each other.

また前記レギュレータ59の出力端子には抵抗70と7
1との直列回路並びに抵抗72と73との直列回路がそ
れぞれ接続され、抵抗70と71との接続点は第1のコ
ンパレータ74の一方の入力端子に接続し、また抵抗7
2と73との接続点は第2のコンパレータ75の一方の
入力端子に接続している。さらに前記レギュレータ59
の出力端子の+側を抵抗76を介して前記第1のコンパ
レータ74の他方の入力端子に接続している。このコン
パレータ74の他方の入力端子はまた抵抗77を介して
前記伝送ライン51(52)に接続している。
Further, the output terminal of the regulator 59 is connected to a resistor 70 and a resistor 7.
1 and a series circuit with resistors 72 and 73 are connected, respectively, and the connection point between resistors 70 and 71 is connected to one input terminal of a first comparator 74, and the resistor 7
The connection point between 2 and 73 is connected to one input terminal of a second comparator 75. Furthermore, the regulator 59
The + side of the output terminal of is connected to the other input terminal of the first comparator 74 via a resistor 76. The other input terminal of this comparator 74 is also connected to the transmission line 51 (52) via a resistor 77.

前記第2のコンパレータ75の他方の入力端子は抵抗7
8を介してバッテリー79の十端子に接続している。こ
のバッテリー79は電源バックアップ用で電源停止時に
RAM13やRAMファイル14をバックアップする。
The other input terminal of the second comparator 75 is connected to the resistor 7.
It is connected to the ten terminal of the battery 79 via the terminal 8. This battery 79 is for power backup and backs up the RAM 13 and RAM file 14 when the power is stopped.

前記第1のコンパレータ74の出力端子は抵抗80を介
して前記トランジスタ60のベースに接続するとともに
スリーステートバッファ81に接続している。このバッ
ファ81の出力端子は前記データバスライン21に接続
されている。
The output terminal of the first comparator 74 is connected to the base of the transistor 60 via a resistor 80 and also to a three-state buffer 81. The output terminal of this buffer 81 is connected to the data bus line 21.

前記第2のコンパレータ75の出力端子は抵抗82を介
して前記トランジスタ61のベースに接続するとともに
D型フリップフロップ83のD入力端子に接続している
。このフリップフロップ83のT入力端子には前記RE
SET信号が入力されるようになっている。このフリッ
プフロップ83のQ出力端子をスリーステートバッファ
84に接続している。このバッファ84の出力端子は前
記データバスライン21に接続されている。前記各スリ
ーステートバッファ81.84は前記CPU11によっ
て駆動制御されるようになっている。
The output terminal of the second comparator 75 is connected to the base of the transistor 61 via a resistor 82 and to the D input terminal of a D-type flip-flop 83. The T input terminal of this flip-flop 83 is connected to the RE
A SET signal is input. The Q output terminal of this flip-flop 83 is connected to a three-state buffer 84. The output terminal of this buffer 84 is connected to the data bus line 21. Each of the three-state buffers 81 and 84 is driven and controlled by the CPU 11.

前記データバスライン43をD型フリップフロップ85
のD入力端子に接続している。このフリップフロップ8
5のT入力端子にはゲート回路86の出力端子が接続さ
れ、そのゲート回路86には前記CPUIIからσ否信
号及びIOw信号が入力されている。また前記フリップ
70ツブ85のR(リセット)入力端子には前記RES
ET信号が入力されるようになっている。
The data bus line 43 is connected to a D-type flip-flop 85.
is connected to the D input terminal of the This flip flop 8
The output terminal of a gate circuit 86 is connected to the T input terminal of No. 5, and the σ/no signal and the IOw signal are inputted to the gate circuit 86 from the CPU II. In addition, the R (reset) input terminal of the flip 70 knob 85 is connected to the RES.
The ET signal is input.

このフリップフロップ85のQ出力端子は抵抗87を介
して前記トランジスタ62のベースに接続している。
The Q output terminal of this flip-flop 85 is connected to the base of the transistor 62 via a resistor 87.

第6図及び第7図はファイルユニット1.2のCPU1
1による要部フログラム制御を示すもので、第6図はパ
ワーオン処理を示し、第7図は伝送エラ一時の処理を示
している。
Figures 6 and 7 show CPU1 of file unit 1.2.
FIG. 6 shows power-on processing, and FIG. 7 shows processing when a transmission error occurs.

すなわち第6図に示すようにスリーステートバッファ8
1を駆動してその出力が「1」になっているか否かをチ
ェックする。「1」であればフリップフロップ85のD
入力端子に「1」を入力する。そしてプログラム処理は
メインプログラムへ移行し、各ターミナル31〜3nと
のデータ伝送等を行なう。また「0」であれば次にスリ
ーステートバッファ84を駆動してその出力が「1」に
なっているか否かをチェックする。「1」であればフリ
ップフロップ85のD入力端子に「1」を入力し、RA
M13に設けられている充電時間用タイマーに時間をセ
ットする。そしてこのタイマーをダウンカウントしその
カウント値が「0」になると再度スリーステートバッフ
ァ84の出力をチェックし、その出力がrOJであれば
所定時間内にバッテリー79の充電が完了したと判断し
てフリップフロップ85のD入力端子に「0」を入力す
る。また出力が「1」であれば所定時間内にバッテリー
79の充電完了ができずバッテリーに異常があると判断
してランプ18及びブザー19によって異常を知らせる
That is, as shown in FIG.
1 and check whether the output is "1". If it is “1”, D of flip-flop 85
Input "1" to the input terminal. The program processing then shifts to the main program, where data transmission, etc. with each terminal 31 to 3n is performed. If it is "0", then the three-state buffer 84 is driven and it is checked whether its output is "1". If it is "1", "1" is input to the D input terminal of the flip-flop 85, and the RA
Set the time on the charging timer provided on M13. Then, this timer is counted down, and when the count value reaches "0", the output of the three-state buffer 84 is checked again, and if the output is rOJ, it is determined that charging of the battery 79 has been completed within a predetermined time, and the flip-flop is Input "0" to the D input terminal of the step 85. Further, if the output is "1", it is determined that there is an abnormality in the battery because charging of the battery 79 cannot be completed within a predetermined time, and the lamp 18 and buzzer 19 notify the abnormality.

また第7図に示すように伝送エラーが発生すると先ず回
線上で衝突が発生したか否かをチェックし、衝突が発生
していれば再送処理を行い、また衝突が発生していなけ
れば再度データ伝送を行い、再度同じ結果であれば回線
不良を判断して回線用リレーをオフして自己を回線から
切離す。なお、この場合データ伝送を再度行なわずに直
ちに回線不良を判断してもよい。
Also, as shown in Figure 7, when a transmission error occurs, it is first checked to see if a collision has occurred on the line, and if a collision has occurred, retransmission processing is performed, and if no collision has occurred, the data is retransmitted. It performs transmission, and if the result is the same again, it determines that the line is defective, turns off the line relay, and disconnects itself from the line. Note that in this case, a line failure may be immediately determined without performing data transmission again.

自己を回線から切離した場合には次に自己ループテスト
(伝送制御部の自己診断)を行い、異常があればエラー
にする。また異常がなければ回線用リレーをオンして自
己を回線に接続する。そして第5図に示すように専用の
セルフチェックコマンドライン100を介して各ターミ
ナル31〜3nに対してセルフチェックコマンドを発信
する。
When the device is disconnected from the line, it then performs a self-loop test (self-diagnosis of the transmission control unit), and if any abnormalities are found, an error is detected. Also, if there is no abnormality, the line relay is turned on to connect itself to the line. Then, as shown in FIG. 5, a self-check command is sent to each terminal 31-3n via a dedicated self-check command line 100.

第8図及び第9図はターミナル31〜3ルのCPLJ3
1による要部フログラム制御を示すもので、第8図は伝
送エラ一時の処理を示し、第9図はセルフチェック処理
を示している。
Figures 8 and 9 are CPLJ3 at terminals 31-3.
FIG. 8 shows the processing at the time of a transmission error, and FIG. 9 shows the self-check processing.

すなわち第8図に示すように伝送エラーが発生すると先
ず回線上で衝突が発生したか否かをチェックし、衝突が
発生していれば再送処理を行い、また衝突が発生してい
なければ再度データ伝送を行い、再度同じ結果であれば
回線不良を判断して回線用リレーをオフして自己を回線
から切離す。
In other words, as shown in Figure 8, when a transmission error occurs, it is first checked to see if a collision has occurred on the line, and if a collision has occurred, retransmission processing is performed, and if no collision has occurred, the data is retransmitted. It performs transmission, and if the result is the same again, it determines that the line is defective, turns off the line relay, and disconnects itself from the line.

なお、この場合データ伝送を再度行なわずに直ちに回線
不良を判断してもよい。
Note that in this case, a line failure may be immediately determined without performing data transmission again.

自己を回線から切離した場合には次に自己ループテスト
(伝送制御部の自己診断)を行い、異常があればエラー
にする。また異常がなければ回線用リレーをオンして自
己を回線に接続する。そしてセルフチェックコマンド受
信用タイマーをセットする。このタイマーがタイムオー
バする前にセルフチェックコマンドを受信すると一定時
間ウエイトした後再送処理を行なう。またタイマーがタ
イムオーバする前にセルフチェックコマンドを受信しな
ければ相手のファイルユニットがダウンしていると判断
してもう一方のファイルユニットに対して電源コントロ
ール信号RPCCを送信する。
When the device is disconnected from the line, it then performs a self-loop test (self-diagnosis of the transmission control unit), and if any abnormalities are found, an error is detected. Also, if there is no abnormality, the line relay is turned on to connect itself to the line. Then, a timer for receiving self-check commands is set. If a self-check command is received before this timer times out, retransmission processing is performed after waiting for a certain period of time. If the self-check command is not received before the timer expires, it is determined that the other file unit is down, and the power control signal RPCC is transmitted to the other file unit.

また第9図に示すように自己がデータ伝送を行なってい
ないターミナルにおいてセルフチェックコマンドを受信
すると、回線用リレーをオフして自己を回線から切離す
。次に自己ループテスト(伝送制御部の自己診断)を行
い、異常があればエラーにする。また異常がなければ回
線用リレーをオンして自己を回線に接続する。
Further, as shown in FIG. 9, when a self-check command is received at a terminal that is not transmitting data, it turns off the line relay and disconnects itself from the line. Next, a self-loop test (self-diagnosis of the transmission control unit) is performed, and if any abnormalities are found, an error is detected. Also, if there is no abnormality, the line relay is turned on to connect itself to the line.

このような構成の本実施例においては、例えば一方のフ
ァイルユニット1をメインとして使用し、他方のファイ
ルユニット2をバックアップ用として使用するものとす
る。
In this embodiment having such a configuration, it is assumed that, for example, one file unit 1 is used as the main file unit, and the other file unit 2 is used for backup.

ファイルユニット1の主スイッチ51.69及び副スィ
ッチ55をオン操作すると、il源ユニット52が交流
電源50に接続され、+5V電圧が立ち上がる。このと
きRESET信号が発生してフリップ70ツブ85がリ
セットされる。また発光ダイオード68は消灯された状
態を維持する。
When the main switch 51.69 and the sub switch 55 of the file unit 1 are turned on, the IL source unit 52 is connected to the AC power supply 50, and a +5V voltage is raised. At this time, a RESET signal is generated and the flip 70 knob 85 is reset. Further, the light emitting diode 68 remains in an extinguished state.

+5V電圧が印加されるとCPU11はデータバスライ
ン21を介してフリップフロップ85をセットしトラン
ジスタ62をオンしてリレー63を動作させる。しかし
てリレー63の常開接点66がオンし、以降主スィッチ
51がオフされても電源の投入状態が維持されるように
なる。主スィッチ51をオフするとスイッチ69もオフ
するので発光ダイオード68が点灯してそのことを表示
する。
When +5V voltage is applied, the CPU 11 sets the flip-flop 85 via the data bus line 21, turns on the transistor 62, and operates the relay 63. As a result, the normally open contact 66 of the relay 63 is turned on, and even if the main switch 51 is subsequently turned off, the power is maintained in the on state. When the main switch 51 is turned off, the switch 69 is also turned off, so the light emitting diode 68 lights up to indicate this.

しかして今、ファイルユニット1がそのスイッチ51.
69をオフし、スイッチ55をオンしている状態でリレ
ー63の常開接点66を介して電源が保持され各ターミ
ナル31〜3ルとデータ伝送制御を行なっているものと
する。このときバックアップ用として使用するもう一方
のファイルユニット2も主スィッチ51をオフし、副ス
ィッチ55をオンさせておく。
Now, however, file unit 1 is switched to switch 51.
69 is turned off and the switch 55 is turned on, power is maintained through the normally open contact 66 of the relay 63, and data transmission control is performed with each terminal 31-3. At this time, the main switch 51 of the other file unit 2 used for backup is also turned off, and the sub switch 55 is turned on.

このような状態でファイルユニット1において伝送エラ
ーが発生すると、それが回線の衝突によるものか、自己
の伝送部の故障によるものか、あるいはターミナル側の
故障によるものかチェックする。自己の伝送部の故障の
場合には回線を切離した状態でエラーにする。また回線
衝突もなく、また自己の伝送11111M1部も正常で
あれば回線を接続して各ターミナル31〜3nにセルフ
チェックコマンドを送信する。
If a transmission error occurs in the file unit 1 in this state, it is checked whether the error is due to line collision, a failure in its own transmission section, or a failure on the terminal side. In the event of a failure in its own transmission unit, an error is generated with the line disconnected. Further, if there is no line collision and its own transmission section 11111M1 is normal, the line is connected and a self-check command is sent to each terminal 31 to 3n.

一方、ファイルユニット1と伝送を行なっていたターミ
ナルも伝送エラーを検出するとそれが回線の衝突による
ものか、自己の伝送制御部の故障によるものかチェック
する。そしてターミナルにおいて回線衝突もなく、また
自己の伝送制御部も正常であれば回線を接続しセルフチ
ェックコマンド受信用タイマーをセットする。
On the other hand, when the terminal that was transmitting to file unit 1 also detects a transmission error, it checks whether the error is due to line collision or a failure in its own transmission control unit. If there is no line collision at the terminal and its own transmission control unit is also normal, the line is connected and a self-check command reception timer is set.

もしファイルユニット1がダウンしていなければタイマ
ーがタイムオーバする前にセルフチェックコマンドが受
信されるので、このときにはターミナルは一定時間ウエ
イトしてから再送処理を行なう。しかしファイルユニッ
ト1がダウンしていればタイマーがタイムオーバしても
セルフチェックコマンドが受信されないので、ターミナ
ルとしてはこのセルフチェックコマンドが所定時間内に
受信されなかったことによりファイルユニット1がダウ
ンしていると判断してバックアップ用として待機してい
るもう一方のファイルユニット2に電源コントロール信
号RPCCを送信する。
If file unit 1 is not down, the self-check command will be received before the timer times out, so in this case the terminal waits for a certain period of time and then performs the retransmission process. However, if file unit 1 is down, the self-check command will not be received even if the timer times out, so the terminal will assume that file unit 1 is down because this self-check command is not received within the specified time. The file unit 2 determines that the file unit 2 is present and sends a power control signal RPCC to the other file unit 2 that is on standby as a backup.

ターミナルから電源コントロール信号RPCCを受信す
るとファイルユニット2ではコンパレータ74の出力が
「1」、すなわちハイレベルとなり、トランジスタ60
がオンしてリレー63が動作されその常開接点66がオ
ンする。
When the power supply control signal RPCC is received from the terminal, the output of the comparator 74 in the file unit 2 becomes "1", that is, high level, and the transistor 60
is turned on, the relay 63 is operated, and its normally open contact 66 is turned on.

こうして電源が立ち上がりCPU11を初め各部に電源
が供給されるようになる。またRESET信号が発生し
てフリップフロップ85を−Hリセットする。CPU1
1はスリーステートバッファ81を制御してその出力を
読取る。このバッファ81の出力は「1」となっている
のでCPU11はデータバスライン21、コントロール
ライン22を介してフリップ70ツブ85をセット動作
し、そのQ出力でトランジスタ62をオンしてリレー6
3の動作状態を保持する。しかして、ターミナルからの
電源コントロール信号RPCCがオフされても電源の投
入状態は保持される。
In this way, the power is turned on and power is supplied to the CPU 11 and other parts. Further, a RESET signal is generated to reset the flip-flop 85 to -H. CPU1
1 controls the three-state buffer 81 and reads its output. Since the output of this buffer 81 is "1", the CPU 11 sets the flip 70 knob 85 via the data bus line 21 and the control line 22, turns on the transistor 62 with the Q output, and turns on the relay 6.
The operating state of 3 is maintained. Therefore, even if the power control signal RPCC from the terminal is turned off, the power-on state is maintained.

こうしてファイルユニット2はIIが立ち上げられて自
動的に動作を開始し、ダウンしたファイルユニット1に
代わって迅速にターミナルとデータの伝送制御を行なう
ようになる。
In this way, file unit 2 automatically starts operating when II is started up, and quickly controls data transmission with the terminal in place of file unit 1, which has gone down.

またファイルユニット2はファイルユニット1が正常に
動作しているときには電源ユニット52が交流N源50
から切り離され、レギュレータ59が動作しているのみ
なので、不使用時には無駄な電力が消費されることはな
く、また電源ユニット52やCPU11などメイン回路
は常時通電状態とはならないので寿命が低下する虞はな
い。
Further, when the file unit 1 is operating normally, the file unit 2 is connected to the AC N source 50 by the power supply unit 52.
Since the main circuits such as the power supply unit 52 and the CPU 11 are not constantly energized, there is a risk that their lifespan will be shortened since the regulator 59 is only operating. There isn't.

またファイルユニット2が電源50から切り離されてい
る状態ではバッテリー79によってRAM13.14が
バックアップされている。この状態でバッテリー79の
電圧低下が起きると、コンパレータ75の出力が「0」
から「1」に反転する。しかしてトランジスタ61がオ
ンし、リレー63が動作して電源ユニット52が交流電
源50に接続されるようになる。しかして電源ユニット
52の出力がダイオード53、抵抗54を介してバッテ
リー79に供給され、バッテリー79が充電される。ま
たコンパレータ75の出力が「1」になるとフリップ7
0ツブ83がセットされるようになる。しかしてCPU
11はスリーステートバッファ84を制御してその出力
「1」を読込み、データバスライン21及びコントロー
ルライン22を介してフリップ70ツブ85をセットす
るとともに充電時間用タイマーをセットする。
Further, when the file unit 2 is disconnected from the power supply 50, the RAMs 13 and 14 are backed up by the battery 79. If the voltage of the battery 79 decreases in this state, the output of the comparator 75 becomes "0".
to "1". Thus, the transistor 61 is turned on, the relay 63 is operated, and the power supply unit 52 is connected to the AC power supply 50. Thus, the output of the power supply unit 52 is supplied to the battery 79 via the diode 53 and the resistor 54, and the battery 79 is charged. Also, when the output of the comparator 75 becomes "1", the flip 7
0 knob 83 is now set. However, the CPU
11 controls the three-state buffer 84 to read its output "1", sets the flip 70 knob 85 via the data bus line 21 and the control line 22, and sets the charging time timer.

そしてタイマーのタイマー値が「0」になるとバッファ
84の出力を再度読込む。この時間内にバッテリー79
の充電が完了していればコンパレータ75の出力が「0
」となって7リツプフロツプ83がリセットされている
ので、バッファ84の出力は「0」になっている。しか
してバッファ84の出力がrOJであればバッテリー7
9が正常に充電されたと判断しフリップ70ツブ85を
リセットしてトランジスタ62をオフして電源ユニット
52を交流電源50から切り離す。なお、バッテリー7
9の充電が完了すればその時点でコンパレータ75の出
力が「0」になってトランジスタ61はオフ制御されて
いる。
Then, when the timer value of the timer reaches "0", the output of the buffer 84 is read again. Battery 79 within this time
If the charging of the comparator 75 is completed, the output of the comparator 75 becomes “0”.
'', and the 7-lip flop 83 is reset, so the output of the buffer 84 is ``0''. Therefore, if the output of the buffer 84 is rOJ, then the battery 7
9 is normally charged, the flip 70 knob 85 is reset, the transistor 62 is turned off, and the power supply unit 52 is disconnected from the AC power supply 50. In addition, battery 7
When charging of the transistor 9 is completed, the output of the comparator 75 becomes "0" at that point, and the transistor 61 is controlled to be off.

また充電時間用タイマーのタイマー値がrOJになって
もバッファ84の出力が「1」の状態を保持していれば
バッテリー79に異常が発生したと判断してランプ18
を点灯し、かつブザー19を鳴らして知らせる。
Further, even if the timer value of the charging timer reaches rOJ, if the output of the buffer 84 remains "1", it is determined that an abnormality has occurred in the battery 79, and the lamp 18
It is notified by lighting up and sounding the buzzer 19.

このようにバックアップ用として使用されるファイルユ
ニット2はバッテリー79によってバックアップされ、
かつ途中でバッテリー電圧が低下しても自動的に電源が
立ちあがって充電が行われるので、確実なバックアップ
ができる。しかもバッテリー79に故障が発生したとき
にはそれを検出して知らせることができる。
The file unit 2 used for backup in this way is backed up by the battery 79,
Moreover, even if the battery voltage drops during the process, the power is automatically turned on and charging is performed, providing reliable backup. Moreover, when a failure occurs in the battery 79, it can be detected and notified.

なお、前記実施例はバッテリーの充電時間をタイマーで
チェックしてバッテリーの異常検出するものについて述
べたが必ずしもこれに限定されるものではなく、例えば
時計ICを設け、バッテリーの充電が完了したときの時
刻をRAM13に格納し、次にバッテリー電圧が低下し
てバッテリー充電が開始されたときの時刻を読み取り、
バッテリーの充電が完了してから充電が開始されるまで
の時間が予め設定された時間内になったときバッテリー
に異常が発生したと判断してもよい。
In the above embodiment, the battery charging time is checked using a timer to detect battery abnormality, but the invention is not limited to this. For example, a clock IC may be provided to detect battery abnormality when battery charging is completed. Store the time in the RAM 13, then read the time when the battery voltage drops and battery charging starts,
It may be determined that an abnormality has occurred in the battery when the time from when charging of the battery is completed to when charging is started is within a preset time.

[発明の効果] 以上詳述したようにこの発明によれば、ファイルユニッ
トのダウン時の切換えが迅速にでき、またファイルユニ
ットの電源を使用時のみ立ち上げることによって電力消
費の低減化及び寿命低下の防止を図ることができるイン
ラインシステムを提供できるものである。
[Effects of the Invention] As detailed above, according to the present invention, it is possible to quickly switch over the file unit when it is down, and by turning on the power to the file unit only when it is in use, power consumption and lifespan are reduced. It is possible to provide an in-line system that can prevent such problems.

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

図はこの発明の実施例を示すもので、第1図は全体の構
成を示すブロック図、第2図はファイルユニットの回路
構成を示すブロック図、第3図はターミナルの回路構成
を示すブロック図、第4図はファイルユニットの電源制
御回路の具体的構成を示す回路図、第5図はファイルユ
ニットとターミナルとを接続するセルフチェックコマン
ドラインを示す図、第6図はファイルユニットのCPU
によるパワーオン処理を示す流れ図、第7図はファイル
ユニットのCPUによる伝送エラ一時の処理を示す流れ
図、第8図はター ミナルのCPUによる伝送エラ一時
の処理を示す流れ図、第9図はターミナルのCPUによ
るセルフチェック処理を示す流れ図である。 1.2・・・ファイルユニット、31〜3n・・・ター
ミナル、4・・・データの伝送ライン、51.52・・
・電源コントロール信号の伝送ライン、11.31・C
PLJ、12.32・ROM、14−RAM7アイル、
15・・・電源制御回路、16.34・・・伝送コント
ローラ、52・・・電源ユニット、60.61゜62・
・・NPN型トランジスタ、63・・・リレー、85・
・・D型フリップフロップ。 出願人代理人 弁理士 鈴江武彦 第1図 第6図 第7図 第8図
The figures show an embodiment of the present invention. Figure 1 is a block diagram showing the overall configuration, Figure 2 is a block diagram showing the circuit configuration of the file unit, and Figure 3 is a block diagram showing the circuit configuration of the terminal. , Figure 4 is a circuit diagram showing the specific configuration of the power supply control circuit of the file unit, Figure 5 is a diagram showing the self-check command line connecting the file unit and the terminal, and Figure 6 is a diagram showing the CPU of the file unit.
Figure 7 is a flowchart showing the temporary transmission error processing by the file unit's CPU, Figure 8 is a flowchart showing the terminal's CPU to handle the temporary transmission error, and Figure 9 is a flowchart showing the terminal's power-on processing. It is a flowchart which shows the self-check process by CPU. 1.2... File unit, 31-3n... Terminal, 4... Data transmission line, 51.52...
・Power control signal transmission line, 11.31・C
PLJ, 12.32・ROM, 14-RAM7 isle,
15... Power supply control circuit, 16.34... Transmission controller, 52... Power supply unit, 60.61°62.
・NPN transistor, 63 ・Relay, 85 ・
...D type flip-flop. Applicant's representative Patent attorney Takehiko Suzue Figure 1 Figure 6 Figure 7 Figure 8

Claims (1)

【特許請求の範囲】[Claims] 商品販売データを登録処理するとともにレシート発行を
行なう複数台のターミナルと、この各ターミナルが処理
するデータをファイリングするファイルユニットをイン
ライン接続してなるインラインシステムにおいて、前記
ファイルユニットを2台インライン接続し、前記各ファ
イルユニットは、前記各ターミナルからの電源コントロ
ール信号に応動して電源を立ち上げる電源立ち上げ手段
と、自己の故障によるダウン状態を検出して自己を回線
から切離すとともに電源を立ち下げる手段と、前記電源
立ち上げ手段による電源の立ち上がりを検出して自己を
回線に接続し各ターミナルとデータ伝送制御を行なう伝
送制御手段とを設け、前記各ターミナルは、一方のファ
イルユニットのダウンを検出する手段と、この手段によ
ってファイルのダウンが検出されると他方のファイルユ
ニットに電源コントロール信号を送信する手段とを設け
たことを特徴とするインラインシステム。
In an inline system in which a plurality of terminals that register and process product sales data and issue receipts are connected inline, and a file unit that files data processed by each terminal is connected inline, two of the file units are connected inline, Each of the file units has a power supply start-up means for turning on the power in response to a power control signal from each terminal, and a means for detecting a down state due to a failure in itself and disconnecting itself from the line and turning off the power. and a transmission control means that detects the power up by the power supply startup means, connects itself to the line, and controls data transmission with each terminal, and each terminal detects that one of the file units is down. 1. An inline system comprising: means; and means for transmitting a power control signal to the other file unit when the means detects that a file is down.
JP62044552A 1987-02-27 1987-02-27 Inline system Pending JPS63211495A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62044552A JPS63211495A (en) 1987-02-27 1987-02-27 Inline system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62044552A JPS63211495A (en) 1987-02-27 1987-02-27 Inline system

Publications (1)

Publication Number Publication Date
JPS63211495A true JPS63211495A (en) 1988-09-02

Family

ID=12694663

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62044552A Pending JPS63211495A (en) 1987-02-27 1987-02-27 Inline system

Country Status (1)

Country Link
JP (1) JPS63211495A (en)

Similar Documents

Publication Publication Date Title
US5272382A (en) Power supply for computer system manager
US5912514A (en) Uninterruptible power supply unit
JPS63172537A (en) In-line fault detecting circuit for pos terminal equipment
JPS63211495A (en) Inline system
JPS63211416A (en) In-line system
JPH0117335B2 (en)
JP2002062903A (en) Control device
JPH06318107A (en) Programmable controller, and resetting method for specific other station, resetting factor detecting method for other station, abnormal station monitoring method, synchronism detecting method, and synchronization stopping method of decentralized control system using programmable controller
JPS5884326A (en) Processing system of service interruption for vending machine
JPS6324456A (en) Inline abnormality detection circuit for pos terminal equipment
JPH01130276A (en) Pos system
JPH06230862A (en) Terminal equipment on/off time reserving system device and automatic power supply control device
JP2602543Y2 (en) Remote control unit
JPH07121394A (en) Multiplexer
JPS62216018A (en) Battery backup system
KR20020045921A (en) An apparatus for controlling battery backup of a banking system
JPH0937352A (en) Radio data communication system
JPH0141066B2 (en)
JPH0783539B2 (en) Power control method
CN111830889A (en) Power supply control device and power supply
JPH0752880B2 (en) Power supply backup method for bus system
JPH07129285A (en) Power source control circuit
JPH0331921A (en) Data processor
JP2000276241A (en) Power unit for disaster-preventive monitoring control panel
JPS61139844A (en) Microprocessor built-in device