JPS63211416A - In-line system - Google Patents

In-line system

Info

Publication number
JPS63211416A
JPS63211416A JP62044551A JP4455187A JPS63211416A JP S63211416 A JPS63211416 A JP S63211416A JP 62044551 A JP62044551 A JP 62044551A JP 4455187 A JP4455187 A JP 4455187A JP S63211416 A JPS63211416 A JP S63211416A
Authority
JP
Japan
Prior art keywords
file unit
battery
line
backup
terminal
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
JP62044551A
Other languages
Japanese (ja)
Inventor
Toshio Sugiyama
敏男 杉山
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 JP62044551A priority Critical patent/JPS63211416A/en
Publication of JPS63211416A publication Critical patent/JPS63211416A/en
Pending legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Abstract

PURPOSE:To reduce the power consumption by transmitting a power source control signal to a file unit for backup, when the down of a main file is detected. CONSTITUTION:When a main file unit 1 becomes down, terminals 31-3n detect it and transmit a power source control signal to a file unit 2 for backup, and the file unit 2 for backup raises its own main power source. Thereafter, by the file unit 2 and each terminal 31-3n, a data transmission control is executed. Also, as for the file unit 2, when the main file unit 1 is executing the transmission control of the data with each terminal 31-3n, a supply of the power source is stopped, and during this time, a backup of a memory is executed by a battery for backup. When the battery voltage drops on the way, the main power source rises temporarily and the charge to the battery is executed. In such a way, the power consumption can be reduced.

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, it was 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 it is possible to quickly switch to the backup file unit when the main file unit is down, and also to switch the power supply to the backup file unit at the time of backup. The purpose of the present invention is to provide an in-line system that can reduce power consumption and prevent shortening of the service life of the backup file unit, and can also reliably back up the power supply when the backup file unit is powered down.

[問題点を解決するための手段] この発明は、商品販売データを登録処理するとともにレ
シート発行を行なう複数台のターミナルと、この各ター
ミナルが処理するデータをファイリングするファイルユ
ニットをインライン接続してなるインラインシステムに
おいて、ファイルユニットを2台インライン接続して一
方をメインとし、他方をバックアップ用とし、メインフ
ァイルユニットは、自己のダウンを検出して回線から切
離す手段を設け、バックアップ用のファイルユニットは
、メモリバックアップ用バッテリーと、このバッテリー
の電圧低下を検出する電圧検出手段と、この電圧検出手
段によるバッテリー電圧の低下検出に応動して一定時間
メイン電源を立ち上げバッテリー充電を行なう充電手段
と、各ターミナルからの電源コントロール信号に応動し
てメイン電源を立ち上げる電源立ち上げ手段と、この電
源立ち上げ手段による電源の立ち上がりを検出して自己
を回線に接続し各ターミナルとデータ伝送制御を行なう
伝送制御手段とを設け、各ターミナルは、メインファイ
ルユニットのダウンを検出する手段と、この手段によっ
てメインファイルのダウンが検出されるとバックアップ
用のファイルユニットに電源コントロール信号を送信す
る手段を設けたものである。
[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, one is used as the main file unit, and the other is used as a backup.The main file unit is equipped with a means to detect when it is down and disconnected from the line, and the backup file unit is , a memory backup battery, a voltage detection means for detecting a voltage drop of the battery, a charging means for turning on the main power supply for a certain period of time to charge the battery in response to the detection of the battery voltage drop by the voltage detection means; A power supply start-up means that starts up the main power supply in response to a power control signal from the terminal, and a transmission control that detects the start-up of the power by this power supply start-up means, connects itself to the line, and controls data transmission with each terminal. and each terminal is provided with means for detecting that the main file unit is down, and means for transmitting a power control signal to the backup file unit when the main file unit is detected as being down. be.

[作用] このような構成の本発明においては、メインファイルユ
ニットがダウンすると回線から切り離れ、ターミナルは
それを検出してバックアップ用ファイルユニットに電源
コントロール信号を送信する。
[Operation] In the present invention having such a configuration, when the main file unit goes down, it is disconnected from the line, and the terminal detects this and sends a power control signal to the backup file unit.

これによりバックアップ用ファイルユニットは自己のメ
イン電源を立ち上げる。以降はバックアップ用ファイル
ユニットと各ターミナルとでデータ伝送制御が行われる
。またバックアップ用ファイルユニットはメインファイ
ルユニットが各ターミナルとデータの伝送制御を行なっ
ているときには電源の供給が停止され、この間はバック
アップ用バッテリーによってメモリのバックアップが行
われる。そして途中でバッテリー電圧が低下するとメイ
ン電源が一次的に立ち上がりバッテリーに対する充電が
行われる。
As a result, the backup file unit turns on its own main power supply. Thereafter, data transmission control is performed between the backup file unit and each terminal. Further, the power supply to the backup file unit is stopped when the main file unit is controlling data transmission with each terminal, and during this time, the memory is backed up by the backup battery. If the battery voltage drops during the process, the main power supply will temporarily turn on and charge the battery.

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

第1図において、1はメインファイルユニット、2はバ
ックアップ用ファイルユニットファイルユニット、31
.32.33 、・・・3nはターミナルである。前記
各ファイルユニット1.2と各ターミナル31〜3nは
伝送ライン4によってインライン接続されている。また
前記各ターミナル31〜3nから各ファイルユニット1
.2には電源コントロール信号RPCCの伝送ライン5
1.52がそれぞれ接続されている。
In Figure 1, 1 is the main file unit, 2 is the backup file unit, 31
.. 32.33,...3n are terminals. Each of the file units 1.2 and each of the terminals 31 to 3n are connected in-line by a transmission line 4. Also, from each terminal 31 to 3n, each file unit 1
.. 2 is the transmission line 5 of the power control signal RPCC.
1.52 are connected respectively.

前記各ファイルコントローラ1.2は第2図に示すよう
に、制御部本体を構成するCPU11、このCPU11
が各部を制御するためのプログラムデータ等が格納され
ているROM12、前記CPU11が処理するデータを
格納するメモリやタイマーを構成するカウンタなどが設
けられたRAM13、各ターミナル31〜3nにおいて
登録される各商品のコードとともにこの商品コードに対
応して単価、商品名、部門コードなどを設定したエリア
や売上点数や売上金額を累計するエリア等を設けたRA
Mファイル14、後述する電源制御回路15、各ターミ
ナル31〜3nとデータの伝送制御を行なう伝送コント
ロ、−ラ16、I10ボート17を設けている。
As shown in FIG.
A ROM 12 stores program data for controlling various parts of the CPU 11, a RAM 13 includes a memory for storing data processed by the CPU 11, a counter constituting a timer, and the like. 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 for controlling data transmission to each terminal 31 to 3n, a -ra 16, and an I10 port 17 are provided.

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

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

館記伝送コントa−ラ16には回線接離用リレーが収納
され、前記CPu11によりそのリレーが制御されてコ
ントローラ16を伝送ライン4に対して接離制御してい
る。なお、回線切離し時は入力端子に接続された伝送ラ
イン4間を短絡する。
A line connection/disconnection relay is housed in the transmission controller 16, and the relay is controlled by the CPU 11 to control the controller 16 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.

前記各ターミナル31〜3nは第3図に示すように、制
御部本体を構成するCPU31、このCPtJ31が各
部を制御するためのプログラムデータ等が格納されてい
るROM32、前記CPLJ31が処理するデータを格
納するメモリやタイマーを構成するカウンタ、その他部
門別や取引別などに分けてデータを累計登録する登録メ
モリなどが設けられたRAM33、各ファイルユニット
1゜2とデータの伝送制御を行なう伝送コントローラ3
4、プリンタ・ドロワコントローラ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 unit, a ROM 32 that stores program data etc. for this CPtJ 31 to control each part, and a ROM 32 that stores data processed by the CPLJ 31. A RAM 33 is equipped with a memory for storing data, a counter for configuring a timer, a registration memory for cumulatively registering data divided by department, transaction, etc., and a transmission controller 3 for controlling data transmission with each file unit 1゜2.
4, 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.

前記CPLJ31とROM32及びRAM33とはアド
レスバスライン42、データバスライン43及びコント
ロールライン44を介して接続している。また前記CP
U31と各コントローラ34.35,36.37とは前
記データバスライン43及びコントロールライン44を
介して接続している。
The CPLJ 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には回線接離用リレーが収納
され、前記CPtJ31によりそのリレーが制御されて
伝送コントローラ34を伝送ライン4に対して接離制御
している。なお、回線切離し時は入力端子に接続されて
いる伝送ライン4を短絡する。
The transmission controller 34 houses a relay for connecting and disconnecting the line, and the relay is controlled by the CPtJ 31 to control the transmission controller 34 to connect and disconnect from the transmission line 4. Note that when disconnecting the line, the transmission line 4 connected to the input terminal is short-circuited.

前記各ファイルユニット1,2の電源制御回路15は第
4図に示すように、商用文流電[50に対して主スィッ
チ51を介してIi源ユニット52を接続している。こ
の電源ユニット52は立ち上がり時にRESET信号を
出力するとともに+5V電圧を出力している。+5V電
圧の出力端子はダイオード53及び抵抗54を介して後
述するバッテリーの子端子にも接続されている。
As shown in FIG. 4, the power supply control circuit 15 of each of the file units 1 and 2 connects an Ii source unit 52 to a commercial text streamer 50 via a main switch 51. This power supply unit 52 outputs a RESET signal at startup and also outputs a +5V voltage. The +5V voltage output terminal is also connected to a child 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
1Ilの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 1Il NPN type transistors 60°61.62. Note that a surge absorbing diode 65 is connected in parallel to the coil 64.

前記リレー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を介
して前記トランジスタ6oのベースに接続するとともに
スリーステートバッファ81に接続している。このバッ
ファ81の出力端子は前記データバスライン21に接続
されている。
The output terminal of the first comparator 74 is connected to the base of the transistor 6o 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の王入力端子には前記RE
SET信号が入力されるようになっている。このフリッ
プフロップ83のQ出力端子をスリーステートバッファ
84に接続している。このバッファ84の出力端子は前
記データバスライン21に接続されている。前記各スリ
ーステートバッファ81.84は前記cpuiiによっ
て駆動制御されるようになっている。
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 king 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 II.

前記データバスライン43をD型フリツブフOツブ85
のD入力端子に接続している。このフリップフロップ8
5のT入力端子にはゲート回路86の出力端子が接続さ
れ、そのゲート回路86には前記CPL111からで3
信号及びIOW信号が入力されている。また前記フリッ
プフロップ85のR(リセット)入力端子には前記RE
SET信号が入力されるようになっている。
The data bus line 43 is connected to a D-type flip-flop O-tube 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 output terminal of the gate circuit 86 is connected to the T input terminal of No.
signal and IOW signal are input. Further, the R (reset) input terminal of the flip-flop 85 has the RE
A SET 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のCPIJ
llによる要部フログラム制御を示すもので、第6図は
パワーオン処理を示し、第7図は伝送エラ一時の処理を
示している。
Figures 6 and 7 are CPIJ 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」を入力する。そしてプログラム処理は
メインプログラムへ移行し、各ターミナル3!〜3nと
のデータ伝送等を行なう。また「0」であれば次にスリ
ーステートバッファ84を駆動してその出力が「1」に
なっているか否かをチェックする。「1」であればフリ
ップフロップ85のD入力端子に「1」を入力し、RA
M13に設けられている充電時間用タイマーに時間をセ
ットする。そしてこのタイマーをダウンカウントしその
カウント値が「0]になると再度スリーステートバッフ
ァ84の出力をチェックし、その出力が「0」であれば
所定時間内にバッテリー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. Then, program processing moves to the main program, and each terminal 3! -3n performs data transmission, etc. 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 "0", it is determined that charging of the battery 79 has been completed within a predetermined time. Then, “0” is input to the D input terminal of the flip-flop 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〜3nのCPLI3
1による要部70グラム制御を示すもので、第8図は伝
送エラ一時の処理を示し、第9図はセルフチェック処理
を示している。
Figures 8 and 9 show CPLI3 of terminals 31 to 3n.
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 generated. Also, if there is no abnormality, the line relay is turned on to connect itself to the line.

このような構成の本実施例においては、メインファイル
ユニット1の主スイッチ51.69及び副スィッチ55
をオン操作すると、電源ユニット52が交流電源50に
接続され、+5V電圧が立ち上がる。このときRESE
T信号が発生してフリップ70ツブ85がリセットされ
る。また発光ダイオード68は消灯された状態を維持す
る。+5V電圧が印加されるとcpuiiはデータパス
ライン21を介してフリップフロップ85をセットしト
ランジスタ62をオンしてリレー63を動作させる。し
かしてリレー63の常開接点66がオンし、以降主スィ
ッチ51がオフされても電源の投入状態が維持されるよ
うになる。
In this embodiment with such a configuration, the main switch 51, 69 and the sub switch 55 of the main file unit 1 are
When turned on, the power supply unit 52 is connected to the AC power supply 50, and +5V voltage rises. At this time, RESE
A T signal is generated and the flip 70 knob 85 is reset. Further, the light emitting diode 68 remains in an extinguished state. When +5V voltage is applied, the CPU II sets the flip-flop 85 via the data path 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.

しかして主スィッチ51をオフ状態にする。このときス
イッチ69もオフして発光ダイオード68が点灯してそ
のことを表示する。このときバックアップ用のファイル
ユニット2も主スィッチ51をオフ、副スィッチ55を
オン状態にする。
Thus, the main switch 51 is turned off. At this time, the switch 69 is also turned off and the light emitting diode 68 lights up to indicate this. At this time, the backup file unit 2 also turns off the main switch 51 and turns on the sub switch 55.

すなわちバックアップ用ファイルユニット2については
電源ユニット52は交流電源50から切り離し、レギュ
レータ59のみを動作状態にする。
That is, for the backup file unit 2, the power supply unit 52 is disconnected from the AC power supply 50, and only the regulator 59 is put into operation.

このような状態でメインファイルユニット1において伝
送エラーが発生すると、それが回線の衝突によるものか
、自己の伝送部の故障によるものか、あるいはターミナ
ル側の故障によるものかチェックする。自己の伝送部の
故障の場合には回線を切離した状態でエラーにする。ま
た回線衝突もなく、また自己の伝送制御部も正常であれ
ば回線を接続して各ターミナル31〜3nにセルフチェ
ックコマンドを送信する。
If a transmission error occurs in the main file unit 1 under such conditions, 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 control unit 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 performing transmission with the main file unit 1 also detects a transmission error, it checks whether it is due to a line collision or a failure in its own transmission control section. Then, if there is no line collision at the terminal and its own transmission control unit is normal, the line is connected and the self-check command reception timer is set.

もしメインファイルユニット1がダウンしていなければ
タイマーがタイムオーバする前にセルフチェックコマン
ドが受信されるので、このときにはターミナルは一定時
間ウエイトしてから再送処理を行なう。しかしメインフ
ァイルユニット1がダウンしていればタイマーがタイム
オーバしてもセルフチェックコマンドが受信されないの
で、ターミナルとしてはこのセルフチェックコマンドが
所定時間内に受信されなかったことによりメインファイ
ルユニット1がダウンしていると判断してバックアップ
用として待機しているもう一方のファイルユニット2に
電源コントロール信号RPCCを送信する。
If the main 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 main file unit 1 is down, the self-check command will not be received even if the timer times out, so the terminal will think that main file unit 1 will go down because this self-check command is not received within the specified time. It is determined that the file unit 2 is running, and the power control signal RPCC is transmitted to the other file unit 2 that is on standby as a backup.

ターミナルから電源コントロール信号RPCCを受信す
るとバックアップ用ファイルユニット2ではコンパレー
タ74の出力が「1」、すなわちハイレベルとなり、ト
ランジスタ60がオンしてリレー63が動作されその常
開接点66がオンする。
When the power control signal RPCC is received from the terminal, the output of the comparator 74 in the backup file unit 2 becomes "1", that is, a high level, 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を介してフリップフロップ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 and operates the flip-flop 85 via the data bus line 21 and 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. Thereafter, even if the power control signal RPCC from the terminal is turned off, the power-on state is maintained.

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

またバックアップ用ファイルユニット2はメインファイ
ルユニット1が正常に動作しているときには電源ユニッ
ト52が交流電源50から切り離され、レギュレータ5
9が動作しているのみなので、不使用時には無駄な電力
が消費されることはなく、またi!源ユニット52やC
PU11などメイン回路は常時通電状態とはならない・
ので寿命が低下する虞はない。
Further, in the backup file unit 2, when the main file unit 1 is operating normally, the power supply unit 52 is disconnected from the AC power supply 50, and the regulator 5
9 is in operation, so no power is wasted when not in use, and i! source unit 52 or C
Main circuits such as PU11 are not always energized.
Therefore, there is no risk that the life will be shortened.

またバックアップ用ファイルユニット2が電源50から
切り離されている状態ではバッテリー79によってRA
M13.14がバックアップされている。この状態でバ
ッテリー79の電圧低下が起きると、コンパレータ75
の出力がrOJから「1」に反転する。しかしてトラン
ジスタ61がオンし、リレー63が動作して電源ユニッ
ト52が交流電源50に接続されるようになる。しかし
て電源ユニット52の出力がダイオード53、抵抗54
を介してバッテリー79に供給され、バッテリー79が
充電される。またコンパレータ75の出力が「1」にな
るとフリップフロップ83がセットされるようになる。
In addition, when the backup file unit 2 is disconnected from the power supply 50, the battery 79
M13.14 is backed up. If the voltage of the battery 79 decreases in this state, the comparator 75
The output of rOJ is inverted 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. Therefore, the output of the power supply unit 52 is connected to the diode 53 and the resistor 54.
is supplied to the battery 79 via the battery 79, and the battery 79 is charged. Further, when the output of the comparator 75 becomes "1", the flip-flop 83 is set.

しかしてCPU11はスリーステートバッファ84を制
御してその出力「1」を読込み、データバスライン21
及びコントロールライン22を介してフリップフロップ
85をセットするとともに充電時間用タイマーをセット
する。そしてタイマーのタイマー値が「0」になるとバ
ッファ84の出力を再度読込む。
Therefore, the CPU 11 controls the three-state buffer 84 and reads its output "1", and the data bus line 21
The flip-flop 85 is set via the control line 22, and a charging time timer is also set. Then, when the timer value of the timer reaches "0", the output of the buffer 84 is read again.

この時間内にバッテリー79の充電が完了していればコ
ンパレータ75の出力がrOJとなってフリップ70ツ
ブ83がリセットされているので、バッファ84の出力
はrOJになっている。しかしてバッファ84の出力が
rOJであればバッテリー79が正常に充電されたと判
断しフリップフロップ85をリセットしてトランジスタ
62をオフして電源ユニット52を交流電a50から切
り離す。なお、バッテリー79の充電が完了すればその
時点でコンパレータ75の出力が「0」になってトラン
ジスタ61はオフ制御されている。このようにバッテリ
ー79の電圧低下が発生すると一定時間電源ユニット5
2が交流電源50に接続されて充電が行われるので、バ
ッテリー79は常に所定レベル以上の電圧を保持するこ
とになりメモリのバックアップは確実行われる。
If the charging of the battery 79 is completed within this time, the output of the comparator 75 becomes rOJ and the flip 70 knob 83 is reset, so the output of the buffer 84 becomes rOJ. If the output of the buffer 84 is rOJ, it is determined that the battery 79 has been charged normally, the flip-flop 85 is reset, the transistor 62 is turned off, and the power supply unit 52 is disconnected from the AC power source a50. Note that when charging of the battery 79 is completed, at that point the output of the comparator 75 becomes "0" and the transistor 61 is controlled to be off. When the voltage of the battery 79 decreases in this way, the power supply unit 5
Since the battery 79 is connected to the AC power supply 50 and charged, the battery 79 always maintains a voltage higher than a predetermined level, and the memory can be backed up reliably.

また充電時間用タイマーのタイマー値が「0」になって
もバッファ84の出力が「1」の状態を保持していれば
バッテリー79に異常が発生したと判断してランプ18
を点灯し、かつブザー19を鳴らして知らせる。すなわ
ちバッテリー79の異常が検出できる。
Furthermore, even if the timer value of the charging timer reaches "0", 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. In other words, an abnormality in the battery 79 can be detected.

なお、前記実施例はバッテリーの充電時間をタイマーで
チェックしてバッテリーの異常検出するものについて述
べたが必ずしもこれに限定されるものではなく、例えば
時計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 starts is within a preset time.

また前記実施例ではメインファイルにもターミナルから
の電源コントロール信号によってメイン電源を立ち上げ
る制御回路を設けたがこれは無くてもよい。
Further, in the above embodiment, the main file is also provided with a control circuit for starting up the main power supply in response to a power control signal from the terminal, but this may be omitted.

[発明の効果] 以上詳述したようにこの発明によれば、メインファイル
ユニットのダウン時のバックアップ用ファイルユニット
への切換えが迅速にでき、またバックアップ用ファイル
ユニットへの電源の供給をバックアップ時のみにでき電
力消費の低減化及び寿命低下の防止を図ることができ、
しかもバックアップ用ファイルユニットの電源停止時に
おける電源のバックアップが確実にできるインラインシ
ステムを提供できるものである。
[Effects of the Invention] As detailed above, according to the present invention, it is possible to quickly switch to the backup file unit when the main file unit is down, and supply power to the backup file unit only during backup. It is possible to reduce power consumption and prevent shortening of lifespan.
Moreover, it is possible to provide an inline system that can reliably back up the power supply when the power supply to the backup file unit is stopped.

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

図はこの発明の実施例を示すもので、第1図は全体の構
成を示すブロック図、第2図はファイルユニットの回路
構成を示すブロック図、第3図はターミナルの回路構成
を示すブロック図、第4図はファイルユニットの電源制
御回路の具体的構成を示す回路図、第5図はファイルユ
ニットとターミナルとを接続するセルフチェックコマン
ドラインを示す図、第6図はファイルユニットのCPU
によるパワーオン処理を示す流れ図、第7図はファイル
ユニットのCPUによる伝送エラ一時の処理を示す流れ
図、第8図はターミナルのCPUによる伝送エラ一時の
処理を示す流れ図、第9図はターミナルのCPUによる
セルフチェック処理を示す流れ図である。 1・・・メインファイルユニット、2・・・バックアッ
プ用ファイルユニット、31〜3ル・・・ターミナル、
4・・・データの伝送ライン、5z 、52・・・電源
コントロール信号の伝送ライン、11.31・・・cp
u。 12.32・・・ROM、14・・・RAMファイル、
15・・・電源制御回路、16.34・・・伝送コント
ローラ、52・・・電源ユニット、60.61.62・
・・NPN型トランジスタ、63・・・リレー、75・
・・コンパレータ、79・・・メモリバックアップ用バ
ッテリー、85・・・D型フリップフロップ。 出願人代理人 弁理士 鈴江武彦 第1図 第6図 第7図 第8図 第9図
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 CPU, Figure 8 is a flowchart showing the temporary transmission error processing by the terminal CPU, and Figure 9 is the flowchart showing the temporary transmission error processing by the terminal CPU. FIG. 1...Main file unit, 2...Backup file unit, 31~3ru...Terminal,
4...Data transmission line, 5z, 52...Power control signal transmission line, 11.31...cp
u. 12.32...ROM, 14...RAM file,
15... Power supply control circuit, 16.34... Transmission controller, 52... Power supply unit, 60.61.62.
・NPN transistor, 63 ・Relay, 75 ・
...Comparator, 79...Memory backup battery, 85...D type flip-flop. Applicant's Representative Patent Attorney Takehiko Suzue Figure 1 Figure 6 Figure 7 Figure 8 Figure 9

Claims (1)

【特許請求の範囲】[Claims] 商品販売データを登録処理するとともにレシート発行を
行なう複数台のターミナルと、この各ターミナルが処理
するデータをファイリングするファイルユニットをイン
ライン接続してなるインラインシステムにおいて、前記
ファイルユニットを2台インライン接続して一方をメイ
ンとし、他方をバックアップ用とし、メインファイルユ
ニットは、自己のダウンを検出して回線から切離す手段
を設け、バックアップ用のファイルユニットは、メモリ
バックアップ用バッテリーと、このバッテリーの電圧低
下を検出する電圧検出手段と、この電圧検出手段による
バッテリー電圧の低下検出に応動して一定時間メイン電
源を立ち上げバッテリー充電を行なう充電手段と、前記
各ターミナルからの電源コントロール信号に応動してメ
イン電源を立ち上げる電源立ち上げ手段と、この電源立
ち上げ手段による電源の立ち上がりを検出して自己を回
線に接続し各ターミナルとデータ伝送制御を行なう伝送
制御手段とを設け、前記各ターミナルは、メインファイ
ルユニットのダウンを検出する手段と、この手段によっ
てメインファイルのダウンが検出されると前記バックア
ップ用のファイルユニットに電源コントロール信号を送
信する手段を設けたことを特徴とするインラインシステ
ム。
In an inline system in which multiple terminals that register product sales data and issue receipts are connected inline, and a file unit that files the data processed by each terminal is connected inline, two of the file units are connected inline. One is used as the main file unit, and the other is used as a backup.The main file unit is equipped with a means to detect when it is down and disconnect from the line, and the backup file unit is equipped with a memory backup battery and a voltage drop of this battery. A voltage detecting means for detecting voltage, a charging means for turning on the main power supply for a certain period of time to charge the battery in response to the detection of a drop in battery voltage by the voltage detecting means, and a charging means for turning on the main power supply for a certain period of time to charge the battery in response to the detection of a drop in battery voltage by the voltage detection means; A power supply start-up means for starting up the power supply, and a transmission control means for detecting the start-up of the power by the power supply start-up means, connecting itself to the line, and controlling data transmission with each terminal, and each terminal has a main file. An in-line system comprising: means for detecting unit down; and means for transmitting a power control signal to the backup file unit when the main file is detected by this means as being down.
JP62044551A 1987-02-27 1987-02-27 In-line system Pending JPS63211416A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62044551A JPS63211416A (en) 1987-02-27 1987-02-27 In-line system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62044551A JPS63211416A (en) 1987-02-27 1987-02-27 In-line system

Publications (1)

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

Family

ID=12694635

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62044551A Pending JPS63211416A (en) 1987-02-27 1987-02-27 In-line system

Country Status (1)

Country Link
JP (1) JPS63211416A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108983938A (en) * 2017-05-31 2018-12-11 广达电脑股份有限公司 It can operating system, computer implemented method and medium when standby power failure

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108983938A (en) * 2017-05-31 2018-12-11 广达电脑股份有限公司 It can operating system, computer implemented method and medium when standby power failure
JP2018206342A (en) * 2017-05-31 2018-12-27 廣達電腦股▲ふん▼有限公司 Server system which can operate when standby power source of psu does not function
US10671139B2 (en) 2017-05-31 2020-06-02 Quanta Computer Inc. Operable server system when standby power of PSU fails
CN108983938B (en) * 2017-05-31 2021-04-20 广达电脑股份有限公司 Operational system, computer-implemented method, and medium when standby power fails

Similar Documents

Publication Publication Date Title
US5272382A (en) Power supply for computer system manager
US5283905A (en) Power supply for computer system manager
JPH0556577A (en) Power supply controller
EP0275086A2 (en) In-line coupling circuit for a closed-loop communication terminal
JPS63211416A (en) In-line system
JPS63211495A (en) Inline system
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
JPH04268643A (en) Information processing system
JP2002062903A (en) Control device
JPH0117335B2 (en)
JPH01231622A (en) Power source control system
JP2602543Y2 (en) Remote control unit
JPH01130276A (en) Pos system
JPH07121394A (en) Multiplexer
JPH0716190B2 (en) Communication error monitoring device for communication system
JPS61141059A (en) Terminal equipment
JPH03148799A (en) Power source controller for sales data processor for oil station
JPH04160420A (en) Uninterruptible power supply unit
JPH0331921A (en) Data processor
JPH0673132B2 (en) In-line abnormality detection circuit of POS terminal
JPH06230862A (en) Terminal equipment on/off time reserving system device and automatic power supply control device
JP2919506B2 (en) Network controller
JPH07129285A (en) Power source control circuit
JPH0141066B2 (en)
JPH05210434A (en) Backup processing method