JP2009284644A - Apparatus for preventing malfunction in determining clockwise/counterclockwise rotation - Google Patents

Apparatus for preventing malfunction in determining clockwise/counterclockwise rotation Download PDF

Info

Publication number
JP2009284644A
JP2009284644A JP2008133716A JP2008133716A JP2009284644A JP 2009284644 A JP2009284644 A JP 2009284644A JP 2008133716 A JP2008133716 A JP 2008133716A JP 2008133716 A JP2008133716 A JP 2008133716A JP 2009284644 A JP2009284644 A JP 2009284644A
Authority
JP
Japan
Prior art keywords
unit
signal
speed
reverse
determination
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.)
Granted
Application number
JP2008133716A
Other languages
Japanese (ja)
Other versions
JP5262290B2 (en
Inventor
Toshimitsu Maruki
利光 丸木
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.)
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Corp
Meidensha Electric Manufacturing 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 Meidensha Corp, Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Corp
Priority to JP2008133716A priority Critical patent/JP5262290B2/en
Publication of JP2009284644A publication Critical patent/JP2009284644A/en
Application granted granted Critical
Publication of JP5262290B2 publication Critical patent/JP5262290B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Indicating Or Recording The Presence, Absence, Or Direction Of Movement (AREA)
  • Control Of Electric Motors In General (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To solve the problem that when a detection signal from an encoder is input to a clockwise/counterclockwise rotation determining unit and clockwise/counterclockwise rotation of a rotor is carried out based on a determination signal from the clockwise/counterclockwise rotation determining unit, an abrupt polarity change may be caused by a missing encoder output pulse or by noise to negatively affect a controlled object. <P>SOLUTION: A malfunction preventing unit having a speed limiting interlock and a signal holding circuit is connected to the output end of a clockwise/counterclockwise rotation determining unit. A switching unit and a comparing unit that switch clockwise/counterclockwise rotation indicated by a speed detecting signal for control is connected the output end of a speed detecting unit. The comparing unit has a preset unit and a comparator, makes a determination based on a signal indicative of a difference between a preset value from the preset unit and the speed detecting signal, outputs a signal to the speed limiting interlock when the speed of the rotor drops to a given value or lower, and outputs a switching signal to the switching unit via the signal holding circuit. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明はダイナモメータや電動機などの回転体における正転・逆転判定時の誤動作防止装置に関するものである。   The present invention relates to a malfunction preventing apparatus for forward / reverse rotation determination in a rotating body such as a dynamometer or an electric motor.

ダイナモメータや電動機などの回転機を用いて正逆転制御する場合、一般には回転部分にエンコーダなどの検出器を取り付け、その速度検出信号用いて正転方向、逆転方向の判定を行ないながら実行している。すなわち、エンコーダから出力される位相差のあるパルス信号を用いて判定し、その結果を正転、又は逆転のビット信号として出力し、速度検出極性の切換え、ゼロ速度時の速度制御や正逆転連続の速度制御などを行っている。このように、エンコーダを用いたモータの
正逆転運転としては、特許文献1などが公知となっている。この特許文献1には、従来のような論理回路を必要とせずに、プログラムにより、回転方向の逆転のタイミングを検知して駆動力をオフにすることが記載されている。
特公平7−66006
When forward / reverse control is performed using a rotating machine such as a dynamometer or an electric motor, generally a detector such as an encoder is attached to the rotating part, and the forward / reverse direction is determined using the speed detection signal. Yes. In other words, judgment is performed using a pulse signal with a phase difference output from the encoder, and the result is output as a forward or reverse bit signal, speed detection polarity switching, speed control at zero speed and continuous forward / reverse rotation Speed control is performed. As described above, Patent Document 1 is well known as a forward / reverse operation of a motor using an encoder. This Patent Document 1 describes that a driving circuit is turned off by detecting the timing of reverse rotation in a rotational direction by a program without requiring a conventional logic circuit.
7-60606

エンコーダで検出された速度パルスが何らかの理由によって欠落し、また、ノイズの影響によりパルス数が増えた場合、位相差のあるA相、B相のパルスの位相関係が変化する。その結果、正転中であるにもかかわらず逆転の検出をしたり、その逆で逆転中であるにもかかわらず正転の検出信号を出力する場合がある。このような現象が発生すると、例えば、速度検出が+10rpmの場合には、一瞬に−10rpmになって、その差は20rpmとなる。検出速度が、比較的低速の範囲で一瞬に20rpm程度の変化があっても、この場合には制御外乱となり、制御ゲインにも関係するが大きな電流変化にはならず、実際の速度も少しの変化で収まる。   When the speed pulse detected by the encoder is lost for some reason and the number of pulses increases due to the influence of noise, the phase relationship between the A-phase and B-phase pulses having a phase difference changes. As a result, there is a case where reverse rotation is detected even when forward rotation is being performed, and a reverse rotation detection signal is output although reverse rotation is being performed. When such a phenomenon occurs, for example, when the speed detection is +10 rpm, the speed is instantaneously −10 rpm, and the difference is 20 rpm. Even if there is a change of about 20 rpm instantaneously in a relatively low speed range, in this case, a control disturbance occurs, and although it is related to the control gain, there is no large current change, and the actual speed is a little. Fits in change.

しかし、速度検出が、例えば+4000rpmのように高速時に極性変化現象が発生して−4000rpmとなった場合には、その差は8000rpmとなり、一瞬にして8000rpmもの速度検出に変化が生じると、大きな制御外乱となり、制御ゲインと関係して大きな電流変化を生じ、実際の速度も急激に大きな速度変化を発生する。生産設備においてこのような急変現象が発生すると、生産物の破壊、品質の悪化に至り、また、試験機では供試体の破壊など大きな損害が発生する虞を有している。なお、特許文献1には、このような誤動作防止については記載されてない。   However, when the polarity detection phenomenon occurs at a high speed, for example, +4000 rpm, and the speed detection becomes −4000 rpm, the difference becomes 8000 rpm, and if the speed detection changes instantaneously, the speed is greatly controlled. It becomes a disturbance and causes a large current change in relation to the control gain, and the actual speed also suddenly generates a large speed change. When such a sudden change phenomenon occurs in a production facility, the product is destroyed and the quality is deteriorated, and in the test machine, there is a possibility that a great damage such as destruction of a specimen occurs. Note that Patent Document 1 does not describe such prevention of malfunction.

したがって、本発明が目的とするとこは、回転体を正逆転制御する装置の正逆転判定の誤動作防止装置を提供することにある。   Accordingly, it is an object of the present invention to provide a malfunction prevention apparatus for forward / reverse rotation determination of an apparatus for controlling forward / reverse rotation of a rotating body.

本発明の請求項1は、エンコーダにより回転体の速度を検出して正逆転判定部で正逆転を判定し、この判定信号と速度検出部からの速度検出信号を用いて電動機の正逆転運転を行うものにおいて、
前記正逆転判定部の出力側に速度制限インターロックと信号保持回路を有する誤動作防止部を接続し、前記速度検出部の出力側に制御用速度検出信号の正逆転の切換を行う切換部、及び比較部を接続すると共に、この比較部はプリセット部とコンパレータを有し、プリセット部の設定値と速度検出信号との差信号に基づいて判定し、前記回転体の速度が所定値以下となったとき前記速度制限インターロックに信号を出力し、信号保持回路を介して前記切換部に切換信号を出力するよう構成したことを特徴としたものである。
According to the first aspect of the present invention, the speed of the rotating body is detected by the encoder, the forward / reverse determination unit determines the forward / reverse rotation, and the motor is operated by using the determination signal and the speed detection signal from the speed detection unit. In what to do,
A switching unit configured to connect a malfunction prevention unit having a speed limit interlock and a signal holding circuit to an output side of the forward / reverse rotation determination unit, and to perform forward / reverse switching of a speed detection signal for control on an output side of the speed detection unit; In addition to connecting the comparison unit, the comparison unit has a preset unit and a comparator, and the determination is made based on a difference signal between the setting value of the preset unit and the speed detection signal, and the speed of the rotating body becomes a predetermined value or less. Sometimes, a signal is output to the speed limit interlock, and a switching signal is output to the switching unit via a signal holding circuit.

本発明の請求項2は、プリセット部の設定値を、前記回転体の最高制御速度の略±1%としたことを特徴としたものである。   A second aspect of the present invention is characterized in that a preset value of the preset unit is approximately ± 1% of the maximum control speed of the rotating body.

以上のとおり、本発明によれば、正逆転判定部による判定出力がプリセット部で設定された或る速度以上で変化した場合、その変化信号は誤動作と判断して変化信号は無視する。一方、プリセット値以下の場合に正逆転の切換を可能としたものであるから、万一、正逆転判定部が誤動作してもプリセット値以下では速度変動レベルは小さく、設備や供試体などの被制御体に対する影響は少ない。また、プリセット値以上では出力値は変化しないので速度検出極性が変化することはなく、したがって、被制御体に対する影響はないものである。   As described above, according to the present invention, when the determination output by the forward / reverse determination unit changes at a certain speed or more set by the preset unit, the change signal is determined to be a malfunction and the change signal is ignored. On the other hand, since it is possible to switch between forward and reverse rotation when the value is less than the preset value, the speed fluctuation level is small below the preset value even if the forward / reverse determination unit malfunctions. There is little influence on the control body. Further, since the output value does not change above the preset value, the speed detection polarity does not change, and therefore there is no influence on the controlled object.

図1は、本発明の実施例を示す構成図で、1はエンコーダ、2は正逆転判定部で、エンコーダ1の速度検出信号を入力して正転、又は逆転を判定する。例えば、A相パルスとB相パルスを入力し、両パルスによる立下りエッジの先行か後行かによって正転、逆転を判定するような市販のものが使用される。3は速度検出部で、エンコーダ1からのA相又はB相の信号を周波数−電圧などの変換を実行して速度検出信号を制御用の速度検出信号として出力すると共に、比較部4に出力する。比較部4はプリセット部41とコンパレータ42及び減算部43を有している。プリセット部41における設定値は、被制御体の最高制御速度の±1%程度にセットさせ、その設定値は減算部43において検出速度信号との減算が実行される。   FIG. 1 is a block diagram showing an embodiment of the present invention. Reference numeral 1 denotes an encoder, and reference numeral 2 denotes a forward / reverse determination unit. The speed detection signal of the encoder 1 is input to determine forward rotation or reverse rotation. For example, a commercially available product is used in which an A-phase pulse and a B-phase pulse are input, and whether forward rotation or reverse rotation is determined depending on whether the leading edge or the trailing edge of both pulses is forward or backward. Reference numeral 3 denotes a speed detection unit which performs frequency-voltage conversion on the A-phase or B-phase signal from the encoder 1 and outputs the speed detection signal as a control speed detection signal and also outputs it to the comparison unit 4. . The comparison unit 4 includes a preset unit 41, a comparator 42, and a subtraction unit 43. The set value in the preset unit 41 is set to about ± 1% of the maximum control speed of the controlled body, and the set value is subtracted from the detected speed signal in the subtractor 43.

5は誤動作防止部で、AND1,AND2よりなる速度制限インターロック部51とRSフリップフロップよりなる信号保持回路52を有している。AND1の一方の入力端子には、正逆転判定部2からの正転判定信号が入力され、AND2の一方の入力端子には、正逆転判定部2からの逆転判定信号が入力されている。また、AND1,AND2の他方の入力端子には、それぞれ比較部4の出力信号が入力される。6は正転、逆転の切換部で、正転時には図の状態で正転信号が出力され、逆転時には極性反転部7の出力側に切り換えられる。   Reference numeral 5 denotes a malfunction prevention unit, which includes a speed limit interlock unit 51 composed of AND1 and AND2 and a signal holding circuit 52 composed of an RS flip-flop. A forward rotation determination signal from the forward / reverse rotation determination unit 2 is input to one input terminal of AND1, and a reverse rotation determination signal from the forward / reverse rotation determination unit 2 is input to one input terminal of AND2. Further, the output signal of the comparison unit 4 is input to the other input terminals of AND1 and AND2, respectively. A forward / reverse switching unit 6 outputs a normal rotation signal in the state shown in the figure during normal rotation, and switches to the output side of the polarity inversion unit 7 during reverse rotation.

以上のように構成された本発明の誤動作防止装置は、モータなどの回転体はその速度変化率に必ず制限がある、ということに基づくものである。
すなわち、正逆モータを正逆転運転する場合、正逆転判定機能と、モータの減速トルク、外部からの有限な制動トルクによって速度が減速し、或る速度で回転しているモータが一瞬にしてゼロ速度になったり、或いは逆転することはないという物理特性がある。つまり、正転から逆転に移行するとき、或いはその逆のときには一旦停止してから逆転、或いは正転に回転し、必ずある時間を必要とする。本発明はこの点に着目してなされたものである。
The malfunction prevention device of the present invention configured as described above is based on the fact that a rotating body such as a motor has a limited speed change rate.
That is, when the forward / reverse motor is operated in forward / reverse direction, the speed is reduced by the forward / reverse determination function, the motor deceleration torque, and the external finite braking torque, and the motor rotating at a certain speed is instantaneously zero. There is a physical characteristic that it does not become speed or reverse. In other words, when shifting from forward rotation to reverse rotation, or vice versa, it temporarily stops and then rotates in reverse or forward rotation, and a certain time is required. The present invention has been made paying attention to this point.

或る速度以上で回転している電動機は、シーケンス回路や検出回路が動作可能時間内に逆転(又は正転)することはないので、この速度に相当する値を本発明では±1%FSとしてプリセット部41で設定する。そして、プリセットした速度以上で正逆転判定信号が変化した場合には誤動作として判定し、正逆判定信号を無視するようにしたものである。具体的には、速度検出部3で変換された速度検出信号とプリセット部41で設定された信号との差演算を減算部43で行い、コンパレータ42で比較判断する。速度検出値>プリセット値の場合には、コンパレータ42は不動作状態であり、速度制限インターロック51からの出力はない。この状態では正逆転判定部2が入力する、例えばA相パルスの欠落により逆転と判定したとしても速度制限インターロック51は動作条件不成立であり、信号保持回路52を介して正転判定信号の出力が継続されると共に、速度検出信号は切換部6を通して図示省略された制御回路に出力される。   Since the electric motor rotating at a certain speed or more does not reverse (or forward) the sequence circuit or detection circuit within the operable time, the value corresponding to this speed is ± 1% FS in the present invention. Set in the preset section 41. When the forward / reverse rotation determination signal changes at a preset speed or higher, it is determined as a malfunction, and the forward / reverse determination signal is ignored. Specifically, the subtraction unit 43 performs a difference calculation between the speed detection signal converted by the speed detection unit 3 and the signal set by the preset unit 41, and the comparator 42 makes a comparison determination. When the speed detection value> the preset value, the comparator 42 is in an inoperative state and there is no output from the speed limit interlock 51. In this state, even if the forward / reverse rotation determination unit 2 inputs, for example, it is determined that the rotation is reverse due to a missing A-phase pulse, the speed limit interlock 51 does not satisfy the operation condition, and the forward rotation determination signal is output via the signal holding circuit 52. The speed detection signal is output to the control circuit (not shown) through the switching unit 6.

次に、制御回路からの制御指令により正転状態にある電動機に対し逆転指令が出されると電動機は徐々に減速する。減速に伴って速度検出信号も低下し、速度検出値≦プリセット値となるとコンパレータ42が動作してその接点42aを閉じ、速度制限インターロック51の各一方の入力端子に信号を出力する。これにより、AND1の動作条件が成立し、正逆転判定部2の判定が正転中では信号保持回路52はセット状態が維持され、正転の判定信号の出力を継続する。速度制限インターロック51の動作条件成立時に、ノイズなどにより正逆転判定部2が逆転と判定した場合、AND2がオン、AND1がオフ状態となって信号保持回路52はリセットされ、逆転信号を切換部6に出力して極性反転部7の出力側に切換る。したがって、この場合には正転中であるにも拘わらず逆転指令が出力されるが、回転速度は±1%FS以下となっていることから、制御外乱は抑制され、大きな電流変化にはならず、実際の速度変化は小さなものとなる。   Next, when a reverse rotation command is issued to the motor in the normal rotation state by a control command from the control circuit, the motor is gradually decelerated. Along with the deceleration, the speed detection signal also decreases. When the speed detection value ≦ preset value, the comparator 42 operates to close the contact 42a and output a signal to one input terminal of the speed limit interlock 51. Thereby, the operating condition of AND1 is established, and the signal holding circuit 52 is maintained in the set state while the determination of the forward / reverse rotation determination unit 2 is forward rotation, and continues to output the forward rotation determination signal. If the forward / reverse rotation determination unit 2 determines reverse rotation due to noise or the like when the operating condition of the speed limit interlock 51 is established, AND2 is turned on, AND1 is turned off, the signal holding circuit 52 is reset, and the reverse rotation signal is switched. 6 is switched to the output side of the polarity inversion unit 7. Therefore, in this case, a reverse rotation command is output even though forward rotation is in progress, but since the rotation speed is ± 1% FS or less, the control disturbance is suppressed and the current does not change greatly. The actual speed change is small.

本発明の実施形態を示す構成図。The block diagram which shows embodiment of this invention.

符号の説明Explanation of symbols

1… エンコーダ
2… 正逆転判定部
3… 速度検出部
4… 比較部
5… 誤動作防止部
6… 切換部
7… 極性反転部
DESCRIPTION OF SYMBOLS 1 ... Encoder 2 ... Forward / reverse determination part 3 ... Speed detection part 4 ... Comparison part 5 ... Malfunction prevention part 6 ... Switching part 7 ... Polarity inversion part

Claims (2)

エンコーダにより回転体の速度を検出して正逆転判定部で正逆転を判定し、この判定信号と速度検出部からの速度検出信号を用いて電動機の正逆転運転を行うものにおいて、
前記正逆転判定部の出力側に速度制限インターロックと信号保持回路を有する誤動作防止部を接続し、前記速度検出部の出力側に制御用速度検出信号の正逆転の切換を行う切換部、及び比較部を接続すると共に、この比較部はプリセット部とコンパレータを有し、プリセット部の設定値と速度検出信号との差信号に基づいて判定し、前記回転体の速度が所定値以下となったとき前記速度制限インターロックに信号を出力し、信号保持回路を介して前記切換部に切換信号を出力するよう構成したことを特徴とした正逆転判定の誤動作防止装置。
In what detects the speed of the rotating body with an encoder, determines forward / reverse in the forward / reverse determination unit, and performs forward / reverse operation of the electric motor using this determination signal and the speed detection signal from the speed detection unit,
A switching unit configured to connect a malfunction prevention unit having a speed limit interlock and a signal holding circuit to an output side of the forward / reverse rotation determination unit, and to perform forward / reverse switching of a speed detection signal for control on an output side of the speed detection unit; In addition to connecting the comparison unit, the comparison unit has a preset unit and a comparator, and the determination is made based on a difference signal between the setting value of the preset unit and the speed detection signal, and the speed of the rotating body becomes a predetermined value or less. A malfunction prevention device for forward / reverse rotation determination, characterized in that a signal is output to the speed limit interlock and a switching signal is output to the switching unit via a signal holding circuit.
前記プリセット部の設定値は、前記回転体の最高制御速度の略±1%であることを特徴とした請求項1記載の正逆転判定の誤動作防止装置

2. The malfunction prevention device for forward / reverse rotation determination according to claim 1, wherein the preset value of the preset unit is approximately ± 1% of the maximum control speed of the rotating body.

JP2008133716A 2008-05-22 2008-05-22 Forward / reverse judgment malfunction prevention device Active JP5262290B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008133716A JP5262290B2 (en) 2008-05-22 2008-05-22 Forward / reverse judgment malfunction prevention device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008133716A JP5262290B2 (en) 2008-05-22 2008-05-22 Forward / reverse judgment malfunction prevention device

Publications (2)

Publication Number Publication Date
JP2009284644A true JP2009284644A (en) 2009-12-03
JP5262290B2 JP5262290B2 (en) 2013-08-14

Family

ID=41454493

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008133716A Active JP5262290B2 (en) 2008-05-22 2008-05-22 Forward / reverse judgment malfunction prevention device

Country Status (1)

Country Link
JP (1) JP5262290B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62185172A (en) * 1986-02-12 1987-08-13 Ricoh Co Ltd System for detecting direction of rotation
JPH02250686A (en) * 1989-03-20 1990-10-08 Suzuki Motor Co Ltd Rotation direction detector for motor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62185172A (en) * 1986-02-12 1987-08-13 Ricoh Co Ltd System for detecting direction of rotation
JPH02250686A (en) * 1989-03-20 1990-10-08 Suzuki Motor Co Ltd Rotation direction detector for motor

Also Published As

Publication number Publication date
JP5262290B2 (en) 2013-08-14

Similar Documents

Publication Publication Date Title
US8558534B2 (en) Rotational angle detection device and electric power steering system
JP4853053B2 (en) Vehicle steering control device
JP5375059B2 (en) Sensor abnormality detection device and sensor abnormality detection method
WO2018061254A1 (en) Actuator system and abnormality detection device
JP2011235891A (en) Steering control device for vehicle
JP6005936B2 (en) Encoder and control method of encoder
JP5309951B2 (en) Rotation speed detection method
JP5262290B2 (en) Forward / reverse judgment malfunction prevention device
US20070273314A1 (en) Method for Braking an Electromotor and Electrical Drive
JP2004196128A (en) Electric power steering device
JP4876950B2 (en) Variable speed control device for motor
JP2007236102A (en) Controller of induction motor
JP2005075026A (en) Apparatus for controlling electric power steering system
JP4270151B2 (en) Motor control device and vehicle control device equipped with this device
CN112821845B (en) Electric tool control method and electric tool
JP7186161B2 (en) ELECTRIC POWER STEERING CONTROL DEVICE AND CONTROL METHOD
JP2006217754A (en) Synchronous machine drive controller
JP2001249154A (en) Disconnection detecting device for encoder and method for disconnection detection
JP6648687B2 (en) Method and apparatus for detecting motor speed in industrial vehicle
JP5266799B2 (en) Variable speed control device for motor
JP2011011567A5 (en)
JP2011078254A (en) Electric vehicle controller
KR101195728B1 (en) Torque Sensor for Considering Steering Characteristic According to Vehicle Speed, Electronic Control Unit, Electric Power Steering and Motor Control Method by Using Same
JP2008033707A (en) Position controller and its control method
KR101243017B1 (en) Method for controlling pulse input device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110111

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20121003

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20121030

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121220

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20121220

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130402

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130415

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 5262290

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150