KR880001871B1 - A vending machine - Google Patents

A vending machine Download PDF

Info

Publication number
KR880001871B1
KR880001871B1 KR1019830005239A KR830005239A KR880001871B1 KR 880001871 B1 KR880001871 B1 KR 880001871B1 KR 1019830005239 A KR1019830005239 A KR 1019830005239A KR 830005239 A KR830005239 A KR 830005239A KR 880001871 B1 KR880001871 B1 KR 880001871B1
Authority
KR
South Korea
Prior art keywords
data
product
microcomputer
control
signal line
Prior art date
Application number
KR1019830005239A
Other languages
Korean (ko)
Other versions
KR840006706A (en
Inventor
네 미사오 아와
세이 지 하라
사도시 고바야시
Original Assignee
산요덴끼 가부시기가이샤
이 노우에 가오루
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
Priority claimed from JP19926982A external-priority patent/JPS5990192A/en
Priority claimed from JP20394282A external-priority patent/JPS5994194A/en
Priority claimed from JP57203943A external-priority patent/JPS5994192A/en
Priority claimed from JP20828082A external-priority patent/JPS5998292A/en
Application filed by 산요덴끼 가부시기가이샤, 이 노우에 가오루 filed Critical 산요덴끼 가부시기가이샤
Publication of KR840006706A publication Critical patent/KR840006706A/en
Application granted granted Critical
Publication of KR880001871B1 publication Critical patent/KR880001871B1/en

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F9/00Details other than those peculiar to special kinds or types of apparatus

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)

Abstract

At least two microcomputers are provided for the controlling operation of an automatic vending machine, which are connected by signal wires of a number selected from one to four w.r.t. each other. One of the microcomputers is a main microcomputer, while the other is a submicrocomputer. The submicrocomputer performs the controlling operation on the restricted block functions of the automatic vending machine, while the main microcomputer transmits control codes to the submicrocomputer through the signal wire to control the operation of it, and controls the automatic vending operation while serially transmitting or receiving the necessary data.

Description

자동 판매기의 제어방법 및 장치Control Method and Device of Vending Machine

제1도는 자동 판매기의 전면을 표시하는 사시도.1 is a perspective view showing the front of a vending machine.

제2도는 자동 판매기의 전면문을 연 상태를 표시하는 도면.2 is a view showing a state in which the front door of the vending machine is opened.

제3도는 자동 판매기의 기체내의 도어를 연 상태를 표시하는 도면.3 is a view showing a state in which the door in the body of the vending machine is opened.

제4도는 거스름돈 불출장치의 측단면도.4 is a side cross-sectional view of the change dispensing device.

제5도는 상품 판매기구를 표시하는 조립샤시도.5 is an assembly chassis showing the merchandise sales mechanism.

제6도는 상품 판매기구의 동작 설명도.6 is an operation explanatory diagram of a merchandise sales mechanism.

제7도는 상품 판매기구의 동작 설명도.7 is an operation explanatory diagram of a merchandise sales organization.

제8도는 본 발명에 의한 자동 판매기를 설명하는 시스템 도면.8 is a system diagram illustrating a vending machine according to the present invention.

제9도는 본 발명에 의한 자동 판매기의 제어회로도.9 is a control circuit diagram of a vending machine according to the present invention.

제10도는 전송데이타의 구성을 표시하는 도면.10 is a diagram showing the configuration of transmission data.

제11도는 메인마이크로 컴퓨터와 각 서브마이크로 컴퓨터간에 있어서의 데이타전송을 설명하기 위한 블록도.FIG. 11 is a block diagram for explaining data transfer between a main microcomputer and each submicro computer. FIG.

제12도는 데이타 전송의 타이밍을 설명하는 타이밍차아트.12 is a timing difference art for explaining the timing of data transfer.

제13도는 메인마이크로 컴퓨터의 동작을 설명하는 플로우차아트.13 is a flowchart illustrating the operation of the main microcomputer.

제14도는 메인마이크로 컴퓨터의 동작으로 화폐 불출의 서브 루우틴을 설명하는 플로우차아트.Fig. 14 is a flowchart illustrating a subroutine of currency dispensing by the operation of a main microcomputer.

제15도는 메인마이크로 컴퓨터의 동작으로 상품판매의 서브 루우틴을 설명하는 플로우차아트.15 is a flowchart illustrating a subroutine of merchandise sales by the operation of a main microcomputer.

제16도는 코인메카니즘 제어부를 설치한 서브마이크로 컴퓨터의 테스트동작을 설명하는 기능 블록도.FIG. 16 is a functional block diagram for explaining a test operation of a submicrocomputer provided with a coin mechanism control unit. FIG.

제17도는 접객제어부에 설치한 서브마이크로 컴퓨터의 테스트 동작을 설명하는 기능 블록도.Fig. 17 is a functional block diagram for explaining a test operation of a submicrocomputer installed in the customer control unit.

제18도는 접객제어부에 설치한 서브마이크로 컴퓨터의 다른 테스트 동작을 설명하는 기능 블록도.18 is a functional block diagram for explaining another test operation of the submicrocomputer installed in the customer control unit.

제19도는 판매제어부에 설치한 서브마이크로 컴퓨터의 테스트 동작을 설명하는 기능 블록도.19 is a functional block diagram for explaining a test operation of a submicrocomputer installed in the sales control unit.

본 발명은 자동 판매기의 제어에 적어도 두개의 마이크로 컴퓨터를 설치해서 서로를 한줄의 신호선으로 접속하고 한쪽을 메인마이크로 컴퓨터, 다른 한쪽을 서브 마이크로 컴퓨터로서, 서브 마이크로 컴퓨터는 자동 판매기의 한정된 기능 블록에 관한 제어를 실시하고 메인 마이크로 컴퓨터는 신호선을 통해서 서브 마이크로 컴퓨터에 제어코오드를 송신해서 그 동작을 통괄함과 동시에 필요한 데이타를 연속적으로 송수신 하면서 자동 판매기동작을 제어하는 것이다.The present invention provides at least two microcomputers for control of a vending machine and connects each other with one line of signal lines, one of which is a main microcomputer and the other of which is a submicrocomputer, wherein the submicrocomputer relates to a limited function block of the vending machine. Control is performed and the main microcomputer transmits a control code to the sub microcomputer via a signal line to control the vending machine operation while integrating the operation and transmitting and receiving necessary data continuously.

본 발명은 자동 판매기의 제어방법 및 장치에 관해서 특히 마이크로 컴퓨터에 의해서 제어함을 목적으로 한다.An object of the present invention is to control a vending machine control method and apparatus, in particular by a microcomputer.

근년에 자동판매기에 대한 마이크로 컴퓨터의 응용은 활발하게 실시되고 있고 그 기능향상에 크게 기여하고 있는 반면 여러가지 문제점도 발생해가고 있다.In recent years, the application of microcomputers to vending machines has been actively carried out and contributes greatly to the improvement of their functions, but there are also various problems.

즉 자동 판매기에 있어서 그 제어회로는 적어도 투입금액 연산판매 후의 잔액연산, 거스름돈 소진검출, 상품매진검출, 매진상표표시, 구입가능 상품판정, 구입가능 상품표시, 상품 선택스위치의 동작검출, 상품송출, 거스름돈 불출등의 동작을 행하지 않으면 않되지만 종래의 마이크로 컴퓨터제어에 의한 제어회로는 단말장치인 이들 스위치장치 구동장치, 표시장치하고는 1대 1로 결연될때가 많다.That is, in the vending machine, the control circuit includes at least the calculation of the balance after the sales of the input amount, the change of exhaustion, the detection of the sold out of the product, the sale of the sold out label, the selection of the available product, the display of the available product, the operation of the selection switch, Although operations such as change of money must be performed, conventional control circuits by microcomputer control are often one-to-one with these switch device driving devices and display devices as terminal devices.

이와같이 제어회로의 하나의 마이크로 컴퓨터의 각 단말장치를 직접 집중적으로 관리하면 기능의 제어회로에의 집중화에 의해서 다음의 폐해가 있다.In this way, if each terminal device of one microcomputer of the control circuit is directly and centrally managed, the following disadvantages occur due to the centralization of the function into the control circuit.

제어회로부 기판의 부품점수가 많아지기 때문에 조립공정에 있어서의 작업성이 나쁘고 불량율도 높아지고 불량원인의 해석 및 수리가 곤난하게 되어있다.As the number of parts of the control circuit board increases, the workability in the assembling process is poor, the defect rate is high, and the cause and analysis of the defect are difficult.

또 제어회로로부터의 신호선이 많아지기 때문에 배선수리 및 잘못되는 배선의 문제가 증가하고 있으며, 각종 자동 판매기에 대해서 제어회로부 기판은 각각 따로 설계할 필요가 있고 또 그 하아드웨어 및 소프트웨어는 다 기능화에 따라 복잡하게 되어오고 있다.In addition, as the number of signal lines from the control circuit increases, the problem of wiring repair and wrong wiring is increasing. The control circuit boards need to be designed separately for various vending machines, and the hardware and software are multifunctional. It has become complicated.

특히 소프트웨어에 관해서는 작업분담의 문제도 있고 소프트엔지니어에의 부담이 무거워지고 개발 및 디백에 많은 시간이 필요하게 되는 것이며, 제어회로가 크게되고 수리도 곤란하기 때문에 서어비스 코스트가 비싸게 먹힌다.Especially with regard to software, there are problems of work sharing, heavy burden on software engineers, much time for development and debag, and large control circuits and difficult repairs, resulting in expensive service costs.

한편 미국특허 제4267915호의 명세서는 제어회로에 판매상품의 가격 데이타를 도입하는 회로구멍에 데이타 모선 및 말티플렉스 방식을 채용하고 있으며, 이와같은 데이타 모선 및 말티플렉스의 사고방법을 자동판매기의 다른 신호계에도 응용하는 것으로 상기한 배선수의 증가에 관해서는 어느정도의 대처를 도모할 수가 있다.On the other hand, the specification of U.S. Patent No. 4267915 employs a data busbar and a Maltiplex method in a circuit hole for introducing price data of a merchandise into a control circuit. By application, the above-mentioned increase in the number of wirings can be attained to some extent.

그렇지만 미국특허 제4267915호의 명세서에 있어서의 데이타 모선 및 멀티플렉스는 데이터를 병열전송하기 때문에 효과적인 배선수의 삭감하기에는 이르지 못한다.However, the data busbars and multiplexes in the specification of US Pat. No. 4,459,15 do not reach the effective number of wirings because data is transmitted in parallel.

더구나 신호계에 말티플렉스방식을 다용하면 제어회로와 각 단말회로 하고가 1대 1로 신호의 송수신을 행하는 일이 적어지고 이상 발생시에 어느 단말장치에 원인이 있는가 혹은 제어회로에 원인이 있는가를 해석하는 일이 곤난하게 되어서 서어비스성에 관한 불조가 증가하게된다.In addition, if the Maltiplex method is widely used in the signal system, it is less likely to transmit and receive signals one-to-one to the control circuit and each terminal circuit, and to analyze which terminal equipment causes or causes the control circuit when an error occurs. This poverty has led to an increase in distress about serviceability.

또 배선수의 효과적인 삭감에 관해서는 제어회로와 각 단말와의 사이에서 데이터를 연속전송하는 것이 일본의 특공소 58-16230호 공보에 계시되어 있다.In addition, regarding the effective reduction of the number of wirings, it is disclosed in Japanese Unexamined Patent Publication No. 58-16230 to continuously transmit data between the control circuit and each terminal.

그렇지만 특공소 58-16230호 공보는 배선수의 효과적인 삭감을 도모할 수 있더라도, 제어회로에의 기능집중은 해결되어 있지 않고 조립작업성의 면, 설계효율의 면, 서어비스성의 면에서 어느 면에서나 문제가 남는다.However, although Japanese Patent Publication No. 58-16230 can effectively reduce the number of wirings, the concentration of functions in the control circuit has not been solved, and problems in terms of assembly workability, design efficiency, and serviceability have been found. Remains.

본 발명의 목적은 배전수를 대폭으로 삭감한 자동 판매기의 제어방법 및 장치를 제공함에 있다.SUMMARY OF THE INVENTION An object of the present invention is to provide a control method and apparatus for a vending machine with a significant reduction in distribution water.

이 발명이 더욱더 목적으로 하는 점은 이상 발생시에 고장해석이 용이한 자동 판매기의 제어방법 및 장치를 제공함에 있다.It is a further object of the present invention to provide a control method and apparatus for a vending machine that is easy to troubleshoot when an abnormality occurs.

이 발명이 더욱 목적으로 하는 점은 제어를 기능 블록마다 분산시킨 자동 판매기의 제어방법 및 장치를 제공함에 있다.A further object of the present invention is to provide a control method and apparatus for a vending machine in which control is distributed among functional blocks.

이 발명이 더욱 목적으로 하는 점은 기능 블록마다 단독으로 테스트 동작을 수행할 수 있는 자동 판매기의 제어 방법 및 장치를 제공하게 된다.It is a further object of the present invention to provide a control method and apparatus for a vending machine that can perform a test operation alone for each functional block.

이 발명이 더욱 목적으로 하는 점은 조립작업성이 개선되는 자동 판매기의 제어방법 및 장치를 제공함에 있다.It is a further object of the present invention to provide a control method and apparatus for a vending machine in which assembly workability is improved.

이 발명이 더욱 목적으로 하는 점은 각종 기능의 선택부품의 취부가 용이한 자동 판매기의 제어방법 및 장치를 제공함에 있다.It is a further object of the present invention to provide a control method and apparatus for a vending machine in which attachment of optional parts having various functions is easy.

[실시예]EXAMPLE

제1도에서 제3도 까지에 제시하는 자동 판매기를 구성하는 부품을 기능 블록으로 분류하면 다음과 같다.The components constituting the vending machine shown in FIGS. 1 to 3 are classified into functional blocks as follows.

(1) 코인 메카니즘(100)(1) Coin Mechanism (100)

a. 검전부(101)a. Test part (101)

자동 판매기의 경화투입구(102)로 부터 들어오는 경화는 이 부분에서 검전되고 위화는 반각구(103)으로 반각되고 정화에 대해서는 10원, 50원, 100원, 500원의 각각의 경화별 투입화폐신호를 출력함과 동시에 경화별 거스름돈 파이프(104)(105)(106)(107) 또는 금고(108)로 인도한다.The coin coming from the coin inlet 102 of the vending machine is inspected in this part and the counterfeit is engraved into the half hole 103. For the purification, each coin of 10 won, 50 won, 100 won, 500 won At the same time output to the cure change change pipe 104, 105, 106, 107 or the safe 108.

b. 거스름돈 반환부b. Change Return

제4도에 표시하는 바와같이 거스름돈 파이프(104)(105)(106)(107)에 대응해서 거스름돈 불출모우터(17)(18)(19)(20)을 가지고, 거스름돈 배출시에는 불출화폐종에 대응하는 어느 것인가의 거스름돈 불출모우터(17)(18)(19)(20)를 구동시켜서 코인압출판(110)을 왕복이동시키고, 불출화폐종을 수납한 거스름돈 파이프로부터 경화를 빼내서 거스름돈 반환구(103)로 배출한다.As shown in FIG. 4, with the change pipes 104, 105, 106, and 107, the change discharge motors 17, 18, 19, and 20 are used. The coin presser 110 is reciprocated by driving any of the change change motors 17, 18, 19, and 20 corresponding to the species, and the coin is removed from the change pipe containing the non-penetrating species. Discharge to return port 103.

코인 압출판(110) 및 감속기어(109)는 거스름돈 불출모우터(17)(18)(19)(20)마다 설치되어 있다.The coin extrusion plate 110 and the reduction gear 109 are provided for each change discharge motor 17, 18, 19, 20.

또 파이프(104)(105)(106)(107)내의 거스름돈의 유무는 스위치(99)로 검지된다.In addition, the presence or absence of change in the pipes 104, 105, 106 and 107 is detected by the switch 99.

(2) 접객부(111)(2) Hospitality department (111)

판매상품의 전시를 실시하는 간판(112), 투입화폐의 금액등을 표시하는 투입금액표시기(7), 투입금액과 판매가격 및 거스름돈 유무등의 조건에 따라 표시되는 각 상품별의 판매가 상품표시기(8), 매진 및 기타이유로 판매불능 상품을 표시하는 각 상품별의 매진상품 표시기(9), 구입희망 상품을 지시하는 상품 선택스위치(10A)~(10H)등으로 구성되어 있다.The selling price commodity indicator (8) for each commodity displayed according to the conditions such as the signboard 112 for displaying the selling commodity, the input amount indicator 7 for displaying the amount of the input currency, etc. ), A sold-out product indicator 9 for each product that displays an unsold product for sale and other reasons, and a product selector switch 10A to 10H that indicates a desired product to be purchased.

(3) 판매장치(113)(3) Vending Device (113)

판매상품 종류에 상응해서 상품수납래크(114)와 감속기어(117)에 의해서 감속되는 상품불출 모우터(21) 및 상품불출드럼(115)을 비치하고 판매시에는 선택된 상품종을 수납한 래크(114)에 대응하는 상품불출 모우터(21)를 구동시켜서 제6도 및 제7도에 표시하는 바와같이 상품불출드럼을 구동시키고, 상품을 슈우트(130)를 중개해서 판매구(116)로 송출하는 것이다.A rack having a product dispensing motor 21 and a product dispensing drum 115 decelerated by a product storing rack 114 and a reduction gear 117 corresponding to the product type sold and storing the selected product type at the time of sale ( 114 drives the goods dispensing motor 21 corresponding to 114 to drive the goods dispensing drum as shown in Figs. 6 and 7, and the goods are intermediated with the chute 130 to the sales outlet 116. It is to send.

또 각 수납래크(114)에는 각각 상품의 유무에 상응해서 요동하는 요동판(131)과 요동판(131)의 요동에 의해서 온. 오프하는 상품검출스위치(22)가 설치되어 있다.In addition, each of the storage racks 114 come by shaking of the swinging plate 131 and the swinging plate 131, respectively, corresponding to the presence or absence of goods. The product detection switch 22 for turning off is provided.

(4) 제어부(27)(4) control unit (27)

각 기능블록부를 집중 관리하는 부분이고 리레이 제어방식과 마이크로 컴퓨터 제어방식의 두 종류가 있지만 기능이 복잡한 것에 관해서는 마이크로 컴퓨터 제어가 주류로 되어 있다.There are two types of centralized management of each functional block, and there are two types of relay control method and microcomputer control method, but the microcomputer control is mainly used for the complicated functions.

가격 설정등의 데이터 입력부도 이속에 포함되는 경우가 많다.Data inputs such as price setting are often included in this speed.

(5) 전원부(28)(5) power supply (28)

제어부 및 기타의 각 기능블록부에의 직류안정화 전압이 발생하는 것이지만 리레이 제어방식인 자동판매기의 경우는 불필요하다.Although the DC stabilization voltage is generated to the control unit and other functional block units, it is unnecessary in the case of a vending machine with a relay control method.

(6) 냉각/가온부(118)(6) Cooling / warming section (118)

판매상품의 냉각 혹은 가온하는 장치이고 압축기와 가열기가 사용되고 상품을 적당 온도로 유지하기 위해서 온도조절기가 붙어있다.It is a device that cools or warms the merchandise, and a compressor and a heater are used, and a thermostat is attached to keep the merchandise at an appropriate temperature.

종래에는 이 부분은 단독으로 제어되는 경우가 많았지만 최근에는 절전등의 목적으로 제어부와 결합되는 기종도 있다.Conventionally, this part is often controlled by itself, but recently, there is a model that is combined with the control unit for the purpose of power saving.

(7) 선택부품(7) Optional Parts

손님의 요망에 응해서 각종장치가 선택적으로 취부될 수 있도록 되어 있다.Various devices can be selectively mounted according to the customer's request.

지폐식별장치, 거스름돈 보조장치, 음성합성장치, 절전타이머, 매상집계장치등이 주된 것들이다.Banknote identifiers, change aids, voice synthesizers, power saving timers, and sales counting devices are the main ones.

제8도는 본 발명에 의한 자동 판매기의 제어시스템을 표시하고 있고 제어부(27)에는 메인마이크로 컴퓨터(7)를 배치하고 또한 코인메카니즘(100), 접객부(111), 판매장치(113)에도 각각 저가격의 제어용 서브 마이크로 컴퓨터를 배치해서 각 기능블록마다 제어부(1)(2)(3)를 형성하고 있다.8 shows the control system of the vending machine according to the present invention, and the main microcomputer 7 is arranged in the control unit 27, and the coin mechanism 100, the serving unit 111, and the selling device 113 are respectively inexpensive. Control sub-microcomputers are arranged to form the control unit 1, 2, 3 for each functional block.

그리고 메인마이크로 컴퓨터(7)과 각 서브마이크로 컴퓨터(4)(5)(6)와는 고통의 한선의 신호선으로 접속되고 이 신호선을 중개로 해서 제어지령과 데이터를 서로 송수신하는 것이다.Then, the main microcomputer 7 and each submicrocomputer 4, 5, 6 are connected by a single signal line of pain, and the control command and data are transmitted and received to each other using this signal line as an intermediary.

이와같은 제어시스템에서 단말장치에의 최종배선수는 종래와 변함없지만 제어부(27)로부터 각 기능블록마다의 제어부까지의 배선은 한선(전원라인을 포함해서도 4선)으로 충분하기 때문에 배선수가 대폭 삭감된다.In such a control system, the final routing to the terminal device is the same as before, but since the wiring from the control unit 27 to the control unit for each functional block is enough for one line (four wires including the power line), the number of wirings is greatly reduced. do.

그리고 제어부(27)에 집중되어 있던 부품을 각 기능블록마다의 제어부에 분산할 수가 있고, 마찬가지로 소프트웨어에 관해서도 분산화가 가능하기 때문에 이상 발생시에 있어서의 진단기능을 충실하게 할수 있고 이상발생시에 있어서의 고장해석이 용이하게 된다.The components concentrated in the control unit 27 can be distributed to the control unit for each functional block, and the software can be distributed in the same manner, so that the diagnostic function at the time of an error can be faithfully fulfilled and the failure at the time of an error occurs. Analysis becomes easy.

그리고 배선수의 삭감만을 문제로 삼았을 때에는 기능블록의 분산화에도 각종 자동 판매기의 형태에 상응해서 여러가지 방법이 있다.When only the reduction of the number of wirings is a problem, there are various methods for decentralizing functional blocks corresponding to various types of vending machines.

예컨데, 제어부(27)와 접객부(111)가 근접해 있는 식의 자동 판매기에서는 제어부(27)와 접객부(111)를 설사 한선의 신호선으로 접속하더라도 거리가 짧기 때문에 그다지 효과적이라고는 할수 없다.For example, in the vending machine in which the control unit 27 and the customer unit 111 are in close proximity, even if the control unit 27 and the customer unit 111 are connected by a single signal line, the distance is short, so that it is not very effective.

따라서 이와같은 경우에는 접객부(111)의 제어도 메인마이크로 컴퓨터(7)에 의해서 달성함과 동시에 코인 메카니즘(100) 및 판매장치(113)에는 각각 서브마이크로 컴퓨터(4)(6)를 배치해서 공통의 신호선으로 메인마이크로 컴퓨터(7)와 접속하는 것이다.Therefore, in such a case, the control of the serving unit 111 is also achieved by the main microcomputer 7, and the submicrocomputers 4 and 6 are arranged in the coin mechanism 100 and the vending device 113, respectively. It is connected to the main microcomputer 7 by the signal line of.

따라서 제어부(27)부터 떨어져서 배치되어 있는 기능블록부에 관해서 서브마이크로 컴퓨터를 배치해서 기능을 분산시키고 또한 메인마이크로 컴퓨터(7)와 한선의 신호선에 의해서 접속되는 것으로 배선수가 효과적으로 삭감될 수 있다.Therefore, the number of wirings can be effectively reduced by arranging submicrocomputers to distribute the functions of the functional block portions arranged away from the control unit 27 and being connected to the main microcomputer 7 by one signal line.

통상 자동 판매기내에서는 제어부(27)와 판매장치(113)와의 사이가 가장 거리가 길기 때문에 메인마이크로 컴퓨터(7)에 코인메카니즈(100) 및 접객부(111)의 제어를 집중시키고 판매장치(113)만 서브마이크로 컴퓨터(6)를 배치해서 판매제어기능을 분산시키는 것만으로 배선의 삭감면에서는 효과적으로 된다.Usually, since the distance between the control unit 27 and the selling device 113 is the longest in the vending machine, the main microcomputer 7 concentrates the control of the coin mechanics 100 and the serving unit 111 and the selling device 113. Only by distributing the sales control function by arranging the submicrocomputer 6, it is effective in reducing the wiring.

그렇지만 메인마이크로 컴퓨터(7)에 몇개인가의 기능블록의 제어를 집중시켰을 경우에는 고장해석면에서는 불리하게 된다.However, in the case where the control of some functional blocks is concentrated in the main microcomputer 7, it is disadvantageous in the failure analysis plane.

또한 데이터로우드 제어부(120)는 판매상품종마다의 상품판매가격등의 판매동작에 필요한 데이터를 제어부(27)에 로우드 하는 것으로 데이터 입력부(122)는, 예를들면 키이보오드로 구성된다.In addition, the data loudspeaker 120 logs data necessary for a selling operation such as a product selling price for each product type to the control unit 27, and the data input unit 122 is constituted by a key board, for example.

또 데이터로우드 제어부(120)는 공통의 전기, 전기신호선에 의해서 메인마이크로 컴퓨터(7)와 접속되는 서브마이크로 컴퓨터(121)에 의해서 제어된다.The data loudspeaker control unit 120 is controlled by a submicrocomputer 121 connected to the main microcomputer 7 by common electric and electrical signal lines.

그리고 필요에 따라서 취부되는 지폐식별장치, 음성합성장치, 매상집계장치등의 선택장치 OP-OPn도 각각 공통의 전기신호선에 의해서 메인마이크로 컴퓨터(7)와 접속되는 서브마이크로 컴퓨터(123)(124)에 의해서 제어된다.Sub-microcomputers 123 and 124, which are connected to the main microcomputer 7 by a common electric signal line, also selector OP-OPn, such as a banknote identification device, a speech synthesis device, and a sales aggregation device, which are mounted as necessary. Controlled by

이와같은 선택장치는 신호선에 접속함과 동시에 메인마이크로 컴퓨터(7)에 일부의 소프트를 추가할 뿐으로 충분하다.Such a selection device is sufficient to add some software to the main microcomputer 7 at the same time as it is connected to the signal line.

따라서 다른 제어부(1)(2)(3)의 구성을 변경함이 없이 기능을 추가할 수 있고 확장성에 우수하다.Therefore, a function can be added without changing the structure of other control part 1, 2, 3, and it is excellent in scalability.

이하에, 제어부(27)에 대해서 코인메카니즘(100), 접객부(111), 판매장치(113)의 각 기능블록에 각각 서브마이크로 컴퓨터(4)(5)(6)를 배치한 경우에서 설명하기로 한다.Hereinafter, the control unit 27 will be described in the case where the submicrocomputers 4, 5 and 6 are arranged in the respective functional blocks of the coin mechanism 100, the customer service unit 111, and the sales device 113, respectively. Shall be.

제9도는 본 발명에 의한 자동 판매기의 제어회로를 표시하고(7)은 제어부(27)에 있어서의 메인마이크로 컴퓨터, (1)은 코인메카니즘제어부, (2)는 접객제어부, (3)은 판매제어부이고, 메인마이크로 컴퓨터(7)는 사전에 결정된 프로그램에 따라서 자동 판매기의 중추제어를 행하는 것이다.9 shows a control circuit of a vending machine according to the present invention, where 7 is a main microcomputer in the control unit 27, 1 is a coin mechanism control unit, 2 is a hospitality control unit, and 3 is a sales circuit. It is a control part, and the main microcomputer 7 performs the central control of the vending machine according to a predetermined program.

그리고 접객제어부(2)는 서브마이크로 컴퓨터(5)를 구비하고 마이크로 컴퓨터(5)의 출력포오트(P0)에는 네개의 디지털표시기(7A)(7B)(7C)(7D)로서 성립되는 투입금액표시기(7)와 A로 부터 H까지의 8종류의 상품에 대응하는 LED를 비치한 판매가 상품표시기(8) 및 매진상품 표시기(9)와 각 상품에 호응해서 설치되는 상품선택스위치(10A)~(10H)를 구비한 상품선택스위치 회로(10)를 접속하고 있다.The hospitality control unit 2 includes a submicrocomputer 5 and inputs formed as four digital displays 7A, 7B, 7C, and 7D to the output port P 0 of the microcomputer 5. Price display (7) and LEDs corresponding to eight kinds of products from A to H, price display (8), sold out product display (9), and product selection switch (10A) installed in response to each product. The product selector switch circuit 10 including ˜ (10H) is connected.

더구나 마이크로 컴퓨터(5)의 출력포오트(P0)의 각 단자 0-5는 드라이버(11)를 중개로 해서 각 표시기에 접속되고 또한 입력포오트(P0)는 상품선택스위치 회로(10)에 접속되어 있다.In addition, each terminal 0-5 of the output port P0 of the microcomputer 5 is connected to each display device using the driver 11 as an intermediary, and the input port P 0 is connected to the product selection switch circuit 10. Connected.

또한 코인메카니즘 제어부(1)은 서브마이크로 컴퓨터(4)를 구비하고 입력포오트(P0)에는 10원, 50원, 100원, 500원의 화폐종류에 상응해서 투입화폐신호를 출력하는 화폐검지부(12)를 접속하고 입력포오트(P1)에는 거스름돈용으로 수납한 화폐종류마다의 거스름돈의 유무를 검출해서 거스름돈소진 신호를 출력하는 거스름돈 검지부(13)와 투입금액 혹은 잔액의 반환시에 손님에 의해서 조작되는 반환스위치(14)와 거스름돈 불출모우터에 연동해서 온. 오프하는 각 펄스스위치로부터의 공통입력단자(15)를 접속하고, 출력포오트(P2)에는 드라이버(16)를 중개로 해서 거스름돈 화폐종류마다의 거스름돈 불출모우터(17)(18)(19)(20)를 접속해서 구성되어 있다.In addition, the coin mechanism control unit 1 includes a submicrocomputer 4, and a currency detecting unit for outputting input currency signals corresponding to currency types of 10, 50, 100, and 500 won in the input port P 0 . (12) is connected to the input port (P 1 ) to detect the presence or absence of change for each type of currency stored for change, and change the change detection unit (13) and the customer at the time of returning the input amount or balance In conjunction with the return switch (14) and the change dispensing motor operated by. The common input terminal 15 from each of the pulse switches to be turned off is connected, and the output port P 2 is connected with the driver 16 as an intermediary. (20) is connected and comprised.

또한 판매제어부(3)는 마이크로컴퓨터(6)를 구비하고 포오트(P0)에는 A에는 H까지의 각상품에 상응해서 설치한 상품매진스위치(22A)~(22H)와 드라이버(23)를 중개로해서 각 상품에 대응하는 상품불출모우터(21A)~(21H)를 접속하고, 포오트 P1에는 각 상품불출 모우터에의 공동출력단자(24)를 접속하고, 포오트 P2에는 상품불출 모우터에 연동해서 온. 오프하는 각 펄스스위치의 공통입력단자(25)를 접속하고 포오트 P3에는 각 상품매진 스위치에의 공통출력단자(26)를 접속해서 구성하고 있다.In addition, the sales control unit 3 is provided with a microcomputer (6), the port (P 0 ), A to the goods sold switches 22A to 22H and the driver 23 installed corresponding to each product up to H, to as the intermediate product discharge corresponding to respective items Motor (21A) ~ (21H) the connection and port Haute P 1 is connected to a common output terminal 24 of the Motor each product dispensing and capsule Haute P 2 has We come in conjunction with product dispatch motor. The common input terminal 25 of each pulse switch to be turned off is connected, and the common output terminal 26 to each product sold switch is connected to the port P 3 .

그리고 메인마이크로 컴퓨터(7)에 대해서 각 메인마이크로 컴퓨터(7)에 대해서 각 마이크로 컴퓨터(4)(5)(6)은 각각 한선의 신호선으로 병렬접속되어서 메인마이크로 컴퓨터(7)의 주도로 서로 연속적으로 데이터를 비동기식으로 전송하도록 되어있다.The microcomputers 4, 5, and 6 are connected in parallel to each other by a signal line, so that the main microcomputer 7 is connected to each other. It is designed to transfer data asynchronously.

그리고 데이터는 메마이크로 컴퓨터(7)가 어떤 것인가의 마이크로 컴퓨터(4)(5)(6)를 지정하는 단말지정 데이터와 메인마이크로 컴퓨터(7)이 각 마이크로 컴퓨터(4)(5)(6)에 동작을 명령하는 지령코우드 데이터 체크섬데이터, 체크섬데이터에 의한 확인데이터와 판매데이터의 5종류가 있다.The data is the terminal designation data which designates the microcomputer 4, 5, and 6 of the microcomputer 7, and the main microcomputer 7 is the microcomputer 4, 5 and 6, respectively. There are five types of command code data checksum data, command data for confirming operation by the checksum data, and sales data.

더욱 판매데이터는 메인마이크로 컴퓨터(7)와 각 마이크로 컴퓨터(4)(5)(6)하고가 서로 전송하는 것이고 투입화폐 데이터, 거스름돈 소진데이터, 선택상품데이터, 판매상품데이터, 금액표시데이터, 판매가 상품데이터, 매진상품데이터, 불출데이터, 화폐불출 데이터, 판매 완료 데이터가 있다.Further, the sales data is transmitted between the main microcomputer 7 and each microcomputer 4, 5 and 6, and the input currency data, change data, selection product data, sales product data, amount display data, and selling price There are product data, sold product data, dispensing data, currency dispensing data, and sales completion data.

본 예에서는 데이터를 8비트식 전송하지만 제10도의 형에 표시하는 것처럼 8비트의 데이터비트의 전후에 1비트의 스타아트비트(L)와 2비트의 스톱비트(H)가 부가되어서 11비트의 데이터가 전송된다.In this example, 8-bit data is transmitted, but as shown in the type of FIG. 10, one-bit StarArt bit (L) and two-bit stop bit (H) are added before and after the 8-bit data bit, and 11-bit The data is sent.

따라서 4비트로 구성되는 단말지정 데이터와 지령코우드 데이터는 데이터비트의 상위 4비트와 하위 4비트로 배치되어서 제어데이터로서 전송된다.Therefore, the terminal designation data and the command code data composed of 4 bits are arranged as the upper 4 bits and the lower 4 bits of the data bits and transmitted as control data.

제11도는 데이터전송시의 메인마이크로 컴퓨터(7)와 마이크로컴퓨터(4)(5)(6)의 동작을 설명하기 위한 기능블록도이다.11 is a functional block diagram for explaining the operation of the main microcomputer 7 and the microcomputers 4, 5, 6 during data transmission.

메인마이크로 컴퓨터(7)는 서브마이크로 컴퓨터(4)(5)(6)와의 데이터 전송을 결정하는 주제어장치(29), 전송데이터를 연속 변환하는 11비트 구성의 시프트레지스터(50), 서브마이크로 컴퓨터(4)(5)(6)로 부터의 전송데이터의 스타아트비트에 의해서 쎄트되는 플립플롭회로(30), 트랜스밋숀/리시이버의 쌍방향 변환게이트(40), 플록펄스 발생회로(31)(32), 지연회로(33)의 각 기능을 지니고 있다.The main microcomputer 7 includes a main controller 29 for determining data transfer with the submicrocomputers 4, 5 and 6, a shift register 50 of 11-bit configuration for continuously converting transfer data, and a submicrocomputer. (4) (5) (6) Flip-flop circuit 30, bidirectional conversion gate 40 of transmission / receiver, set by star art bit of transmission data, and floc pulse generating circuit 31 ( 32) has each function of the delay circuit 33.

또한 서브마이크로 컴퓨터(4)(5)(6)는 각각 메인마이크로 컴퓨터(7)로부터 전송되는 데이터의 스타아트를 검출해서 세트하는 플립플롭회로(34A)(34B)(34C), 메인마이크로 컴퓨터(7)와의 데이터 전송을 제어하는 종제어장치(35A)(35B)(35C), 종제어장치(35A)(35B)(35C)에 기억되어 있는 메인마이크로 컴퓨터(7)에 송신데이터를 연속변환하는 11비트구성의 시프트레지스터(36A)(36B)(36C), 쿨록펄스 발생회로(37A)(37B)(37C)(38A)(38B)(38C), 트랜스밋숀/리시이버의 쌍방향 변환게이트(41A)(41B)(41C), 지연회로(39A)(39B)(39C)의 각기능을 지니고 있다.The submicrocomputers 4, 5, and 6 are flip-flop circuits 34A, 34B, 34C, and main microcomputers that detect and set a star art of data transmitted from the main microcomputer 7, respectively. 7 to continuously convert transmission data to the main microcomputer 7 stored in the slave control devices 35A, 35B, 35C and 35C, 35A, 35B, 35C for controlling data transfer with the slave controller. Shift registers 36A, 36B, 36C, coollock pulse generator circuits 37A, 37B, 37C, 38A, 38B, 38C of 11-bit configuration, 41A bidirectional conversion gate of transmission / receiver 41B, 41C, and delay circuits 39A, 39B, 39C.

쿨록펄스 발생회로(31)(32)(37A)(37B)(37C)(38A)(38B)(38C)는 각각 11개의 동일주기의 쿨록펄스CL1, CL2, CL3, CL4를 발생하지만 쿨록펄스 발생회로(37A)(37B)(37C)로 부터 출력되는 쿨록펄스 CL4는 각각 지연회로(39A)(39B)(39C)의 작용으로 제12도의 타이밍차아트에 표시하는 것처럼, 쿨록펄스 발생회로(38A)(38B)(38C)로 부터 출력되는 쿨록펄스 CL1로부터 180°위상이 늦어있다.Coollock pulse generators 31, 32, 37A, 37B, 37C, 38A, 38B, and 38C each generate 11 equal cycles of cooldown pulses CL 1 , CL 2 , CL 3 , and CL 4 . However, the cool lock pulse CL 4 outputted from the cool lock pulse generating circuits 37A, 37B, and 37C is operated by the delay circuits 39A, 39B, and 39C, respectively, as shown in the timing difference art of FIG. The 180 ° phase is delayed from the kullock pulse CL 1 output from the pulse generator circuits 38A, 38B and 38C.

이와같은 기능구성으로, 메인마이크로 컴퓨터(7)과 각 서브마이크로 컴퓨터(4)(5)(6)사이의 데이터 전송은 먼저 메인마이크로 컴퓨터(7)이 단말지정 데이터와 지령 코오드 데이터로서 형성되는 1바이트의 제어데이터를 송신하는 것으로 개시된다.With such a functional configuration, data transmission between the main microcomputer 7 and each submicrocomputer 4, 5, and 6 is first performed by the main microcomputer 7 as terminal designation data and command code data. Transmission of bytes of control data begins.

제12도의 형에 표시하는 바와같이 통상적으로 메인마이크로 컴퓨터(7)의 송신단자는 마아크상태(H)에 있고, 또한 서브마이크 컴퓨터(4)(5)(6)의 각 쌍방향 변환게이트(41A)(41B)(41C)는 데이터를 수신하는 태세에 있다.As shown in the type of FIG. 12, the transmission terminal of the main microcomputer 7 is normally in the mark state H, and each of the bidirectional conversion gates 41A of the submicrocomputers 4, 5, 6 ( 41B) 41C are poised to receive data.

그리고 주제어장치(29)가 11비트의 전송데이터를 시프트레지스터(50)에 세트한후에 쌍방향 변환게이트(40)를 송신태세로 만들고 또한 쿨록펄스 발생회로(31)를 동작시켜서 쿨럭펄스 CL1를 시프트 레지스터(30)으로 도입하면 우선 스타아트비트(L)가 송신되어서 각 서브마이크로 컴퓨터(4)(5)(6)의 플립플롭회로(34A)(34B)(34C)가 세트한다.After the main controller 29 sets the 11-bit transmission data in the shift register 50, the bidirectional conversion gate 40 is put in a transmission condition, and the cool lock pulse generator circuit 31 is operated to shift the cool pulse pulse CL 1 to a shift register. When introduced into (30), first, the star art bit (L) is transmitted, and the flip-flop circuits 34A, 34B, 34C of each submicrocomputer 4, 5, 6 are set.

플립플롭회로(34A)(34B)(34C)의 세트후에 쿨럭펄스 발생회로(37A)(37B)(37C)는 지연회로(39A)(39B)(39C)에 의해서 늦어서 동작하고 쿨록펄스 CL1로부터 180°위상이 늦어진 쿨록펄스 CL2를 출력한다.The flip-flop circuit (34A) (34B) after a set of (34C) kulreok pulse generating circuit (37A) (37B) (37C ) is the late operation by the delay circuits (39A) (39B) (39C ) from kulrok pulses CL 1 Outputs the cool rock pulse CL 2 with a delayed 180 ° phase.

그리고 종제어장치(35A)(35B)(35C)는 쿨록펄스 CL2의 일어서는 것과 때를 같이해서 메인마이크로 컴퓨터(7)로부터의 전송데이터를 샘플링하고 있고, 제2도에 표시하는 바와같이 11비트의 데이터를 각각 1/2비트타이밍으로 샘플링하고 있다.The slave controllers 35A, 35B, and 35C are sampling the transmission data from the main microcomputer 7 in the same manner as when the cool rock pulse CL 2 is raised, and as shown in FIG. Each bit of data is sampled with 1/2 bit timing.

그리고 각 서브마이크로 컴퓨터(4)(5)(6)의 종제어장치(35A)(35B)(35C)는 각각 11비트의 전송데이터의 샘플링을 끝내면, 리세트신호를 플립플롭회로(34A)(34B)(34C)에 출력해서 단말지정 데이터 및 지령 코우드 데이터의 전송이 끝난다.The slave controllers 35A, 35B, 35C of each of the submicrocomputers 4, 5, and 6 finish sampling of the 11-bit transmission data, and then reset the reset signal to the flip-flop circuit 34A ( Outputs to 34B) 34C, and transmission of terminal specification data and command code data is completed.

그리고 각 서브마이크로 컴퓨터(4)(5)(6)의 종제어장치(35A)(35B)(35C)는 송신된 단말지령 데이터 및 지령코우드 데이터를 판독하고 메인마이크로 컴퓨터(7)에 지정된 서브마이크로 컴퓨터만이 지령코우드 데이터를 따른 동작을 행하지만 이하 서브마이크로 컴퓨터(4)가 지정됐다고 가정해서 설명한다.The slave control devices 35A, 35B, 35C of each submicrocomputer 4, 5, 6 read the transmitted terminal command data and command code data, and the subcomputers 7 assigned to the main microcomputer 7 Although only the microcomputer performs the operation according to the command code data, it is assumed that the submicrocomputer 4 is designated below.

예를들면 지령코우드가 판매데이터의 수신을 명령하는 것이라면 서브마이크로 컴퓨터(4)는 메인마이크로 컴퓨터(7)부터 계속해서 송신되는 전송데이터의 스타아트비트로 플립플롭회로가 세트하고, 쿨록펄스와 때를 같이해서 전송데이터를 샘플링한다.For example, if the command code instructs reception of sales data, the submicrocomputer 4 sets the flip-flop circuit to the star art bits of the transmission data continuously transmitted from the main microcomputer 7, Sampling the transmission data together.

그리고 메인마이크로 컴퓨터(7)는 전송데이터의 송신후 1바이트의 체크섬 데이터를 시프트레지스터(50)에 세트해서 송신하고, 서브마이크로 컴퓨터(4)는 체크섬의 전송데이터의 스타이트비트로 플립플롭회로(34A)가 세트해서 체크섬의 전송데이터를 샘플링한다.After the transmission of the transmission data, the main microcomputer 7 sets and transmits the checksum data of 1 byte in the shift register 50, and the submicrocomputer 4 sets the flip-flop circuit 34A with the start bit of the transmission data of the checksum. ) Sets and samples the transmission data of the checksum.

그리고 종제어장치(35A)는 체크섬데이터에 의해서 수신데이터의 적정을 판정하고 적정일 경우에 확인데이터를 메인마이크로 컴퓨터(7)에 송신한다.The slave controller 35A then determines the appropriateness of the received data based on the checksum data and, if appropriate, transmits the confirmation data to the main microcomputer 7.

또한 지령코우드가 판매데이터의 송신을 명령하는 것이라면 종제어장치(35A)는 판매데이터의 전송데이터를 시프트 레지스터(36A)로 세트한후에 쿨록펄스 발생회로(38A)를 동작시킨다.If the command code commands the transmission of the sales data, the slave controller 35A operates the cool lock pulse generation circuit 38A after setting the transmission data of the sales data to the shift register 36A.

따라서 쿨록펄스가 CL3가 시프트 레지스터(36A)에 도입되어서 전송데이터가 수신태세에 있는 쌍방향 변환게이트(40)를 통해서 순차적으로 송신되지만 스타아트비트의 L에 의해서 플립플롭회로(30)이 세트한다.Accordingly, the cool lock pulse is introduced into the shift register 36A by CL 3 so that the transmission data is sequentially transmitted through the bidirectional conversion gate 40 in the receiving posture, but the flip-flop circuit 30 is set by L of the star art bit. .

그리고 쿨록펄스 발생회로(32)는 지연회로(33)로 플립플롭회로(30)의 세트보다 늦어서 동작하기 때문에 쿨록펄스 CL3보다 180°위상이 늦어진 쿨록펄스 CL4를 출력한다.Since the cool lock pulse generator circuit 32 operates later than the set of the flip-flop circuit 30 as the delay circuit 33, the cool lock pulse generator circuit 32 outputs the cool lock pulse CL 4 whose phase is 180 degrees later than the cool lock pulse CL 3 .

그리고 주제어장치(29)는 쿨록펄스 CL4가 일어서는 것과 때를 같이해서 전송되어오는 데이터를 샘플링하고 11비트의 데이터의 샘플링이 끝나면 리세트 신호를 플립플롭회로(30)에 출력해서 판매데이터의 전송이 완료한다.The main controller 29 samples the transmitted data in the same manner as when the cool rock pulse CL 4 rises, and outputs the reset signal to the flip-flop circuit 30 when the 11-bit data is sampled. The transfer is complete.

그후에 종제어장치(35A)는 체크섬의 전송데이터를 시프트 레지스터(36A)에 세트해서 송신하고 메인 컴퓨터(7)는 체크섬의 전송데이터의 스타아트비트에 의해서 플립플롭회로(30)가 세트해서 전송데이터를 샘플링한다.Subsequently, the slave controller 35A sets and transmits the transfer data of the checksum to the shift register 36A, and the main computer 7 sets the flip-flop circuit 30 by the star art bit of the transfer data of the checksum and transmits the transfer data. Sample the.

그리고 주제어장치(29)는 체크섬 데이터에 의해서 수신데이터의 적정여부를 판정하고 적정일 경우에는 확인데이터를 메인측(27)에 송신한다.The main controller 29 determines whether the received data is appropriate or not based on the checksum data, and transmits the confirmation data to the main side 27 when appropriate.

또한 이하의 설명에서는 체크섬데이터의 전송에 설명에서 생략한다. 상기 구성에 있어서 대기상태에서 코인메카니즘 제어부(1)의 마이크로 컴퓨터(4)는 포오트 P0, P1의 각 신호선의 신호상태를 순차적으로 주사하면서 화폐검지부(12), 거스름돈검지부(13), 반환스위치(14)로 부터의 출력신호의 발생을 반복해서 검출하고, 투입화폐 데이터, 거스름돈 소진데이터를 내부 기억장치에 스토아 한다.In the following description, the transmission of checksum data is omitted in the description. In the above configuration, in the standby state, the microcomputer 4 of the coin mechanism control unit 1 sequentially scans the signal states of the signal lines of the ports P 0 and P 1 , and detects the currency detector 12, the change detector 13, The occurrence of the output signal from the return switch 14 is detected repeatedly, and the input currency data and the change exhaustion data are stored in the internal storage device.

본 예에서 투입화폐 데이터는 4비이트(8비이트 1바이트)로 구성되어서 10원, 50원, 100원, 500원의 각 투입매수를 8비트로 표시하고 있고, 또 거스름돈 소진데이터는 1바이트로 구성되어서 10원, 50원, 100원, 500원의 각 거스름돈 소진데이터를 4비트로 표시하고 또한 반환스위치(14)의 동작정보를 1비트로 표시하고 있다.In this example, the input currency data is composed of 4 bytes (8 bytes 1 byte), and each input quantity of 10, 50, 100, or 500 won is represented by 8 bits, and the change-out data is 1 byte. In this configuration, each of the change data of 10 won, 50 won, 100 won, and 500 won is displayed in 4 bits, and the operation information of the return switch 14 is displayed in 1 bit.

그리고 마이크로 컴퓨터(4)는 메인마이크로 컴퓨터(7)로부터 지기에의 단말지정 데이터와 판매데이터의 송신을 명령하는 지령코우드 데이터가 입력하면, 이들 검출데이터를 메인마이크로 컴퓨터(7)에 송신하지만 체크섬에 의한 확인데이터가 메인마이크로 컴퓨터(7)에서 송신되어오면 이 데이터의 기억을 클리어한다.The microcomputer 4 transmits the detection data to the main microcomputer 7 when the command code data instructing the transmission of the terminal designation data and the sales data from the main micro computer 7 to the branch is input. When the confirmation data is sent from the main microcomputer 7, the storage of this data is cleared.

또 메인마이크로 컴퓨터(7)로부터 단말지정 데이터와 함께 거스름돈 불출을 명령하는 지령코우드 데이터가 전송되면 마이크로 컴퓨터(4)는 이어서 메인마이크로 컴퓨터(7)로부터 전송되는 불출데이터에 입각해서 거스름돈 불출동작을 행한다.In addition, when command code data for commanding change payment is transmitted from the main micro computer 7 together with the terminal designation data, the micro computer 4 subsequently executes the change payment operation based on the payout data transmitted from the main micro computer 7. Do it.

본 예에서 메인마이크로 컴퓨터(7)로 거스름돈으로 불출하는 화폐종류를 결정하고 있기 때문에 불출데이터는 4바이트로 구성해서 10원, 50원, 100원, 500원의 각 불출매수를 각각 8비트로 표시하고 있다.In this example, the main microcomputer 7 decides the type of money to be paid in change, so the disbursement data is composed of 4 bytes, and each disbursement number of 10, 50, 100 and 500 won is displayed in 8 bits. have.

따라서 마이크로 컴퓨터(4)는 전송된 불출데이터에 의해서 포오트 P2의 불출화폐 종류에 대응하는 단자 0-3으로부터 H신호를 출력하고 어떤 것인가의 모우터(17)(18)(19)(20)를 구동시켜서 거스름돈 불출동작을 행하지만 불출화폐 종류가 복수이면 상위화폐를 우선시킨다.Therefore, the microcomputer 4 outputs an H signal from the terminal 0-3 corresponding to the type of the currency of the port P 2 based on the transmitted payment data, and the motors 17, 18, 19, and 20 of which are the same. ), But the change is made, but if there are more than one type of currency, the higher currency is given priority.

그리고 마이크로 컴퓨터(4)는 제4도에 표시하는 바와같이 캠(91)의 회동에 의해서 거스름돈 불출모우터의 구동에 연동해서 온. 오프하는 마이크로 스위치(92)로부터의 입력신호를 포오트 P1의 입력단자 5에 의해서 검출한다.As shown in FIG. 4, the microcomputer 4 comes in conjunction with the drive of the change dispensing motor by the rotation of the cam 91. As shown in FIG. The input signal from the micro switch 92 to be turned off is detected by the input terminal 5 of the port P 1 .

본 예에서 마이크로 스위치(92)는 대기상태에서 H를 발생하고 있고 거스름돈 불출모우터의 구동개시에 의해서 L로 변하지만 일매분의 화폐를 불출하는데 필요한 만큼 거스름돈 불출모우터가 회전하면 다시 H를 출력하도록 되어있다.In this example, the micro switch 92 generates H in the standby state and changes to L by starting the change dispensing motor, but outputs H again when the change dispensing motor rotates as much as necessary to dispense one minute of money. It is supposed to.

한편 메인마이크로 컴퓨터(7)는 불출데이터의 송신후 서브마이크로 컴퓨터(4)에 화폐불출 데이터의 송신을 명령하는 지령코두드데이터를 송신한다.On the other hand, the main microcomputer 7 transmits command code data instructing the submicrocomputer 4 to transmit the money dispensing data after the dispensing data is transmitted.

이 화폐불출 데이터는 화폐한개의 불출이 끝난것을 표시하는 데이터이지만 본 예에서 서브마이크로 컴퓨터(4)는 이 지령코우드 데이터가 전송되어오면 그때의 마이크로스위치(92)의 출력데이터를 메인마이크로 컴퓨터(7)에 송신하도록 되어있다.This money dispensing data is data indicating that a single disbursement has been completed, but in this example, the submicro computer 4 outputs the output data of the micro switch 92 at this time when this command code data is transmitted. 7).

따라서 메인마이크로 컴퓨터(7)는 수신데이터가 마이크로 스위치 출력의 L를 표시하고 있으면 거스름돈 불출중임을 확인하고 재차 전기지령코우드 데이터를 송신한다.Therefore, if the received data indicates L of the microswitch output, the main microcomputer 7 confirms that the change is being dispensed, and transmits the electric command code data again.

그리고 마이크로 스위치출력이 L에서 H로 변하면 서브마이크로 컴퓨터(4)는 화폐 한개의 불출이 끝났다고 해두고 포오트 P2로부터의 H신호의 출력을 정지한다.When the microswitch output changes from L to H, the submicrocomputer 4 stops outputting the H signal from the port P 2 assuming that one coin has been dispensed.

그리고 이 상태에서 메인마이크로 컴퓨터(7)가 전기 지령코우드 데이터를 출력하고, 그것에 의해서 서브마이크로 컴퓨터(4)로부터 마이크로 스위치 출력의 H를 표시하는 데이터가 송신되어 오면 당해 데이터를 화폐불출 데이터로 삼고 화폐 한개가 불출된 것을 검출한다. 또 마이크로 컴퓨터(4)는 이와같은 거스름돈 불출제어를 행하면서 포오트 P1에의 투입화폐 신호의 입력도 검출한다.In this state, the main microcomputer 7 outputs the electric command code data. When the data indicating H of the microswitch output is transmitted from the submicrocomputer 4, the data is regarded as currency data. Detect that one currency has been issued. The microcomputer 4 also detects the input of the input money signal to the port P 1 while performing such a change dispensation control.

또한 접객제어부(2)의 마이크로 컴퓨터(5)는 메인마이크로 컴퓨터(7)로부터 전송된 네자리숫자의 투입금액표시에 관한 각 자리숫자의 7비트 세그먼트 데이터를 표시하는 4바이트의 금액표시 데이터와 A에서 H까지의 8종류의 상품이 각각 각비트마다에서 표시하는 1바이트의 판매가 상품데이터와 마찬가지로 8종류의 상품이 각각 매진인가를 각 비트마다에서 표시하는 1바이트의 매진상품 데이터와를 내부의 기억장치에 스토아하고 있고, 마이크로 컴퓨터(5)는 이것들 데이터를 1바이트식 평행으로 순차적으로 포오트 P0에서 출력함과 동시에 출력데이터와 대응하는 표시기에 포오트 P1으로 부터 H를 순차적으로 출력해서 펄스 점등시킨다.In addition, the microcomputer 5 of the hospitality control unit 2 has 4 bytes of amount display data and A for displaying 7-bit segment data of each digit in relation to the input amount display of the four digits transmitted from the main microcomputer 7. 1 byte of sold goods data displayed by each bit for each item from H to H as well as the commodity data. The microcomputer 5 stores these data sequentially in port P 0 in parallel with one byte, and simultaneously outputs H from ports P 1 to an indicator corresponding to the output data. Turn on the pulse.

한편 마이크로 컴퓨터(5)는 포오트 P1의 각단자 0-5로부터 순차적으로 H를 출력하는 전후에 포오트 P0의 각단자 0-7에 순차적으로 H를 출력하고, 이것에 응답해서 포오트 P2에 H가 입력하는가를 판정해서 선택스위치(10A)-(10H)가 손님에 의해서 동작됐는가를 검출한다.On the other hand, the microcomputer 5 sequentially outputs H to each terminal 0-7 of the port P 0 before and after sequentially outputting H from each terminal 0-5 of the port P 1 , and responds to the port in response thereto. It is determined whether H is input to P 2 to detect whether the selector switches 10A- 10H have been operated by the customer.

예를들면 투입금액의 네번째 자리숫자를 표시할때에 마이크로 컴퓨터(5)는 포오트 P1의 단자 0를 H로 만들어서 포오트 P0로부터 세그먼트 데이터를 출력하지만 그전에 포오트 P0의 단자 0에서 H를 출력해서 상품A에 대응하는 선택스위치(10A)에 동작신호를 부여한다.For example, when displaying the fourth digit of the input amount, the microcomputer 5 outputs segment data from the port P 0 by making the terminal 0 of the port P 1 H, but before the terminal 0 of the port P 0 The output signal H is applied to the selection switch 10A corresponding to the product A to provide an operation signal.

따라서 이 상태로 선택스위치(10A)가 눌려있으면 포오트 P2에는 H가 입력하고 마이크로 컴퓨터(5)는 선택스위치(10B)-(10H)는 동작신호가 부여되지 않기 때문에 늘려도 포오트 P2는 H로 되지 않는다.Therefore, if this condition is selected, the switch (10A) is pressed into port Haute P 2 is H is input, the microcomputer 5 has the selection switch (10B) - Increasing because (10H) is not an operation signal is granted port Haute P 2 is It does not become H.

그리고 마이크로 컴퓨터(5)는 포오트 P1의 단자 0를 H로 만든후에 그다음 포오트 P1의 단자 1을 H로 만들어서 포오트 P0로부터 셋째 자리숫자의 세그멘트 데이터를 출력하는 동안에 포오트 P0의 단자1에 H를 출력하고 선택스위치(10B)에 동작신호를 부여해서 그동작을 검출한다.And the microcomputer (5) is included on oats after the terminal 0 of the P 1 made by H then Four oats by creating a terminal 1 of the P 1 with H PO Haute Four Haute P 0 while outputting a segment of data of the third digit number from P 0 H is outputted to terminal 1, and an operation signal is applied to the selection switch 10B to detect the operation.

이와같이 마이크로 컴퓨터(5)는 포오트 P1의 각 단자0-5로부터 순차적으로 H를 출력하는 새틈에 포오트 P1의 단자 0-7로부터 H를 출력해서 선택스위치(10A)-(10H)의 동작을 주사하고 비트마다의 각 선택스위치의 동작상황을 표시하는 1바이트의 선택 상품 데이터를 스토아하고 메인마이크로 컴퓨터(7)로부터 단말지정데이터와 함께 선택상품 데이터의 송신을 명령하는 지령코우드 데이터가 입력되면 선택상품 데이터를 메인마이크로 컴퓨터(7)에 송신한다. 그리고 판매제어부(3)의 마이크로 컴퓨터(6)은 통상적으로 포오트 P3에 H를 출력해서 포오트 P0의 단자 0~7에의 입력 신호상태에 의해서 매진 상품 데이터를 검출한다.In this way the micro computer 5 is included on oats P 1 selection switch (10A) and output the H from the terminal 0-7 in the port P 1 to Haute saeteum outputting a H sequentially from each of the terminals 0-5 - of (10H) The command code data which scans the operation and stores the 1-byte selection product data indicating the operation status of each selection switch for each bit, and instructs transmission of the selection product data together with the terminal specification data from the main microcomputer 7, Upon input, the selected product data is transmitted to the main microcomputer 7. And a microcomputer (6) of the sales control unit (3) is typically included to the output H to the Upper P 3 detects the products sold by the data PO Haute P 0 state signal to the input terminal 0-7 of the.

상품마다의 각 상품 소진스위치는 통상 포오트 P3로부터 H가 도입되면 H를 포오트 P0에 반송하지만 상품소진으로 변환하면 H를 반송할 수 없게 된다.Each commodity exhaust switch for each commodity normally returns H to port P 0 when H is introduced from port P 3 , but cannot convert H to commodity exhaust.

따라서 8비트의 매진상품 데이터로 L가 상품소진을 표시하고 있고, 메인마이크로 컴퓨터(7)로부터 단말지정 데이터와 함께 매진상품 데이터의 반송을 명령하는 지령코우드 데이터가 입력되면 이 매진상품 데이터를 메인마이크로 컴퓨터(7)에 송신한다.Therefore, when L indicates commodity exhaustion with 8-bit sold-out product data, and the command code data for instructing the return of sold-out product data together with the terminal designation data from the main microcomputer 7 is inputted, the sold-out product data is displayed. It transmits to the microcomputer 7.

또한 메인마이크로 컴퓨터(7)로부터 단말지정 데이터 및 상품송출을 명령하는 지령코우드 데이터가 전송되면, 마이크로 컴퓨터(6)는 이어서 메인마이크로 컴퓨터(7)로부터 송신되는 판매상품 데이터에 입각해서 상품 송출동작을 행한다.Further, when the terminal designation data and the command code data for commanding the product delivery are transmitted from the main microcomputer 7, the microcomputer 6 subsequently executes the product delivery operation based on the sales product data transmitted from the main microcomputer 7. Is done.

즉 마이크로 컴퓨터(6)는 포오트 P1에 H를 출력하고 포오트 P0의 선택상품에 대응하는 단자 0~7로부터 H를 출력해서 상품 불출모우터를 구동시키고 제5도에 표시하는 바와같이 캠(93)의 회동에 의해서 상품 불출모우터에 연동해서 온. 오프하는 마이크로스위치(94)로부터의 입력신호를 포오트 P2에서 검출한다.That is, the microcomputer 6 outputs H to the port P 1 and outputs H from the terminals 0 to 7 corresponding to the selected product of the port P 0 to drive the product dispensing motor, as shown in FIG. It comes in conjunction with a product dispensing motor by the rotation of the cam 93. The input signal from the microswitch 94 to be turned off is detected at the port P 2 .

이 마이크로스위치(94)도 전술한 거스름돈 불출모우터의 경우와 마찬가지로 상품 불출모우터가 상품 한개분을 송출하는데 필요한 회동을 행하면 회동개시에서 H로부터 L로 변한 출력을 재차 H로 만드는 것이다.Similar to the case of the change dispensing motor described above, the micro switch 94 also makes the output changed from H to L at the start of rotation again when the commodity dispensing motor performs the rotation necessary for discharging one commodity.

따라서 마이크로 컴퓨터(6)는 마이크로스위치 출력의 L로 부터 H에의 변환으로 상품판매가 끝났다 하더라도 포오트 P1의 출력을 L로 해서 상품 불출모우터를 정지시킨다.Therefore, the microcomputer 6 stops the product dispensing motor by setting the output of the port P 1 to L even if the merchandise sale is completed by converting the microswitch output from L to H.

한편 메인마이크로 컴퓨터(7)은 판매상품 데이터의 송신후 서브마이크로 컴퓨터(6)에 판매 완료 데이터의 송신을 명령하는 지령코우드 데이터를 송신한다.On the other hand, the main microcomputer 7 transmits the command code data which instructs the submicrocomputer 6 to transmit the sales completion data after the sales product data is transmitted.

이 판매완료 데이터는 판매의 완료를 표시하는 데이터이지만, 본 예에서 서브마이크로 컴퓨터(6)는 이 지령코우드 데이터가 전송되어오면 그때의 마이크로스위치(94)의 출력데이터를 메인마이크로 컴퓨터(7)에 송신하도록 되어있다.This sales completion data is data indicating the completion of sales, but in this example, the submicrocomputer 6 outputs the output data of the microswitch 94 at this time when the command code data is transmitted. Is to be sent to.

따라서 메인마이크로 컴퓨터(7)는 전기 지령코우드 데이터를 송신한것으로 인한 마이크로 컴퓨터(6)로부터의 수신데이터가 마이크로스위 출력의L를 표시하고 있으면 상품송출동작중인 것을 확인하고 재차 전기 지정코우드 데이터를 송신한다.Therefore, if the received data from the microcomputer 6 resulting from the transmission of the electric command code data indicates L of the microswitch output, the main microcomputer 7 confirms that the commodity delivery operation is in progress, and reconstructs the electric designated code data again. Send.

그리고 마이크로스위치 출력이 L에서 H로 변환했을 때에 메인마이크로 컴퓨터(7)로부터 전기 지령코우드 데이터가 전송되면 마이크로 컴퓨터(6)는 마이크로스위치 출력의 H를 표시하는 데이터를 메인마이크로 컴퓨터(7)에 송신한다.When the electric command code data is transmitted from the main microcomputer 7 when the microswitch output is converted from L to H, the microcomputer 6 sends data indicating the H of the microswitch output to the main microcomputer 7. Send.

그리고 메인마이크로 컴퓨터(7)는 이 데이터를 판매완료 코우드로 하고 판매의 완료를 검출한다.The main microcomputer 7 uses this data as the sale completion code and detects the completion of the sale.

제13도는 자동 판매기의 중추제어를 실시하는 메인마이크로 컴퓨터(7)의 동작 플로우차아트를 표시하고 있다.FIG. 13 shows the operation flowchart art of the main microcomputer 7 which performs the central control of the vending machine.

메인마이크로 컴퓨터(7)는 전원투입후에 소정의 초기설정을 완료하면 마이크로컴퓨터(4)에 단말지정 데이터 및 데이터의 송신을 명령하는 지령코우드 데이터로서 형성되는 제어데이터 C1를 송신하고 이것에 대응해서 마이크로 컴퓨터(4)로부터 송신되어오는 데이터를 샘플링해서 읽는다.The main microcomputer 7 transmits the control data C 1 formed as command code data instructing the microcomputer 4 to transmit the terminal designation data and the data upon completion of the predetermined initial setting after the power supply is turned on. The data transmitted from the microcomputer 4 is sampled and read.

송신데이터는 화폐종마다의 투입매수데이터, 거스름돈 소진데이터와 반환데이터로서 구성되고, 메인마이크로 컴퓨터(7)는 화폐종마다의 투입매수 데이터와 거스름돈 소진데이터를 세트함과 동시에 투입매수 데이터에 입각해서 투입금액을 연산해서 세트한다.The transmission data is composed of input purchase data, change change data and return data for each currency species, and the main microcomputer 7 sets the input purchase data and change exhaustion data for each currency type and at the same time based on the input purchase data. The input amount is calculated and set.

그리고 반환데이터에 의해서 고객이 반환스위치(14)를 동작시켰는지를 검출하고 동작되어 있으면 화폐불출의 서브루우틴 P0에 이행한다.The return data detects whether the customer has operated the return switch 14, and if so, transfers to the subroutine P 0 of currency dispensing.

그러나 반환스위치(14)가 동작되어 있지 않는 경우에는 마이크로 컴퓨터(5)에 단말지정 데이터 및 표시데이터의 수신과 선택상품 데이터의 송신을 표시하는 지령코우드 데이터로서 구성되는 제어데이터 O1을 송신한 후에 나아가서 투입금액 표시데이터 판매가 상품데이터, 매진 상품데이터를 순차적으로 송신하고, 다음에 마이크로 컴퓨터(5)로부터 송신되는 선택상품 데이터를 샘플링한다.However, when the return switch 14 is not operated, the control data O 1 constituted as command code data indicating reception of the terminal specification data and the display data and transmission of the selected product data is sent to the microcomputer 5. Subsequently, the input value display data sales sequentially transmit the product data and the sold out product data, and then sample the selected product data transmitted from the microcomputer 5.

이 1바이트의 선택상품 데이터의 어느 것인가의 비트가 H이면 상품선택스위치가 동작된 것으로해서 상품판매의 서브루우틴 VD로 이행한다.If the bit of any of the 1-byte selection product data is H, the product selection switch is activated, and the process proceeds to the subroutine VD of product sales.

그러나 상품선택 스위치가 동작되어 있지않으면 메인마이크로 컴퓨터(7)는 마이크로 컴퓨터(6)에 단말지정 데이터 및 매진상품 데이터의 송신을 명령하는 지령코우드 데이터로서 형성되는 제어데이터 A1을 송신하고 마이크로 컴퓨터(6)로부터 송신되는 매진상품 데이터를 샘플링한다.However, if the product selection switch is not operated, the main microcomputer 7 transmits the control data A 1 formed as command code data instructing the microcomputer 6 to transmit the terminal designation data and the sold out product data. Sample sold-out goods data transmitted from (6).

그리고 메인마이크로 컴퓨터(7)는 투입금액(또는 판매후의 잔액)과 미리 내부 기억장치에 스토아하고 있는 각 상품의 판매가격과 거스름돈 소진데이터와 매진상품 데이터에 입각한 판매가능 상품을 결정한다.The main microcomputer 7 then determines the marketable product based on the input amount (or after-sales balance) and the selling price of each product previously stored in the internal storage device, change data and sold-out product data.

다음에는 메인마이크로 컴퓨터(7)는 자동반금의 여부를 체크해서 자동반금이 필요한 경우에 서브루우틴 P0에 이행한다.Next, the main microcomputer 7 checks whether or not automatic return is made, and transfers to the subroutine P 0 when automatic return is necessary.

자동반금은 판매후의 잔액으로 판매가능한 상품이 없는 경우의 거스름돈 불출과 투입금액이 최대투입금액을 초과하는 경우의 초과금액의 반환의 두가지가 있다.There are two types of automatic refunds: withdrawal of change when there is no commodity available for sale after the sale, and return of excess when the input exceeds the maximum input.

반금이 불필요한 경우는 MO에 복귀하고 따라서 메인마이크로 컴퓨터(7)는 화폐불출시 또는 상품판매시 이외의 대기상태에서는 이와같은 메인플로우를 반복해서 실행하고 투입금액연산, 판매가능상품의 판정, 접객제어부로의 표시데이터 송신 및 선택상품 데이터의 수신을 행한다.If no refund is required, the main microcomputer 7 repeatedly executes such a main flow in a standby state other than when dispensing money or selling goods, and calculates the amount of input, determines the merchandise available, and the customer control unit. The display data transmission to the furnace and the reception of the selected product data are performed.

제14도는 화폐불출의 서브루우틴 P0로, 메인마이크로 컴퓨터(7)는 반환해야할 투입금액 또는 거스름돈 액수 혹은 최대투입액의 초과액의 불출화폐 종류를 결정해서 불출데이터를 세트하고, 마이크로 컴퓨터(4)에 단말지정 데이터 및 화폐불출을 명령하는 지령코우드 데이터로서 형성되는 제어데이터C2를 송신후에 걸리는 불출데이터를 송신한다.14 is a subroutine P 0 of monetary disbursement. The main microcomputer 7 sets the disbursing data by determining the type of disbursing money of the input amount to be returned or the change amount or the excess amount of the maximum input amount, and the microcomputer 4 The control data C 2 formed as the terminal designation data and the command code data for instructing the payment of money is transmitted to the payout data required after transmission.

더욱 메인마이크로 컴퓨터(7)는 마이크로 컴퓨터(4)에 단말 지정데이터 및 마이크로스위치(92)의 출력데이터의 송신을 명령하는 지령코우드 데이터로서 형성되는 제어데이터C3를 반복해서 송신하고, 마이크로컴퓨터(4)로 부터 마이크로스위치 출력의 H를 표시하는 화폐불출데이터 PSWD1이 송신되는 것을 대기한다.More main microcomputer (7) is sent repeatedly to the control data C 3 is formed as a command Code data for instructing transmission of the output data of the terminal specified data and the micro-switch 92 to the microcomputer 4, the microcomputer Wait (4) to transmit the coin disbursement data PSWD 1 indicating the H of the microswitch output.

그리고 화폐불출데이터 PSWD1의 수신에 의해서 메인마이크로 컴퓨터(7)는 불출데이터로부터 불출한 화폐종류를 감산한다.Upon receipt of the currency disbursement data PSWD 1, the main microcomputer 7 subtracts the type of currency disbursed from the dispensation data.

또한 불출화폐종류가 복수일 경우에는 메인마이크로 컴퓨터(7) 및 마이크로컴퓨터(4)는 함께 상위화폐 우선으로 불출하도록 프로그램 되어있고, 메인마이크로 컴퓨터(7)는 화폐불출 데이터 PSWD1이 입력될때마다 상위 화폐 우선으로 불출데이터에서 1을 감산한다.In addition, when there are a plurality of dispensing currency types, the main microcomputer 7 and the microcomputer 4 are programmed to withdraw the higher currency first, and the main microcomputer 7 has a higher number whenever the coin dispensing data PSWD 1 is input. First of all, subtract 1 from the disbursement data.

그리고 메인마이크로 컴퓨터(7)는 감산후의 불출데이터에 입각해서 잔액을 연산해서 세트하고 이어서 마이크로 컴퓨터(5)에 단말지정데이터 및 잔액표시 데이터를 송신하는 취지의 지령코우드 데이터로서 형성되는 제어데이터 D2를 송신한후에 잔액표시 데이터를 송신한다.Then, the main microcomputer 7 calculates and sets the balance based on the disbursed data after subtraction, and then controls data D which is formed as command code data for transmitting the terminal designation data and the balance display data to the microcomputer 5. After 2 is sent, balance display data is sent.

그리고 메인마이크로 컴퓨터(7)는 잔액이 0으로 됐는가를 판정하고 0이아닌 경우에는 제어데이터 C3의 송신로우드에 복귀해서 이와같은 제어를 반복하고 장액이 0으로 되면 서브루우틴 P0를 비출시켜서 메인플로우의 MO에 복귀한다.Then, the main microcomputer 7 determines whether the balance has reached zero, and if it is not zero, returns to the transmission log of the control data C 3 and repeats such control. When the serous value reaches zero, the subroutine P 0 is irradiated. To return to the main flow MO.

또한 제15도는 상품판매의 서브루우틴 VD로 메인마이크로 컴퓨터(7)는 선택상품 데이터와를 비교해서 선택상품이 구입가능인가를 판정하고 구입불가능한 경우에는 메인플로우의에 복귀한다.In addition, Fig. 15 shows the subroutine VD of merchandise sales, and the main microcomputer 7 compares the selection product data to determine whether the selection product is available for purchase, and returns to the main flow if it cannot be purchased.

그러나 가능한 경우에는 마이크로 컴퓨터(6)에 단말지정 데이터 및 상품판매를 명령하는 지령코우드 데이터로서 형성되는 제어데이터 A2를 송신한후에 이어서 판매상품데이터를 송신한다.However, if possible, the control data A 2 formed as the terminal designation data and command code data for instructing the merchandise sales is sent to the microcomputer 6, followed by the sales merchandise data.

그리고 계속해서 메인마이크로 컴퓨터(7)는 마이크로 컴퓨터(6)에 단말지정 데이터 및 마이크로스위치(94)의 출력데이터의 송신을 명령하는 지령코우드 데이터로서 형성되는 제어데이터 A3를 전송하고 마이크로 컴퓨터(6)로부터 마이크로스위치 출력의 H를 표시하는 판매완료 데이터 PSWD2가 송신되는 것을 대기한다.Subsequently, the main microcomputer 7 transmits the control data A 3 formed as command code data for instructing the microcomputer 6 to transmit the terminal designation data and the output data of the microswitch 94, and the microcomputer ( 6) Wait for the completion of sales data PSWD 2 indicating H of the microswitch output to be transmitted.

그리고 선택상품이 판매되어서 판매완료 데이터 PSWD2가 송신되면 메인마이크로 컴퓨터(7)는 투입금액(혹은 판매후의 잔액)에서 판매상품액을 감산해서 잔액을 세트한다.When the selected product is sold and the sales completion data PSWD 2 is transmitted, the main microcomputer 7 sets the balance by subtracting the amount of the sold product from the input amount (or the balance after sale).

그후에 메인마이크로 컴퓨터(7)는 마이크로 컴퓨터(5)에 단말지정 데이터 및 판매후의 잔액표시 데이터를 송신하는 취지의 지령코우드 데이터로서 형성되는 제어데이터 D3을 송신한후에 잔액표시 데이터를 송신해서 메인플루로우의 MO에 복귀한다.Thereafter the main microcomputer (7) is to transmit the balance of the display data hanhue transmitting the control data D 3 to be formed as a command Code data to the effect that transmission to the terminal specifying data and the balance display data after the sales to the microcomputer 5, the main flu Return to the low MO.

따라서 마이크로 컴퓨터(5)는 상품판매후의 잔액의 표시제어를 실시하는 것이다.Therefore, the microcomputer 5 performs display control of the balance after the sale of the product.

또한 서브마이크로 컴퓨터(5)는 입력포오트 P3에 접객 동작테스트 스위치(43), 서브마이크로 컴퓨터(4)는 입력포오트 P3에 화폐 처리테스트스위치(44), 서브마이크로 컴퓨터(6)는 입력포오트 P4에 판매테스트스위치(42)를 각각 접속하고 있으며, 각 서브마이크로 컴퓨터(4)(5)(6)는 대응하는 테스트스위치(44)(43)(42)의 조작에 의해서 메인마이크로 컴퓨터(7)의 제어를 이탈해서 미리 프로그램되어 있는 독자적인 테스트시이겐스를 실행한다.In addition, the submicrocomputer 5 includes a hospitality test switch 43 at the input port P 3 , and the submicrocomputer 4 is a currency processing test switch 44 at the input port P 3 . Each of the test switches 42 is connected to the input port P 4 , and each of the submicrocomputers 4, 5, 6 is operated by the corresponding test switches 44, 43, 42. The control of the microcomputer 7 is released and the original test sequence preprogrammed is executed.

먼저, 코인메카니즘 제어부(1)의 테스트스위치(44)가 동작되면 서브마이크로 컴퓨터(4)는 메인마이크로 컴퓨터(4)는 메인마이크로 컴퓨터(7)로 부터 그 처리에 상응해서 어느 것인가의 제어데이터 C1, C2, C3가 전송되면 이에 응답해서 테스트시이겐스를 표시하는 코우드를 메인마이크로 컴퓨터(7)에 전송한다.First, when the test switch 44 of the coin mechanism control unit 1 is operated, the control data C of the submicro computer 4 corresponds to the processing from the main micro computer 4 to the main micro computer 7. When 1 , C 2 and C 3 are transmitted, in response to this, the code indicating the test scenario is transmitted to the main microcomputer 7.

전송후에 마이크로 컴퓨터(4)는 통상적인 처리를 정지해서 셀프체크의 프로그램을 실행하고, 또한 메인마이크로 컴퓨터(7)는 마이크로 컴퓨터(4)가 테스트 시이겐스에 들어간 것을 검출한다.After the transfer, the microcomputer 4 stops normal processing to execute the self-check program, and the main microcomputer 7 detects that the microcomputer 4 has entered the test sigence.

테스트시이겐스에서 코인메카니즘 제어부(1)는 테스트하는 사람이 화폐를 투입하면 그 화페종류에 대응하는 거스름돈 불출모우터(17)(18)(19)(20)를 구동시키고 화폐 한개를 불출해서 정지하는 것이다.In the test sig- ence, the coin mechanism control unit 1 drives the change-out motors 17, 18, 19, and 20 corresponding to the currency type when the tester puts money into a coin, and stops by dispensing one coin. It is.

이것에 의해서 화폐검지부, 거스름돈 불출모우터(17)(18)(19)(20)펄스스위치 및 신호하아네스의 이상을 테스트하는 사람은 확인할 수가 있다.As a result, the person who tests the abnormality of the currency detection unit, the change dispensing motor 17, 18, 19, 20 pulse switch and the signal harness can be confirmed.

그리고 테스트하는 사람이 테스트완료로 테스트스위치(44)를 복귀시키면 통상동작으로 복귀하고, 이상태에서 메인마이크로 컴퓨터(7)가 그 처리에 대응해서 어느 것인가의 제어데이터 C1, C2, C3을 전송하면 마이크로 컴퓨터(4)는 통상적인 응당동작을 행하기 때문에 메인마이크로 컴퓨터(7)는 테스트시이겐스의 종료를 검출한다.When the tester returns the test switch 44 to the completion of the test, the tester returns to the normal operation. In this state, the main microcomputer 7 responds to the processing to control data C 1 , C 2 , and C 3 . When transmitted, the microcomputer 4 performs the normal response operation, so the main microcomputer 7 detects the end of the test sigence.

제16도는 마이크로 컴퓨터(4)가 코인메카니즘 제어부(1)에 관한 상기의 셀프체크의 처리를 행하는 경우의 동작을 설명하는 기능블록도이다.FIG. 16 is a functional block diagram illustrating an operation when the microcomputer 4 performs the above self-check processing on the coin mechanism control unit 1.

당해도에 있어서 플립플롭회로(45)(46)(47)(48)이 세트단지 S는 각각 10원, 50원, 100원, 500원의 각 화폐검지부(12)에 접속되고 리세트단자 R에는 거스름돈 불출모우터(17)(18)(19)(20)에 연동하는 각 펄스스위치로부터의 공통 입력단자(15)로부터의 입력신호와 플립플롭회로(45)(46)(47)(48)의 Q출력은=입력으로하는 AND게이트(49)(50)(51)(52)가 접속되어 있다.In the figure, the flip-flop circuits 45, 46, 47, and 48 are connected to each of the currency detectors 12, 10, 50, 100, and 500 won, respectively. Input signals from the common input terminal 15 and flip-flop circuits 45, 46, 47, and 48 from each pulse switch interlocked with the change discharge motors 17, 18, 19, and 20. The Q output of the AND gates 49, 50, 51 and 52 which are inputs is connected.

그리고 테스트스위치(44)를 동작하고 예를들면 테스트하는 사람에 의해서 10원이 투입되면 플립플롭회로(45)가 세트해서 거스름돈 불출모우터(17)가 구동하고 대응하는 펄스스위치의 출력이 H에서 L로 변환하고, 화폐한개의 불출로서 다시 H를 출력하는 AND게이트(49)에 출력이 얻어지고 플립플롭회로(45)는 리세트해서 거스름돈 불출모우터(17)가 정지한다.Then, when the test switch 44 is operated, for example, 10 won is input by the tester, the flip-flop circuit 45 is set and the change discharge motor 17 is driven, and the output of the corresponding pulse switch is at H. The output is obtained by the AND gate 49 which converts to L and outputs H as a single coin discharging, and the flip-flop circuit 45 resets and the change dispensing motor 17 stops.

마찬가지로 50원, 100원, 500원이 투입된 경우에도 대응하는 거스름돈 불출모우터(18)(19)(20)가 구동해서 같은종류의 화폐가 불출된다.Similarly, even when 50, 100, and 500 won are put in, the corresponding change dispensing motors 18, 19 and 20 are driven to pay the same kind of money.

그리고 테스트스위치를 복귀시키는 것으로서 화폐처리에 관한 테스트시이겐스가 종료한다.Then, the test sequence related to the currency processing ends by returning the test switch.

그리고 접객제어부(2)의 자동복귀형의 테스트스위치(40)가 동작되면 마이크로 컴퓨터(5)는 메인마이크로 컴퓨터(7)로부터 그 처리에 상응해서 어느것인가의 제어데이터 D1, D2, D3가 전송되면 이것에 응답해서 테스트 시이겐스를 표시하는 코우드를 메인마이크로 컴퓨터(7)에 전송한다.Then, when the automatic return type test switch 40 of the reception controller 2 is operated, the microcomputer 5 receives any of the control data D 1 , D 2 , and D 3 from the main micro computer 7 according to the processing. When is transmitted, in response to this, the code indicating the test sig- nal is transmitted to the main microcomputer 7.

그리고 마이크로 컴퓨터(5)는 통상의 처리를 정지해서 접객제어부(2)의 셀프체크의 프로그램을 실행하고 메인마이크로 컴퓨터(7)는 마이크로 컴퓨터(5)가 테스트시이겐스에 들어간 것을 검출한다.Then, the microcomputer 5 stops normal processing to execute the self-checking program of the hospitality control unit 2, and the main microcomputer 7 detects that the microcomputer 5 has entered the test sigence.

테스트시이겐스로 접객제어부(2)는 판매가 상품표시기(8)와 매진상품 표시기(9)에 관해서는 상품종류에 대응하는 한쌍의 판매가 상품표시 LED와 매진상품표시 LED를 상품종류마다 순차적으로 동시 점등시킨 후에 투입금액표시기(7)의 각 자리숫자에 소정의 테스트 패터언을 표시하는 것이다.In the test scenario, the hospitality control unit 2 simultaneously lights up a pair of sale price display LEDs and a sold product display LED corresponding to the product type with respect to the product price display device 8 and the sold out product display device 9 for each product type. After that, a predetermined test pattern is displayed on each digit of the input amount indicator 7.

이에 의해서 테스트하는 사람은 각표시기 및 신호하아네스의 이상을 확인할수 있다.This allows the tester to check the abnormality of each indicator and signal harness.

그리고 표시 종료후에 메인마이크로 컴퓨터(7)가 그 처리에 상응해서 어느 것인가의 제어데이터, D1, D2, D3을 전송하면 마이크로 컴퓨터(5)는 통상의 응답동작을 행하기 때문에 메인마이크로 컴퓨터(7)는 테스트시이겐스의 종료를 검출한다.After the display is finished, if the main microcomputer 7 transmits any of the control data D 1 , D 2 , and D 3 corresponding to the processing, the micro computer 5 performs the normal response operation. (7) detects the end of the test sequence.

제17도는 마이크로 컴퓨터(5)가 접객제어부(2)에 관한 상기 셀프체크의 처리를 행하는 경우의 동작을 설명하는 기능블록도이다.FIG. 17 is a functional block diagram for explaining the operation in the case where the microcomputer 5 performs the self-check processing on the hospitality control unit 2. FIG.

당해도에 있어서 플립플롭회로(58)는 테스트스위치(43)의 동작으로 세트하고 8비트의 시프트레지스터(63)가 각 출력단자는 판매가 상품표시기(8)와 매진상품표시기(9)에 있어서의 상품종류마다의 한쌍의 판매가 상품표시 LED 및 매진상품표시 LED에 접속되고 나아가서는 투입금액표시기(7)의 세그멘트신호 입력단자에도 접속되어 있다.In this figure, the flip-flop circuit 58 is set by the operation of the test switch 43, and the 8-bit shift register 63 has each output terminal for the product type in the selling price product indicator 8 and the sold out product indicator 9. Each pair of sales is connected to the product display LED and the sold out product display LED, and further connected to the segment signal input terminal of the input amount indicator 7.

그리고 시프트레지스터(63)의 데이터 입력단자 DS에는 오프디레이회로(60)가 접속되고 쿨록입력단자 CL에는 쿨록펄스 발생회로(61)이 접속되어 있다.The off delay circuit 60 is connected to the data input terminal DS of the shift register 63, and the cool lock pulse generation circuit 61 is connected to the cool lock input terminal CL.

나아가서는 쿨록펄스발생회로(61)은 카운터(62)에도 접속되어 있고 테스트 제어장치(64)는 카운터(62)의 계수내용에 상응해서 테스트패터언 신호발생장치(65) 및 디지트신호 발생장치(66)에는 제어신호를 출력하고 카운터(62) 및 플립플롭회로(58)에는 리세트 신호를 출력하도록 구성되어 있다.Further, the cool lock pulse generating circuit 61 is also connected to the counter 62, and the test control device 64 corresponds to the counting content of the counter 62, so that the test pattern signal generator 65 and the digit signal generator ( The control signal is output to 66 and the reset signal is output to the counter 62 and flip-flop circuit 58.

또한 테스트패터언 신호발생장치(65)는 시프트레지스터(63)의 각 출력단자와 각 표시기를 연결하는 7선의 신호선에 접속되어서 테스트때에 투입금액표시기(7)로 표시하는 패터언의 세그멘트신호를 출력하도록 구성되어 있다.In addition, the test pattern signal generator 65 is connected to seven signal lines connecting the respective output terminals of the shift register 63 and the indicators to display the segment signal of the pattern which is displayed by the input amount indicator 7 during the test. It is configured to output.

그리고 디지트 신호 발생장치(66)는 드라이버(11)를 통해서 각 표시기에 접속되어 있다.The digit signal generator 66 is connected to each display device via the driver 11.

이와같은 구성에서 테스트스위치(43)의 동작으로 플립플롭회로(58)가 세트하면 AND게이트(59)에 출력이 얻어지고 오프디레이회로(60)는 시프트레지스터(63)의 데이터 입력단자 DS에 H를 출력한다.In this configuration, when the flip-flop circuit 58 is set by the operation of the test switch 43, an output is obtained at the AND gate 59, and the off delay circuit 60 is connected to the data input terminal DS of the shift register 63. Output H

또한 오프디레이회로(60)는 테스트스위치(43)의 자동복귀후도 일정시간동안 데이터 입력단다 DS에 H를 출력한다.In addition, the off-delay circuit 60 outputs H to the data input stage DS for a predetermined time even after the automatic return of the test switch 43.

한편 플립플롭회로(58)의 세트에 의해서 쿨록펄스 발생회로(61)이 동작해서 시프트레지스터(63)는 쿨록입력단자 CL에 시프트펄스가 도입되기 때문에 시프트해서 데이터 입력단자 DS의 H를 기억한다.On the other hand, the cool-pulse pulse generation circuit 61 is operated by the set of the flip-flop circuits 58, and the shift register 63 shifts and stores the H of the data input terminal DS because the shift pulse is introduced into the cool-lock input terminal CL.

또한 카운터(62)는 쿨록펄스를 계수하지만 테스트 제어장치(64)는 카운터(62)가 9를 계수하기까지는 디지트 신호발생장치(66)가 출력단자 1, 2에서 H를 출력하도록 제어신호를 출력한다.In addition, the counter 62 counts cooldown pulses, but the test control device 64 outputs a control signal such that the digit signal generator 66 outputs H at the output terminals 1 and 2 until the counter 62 counts nine. do.

따라서 판매가 상품표시기(8) 및 매진상품표시기(9)의 첫번째의 LED가 동시에 점등한다.Therefore, the first LED of the selling price merchandise indicator 8 and the sold out merchandise indicator 9 lights up at the same time.

그리고 그후에 쿨록펄스의 발생으로 시프트레지스터(63)가 시프트할때마다 두번째이후의 판매가 상품표시와 매진상품표시의 한조의가 순차적으로 점등한다.Thereafter, whenever the shift register 63 shifts due to the occurrence of a cool lock pulse, a set of sales after the second time and a set of sold out goods display are sequentially lit.

이렇게 해서 아홉개째의 쿨록펄스가 발생하면 시프트레지스터(63)는 기억이 일순하기 때문에 클리어하고 판매가 상품표시기(8) 및 매진상품표시기(9)의 점등이 끝난다.In this way, when the ninth kullock pulse is generated, the shift register 63 is cleared because the memory is in an instant, and the selling price of the product indicator 8 and the sold out product indicator 9 are finished.

그런데 테스트 제어장치(64)는 카운터(62)가 9를 계수하면 디지트 신호발생장치(66)에는 출력단자 3, 4, 5, 6으로 부터 H를 출력하도록 제어신호를 출력하고, 테스트패터언 신호발생장치(65)에는 테스트패터언의 세그멘트신호를 발생하도록 제어신호를 출력한다.When the counter 62 counts 9, the test control device 64 outputs a control signal to the digit signal generator 66 to output H from the output terminals 3, 4, 5, and 6, and the test pattern signal. The generator 65 outputs a control signal to generate a segment signal of the test pattern.

테스트패터언에서 가장 간단한 것은 모든 세그멘트를 점등시켜서 8을 표시시키는 것이다.The simplest thing in the testpattern is to turn on all segments to display 8.

이때에 테스트 패터언 신호발생장치(65)는 1~7의 모든 출력단자에를 출력하는 것으로서 각 자리숫자에 8이 표시된다.At this time, the test pattern signal generator 65 outputs all the output terminals 1 to 7 and 8 is displayed in each digit.

또한 테스트 패터언 신호발생장치(65)는 0에서 9까지를 순차적으로 표시시키도록 시분할에 의해서 각 숫자에 대응하는 세그먼트신호를 출력할 수도 있다.In addition, the test pattern signal generator 65 may output segment signals corresponding to the respective numbers by time division so as to sequentially display 0 to 9.

그리고 카운터(62)가 소정치를 계수하면 테스트 제어장치(64)는 리세트 신호를 플립플롭회로 및 카운터(62)에 출력해서 테스트시이겐스가 끝난다.When the counter 62 counts a predetermined value, the test control device 64 outputs the reset signal to the flip-flop circuit and the counter 62, and the test phase is completed.

또한 상기 테스트동작에서 대응하는 상품의 판매가 상품표시 LED와 매진상품표시 LED와는 상품종류마다 자동적으로 순서를 따라서 점등시키는 것이지만 상품선택스위치(10A)…(10H)의 조작에 응답해서 대응하는 판매가 상품표시LED 및 매진상품표시 LED를 점등시켜도 좋다.In addition, the selling of the corresponding product in the test operation automatically turns on the product display LED and the sold out product display LED according to the product type in order. In response to the operation (10H), the corresponding selling price product display LED and the sold out product display LED may be lit.

이것에 의해서 테스트하는 사람은 상품선택 스위치회로(10)를 포함해서 판매가 상품표시기(8) 및 매진상품표시기(9)와 그 주변의 신호 하아네스의 이상을 확인할 수 있다.In this way, the tester can check the abnormality of the selling price merchandise display device 8 and the sold out merchandise display device 9 and the surrounding signal harness including the merchandise selection switch circuit 10.

제18도는 서브마이크로 컴퓨터(5)가 테스트시이겐스에 있어서 조작된 상품선택스위치(10A)…(10H)에 대응하는 판매가 상품표시 LED 및 매진상품표시 LED를 점등시키는 동작을 설명하는 기능블록도이다. 테스트스위치(43)의 동작에 의해서 테스트스위치 출력이 L에서 H로 변환하면 원숏트회로(67)가 OR게이트(70)를 중개로해서 시프트 레지스터(71)의 데이터단자 DS에 펄스를 도입한다.18 shows the product selection switch 10A, which the submicrocomputer 5 has operated in a test scenario. A functional block diagram illustrating an operation of turning on the selling price product display LED and the sold out product display LED corresponding to 10H. When the test switch output is changed from L to H by the operation of the test switch 43, the one short circuit 67 introduces a pulse into the data terminal DS of the shift register 71 by interposing the OR gate 70.

한편 테스트스위치(43)의 온에 의해서 쿨록펄스 발생회로(69)가 클록 펄스를 출력하고 이때에 인버어터(73)의 출력측은 H 때문에 쿨록펄스는 AND게이트(72)를 통해서 시프트레지스터(71)의 쿨록 입력단자 CL로 도입된다.On the other hand, the cool lock pulse generation circuit 69 outputs a clock pulse by turning on the test switch 43, and at this time, the output lock of the inverter 73 is H, so the cool lock pulse is shifted through the AND gate 72. Is introduced into the coollock input terminal CL.

따라서 시프트레지스터(71)는 데이터단자 DS의 H를 기억하고 그후에 쿨록펄스가 입력할때마다 시프트해서 기억을 유지한다.Therefore, the shift register 71 stores H of the data terminal DS, and thereafter shifts each time the coollock pulse is input to hold the memory.

또한 두번째의 쿨록펄스가 발생하는 시점에서 원숏트회로(67)는 이미 출력을 정지하고 있다.In addition, the one-shot circuit 67 has already stopped the output at the time when the second cool lock pulse occurs.

그리고 기억이 일순하면 데이터는 다시 OR게이트(70)를 중개로해서 데이터 입력단자 DS에 도입되기 때문에 데이터는 시프트레지스터(71)에 순환유지된다.When the memory is in a row, the data is introduced into the data input terminal DS again by using the OR gate 70 as an intermediate, so that the data is circulated and held in the shift register 71.

따라서 시프트레지스터(71)가 시프트할때마다 1~8까지의 각 출력단자는 순차적으로 H를 출력한다.Therefore, each time the shift register 71 shifts, each output terminal 1 to 8 sequentially outputs H.

이렇게해서, 예를들면 시프트레지스터(8)가 출력단자 1로부터 H를 발생하고 있을때에 테스트하는 사람이 상품선택스위치(10A)를 동작하면 AND 게이트(75)에 출력이 얻어져서 지연회로(74)가 일정기간 H를 출력한다.In this way, for example, when the tester operates the product selection switch 10A while the shift register 8 is generating H from the output terminal 1, an output is obtained at the AND gate 75 to obtain a delay circuit 74. Outputs H for a certain period.

그때문에 인버어터(73)의 출력측이 L로 변하기 때분에 AND게이트(72)에 의해서 쿨록 입력단자 CL에의 쿨록펄스 도입이 금지된다.Therefore, when the output side of the inverter 73 changes to L, the introduction of the cool lock pulse to the cool lock input terminal CL is prohibited by the AND gate 72.

따라서 시프트레지스터(71)의 출력단자 1로부터의 H출력이 유지되고 이때에 인버어터(73)의 출력측이 L때문에 판매가 표시 LED(A) 및 매진표시 LED(A)가 점등한다.Therefore, the H output from the output terminal 1 of the shift register 71 is maintained, and at this time, the selling price display LED (A) and the sold out display LED (A) light up because the output side of the inverter 73 is L.

그리고 지연회로(15)의 출력이 L로 변하면 인버어터(73)의 출력측이 다시 H로 변하기 때문에 판매가 표시 LED(8A)~(8H)및 매진표시(9A)~(9H)의 어느것도 점등하지 않고 또 시프트레지스터(71)는 쿨록 입력단자 CL에 AND게이트(72)를 통해서 쿨록펄스가 도입되어서 시프트한다.When the output of the delay circuit 15 changes to L, the output side of the inverter 73 changes to H again, so that none of the selling price display LEDs 8A to 8H and the sold out display 9A to 9H light up. The shift register 71 is shifted by introducing a cool lock pulse into the cool lock input terminal CL through the AND gate 72.

이와같이 시프트레지스터(71)의 데이터시프트를 따라서 그 출력단자에 상응한 상품선택스위치(10A)~(10H)가 동작되면 지연회로(74)에 의한 지연시간에 걸쳐서 대응하는 판매가 표시 LED(8A)~(8H) 및 매진표시LED(9A)~(9H)가 점등된다.In this way, when the product selection switches 10A to 10H corresponding to the output terminals are operated in accordance with the data shift of the shift register 71, corresponding sales price display LEDs 8A to ~ are delayed by the delay circuit 74. (8H) and the sold-out LEDs 9A to 9H light up.

그리고 테스트종료에 의해서 테스트스위치(43)를 오프하면 테스트스위치 출력의 H에서 L에의 변환으로 리세트회로(68)에 리세트신호가 발생해서 시프트레지스터(71)는 리세트되고 또한 쿨록펄스 발생회로(69)도 동작하지 않게되고 더우기 테스트스위치(43)로부터 AND게이트(75)에의 출력은 L로 변하기 때문에 테스트 제어동작은 정지한다.When the test switch 43 is turned off by the end of the test, a reset signal is generated in the reset circuit 68 due to the conversion of the test switch output from H to L, and the shift register 71 is reset, and the cool lock pulse generation circuit is performed. (69) also becomes inoperative, and furthermore, since the output from the test switch 43 to the AND gate 75 changes to L, the test control operation stops.

또한 마이크로 컴퓨터(5)는 포오트 P3에 L가 도입되기 때문에 테스트 동작의 종료를 검출하고 접객부에 대해서 통상의 제어를 행한다.In addition, since the microcomputer 5 introduces L into the port P 3 , the microcomputer 5 detects the end of the test operation and performs normal control on the service portion.

이렇게 해서 판매제어부(3)의 자동복귀형의 테스트스위치 동작되면 서브마이크로 컴퓨터(6)는 메인마이크로 컴퓨터(7)로 부터 그 처리에 상응해서 어떤것인가의 제어데이터 A1, A2, A3가 전송되면 이에 응답해서 테스트시이겐스를 표시하는 코우드를 메인마이크로 컴퓨터(7)에 전송한다.In this way, when the automatic return type test switch of the sales control unit 3 is operated, the submicrocomputer 6 receives the control data A 1 , A 2 , and A 3 from the main micro computer 7 according to the processing thereof. When transmitted, the code indicating the test sig- nance is transmitted to the main microcomputer 7 in response thereto.

그후에 마이크로 컴퓨터(6)는 통상의 처리를 정지해서 판매제어부(3)의 셀프체크의 프로그램을 실행하고, 메인마이크로 컴퓨터(7)는 마이크로 컴퓨터(6)가 테스트시이겐스에 들어간 것을 검출한다.Thereafter, the microcomputer 6 stops normal processing to execute the self-check program of the sales control section 3, and the main microcomputer 7 detects that the microcomputer 6 has entered the test sigence.

테스트시이겐스로 판매제어부(3)는 각 상품종마다의 상품불출모우터(21A)~(21H)를 순차적으로 구동시켜서 상품을 하나씩 송출하는 것이다.As a test scenario, the sales control unit 3 sequentially drives the product dispensing motors 21A to 21H for each product type to send out the products one by one.

이것에 의해서 테스트하는 사람은 상품불출모우터(21A)~(21H), 펄스스위치, 신호하아네스의 이상을 확인할 수가 있다.As a result, the tester can confirm the abnormalities of the product discharging motors 21A to 21H, the pulse switch, and the signal harness.

그리고 모든 상품의 불출종료후에 메인마이크로 컴퓨터(7)가 그 처리에 상응해서 어느것인가의 제어데이터 A1, A2, A3를 전송하면 마이크로 컴퓨터(6)는 통상의 응답동작을 행하기 때문에 메인마이크로 컴퓨터(7)는 테스트시이겐스의 종료를 검출한다.When the main microcomputer 7 transmits any of the control data A 1 , A 2 , and A 3 corresponding to the processing after the dispensing of all products, the micro computer 6 performs the normal response operation. The microcomputer 7 detects the end of the test sequence.

제19도는 마이크로 컴퓨터(6)가 판매제어부(3)에 관한 상기 셀프체크의 처리를 실시하는 경우의 동작을 설명하는 기능블록도이다.19 is a functional block diagram for explaining the operation in the case where the microcomputer 6 performs the self-check processing on the sales control unit 3.

당해도에 있어서 플립플롭회로(53)가 테스트스위치(42)의 동작으로 세트하면 공동 출력단자(24)를 통해서 상품불출 모우터(21A)~(21H)에 구동신호가 공급된다.In this figure, when the flip-flop circuit 53 is set to the operation of the test switch 42, a drive signal is supplied to the product dispensing motors 21A to 21H through the common output terminal 24.

그리고 상품종류에 대응하는 8비트의 시프트 시프트레지스터(61)의 각 출력단자는 드라이버(3)를 통해서 각 상품불출모우터(21A)~(21H)에 접속되어 있다.Each output terminal of the 8-bit shift shift register 61 corresponding to the product type is connected to each of the product dispensing motors 21A to 21H through the driver 3.

또한 오프디레이회로(55)는 시프트레지스터(57)의 데이터 입력단자에 접속되어 있으며, 시프트레지스터(57)의 데이터 입력단자에 접속되어 있으며, 시프트레지스터(57)의 쿨록 입력단자 CL는 OR게이트(56)를 통해서 테스트스위치(42) 및 상품불출모우터(21A)~(21H)에 연동하는 각 펄스스위치의 공통 입력단자(25)에 접속되어 있다. 이와같은 구성에서 테스트스위치(42)의 순시의 온동작으로 플립플롭회로(53)가 세트하면 공통출력단자(24)를 통해서 각 상품불출모우터(21A)~(21H)에 구동신호가 공급된다.The off delay circuit 55 is connected to the data input terminal of the shift register 57, and is connected to the data input terminal of the shift register 57, and the coollock input terminal CL of the shift register 57 is an OR gate. Reference numeral 56 is connected to the common input terminal 25 of each of the pulse switches linked to the test switch 42 and the product discharge motors 21A to 21H. In this configuration, when the flip-flop circuit 53 is set by the instantaneous on operation of the test switch 42, a drive signal is supplied to each of the product dispensing motors 21A to 21H through the common output terminal 24. .

그리고 AND게이트(54)는 플립플롭회로(53)의 세트출력과 테스트스위치(42)의 동작 출력하고 해서 출력을 발생시키고 오프디레이회로(55)는 시프트레지스터(57)의 데이터 입력단자 DS에 H를 출력한다.The AND gate 54 outputs the set output of the flip-flop circuit 53 and the operation output of the test switch 42 to generate an output. The off delay circuit 55 is connected to the data input terminal DS of the shift register 57. Output H

또한 오프디레이회로(55)는 테스트스위치(42)의 자동복귀후에도 일정시간 데이터 입력단자(DS)에 H를 출력한다.In addition, the off delay circuit 55 outputs H to the data input terminal DS for a predetermined time even after the automatic return of the test switch 42.

한편 테스트스위치(42)의 동작 출력은 시트프펄스로서 OR게이트(56)를 통해서 시프트레지스터(57)의 쿨록입력단자 CL에 도입된다.On the other hand, the operation output of the test switch 42 is introduced into the cool lock input terminal CL of the shift register 57 through the OR gate 56 as a sheet pulse.

따라서 시프트레지스터(57)가 데이터 입력단자 DS의 H를 기억하기 때문에 상품불출모우터(21A)가 구동한다.Therefore, since the shift register 57 stores H of the data input terminal DS, the product dispensing motor 21A is driven.

그리고 상품불출모우터(21A)에 연동하는 펄스스위치의 출력은 모우터의 구동개시로 L에서 H로 변환하고 드디어 상품이 송출되어서 L로 복귀하면 시프트레지스터(57)는 펄스스위치 출력의 H로부터 L에의 래러섬으로 해서 시프트엎한다.When the output of the pulse switch interlocked with the product discharging motor 21A is converted from L to H at the start of driving the motor, and finally the product is sent out and returned to L, the shift register 57 returns from H to L of the pulse switch output. I shift it as a rare sum to.

그때문에 그다음에 상품불출모우터(21B)가 구동을 개시하고 당해모우터에 연동하는 펄스스위치가 H에서 L를 출력했을때에 시프트레지스터(57)는 시프트엎해서 상품불출모우터(21C)가 구동을 개시한다.Therefore, when the commodity dispensing motor 21B starts to drive and the pulse switch interlocked with the motor outputs H to L, the shift register 57 shifts and the commodity dispensing motor 21C Start the drive.

이렇게해서 시프트레지스터(57)가 공통입력단자(25)의 입력신호가 H에서 L로 변환할때마다 시프트엎하면 상품불출모우터(21A)~(21H)가 순차적으로 구동하고 상품불출모우터(21H)에 연동하는 펄스스위치가 H에서 L를 출력하면 시프트레지스터(57)는 자리숫자상 출력을 발생한다. 이 자리숫자상 출력에 의해서 플립플롭회로(53)는 리세트되어서 테스트시이겐스가 끝난다.In this way, when the shift register 57 shifts the input signal of the common input terminal 25 from H to L every time, the product dispensing motors 21A to 21H are sequentially driven and the product discharging motor ( When the pulse switch linked to 21H) outputs L to H, the shift register 57 generates a digit number output. By this digit output, the flip-flop circuit 53 is reset and the test sequence ends.

또한 본 예에서 메인마이크로 컴퓨터와 서브마이크로 컴퓨터와는 한선의 신호선으로 비동기식으로 연속해서 데이터의 전송을 행하지만 신호선의 수에 상응해서 여러가지 연속데이터 전송방식이 있다.In addition, in the present example, the main microcomputer and the submicrocomputer transfer data asynchronously and continuously in one signal line, but there are various continuous data transfer methods corresponding to the number of signal lines.

우선 신호선이 2선의 경우에는 각각 송수신 전용으로 해서 비동기식으로 데이터를 서로 전송한다.First, in the case where two signal lines are used, data is asynchronously transmitted to each other exclusively for transmission and reception.

또한 신호선이 2선의 경우의 다른 예로서는 한선을 쿨록펄스의 송수신겸용, 다른 한선을 데이터의 송수신겸용으로 해서 동기식으로서 데이터를 서로 전송하는 방식이 있다.Another example of the case where two signal lines are used is a method of transmitting data to each other synchronously by using one line as a transmission / reception of a cool rock pulse and the other line as a transmission / reception of data.

더구나 신호선이 3선인 경우에는 한선을 쿨록펄스의 송수신겸용, 다른 2선을 각각 데이터의 송신용과 수신용으로 해서 등기식으로 해서 서로 전송하는 것이다.In addition, when three signal lines are used, one line is used as a transmit / receive function of a cool rock pulse and the other two lines are transmitted for transmission and reception by data, respectively.

그리고 신호선이 4선인 경우에는 데이터송신과 쿨록펄스송신, 데이터수신과 쿨록펄스수신으로 해서 동기식에 의해서 서로 데이터를 전송하는 것이다. 어느 경우라도 데이터를 연속해서 전송하기 때문에 신호선은 적어도 무방하다.In the case where the signal lines are four lines, data is transmitted to each other synchronously as data transmission, cool pulse pulse transmission, data reception and cool pulse pulse reception. In either case, the signal line is at least safe because data is continuously transmitted.

Claims (2)

자동 판매기의 한정된 기능블록에 관련된 제어를 행하는 서브마이크로 컴퓨터와 당해 서브마이크로 컴퓨터를 통괄해서 제어하는 메인마이크로 컴퓨터와 메인마이크로 컴퓨터 서브마이크로 컴퓨터 사이에 배설한 신호선과를 구비하고, 메인마이크로 컴퓨터는 상기한 신호선을 통해서 서브마이크로 컴퓨터에 지령코우드 데이터를 연속해서 송신해서 당해 서브마이크로 컴퓨터의 동작을 통괄하고, 당해 메인마이크로 컴퓨터로부터 데이터의 수신을 명령하는 지령코우드 데이터가 송신되면 서브마이크로 컴퓨터는 이어서 상기 신호선을 통해서 연속적으로 송신되는 전기 데이터를 수신해서, 당해 데이터에 입각해서 당해 서브마이크로 컴퓨터는 상기의 기능블록을 제어하고 기능블록안에서의 검출데이터의 송신을 명령하는 지령코우드 데이터가 송신되면 서브마이크로 컴퓨터는 이어서 신호선을 통해서 검출데이터를 메인마이크로 컴퓨터에 연속해서 송신하고 당해 검출데이터에 입각해서 메인마이크로 컴퓨터는 자동 판매기의 전체동작을 제어하는 것을 특징으로 한 자동 판매기의 제어방법.And a signal line disposed between the main microcomputer and the main microcomputer submicrocomputer that collectively control the submicro computer and the submicro computer that performs control related to the limited function block of the vending machine. The command micro data is continuously transmitted to the sub micro computer through the signal line to control the operation of the sub micro computer. When the command code data for instructing the reception of the data is transmitted from the main micro computer, the sub micro computer then transmits the command micro data. Receives electrical data continuously transmitted through the signal line, and based on the data, the submicrocomputer controls the above-described functional block and transmits command code data instructing transmission of detection data in the functional block. If the sub-microcomputer then the control method of an automatic vending machine characterized in that it controls the entire operation of the detection data by the vending machine based on the successive transmission to the art and the detected data to the main microcomputer main microcomputer via a signal line. 판매상품종마다 설치된 상품송출 구동수단과 판매상품종마다 설치되고 다응하는 상품의 유무를 검출하는 매진검출수단과,판매상품종마다 설치되어서 고객에 의해서 조작되는 상품선택 수단과, 투입화폐종에 상응해서 각각 투입화폐신호를 출력하는 화폐검출수단과, 거스름돈 화폐종마다 설치된 거스름돈 화폐의 유무를 검출하는 거스름돈 검출수단과, 판매상품종마다의 상품판매 가격을 미리 기억해있고, 투입화폐신호에 입각해서 투입금액을 연사하는 스텝과, 투입금액과 각각의 상품판매 가격과를 비교하고 또한 거스름돈 검출수단에 의한 거스름돈의 유무상황 및 상기한 매진검출수단에 의한 상품의 유무상황에 입각해서 구입가능 상품을 결정하는 스텝과,조작된 상품 선택수단에 대응하는 상품종이 전기 구입 가능 상품인가를 판정하는 스텝과, 선택된 상품종이 구입 가능상품인 경우에 선택상품종을 표시하는판매상품데이터를 신호선을 통해서 연속적으로 송신하는 스텝과, 신호선을 통해서 연속해서 전송되어오는 매진검출수단의 검출에 입각한 매진상품데이터를 수신하는 스텝과 선택상품 데이터의 송신후에 투입금액으로 부터 판매상품의 상품판매가격을 감산하는 스텝과 데이터의 송수신에 앞서서 동작을 명령하는 지령코우드 데이터를 신호선을 통해서 연속적으로 송신하는 스텝하고를 비치한 메인마이크로 컴퓨터와 신호선에 의해서 메인마이크로 컴퓨터와 접속하고, 매진검출수단으로 상품의 유무상황을 검출하는 스텝과 신호선을 통해서 도입되는 지령코우드 데이터를 수신해서해독하는 스텝과 수신한 지령코우드 데이터가 매진상품 데이터의 송신을 명령하는 내용인 것을 해독하면 이어서 매진상품 데이터를 신호선을 통해서 연속해서 송신하는 스텝과, 수신한 지령코우드 데이터가 상기한 판매상품 데이터의 수신을 명령하는 내용인 것을 해독하면 이어서 상기한 신호선을 통해서 도입되는 데이터를 판매상품 데이터로서 수신하는 스텝과 수신한 판매상품 데이터에 입각해서 상품송출구동 수단에대한 제어종료후에 수신한 지령코우드 데이터가 전기 판매완료 데이터의 송신을 명령하는 내용임을 해독하면 이어서 판매완료 데이터를 신호선을 통해서 연속적으로 송신하는 스텝을 구비한 판매제어용 서브마이크로 컴퓨터로서 구성되는 자동 판매기의 제어장치.A product delivery driving means installed for each product type and a sold out detection means for detecting the presence or absence of a corresponding product installed for each product type, a product selection means installed for each product type and operated by a customer, and corresponding to a currency type Currency detection means for outputting the input currency signal, the change detection means for detecting the presence or absence of the change currency installed for each change type, and the selling price of each product type in advance, and the input is based on the input currency signal. Comparing the amount of money input with the selling price of each commodity, and determining whether a commodity can be purchased based on the presence or absence of the change by the change detection means and the presence or absence of the product by the sold out detection means. A step of determining whether a product type corresponding to the operated product selection means is an electric purchase product; In the case where the selected product type is available for purchase, the step of continuously transmitting the selling product data indicating the selected product type through the signal line and the sold out product data based on the detection of the sold out detection means continuously transmitted through the signal line. A step of subtracting the selling price of the merchandise from the input amount after the receiving step and the transmission of the selected product data, and a step of continuously sending the command code data which commands the operation prior to the transmission and reception of the data through the signal line. A step of connecting the main micro computer with a main micro computer and a signal line, and detecting the presence or absence of goods by means of a sold-out detection means, a step of receiving and decoding the command code data introduced through the signal line and the received command code data. Is the contents ordering the transmission of the sold out product data. Subsequently, the step of continuously transmitting the sold-out goods data through the signal line, and deciphering that the received command code data is the content for instructing the reception of the above-mentioned sale product data, and subsequently, the data introduced through the signal line is read. Based on the step of receiving as data and the received sales product data, the received command code data after the completion of control of the product delivery driving means is decoded to command the transmission of the electric sales completion data. A control device for a vending machine configured as a sales control submicrocomputer having a step of continuously transmitting through the same.
KR1019830005239A 1982-11-12 1983-11-04 A vending machine KR880001871B1 (en)

Applications Claiming Priority (11)

Application Number Priority Date Filing Date Title
JP57199268A JPS5990191A (en) 1982-11-12 1982-11-12 Control of vending machine
JP199269 1982-11-12
JP199.268 1982-11-12
JP19926982A JPS5990192A (en) 1982-11-12 1982-11-12 Control of vending machine
JP199268 1982-11-12
JP20394282A JPS5994194A (en) 1982-11-19 1982-11-19 Control of vending machine
JP203942 1982-11-19
JP57203943A JPS5994192A (en) 1982-11-19 1982-11-19 Testing of currency processing section
JP203943 1982-11-19
JP20828082A JPS5998292A (en) 1982-11-27 1982-11-27 Marketing test for vending machine
JP208280 1982-11-27

Publications (2)

Publication Number Publication Date
KR840006706A KR840006706A (en) 1984-12-01
KR880001871B1 true KR880001871B1 (en) 1988-09-23

Family

ID=16404959

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019830005239A KR880001871B1 (en) 1982-11-12 1983-11-04 A vending machine

Country Status (2)

Country Link
JP (1) JPS5990191A (en)
KR (1) KR880001871B1 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5931746B2 (en) * 1977-04-28 1984-08-03 オムロン株式会社 Transaction processing method

Also Published As

Publication number Publication date
JPS5990191A (en) 1984-05-24
KR840006706A (en) 1984-12-01

Similar Documents

Publication Publication Date Title
US4598379A (en) Control system of an automatic vending machine
EP0085546B1 (en) Vending machine
US4616323A (en) Control device and a method for sending and receiving information in a vending machine and the like apparatus
US4412292A (en) System for the remote monitoring of vending machines
KR880001871B1 (en) A vending machine
EP0131331A2 (en) Commodity dispensing apparatus
JPS6235154B2 (en)
JPS5994194A (en) Control of vending machine
JP4411773B2 (en) Vending machine communication control method
JPS5994195A (en) Display testing of vending machine
KR930007644Y1 (en) Semi-automatic small change supplier
JPS60215296A (en) Control of vending machine
JPS59186087A (en) Change dispensing tester for vending machine
JP2861353B2 (en) Vending machine failure diagnosis device
JP3632465B2 (en) Vending machine control device
JPS62239294A (en) Decentralized controlled vending system
JPS6213182Y2 (en)
JP2557693B2 (en) Vending machine controller
JPS6132191A (en) Control system for vending machine
JPS59183488A (en) Selling column confirmation apparatus for vending machine
KR0181647B1 (en) Coin discription device and control method for a vending machine
JPH06327834A (en) Ball dispenser between machines
KR830002627B1 (en) Control circuit of vending machine
JPS62111383A (en) Control of vending machine
JP2828671B2 (en) Vending machine control device

Legal Events

Date Code Title Description
A201 Request for examination
N231 Notification of change of applicant
N231 Notification of change of applicant
G160 Decision to publish patent application
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20030915

Year of fee payment: 16

EXPY Expiration of term