JPS61161569A - Command interchange control system in plural electronic device systems - Google Patents

Command interchange control system in plural electronic device systems

Info

Publication number
JPS61161569A
JPS61161569A JP174485A JP174485A JPS61161569A JP S61161569 A JPS61161569 A JP S61161569A JP 174485 A JP174485 A JP 174485A JP 174485 A JP174485 A JP 174485A JP S61161569 A JPS61161569 A JP S61161569A
Authority
JP
Japan
Prior art keywords
command
exchange
code
electronic device
message
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
JP174485A
Other languages
Japanese (ja)
Inventor
Nobuhiko Isato
伊里 信彦
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP174485A priority Critical patent/JPS61161569A/en
Publication of JPS61161569A publication Critical patent/JPS61161569A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4022Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Cash Registers Or Receiving Machines (AREA)
  • Multi Processors (AREA)

Abstract

PURPOSE:To control exclusively a command interchange in an overall data processing system by permitting command interchange only when code-classified stored contents in a storage means indicates that the interchange is not performed. CONSTITUTION:A controller 100 receives concentratedly commands from all data processors E and peripheral devices P. Codes different from each other are assigned to devices E and P respectively. When the controller 100 receives an interchange part message, the controller 100 permits a command interchange and rewrites stored contents to indicate that an interchange is performed only when code-classified stored contents in a storage means F indicate that an interchange is not performed; and when the controller 100 receives an interchange end message, the controller rewrites stored contents to indicate that an interchange is not performed.

Description

【発明の詳細な説明】[Detailed description of the invention] 【発明の属する技術分野】[Technical field to which the invention pertains]

本発明は複数台のデータ処理装置とくにECRと該複数
データ処理装置に対して共通に設けられた周辺N Wた
とえばプリンタ、フロッピ装置、テープカセット装置、
CRT装置、カードリーグ。 マークリーグなどを含む複数電子装置系内のデータ処理
装置相互間およびデータ処理装置と周辺装置との間のコ
マンドの交流を排他的に制御する方式に関する。
The present invention provides a peripheral NW commonly provided for a plurality of data processing devices, particularly an ECR, and a peripheral NW such as a printer, a floppy device, a tape cassette device, etc.
CRT device, card league. The present invention relates to a method for exclusively controlling the exchange of commands between data processing devices in a plurality of electronic device systems including mark leagues and between data processing devices and peripheral devices.

【従来技術とその問題点】[Prior art and its problems]

前述のような技術分野とくに本発明が適するECR分野
においては、その適用分野が商店やスーパーマーケット
だけでなく大食堂やホテルのような比較的大きな企業体
にも広がって行くにつれ、その性能や機能も洗練されて
非常に簡単なものからPLU機能等のより高度な機能を
備えたものに変身しつつある6周知のようにかかるEC
RはPO8装置に適合させたデータ処理装置であって、
処理速度や記憶可能容量が向上しつつあるが、多くの場
合その相互連携が困難であって、前述のホテルの場合の
ようにフロントのほか食堂、ティールーム、売店などに
個別にスタンドアロンのECRを設置ないしは逐次増設
するのがふつうであり、総合的なPOSシステムを作る
には本格的なただし高価な計算機システムを導入する必
要があり、ソフトウェアを含めた導入費がかさむ問題が
ある゛。 従って導入側からは、必要に応じて逐次増設が容易でか
つ相互連携が可能でしかも総合的なPOSシステムを構
成できるようなECRが要請されている。 総合的なPOSシステム構成上の問題点は、ECR相互
間の連携のみでなくその周辺装置との連携にもある。従
来、プリンタやCRT装置などの周辺装置類は各ECR
に対して専用に設けられることが多かった。しかし、例
えばホテル内に和食量、洋食堂、ティールームなど多数
の販売個所がありこれに応じて調理室が数個所あって、
各版売かる専用の周辺装置では要求に沿い得す、複数個
のECRに対して共用の周辺装置を設けなければならな
い。従来はかかる要求に応じるため、複数のECRから
共通の周辺装置にプリントや表示などの要請コマンドが
同時にあった場合の排他制御の機能をコマンド受取側の
周辺装置に持たせていた。しかし、周知のようにこれら
の周辺装置はいずれも比較的簡単な単能的なものであっ
て、上述のような排他機能を確実に持たせるには複雑な
制御機能を追加することが必要となるので価格が高くつ
いてしまい、しかもECRによる共用条件が変わるとそ
のつど排他制御回路を変更する必要があって一般的な共
用周辺装置として利用できるものとはいえなかった。
In the technical field mentioned above, especially in the field of ECR to which the present invention is suited, as its application field expands not only to stores and supermarkets but also to relatively large corporate entities such as large cafeterias and hotels, its performance and functions will also increase. As is well known, such ECs are transforming from sophisticated and very simple ones to ones with more advanced functions such as PLU functions.
R is a data processing device adapted to a PO8 device,
Although processing speed and storage capacity are improving, in many cases it is difficult to link them together, and as in the case of the hotel mentioned above, stand-alone ECRs are installed separately for the front desk, cafeteria, tea room, shop, etc. Usually, they are installed or expanded one after another, and in order to create a comprehensive POS system, it is necessary to introduce a full-fledged but expensive computer system, which raises the problem of high installation costs including software. Therefore, those who have introduced ECRs are demanding an ECR that can be easily expanded as needed, that can be linked together, and that can form a comprehensive POS system. The problem with the overall POS system configuration is not only the cooperation between ECRs but also the cooperation with their peripheral devices. Conventionally, peripheral devices such as printers and CRT devices were
It was often set up exclusively for However, for example, there are many sales points within the hotel, such as Japanese food, Western restaurants, and tea rooms, and there are several cooking rooms.
To meet the requirements of the dedicated peripherals sold in each version, a shared peripheral must be provided for multiple ECRs. Conventionally, in order to meet such requests, the peripheral device on the command receiving side was provided with a function of exclusive control when request commands such as print or display were simultaneously received from a plurality of ECRs to a common peripheral device. However, as is well known, all of these peripheral devices are relatively simple and single-function devices, and it is necessary to add complex control functions to ensure that they have the above-mentioned exclusive functions. Therefore, the price is high, and the exclusive control circuit needs to be changed each time the ECR sharing conditions change, so it cannot be used as a general shared peripheral device.

【発明の目的】[Purpose of the invention]

本発明の主たる目的は上述のような事情を踏まえて、共
用の周辺装置を含めた複数データ処理装置によって総合
的なデータ処理系を構成する際の系内のコマンド交流を
排他的に制御するに好適な方式を得ることにある。本発
明の従たるしがし型理装置に専用に使用することも、複
数データ処理装置に共通に使用することもできるように
することにある。
In view of the above-mentioned circumstances, the main object of the present invention is to exclusively control the command exchange within the system when a comprehensive data processing system is configured by multiple data processing devices including shared peripheral devices. The goal is to find a suitable method. It is an object of the present invention to enable the present invention to be used exclusively for a molding apparatus or for use in common with a plurality of data processing apparatuses.

【発明の要点】[Key points of the invention]

本発明によれば上述の目的は、冒頭記載のような複数電
子装置系内のコマンド交流制御方式として各電子装置ご
とにそれぞれ異なるコードを振り当てるとともに、コマ
ンドを交流中の電子装置を該コードに記憶する記憶手段
を備えて各電子装置からのコマンド伝送路を集中的に受
け入れるコマンド交流側?11装置を設け、コマンドの
発信元電子装置からはコマンド交流の開始前および終了
後にそれぞれコマンドの行先電子装置のコードを含む交
流開始メツセージおよび交流終了メツセージを前記コマ
ンド交流制御装置に送り、コマンド交流制御装置側では
該交流開始メツセージを受けた際に前記記憶手段内のコ
ード別記憶内容が非交流中であることを示すときに限っ
てコマンドの交流を許可するとともに該記憶内容を交流
中に書き換え。 前記交流終了メソセージを受けたときにはじめて 。 該記憶内容を非交流中に書き換えるようにすることによ
り達成される。 上の本発明方式のもつ基本構成例を模式的に示すと第1
図のとおりである。この図の上部には複数個のデータ処
理装置E O+ E l + E i+ E jが示さ
れており、これらは例えばすべてECRであり、一方図
の下部には周辺装置Pk、Piが示されており、これら
のデータ処理装置および周辺装置は図の中央に示された
コマンド交流制御装置100(以下単に制御装置という
)の入出力ポート110に接続されている。この模様は
下の第2図に見られるように制御装置100を中心とし
たいわば星形接続であって、制御装置100はすべての
データ処理装置Eと周辺!a置pからのコマンドを集中
的に受け入れる。また、これらの装置E、Pには、装置
ごとにそれぞれ異なるコード、例えば通し番号ないしは
連続番号のコードが振り当てられており、第1図および
第2図ではこのコードが装置E、Pの枠内に示された1
1.1. i、 i、に、 I 7+千六刺1いスー笛
9Mの5−夕処理装置EOには専用の周辺装置POが付
属しているが、このコードはデータ処理装置EOによっ
て代表されているので別にコードは取られていない。 このデータ処理装置EOは例えば他のデータ処理装置E
1.EitEjを子機とする親機であり、それに付属す
る周辺装置POは例えばフロッピ装置などの外部記憶装
置であって、親機および子機が必要とする重要なプログ
ラムやデータを記憶しているやはり共通の周辺装置であ
る。 前述の制御装置100の入出力ポート110には、上の
ようにコードが取られた装置E、Pに対応した数の入出
力回路11i(i =0.l、i、j、に、1)が設け
られており、例えばコードjを取られたデータ処理装置
Ejは接続ケープルーjを介して入出力ポート110の
入出力回路11j と接続されている。なお、これらの
入出力回路11iは対応装置がデータ処理装置Eである
か周辺装置Pであるかに関せず同じものであって、特定
の入出力回路11iにはいずれの種類の装置をも選択的
に接続できる。また各入出力回路11iはその中央の鎖
線で示されるようにそれぞれゲートやう・7チからなる
入力回路と出力回路とが対になっていて、さらに対応す
る接続ケーブル−1内の二本の電線がそれらにそれぞれ
接続される。 一点鎖線で囲んで示された制御装置100の中央部に示
された記憶手段Fは例えばRAM内に設定されたフラグ
を記憶するエリアであって、前述のコードiに対応する
数だけのフラグFi(i=o、l、i。 j+に、l)を記憶できるエリアを有する。 いま、コードiに対応するデータ処理装置Ejからコー
ドkに対応する周辺装置Pkにコマンドを送って、例え
ばプリンタである該周辺装置Pkに印字動作をさせると
きには、データ処理装置Eiの下方に矢印で示すように
まずコードkを含む交流開始メツセージMSを制御装置
100に送る。このときコマンドの行先である周辺装置
Pkがまだどのデータ処理装置Eからの指令によっても
動作中でないときにはそれに対応するフラグFkがOで
あるので、制御装置100はこれを確認した上で該フラ
グFkに交流中を示すフラグ値を立てる。このフラグ値
は最も簡単にはrlJ値でもよいが、図示の例では前述
の交流開始メソセージMS中に発信元のコードiも含ま
れていて、この発信元コードiがフラグ値として立てら
れる。また、容易にわかるようにこのフラグの立て方と
しては、発信元コードiと行先コードkに対応するフラ
グFi、Fkの双方に[luを立てることでもよい、い
ずれにせよ、発信元コードiと行先コードにとが制御装
置100に記憶され、例えば前述の入出力回路11iと
llkとの制御装置から見た出力回路のゲートないしは
ラッチを開くことによりコード番号iの装置とコード番
号にの装置との間のコマンド交流を許可する。 交流開始メツセージMSにつづくコマンドメソセージM
l、M2は例えば前述の印字を指令するメツセージであ
って、その印字内容を示すデータがこれに含まれる。ま
たコマンドメソセージは1回とは限らず、必要に応じて
複数回発しられ、そのつどこれらのコマンドメツセージ
?IIJ2は周辺装置f’kに図示のように伝えられて
、該コマンドが実行される。また、各コマンドによる実
行が終了したっど周辺装置Pkからは実行終了メソセー
ジe1.e2が前とは逆の経路でデータ処理装置Eiに
送られ、データ処理装置Ei側では実行終了メツセージ
を受取った後に次のコマンドメツセージを発する。デー
タ処理装置ll E iは、周辺装置Pkへのすべての
コマンドを送り終えてそれに対する最終の実行終了メツ
セージを受取ったとき、交流終了メツセージMEを制御
装ff 100に送る。この交流終了メツセージMEに
は前と同様に行先コードkが最低含まれ、かつふつうは
発信元コードiも含まれており、制御装置100はこれ
を受けて例えばフラグFkのフラグ値を非交流中を示す
0に戻すことにより、コードiの装置とコードにの装置
との間のコマンド交流に対する許可を解消する。 前述のコードi、に間のコマンド交流中に、コードjの
データ処理袋ffEjから周辺装置Pkに対する交流開
始メツセージMSが図の鎖線で示すように発しられた場
合には、制御装ff1ooは該メツセージMSをコード
i、に間のコマンド実行の合い間あkに対応するフラグ
Fkが非交流中を示す0になっていないのでコマンド交
流の開始を許可することはなく、これによって目的とす
る排他制御が連しられる。 なお、以上の記載からもわかるように本発明方式におい
ては、交流開始メツセージMSと交流終了メツセージM
Eとはあくまで制御装置100に与えられるものであっ
て、行先装置に伝達されることはない。従って行先装置
1例えば周辺装置には従来のように排他制御をするため
の付加回路を設ける必要が全くなくなり、間車な装置を
汎用周辺装置として用いることができる。また前述のよ
うに。 コードt、に間のコマンド交流が行なわれている途中で
、これらとは全く無関係なツー11,1間のコマンド交
流は可能である。しかし、制′a装置100内のバス構
成とその制御が若干このために複雑化することになるの
で、データ処理装置EEにECRを用いる程度の系統に
おいては、かかるいわば多重のデータ交流機能を備えな
い方が制御装置100n)イii;aメ=ノ1f−dl
#49j−MrhM/%nY?MM++’?M減させる
上で望ましい。 第3図はその(alに示すようなコード番号Oの親機と
それに専用に付属するただし前述のようにすべてのデー
タ処理装置Eにとって共用の周辺装置POとの間のコマ
ンド伝達の模様を同図伽)の上方から下方に向けて経時
的に示すもあで、容易にわかるようにこの場合は交流開
始メツセージMSも交流終了メツセージMEも必要なく
、親機EOはコマンドメツセージ旧、 M2を周辺装置
POに与えてジョブJl。 J2の実行1例えばデータ01.02を読み出し、実行
終了メソセージeをそのつど受け取った後に次のコマン
ドメツセージを発するようにすればよい。 第4図はデータ処理装置間にコマンド交流が行なわれる
模様を同様に経時的に示すもので、この例では同図(a
lに示すデータ処理袋[E[、Ej相互間にコマンド交
流が行なわれる。同図伽)に示すように、まずコードi
の装置Eiから交流開始メツセージMSが発しられ、制
御装置100はこれを受けてコードjに対応するフラグ
Fjにコードiをフラグ値として立てた後に許可信号R
DYをコードlの装置に帰す。ついでコマンドメ・ノセ
ージCMIが制御袋f 100を介してコードjの装置
Ejに発しられ、その内でジョブJ1が実行された後に
実行終了メ・ノセージeが装置Eiに帰される。この時
、1llEoから装置Ejに対する交流開始メツセージ
MSが発しられても、制?B装置100はフラグPjに
既にiが立っているので許可せずに禁止メツセージPR
Hを親機EOに帰す。その後、こんどは装置Ejからコ
マンドメツセージCM2が発しられ、これを受けた制御
装置100はすでにコードj+J間のコマンド交流を許
可ずみなので禁止メツセージを発することなく、コマン
ドメツセージCM2は装置Eiに伝えられてジョブJ2
が実行され、実行終了メソセージeが装置Ejに帰され
る。交流終了メツセージMEが装置Ejから発しられる
と′、制?11装置E100はこれによりフラグFjO
値を0に戻した上、交流許可の解消メツセージOFFを
装置Eiに送る。なお、この過程においてフラグFjに
iを立てるかわりにその左方に示されたフラグFiにも
同様にただし例えば論理値「1」を立てるようにしても
、同様なコマンド交流の許可と禁止の動作をすることが
できるのは明らかである。
According to the present invention, the above-mentioned object is to allocate a different code to each electronic device as a command AC control system in a system of multiple electronic devices as described at the beginning, and to assign a different code to each electronic device while transmitting a command to the electronic device using the code. A command exchange side that is equipped with a storage means to centrally accept command transmission paths from each electronic device? 11 devices are provided, and the command source electronic device sends an AC start message and an AC end message including the code of the command destination electronic device to the command AC control device before and after the command exchange starts and ends, respectively, to perform command AC control. On the device side, upon receiving the communication start message, command communication is permitted only when the code-specific memory contents in the storage means indicate that communication is not in progress, and the memory contents are rewritten during communication. For the first time when the communication end message is received. This is achieved by rewriting the memory contents during non-interchange. The basic configuration example of the above method of the present invention is schematically shown in the first example.
As shown in the figure. In the upper part of the figure, a plurality of data processing devices E O+ E l + E i + E j are shown, all of which are ECRs, for example, while in the lower part of the figure peripheral devices Pk, Pi are shown. These data processing devices and peripheral devices are connected to an input/output port 110 of a command AC control device 100 (hereinafter simply referred to as a control device) shown in the center of the figure. As seen in Figure 2 below, this pattern is a so-called star-shaped connection with the control device 100 at the center, and the control device 100 connects to all the data processing devices E and its surroundings! Centrally accepts commands from a and p. Additionally, each device is assigned a different code, such as a serial number or consecutive number code, and in Figures 1 and 2, this code is assigned within the frame of devices E and P. 1 shown in
1.1. i, i, ni, I 7 + 1,600 stings 1, Sue whistle 9M's 5-event The processing device EO comes with a dedicated peripheral device PO, but this code is represented by the data processing device EO, so No other code was taken. This data processing device EO may be connected to another data processing device E, for example.
1. The EitEj is a parent device that serves as a child device, and the peripheral device PO attached to it is an external storage device such as a floppy device, which stores important programs and data needed by the parent device and child devices. It is a common peripheral device. The input/output ports 110 of the control device 100 described above have input/output circuits 11i (i = 0.l, i, j, 1) corresponding to the devices E and P whose codes are taken as above. For example, data processing device Ej from which code j has been removed is connected to input/output circuit 11j of input/output port 110 via connection cable j. Note that these input/output circuits 11i are the same regardless of whether the corresponding device is a data processing device E or a peripheral device P, and any type of device can be connected to a specific input/output circuit 11i. Can be selectively connected. In addition, each input/output circuit 11i has a pair of input circuits and output circuits each consisting of gates and 7 channels, as shown by the chain line in the center, and two electric wires in the corresponding connection cable-1. are connected to them respectively. The storage means F shown in the center of the control device 100 surrounded by a dashed line is an area for storing flags set in a RAM, for example, and the number of flags Fi corresponding to the code i described above is It has an area that can store (i=o, l, i. j+, l). Now, when sending a command from the data processing device Ej corresponding to code i to the peripheral device Pk corresponding to code k to cause the peripheral device Pk, which is a printer, for example, to perform a printing operation, an arrow is drawn below the data processing device Ei. As shown, first, an AC start message MS containing a code k is sent to the control device 100. At this time, if the peripheral device Pk that is the destination of the command is not yet operating according to a command from any data processing device E, the corresponding flag Fk is O, so the control device 100 confirms this and then sets the flag Fk. A flag value is set to indicate that communication is in progress. This flag value may most simply be the rlJ value, but in the illustrated example, the above-mentioned AC start message MS also includes the sender code i, and this sender code i is set as the flag value. Also, as can be easily understood, the way to set this flag is to set [lu for both flags Fi and Fk corresponding to the source code i and destination code k. The destination code is stored in the control device 100, and the device with the code number i and the device with the code number can be connected by opening the gates or latches of the output circuits seen from the control device of the input/output circuits 11i and llk described above, for example. Allow command exchange between. Command message M following the exchange start message MS
1 and M2 are, for example, messages instructing the above-mentioned printing, and include data indicating the printing contents. Also, the command message is not limited to once, but is issued multiple times as necessary, and these command messages are issued each time. IIJ2 is transmitted to the peripheral device f'k as shown, and the command is executed. When the execution of each command is completed, the peripheral device Pk sends an execution end message e1. e2 is sent to the data processing device Ei in the opposite path to the previous one, and the data processing device Ei side issues the next command message after receiving the execution completion message. When the data processing device ll E i has sent all commands to the peripheral device Pk and has received the final execution end message for it, it sends an AC end message ME to the control device ff 100 . This exchange termination message ME includes at least the destination code k as before, and usually also includes the source code i, and in response to this, the control device 100 changes the flag value of the flag Fk, for example, to By returning to 0 indicating , permission for command exchange between the device with code i and the device with code i is canceled. During the command exchange between code i and code i, if an exchange start message MS is issued from the data processing bag ffEj of code j to the peripheral device Pk as shown by the chain line in the figure, the control device ff1oo transmits the message. Since the flag Fk corresponding to the command execution interval Ak between the MS code i and the command execution interval is not 0, which indicates that no exchange is in progress, the start of command exchange is not permitted, thereby achieving the intended exclusive control. is followed. As can be seen from the above description, in the method of the present invention, the communication start message MS and the communication end message M
E is only given to the control device 100 and is not transmitted to the destination device. Therefore, there is no need to provide the destination device 1, for example, a peripheral device, with an additional circuit for exclusive control as in the prior art, and an idle device can be used as a general-purpose peripheral device. Also as mentioned above. While commands are being exchanged between codes t and t, commands can be exchanged between twos 11 and 1 that are completely unrelated to them. However, since the bus configuration and its control within the control device 100 become somewhat complicated, a system that uses an ECR for the data processing device EE is not equipped with such a so-called multiple data exchange function. It is better not to have the control device 100n)iii;
#49j-MrhM/%nY? MM++'? This is desirable for reducing M. Figure 3 shows the same pattern of command transmission between the master device with code number O as shown in (al) and the peripheral device PO attached exclusively to it but shared by all data processing devices E as mentioned above. As can be easily seen, in this case, neither the AC start message MS nor the AC end message ME are needed, and the main unit EO is connected to the old command message and M2 around it. Give job Jl to device PO. Execution 1 of J2 For example, data 01.02 may be read and the next command message may be issued after each execution end message e is received. Figure 4 similarly shows how commands are exchanged between data processing devices over time;
Commands are exchanged between the data processing bags [E[, Ej] shown in FIG. As shown in Figure 1), first, the code i
An alternating current start message MS is issued from the device Ei, and in response to this, the control device 100 sets the code i as the flag value in the flag Fj corresponding to the code j, and then sets the permission signal R.
Return DY to the device with code l. A command message CMI is then issued to device Ej with code j through control bag f 100, and after job J1 is executed therein, an execution completion message e is returned to device Ei. At this time, even if the AC start message MS is issued from 1llEo to device Ej, is there any control? Since the flag Pj is already set to i, the B device 100 sends the prohibition message PR without permission.
Return H to the parent unit EO. After that, the command message CM2 is issued from the device Ej, and the control device 100 that received this has already permitted command exchange between codes j+J, so the command message CM2 is transmitted to the device Ei without issuing a prohibition message. Job J2
is executed and an execution end message e is returned to device Ej. When the AC end message ME is issued from the device Ej, the control? 11 device E100 thereby sets the flag FjO.
After returning the value to 0, a communication permission cancellation message OFF is sent to the device Ei. In addition, in this process, instead of setting i to flag Fj, the flag Fi shown to the left of it may be set to the logical value "1" as well, and the same command exchange permission and prohibition operations will be obtained. It is clear that it is possible to

【発明の実施例】[Embodiments of the invention]

以下、第5図以降を参照しながら本発明方式の最良実施
例をより具体的に説明する。 第5図は本発明方式を適用した装置群の構成例をホテル
ないしは大食堂向けを例にとって示すもので、一点1m
 mによって分割された範囲によって各装置が設置され
る施設内の区域が示されている。 図示の装置類は図の左側に示された制御装置f100を
中心に前述のように星形状に接続されており、データ処
理装置すなわち図ではECRの親機[10は例えばフロ
ントに置かれ、前述の親機に付属した共用の周辺装置と
してのフロッピ装置POと符号を付されていないプリン
タとを従えている。その下方に示された子機としてのE
CR装zaiは例えば、レストランに設置され、注文品
をウェートレス用のスリップを作るためのスリッププリ
ンタを付属している。さらにその下方に示されたECR
装置置県Iけ例憂ぼ十卆ルカネ国田1木−ア M早六柄
プいないが必要に応じてレシート作成用のプリンタ等が
付属される。その左方に示されたテープカセット装置P
kとプリンタptとは制御装置100に直接接続される
共用の周辺装置であり、テープカセット装置Pkから読
み出されるプログラムやデータを格納しておく ECR
から見た外部記憶装置であって制御装置100と同じ区
画に置かれ、プリンタptは例えば調理室に設置されて
ECR装置置県等で受けた客からの注文品を印字して調
理人に調理開始を指令するキッチンプリンタである。 これら図示のECR装置置県、ε1+EJ+周辺装置P
k。 PI等はそれぞれ接続ケーブル−〇、旧、Wj、Wk、
M1等により制御装置100にその接続リセプタクル1
20にプラグを差し込むことによって接続されるが、前
述のように各リセプタクル120には任意のECR装置
あるいは周辺装置を接続することができる。 第6図は制御装置100の内部構成例を示すもので、一
点鎖線で囲んで示された該制御装置100の左右に示さ
れたりセプタクル121〜126に図示されていないE
CRg置E装〜E3および図の右側に示された周辺装置
P4〜P6がそれぞれ接続ケーブルを介してFi tr
iされた状態が示されている。なお、この図では接続ケ
ーブル内のコマンドおよびデータ伝送用の2本の線のみ
が示されている。制御装置100は図示のようにそれ自
体がマイクロコンピュータであって、通常のようにCP
 UIOI、 ROM2O3゜RAM103およびそれ
らを連結するアドレスバス104、データバス105を
含み、本発明における記憶手段としてのフラグエリアF
がRA M 103内に設定される。前述のりセプタク
ル121〜126に通じるデータ伝送線はそれぞれ入出
力回路111〜116から出ており、該入出力回路はデ
ータバス105と接続されて、アドレスバス104によ
りデコーダ106゜制御線107を介して制御される。 この入出力回路111〜112は、その内の入出力回路
111について詳しく示されているようにそれぞれ入力
回路111aと出力回路111bとの対からなり、例え
ば前者は単純なゲート回路、後者はラッチ回路であって
よく、制?avA107によってアドレスバス104上
のアドレスが指定する回路がイネーブルあるいはアネー
ブ第7図は制御装置100がこの入出力回路を介して受
け入れあるいは発信するメンセージMの一般的なフォー
マットを示すものである。同図(a目よ装置i例えばE
CRから装置k例えば周辺装置を指定して発しられるメ
ツセージMAであって、図の矢印方向の先頭には通常の
オープニング部MOがあり、これに行先装置kを指定す
る行先コード部1’lDと発イδ元装置kを示す発信元
コード部旧が続く。次のコマンド部MCはメソセージM
の主体をなすものであって、該メツセージMAの特質を
示すコマンド。 すなわち交流開始メソセージMSや交流終了メツセージ
?+[!の場合には該開始や終了を示すコマンドが。 前述のコマンドメソセージM1やM2の場合は行先装W
tkに果たさせるべきジップを指定するコマンドが入れ
られる。さらにこれにつづくデータ部肝としては、行先
装置kにさせるべきジョブに必要なデータやプログラム
、例えば行先装置kがプリンタである場合には印字すべ
き内容データが付けられる。もちろん、メソセージMA
が交流開始メンセージMSや交流終了メツセージMEで
ある場合には、メツセージの行先ないしは発信元が制御
装置100であるからこのデータ部MPを付することは
必要でない。同図(blに示されたメツセージMBは(
alに示されたメツセージ門^に対する返信メツセージ
、例えば前述の終了メツセージs、e1.e2などであ
って、その構成は前と同様であるが、メツセージMAに
おいて行先コード部MOに入っていたコードkがメツセ
ージMBにおいては発信元コード部Mlに、メツセージ
MAにおいて発信元コード部旧に入っていたコードiが
メソセージMBにおいては行先コード部MDにそれぞれ
図の矢印で示すように入れられる。またコマンド部MC
に入るコマンドは、例えば’A W iから指定さたジ
ップが終了した旨の実行終了を報告するコマンドが入れ
られるが、これと同時に装ffk側から装ぎiに異なる
ジョブを依願するコマンドが付されることもあり得る。 また、返信メ・2セージの場合のデータ部MPには、v
t1iから指定されたジョブが充分に果たせない場合の
ステーターxJnm礒(Δ−とシソ つぎに制御装置100のCP U 101の動作フロー
を示す第8図を参照しながら本発明方式における制御装
置100を中心とした動作を説明する。このフローチャ
ートは第1図に示したように制御装置100内の記憶手
段Fに行先装置ごとにフラグエリアが設定され、該フラ
グ内には発信元装置のコードがフラグ値として立てられ
るa様に対応するもので、また理解を容易にするため発
信装置のコードがiで行先装置のコードがkであるとし
て描かれている。 最初のステップSlでは制御装置100はメツセージM
を受け取り、このメツセージMはそのコマンド部MCの
内容に従って交流開始メツセージMS、交流終了メツセ
ージME、コマンドメツセージMl、M2あるいは実行
終了メツセージel、e2等であり得るが、いずれにせ
よそのオープニング部MO,行先コード部?lI)、発
信元コード部旧によってコマンド交流の行先装置のコー
ドにと発信元装置のコードiとが識別される。つづくス
テップs2では行先装置であるか否かが判定され、ゼロ
であればステップS4に飛ぶが、すでにフラグ値が立っ
ておればステップS3でそのフラグ値が発信元装置のコ
ードiと−ff&するか否かが判定される。コマンド交
流がまだ始まっていなければ、ステップS2における判
定結果は正となるから、ステップS4に飛んで受信メソ
セージMのコマンド部MCが交流開始コマンドSである
か否かが判定され、その結果フローはステップS5以降
の右方の列のフローに移る。ステップS5では行先装置
のコードkに対応するフラグFkに発信元装置のコード
iを立て、次のステップS6では、これら2個のコード
i、kに対応する入出力回路110内の例えば出力回路
に指令を送ってイネーブルし、ステップS7では該イネ
ーブルずみ出力回路を介して許可信号RDYをコードi
の発信元装置に送ってこれで両置県t、に間のコマンド
交流準備を終えてフローをステップSlに戻す。 コードiの装置からコードにの装置にコマンドメツセー
ジMlまたはM2であるメツセージMが送られて来たと
き、制御装置100は前と同様にステップS1でこれを
受けるが、今度はフラグFkにすでにiが立てられてい
るので、フローはステ・ノブS2から下のステップS3
に入り、このステップS3の判定結果も正でかつステッ
プS4ではメツセージMのコマンド部MCの内容が交流
開始コマンドSと異なるので、フローは下のステップS
8に移る。ステップS8ではコマンド部肛の内容が交流
終了コマンドEと比較されるが、メツセージMがコマン
ドメツセージであれば判定結果は否と出るのでフローは
下のステップS9に入って、コードiの装置から受けた
メツセージをそのままコードにの装置に転送する。もっ
とも、実際の動作面では、制御装置100は受信したメ
ツセージMを一旦第6図に示すRAM103に記憶させ
た上で前のステップS2−34.S8の判定動作を行な
っているのであるから、RAM103からこのメツセー
ジMを読み出した上でデータバス105を介してコード
番号にの装置に送信する手順を踏む、もちろん、この際
データバス105とコード番号にの装置との間の出力回
路は前述のステップS6で既に開かれているが、本発明
の異なる実施態様としてはこのステップS6中のコード
kに対応する装置の出力回路を開く部分ステップを、ス
テップS8とステップS9との間に入れて、メツセージ
Mの転送が必要となるつどステップS9に先立って該出
力回路を開き、ステップS9の終了後に閉じるようにし
°ζもよい、いずれにせよコードにの装置はこのメツセ
ージMを受け取って、コードiの装置からのコマンドで
指定されたジョブを実行した上で、前に第7図(b)で
説明したような返信メソセージMBを実行終了メツセー
ジelまたはe2として制御装W100に送る。この返
信メツセージMBも制御装置100はステップSLでメ
ツセージMとして受け取り、以下同様にステップ33.
S4.S8を経由後ステップS9において該返信メツセ
ージMBを元来の発信元であるコードiの!a置に転送
する。 このようにしてコードiの装置からのコマンドメツセー
ジMl、M2が逐次制御装置100の仲介を経てコード
にの装置に送られ、そのつどコマンドにより指定された
ジョブが実行されて行(が、そのョブが実行された後の
第2のコマンドメソセージM2が発しられる前に、第1
図に示すようにコードjの装置からコードにの装置との
交流開始メソセージMSが制御装fi100に送られて
来たとすると、制御装置100内でのステップS3での
判定結果は否となって、フローはその左下方に示すステ
ップS10に移り、制御装置100は禁止メツセージP
RHを発信元であるコードjの装置に送ってコマンド交
流を許可できない旨を知らせる。 コードi、にの装置間の所定のコマンド交流とそれに基
づくジョブの実行が終わった後、その一方例えば元来の
発信元であるコードiの装置は交流終了メツセージ■を
制御装置100に送る。制御装置100はこれもメツセ
ージMとしてステップSlで受けとり、ステップS2.
S3.S4を経由後ステップS8における判定結果が正
と出るので、今度のフローはステップ311で始まるそ
の右下方の列に移る。 該ステップ511ではコードkに対応するフラグFkの
フラグ値をゼロに戻し、つづくステップ512でに送る
。もちろん、この解消メツセージOFFはコードにの装
置にも送るようにしてもよい。さらにステップS13に
おいてはコードt、kに対応する出力回路を閉し、これ
でコードi、に間のコマンド交流の全動作を完了する。 以上により、本発明方式によるコマンド交流制御の動作
説明を終えるが、容易に理解されるように本発明方式は
以上説明した実施例のほかにその要旨内において種々の
態様で実施することができる0例えば、制御装置の記憶
手段によるコマンド交流中の装置をコード別に記憶する
態様としては、前述の例に限らず種々の変形された態様
を採用することができる。また、入出力回路の制御M様
も例えばその制御ステップをフロー中の適所に挿入する
ことができ、また単に出力回路を開閉制御するに留まら
ず入力回路をもこれと同期して制御をするようにしても
よい、また同時にコマンド交流が可能な組合わせも、実
施例説明におけるような1組とは限らず、ハードウェア
とソフトウェアとを適宜に追加ないしは変更して複数組
が同時にコきることは前述のとおりである。
Hereinafter, the best embodiment of the system of the present invention will be described in more detail with reference to FIG. 5 and subsequent figures. Figure 5 shows an example of the configuration of a device group to which the method of the present invention is applied, taking as an example a hotel or a large dining room.
The area divided by m indicates the area within the facility where each device is installed. The illustrated devices are connected in a star shape as described above, centering on the control device f100 shown on the left side of the figure, and the data processing device, that is, the master unit [10 of the ECR in the figure] is placed, for example, at the front, and The main unit includes a floppy device PO as a shared peripheral device attached to the main unit, and a printer (not numbered). E as a slave unit shown below
The CR system is installed in a restaurant, for example, and is equipped with a slip printer for making slips for waitresses to order. Furthermore, the ECR shown below
The device is equipped with a printer for creating receipts, etc., if necessary. Tape cassette device P shown on the left
K and printer pt are shared peripheral devices directly connected to the control device 100, and store programs and data read from the tape cassette device Pk.
The printer pt is an external storage device that is placed in the same section as the control device 100, and the printer PT is installed in the cooking room, for example, and prints out orders received from customers in the prefecture where the ECR device is installed, so that the cook can prepare the food. It is a kitchen printer that commands to start. These ECR device locations shown in the figure, ε1+EJ+peripheral equipment P
k. PI etc. have connection cables -〇, old, Wj, Wk,
The connection receptacle 1 to the control device 100 by M1 etc.
Each receptacle 120 can be connected to any ECR device or peripheral device, as described above. FIG. 6 shows an example of the internal configuration of the control device 100, and shows E not shown on the left and right sides of the control device 100 surrounded by a dashed line, and not shown in the receptacles 121 to 126.
CRg devices E to E3 and peripheral devices P4 to P6 shown on the right side of the figure are connected to Fi tr via connection cables, respectively.
The i state is shown. Note that this figure only shows two lines for command and data transmission within the connection cable. As shown in the figure, the control device 100 itself is a microcomputer, and as usual, a CP
A flag area F as a storage means in the present invention includes UIOI, ROM2O3゜RAM 103, an address bus 104 and a data bus 105 that connect them.
is set in RAM 103. The data transmission lines leading to the aforementioned receptacles 121 to 126 come out from input/output circuits 111 to 116, respectively, and the input/output circuits are connected to the data bus 105 and are connected to the decoder 106 by the address bus 104 and via the control line 107. controlled. The input/output circuits 111 to 112 each consist of a pair of an input circuit 111a and an output circuit 111b, as shown in detail for the input/output circuit 111. For example, the former is a simple gate circuit, and the latter is a latch circuit. Is that okay? avA 107 enables or enables the circuit specified by the address on address bus 104. FIG. 7 shows the general format of message M that control device 100 accepts or transmits via this input/output circuit. The same figure (a, device i, e.g.
A message MA is issued from CR specifying a device k, for example, a peripheral device, and there is a normal opening section MO at the beginning in the direction of the arrow in the figure, followed by a destination code section 1'LD specifying the destination device k. This is followed by a source code section indicating the source device k. The next command part MC is message M
A command that is the main body of a message MA and indicates the characteristics of the message MA. In other words, is it an exchange start message MS or an exchange end message? + [! In this case, there is a command that indicates the start or end. In the case of the above-mentioned command messages M1 and M2, the destination device W
A command is entered that specifies the zip that tk should perform. Furthermore, the data section following this includes data and programs necessary for the job to be performed on destination device k, for example, if destination device k is a printer, content data to be printed is attached. Of course, Mesosage MA
If it is an exchange start message MS or an exchange end message ME, it is not necessary to add this data part MP because the destination or source of the message is the control device 100. The message MB shown in the same figure (bl) is (
A reply message to the message gate ^ shown in al, for example, the above-mentioned end message s, e1. e2, etc., whose structure is the same as before, but the code k that was in the destination code section MO in message MA is changed to the sender code section Ml in message MB, and to the sender code section old in message MA. In the message MB, the contained code i is stored in the destination code section MD as shown by the arrows in the figure. Also, command department MC
The input commands include, for example, a command to report the completion of the specified zip from 'A W i, but at the same time, a command to request a different job from the installation ffk side to the installation i is input. It is possible that it may be done. In addition, in the data part MP in the case of reply message 2, v
Next, the control device 100 in the method of the present invention will be described with reference to FIG. 8 showing the operation flow of the CPU 101 of the control device 100. The main operation will be explained.This flowchart shows that, as shown in FIG. This corresponds to the value a, and for ease of understanding, the code of the transmitting device is depicted as i and the code of the destination device is k.In the first step Sl, the control device 100 sends a message. M
is received, and this message M can be an exchange start message MS, an exchange end message ME, a command message Ml, M2, or an execution end message el, e2, etc. according to the contents of the command part MC, but in any case, the opening part MO, Destination code section? 1I), the source code section identifies the code of the destination device of the command exchange and the code i of the source device. In the following step s2, it is determined whether it is the destination device or not, and if it is zero, the process jumps to step S4, but if the flag value has already been set, then in step S3 the flag value is -ff&ed with the code i of the source device. It is determined whether or not. If the command exchange has not yet started, the determination result in step S2 is positive, so the process jumps to step S4, where it is determined whether the command part MC of the received message M is the exchange start command S, and as a result, the flow is as follows. The flow moves to the right column from step S5 onwards. In step S5, the code i of the source device is set in the flag Fk corresponding to the code k of the destination device, and in the next step S6, for example, the output circuit in the input/output circuit 110 corresponding to these two codes i and k is set. In step S7, the enable signal RDY is sent to the code i through the enabled output circuit.
This completes the preparation for command exchange between T and T, and returns the flow to step Sl. When a message M, which is a command message Ml or M2, is sent from the device with code i to the device with code i, the control device 100 receives it in step S1 as before, but this time the flag Fk has already been set to i. is set up, so the flow is from step knob S2 to step S3 below.
The determination result in step S3 is also positive, and in step S4, the contents of the command part MC of the message M are different from the AC start command S, so the flow is as shown in step S below.
Move on to 8. In step S8, the contents of the command section are compared with the AC end command E, but if the message M is a command message, the judgment result is negative, so the flow goes to step S9 below and receives the message from the device with code i. The message is transferred directly to the coded device. However, in terms of actual operation, the control device 100 temporarily stores the received message M in the RAM 103 shown in FIG. Since the determination operation in S8 is being performed, the message M is read from the RAM 103 and sent to the device with the code number via the data bus 105. Of course, at this time, the data bus 105 and the code number are The output circuit between the device and the device corresponding to the code k has already been opened in step S6 described above, but in a different embodiment of the present invention, the partial step of opening the output circuit of the device corresponding to the code k in step S6 is It is also possible to insert the output circuit between step S8 and step S9 so that the output circuit is opened before step S9 and closed after step S9 every time it is necessary to transfer the message M. The device receives this message M, executes the job specified by the command from the device with code i, and sends a reply message MB as previously explained in FIG. 7(b) to an execution completion message el or It is sent to the control device W100 as e2. The control device 100 also receives this reply message MB as a message M in step SL, and the same goes for step 33.
S4. After passing through S8, in step S9, the reply message MB is sent to the code i which is the original sender! Transfer to location a. In this way, the command messages Ml and M2 from the device with code i are sequentially sent to the device with code i through the intermediary of the control device 100, and each time the job specified by the command is executed, Before the second command message M2 is issued after the command message M2 is executed, the first
As shown in the figure, if the message MS for starting an exchange with the device of code j is sent to the control device fi 100 from the device of code j, the determination result in step S3 within the control device 100 is negative. The flow moves to step S10 shown in the lower left, where the control device 100 sends a prohibition message P.
RH is sent to the source device with code j to inform that command exchange is not permitted. After a predetermined command exchange between the devices with code i and execution of a job based on the command is completed, the device with code i, which is the original sender, sends an exchange end message ■ to the control device 100, for example. The control device 100 also receives this message as message M in step Sl, and sends it in step S2.
S3. After passing through S4, the determination result in step S8 is positive, so the next flow moves to the lower right column starting at step 311. In the step 511, the flag value of the flag Fk corresponding to the code k is returned to zero, and in the following step 512, the flag value is sent to the next step. Of course, this cancellation message OFF may also be sent to the device in the code. Furthermore, in step S13, the output circuits corresponding to codes t and k are closed, thereby completing all command exchange operations between codes i and i. The above concludes the explanation of the operation of the command AC control according to the method of the present invention, but as is easily understood, the method of the present invention can be implemented in various ways within the scope of the invention in addition to the embodiments described above. For example, the manner in which the storage means of the control device stores devices in command exchange by code is not limited to the above-mentioned example, and various modified aspects may be adopted. In addition, Mr. M who controls the input/output circuit can, for example, insert the control step at an appropriate place in the flow, and can not only control the opening and closing of the output circuit but also control the input circuit in synchronization with this. Also, the combinations in which commands can be exchanged at the same time are not limited to one set as in the description of the embodiment, and it is possible to add or change hardware and software as appropriate to enable multiple sets to be exchanged at the same time. As mentioned above.

【発明の効果】【Effect of the invention】

以上説明したように、本発明によれば複数台のデータ処
理装置と共用の周辺装置とを含む系内の装置間のコマン
ド交流を排他的に制御するための専用装置として、各電
子装置ごとにそれぞれ異なるコードを振り当てるととも
に、コマンドを交流中の電子装置を該コードに記憶する
記憶手段を備えて各電子装置からのコマンド伝送路を集
中的に受け入れるコマンド交流制御装置を設は系内のメ
ソセージがすべてこの制御装置を介して交流されるよう
にし、その際コマンドの発信元電子装置からはコマンド
交流の開始前および終了後にそれぞれコマンドの行先電
子装置のコードを含む交流開始メツセージおよび交流終
了メツセージを前記コマンド交流制御装置に送り、コマ
ンド交流制御装置側では該交流開始メツセージを受けた
際に前記記憶手段内のコード別記憶内容が非交流中であ
ることを示すときに限ってコマンドの交流を許可すると
ともに該記憶内容を交流中に書き換え、前記交流終了メ
ソセージを受けたときにはじめて該記憶内容を非交流中
に書き換えるようにしたので、従来は周辺装置側で受け
持っていた排他制御機能はすべて制御装置側によって肩
替わりされてかつ交流不能なコマンド類はすべて制御装
置どまりで処理されて従来のように周辺装置にいわば無
用なメツセージが伝えられるような混乱がなく、従って
コマンド交流を効率よく敏速に制御可能な方式が得られ
る。また、交流の開始および終了メツセージも制御装置
どまりで処理されてしまうので、従来の周辺装置がかぶ
っていた負担は完全に取り去られてその価格を低減する
ことができる。一方、本方式における制?Il装置側で
は、相手がデータ処理装置であるか周辺装置であるかを
問わずその入出力回路を介してコマンド交流メツセージ
を入出力でき、かつメツセージ自体も統一された形式の
ものでよくなるので、汎用的なデータ処理装置と周辺装
置とを任意に組合わせて総合的なシステム金的なPOS
システムを構成するに際しても、本格的な計算機システ
ムを導入しなくても、汎用のECRと周辺装置とをこの
制御回路を介して連携すればよく、しかも必要に応じて
装置類を逐次増設して行けばよいのであるから、制御装
置を増設するだけの費用で大きな利便が得られる。
As explained above, according to the present invention, each electronic device is used as a dedicated device for exclusively controlling command exchange between devices in a system including a plurality of data processing devices and shared peripheral devices. In addition to assigning different codes to each electronic device, a command AC control device is installed that centrally accepts the command transmission path from each electronic device, and is equipped with a storage means for storing commands in the code of the electronic devices in communication. are exchanged via this control device, and in this case, the command source electronic device sends an AC start message and an AC end message containing the code of the command destination electronic device before and after the command exchange starts and ends, respectively. The command AC control device sends the command to the AC control device, and upon receiving the AC start message, the command AC control device allows the command exchange only when the code-specific storage contents in the storage means indicate that AC is not in progress. At the same time, the memory contents are rewritten during AC, and only when the AC end message is received, the memory contents are rewritten during non-AC, so that all the exclusive control functions that were conventionally handled by the peripheral device are now controlled. All commands that are handled by the device and cannot be exchanged are processed by the control device, eliminating confusion such as the transmission of useless messages to peripheral devices as in the past, making command exchange efficient and prompt. A controllable method is obtained. In addition, since the AC start and end messages are also processed within the control device, the burden placed on conventional peripheral devices is completely removed and the cost thereof can be reduced. On the other hand, what about the system in this method? On the Il device side, command exchange messages can be input and output via the input/output circuit regardless of whether the other party is a data processing device or a peripheral device, and the messages themselves need only be in a unified format. Build a comprehensive POS system by arbitrarily combining general-purpose data processing equipment and peripheral devices.
When configuring a system, you do not need to introduce a full-scale computer system; you can simply link a general-purpose ECR and peripheral devices via this control circuit, and you can add devices as needed. Since all you have to do is go, you can get great convenience with just the cost of adding a control device.

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

図はすべて本発明の内容を示すもので、第1図は本発明
によるコマンド交流制御方式の基本構成例の機能系統図
、第2図は制御装置100を中心としたデータ処理装置
と周辺装置との組合わせ例を示す配置図、第3図はデー
タ処理装置と付属の周辺装置とのコマンド交流の模様を
例示する模式図、第4図は制御装置を介するデータ処理
装置間のコマンド交流の模様を例示する模式図、第5図
はデータ処理装置としてのECRと周辺装置としてのプ
リンタ、フロッピ装置およびテープカセット装置の制御
装置100を中心とする接続の態様を例示する配置接続
図、第6図は本発明方式における制図、第7図はコマン
ド交流に際して装置間に交換されるメツセージのフォー
マント例を示すメソセージの構成図、第8図は制御装置
を中心として本発明方式の動作フローを示す流れ図であ
る0図において、 100:コマンド交流制御装置(あるいは単に制御装置
)、101: CPU、  102: ROM、  1
03:記憶手段Fを含むRAM、110:制御袋W11
00への入出力回路、120:制御装置に電子装置を接
続するためのりセブタクル、E、 EO,El、):i
、Ej  :データ処理装置あるいはECR,EC:交
流終了コマンド、e、 el、e2  :実行終了メツ
セージ、F:記憶手段、Fl、Fl、Fk、Fl :フ
ラグ、i、j:データて 処理装置に振り当売られたコード、k、l:周辺装置に
振り当てられたコード、Jl、J2:ジョブ、M:メツ
セージ、MD:メツセージ中の行先コード部、旧:メツ
セージ中の発信元コード部、MC:メツセージ中のコマ
ンド部、MP:メツセージ中のデータ部、jB:返信メ
ツセージ、Ml交流開始メツセージ、ME=交流終了メ
ツセージ、Ml、 M2.CMI。 C?12 :コマンドメソセージ、OFF :交流許可
の解消メツセージ、PRH:交流禁止メツセージ、RD
Y二交流許可メツセージ、P 、 PO,P4. P5
. P6. Pk。 Pl:周辺装置、SC:交流開始コマンド、WO,Ml
、W2゜W3.Wi、Wj、Wk、Ml :接続ケーブ
ル、である。 奮“ +1’−−” ”  ’      1.−    )
、l第1図 第2図 第3図 嬉6図 第7国
All the figures show the content of the present invention. Figure 1 is a functional diagram of a basic configuration example of the command AC control method according to the present invention, and Figure 2 shows a data processing device centered on the control device 100 and peripheral devices. 3 is a schematic diagram illustrating a pattern of command exchange between a data processing device and an attached peripheral device, and FIG. 4 is a pattern of command exchange between data processing devices via a control device. FIG. 5 is a schematic diagram illustrating the connection between an ECR as a data processing device and a printer, a floppy device, and a tape cassette device as peripheral devices, centering on the control device 100, and FIG. 7 is a message configuration diagram showing an example of the form of messages exchanged between devices during command exchange, and FIG. 8 shows the operational flow of the present invention method, centering on the control device. In figure 0, which is a flowchart, 100: command AC control device (or simply control device), 101: CPU, 102: ROM, 1
03: RAM including storage means F, 110: Control bag W11
Input/output circuit to 00, 120: Glue septacle for connecting electronic devices to the control device, E, EO, El,): i
, Ej: Data processing device or ECR, EC: AC end command, e, el, e2: Execution end message, F: Storage means, Fl, Fl, Fk, Fl: Flag, i, j: Data sent to the processing device. Sold code, k, l: Code assigned to peripheral device, Jl, J2: Job, M: Message, MD: Destination code part in message, Old: Source code part in message, MC: Command part in message, MP: data part in message, jB: reply message, Ml exchange start message, ME=exchange end message, Ml, M2. C.M.I. C? 12: Command message, OFF: Communication permission cancellation message, PRH: Communication prohibition message, RD
Y2 AC permission message, P, PO, P4. P5
.. P6. Pk. Pl: Peripheral device, SC: AC start command, WO, Ml
, W2°W3. Wi, Wj, Wk, Ml: connection cables. ``+1'--'''' 1.-)
,lFigure 1Figure 2Figure 3Figure 6Figure 7Country

Claims (1)

【特許請求の範囲】 1) 複数台のデータ処理装置とそれらに対して共通に
設けられる周辺装置とを含む複数電子装置系内の電子装
置間のコマンドの交流を排他的に制御する方式であって
、前記各電子装置ごとにそれぞれ異なるコードを振り当
てるとともに、コマンドを交流中の電子装置を該コード
に記憶する記憶手段を備えて各電子装置からのコマンド
伝送路を集中的に受け入れるコマンド交流制御装置を設
け、コマンドの発信元電子装置からはコマンド交流の開
始前および終了後にそれぞれコマンドの行先電子装置の
コードを含む交流開始メッセージおよび交流終了メッセ
ージを前記コマンド交流制御装置に送り、コマンド交流
制御装置側では該交流開始メッセージを受けた際に前記
記憶手段内のコード別記憶内容が非交流中であることを
示すときに限ってコマンドの交流を許可するとともに該
記憶内容を交流中に書き換え,前記交流終了メッセージ
を受けたときにはじめて該記憶内容を非交流中に書き換
えるようにしたことを特徴とする複数電子装置系内のコ
マンド交流制御方式。 2) 特許請求の範囲第1項記載の方式において、デー
タ処理装置が電子式キャッシュレジスタ(以下ECRと
いう)であることを特徴とする複数電子装置系内のコマ
ンド交流制御方式。 3) 特許請求の範囲第1項記載の方式において、周辺
装置が外部記憶装置であることを特徴とする複数電子装
置系内のコマンド交流制御方式。 4) 特許請求の範囲第1項記載の方式において、周辺
装置が印字装置であることを特徴とする複数電子装置系
内のコマンド交流制御方式。 5) 特許請求の範囲第1項記載の方式において、周辺
装置がデータ読取装置であることを特徴とする複数電子
装置系内のコマンド交流制御方式.6) 特許請求の範
囲第1項記載の方式において、コマンド交流時のメッセ
ージとしてコマンドと該コマンド実行のためのデータが
送られることを特徴とする複数電子装置系内のコマンド
交流制御方式。 7) 特許請求の範囲第1項記載の方式において、コマ
ンド交流時のメッセージとしてコマンドと該コマンドに
より転送されるプログラムとが送られることを特徴とす
る複数電子装置系内のコマンド交流制御方式。 8) 特許請求の範囲第1項記載の方式において、コマ
ンド交流が周辺装置に対してはもっぱらデータ処理装置
から行なわれ、周辺装置からは該コマンドの実行後に実
行終了メッセージがデータ処理装置に対して送られるこ
とを特徴とする複数電子装置系内のコマンド交流制御方
式。 9) 特許請求の範囲第1項記載の方式において、コマ
ンド交流がデータ処理装置相互間に行なわれることを特
徴とする複数電子装置系内のコマンド交流制御方式。 10) 特許請求の範囲第1項記載の方式において、複
数台のデータ処理装置が外部記憶装置を備えた親機とし
てのECRと子機としてのECRとを含み、コマンド交
流がコマンド発信元としての子機ECRからの要請に基
づき親機ECRから前記外部記憶装置内のデータないし
はプログラムが子機ECRに対して転送される形でなさ
れることを特徴とする複数電子装置系内のコマンド交流
制御方式。 11) 特許請求の範囲第1項記載の方式において、交
流制御装置内の記憶手段が各電子装置に振り当てられた
コードごとに設けられた記憶エリアであり、コマンド交
流時には該コマンドの行先電子装置のコードに対応する
フラグエリアにコマンドの発信元電子装置のコードがコ
マンド交流中であることを示すフラグ値として書き込ま
れることを特徴とする複数電子装置系内のコマンド交流
制御方式。 12) 特許請求の範囲第1項記載の方式において、コ
マンド発信元電子装置から発しられる交流開始メッセー
ジおよび交流終了メッセージには該発信元電子装置のコ
ードが含まれることを特徴とする複数電子装置系内のコ
マンド交流制御方式。
[Claims] 1) A method for exclusively controlling the exchange of commands between electronic devices in a multiple electronic device system including multiple data processing devices and peripheral devices commonly provided for them. The command AC control includes a storage means for allocating a different code to each of the electronic devices and storing the codes of electronic devices that are currently receiving commands, and centrally accepts command transmission paths from each electronic device. A device is provided, and the command source electronic device sends an exchange start message and an exchange end message including a code of the command destination electronic device to the command AC control device before and after the command exchange starts and ends, respectively, and the command AC control device Upon receiving the communication start message, the side allows the command exchange only when the code-specific memory content in the storage means indicates that the communication is not in progress, and rewrites the memory content during the communication. 1. A command exchange control method in a plurality of electronic device systems, characterized in that the stored contents are rewritten during non-interchange only when an exchange termination message is received. 2) A command exchange control method within a system of multiple electronic devices, characterized in that the data processing device is an electronic cash register (hereinafter referred to as ECR) in the method described in claim 1. 3) A command AC control method in a multiple electronic device system according to claim 1, wherein the peripheral device is an external storage device. 4) A command AC control method in a multiple electronic device system according to claim 1, wherein the peripheral device is a printing device. 5) A command AC control method within a multiple electronic device system, characterized in that the peripheral device is a data reading device in the method described in claim 1. 6) A command exchange control method within a plurality of electronic device systems according to claim 1, characterized in that a command and data for executing the command are sent as messages during command exchange. 7) A command exchange control method within a multiple electronic device system according to claim 1, characterized in that a command and a program transferred by the command are sent as messages during command exchange. 8) In the method described in claim 1, command exchange is performed exclusively from the data processing device to the peripheral device, and the peripheral device sends an execution completion message to the data processing device after executing the command. A command exchange control method within a system of multiple electronic devices, characterized in that a command is sent to the system. 9) A command exchange control method within a plurality of electronic device systems according to the method described in claim 1, characterized in that command exchange is performed between data processing devices. 10) In the method described in claim 1, the plurality of data processing devices include an ECR as a master device and an ECR as a slave device each equipped with an external storage device, and the command exchange is performed as a command source. A command exchange control method within a system of multiple electronic devices, characterized in that data or programs in the external storage device are transferred from the parent device ECR to the child device ECR based on a request from the child device ECR. . 11) In the method described in claim 1, the storage means in the AC control device is a storage area provided for each code assigned to each electronic device, and when a command is exchanged, the destination electronic device of the command is stored. A command exchange control method in a multiple electronic device system, characterized in that a code of a command source electronic device is written as a flag value indicating that command exchange is in progress in a flag area corresponding to the code. 12) A multiple electronic device system according to claim 1, characterized in that the exchange start message and the exchange end message issued from the command source electronic device include the code of the source electronic device. Command AC control method within.
JP174485A 1985-01-09 1985-01-09 Command interchange control system in plural electronic device systems Pending JPS61161569A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP174485A JPS61161569A (en) 1985-01-09 1985-01-09 Command interchange control system in plural electronic device systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP174485A JPS61161569A (en) 1985-01-09 1985-01-09 Command interchange control system in plural electronic device systems

Publications (1)

Publication Number Publication Date
JPS61161569A true JPS61161569A (en) 1986-07-22

Family

ID=11510073

Family Applications (1)

Application Number Title Priority Date Filing Date
JP174485A Pending JPS61161569A (en) 1985-01-09 1985-01-09 Command interchange control system in plural electronic device systems

Country Status (1)

Country Link
JP (1) JPS61161569A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0540556U (en) * 1991-03-08 1993-06-01 スズキ株式会社 Food opener
JP2017107258A (en) * 2015-12-07 2017-06-15 富士通フロンテック株式会社 Pos terminal device, pos terminal exclusion control method, and pos system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0540556U (en) * 1991-03-08 1993-06-01 スズキ株式会社 Food opener
JP2017107258A (en) * 2015-12-07 2017-06-15 富士通フロンテック株式会社 Pos terminal device, pos terminal exclusion control method, and pos system

Similar Documents

Publication Publication Date Title
JPH056223B2 (en)
JPS61161569A (en) Command interchange control system in plural electronic device systems
JP2893715B2 (en) Order data processing system
JPS637256A (en) Work indication method
JPH07149025A (en) Label publishing apparatus
JPS60181957A (en) Adaptor machine number setting system
JPH079661B2 (en) Transaction processor
JPS6365975B2 (en)
JPH04218893A (en) Goods sale data processor
JPS6329864A (en) System constitution control system
JP2567900B2 (en) PLU processing method at POS terminal
JPS6133565A (en) Program loading system
JPS62130459A (en) Product information retrieval system for pos system
JPS61187005A (en) Monitor and control device
JP2000020268A (en) Network printer control system
JPH05282534A (en) Card terminal equipment
JPH02113349A (en) Multi-master system
JPS60192084U (en) Cash register for multiple product sales
JPH07148992A (en) Printing device
JPH0582623B2 (en)
JPH01144193A (en) Transaction processor
JPH06301579A (en) System for managing distributed file
JPH02281354A (en) Terminal equipment
JPH0470997A (en) Transaction processor
JPH03228165A (en) Priority decision device