Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4681766B2 - Terminal control system - Google Patents
[go: Go Back, main page]

JP4681766B2 - Terminal control system - Google Patents

Terminal control system Download PDF

Info

Publication number
JP4681766B2
JP4681766B2 JP2001215398A JP2001215398A JP4681766B2 JP 4681766 B2 JP4681766 B2 JP 4681766B2 JP 2001215398 A JP2001215398 A JP 2001215398A JP 2001215398 A JP2001215398 A JP 2001215398A JP 4681766 B2 JP4681766 B2 JP 4681766B2
Authority
JP
Japan
Prior art keywords
address
terminal
control unit
terminal control
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2001215398A
Other languages
Japanese (ja)
Other versions
JP2003032255A (en
Inventor
康章 川端
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Japan Tobacco Inc
Original Assignee
Japan Tobacco Inc
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 Japan Tobacco Inc filed Critical Japan Tobacco Inc
Priority to JP2001215398A priority Critical patent/JP4681766B2/en
Publication of JP2003032255A publication Critical patent/JP2003032255A/en
Application granted granted Critical
Publication of JP4681766B2 publication Critical patent/JP4681766B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)
  • Small-Scale Networks (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、例えば自動販売機に組み込まれた複数の商品選択釦、または複数の商品コラムに対応して設けられた複数の端末部の動作を、データ通信線を介して接続された主制御部から個別に制御するシステムに係り、特に複数の端末部に対するアドレス設定を簡易に実行することのできる機能を備えた端末制御システムに関する。
【0002】
【関連する背景技術】
たばこ等の自動販売機は、概略的には図1に示すように複数種の商品を銘柄別に収納する複数の商品コラム1a,1b,〜1nと、これらの商品コラム1a,1b,〜1nにそれぞれ収納された商品の選択的な払い出しを指示する複数の商品選択釦2a,2b,〜2mとを備えている。そしてマイクロコンピュータ等からなる販売制御部3の制御の下で、商品選択釦2a,2b,〜2mの択一的な押圧操作により指定された銘柄の商品を、当該商品を収納した商品コラム1a,1b,〜1nから選択的に払い出すように構成されている。尚、図中4は投入金額を判定したり、釣り銭の発行等を行う金銭処理部である。
【0003】
しかして従来の自動販売機においては、複数の商品コラム1a,1b,〜1nと販売制御部3との間をそれぞれ個別の制御信号線にて結び、また複数の商品選択釦2a,2b,〜2mと販売制御部3との間についても、それぞれ個別の信号線で結んでいる。そしてこれらの信号線を介して商品選択釦2a,2b,〜2mの選択的な操作を検出し、また信号線を介して各商品コラム1a,1b,〜1nを選択的に駆動することで商品の払い出しを行うように構成されている。しかしながらこの場合、自動販売機に大量の信号線を敷設することが必要となり、製造コスト増大の要因となっている。
【0004】
【発明が解決しようとする課題】
そこで図2に示すように、複数の商品コラム1a,1b,〜1nのそれぞれに、その動作を制御する端末制御部(端末部)5a,5b,〜5nを設け、これらの端末制御部5a,5b,〜5nをシリアル通信用のデータ通信線6を介して販売制御部3に設けた主制御部7に接続し、アドレス管理部8の下で上記主制御部7から各端末制御部5a,5b,〜5nを選択的にアドレス指定して動作指令を与え、これによって前記各商品コラム1a,1b,〜1nの動作を個別に制御することが考えられている。尚、複数の商品選択釦2a,2b,〜2mについても、同様に選択的なアドレス指定により、その動作を制御することが考えられている。
【0005】
ところで複数の商品コラム1a,1b,〜1nのそれぞれに設けられる端末制御部5a,5b,〜5nには、一般的に、その製作時に予め互いに異なる仮のアドレスが付与される。そしてこれらの端末制御部5a,5b,〜5nは、上記仮のアドレスに従って前記各商品コラム1a,1b,〜1nに所定の順序に従ってそれぞれ対応付けながら、自動販売機に組み付けられる。この為、各端末制御部5a,5b,〜5nのアドレス管理が大変であり、組み付け後における商品コラム1a,1b,〜1nの順序との整合性の確認も大変である。
【0006】
本発明はこのような事情を考慮してなされたもので、その目的は、例えば自動販売機に組み込まれた複数の商品選択釦、または複数の商品コラムに対応して設けられ、データ通信線を介して主制御部に接続された複数の端末部に対するアドレス設定を簡易に実行することのできる機能を備えた端末制御システムを提供することにある。
【0007】
【課題を解決するための手段】
上述した目的を達成するべく発明に係る端末制御システムは、例えば自動販売機に組み込まれた複数の商品選択釦、または複数の商品コラムに対応して設けられ、データ通信線を介して主制御部に接続された複数の端末部の動作を、上記主制御部からの選択的なアドレス指定の下で制御するものであって、
前記複数の端末部の各アドレスを、各端末部に共通な初期アドレス、例えば正式な運用時には使用されることのない特殊なアドレスを初期値としてそれぞれ設定しておき(初期設定手段)、
前記主制御部には、前記複数の端末部に対するアドレス設定時に前記端末部に対して上記初期アドレスを送信先としてアドレス設定コマンドと共に、端末部に設定すべきアドレスデータを送信するアドレス付与手段を設け、
一方、前記各端末部には、上記アドレス設定コマンドを受信したときに上記アドレスデータを一次記憶する手段、および当該端末部において所定のアドレス設定指示が与えられたとき、上記一次記憶したアドレスデータを自局アドレスとして設定すると共に、前記主制御部に対して応答コマンドを返すアドレス設定手段をそれぞれ設けたことを特徴としている。
【0008】
ちなみに前記複数の端末部は、互いに同じ機能を備え、前記主制御部からのアドレス指定を受けて選択的に動作するものであって、自動販売機に組み込まれた複数の商品選択釦、または複数の商品コラムにそれぞれ対応して設けられて、これらの各動作を個別に制御する端末制御部として実現される。
【0009】
【発明の実施の形態】
以下、図面を参照して本発明の一実施形態に係る端末制御システムについて、自動販売機に組み込んだ場合を例に説明する。
この端末制御システムは、例えば図2に示すように自動販売機における複数の商品コラム1a,1b,〜1n、または複数の商品選択釦2a,2b,〜2mにそれぞれ設けられてその動作を制御する複数の端末制御部5a,5b,〜5nと、販売制御部3に設けられた主制御部7とを、シリアル通信用のデータ通信線6を介して接続し、販売制御部3に設けた主制御部7からの選択的なアドレス指定の下で上記各端末制御部5a,5b,〜5nの動作を制御するように構成される。
【0010】
本発明は、このような端末制御システムにおいて上記複数の端末制御部5a,5b,〜5nに対して簡易にアドレスを設定する機能を備えたものである。特にこのアドレス設定機構は、予め前記複数の端末制御部5a,5b,〜5nの各アドレスを、各端末制御部5a,5b,〜5nに共通な初期アドレス、具体的には正式な運用時には使用されることのない特殊なアドレスを、例えばアドレス「00」として設定する初期設定手段を備える。このアドレスの初期設定は、自動販売機の工場出荷時や、該自動販売機のシステムリセット時等に実行される。
【0011】
しかしてアドレス設定機能は、上述したように各端末制御部5a,5b,〜5nのアドレスを「00」として初期設定した状態において自動販売機に対してアドレス設定モードを設定し、主制御部7と複数の端末制御部5a,5b,〜5nとの間でデータ通信線6を介して所定のアドレス設定コマンド等をデータ通信しながら実行される。
【0012】
即ち、主制御部7および各端末制御部5(5a,5b,〜5n)がそれぞれ備えるアドレス設定の為の処理機能は、例えば図3にその処理手順として示すように実現される。主制御部7はアドレス付与手段としての役割を担うもので、先ず前記各端末制御部5(5a,5b,〜5n)に対して設定すべきアドレスデータ「XX」を設定する[ステップS1]。このアドレスデータは、複数の端末制御部5(5a,5b,〜5n)の物理的な配置に基づいて割り出したデータとして、或いは所定のアドレス管理プログラムに登録されている複数のアドレスデータを順に読み出すことで設定される。
【0013】
このようにして端末制御部5に設定すべきアドレスデータ「XX」を設定したならば、次に主制御部7は、データの送信先アドレスを前述したように各端末制御部5(5a,5b,〜5n)に対して初期設定されたアドレス「00」とし、アドレス設定コマンド「AD」と共に、上記アドレスデータ「XX」を前記データ通信線6を介して送信する[ステップS2]。そして各端末制御部5(5a,5b,〜5n)からの応答の有無を所定時間に亘って監視し[ステップS3]、応答がない場合には上述したアドレス設定コマンド「AD」とアドレスデータ「XX」の送信を繰り返し実行する。
【0014】
これに対して端末制御部5からの応答が検出された場合には、後述するようにいずれかの端末制御部5a,5b,〜5nが、上記アドレスデータ「XX」を取得したと判定する。そしてこの場合には、全ての端末制御部5a,5b,〜5nがアドレスデータ「XX」を取得したか否か、即ち、複数の端末制御部5a,5b,〜5nに対するアドレス設定が完了したか否かを判定する[ステップS4]。そしてアドレス設定が完了していない場合には、上述したステップS1に示すアドレスデータ「XX」の設定処理からの一連の処理手順を繰り返し実行する。この場合、アドレスデータ「XX」としては、既に端末制御部5a,5b,〜5nにより取得されたアドレスデータを除いたものの中から選ばれる。そしてアドレス設定の完了が判定された時点で、そのアドレス設定モードを解除する。このアドレス設定の完了の判定については、例えば複数の端末制御部5a,5b,〜5nに対してそれぞれ設定すべく準備された複数のアドレスデータの全てを送信したか否かを判定する等して行われる。
【0015】
一方、前記各端末制御部5(5a,5b,〜5n)においては、前述したように予め初期設定手段によりアドレスが「00」として初期設定されており[ステップS11]、この状態で主制御部7からのデータ通信を待ち受ける。このアドレス「00」が初期設定された状態自体が、各端末制御部5(5a,5b,〜5n)におけるアドレス設定モードとなる。
【0016】
そしてアドレス設定モードの状態にある各端末制御部5(5a,5b,〜5n)においては、そのアドレス設定手段として、先ずデータ通信線6を介して自己宛のデータが受信されるか否かを判定し[ステップS12]、アドレス「00」で示される自己宛のデータを受信したときにはその受信データ中にアドレス設定コマンド「AD」が含まれるか否かを判定する[ステップS13]。尚、受信データにアドレス設定コマンド「AD」が含まれない場合には、その受信データを無視し、再度、自己宛のデータが受信されるか否かを監視する。そして受信データにアドレス設定コマンド「AD」が含まれる場合には、上記受信データ中のアドレスデータ「XX」を抽出し、このアドレスデータ「XX」を一次記憶する[ステップS14]。
【0017】
しかる後、各端末制御部5(5a,5b,〜5n)は、該各端末制御部5(5a,5b,〜5n)が設けられた商品コラム1a,1b,〜1n、または商品選択釦2a,2b,〜2mを介してアドレス設定の為の指示が与えられるか否かを判定する[ステップS15]。このアドレス設定の為の指示は、商品コラム1a,1b,〜1n、または商品選択釦2a,2b,〜2mを介してオペレータにより外部的に与えられるもので、例えば商品選択釦2a,2b,〜2mの選択的な押圧操作、または商品コラム1a,1b,〜1nに組み込まれた商品払出ユニットが備える売り切れスイッチの選択的な操作により与えられる。
【0018】
そして所定時間に亘ってアドレス設定の指示が与えられない場合には、アドレス設定の指示がないものとして上述した受信データ中の一次記憶したアドレスデータ「XX」を破棄し、再度、ステップS11の処理に戻って自己宛のデータが受信されるか否かを監視する。これに対してアドレス設定の指示が与えられた場合には、前述した如く一次記憶したアドレスデータ「XX」を、自己に割り当てるアドレスとして取り込み、初期設定されたアドレス「00」をアドレス「XX」に変更して登録する[ステップS16]。しかる後、上記アドレス「XX」を取得した旨を示す応答コマンドをデータ通信線6を介して主制御部7に返す[ステップS17]。
【0019】
この結果、アドレス「XX」を取得した端末制御部5(5a,5b,〜5n)においては、その後、主制御部7からアドレス「00」を送信先としてアドレス設定コマンド「AD」と新たなアドレスデータ「XX」とが送られてきても、これを自局宛のデータとして判断することがなくなるので、その通信データは他の端末制御部5に対して送られることになる。
【0020】
かくして上述した主制御部7によるアドレス付与手段、および端末制御部5におけるアドレス設定手段とからなるアドレス設定機能によれば、図4にその例を示すように、主制御部7から時刻T1にアドレス設定指令を発し、送信先アドレスを「00」としてアドレス設定コマンド「AD」と新たなアドレスデータ「03」とを送ると、上記アドレスデータ「03」は端末制御部5a,5b,〜5nのそれぞれにおいて一次記憶される。このとき、端末制御部5bに対してアドレス設定指示を与えると、端末制御部5bが一次記憶したアドレスデータ「03」を取り込んで初期設定されているアドレス「00」を「03」に変更し、主制御部7に対して応答コマンドを返す。
【0021】
すると主制御部7においては、アドレスデータ「03」の付与が完了したことを知り、次の時刻T2にアドレス設定指令を発し、送信先アドレスを「00」としてアドレス設定コマンド「AD」と新たなアドレスデータ「02」とを送る。するとこの送信データは、上記アドレス「03」を取得した端末制御部5b以外の端末制御部5a,5c,〜5nにおいて受信され、これれらの各端末制御部5a,5c,〜5nにおいてそれぞれ一次記憶される。この状態で端末制御部5aに対してアドレス設定指示を与えると、端末制御部5aは、一次記憶したアドレスデータ「02」を取り込んで初期設定されているアドレス「00」を「02」に変更し、主制御部7に対して応答コマンドを返す。
【0022】
すると主制御部7においては、アドレスデータ「02」の付与が完了したことを知り、次の時刻T3にアドレス設定指令を発し、送信先アドレスを「00」としてアドレス設定コマンド「AD」と新たなアドレスデータ「01」とを送る。この場合には、上記アドレス「03」を取得した端末制御部5b、およびアドレス「02」を取得した端末制御部5a以外の端末制御部5c,〜5nにおい手その送信データが受信され、上記アドレスデータ「01」はこれれらの各端末制御部5c,〜5nにおいてそれぞれ一次記憶される。この状態で端末制御部5cに対してアドレス設定指示を与えると、端末制御部5cは、一次記憶したアドレスデータ「01」を取り込んで初期設定されているアドレス「00」を「01」に変更し、主制御部7に対して応答コマンドを返す。
【0023】
以降、同様にして残された端末制御部5d,〜5nに対して、送信先アドレスを「00」としてアドレス設定コマンド「AD」と新たなアドレスデータ「XX」と順次送りながら、各端末制御部5d,〜5nにそれぞれアドレス設定指示を与えることで、全ての端末制御部5a,5c,〜5nに対するアドレスの付与(アドレス設定)が完了する。
【0024】
このように本端末制御システムによれば、主制御部7がデータ通信線6を介して制御する複数の端末制御部5a,5c,〜5nに対して、簡単な手順にてアドレスを設定することができる。しかも複数の端末制御部5a,5c,〜5nがそれぞれ設けられる商品コラム1a,1b,〜1n、または商品選択釦2a,2b,〜2mを選択的に操作してそのアドレス設定を指示するだけで、各端末制御部5a,5c,〜5nに対するアドレス設定を簡易に実行することができ、専門的知識を格別に必要としない。
【0025】
従って複数の端末制御部5a,5c,〜5nに予め互いに異なる仮のアドレスが付与されていてもこれらの仮のアドレスをリセットし、自動販売機への組み込み後に、前述した如く商品コラム1a,1b,〜1n、または商品選択釦2a,2b,〜2mを所定の順序で選択的に操作していくだけで、各端末制御部5a,5c,〜5nに対するアドレス設定を容易に実施することができると言う利点がある。しかも自動販売機への組み込みに先立って各端末制御部5a,5c,〜5nにそれぞれ付与した仮のアドレスを管理する必要がないので、その作業負担を大幅に軽減することができる等の効果が奏せられる。
【0026】
尚、本発明は上述した実施形態に限定されるものではない。ここでは自動販売機に組み込まれる端末制御システムを例に説明したが、その他の端末制御システムにおいても同様に適用することができる。またアドレスデータの桁数(データビット数)等は、端末制御部5の数等に応じて定めれば良いものであり、初期設定するアドレスとして「00」以外の、正式な運用時には使用されることのないアドレスを採用することも勿論可能である。その他、本発明はその要旨を逸脱しない範囲で種々変形して実施することができる。
【0027】
【発明の効果】
以上説明したように本発明によれば、複数の端末部のアドレス設定時には主制御部から各端末部に対して予め共通に設定された初期アドレスを送信先としてアドレス設定コマンドと共に、端末部に設定すべきアドレスデータを送信し、各端末部ににおいては、アドレス設定コマンドを受信したときに上記アドレスデータを一次記憶し、所定のアドレス設定指示が与えられたときに上記一次記憶したアドレスデータを自局アドレスとして設定して前記主制御部に対して応答コマンドを返すだけなので、専門的知識を要することなしに簡易にして確実に複数の端末部に対してアドレスを設定することができる等の実用上多大なる効果を奏することができる。
【図面の簡単な説明】
【図1】自動販売機の要部概略構成図。
【図2】自動販売機に組み込まれる端末制御システムの例を示す図。
【図3】本発明の一実施形態に係る端末制御システムが備えるアドレス設定機能によるアドレス設定手順の例を示す図。
【図4】図3に示す端末制御システムにおけるアドレス設定処理機能による複数の端末制御部に対するアドレス設定の例を示す図。
【符号の説明】
1(1a,1b,〜1n) 商品コラム
2(2a,2b,〜2m) 商品選択釦
3 販売制御部
5(5a,5b,〜5n) 端末制御部
6 データ通信線
7 主制御部
S1,〜S4 アドレス付与手段
S11,〜S17 アドレス設定手段
[0001]
BACKGROUND OF THE INVENTION
The present invention provides, for example, a plurality of product selection buttons incorporated in a vending machine, or operations of a plurality of terminal units provided corresponding to a plurality of product columns via a data communication line. In particular, the present invention relates to a terminal control system having a function capable of easily executing address setting for a plurality of terminal units.
[0002]
[Related background]
As shown in FIG. 1, a vending machine such as a cigarette generally includes a plurality of product columns 1a, 1b, and 1n that store a plurality of types of products according to brands, and the product columns 1a, 1b, and 1n. A plurality of product selection buttons 2a, 2b, to 2m for instructing selective payout of the stored products. Then, under the control of the sales control unit 3 composed of a microcomputer or the like, a product of a brand designated by an alternative pressing operation of the product selection buttons 2a, 2b, to 2m is stored in a product column 1a, It is configured to pay out selectively from 1b, to 1n. In the figure, reference numeral 4 denotes a money processing unit that determines the amount of money to be inserted and issues change.
[0003]
Thus, in the conventional vending machine, the plurality of product columns 1a, 1b,... 1n and the sales control unit 3 are respectively connected by individual control signal lines, and the plurality of product selection buttons 2a, 2b,. 2m and the sales control unit 3 are also connected by individual signal lines. Then, the selective operation of the product selection buttons 2a, 2b, .about.2m is detected via these signal lines, and the product columns 1a, 1b, .about.1n are selectively driven via the signal lines. It is configured to pay out. However, in this case, it is necessary to lay a large amount of signal lines in the vending machine, which causes an increase in manufacturing cost.
[0004]
[Problems to be solved by the invention]
Therefore, as shown in FIG. 2, terminal control units (terminal units) 5a, 5b, to 5n for controlling the operation are provided in each of the plurality of product columns 1a, 1b, to 1n, and these terminal control units 5a, 5n, 5b, to 5n are connected to the main control unit 7 provided in the sales control unit 3 via the data communication line 6 for serial communication, and the terminal control unit 5a, It is considered that the operation commands are given by selectively addressing 5b to 5n, thereby individually controlling the operations of the commodity columns 1a, 1b, to 1n. It is considered that the operations of the plurality of product selection buttons 2a, 2b, to 2m are similarly controlled by selective addressing.
[0005]
By the way, in general, different temporary addresses are assigned in advance to the terminal control units 5a, 5b, and 5n provided in each of the plurality of product columns 1a, 1b, and 1n. These terminal controllers 5a, 5b,... -5n are assembled in the vending machine while being associated with the commodity columns 1a, 1b,. For this reason, address management of each terminal control unit 5a, 5b, .about.5n is difficult, and it is also difficult to confirm consistency with the order of the product columns 1a, 1b, .about.1n after assembly.
[0006]
The present invention has been made in consideration of such circumstances, and its purpose is provided corresponding to, for example, a plurality of product selection buttons or a plurality of product columns incorporated in a vending machine, and a data communication line is provided. An object of the present invention is to provide a terminal control system having a function capable of easily executing address setting for a plurality of terminal units connected to a main control unit via the terminal unit.
[0007]
[Means for Solving the Problems]
A terminal control system according to the invention to achieve the above-described object is provided corresponding to, for example, a plurality of product selection buttons or a plurality of product columns incorporated in a vending machine, and is connected to a main control unit via a data communication line. The operation of a plurality of terminal units connected to the control unit is controlled under selective addressing from the main control unit,
Each address of the plurality of terminal units is set as an initial value common to each terminal unit, for example, a special address that is not used during formal operation (initial setting means),
The main control unit is provided with an address assigning unit that transmits address data to be set in the terminal unit together with an address setting command with the initial address as a transmission destination when the address is set for the plurality of terminal units. ,
On the other hand, each terminal unit stores the address data temporarily when the address setting command is received, and the primary stored address data when a predetermined address setting instruction is given in the terminal unit. Address setting means for setting a local station address and returning a response command to the main control unit is provided.
[0008]
Incidentally, the plurality of terminal units have the same function as each other, and operate selectively upon receiving address designation from the main control unit, and a plurality of product selection buttons incorporated in the vending machine, or a plurality of It is provided corresponding to each of the commodity columns, and is realized as a terminal control unit that individually controls each of these operations.
[0009]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, a terminal control system according to an embodiment of the present invention will be described with reference to the drawings, taking as an example a case where it is incorporated in a vending machine.
For example, as shown in FIG. 2, this terminal control system is provided in each of a plurality of product columns 1a, 1b, .about.1n or a plurality of product selection buttons 2a, 2b, .about.2m in the vending machine to control the operation thereof. A plurality of terminal control units 5a, 5b,..., 5n and a main control unit 7 provided in the sales control unit 3 are connected via a data communication line 6 for serial communication, and a main control unit 7 provided in the sales control unit 3 is connected. Under the selective address designation from the control unit 7, the operation of each of the terminal control units 5a, 5b, to 5n is controlled.
[0010]
The present invention has a function of easily setting addresses for the plurality of terminal control units 5a, 5b, to 5n in such a terminal control system. In particular, this address setting mechanism uses the addresses of the plurality of terminal control units 5a, 5b, .about.5n in advance as the initial addresses common to the terminal control units 5a, 5b, .about.5n. An initial setting means for setting a special address that is not set as, for example, an address “00” is provided. This initial setting of the address is executed when the vending machine is shipped from the factory or when the system of the vending machine is reset.
[0011]
Thus, the address setting function sets the address setting mode for the vending machine in the state where the addresses of the terminal control units 5a, 5b,... And a plurality of terminal control units 5a, 5b,..., 5n are executed while performing data communication with a predetermined address setting command or the like via the data communication line 6.
[0012]
That is, the processing function for address setting provided in the main control unit 7 and each terminal control unit 5 (5a, 5b,..., 5n) is realized as shown in FIG. The main control unit 7 plays a role as an address assigning unit, and first sets address data “XX” to be set for each terminal control unit 5 (5a, 5b, ˜5n) [step S1]. The address data is sequentially read out as a plurality of address data registered in a predetermined address management program as data determined based on the physical arrangement of the plurality of terminal control units 5 (5a, 5b,..., 5n). Is set.
[0013]
When the address data “XX” to be set is set in the terminal control unit 5 in this way, the main control unit 7 next sets the data transmission destination address to each terminal control unit 5 (5a, 5b) as described above. , ˜˜5n), the address “00” is initialized, and the address data “XX” is transmitted along with the address setting command “AD” via the data communication line 6 [step S2]. Then, the presence / absence of a response from each terminal control unit 5 (5a, 5b, ˜5n) is monitored over a predetermined time [step S3]. If there is no response, the address setting command “AD” and the address data “ The transmission of “XX” is repeatedly executed.
[0014]
On the other hand, when a response from the terminal control unit 5 is detected, it is determined that any one of the terminal control units 5a, 5b, to 5n has acquired the address data “XX” as will be described later. In this case, whether or not all the terminal control units 5a, 5b, to 5n have acquired the address data “XX”, that is, whether the address setting for the plurality of terminal control units 5a, 5b, to 5n has been completed. It is determined whether or not [Step S4]. If the address setting has not been completed, a series of processing procedures from the setting process of the address data “XX” shown in step S1 is repeated. In this case, the address data “XX” is selected from those excluding the address data already acquired by the terminal controllers 5a, 5b, to 5n. When it is determined that the address setting is completed, the address setting mode is canceled. As for the determination of the completion of the address setting, for example, it is determined whether or not all of the plurality of address data prepared to be set for each of the plurality of terminal control units 5a, 5b, to 5n has been transmitted. Done.
[0015]
On the other hand, in each terminal control unit 5 (5a, 5b, .about.5n), the address is initially set as "00" by the initial setting means in advance as described above [step S11], and in this state, the main control unit. Wait for data communication from 7. The state where the address “00” is initially set is the address setting mode in each terminal control unit 5 (5a, 5b, ˜5n).
[0016]
In each terminal control unit 5 (5a, 5b, .about.5n) in the address setting mode, first, as its address setting means, whether or not data addressed to itself is received via the data communication line 6 is determined. It is determined [step S12], and when data addressed to itself indicated by the address “00” is received, it is determined whether or not the received data includes an address setting command “AD” [step S13]. If the address setting command “AD” is not included in the received data, the received data is ignored and it is monitored again whether or not the data addressed to itself is received. When the address setting command “AD” is included in the received data, the address data “XX” in the received data is extracted, and the address data “XX” is temporarily stored [step S14].
[0017]
Thereafter, each terminal control unit 5 (5a, 5b, .about.5n) is a product column 1a, 1b, .about.1n provided with each terminal control unit 5 (5a, 5b, .about.5n), or a product selection button 2a. , 2b, to 2m, it is determined whether an instruction for address setting is given [step S15]. The instruction for address setting is given externally by the operator via the product columns 1a, 1b, .about.1n or the product selection buttons 2a, 2b, .about.2m. For example, the product selection buttons 2a, 2b,. This is given by a selective pressing operation of 2 m or a selective operation of a sold-out switch provided in a product dispensing unit incorporated in the product columns 1a, 1b,.
[0018]
If no address setting instruction is given for a predetermined time, the address data “XX” temporarily stored in the received data described above is discarded as no address setting instruction, and the process of step S11 is performed again. Returning to step S5, it is monitored whether or not data addressed to itself is received. On the other hand, when an address setting instruction is given, the address data “XX” temporarily stored as described above is taken in as an address to be assigned to itself, and the initially set address “00” is changed to the address “XX”. Change and register [step S16]. Thereafter, a response command indicating that the address “XX” has been acquired is returned to the main control unit 7 via the data communication line 6 [step S17].
[0019]
As a result, in the terminal control unit 5 (5a, 5b, .about.5n) that has acquired the address “XX”, the address setting command “AD” and a new address are transmitted from the main control unit 7 with the address “00” as the transmission destination. Even if the data “XX” is sent, it is not judged as data addressed to the own station, and the communication data is sent to the other terminal control unit 5.
[0020]
Thus, according to the address setting function composed of the address assigning means by the main control section 7 and the address setting means in the terminal control section 5 as described above, as shown in FIG. 4, the address from the main control section 7 at time T1. When a setting command is issued and an address setting command “AD” and new address data “03” are sent with the transmission destination address set to “00”, the address data “03” is sent to each of the terminal controllers 5a, 5b, and 5n. Is temporarily stored. At this time, when an address setting instruction is given to the terminal control unit 5b, the address data “03” primarily stored by the terminal control unit 5b is taken and the initially set address “00” is changed to “03”. A response command is returned to the main control unit 7.
[0021]
Then, the main control unit 7 knows that the assignment of the address data “03” is completed, issues an address setting command at the next time T2, sets the transmission destination address to “00”, and sets a new address setting command “AD”. Address data “02” is sent. Then, the transmission data is received by the terminal control units 5a, 5c, to 5n other than the terminal control unit 5b that has acquired the address "03", and the terminal control units 5a, 5c, to 5n respectively receive the primary data. Remembered. When an address setting instruction is given to the terminal control unit 5a in this state, the terminal control unit 5a takes in the address data “02” that is temporarily stored and changes the initially set address “00” to “02”. A response command is returned to the main control unit 7.
[0022]
Then, the main control unit 7 knows that the assignment of the address data “02” has been completed, issues an address setting command at the next time T3, sets the transmission destination address to “00”, and sets a new address setting command “AD”. Address data “01” is sent. In this case, the transmission data is received by the terminal control unit 5b that has acquired the address "03" and the terminal control units 5c to 5n other than the terminal control unit 5a that has acquired the address "02". The data “01” is primarily stored in each of these terminal control units 5c to 5n. When an address setting instruction is given to the terminal control unit 5c in this state, the terminal control unit 5c takes in the address data “01” that is temporarily stored and changes the initially set address “00” to “01”. A response command is returned to the main control unit 7.
[0023]
Thereafter, each terminal control unit is sequentially sent to the remaining terminal control units 5d to 5n while sequentially sending an address setting command “AD” and new address data “XX” with the transmission destination address set to “00”. By giving address setting instructions to 5d and 5n, address assignment (address setting) to all the terminal control units 5a, 5c and 5n is completed.
[0024]
As described above, according to the present terminal control system, the main control unit 7 sets addresses to the plurality of terminal control units 5a, 5c, to 5n controlled via the data communication line 6 by a simple procedure. Can do. Moreover, it is only necessary to selectively operate the product columns 1a, 1b, ˜1n or the product selection buttons 2a, 2b, ˜2m provided with a plurality of terminal control units 5a, 5c, ˜5n, respectively, to instruct the address setting. The address setting for each of the terminal control units 5a, 5c,..., 5n can be easily executed, and no special knowledge is required.
[0025]
Therefore, even if temporary addresses different from each other are assigned in advance to the plurality of terminal control units 5a, 5c,..., 5n, these temporary addresses are reset, and after incorporation into the vending machine, as described above, the product columns 1a, 1b , ˜1n or the product selection buttons 2a, 2b, ˜2m can be easily set by simply selectively operating the terminal control units 5a, 5c, ˜5n in a predetermined order. There is an advantage to say. Moreover, since it is not necessary to manage the temporary addresses assigned to the terminal control units 5a, 5c, to 5n prior to incorporation into the vending machine, the work load can be greatly reduced. Played.
[0026]
The present invention is not limited to the embodiment described above. Here, the terminal control system incorporated in the vending machine has been described as an example, but the present invention can be similarly applied to other terminal control systems. The number of digits (number of data bits) of the address data may be determined according to the number of terminal control units 5 and the like, and is used during formal operation other than “00” as an initial setting address. Of course, it is possible to adopt an address that does not occur. In addition, the present invention can be variously modified and implemented without departing from the scope of the invention.
[0027]
【The invention's effect】
As described above, according to the present invention, when the addresses of a plurality of terminal units are set, the initial address set in advance from the main control unit to each terminal unit is set in the terminal unit together with the address setting command as a transmission destination. The address data to be transmitted is transmitted, and each terminal unit temporarily stores the address data when receiving an address setting command, and automatically stores the address data stored temporarily when a predetermined address setting instruction is given. Since it is only set as a station address and a response command is returned to the main control unit, it is possible to easily and reliably set addresses for a plurality of terminal units without requiring specialized knowledge. An enormous effect can be achieved.
[Brief description of the drawings]
FIG. 1 is a schematic configuration diagram of a main part of a vending machine.
FIG. 2 is a diagram showing an example of a terminal control system incorporated in a vending machine.
FIG. 3 is a diagram showing an example of an address setting procedure by an address setting function included in the terminal control system according to the embodiment of the present invention.
4 is a diagram showing an example of address setting for a plurality of terminal control units by an address setting processing function in the terminal control system shown in FIG. 3;
[Explanation of symbols]
1 (1a, 1b, ˜1n) Product column 2 (2a, 2b, ˜2m) Product selection button 3 Sales control unit 5 (5a, 5b, ˜5n) Terminal control unit 6 Data communication line 7 Main control unit S1, ˜ S4 Address assigning means S11 to S17 Address setting means

Claims (3)

主制御部にデータ通信線を介して接続された複数の端末部の動作を、上記主制御部からの選択的なアドレス指定の下で制御する端末制御システムであって、
予め前記複数の端末部の各アドレスを、各端末部に共通な初期アドレスとしてそれぞれ設定する初期設定手段と、
前記主制御部に設けられ、前記複数の端末部のアドレス設定時には前記端末部に対して上記初期アドレスを送信先としてアドレス設定コマンドと共に、端末部に設定すべきアドレスデータを送信するアドレス付与手段と、
前記各端末部にそれぞれ設けられ、上記アドレス設定コマンドを受信したときに上記アドレスデータを一次記憶する手段、および当該端末部において所定のアドレス設定指示が与えられたとき、上記一次記憶したアドレスデータを自局アドレスとして設定すると共に、前記主制御部に対して応答コマンドを返すアドレス設定手段と
を具備したことを特徴とする端末制御システム。
A terminal control system that controls operations of a plurality of terminal units connected to a main control unit via data communication lines under selective addressing from the main control unit,
Initial setting means for setting each address of the plurality of terminal units in advance as an initial address common to each terminal unit;
An address assigning unit provided in the main control unit and configured to transmit address data to be set in the terminal unit together with an address setting command with the initial address as a transmission destination when the addresses of the plurality of terminal units are set; ,
Means provided in each terminal unit for temporarily storing the address data when the address setting command is received; and when the predetermined address setting instruction is given in the terminal unit, the primary stored address data A terminal control system comprising address setting means for setting a local address and returning a response command to the main control unit.
前記複数の端末部は、互いに同じ機能を備え、前記主制御部からのアドレス指定を受けて選択的に動作するものである請求項1に記載の端末制御システム。The terminal control system according to claim 1, wherein the plurality of terminal units have the same function as each other and selectively operate in response to address designation from the main control unit. 前記複数の端末部は、自動販売機に組み込まれた複数の商品選択釦、または複数の商品コラムにそれぞれ対応して設けられて、これらの各動作を個別に制御するものである請求項1に記載の端末制御システム。The plurality of terminal units are respectively provided corresponding to a plurality of product selection buttons or a plurality of product columns incorporated in the vending machine, and individually control these operations. The terminal control system described.
JP2001215398A 2001-07-16 2001-07-16 Terminal control system Expired - Fee Related JP4681766B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001215398A JP4681766B2 (en) 2001-07-16 2001-07-16 Terminal control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001215398A JP4681766B2 (en) 2001-07-16 2001-07-16 Terminal control system

Publications (2)

Publication Number Publication Date
JP2003032255A JP2003032255A (en) 2003-01-31
JP4681766B2 true JP4681766B2 (en) 2011-05-11

Family

ID=19050041

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001215398A Expired - Fee Related JP4681766B2 (en) 2001-07-16 2001-07-16 Terminal control system

Country Status (1)

Country Link
JP (1) JP4681766B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6182390B2 (en) * 2013-08-16 2017-08-16 パナソニック株式会社 Vending machine, control device therefor, and control method for vending machine
JP7086705B2 (en) * 2018-05-09 2022-06-20 シャープ株式会社 Interface circuits and electronic devices

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04223633A (en) * 1990-12-25 1992-08-13 Omron Corp Address setting system for 1:n serial communication system
JP3110293B2 (en) * 1995-09-22 2000-11-20 大崎電気工業株式会社 Watt hour meter with communication function
JP3974233B2 (en) * 1997-09-25 2007-09-12 松下電器産業株式会社 Controlled equipment, control apparatus, initial setting communication system and medium
JP3829230B2 (en) * 1998-02-26 2006-10-04 富士電機リテイルシステムズ株式会社 Address setting method for vending machines and vending machine components

Also Published As

Publication number Publication date
JP2003032255A (en) 2003-01-31

Similar Documents

Publication Publication Date Title
EP1697802B1 (en) Method and system for automated configuring of a hart multi-drop system
JP3474979B2 (en) Cooking system management system
JP4681766B2 (en) Terminal control system
US5467078A (en) System and method for communicating data between plural air conditioning machines for controlling the machines and displaying their status
JP2001175933A (en) Control program rewriting system and controller for vending machine
JP2001319267A (en) Control system for automatic vending machine
JP2017049870A (en) Machine control system indicating machine operation information on indicator according to operator
US11003173B2 (en) Identifier (ID) based communication system
EP1022697B1 (en) Control apparatus for vending machine
JP6833044B2 (en) Air conditioning system
JP3601356B2 (en) Vending machine control device
JP3818477B2 (en) Vending machine control equipment
JP2967776B1 (en) Mechanism control method and device
KR102463796B1 (en) Apparatus and method for manually setting of pipes of air conditioner
JP3395667B2 (en) Load control data setting device
US8032738B2 (en) Method for the start-up of numerical controls of machine tools or production machinery and numerical control for machine tools or production machinery
JPS5813927B2 (en) Terminal device setting data change method
JP2723557B2 (en) Collective terminal system
JP2001109935A (en) Vending machine control device
KR100365355B1 (en) How to set up the function of optional keys
JP2561366B2 (en) Data transfer device having function confirmation function
JP4259716B2 (en) Vending machine control equipment
JP3363045B2 (en) How to set the station number of the switch unit
JP3815118B2 (en) Vending machine controller
KR100448489B1 (en) Method for controlling a central computer connected to personal computers and a numerical controller and a control device thereof, specially concerned with enabling a concentrated management in one place by connecting the plural personal computers and the numerical controller with the central computer

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080626

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110124

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110126

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110207

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140210

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees