JPH0215171B2 - - Google Patents
Info
- Publication number
- JPH0215171B2 JPH0215171B2 JP57188582A JP18858282A JPH0215171B2 JP H0215171 B2 JPH0215171 B2 JP H0215171B2 JP 57188582 A JP57188582 A JP 57188582A JP 18858282 A JP18858282 A JP 18858282A JP H0215171 B2 JPH0215171 B2 JP H0215171B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- height
- height data
- measured
- deviation
- 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
Links
Landscapes
- Harvester Elements (AREA)
- Testing And Monitoring For Control Systems (AREA)
Description
【発明の詳細な説明】
<発明の関連する技術分野>
この発明はコンバインにおける刈取り部の高さ
を超音波センサ等の非接触距離センサを用いて測
定し、その測定高さに基づいて刈高さを自動的に
制御する刈高さ制御方法に関する。Detailed Description of the Invention <Technical field to which the invention relates> This invention measures the height of the cutting section of a combine harvester using a non-contact distance sensor such as an ultrasonic sensor, and determines the cutting height based on the measured height. The present invention relates to a method for automatically controlling cutting height.
<従来技術とその欠点>
刈高さ自動制御を行うために使用する距離セン
サとしては、通常、大地と接触するアクチユエー
タを用いた接触型距離センサ、または超音波発振
器および受信器を用いた超音波距離センサ等の非
接触距離センサが使用される。しかし接触型の距
離センサは、機体の傾斜が急に大きくなつたとき
等にアクチユエータを破損する恐れがあり、さら
に湿田ではアクチユエータが埋没して使えなくな
ることがあるために、信頼性、安定性等の見地か
ら超音波センサ等の非接触距離センサが使用され
るようになつてきている。<Prior art and its disadvantages> The distance sensor used for automatic cutting height control is usually a contact distance sensor using an actuator that contacts the ground, or an ultrasonic sensor using an ultrasonic oscillator and receiver. A non-contact distance sensor such as a distance sensor is used. However, with contact-type distance sensors, there is a risk of damage to the actuator when the inclination of the aircraft suddenly increases, and furthermore, the actuator may become buried in wet fields and become unusable, resulting in poor reliability and stability. From this point of view, non-contact distance sensors such as ultrasonic sensors have come into use.
このような非接触距離センサを用いた従来の刈
高さ制御方法は、予め設定した基準高さと一定周
期毎に測定した高さデータとを比較し、その差に
応じて一定の速度で刈取り部を上下動させるよう
にしていた。 The conventional mowing height control method using such a non-contact distance sensor compares a preset reference height with height data measured at regular intervals, and adjusts the mowing section at a constant speed according to the difference. I was trying to move it up and down.
しかし、例えば大地上の柔らかい藁に対して超
音波が発射されたり、或いは切株の中にデバイダ
が割つて株間に超音波が発射されたりすると受信
信号が大きく低下するために、センサが正常であ
るにもかかわらず正確な測定が出来なくなつて、
その結果刈取り部の無駄な上下動作を行わせる欠
点があつた。 However, for example, if ultrasonic waves are emitted against soft straw on the ground, or if a divider is broken into a stump and ultrasonic waves are emitted between the stumps, the received signal will drop significantly, making it difficult for the sensor to function normally. Despite this, accurate measurements are no longer possible.
As a result, there was a drawback in that the reaping section was forced to move up and down unnecessarily.
<発明の目的>
この発明の目的は、測定高さデータが異常であ
る場合には刈取り部が動作しないようにする一
方、測定高さデータの異常状態がセンサ異常に基
づく可能性が高いときにはセンサ異常報知を行
う、非接触距離センサを用いた刈高さ制御方法を
提供することにある。<Object of the invention> An object of the invention is to prevent the reaping section from operating when the measured height data is abnormal, and to prevent the reaping section from operating when the abnormal state of the measured height data is likely to be caused by a sensor abnormality. An object of the present invention is to provide a cutting height control method using a non-contact distance sensor that notifies abnormalities.
<発明の構成および効果>
この発明は、要約すれば、複数の測定高さデー
タから測定平均高さデータを求め、この測定平均
高さデータと目標高さデータとの偏差に基づいて
刈高さ制御を行う制御方法であつて、
測定高さデータが一定値以上であるとき、その
データを無効データとして捨てるとともに、無効
データ連続発生回数を計数する無効データ計数器
の内容をカウントアツプし、その計数内容が所定
の大きさに達したとき非接触距離センサの異常を
報知するようにしたものである。<Configuration and Effects of the Invention> To summarize, the present invention obtains measured average height data from a plurality of measured height data, and calculates the cutting height based on the deviation between the measured average height data and target height data. In this control method, when measured height data is above a certain value, that data is discarded as invalid data, and the contents of an invalid data counter that counts the number of consecutive occurrences of invalid data is counted up and the An abnormality in the non-contact distance sensor is notified when the count reaches a predetermined value.
この発明によれば、大地上の藁や切株等によつ
て測定データが異常になればそのデータを無効に
するために刈取り部の異常動作を防止することが
出来る。また無効データ連続発生回数を計数する
無効データ計数器の内容が所定値に達したとき、
すなわち異常データが一定回数連続したときにだ
けセンサ異常の報知を行うようにしているため、
ほぼ確実にセンサの異常があると考えられるとき
にだけ異常報知を行うことになり、センサの動作
管理に対する確実性を高めることが出来る。 According to this invention, if the measured data becomes abnormal due to straw, stumps, etc. on the ground, the abnormal operation of the reaping section can be prevented in order to invalidate the data. Also, when the contents of the invalid data counter that counts the number of consecutive occurrences of invalid data reaches a predetermined value,
In other words, sensor abnormality is reported only when abnormal data is received a certain number of times in a row.
Abnormality notification is performed only when it is almost certain that there is an abnormality in the sensor, which increases the reliability of sensor operation management.
<実施例の説明>
第1図はこの発明の方法を実施する刈高さ制御
装置のブロツク図である。<Description of Embodiments> FIG. 1 is a block diagram of a cutting height control device implementing the method of the present invention.
同図において、超音波センサ(以下U.S.S.とい
う)制御回路1は、60ミリ秒毎に送信器2を駆動
し、バースト信号を発射する。受信器3は反射波
を受信して、U.S.S.制御回路1に受信信号を送
る。このときの受信信号は負論理のパルスであつ
て、パルス幅は送信後に受信する迄の時間、すな
わち刈取り部の高さに対応している。受信信号が
送信後所定時間経過しても無い場合には、U.S.S.
制御回路1は強制的にパルスを立ち上がらせる。
この時間は14ミリ秒に設定されている。受信信号
は波形整形後受信パルスとして他方の入力端子が
接地されたイクスクルーシブオアゲート4に導か
れる。このイクスクルーシブオアゲート4の出力
から、イクスククルーシブオアゲート5とR1,
C1とで構成される微分回路によつて微分パルス
が形成され、さらにイクスクルーシブオアゲート
6を介してマイクロコンピユータ7の割り込みポ
ートIRQに導かれる。また、前記イクスクルーシ
ブオアゲート4の出力はマイクロコンピユータ7
の入力ポートR11に導かれる。この入力ポート
R11は、ポートIRQに入力した割り込みパルス
がU.S.S.制御回路1に基づくものであるかどうか
を判定するための信号として使用される。イクス
クルーシブオアゲート6の入力端子には、前記イ
クスクルーシブオアゲート5の出力端子とともに
ダイナモからの信号を波形整形する波形整形回路
8の出力端子が接続されている。マイクロコンピ
ユータ7はこの波形整形回路8からの割り込み信
号によつて、エンジンの回転数を測定する。 In the figure, an ultrasonic sensor (hereinafter referred to as USS) control circuit 1 drives a transmitter 2 every 60 milliseconds to emit a burst signal. The receiver 3 receives the reflected wave and sends the received signal to the USS control circuit 1. The received signal at this time is a negative logic pulse, and the pulse width corresponds to the time from transmission to reception, that is, the height of the reaping section. If there is no received signal within a specified period of time after transmission, the USS
The control circuit 1 forces the pulse to rise.
This time is set to 14 milliseconds. After waveform shaping, the received signal is guided as a received pulse to an exclusive OR gate 4 whose other input terminal is grounded. From the output of this exclusive or gate 4, exclusive or gate 5 and R1,
A differentiated pulse is formed by a differentiating circuit composed of C1 and C1, and is further guided to the interrupt port IRQ of the microcomputer 7 via the exclusive OR gate 6. Further, the output of the exclusive OR gate 4 is sent to the microcomputer 7.
input port R11. This input port R11 is used as a signal for determining whether the interrupt pulse input to port IRQ is based on the USS control circuit 1. The input terminal of the exclusive OR gate 6 is connected together with the output terminal of the exclusive OR gate 5 to the output terminal of a waveform shaping circuit 8 that shapes the waveform of the signal from the dynamo. The microcomputer 7 measures the engine speed based on the interrupt signal from the waveform shaping circuit 8.
マイクロコンピユータ7のポートR10には、
刈高さ微調整器VRの出力端子が接続されてい
る。マイクロコンピユータ7は、A/D変換器を
内蔵し、ポートR10を介して上記刈高さ微調整
器から得られたアナログデータをデジタル量に変
換して刈高さ制御のためのデータを得るようにし
ている。 Port R10 of microcomputer 7 has
The output terminal of the cutting height fine adjuster VR is connected. The microcomputer 7 has a built-in A/D converter, and converts the analog data obtained from the cutting height fine adjuster into digital quantities via the port R10 to obtain data for cutting height control. I have to.
マイクロコンピユータ7は、刈高さ制御プログ
ラムを記憶するROM、および予め設定したデー
タ類を記憶し、さらにフラグ類や各種ワークエリ
アを有するRAMを内蔵している。第2図に
RAMの構成図を示す。領域A1は4種類のフラグ
領域を含んでいる。フラグF0は刈取り部上昇フ
ラグ、フラグF1は刈取り部下降フラグ、フラグ
F2はエンジン回転数計測処理時にポートR10
の入力パルスが立ち上がり、または立ち下がつた
場合、今回の測定データを無効にするためのデー
タ無効フラグ、フラグF3は高さデータ更新フラ
グである。領域A2は測定平均高さを記憶する。
すなわち過去の測定した高さデータの平均高さデ
ータを記憶する。平均の対象となるデータは、前
回に平均して得られた高さデータと過去7回のそ
れぞれの測定データとの合計8個のデータ、また
は前回に平均して得られた高さデータと過去1回
の測定データとの合計2個のデータである。この
区別は後述のように今回の測定データが一定以上
の高さであるか否かで決定される。領域A3は、
前回に測定した高さデータを記憶する。領域A4
は前前回に測定した高さデータを記憶する。同様
に、領域A5〜A9は、前前回以前の測定高さデー
タを新しい順に5個記憶する。領域A10は刈高さ
微調整器VRによつて設定された微調整高さデー
タを記憶する。領域A11は予め設定された目標高
さデータを記憶する。領域A12は領域A2の平均
高さデータと、領域A11の目標高さデータに領域
A10の微調整高さデータを加えた値との差、すな
わち偏差を記憶する。領域A13は、領域A2にス
トアする平均高さデータを算出するのに8個のデ
ータを用いるか、2個のデータを用いるかを決め
る基準高さを記憶する。後述するように、測定し
たデータがこの高さより小さければ、領域A2〜
A9の8個のデータから平均高さデータを求める
一方、測定データがH0以上である場合には領域
A2とA3とに記憶されている2個のデータのみか
ら平均高さデータを求めるようにする。この基準
高さH0は522ミリメータである。領域A14は、算
出した平均高さデータに基づき、刈取り部上下移
動用電磁弁に対して間欠駆動パルスを与えるか、
連続駆動パルスを与えるかの基準高さを記憶す
る。算出した平均高さデータHaがこの基準高さ
H1以上であれば、連続パルスを与える。反対に
平均高さデータHaがこの基準高さデータH1より
小さければ間欠パルスを与える。領域A15は、領
域A12の偏差に対応する駆動パルスのオンタイム
時間を予め決めてある領域A19のテーブルに基づ
き、今回の電磁弁のオン、オフのデユーテイ比を
記憶する。第3図に示すように、偏差が260ミリ
メータ以下であるときには偏差の大きさに応じて
オンタイムが長くなる間欠パルスが与えられる。
なおオフタイムは150ミリ秒の固定値に設定され
ている。したがつて、例えば、偏差が21ミリであ
ればデユーテイ比は16分の1である。領域A16は
後述するセンシングエラーカウンタを構成する。
このカウンタはセンサが正常であるにかかわらず
送信後所定時間(6ミリ秒)経過しても受信出来
ないときにインクリメントされ、所定時間(6ミ
リ秒)経過内に受信した場合にデクリメントされ
る16進のアツプダウンカウンタである。領域A17
は、ダイナモからの割り込みによつて計算された
エンジン回転数を記憶する。領域A18は刈高さ制
御の基準サイクルである10ミリ秒を記憶する。領
域A19は、前述のように偏差と駆動パルスのオン
タイムの関係を表すテーブルを記憶する(第3図
参照)。 The microcomputer 7 has a built-in ROM that stores a cutting height control program, and a RAM that stores preset data and further has flags and various work areas. In Figure 2
A configuration diagram of RAM is shown. Area A1 includes four types of flag areas. The flag F0 is the reaping part rising flag, the flag F1 is the reaping part lowering flag, and the flag F2 is the port R10 during engine rotation speed measurement processing.
When the input pulse rises or falls, the data invalidation flag is used to invalidate the current measurement data, and the flag F3 is a height data update flag. Area A2 stores the measured average height.
That is, average height data of past measured height data is stored. The data to be averaged is a total of 8 pieces of data, including the height data averaged last time and each of the past seven measurement data, or the height data averaged last time and the past measurement data. This is a total of two pieces of data including one measurement data. This distinction is determined by whether or not the current measurement data has a height above a certain level, as will be described later. Area A3 is
Stores the height data measured last time. Area A4
stores the previously measured height data. Similarly, areas A5 to A9 store five pieces of previously measured height data in descending order. Area A10 stores fine adjustment height data set by the cutting height fine adjuster VR. Area A11 stores target height data set in advance. Area A12 is an area that combines the average height data of area A2 and the target height data of area A11.
Store the difference from the value added with the fine adjustment height data of A10, that is, the deviation. Area A13 stores a reference height for determining whether eight pieces of data or two pieces of data are used to calculate the average height data stored in area A2. As described later, if the measured data is smaller than this height, the area A2~
While calculating the average height data from the 8 data of A9, if the measured data is H0 or higher, the area
The average height data is calculated from only the two data stored in A2 and A3. This reference height H0 is 522 mm. Area A14 provides intermittent drive pulses to the solenoid valve for vertically moving the reaping section based on the calculated average height data, or
The reference height for applying continuous drive pulses is memorized. The calculated average height data Ha is this reference height
If it is H1 or higher, give continuous pulses. On the other hand, if the average height data Ha is smaller than this reference height data H1, intermittent pulses are given. Area A15 stores the current on/off duty ratio of the solenoid valve based on the table of area A19, which predetermines the on-time period of the drive pulse corresponding to the deviation of area A12. As shown in FIG. 3, when the deviation is less than 260 millimeters, intermittent pulses are applied whose on-time becomes longer depending on the magnitude of the deviation.
Note that the off time is set to a fixed value of 150 milliseconds. Therefore, for example, if the deviation is 21 mm, the duty ratio is 1/16. Area A16 constitutes a sensing error counter to be described later.
Regardless of whether the sensor is normal, this counter is incremented when no reception is received within a predetermined period of time (6 milliseconds) after transmission, and is decremented if reception is received within a predetermined time period (6 milliseconds)16 It is an up-down counter. Area A17
stores the engine speed calculated by the interrupt from the dynamo. Area A18 stores 10 milliseconds, which is the reference cycle for cutting height control. As described above, the area A19 stores a table representing the relationship between the deviation and the on-time of the drive pulse (see FIG. 3).
次に以上の構成からなる刈高さ制御装置の動作
を第4図A〜Dのフローチヤートを参照して説明
する。 Next, the operation of the cutting height control device having the above structure will be explained with reference to the flowcharts shown in FIGS. 4A to 4D.
第4図Aは刈高さ制御を行うためのメインルー
チンのフローチヤートである。 FIG. 4A is a flowchart of the main routine for controlling the cutting height.
ステツプn1(以下ステツプniを単にniという)
は、各種レジスタ、フラグ類の初期設定を行う。
n2はフラグF3のセツト状態をチエツクする。
このフラグF3がセツトされるのは、後述のよう
にU.S.S.制御回路1からの受信パルスによつて割
り込みがあつたときである。フラグF3がセツト
されていれば、n3へ進んでフラグF3をリセツ
トし、さらにn4へ進んで高さデータ更新サブル
ーチンへ進む。この高さデータ更新サブルーチン
において、領域A2の平均高さデータHaが求めら
れるとともに、領域A3〜A9のデータおよびA16
のセンシングエラーカウンタがアツプデートされ
る。続いてn5へ進み、刈高さ制御サブルーチン
を実行する。この刈高さ制御サブルーチンでは、
n4の高さデータ更新サブルーチンで求めた平均
高さデータに基づいて、電磁弁の駆動パルスのデ
ユーテイ比を決定し、刈取り部の上下駆動制御を
行う。n6はセンシングエラーカウンタのカウン
タ値の判定ステツプである。もし、このカウンタ
値がオーバーフローしていれば、すなわち測定し
た高さデータが一定の大きさ以上である場合が16
回連続したときには、n7においてU.S.S.不良のア
ラームを駆動する。センシングエラーカウンタが
オーバーフロー状態でなければ、n6→n8へと進
む。n8において基準サイクルがタイムアツプす
れば、n2へ戻つて再度フラグF3の状態を判定
する。以上のようにして高さデータ更新、刈高さ
制御、およびセンシングエラーカウンタのチエツ
クを基準サイクル毎に実行していく。 Step n1 (hereinafter step ni is simply referred to as ni)
performs initial settings for various registers and flags.
n2 checks the set state of flag F3.
This flag F3 is set when an interrupt is generated by a received pulse from the USS control circuit 1, as will be described later. If the flag F3 has been set, the program proceeds to n3 to reset the flag F3, and then proceeds to n4 to proceed to the height data update subroutine. In this height data update subroutine, the average height data Ha of area A2 is obtained, and the data of areas A3 to A9 and A16
The sensing error counter of is updated. Next, proceed to n5 and execute the cutting height control subroutine. In this cutting height control subroutine,
Based on the average height data obtained in the height data update subroutine of n4, the duty ratio of the drive pulse of the solenoid valve is determined, and the vertical drive control of the reaping section is performed. n6 is a step for determining the counter value of the sensing error counter. If this counter value overflows, that is, if the measured height data exceeds a certain value, 16
When the number of consecutive times occurs, a USS failure alarm is activated at n7. If the sensing error counter is not in an overflow state, proceed from n6 to n8. If the reference cycle times up at n8, the process returns to n2 and the state of flag F3 is determined again. As described above, height data update, cutting height control, and sensing error counter checking are executed every reference cycle.
前記メインルーチンにおいて、n2→n3へと進
む場合は、前述のようにU.S.S.制御回路1から割
り込みがあつたときである。割り込みにはこの
U.S.S.制御回路1からの割り込みと、さらに時計
割り込みおよびダイナモからの割り込みの3種類
がある。第4図Bに割り込みがあつたときに実行
される割り込みルーチンを示す。 In the main routine, the process proceeds from n2 to n3 when an interrupt is received from the USS control circuit 1, as described above. For interrupts use this
There are three types of interrupts: interrupts from the USS control circuit 1, clock interrupts, and interrupts from the dynamo. FIG. 4B shows an interrupt routine that is executed when an interrupt occurs.
U.S.S.制御回路1、ダイナモまたは内部時計の
割り込みがあつたときは最初にn10において各種
レジスタの内容を退避する。割り込みが時計割り
込みである場合はn11→n12へ進み、そうでない
場合はn11→n13へと進む。n13においては、マイ
クロコンピユータ7のポートR11の信号状態を
チエツクする。そしてU.S.S.制御回路出力の立ち
下がりであればその割り込みは受信パルスの初め
にあつてものであるから、高さデータを測定する
内部タイマデータを初期化し(n14)、さらにn15
において同タイマを起動する。一方、割り込みが
U.S.S.制御回路出力の立ち上がりのときに行われ
たものであれば、n13→n17→n18へと進み、n15
において起動した内部タイマを停止させ、さらに
n19においてフラグF3をセツトする。そして
n20でレジスタの内容を復帰させてメインルーチ
ンへと戻る。以上の動作により、内部タイマは刈
取り部の高さに比例する受信パルスのパルス幅を
記憶することになる。すなわち、内部タイマデー
タは、通常の場合測定高さに対応することにな
る。所定時間(6ミリ秒)内に受信信号が来なか
つた場合には、この内部タイマデータはオーバー
フローしている。このオーバーフロー状態は後述
の高さデータ更新サブルーチンでチエツクされ、
オーバーフローしているときにはそのデータは無
効データとして捨てられる。なお、割り込みがエ
ンジンのダイナモから行われたものであれば、
n17→n21へと進み、ここでエンジン回転数の計
測処理を行う。さらにこの場合には、エンジン回
転数計測処理を行つたときにポートR11にU.S.
S.制御回路出力の立ち下がりまたは立ち上がりタ
イミングが来るときであるので、この場合には次
回の測定高さデータに誤差が生じることにあるか
ら、n24においてデータ無効フラグF2をセツト
する。したがつて今回の測定高さデータは、フラ
グF2がセツトされているために後述するように
無効データとして捨てられる。 When an interrupt occurs from the USS control circuit 1, dynamo, or internal clock, the contents of various registers are first saved in n10. If the interrupt is a clock interrupt, proceed from n11 to n12; otherwise, proceed from n11 to n13. At n13, the signal state of port R11 of microcomputer 7 is checked. If it is a falling edge of the USS control circuit output, the interrupt should occur at the beginning of the received pulse, so initialize the internal timer data that measures the height data (n14), and then n15
The timer is started at On the other hand, the interrupt
If it was performed at the rising edge of the USS control circuit output, it will proceed to n13 → n17 → n18, and n15
Stop the internal timer started at
Flag F3 is set at n19. and
At n20, restore the contents of the register and return to the main routine. By the above operation, the internal timer stores the pulse width of the received pulse which is proportional to the height of the cutting section. That is, the internal timer data will normally correspond to the measured height. If a received signal does not arrive within a predetermined time (6 milliseconds), this internal timer data has overflowed. This overflow condition is checked in the height data update subroutine described later.
When there is an overflow, the data is discarded as invalid data. Furthermore, if the interrupt is from the engine dynamo,
Proceed to n17 → n21, and here the engine rotation speed measurement process is performed. Furthermore, in this case, when performing the engine rotation speed measurement process, the US
S. Since this is the falling or rising timing of the control circuit output, in this case an error will occur in the next measured height data, so the data invalid flag F2 is set at n24. Therefore, the current measured height data is discarded as invalid data, as will be described later, since the flag F2 is set.
上記のようにn19においてフラグF3がセツト
されると、メインルーチンにおいてn2→n3→n4
へと進んで、高さデータ更新サブルーチンが実行
される。 When flag F3 is set at n19 as described above, n2→n3→n4 is set in the main routine.
Then, the height data update subroutine is executed.
第4図Cはこの高さデータ更新サブルーチンの
フローチヤートである。 FIG. 4C is a flowchart of this height data update subroutine.
まずn30において、センサ無効フラグF2の状
態を判定する。前述のようにエンジン回転数計測
処理を行つたときにU.S.S.制御回路出力の立ち上
がりまたは立ち下がりのタイミングが一致すれ
ば、n24においてデータ無効フラグF2がセツト
される。このため、次にこの高さデータ更新サブ
ルーチンが実行されると、n30→n38へと進み、
このサブルーチンが実行されずにメインルーチン
にリターンする。すなわち高さデータは更新され
なくなる。データ無効フラグF2がセツトされて
いないときは、次にn31へ進み、内部タイマがオ
ーバーフローしているかどうかを判定する。内部
タイマは8ビツトで構成され、最大スケールで
1044ミリメータまで計測可能となるようにクロツ
クのパルス幅が決定されている。したがつて内部
タイマがオーバーフローするのは、測定データが
1044ミリメータ以上になつたときである。この状
態は実際には上述しやように、送信後6ミリ秒以
内に受信信号が無かつたときに対応する。この場
合はn39へと進み、領域A16のセンシングエラー
カウンタをインクリメントしてメインルーチンへ
リターンする。内部タイマがオーバーフローをし
ていない場合は、n32へ進み、内部タイマデー
タ、すなわち測定高さデータを領域A3のHnにス
トアする。続いてそのストアされた測定高さデー
タを領域A13の所定の基準高さデータH0とを比
較する。データHnがデータH0より大きい場合に
はn34を実行する。またそうでない場合には、
n35を実行する。n34においては、前回に算出し
た領域A2の平均高さデータHaと前回に測定した
測定高さデータHnとの2個のデータの平均値を
今回の平均高さデータHaとして算出する。n35に
おいては、前回算出した平均高さデータHaとデ
ータHnからデータHn−6までの過去7回の測定
データとの平均値を今回の平均高さデータHaと
する。すなわち、今回の測定データが基準高さデ
ータH0以上である場合には2個のデータの平均
を取り、データHnがデータH0より小さい場合に
は8個のデータの平均を取るようにしている。刈
取り部の高さが非常に高い状態から適当な間隔で
サンプリングしながら測定データを得る場合、平
均高さデータを求めるために使用するデータが多
くなると古いデータの重みが大きくなつて実際の
高さと平均高さデータの差が大きくなる。このた
めにオーバシユートが生じやすくなる。一方、刈
取り部の高さが比較的高くない状態から目標高さ
に接近する場合においては、平均高さデータを求
めるのに多くの測定データを用いても、古いデー
タの重みが大きくならず、むしろ平均高さデータ
の変動がなくなつて安定性を増す。したがつて、
このように今回の測定データが一定の基準高さデ
ータ以上である場合にはn34において2個のデー
タのみの平均を取り、同測定高さデータが同基準
高さデータよりも小さい場合に8個のデータの平
均を取るようにすることによつて、オーバーシユ
ートの防止と目標高さ付近での刈取り部の安定性
を実現することが出来る。以上のn34またはn35
において平均高さデータHaを領域A2にストアす
ると、続いてn36において領域A4〜A9のデータ
を一つずつ古いデータに更新する。さらにn31に
おいて測定データが一定の高さ以下であつたか
ら、センシングエラーカウンタをデクリメント
し、メインルーチンへ戻る。こうして高さデータ
更新サブルーチンでは、次に刈高さ制御を行うた
めの参照データとなる平均高さデータHaを求め
る動作をする。 First, in n30, the state of the sensor invalidation flag F2 is determined. If the timing of the rise or fall of the USS control circuit output matches when the engine rotation speed measurement process is performed as described above, the data invalid flag F2 is set at n24. Therefore, the next time this height data update subroutine is executed, it will proceed from n30 to n38.
This subroutine is not executed and returns to the main routine. In other words, the height data is no longer updated. If the data invalid flag F2 is not set, the process next proceeds to n31, where it is determined whether the internal timer has overflowed. The internal timer consists of 8 bits, and the maximum scale is
The clock pulse width is determined so that it can measure up to 1044 millimeters. Therefore, the internal timer overflows when the measured data
This is when the diameter exceeds 1044 mm. This condition actually corresponds to the absence of a received signal within 6 milliseconds after transmission, as described above. In this case, the process advances to n39, increments the sensing error counter in area A16, and returns to the main routine. If the internal timer has not overflowed, the process advances to n32 and stores the internal timer data, that is, the measured height data, in Hn of area A3. Subsequently, the stored measured height data is compared with predetermined reference height data H0 of area A13. If data Hn is larger than data H0, execute n34. And if not,
Run n35. At n34, the average value of two pieces of data, the previously calculated average height data Ha of the area A2 and the previously measured measured height data Hn, is calculated as the current average height data Ha. At n35, the average value of the previously calculated average height data Ha and the past seven measurement data from data Hn to data Hn-6 is set as the current average height data Ha. That is, when the current measurement data is equal to or higher than the reference height data H0, the average of two pieces of data is taken, and when the data Hn is smaller than the data H0, the average of eight pieces of data is taken. When obtaining measurement data by sampling at appropriate intervals from a state where the height of the cutting section is very high, as more data is used to calculate the average height data, the weight of older data becomes larger and the actual height becomes larger. The difference in average height data increases. For this reason, overshoot is likely to occur. On the other hand, when the height of the reaping part approaches the target height from a relatively low height, even if a large amount of measurement data is used to calculate the average height data, the weight of old data will not become large. Rather, fluctuations in the average height data are eliminated, increasing stability. Therefore,
In this way, if the current measurement data is greater than a certain standard height data, the average of only two pieces of data is taken in n34, and if the same measured height data is smaller than the same standard height data, eight pieces of data are taken. By averaging the data, overshoot can be prevented and the stability of the cutting section around the target height can be achieved. N34 or N35 or above
When the average height data Ha is stored in area A2 in step n36, data in areas A4 to A9 are updated one by one to older data. Further, at n31, since the measured data is below a certain height, the sensing error counter is decremented and the process returns to the main routine. In this way, in the height data update subroutine, an operation is performed to obtain average height data Ha, which will be reference data for performing the next cutting height control.
メインルーチンのn4において高さデータ更新
サブルーチンを実行すると、次に刈高さ制御サブ
ルーチンを実行する。第4図Dはこの刈高さ制御
サブルーチンのフローチヤートである。 When the height data update subroutine is executed in n4 of the main routine, the cutting height control subroutine is executed next. FIG. 4D is a flowchart of this cutting height control subroutine.
まずn40において、刈高さ微調整器VRの設定
位置のデータを領域A10のΔHにストアする。領
域A11に予め設定されている目標高さデータにこ
のΔHのデータを加算し、その加算結果を上記刈
高さデータ更新サブルーチンで求めた平均高さデ
ータから差し引く。そしてその減算結果を偏差と
して領域A12にストアする。その偏差が正である
場合、刈取り部下降フラグF1をセツトし、負で
ある場合刈取り部上昇フラグF0をセツトする
(n43、n44)。続いてn41で求めた偏差に基づき、
第3図に示すテーブルから電磁弁駆動パルスのオ
ンタイム時間、すなわちデユーテイ比を決定する
(n45)。n46では偏差が不感帯幅、すなわち0〜
20.4ミリメータ以内にあるかどうかを判定する。
もし、その不感帯幅内にある場合には、n56へ移
つて電磁弁をオフして終了する。偏差が不感帯幅
を越える場合にはn47でその偏差が領域A14に記
憶する基準高さデータH1より大きいか小さいか
を判定する。この基準高さデータH1は、261ミリ
メータに設定されている。第3図のテーブルに示
すように、偏差が261ミリメータ以上である場合
にはオンタイムは連続となり、それより小さい場
合には電磁弁の駆動パルスが間欠パルスとなる。
したがつてn44で偏差が基準高さデータH1より大
きい場合には、n48、n49においてフラグR0,
F1をチエツクし、フラグF0がセツト状態であ
れば刈取り部を連続上昇させ、フラグF1がセツ
ト状態であれば刈取り部を連続下降させる。ま
た、偏差が基準高さデータH1より小さければ、
n52、n53でフラグF0,F1の状態をチエツク
し、フラグF0がセツト状態にあれば刈取り部を
間欠上昇させ(n54)、フラグF1がセツト状態
であれば刈取り部を間欠下降させる(n55)。こ
の場合の刈取り部の間欠駆動に対する駆動パルス
のデユーテイ比は第3図のテーブルに示すよう
に、偏差に対応するオンタイムの時間長さによつ
て決定される。こうして偏差が基準高さデータ
H1よりも大きい場合には、刈取り部を連続上昇、
または連続下降させ、次のサンプル時において基
準高さデータH1より小さくなればその偏差の大
きさに応じて間欠下降または間欠上昇させ、以下
サンプル毎に得られる偏差の大きさに応じて適正
なデユーテイ比の駆動パルスによつて刈取り部を
目標高さに接近させることが出来る。なお、n24
においてフラグF2がセツトされた場合、または
n18で内部タイマが停止したときそのタイマがオ
ーバーフローしているときは高さデータ更新サブ
ルーチンが実行されないために、刈取り部の上下
動作もないことになる。 First, in n40, data on the set position of the cutting height fine adjuster VR is stored in ΔH of area A10. This data of ΔH is added to the target height data preset in area A11, and the addition result is subtracted from the average height data obtained in the above-mentioned cutting height data update subroutine. Then, the subtraction result is stored as a deviation in area A12. If the deviation is positive, the reaping section lowering flag F1 is set, and if it is negative, the reaping section ascending flag F0 is set (n43, n44). Next, based on the deviation found in n41,
The on-time period of the electromagnetic valve drive pulse, that is, the duty ratio, is determined from the table shown in FIG. 3 (n45). For n46, the deviation is the dead band width, that is, 0 to
Determine whether it is within 20.4 mm.
If it is within the dead band width, move to n56, turn off the solenoid valve, and end the process. If the deviation exceeds the dead zone width, it is determined in n47 whether the deviation is larger or smaller than the reference height data H1 stored in area A14. This reference height data H1 is set to 261 mm. As shown in the table of FIG. 3, when the deviation is 261 mm or more, the on-time is continuous, and when it is smaller, the driving pulse of the solenoid valve is an intermittent pulse.
Therefore, if the deviation is larger than the reference height data H1 at n44, flags R0, N48 and n49 are set.
Check F1, and if the flag F0 is set, the reaping section is continuously raised, and when the flag F1 is set, the reaping section is continuously lowered. Also, if the deviation is smaller than the reference height data H1,
The states of the flags F0 and F1 are checked at n52 and n53, and if the flag F0 is set, the reaping section is intermittently raised (n54), and when the flag F1 is set, the reaping section is intermittently lowered (n55). In this case, the duty ratio of the drive pulse for the intermittent drive of the reaping section is determined by the length of the on-time corresponding to the deviation, as shown in the table of FIG. In this way, the deviation is the reference height data
If it is larger than H1, raise the cutting part continuously,
Alternatively, the height can be lowered continuously, and if the height becomes smaller than the standard height data H1 at the next sampling time, the height can be lowered or raised intermittently depending on the size of the deviation, and the appropriate duty cycle can then be set depending on the size of the deviation obtained for each sample. The ratio of drive pulses allows the cutting section to approach the target height. In addition, n24
If flag F2 is set in or
When the internal timer stops at n18, if the timer has overflowed, the height data update subroutine is not executed, so there is no vertical movement of the reaping section.
以上の動作によつて、測定高さデータの大きさ
が1044ミリメータを越える場合、すなわち内部タ
イマがオーバーフローした場合にはそのデータを
無効にするとともに、無効データ計数器であるセ
ンシングエラーカウンタをカウントアツプし、ま
たデータが1044ミリメータ以下のときはそのデー
タを有効としてセンシングエラーカウンタをカウ
ントダウンするとともに、そのカウント値が16に
なつたときにだけ、すなわち異常データが16回連
続したときにだけセンサ異常を報知することが出
来る。 Through the above operations, if the size of the measured height data exceeds 1044 mm, that is, if the internal timer overflows, that data is invalidated and the sensing error counter, which is an invalid data counter, is counted up. Furthermore, when the data is less than 1044 mm, the data is considered valid and the sensing error counter is counted down, and a sensor error is detected only when the count value reaches 16, that is, when abnormal data occurs 16 times in a row. It is possible to inform.
第1図はこの発明を実施する刈高さ制御装置の
ブロツク図である。第2図は同制御装置のマイク
ロコンピユータに含まれるRAMの構成図であ
る。第3図は同RAMに記憶されるテーブルの内
容を示す図である。第4図A〜Dは同制御装置の
動作を示すフローチヤートである。
1……超音波センサ制御回路、2……送信器、
3……受信器、7……マイクロコンピユータ。
FIG. 1 is a block diagram of a cutting height control device embodying the present invention. FIG. 2 is a configuration diagram of the RAM included in the microcomputer of the control device. FIG. 3 is a diagram showing the contents of a table stored in the RAM. 4A to 4D are flowcharts showing the operation of the control device. 1... Ultrasonic sensor control circuit, 2... Transmitter,
3...Receiver, 7...Microcomputer.
Claims (1)
力に基づく測定高さデータを前記非接触距離セン
サの駆動毎に測定順に一定個数記憶して測定平均
高さを求め、この測定平均高さと予め設定された
目標高さデータとを比較して偏差を求めるととも
に、その偏差の大きさに応じて刈高さを制御する
刈高さ制御方法であつて、 前記測定高さデータが一定値以上であるとき、
そのデータを無効データとして捨てるとともに無
効データ連続発生回数を計数する無効データ計数
器の内容をカウントアツプし、前記無効データ計
数器の計数内容が所定の計数値に達したとき非接
触距離センサの異常報知を行うことを特徴とす
る、非接触距離センサを用いた刈高さ制御方法。[Scope of Claims] 1. A fixed number of measured height data based on the output of a non-contact distance sensor driven at a constant cycle is stored in the measurement order each time the non-contact distance sensor is driven, and the measured average height is determined. A cutting height control method that compares a measured average height with preset target height data to determine a deviation, and controls the cutting height according to the magnitude of the deviation, the method comprising: is above a certain value,
The data is discarded as invalid data, and the content of an invalid data counter that counts the number of consecutive occurrences of invalid data is counted up, and when the counted content of the invalid data counter reaches a predetermined value, an error occurs in the non-contact distance sensor. A mowing height control method using a non-contact distance sensor, which is characterized by providing notification.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP57188582A JPS5978621A (en) | 1982-10-26 | 1982-10-26 | Control of reaming height using non-contact distance sensor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP57188582A JPS5978621A (en) | 1982-10-26 | 1982-10-26 | Control of reaming height using non-contact distance sensor |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5978621A JPS5978621A (en) | 1984-05-07 |
| JPH0215171B2 true JPH0215171B2 (en) | 1990-04-11 |
Family
ID=16226193
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP57188582A Granted JPS5978621A (en) | 1982-10-26 | 1982-10-26 | Control of reaming height using non-contact distance sensor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5978621A (en) |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS579239U (en) * | 1980-06-18 | 1982-01-18 |
-
1982
- 1982-10-26 JP JP57188582A patent/JPS5978621A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5978621A (en) | 1984-05-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH031681B2 (en) | ||
| US4574359A (en) | Electronic clinical thermometer, and method of measuring body temperature | |
| US4648055A (en) | Electronic clinical thermometer, and method of measuring body temperature | |
| US11013216B2 (en) | Method for obtaining information about a farm animal | |
| US4592000A (en) | Electronic clinical thermometer, and method of measuring body temperature | |
| US4756321A (en) | Industrial dishwasher chemical dispenser | |
| EP0065007B1 (en) | Signal filter apparatus | |
| EP1474971B1 (en) | A feed metering device for supplying fodder and/or drink in metered portions to an animal | |
| US20040018472A1 (en) | Electronic trigger pull gauge | |
| US4858161A (en) | Method for the automatic calibration of a high-resolution electronic balance | |
| IE79030B1 (en) | Drop detection method and apparatus | |
| GB2122784A (en) | Electronic clinical thermometer and method of measuring temperature | |
| JPH0215171B2 (en) | ||
| JPH0215170B2 (en) | ||
| JPH0214007B2 (en) | ||
| US4592367A (en) | Apparatus and method for digital rate averaging | |
| JPS57133321A (en) | Weighing method | |
| JPH04211305A (en) | Cutting height control method | |
| EP0396343B1 (en) | Wire dot printer | |
| JPS6245541Y2 (en) | ||
| JP2868865B2 (en) | Integrator for flow rate measuring device | |
| JPS6143243Y2 (en) | ||
| US4111054A (en) | Gravidity detection method and apparatus | |
| TWI834411B (en) | Method and system for controlling material distributing of the bunker on the top of shaft furnace | |
| JPS6134971Y2 (en) |