JP2516128B2 - Combination weighing or counting device - Google Patents

Combination weighing or counting device

Info

Publication number
JP2516128B2
JP2516128B2 JP3358541A JP35854191A JP2516128B2 JP 2516128 B2 JP2516128 B2 JP 2516128B2 JP 3358541 A JP3358541 A JP 3358541A JP 35854191 A JP35854191 A JP 35854191A JP 2516128 B2 JP2516128 B2 JP 2516128B2
Authority
JP
Japan
Prior art keywords
weighing
interrupt
central processing
processing unit
combination
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP3358541A
Other languages
Japanese (ja)
Other versions
JPH0772001A (en
Inventor
信次秀郎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ishida Co Ltd
Original Assignee
Ishida Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ishida Co Ltd filed Critical Ishida Co Ltd
Priority to JP3358541A priority Critical patent/JP2516128B2/en
Publication of JPH0772001A publication Critical patent/JPH0772001A/en
Application granted granted Critical
Publication of JP2516128B2 publication Critical patent/JP2516128B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Weight Measurement For Supplying Or Discharging Of Specified Amounts Of Material (AREA)

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、電気的雑音が生じても
正常なプログラムが実行されるようにした組合せ計量又
は計数装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a combination weighing or counting apparatus which can execute a normal program even if electric noise occurs.

【0002】[0002]

【従来の技術】多数の計量機の夫々に具備された計量ホ
ッパに物品を供給し、各計量機による計量値に基づいて
組合せ演算を行ない、組合せ合計重量値が目標重量に最
も近い最適の組合せを選択し、その最適組合せに該当す
る計量機の計量ホッパを開いて物品を排出するようにし
た組合せ計量装置が実用化されている。
2. Description of the Related Art An article is supplied to a weighing hopper provided in each of a large number of weighing machines, and a combination calculation is performed based on a measured value by each weighing machine. Has been put to practical use, in which the weighing machine is selected and the weighing hopper of the weighing machine corresponding to the optimum combination is opened to discharge the articles.

【0003】このような組合せ計量装置においては、最
適組合せに該当して被計量物を排出した計量ホッパには
その上方に配備されたプールホッパから直ちに次回計量
用の物品が投入され、これらのプールホッパには、その
上段に配置された分散供給装置としての電磁フィーダか
ら物品が個別に供給されるように構成されている。図1
は組合せ計量装置の概略図であり、各計量機の計量ホッ
パW1 〜Wnにより得られた計量値X1 〜Xnはマルチ
プレクサ2に入力される。包装機5からのタイミング信
号Tによりマイクロコンピュータで構成される演算制御
装置4が信号Sをマルチプレクサ2に印加すると、各計
量信号はA/D変換器3に順次取込まれ、デジタル信号
が演算制御装置4に送られる。演算制御装置4は該デジ
タル信号を記憶装置6に記憶せしめるとともに該装置6
から必要な命令を読出し、組合せ加算の演算を行なって
組合せ合計重量値を求めて目標重量値Xsと比較して組
合せ合計重量値が目標重量値Xsに最も近い組合せを求
める。この組合せ合計重量値が上限重量設定値Xuを超
過しない場合は、この組合せが最適組合せとなる。最適
組合せが得られると、その組合せに該当する計量機の駆
動部7に所定の制御信号Cを与えて計量ホッパから物品
を排出し、続いてプールホッパ、電磁フィーダを順次制
御して、次回計量用の物品をプールホッパから計量ホッ
パへ、次々回計量用の物品を電磁フィーダからプールホ
ッパへと順次投入する。
In such a combination weighing device, the weighing hopper which has discharged the objects to be weighed corresponding to the optimum combination is immediately loaded with the articles for the next weighing from the pool hopper arranged above the weighing hopper, and these pools are weighed. Articles are individually supplied to the hopper from an electromagnetic feeder as a dispersion supply device arranged in the upper stage. FIG.
Is a schematic diagram of the combination weighing device, and the weighing values X 1 to Xn obtained by the weighing hoppers W 1 to Wn of the respective weighing machines are input to the multiplexer 2. When the arithmetic and control unit 4 composed of a microcomputer applies the signal S to the multiplexer 2 by the timing signal T from the packaging machine 5, each weighing signal is sequentially taken into the A / D converter 3 and the digital signal is arithmetically controlled. Sent to device 4. The arithmetic and control unit 4 stores the digital signal in the storage unit 6 and
The necessary command is read out from the above, the combination addition operation is performed to obtain the combination total weight value, and it is compared with the target weight value Xs to obtain the combination having the combination total weight value closest to the target weight value Xs. If this combined total weight value does not exceed the upper limit weight set value Xu, this combination is the optimum combination. When the optimum combination is obtained, a predetermined control signal C is given to the drive unit 7 of the weighing machine corresponding to the combination, the articles are discharged from the weighing hopper, and then the pool hopper and the electromagnetic feeder are sequentially controlled to perform the next weighing. Items for weighing are sequentially loaded from the pool hopper to the weighing hopper, and items for weighing one after another are sequentially loaded from the electromagnetic feeder to the pool hopper.

【0004】[0004]

【発明が解決しようとする課題】このような組合せ計量
装置では、各計量機を1個のマイクロコンピュータで制
御するには処理能力の点で限界があったので、特に計量
スピードを上げたり計量機の台数を増設する場合には無
理があった。又、CPU(中央処理装置)を用いて制御
系を構成する場合には、CPUが雑音信号等により暴走
した時に系全体の安全性を得るためには、CPUが自己
復帰しなければならないが、従来はこのような自己復帰
の有効な手段がなかった。これについて更に詳しく説明
すると、一般にマイクロコンピュータは図2に示すよう
に、ROM(読出し専用メモリ)に記憶された命令をC
PUに読出すことにより動作が開始される。
In such a combination weighing device, there is a limit in processing capacity to control each weighing machine by one microcomputer, so that the weighing speed is increased or the weighing machine is used in particular. It was impossible to add more units. Further, when a control system is configured using a CPU (Central Processing Unit), the CPU must self-recover in order to obtain safety of the entire system when the CPU runs away due to a noise signal or the like. Conventionally, there has been no effective means for such self-recovery. This will be described in more detail. Generally, as shown in FIG. 2, a microcomputer executes an instruction stored in a ROM (read-only memory) as a C instruction.
The operation is started by reading to PU.

【0005】CPUは実行すべき順番に従ってアドレス
バスにアドレス信号を出力すると、ROMは自動的にデ
ータバスに命令語を出力する。ところで、組合せ計量装
置は位相制御されるSCR(サイリスタ)で駆動される
電磁フィーダを有しているので、電気的な雑音信号が発
生してCPUに入り込み、誤った命令語を読んでしまう
場合が生じる。例えば図3の左側に示すような、3バイ
ト、2バイト、2バイト、3バイト…からなる命令語1
〜4が形成されている場合に、図3の右側に示すように
命令語2を3バイトで誤読したり、CALL命令やJU
MP命令等のアドレス指定命令を誤読すると、マイクロ
コンピュータのシステムは正常に動作できなくなる。
When the CPU outputs the address signal to the address bus in the order of execution, the ROM automatically outputs the command word to the data bus. By the way, since the combination weighing device has an electromagnetic feeder driven by a phase-controlled SCR (thyristor), an electrical noise signal may be generated and enter the CPU, and an incorrect command may be read. Occurs. For example, as shown on the left side of FIG. 3, an instruction word 1 consisting of 3 bytes, 2 bytes, 2 bytes, 3 bytes, ...
3 to 4 are formed, as shown on the right side of FIG. 3, the instruction word 2 is misread by 3 bytes, or the CALL instruction or the JU is read.
If the addressing instruction such as the MP instruction is erroneously read, the microcomputer system cannot operate normally.

【0006】本発明は、複数のマイクロコンピュータを
使用して分散処理を図ることにより、負荷を軽減して計
量能力を向上させることができるとともに、計量機台数
の増設にも容易に対応することができ、又、ノイズ等の
混入により誤動作することがあっても、各計量機毎に自
己復帰が可能な新たな組合せ計量又は計数装置を提供す
ることを目的とする。
According to the present invention, the load can be reduced and the weighing capacity can be improved by using a plurality of microcomputers for distributed processing, and the number of weighing machines can be easily increased. It is an object of the present invention to provide a new combination weighing or counting device capable of self-returning for each weighing machine even if it malfunctions due to mixing of noise or the like.

【0007】[0007]

【課題を解決するための手段】上述のような発明の目的
を達成するために、本発明は複数の計量機に投入された
物品の重量を計量し、得られた各重量値又は各重量値か
ら変換された物品の個数を組合せて組合せ合計値が目標
値に最も近い最適の組合せを選択し、選択した組合せの
計量機から物品を排出させるようにし、各計量機に個別
に中央処理装置を設け、各個別の中央処理装置を全体を
統括する主中央処理装置に接続し、その主中央処理装置
から伝送される動作指令に基づいて各個別の中央処理装
置を割込処理により個別に駆動制御する割込制御手段を
有した組合せ計量又は計数装置において、該割込制御手
段は、主中央処理装置に接続されているデータバスライ
ンからのリクエストによる割込制御命令で動作する第1
の割込制御手段と、駆動部の交流電源のゼロクロス点に
同期して動作する第2の割込制御手段との2通りの割込
制御手段を有し、各割込制御手段は割込みの発生時に各
個別の中央処理装置を正常な割込み処理実行状態にリセ
ットする手段を具備することを特徴とする組合せ計量又
は計数装置を提供するものである。
In order to achieve the object of the invention as described above, the present invention measures the weight of articles put into a plurality of weighing machines, and obtains each weight value or each weight value obtained. a combination of the number of the converted article from selected nearest optimal combination target value combination total value, so as to discharge the articles from the weighing machines of the selected combination, the central processing unit separately for each weighing machine Is provided, each individual central processing unit is connected to the main central processing unit that controls the whole, and each individual central processing unit is individually driven by interrupt processing based on the operation command transmitted from the main central processing unit. Interrupt control means to control
In the combination weighing or counting device having, the interrupt control means operates according to an interrupt control command at a request from a data bus line connected to the main central processing unit .
Interrupt control means and second interrupt control means that operates in synchronization with the zero-cross point of the AC power supply of the drive unit.
A combination weighing or counting device having control means, each interrupt control means comprising means for resetting each individual central processing unit to a normal interrupt processing execution state when an interrupt occurs. Is.

【0008】[0008]

【作用】組合せ計量装置又は組合せ計数装置において、
主中央処理装置から伝送される動作指令に基づいて計量
機に設けられた各中央処理装置を割込処理により個別に
駆動制御するように構成しておき、該割込み処理指令が
発せられた時、各中央処理装置は正常な割込み処理実行
可能な状態にリセットされる。
In the combination weighing device or combination counting device,
Based on the operation command transmitted from the main central processing unit, each central processing unit provided in the weighing machine is configured to be individually drive-controlled by interrupt processing, and when the interrupt processing command is issued, Each central processing unit is reset to a state in which normal interrupt processing can be executed.

【0009】[0009]

【実施例】以下図により本発明の実施例について説明す
る。一般にマイクロコンピュータは外部からの電気信号
により割込みが行なわれると割込プログラムが開始され
るが、割込処理は最も優先度の高い処理であり、しかも
割込プログラムのスタートアドレスは規定されているの
で雑音により誤動作することがない。本発明はこのよう
な割込処理のプログラムの特性を用いるもので図4は操
作手順のフローチャートを示している。即ち、割込待ち
の状態で割込要求1が出されるとCPUがこの要求を受
け付けて所定のプログラムに従い処理1を実行し、処理
1が終了すると割込み待ちの待機プログラムのアドレス
へ復帰して再び割込待ちの状態とする。次いで割込2、
割込3の要求が出された場合にも同様に処理2、処理3
を実行し、常に割込み待ちの待機プログラムのアドレス
への復帰を経て割込待ちの状態とする。このような割込
処理について従来例と比較すると、従来の割込処理は図
5に示されるように割込要因1〜5は連続してCPUに
受け付けられ、特定アドレスにジャンプしてプログラム
を実行するが、本発明の割込処理は図6に示すように割
込要因1〜5につきそれぞれ独立して割込待ちのアドレ
ス設定を行なっている。即ち、マイクロコンピュータに
よる処理プログラムを全て割込プログラムで作成し、必
要な処理操作は電気信号が常に割込入力端子に印加され
ることにより開始されるようにする。
Embodiments of the present invention will be described below with reference to the drawings. Generally, a microcomputer starts an interrupt program when an interrupt is generated by an electric signal from the outside, but the interrupt process has the highest priority and the start address of the interrupt program is specified. It does not malfunction due to noise. The present invention uses the characteristics of such an interrupt processing program, and FIG. 4 shows a flowchart of the operating procedure. That is, when the interrupt request 1 is issued in the interrupt waiting state, the CPU accepts this request and executes the process 1 according to a predetermined program, and when the process 1 is completed, the process returns to the address of the waiting program for the interrupt and returns again. Wait for an interrupt. Then interrupt 2,
Even if a request for an interrupt 3 is issued, the same process 2, process 3 is performed.
Is executed, and after returning to the address of the standby program that is always waiting for an interrupt, it is put in the state of waiting for an interrupt. As compared with the conventional example, the interrupt process of the related art is such that, as shown in FIG. 5, the interrupt factors 1 to 5 are continuously accepted by the CPU and the program is executed by jumping to a specific address. However, in the interrupt processing of the present invention, as shown in FIG. 6, addresses for interrupts are set independently for each of interrupt factors 1-5. That is, all processing programs by the microcomputer are created by interrupt programs, and necessary processing operations are started by always applying an electric signal to the interrupt input terminal.

【0010】次に、図7〜図10を参照して、本発明の
実施例をより具体的に説明する。
Next, the embodiment of the present invention will be described more specifically with reference to FIGS.

【0011】本発明に係る組合せ計量装置は、各計量機
毎に独立した駆動部を有しているので、この駆動部毎に
サブ中央処理装置(CPU)を設け、これを組合せ演算
を実行して各計量機を統括的に管理するメインCPUに
接続することにより、これまでの駆動部の制御を各サブ
中央処理装置(CPU)に分散させている。図7(A)
は、このようなコンピュータ制御系の概略図で、サブC
PU−1〜CPU−nをデータハイウェイで結び、これ
をバスラインによりメインCPU−0に接続している。
Since the combination weighing device according to the present invention has an independent drive unit for each weighing machine, a sub central processing unit (CPU) is provided for each drive unit to execute a combination calculation. By connecting to a main CPU that collectively manages each weighing machine, the control of the drive unit up to now is distributed to each sub central processing unit (CPU). FIG. 7 (A)
Is a schematic diagram of such a computer control system.
PU-1 to CPU-n are connected by a data highway, which is connected to the main CPU-0 by a bus line.

【0012】次に、各計量機の駆動部ユニットは、図7
(B)に示すように構成されている。即ち、各駆動部ユ
ニットは、プールホッパに物品を供給する電磁フィーダ
の、(1)フィーダ時間/フィーダ強度制御装置、常時
回転しているメインモータ(図示せず)の回転力をプー
ルホッパのゲート開閉機構に伝達する、(2)プールホ
ッパクラッチ、ゲートを制動する、(3)プールホッパ
ブレーキ、(4)プールホッパ動作センサ、並びに同じ
くメインモータの回転力を計量ホッパのゲート開閉機構
に伝達する、(5)計量ホッパクラッチ、ホッパゲート
を制動する、(6)計量ホッパブレーキ、(7)計量ホ
ッパ動作センサ等から構成されている。そして、上記フ
ィーダは、フィーダ時間/フィーダ強度制御装置(1)
を介して制御され、プールホッパは、プールホッパクラ
ッチ(2)とプールホッパブレーキ(3)とを介してゲ
ートが開閉制御され、その際に、プールホッパ動作セン
サ(4)でプールホッパが正常に動作したか否かの確認
が行われる。また、計量ホッパは、計量ホッパクラッチ
(5)と計量ホッパブレーキ(6)とを介して開閉制御
され、その際に、計量ホッパ動作センサ(7)で計量ホ
ッパが正常に動作したか否かの確認が行われる。
Next, the drive unit of each weighing machine is shown in FIG.
It is configured as shown in FIG. That is, each drive unit uses (1) the feeder time / feeder strength control device of the electromagnetic feeder that supplies articles to the pool hopper and the rotational force of the main motor (not shown) that is constantly rotating to the gate of the pool hopper. (2) Pool hopper clutch, which brakes the gate, (3) Pool hopper brake, (4) Pool hopper motion sensor, and also transmits the rotational force of the main motor to the gate opening / closing mechanism of the weighing hopper. , (5) weighing hopper clutch, braking the hopper gate, (6) weighing hopper brake, (7) weighing hopper operation sensor, and the like. The feeder is a feeder time / feeder strength control device (1).
The pool hopper is controlled via the pool hopper clutch (2) and the pool hopper brake (3) to control the opening and closing of the gate, and at that time, the pool hopper operation sensor (4) normally controls the pool hopper. A check is made to see if it has worked. Further, the weighing hopper is controlled to open and close via the weighing hopper clutch (5) and the weighing hopper brake (6), and at that time, whether the weighing hopper has normally operated by the weighing hopper operation sensor (7). Confirmation is done.

【0013】図8は、メインCPUと駆動ユニット内の
サブCPUとの相互の処理手順を示すフローチャート
で、包装機からのタイミング信号がメインCPUに与え
られると、メインCPUは、各サブCPUに対して重量
データリクエストの信号を送る。各サブCPUは、メイ
ンCPUからの信号を割り込みによって受信すると、そ
れぞれのA/D変換器に計量データを取り込み、これを
デジタル重量データに変換してメインCPUに送出する
(処理ステップ(イ))。メインCPUは、各サブCP
Uからの重量データを記憶し、これらのデータに基づい
て組合せ演算を行い、最適組合せとなる計量機を選択し
て該当する計量機へ駆動リクエストの信号を送る。この
信号を割り込みにより受信したサブCPUは、計量ホッ
パ駆動、プールホッパ駆動、フィーダプリセットの各制
御を行い、これが終了すると完了コマンドをメインCP
Uに送出する(処理ステップ(ロ))。
FIG. 8 is a flow chart showing the mutual processing procedure of the main CPU and the sub CPU in the drive unit. When the timing signal from the packaging machine is given to the main CPU, the main CPU instructs each sub CPU. Send a weight data request signal. When each sub CPU receives the signal from the main CPU by interruption, each sub CPU takes in the weighing data into each A / D converter, converts it into digital weight data, and sends it to the main CPU (processing step (a)). . Main CPU is each sub-CP
The weight data from U is stored, a combination operation is performed based on these data, the weighing machine which is the optimum combination is selected, and a drive request signal is sent to the corresponding weighing machine. The sub CPU that receives this signal by interruption controls the weighing hopper drive, pool hopper drive, and feeder preset, and when this is completed, a completion command is issued to the main CP.
It is sent to U (processing step (b)).

【0014】図9は各駆動ユニット内のサブCPUの割
込処理の具体的な手順を示すフローチャートで、割込処
理は、データバスからのリクエスト信号又は交流200
Vの負電圧から正電圧へ変化する時のゼロクロス点にお
いて発生される信号によって開始される。ここで、ゼロ
クロス点は電磁フィーダを駆動する交流電源について検
出するので、例えば60Hzの電源であれば毎秒60回
の割込信号が発生する。この割込信号は、正常な動作状
態であればCPUのHALT(停止)ルーチン中にかけ
られるが、異常時には暴走中に割込がかけられることに
なる。CPUに割込がかけられると、スタックレジスタ
のアドレスチェックを行なう。これは、CPUのHAL
T状態を正常なアドレスで実行していたかどうかを調べ
てCPUの暴走の有無を確認するためである。暴走して
いたのであれば、正しいアドレスに、即ちHALTルー
チンのアドレスに書き換えを行ない、各入出力ポートは
初期値に設定しておく。
FIG. 9 is a flow chart showing a concrete procedure of an interrupt process of the sub CPU in each drive unit. The interrupt process is a request signal from a data bus or an AC 200.
It is initiated by the signal generated at the zero-crossing point when changing from a negative voltage of V to a positive voltage. Here, since the zero-cross point is detected with respect to the AC power source that drives the electromagnetic feeder, an interrupt signal is generated 60 times per second when the power source is 60 Hz, for example. This interrupt signal is applied during the HALT (stop) routine of the CPU in a normal operating state, but is interrupted during a runaway in the event of an abnormality. When the CPU is interrupted, the stack register address is checked. This is the CPU HAL
This is because it is checked whether or not the CPU has run out by checking whether the T state is executed at a normal address. If it has runaway, it is rewritten to the correct address, that is, the address of the HALT routine, and each input / output port is set to the initial value.

【0015】次に、割込要因をチェックして、メインC
PUからのデータバスラインリクエストによる場合には
指令を受信して、図8の(イ)又は(ロ)のステップを
実行する。(イ),(ロ)のステップが終了すればHA
LTルーチンにリターンする。200Vゼロクロスによ
る場合には、最初にフィーダ駆動カウンタのカウント値
がゼロになっているかどうかを確認する。このフィーダ
駆動カウンタは、図8(ロ)のステップにおいて、ホッ
パ駆動の指令を受信した後に、フィーダプリセットステ
ップで所定値に設定される。フィーダ駆動カウンタのカ
ウント値がゼロになっていない場合には、カウンタをデ
ィクリメントし、電磁フィーダ駆動用のSCRの点弧角
タイマを動作させ、図10で示すように位相角tでSC
Rを点弧してHALTルーチンにリターンする。フィー
ダは所定時間、カウンタで設定された周期の間動作す
る。例えば動作期間を0.3秒とすれば、60Hzの電
源の場合には18周期の間フィーダが駆動される。な
お、図9においてカウンタのカウント値がゼロの場合又
はSCRの点弧が終了するとHALTルーチンにリター
ンする。
Next, the interrupt factor is checked, and the main C
When a data bus line request is issued from the PU, a command is received and the step (a) or (b) in FIG. 8 is executed. HA if steps (a) and (b) are completed
Return to the LT routine. In the case of 200V zero cross, it is first confirmed whether or not the count value of the feeder drive counter is zero. This feeder drive counter is set to a predetermined value in the feeder preset step after receiving the hopper drive command in the step of FIG. When the count value of the feeder drive counter is not zero, the counter is decremented, the firing angle timer of the SCR for driving the electromagnetic feeder is operated, and the SC is set at the phase angle t as shown in FIG.
I fire R and return to the HALT routine. The feeder operates for a predetermined period of time during the cycle set by the counter. For example, if the operation period is 0.3 seconds, the feeder is driven for 18 cycles in the case of a 60 Hz power supply. It should be noted that in FIG. 9, when the count value of the counter is zero or when the firing of the SCR is completed, the process returns to the HALT routine.

【0016】また、各計量ホッパ内の物品の重量を単体
重量で割って物品の個数に変換し、変換された各個数で
組合せ演算を行って設定された目標個数に等しいかまた
はそれに最も近い最適組合せを求める組合せ計数装置に
おいても本発明を実施することができる。
Further, the weight of the articles in each weighing hopper is divided by the unit weight to be converted into the number of articles, and the converted number is subjected to a combination operation to obtain an optimum value which is equal to or closest to the target number set. The present invention can also be implemented in a combination counting device that seeks a combination.

【0017】[0017]

【発明の効果】以上説明したように、本発明の組合せ計
量又は計数装置では、計量機の駆動制御を行うサブCP
Uを各計量機毎に設けると共に、これらのサブCPUを
メインCPUに接続して、このメインCPUで各計量機
を統括管理するようにしているので、従来、1個のコン
ピュータで処理していた制御を複数のコンピュータに分
散させることができる。したがって、装置全体の処理ス
ピードを向上させることができ、また、計量機の増設も
容易に行うことができる。
As described above, in the combination weighing or counting apparatus of the present invention, the sub CP for controlling the driving of the weighing machine is used.
Since U is provided for each weighing machine and these sub CPUs are connected to the main CPU so that each weighing machine is centrally managed by this main CPU, processing has conventionally been performed by one computer. Control can be distributed among multiple computers. Therefore, it is possible to improve the processing speed of the entire apparatus and easily add a weighing machine.

【0018】さらには、メインCPUからサブCPUへ
のデータ伝送を割り込みにより行っているので、雑音信
号による命令の誤読を防止でき、常に正しいアドレスか
ら処理が開始される。したがって、個別に駆動される各
計量機を調和させて、乱れのない計量・排出を行わせる
ことができる。
Furthermore, since data transmission from the main CPU to the sub CPU is performed by interruption, it is possible to prevent erroneous reading of an instruction due to a noise signal and always start processing from the correct address. Therefore, it is possible to perform harmless weighing and discharging by coordinating the individually driven weighing machines.

【0019】また、交流電源のゼロクロス点毎に割込信
号を発生させてCPUの暴走をチェックしており、暴走
が生じていた場合には、正しい割込待ちのアドレスを設
定し直すことにより、マイクロコンピュータを正常状態
に戻せるようにしている。また、割り込みが発生したと
きに正しい割り込み待ちをしていたかどうかを調べるこ
とができるので、システムを正常化してから割込処理を
実施することができる。このような割込処理を行う複数
のサブCPUをデータハイウェイで接続し、これをデー
タバスラインによりメインCPUに接続しているので、
各サブCPUは、暴走に対して自己復帰することがで
き、これにより信頼性の高い組合せ計量又は計数装置を
得ることができる。
Further, an interrupt signal is generated at each zero-cross point of the AC power source to check the CPU runaway, and if a runaway occurs, the correct interrupt waiting address is set again. The microcomputer can be returned to the normal state. Further, since it is possible to check whether or not the interrupt was correctly waited for when the interrupt occurred, it is possible to normalize the system and then execute the interrupt process. Since a plurality of sub CPUs that perform such interrupt processing are connected by a data highway and are connected to the main CPU by a data bus line,
Each sub-CPU is capable of self-restoring against a runaway, thus providing a highly reliable combination weighing or counting device.

【図面の簡単な説明】[Brief description of drawings]

【図1】組合せ計量装置の機能概略図である。FIG. 1 is a functional schematic diagram of a combination weighing device.

【図2】CPUとROMとの基本的な関係を説明する図
である。
FIG. 2 is a diagram illustrating a basic relationship between a CPU and a ROM.

【図3】命令語の構成を説明する図である。FIG. 3 is a diagram illustrating a configuration of an instruction word.

【図4】本発明による割込処理の手順を示すフローチャ
ートである。
FIG. 4 is a flowchart showing a procedure of an interrupt process according to the present invention.

【図5】従来例である。FIG. 5 is a conventional example.

【図6】割込処理の概念を説明する図である。FIG. 6 is a diagram illustrating the concept of interrupt processing.

【図7】本発明が対象とする組合せ計量装置の制御系の
概略図である。
FIG. 7 is a schematic diagram of a control system of a combination weighing device to which the present invention is applied.

【図8】本発明におけるメインCPUとサブCPUとの
処理手順を示すフローチャートである。
FIG. 8 is a flowchart showing a processing procedure of a main CPU and a sub CPU according to the present invention.

【図9】サブCPUでの割込処理の手順を示すフローチ
ャートである。
FIG. 9 is a flowchart showing a procedure of an interrupt process in the sub CPU.

【図10】電磁フィーダの制御SCRの位相角制御を説
明する図である。
FIG. 10 is a diagram illustrating phase angle control of a control SCR of an electromagnetic feeder.

【符号の説明】[Explanation of symbols]

1…計量機 2…マルチプレクサ 3…A/D変換器 4…演算制御装置 5…包装機 6…記憶装置 7…駆動部 DESCRIPTION OF SYMBOLS 1 ... Weighing machine 2 ... Multiplexer 3 ... A / D converter 4 ... Arithmetic control device 5 ... Wrapping machine 6 ... Storage device 7 ... Drive unit

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】複数の計量機に投入された物品の重量を計
量し、得られた各重量値又は各重量値から変換された物
品の個数を組合せて組合せ合計値が目標値に最も近い最
適の組合せを選択し、選択した組合せの計量機から物品
を排出させるようにし、各計量機に個別に中央処理装置
を設け、各個別の中央処理装置を全体を統括する主中央
処理装置に接続し、その主中央処理装置から伝送される
動作指令に基づいて各個別の中央処理装置を割込処理に
より個別に駆動制御する割込制御手段を有した組合せ計
量又は計数装置において、該割込制御手段は、主中央処
理装置に接続されているデータバスラインからのリクエ
ストによる割込制御命令で動作する第1の割込制御手段
と、駆動部の交流電源のゼロクロス点に同期して動作す
第2の割込制御手段との2通りの割込制御手段を有
し、各割込制御手段は割込みの発生時に各個別の中央処
理装置を正常な割込み処理実行状態にリセットする手段
を具備することを特徴とする組合せ計量又は計数装置。
1. An optimum method in which the weights of articles put into a plurality of weighing machines are weighed and the obtained weight values or the number of articles converted from the respective weight values are combined so that the combined total value is the closest to the target value. select combination, so as to discharge the articles from the weighing machines of the selected combination, a central processing unit provided individually for each of the weighing machine, connected to the main central processing unit which controls the whole of each individual central processing unit and, the combination meter have a interrupt control means for controlling individually driven by interrupt processing each individual central processing unit based on the operation command transmitted from the main central processing unit
In the quantity or counting device, the interrupt control means operates according to an interrupt control command requested by a data bus line connected to the main central processing unit.
And a second interrupt control means that operates in synchronization with the zero-cross point of the AC power supply of the drive unit.
However, each interrupt control means is provided with means for resetting each individual central processing unit to a normal interrupt processing execution state when an interrupt occurs, the combination weighing or counting apparatus.
【請求項2】交流電源のゼロクロス点に同期して発生す
る割込み制御命令は、ゼロクロス点から所定時間tの遅
れ位相のタイミングで発生することを特徴とする請求項
1記載の組合せ計量又は計数装置。
2. The combination weighing or counting apparatus according to claim 1, wherein the interrupt control command generated in synchronization with the zero-cross point of the AC power supply is generated at a timing of a delay phase of a predetermined time t from the zero-cross point. .
JP3358541A 1991-12-28 1991-12-28 Combination weighing or counting device Expired - Lifetime JP2516128B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3358541A JP2516128B2 (en) 1991-12-28 1991-12-28 Combination weighing or counting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3358541A JP2516128B2 (en) 1991-12-28 1991-12-28 Combination weighing or counting device

Publications (2)

Publication Number Publication Date
JPH0772001A JPH0772001A (en) 1995-03-17
JP2516128B2 true JP2516128B2 (en) 1996-07-10

Family

ID=18459853

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3358541A Expired - Lifetime JP2516128B2 (en) 1991-12-28 1991-12-28 Combination weighing or counting device

Country Status (1)

Country Link
JP (1) JP2516128B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5788022B2 (en) * 2011-12-19 2015-09-30 株式会社キトー Fail-safe electronic control unit

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5640945A (en) * 1979-09-12 1981-04-17 Hitachi Ltd Decentralized processing system
JPS5737217A (en) * 1980-08-15 1982-03-01 Ishida Scales Mfg Co Ltd Counting method
JPS58124918A (en) * 1982-01-22 1983-07-25 Ishida Scales Mfg Co Ltd Weighing method
JPS58144932A (en) * 1982-02-24 1983-08-29 Hitachi Ltd Data transmission and reception controller having decentralized processing function
JPH0663815B2 (en) * 1983-11-08 1994-08-22 株式会社石田衡器製作所 Combination weighing or counting device

Also Published As

Publication number Publication date
JPH0772001A (en) 1995-03-17

Similar Documents

Publication Publication Date Title
JPH0663815B2 (en) Combination weighing or counting device
CA2093815C (en) Method and apparatus for providing down-loaded instructions for execution by a peripheral controller
CA1128209A (en) Data processor input/output controller
US4458307A (en) Data processor system including data-save controller for protection against loss of volatile memory information during power failure
US4365294A (en) Modular terminal system using a common bus
EP0556279B1 (en) Memory mapped keyboard controller
JPH06119180A (en) Initial setting method for power supply control
JPS60159941A (en) Multilevel preference microinterrupt controller
JPH02732B2 (en)
US4096564A (en) Data processing system with interrupt functions
JP2516128B2 (en) Combination weighing or counting device
JPH08234811A (en) Circuit for prevention of lockup of watchdog timer
JP2559210B2 (en) Combination weighing device
EP0237311A2 (en) Instruction sequencer branch mechanism
JPH05108548A (en) Dma controller
JPH01161469A (en) Single chip microprocessor with guaranteed on-chip prom
EP0797154B1 (en) System and method for selecting a signal source to trigger a microprocessor counter/timer macro cell
US5713041A (en) Computer system having a host CPU and a logic for integrating peripheral control functions into the host CPU
JPH0739320B2 (en) Elevator control equipment
JPH0666062B2 (en) Sequence controller
JPH02187830A (en) Interruption control system
JPS6129304B2 (en)
JPH0764822A (en) Microcomputer
Susor Computers in the Glass Batching Industry
JPH09244713A (en) Programmable controller