JP5043638B2 - Rotary encoder - Google Patents

Rotary encoder Download PDF

Info

Publication number
JP5043638B2
JP5043638B2 JP2007338695A JP2007338695A JP5043638B2 JP 5043638 B2 JP5043638 B2 JP 5043638B2 JP 2007338695 A JP2007338695 A JP 2007338695A JP 2007338695 A JP2007338695 A JP 2007338695A JP 5043638 B2 JP5043638 B2 JP 5043638B2
Authority
JP
Japan
Prior art keywords
phase
monitoring
rotary encoder
signal
state
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.)
Active
Application number
JP2007338695A
Other languages
Japanese (ja)
Other versions
JP2009156842A (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.)
Koyo Electronics Industries Co Ltd
Original Assignee
Koyo Electronics Industries 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 Koyo Electronics Industries Co Ltd filed Critical Koyo Electronics Industries Co Ltd
Priority to JP2007338695A priority Critical patent/JP5043638B2/en
Publication of JP2009156842A publication Critical patent/JP2009156842A/en
Application granted granted Critical
Publication of JP5043638B2 publication Critical patent/JP5043638B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、アブソリュート型やインクリメンタル型のロータリエンコーダにかかり、特に、当該ロータリエンコーダの状態を監視すると共にその監視結果を当該ロータリエンコーダの上位装置に伝えることができるロータリエンコーダに関するものである。   The present invention relates to an absolute type or incremental type rotary encoder, and more particularly to a rotary encoder capable of monitoring the state of the rotary encoder and transmitting the monitoring result to a host device of the rotary encoder.

図8以降を参照して例えばインクリメンタル型のロータリエンコーダREを説明すると、図8は、このロータリエンコーダREの機構的な構成、図9はこのロータリエンコーダREの電気的な構成、図10は、A相信号、B相信号の波形を示す。   For example, an incremental type rotary encoder RE will be described with reference to FIG. 8 and subsequent drawings. FIG. 8 shows a mechanical configuration of the rotary encoder RE, FIG. 9 shows an electrical configuration of the rotary encoder RE, and FIG. The waveform of a phase signal and a B phase signal is shown.

図8を参照して、ロータリエンコーダREは、投光素子LEDと、複数(この例では2つ)の受光素子PDa、PDbとの間に、円周方向等間隔に投光素子LEDからの光を透過することができる複数のスリット(以下回転スリットと言う)を有する回転スリット板RSと、この回転スリット板RSの一方側に上記スリットと同様に投光素子LEDからの光を透過することができるスリット(以下固定スリットと言う)を有する固定スリット板FSとを対向配置している。   Referring to FIG. 8, the rotary encoder RE includes light from the light projecting element LED at equal intervals in the circumferential direction between the light projecting element LED and a plurality (two in this example) of light receiving elements PDa and PDb. A rotary slit plate RS having a plurality of slits (hereinafter referred to as “rotary slits”), and light from the light projecting element LED can be transmitted to one side of the rotary slit plate RS in the same manner as the slits. A fixed slit plate FS having a slit (hereinafter referred to as “fixed slit”) that can be formed is disposed oppositely.

この固定スリット板FSの固定スリットは、投光素子LEDからの光を電気角で順次90度ずつずれさせて回転スリット板RSの回転スリットを通過させて光信号を形成するようになっている。受光素子PDa、PDbで検出回路105として上記光信号を受光する。   The fixed slit of the fixed slit plate FS shifts the light from the light projecting element LED by 90 degrees sequentially in electrical angle and passes through the rotary slit of the rotary slit plate RS to form an optical signal. The optical signals are received as the detection circuit 105 by the light receiving elements PDa and PDb.

図9を参照して、上記受光素子PDa、PDbそれぞれの出力は、比較器CPa,CPbからなるA相、B相判定回路106,108で基準値(ref)と比較され、図10(a)(b)で示すようなA相、B相信号(パルス信号)が生成され、これにA相、B相信号はA相、B相出力回路107,109それぞれから出力されるようになっている。   Referring to FIG. 9, the outputs of the light receiving elements PDa and PDb are compared with the reference value (ref) by the A-phase and B-phase determination circuits 106 and 108 including the comparators CPa and CPb, respectively. A-phase and B-phase signals (pulse signals) as shown in (b) are generated, and the A-phase and B-phase signals are output from the A-phase and B-phase output circuits 107 and 109, respectively. .

以上の構成を備えたロータリエンコーダREを、例えばエレベータを電子制御する電子制御システムに組み込む場合、その乗りかごを昇降駆動する駆動用モータの回転軸にロータリエンコーダREを取り付けると共にそのロータリエンコーダREからのA相、B相信号をその上位装置である電子制御装置に入力する。電子制御装置はロータリエンコーダREからのA相、B相信号により駆動用モータを駆動制御して乗りかごを昇降制御するようになっている(例えば特許文献1参照)。この電子制御システムでは、主に、電子制御装置に内蔵する制御用CPUの制御動作により電子制御システムの安全性を図る。制御用CPUは、制御プログラムや各種制御定数や各種入力センサの動作状態に応答して各種の負荷を制御するようになっている。   When the rotary encoder RE having the above configuration is incorporated into, for example, an electronic control system that electronically controls an elevator, the rotary encoder RE is attached to the rotary shaft of a drive motor that drives the car to move up and down, and the rotary encoder RE The A-phase and B-phase signals are input to the electronic control device that is the host device. The electronic control device drives and controls the drive motor by the A-phase and B-phase signals from the rotary encoder RE to control the raising / lowering of the car (for example, see Patent Document 1). In this electronic control system, the safety of the electronic control system is mainly achieved by the control operation of the control CPU incorporated in the electronic control device. The control CPU controls various loads in response to control programs, various control constants, and operating states of various input sensors.

以上の構成において、電子制御装置側では制御用CPUにロータリエンコーダRE側の異常状態をA相、B相信号の有無、信号波形等により一定の判定を行う判定プログラムを追加搭載することが考えられるが、そのような判定プログラムの追加搭載とその判定プログラムの実行は制御用CPUに負担増となるうえに電子制御速度の遅延化やコスト増をもたらす。また、エレベータ製造側とエンコーダ製造側とが分かれていてエレベータ製造側で上記判定プログラムの追加等を行うのはロータリエンコーダREの詳細が明確でない限り困難である。まして、既に建屋等に設置済みのエレベータ装置においては、殆どの例では放置される状態となりかねない。   In the above configuration, it is conceivable that the electronic control device side additionally includes a determination program for performing a fixed determination on the abnormal state on the rotary encoder RE side based on the presence / absence of the A-phase and B-phase signals, the signal waveform, and the like. However, the additional installation of such a determination program and the execution of the determination program increase the burden on the control CPU and cause a delay in electronic control speed and an increase in cost. Moreover, it is difficult for the elevator manufacturing side and the encoder manufacturing side to be separated, and for the elevator manufacturing side to add the determination program or the like unless the details of the rotary encoder RE are clear. Moreover, in an elevator apparatus that has already been installed in a building or the like, in most cases, it may be left unattended.

このような現状下で、ロータリエンコーダREが突然的に異常にならないよう、ロータリエンコーダRE側でその状態を常時監視すると共に、その監視状態を上位装置である電子制御装置に即座に伝えることで当該電子制御装置側が所要の対応が迅速に行うことができるようにすることが望ましい。   Under such circumstances, the rotary encoder RE side constantly monitors its state so that the rotary encoder RE does not suddenly become abnormal, and immediately notifies the monitoring state to the electronic control unit, which is the host device. It is desirable that the electronic control device can perform the required response quickly.

そこで、本出願人は、ロータリエンコーダREに監視用CPUを内蔵する一方、ロータリエンコーダREの状態を監視する項目を多数想定し、各項目ごとの監視信号を監視用CPUに取り込ませ、この監視用CPUでロータリエンコーダRE監視の処理結果を上位装置に送信することを考えている。   Accordingly, the applicant of the present invention incorporates a monitoring CPU in the rotary encoder RE, and assumes a number of items for monitoring the state of the rotary encoder RE, and causes the monitoring CPU to capture monitoring signals for each item. It is considered that the processing result of the rotary encoder RE monitoring is transmitted to the host device by the CPU.

上記した監視項目には、主電源の状態、投光素子の状態、受光素子の状態、A相、B相信号の出力回路等の内部回路の状態や、外部出力であるA相、B相信号のパルス信号の状態等、多数ある。この場合監視用CPUでは、内部回路の異常に対しては内部割込みのタイミングで監視処理し、パルス信号の異常に対しては外部割込みのタイミング(パルス信号の変化のタイミング)で監視処理しようとする場合、高速回転時には、外部割込み優先により内部割込みが影響を受けて、監視誤差が大きくなってきて、ロータリエンコーダREを組み込んだ上記電子制御システム全体に対してもその安全性や安定性に影響してくることになる。   The above monitoring items include the state of the main power supply, the state of the light emitting element, the state of the light receiving element, the state of the internal circuit such as the output circuit of the A phase and B phase signals, and the A phase and B phase signals that are external outputs. There are many pulse signal states. In this case, the monitoring CPU attempts to monitor the internal circuit abnormality at the internal interrupt timing, and to monitor the pulse signal abnormality at the external interrupt timing (pulse signal change timing). In the case of high-speed rotation, the internal interrupt is affected by the priority of the external interrupt, and the monitoring error becomes large, which affects the safety and stability of the entire electronic control system incorporating the rotary encoder RE. Will come.

そこで、本出願人は、監視用CPUの制御能力を十分に活用できるように、当該監視用CPUによる監視項目を、回転停止中では内部回路の異常監視を行い、回転動作中ではパルス信号の異常監視を行うというように監視項目を回転状態で分けることを考えている。   Therefore, in order to fully utilize the control capability of the monitoring CPU, the applicant of the present invention monitors the monitoring items of the monitoring CPU while the rotation is stopped, and monitors the abnormality of the internal circuit, and the rotation of the pulse signal is abnormal during the rotation operation. It is considered to divide the monitoring items according to the rotation state, such as monitoring.

一方、ロータリエンコーダの場合、監視用CPUの負担を避けるために、上記したA相信号とB相信号等のパルス信号のうち、例えば、A相信号を回転速度検出に用いるが、当該B相信号が何らかの異常で立ち上がりや立ち下りの変化をしなくなり、ハイレベル固定あるいはローレベル固定となると、B相信号の立ち上がりや立ち下りの変化による外部割込みが発生しなくなり、当該B相信号の異常検出ができなくなる。
特開平09−077412号公報
On the other hand, in the case of a rotary encoder, in order to avoid the burden on the monitoring CPU, among the above-described pulse signals such as the A phase signal and the B phase signal, for example, the A phase signal is used for rotational speed detection. Will not change in rising or falling due to some abnormality, and if it is fixed at high level or fixed at low level, external interrupts will not occur due to changes in rising or falling of B phase signal, and abnormality detection of the B phase signal will be detected become unable.
Japanese Patent Application Laid-Open No. 09-077412

そこで、本発明においては、ロータリエンコーダに監視用CPUを実装して、当該ロータリエンコーダの状態を監視する場合において、その監視用CPUの負担を軽減できるようにして、上記した電子制御システム全体の安全性、安定性の向上を図ることを、解決すべき課題とする。   Therefore, in the present invention, when a monitoring CPU is mounted on the rotary encoder and the state of the rotary encoder is monitored, the burden on the monitoring CPU can be reduced, so that the safety of the entire electronic control system described above can be reduced. Improvement of stability and stability is a problem to be solved.

本発明によるロータリエンコーダは、投光素子と、これと対向配置された複数の受光素子と、上記投光素子と受光素子との間に配置されて被検出軸と同期回転する円周方向複数の回転スリットと、上記回転スリットに対する上記投光素子からの投光の通過、遮断に応じた各受光素子の出力から当該ロータリエンコーダの回転状態の検出に用いる90度位相差がある少なくとも2つのパルス信号(A相、B相信号)を生成出力する出力回路と、回転停止中と回転動作中とで異なる監視項目で当該ロータリエンコーダ内部の状態監視を行う監視用CPUと、を備え、
上記監視用CPUは、少なくとも2つのパルス信号の内1つのパルス信号(A相信号)に基づいてロータリエンコーダが非回転か回転状態かの判定を行い、非回転と判定するときは、回転停止時の監視項目に対する監視を行い、回転と判定するときは、少なくとも2つのパルス信号(A相、B相信号)の位相差が所定値以上であればフェイル出力を上位装置に出力する処理を行い、上記位相差が所定値未満であれば、以降のパルス信号の演算処理を行うと共にこの演算した結果が所定範囲外であれば、フェイル出力を上位装置に出力する処理を行う、ことを特徴とするものである。
A rotary encoder according to the present invention includes a light projecting element, a plurality of light receiving elements disposed opposite to the light projecting element, and a plurality of circumferential directions that are disposed between the light projecting element and the light receiving element and rotate synchronously with a detected shaft. A rotary slit and at least two pulse signals having a 90-degree phase difference used to detect the rotational state of the rotary encoder from the output of each light receiving element according to the passage and blocking of the light projection from the light projecting element to the rotary slit An output circuit for generating and outputting (A-phase and B-phase signals), and a monitoring CPU for monitoring the internal state of the rotary encoder with different monitoring items during rotation stoppage and during rotation operation,
The monitoring CPU determines whether the rotary encoder is non-rotating or rotating based on one pulse signal (A-phase signal) of at least two pulse signals. When the monitoring item is monitored and the rotation is determined, if the phase difference between at least two pulse signals (A phase, B phase signal) is equal to or greater than a predetermined value, a process of outputting a fail output to the host device is performed. If the phase difference is less than a predetermined value, the subsequent pulse signal calculation process is performed, and if the calculated result is out of the predetermined range, a fail output is output to the host device. Is.

この場合、上記監視用CPUは、少なくとも2つのパルス信号の内1つのパルス信号(A相信号)の周期演算からロータリエンコーダの回転、非回転を判定することが好ましい。   In this case, it is preferable that the monitoring CPU determines the rotation or non-rotation of the rotary encoder from the period calculation of one pulse signal (A phase signal) of at least two pulse signals.

本発明では、当該ロータリエンコーダの状態監視を行う監視用CPUを内蔵すると共に、この監視用CPUでは、回転停止中と回転動作中とで異なる監視項目で当該ロータリエンコーダ内部の状態監視を行うようにしたから、回転動作中における監視用CPUの監視に対する処理負担が大きく低減できる結果、ロータリエンコーダの状態を上位装置である電子制御装置に即座に伝えて当該電子制御装置側で所要の対応が迅速に行わせることができるようになり、当該ロータリエンコーダを組み込んだ電子制御システム全体の安全性や安定性の向上に寄与できる。   In the present invention, a monitoring CPU for monitoring the state of the rotary encoder is built in, and the monitoring CPU monitors the internal state of the rotary encoder using different monitoring items when the rotation is stopped and during the rotation operation. As a result, the processing load on the monitoring CPU during the rotation operation can be greatly reduced. As a result, the state of the rotary encoder is immediately transmitted to the electronic control device, which is the host device, so that the required response can be quickly performed on the electronic control device side. As a result, it is possible to improve the safety and stability of the entire electronic control system incorporating the rotary encoder.

そして本発明では、一方のパルス信号(A相信号)を回転速度検出に用いて、A相信号の周期演算から非回転状態と判定するとき、回転停止時の監視項目に対する監視を行うようにしたので、監視用CPUでは、ロータリエンコーダが回転停止中か回転動作中かを正確に判定し、回転停止中で所要の監視項目に対する監視処理を行うことができるようになる。   In the present invention, one of the pulse signals (A phase signal) is used for rotational speed detection, and when the non-rotation state is determined from the period calculation of the A phase signal, the monitoring item at the time of rotation stop is monitored. Therefore, the monitoring CPU can accurately determine whether the rotary encoder is stopped or rotating, and can perform monitoring processing on a required monitoring item while the rotation is stopped.

また、本発明では、上記回転状態と判定した後に、A相、B相信号の位相差が所定値以上であればフェイル出力を上位装置に出力する処理を行い、上記位相差が所定値未満であれば以降のパルス信号の演算処理を行うと共にこの演算した結果が所定範囲外であれば、フェイル出力を上位装置に出力する処理を行うようにしたので、複雑な処理を行う必要なく、回転速度検出信号(A相)以外のパルス信号(B相)が何らかの異常で立ち上がりや立ち下りの変化をしなくなり、ハイレベル固定あるいはローレベル固定となっても、該当パルス信号の異常を検出し、それを上位装置に伝えることができる。   Further, in the present invention, after determining the rotation state, if the phase difference between the A-phase and B-phase signals is equal to or larger than a predetermined value, a process of outputting a fail output to the host device is performed, and the phase difference is less than the predetermined value. If there is, the subsequent pulse signal calculation process is performed, and if this calculation result is outside the predetermined range, the process of outputting the fail output to the host device is performed. Even if the pulse signal (B phase) other than the detection signal (A phase) does not change in rising or falling due to any abnormality, even if it is fixed at high level or fixed at low level, it detects the abnormality of the corresponding pulse signal, Can be transmitted to the host device.

以上から本発明では、ロータリエンコーダの状態を上位装置である電子制御装置に即座に伝えて当該電子制御装置側で所要の対応が迅速に行わせることができるようになり、当該ロータリエンコーダを組み込んだ電子制御システム全体の安全性や安定性の向上に寄与できる。   As described above, according to the present invention, the state of the rotary encoder can be immediately transmitted to the electronic control device, which is the host device, so that the required response can be quickly performed on the electronic control device side, and the rotary encoder is incorporated. This contributes to improving the safety and stability of the entire electronic control system.

本発明では、ロータリエンコーダに監視用CPUを実装して、当該ロータリエンコーダの状態を監視する場合において、その監視用CPUの負担を軽減できるようにして、上記した電子制御システム全体の安全性、安定性の向上を図ることができる。   In the present invention, when the monitoring CPU is mounted on the rotary encoder and the state of the rotary encoder is monitored, the burden on the monitoring CPU can be reduced, so that the safety and stability of the entire electronic control system described above can be reduced. It is possible to improve the performance.

以下、添付した図面を参照して、本発明の実施の形態に係るロータリエンコーダを詳細に説明する。図1は、実施の形態のロータリエンコーダREの回路ブロック構成、図2は同ロータリエンコーダREの電気的なハードウェア構成を示す。これらの図において、101は、外部端子Vcc,0Vから電源の供給を受け、ロータリエンコーダREの内部電源104を生成する電源回路、102は、電源回路101の電源を監視する電源電圧監視回路、103は、電源回路101からの電源で投光素子LEDを駆動する投光素子駆動回路、105は、受光素子PDa、PDbを含む検出回路である。検出回路105はa相、b相、ref相の信号を出力する。a相信号は受光素子PDaの出力、b相信号は受光素子PDbの出力、ref相信号は、基準信号である。106は、比較器CPaで構成されてa相信号とref相信号とを比較することでA相信号のH又はLを判定するA相判定回路、107はA相判定回路106の出力を出すA相出力回路、108は、比較器CPbで構成されてb相信号とref相信号とを比較することでB相信号のH又はLを判定するB相判定回路、109はB相判定回路108の出力を出すB相出力回路、110は、検出回路105出力から受光素子PDa、PDbの動作を判定する受光素子動作判定回路である。   Hereinafter, a rotary encoder according to an embodiment of the present invention will be described in detail with reference to the accompanying drawings. FIG. 1 shows a circuit block configuration of the rotary encoder RE of the embodiment, and FIG. 2 shows an electrical hardware configuration of the rotary encoder RE. In these drawings, reference numeral 101 denotes a power supply circuit that receives supply of power from the external terminals Vcc and 0 V and generates the internal power supply 104 of the rotary encoder RE. Reference numeral 102 denotes a power supply voltage monitoring circuit that monitors the power supply of the power supply circuit 101. Is a light projecting element driving circuit for driving the light projecting element LED with power from the power supply circuit 101, and 105 is a detection circuit including the light receiving elements PDa and PDb. The detection circuit 105 outputs a-phase, b-phase, and ref-phase signals. The a phase signal is the output of the light receiving element PDa, the b phase signal is the output of the light receiving element PDb, and the ref phase signal is the reference signal. Reference numeral 106 denotes a comparator CPa, which compares the a-phase signal with the ref-phase signal to determine H or L of the A-phase signal, and 107 denotes an output A of the A-phase determination circuit 106. The phase output circuit 108 includes a comparator CPb, and compares the b-phase signal with the ref-phase signal to determine H or L of the B-phase signal. 109 denotes the B-phase determination circuit 108. A phase B output circuit 110 for outputting an output is a light receiving element operation determination circuit for determining the operation of the light receiving elements PDa and PDb from the output of the detection circuit 105.

そして、111は監視用CPUであり、この監視用CPU111のAD変換ポートA/Dには、電源電圧監視回路102から電源電圧監視信号(1)、投光素子LEDの駆動回路監視信号(2)、受光素子PDaのa相信号(3)、受光素子PDbのb相信号(4)、ref相信号(5)が入力され、汎用ポートI/Oには、A相信号の判定信号(6)、B相信号の判定信号(7)、が入力され、割り込みポートINTには、A相出力回路107の出力信号OUT A(8)、B相出力回路108の出力信号OUT B(9)が入力される。   Reference numeral 111 denotes a monitoring CPU. A power supply voltage monitoring signal (1) from the power supply voltage monitoring circuit 102 and a drive circuit monitoring signal (2) for the light emitting element LED are connected to the AD conversion port A / D of the monitoring CPU 111. The a-phase signal (3) of the light-receiving element PDa, the b-phase signal (4) of the light-receiving element PDb, and the ref-phase signal (5) are input, and the A-phase signal determination signal (6) is input to the general-purpose port I / O. , A determination signal (7) for the B phase signal is input, and the output signal OUT A (8) of the A phase output circuit 107 and the output signal OUT B (9) of the B phase output circuit 108 are input to the interrupt port INT. Is done.

監視用CPU111は、図3で示す監視項目表に従いロータリエンコーダREを監視する。この監視項目表において、ロータリエンコーダREの監視項目を内部回路監視と、パルス信号監視とに大きくわける。そして内部回路の監視項目をさらに電源電圧異常、投光素子電流異常、受光素子出力異常、出力回路異常に細分し、パルス信号監視をさらに、デューティ異常、高速異常に分ける。   The monitoring CPU 111 monitors the rotary encoder RE according to the monitoring item table shown in FIG. In this monitoring item table, the monitoring items of the rotary encoder RE are roughly divided into internal circuit monitoring and pulse signal monitoring. The monitoring items of the internal circuit are further divided into power supply voltage abnormality, light emitting element current abnormality, light receiving element output abnormality, and output circuit abnormality, and pulse signal monitoring is further divided into duty abnormality and high speed abnormality.

内部回路監視において、投光素子LEDでは図外の定電流回路の電圧監視信号(2)により判定し、受光素子では受光素子動作判定回路110からの信号(3)−(5)により、例えば、受光素子PDa,PDbの電源コモン端子CTが接続されているか否かとか、受光素子PDa,PDbのワイヤボンディングが切断されているか否かとか、投光素子LEDの初期故障等を判定する。また、出力回路では、各相判定回路106,108の判定信号(6)(7)と、出力回路107,109の出力信号(8)(9)との比較で判定する。   In the internal circuit monitoring, the light emitting element LED makes a determination based on a voltage monitoring signal (2) of a constant current circuit (not shown), and the light receiving element uses a signal (3)-(5) from the light receiving element operation determining circuit 110, for example, It is determined whether or not the power supply common terminal CT of the light receiving elements PDa and PDb is connected, whether or not the wire bonding of the light receiving elements PDa and PDb is cut, an initial failure of the light projecting element LED, and the like. In the output circuit, the determination is made by comparing the determination signals (6) and (7) of the respective phase determination circuits 106 and 108 with the output signals (8) and (9) of the output circuits 107 and 109.

パルス信号監視において、回転スリット板RSが回転動作している場合でA相信号、B相信号の出力周期をカウントし、そのカウント結果からA相信号、B相信号のデューティの正常、異常を判定する。このデューティ異常では、A相信号、B相信号のデューティが規定範囲か否かにより判定する。また、カウント結果より想定以上の回転動作(高速回転)をしている場合、高速異常として判定する。   In the pulse signal monitoring, when the rotary slit plate RS is rotating, the output period of the A phase signal and the B phase signal is counted, and the normality and abnormality of the duty of the A phase signal and the B phase signal are determined from the count result. To do. In this duty abnormality, the determination is made based on whether the duty of the A-phase signal and the B-phase signal is within a specified range. Moreover, when the rotation operation (high-speed rotation) more than expected is performed from the count result, it is determined as a high-speed abnormality.

以上により、監視用CPU111では、内部回路の監視に関しては、回転停止中(図3表の○印)に、パルス信号の監視に関しては、回転動作中(図3表の×印)に監視する。そして、監視用CPU111は、回転停止中には、内部回路の監視項目に切り替えて上位装置である電子制御装置207に当該内部回路が正常か異常かの監視結果を伝える制御を行い、回転動作中ではパルス信号が正常に出力されているか否かの監視項目に切り替えて電子制御装置207にパルス信号が正常か異常かの監視結果を伝える制御を行う。この場合、監視用CPU111は、フェイル(FAIL)出力回路112を介して電子制御装置207に、上記監視結果を例えばフェイル信号として出力する。   As described above, the monitoring CPU 111 monitors the internal circuit while the rotation is stopped (circle mark in the table of FIG. 3), and monitors the pulse signal during the rotation operation (marked by the mark x in the table of FIG. 3). Then, when the rotation is stopped, the monitoring CPU 111 switches to the monitoring item of the internal circuit and controls the electronic control device 207, which is a host device, to transmit a monitoring result of whether the internal circuit is normal or abnormal, and is rotating. Then, control is performed to switch to the monitoring item of whether or not the pulse signal is normally output and to notify the electronic control unit 207 of the monitoring result of whether the pulse signal is normal or abnormal. In this case, the monitoring CPU 111 outputs the monitoring result as, for example, a fail signal to the electronic control unit 207 via the fail (FAIL) output circuit 112.

図4を参照して実施の形態のロータリエンコーダREを組み込んだ電子制御システムを説明する。この電子制御システムは、エレベータ装置を制御するシステムであり、エレベータ装置201は、巻上機202を駆動用モータ203により駆動してロープ204を介して乗りかご205を昇降させる一方、被検出軸である駆動用モータ203の回転軸206に取り付けた実施の形態のロータリエンコーダREからの検出信号であるA、B相両信号を電子制御装置207に入力する。電子制御装置207は、制御用CPUを内蔵しており、ロータリエンコーダREからの検出信号により駆動用モータ203を駆動制御するようになっている。電子制御装置207は、制御用CPU208を内蔵していて、ロータリエンコーダREからの信号を処理するようになっている。    An electronic control system incorporating the rotary encoder RE of the embodiment will be described with reference to FIG. This electronic control system is a system for controlling an elevator apparatus. The elevator apparatus 201 drives a hoisting machine 202 by a driving motor 203 to raise and lower a passenger car 205 via a rope 204, while using a detected shaft. Both A and B phase signals, which are detection signals from the rotary encoder RE of the embodiment attached to the rotating shaft 206 of a certain driving motor 203, are input to the electronic control unit 207. The electronic control device 207 has a built-in control CPU, and drives and controls the drive motor 203 by a detection signal from the rotary encoder RE. The electronic control unit 207 includes a control CPU 208 and processes a signal from the rotary encoder RE.

そして、実施の形態のロータリエンコーダREの場合、監視用CPU111は、回転停止中では、汎用ポートI/Oに取り込んだ信号(6)(7)や、AD変換ポートA/Dに取り込んだ信号(1)−(5)で上記図3の表に従う正常、異常の判定処理すると共に、その判定結果を電子制御装置207に伝える一方、回転動作中では、外部割り込み端子INTに取り込んだ信号(8)(9)で上記図3の表に従う正常、異常の判定処理すると共に、その判定結果を電子制御装置207に伝える。   In the case of the rotary encoder RE according to the embodiment, when the rotation is stopped, the monitoring CPU 111 receives the signals (6) and (7) taken into the general-purpose port I / O and the signals taken into the AD conversion port A / D ( 1)-(5), normality / abnormality determination processing according to the table of FIG. 3 is performed and the determination result is transmitted to the electronic control unit 207. On the other hand, during rotation, the signal (8) taken into the external interrupt terminal INT In (9), normality / abnormality determination processing according to the table of FIG. 3 is performed, and the determination result is transmitted to the electronic control unit 207.

次に図5を参照して、回転停止中における内部割込みを説明すると、監視用CPU111は、回転停止中では、一定時間tごとの内部割込みで上記図3の表にそれぞれ示す電源電圧監視、投光素子電圧監視、基準電圧(PDref)監視、受光素子PDa電圧監視、受光素子PDb電圧監視等のためのAD変換を行うと共にそのAD変換値を保存し、タイマ出力がローレベルからハイレベルになると、直近のAD変換値(○印)を取り込む。これを所定回数繰り返すと共にそれらの平均値を算出し、算出した平均値を判定値と比較することで、異常状態を判定する。タイマがハイレベルである期間はそれら判定のための処理時間である。   Next, with reference to FIG. 5, the internal interrupt during the rotation stop will be described. When the rotation is stopped, the monitoring CPU 111 monitors the power supply voltage shown in the table of FIG. When AD conversion is performed for optical element voltage monitoring, reference voltage (PDref) monitoring, light receiving element PDa voltage monitoring, light receiving element PDb voltage monitoring, etc., and the AD conversion value is stored, and when the timer output changes from low level to high level The most recent AD conversion value (◯ mark) is taken in. While repeating this a predetermined number of times, the average value thereof is calculated, and the calculated average value is compared with the determination value to determine the abnormal state. The period during which the timer is at a high level is the processing time for these determinations.

また、回転動作中では、監視用CPU111は、図3の表にそれぞれ示す監視項目に対する監視処理を行う。   Further, during the rotation operation, the monitoring CPU 111 performs monitoring processing for the monitoring items shown in the table of FIG.

以上のように実施の形態では、ロータリエンコーダREの監視項目を回転停止中では内部割込みで信号処理する監視項目(図3表の内部回路監視)に、回転動作中では外部割込みで信号処理する項目(図3表のパルス信号監視)に切り換えるようにしたので、回転動作中において、内部割込みによる監視項目が外部割込みに影響されずに行うことができるようになる。   As described above, in the embodiment, the monitoring item of the rotary encoder RE is the monitoring item (internal circuit monitoring in the table of FIG. 3) that performs signal processing when the rotation is stopped, and the item that is processed by external interrupt during the rotation operation. Since switching to (pulse signal monitoring in the table of FIG. 3), the monitoring item by the internal interrupt can be performed without being influenced by the external interrupt during the rotation operation.

次に、図6を参照して、A相信号と、B相信号の信号波形を示す。図6(a)は、A相、B相信号が正常なときの位相差(外部割込みのタイミング)関係を示し、図6(b)は、A相信号が正常で、B相信号がハイレベルとなって異常なときの位相差(外部割込みのタイミング)関係を示す。図6(a)で示すように、A相、B相信号が共に正常なときでは、A相信号のデューティ100%に対してA相、B相信号間の位相差(外部割込みのタイミング)は25%に相当する。なお、図6(b)では、B相信号がハイレベルとなっている異常なときのA相信号の立ち上がりから立ち下りまでの位相差(外部割込みのタイミング)は50%に相当することを示す。   Next, referring to FIG. 6, signal waveforms of the A-phase signal and the B-phase signal are shown. 6A shows the phase difference (external interrupt timing) relationship when the A-phase and B-phase signals are normal, and FIG. 6B shows that the A-phase signal is normal and the B-phase signal is at a high level. This indicates the phase difference (external interrupt timing) relationship when there is an abnormality. As shown in FIG. 6A, when both the A-phase and B-phase signals are normal, the phase difference between the A-phase and B-phase signals (external interrupt timing) is 100% of the duty of the A-phase signal. It corresponds to 25%. FIG. 6B shows that the phase difference (external interrupt timing) from the rising edge to the falling edge of the A-phase signal when the B-phase signal is high is abnormal corresponds to 50%. .

以上において、実施の形態の動作を図7を参照して説明する。なお、実施の形態では、A相信号を回転速度検出に用いるものとする。ロータリエンコーダREの電源を投入して監視を開始すると、まず、ステップn1では、ロータリエンコーダREが回転しているか回転していないかを判定する。この回転は、A相信号の周期を演算することにより行う。すなわち、A相信号の例えば立ち上がりから次の立ち上がりまでの1周期の間をビットカウンタでカウントする。なお、このようなカウンタを用いての周期演算は周知であるので、説明を略する。   The operation of the embodiment will be described with reference to FIG. In the embodiment, the A phase signal is used for rotational speed detection. When monitoring is started by turning on the power of the rotary encoder RE, first, in step n1, it is determined whether the rotary encoder RE is rotating or not rotating. This rotation is performed by calculating the period of the A phase signal. That is, the bit counter counts, for example, one period from the rising edge to the next rising edge of the A phase signal. In addition, since the period calculation using such a counter is known, description is abbreviate | omitted.

監視用CPU111は、ステップn1でロータリエンコーダREが非回転であると判定すると、ステップn2でロータリエンコーダREを停止モードとし、図3の表に従う回転停止中での監視項目に対する監視処理を実施する。   If the monitoring CPU 111 determines that the rotary encoder RE is not rotating at step n1, the monitoring CPU 111 sets the rotary encoder RE to the stop mode at step n2, and performs monitoring processing for the monitoring items during rotation stop according to the table of FIG.

監視用CPU111は、ステップn1でロータリエンコーダREが回転動作中であると判定すると、ステップn3でA相、B相信号の位相差を演算する。この位相差演算は外部割込み処理になっている。この位相差は図6で説明した位相差である。   If the monitoring CPU 111 determines in step n1 that the rotary encoder RE is rotating, it calculates the phase difference between the A-phase and B-phase signals in step n3. This phase difference calculation is an external interrupt process. This phase difference is the phase difference described with reference to FIG.

監視用CPU111は、ステップn3で位相差を演算した後は、ステップn4で位相差が例えば45%以上のときは、位相差が異常であり、yesと判定してステップn5でフェイル(FAIL)出力を上位装置である電子制御装置207の制御用CPU208に出力する。   After calculating the phase difference at step n3, the monitoring CPU 111 determines that the phase difference is abnormal when the phase difference is, for example, 45% or more at step n4, and outputs a fail (FAIL) output at step n5. Is output to the control CPU 208 of the electronic control device 207, which is the host device.

監視用CPU111は、ステップn4で位相差が例えば45%未満のときは、位相差が正常であり、noと判定してステップn6で以降のデューティ演算を外部割込み処理で行うと共に、ステップn7で、このデューティ演算値が所定範囲外(例えば30%以下か70%以上か)か否かの判定を行い、デューティ演算値が所定範囲外のときはデューティが異常であり、yesと判定して、ステップn8でフェイル(FAIL)出力を上位装置である電子制御装置207の制御用CPU208に出力する。また、監視用CPU111は、デューティ演算値が所定範囲内のときはデューティが正常であるとして、次(NEXT)の監視項目に対する監視処理を続行する。   When the phase difference is less than 45%, for example, in step n4, the monitoring CPU 111 determines that the phase difference is normal, determines no, performs the subsequent duty calculation in step n6 by external interrupt processing, and in step n7, It is determined whether or not the duty calculation value is outside a predetermined range (for example, 30% or less or 70% or more). If the duty calculation value is outside the predetermined range, the duty is abnormal and it is determined as yes. At n8, a fail (FAIL) output is output to the control CPU 208 of the electronic control device 207, which is a host device. Further, the monitoring CPU 111 continues the monitoring process for the next (NEXT) monitoring item, assuming that the duty is normal when the duty calculation value is within the predetermined range.

以上説明したように実施の形態では、監視用CPU111を内蔵し、個の内蔵した監視用CPU111により、A相信号の周期演算から非回転状態と判定するとき、回転停止モードとして回転停止時の監視項目である内部回路に対する監視を行い、回転状態と判定するときは、A相、B相信号の位相差が所定値以上であればフェイル出力を電子制御装置207に出力する処理を行い、位相差が所定値未満であれば以降のデューティを演算する処理を行うと共にこの演算したデューティが所定範囲外であれば、フェイル出力を電子制御装置207に出力する処理を行うので、監視用CPU111の監視に対する処理負担が大きく低減できると共に該当パルス信号の異常を確実に検出することができる結果、ロータリエンコーダREの状態を電子制御装置207に伝えて当該電子制御装置207側で所要の対応が迅速に行わせることができるようになり、ロータリエンコーダREを組み込んだ電子制御システム全体の安全性や安定性の向上に寄与できる。   As described above, in the embodiment, the monitoring CPU 111 is incorporated, and when the non-rotation state is determined from the period calculation of the A-phase signal by the built-in monitoring CPU 111, the rotation stop mode is monitored as the rotation stop mode. When monitoring the internal circuit as an item and determining the rotation state, if the phase difference between the A-phase and B-phase signals is equal to or greater than a predetermined value, a process of outputting a fail output to the electronic control unit 207 is performed. If the calculated duty is outside the predetermined range, a process of outputting a fail output to the electronic control unit 207 is performed if the calculated duty is outside the predetermined range. The processing load can be greatly reduced and the abnormality of the corresponding pulse signal can be reliably detected. Required corresponding with the electronic control device 207 side tell your device 207 will be able to quickly take place, it contributes to the improvement of the safety and stability of the entire electronic control system incorporating the rotary encoder RE.

図1は本発明の実施の形態に係るロータリエンコーダの概略構成を示す図である。FIG. 1 is a diagram showing a schematic configuration of a rotary encoder according to an embodiment of the present invention. 図2はロータリエンコーダの電気的な構成を示すである。FIG. 2 shows the electrical configuration of the rotary encoder. 図3は監視用CPUによる監視項目を示す表図である。FIG. 3 is a table showing monitoring items by the monitoring CPU. 図4は実施の形態のロータリエンコーダを組み込んだ電子制御システムの構成を示す図である。FIG. 4 is a diagram showing a configuration of an electronic control system in which the rotary encoder of the embodiment is incorporated. 図5はロータリエンコーダ回転停止中での内部割込みによる監視タイミングを示す図である。FIG. 5 is a diagram showing the monitoring timing by an internal interrupt while the rotary encoder rotation is stopped. 図6(a)はA相、B相信号の正常時での両信号の位相差関係を示す図、図6(b)はB相信号異常時での両信号の位相差関係を示す図である。6A is a diagram showing a phase difference relationship between both signals when the A-phase and B-phase signals are normal, and FIG. 6B is a diagram showing a phase difference relationship between both signals when the B-phase signal is abnormal. is there. 図7は実施の形態のロータリエンコーダの動作説明に供するフローチャートである。FIG. 7 is a flowchart for explaining the operation of the rotary encoder according to the embodiment. 図8はロータリエンコーダの一般的な構成を示す図である。FIG. 8 is a diagram showing a general configuration of the rotary encoder. 図9は従来のロータリエンコーダの電気的な構成を示す図である。FIG. 9 is a diagram showing an electrical configuration of a conventional rotary encoder. 図10はA相信号、B相信号の信号波形を示す図である。FIG. 10 is a diagram showing signal waveforms of the A phase signal and the B phase signal.

符号の説明Explanation of symbols

101 電源回路
102 電源電圧監視回路
103 投光素子駆動回路
104 内部電源
105 検出回路
106 A相判定回路
107 A相出力回路
108 B相判定回路
109 B相出力回路
111 監視用CPU
201 エレベータ装置
203 駆動用モータ
207 電子制御装置(上位装置)
DESCRIPTION OF SYMBOLS 101 Power supply circuit 102 Power supply voltage monitoring circuit 103 Emitting element drive circuit 104 Internal power supply 105 Detection circuit 106 A phase determination circuit 107 A phase output circuit 108 B phase determination circuit 109 B phase output circuit 111 Monitoring CPU
201 Elevator device 203 Motor 207 for driving Electronic control device (host device)

Claims (2)

投光素子と、
上記投光素子と対向配置された複数の受光素子と、
上記投光素子と上記各受光素子との間に配置されて被検出軸と同期回転する円周方向複数の回転スリットと、
上記回転スリットに対する上記投光素子からの投光の通過、遮断に応じた上記各受光素子の出力から当該ロータリエンコーダの回転状態の検出に用いる90度位相差がある少なくとも2つのパルス信号(A相、B相信号)を生成出力する出力回路と、
回転停止中と回転動作中とで異なる監視項目で当該ロータリエンコーダ内部の状態監視を行う監視用CPUと、を備え、
上記監視用CPUは、少なくとも2つのパルス信号の内1つのパルス信号(A相信号)に基づいて当該ロータリエンコーダが非回転状態か回転状態かの判定を行い、上記非回転状態と判定するときは、回転停止時の監視項目に対する監視を行い、上記回転状態と判定するときは、上記少なくとも2つのパルス信号(A相、B相信号)の位相差が所定値以上であればフェイル出力を上位装置に出力する処理を行い、上記位相差が所定値未満であれば、以降のパルス信号の演算処理を行うと共にこの演算した結果が所定範囲外であれば、上記フェイル出力を上記上位装置に出力する処理を行う、ようになっているロータリエンコーダ。
A light emitting element;
A plurality of light receiving elements arranged opposite to the light projecting elements;
A circumferential plurality of rotary slits which rotates synchronously with the detection axis is disposed between the light projecting element and the light receiving elements,
Passage of light projected from the light projecting element with respect to the rotary slit, at least two pulse signals is 90 degrees phase difference using the output of the light receiving elements corresponding to the cut-off to the detection of the rotation state of the rotary encoder (A Phase Output circuit for generating and outputting a B-phase signal),
A monitoring CPU for monitoring the internal state of the rotary encoder with different monitoring items during rotation stoppage and during rotation operation,
The monitoring CPU, a determination the rotary encoder of whether the non-rotating state rotational state based on one of the pulse signals of the at least two pulse signals (A-phase signal), when determined that the non-rotating state , monitors for monitoring item during rotation stop, when determining the above rotational state, said at least two pulse signals (a-phase, B-phase signal) the phase difference is the higher-level device fail output equal to or greater than a predetermined value performs a process of outputting to, if the phase difference is less than the predetermined value, if the calculation result is out of the predetermined range performs arithmetic processing after the pulse signal, and outputs the fail output to the host apparatus A rotary encoder designed to perform processing.
上記監視用CPUは、上記少なくとも2つのパルス信号の内1つのパルス信号(A相信号)の周期演算から当該ロータリエンコーダの上記回転状態上記非回転状態を判定する、請求項1に記載のロータリエンコーダ。 The monitoring CPU, said at least two of the rotating state from the period calculation of the rotary encoder of one pulse signal of the pulse signal (A-phase signal), determines the non-rotation state, the rotary of Claim 1 Encoder.
JP2007338695A 2007-12-28 2007-12-28 Rotary encoder Active JP5043638B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007338695A JP5043638B2 (en) 2007-12-28 2007-12-28 Rotary encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007338695A JP5043638B2 (en) 2007-12-28 2007-12-28 Rotary encoder

Publications (2)

Publication Number Publication Date
JP2009156842A JP2009156842A (en) 2009-07-16
JP5043638B2 true JP5043638B2 (en) 2012-10-10

Family

ID=40961003

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007338695A Active JP5043638B2 (en) 2007-12-28 2007-12-28 Rotary encoder

Country Status (1)

Country Link
JP (1) JP5043638B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0977412A (en) * 1995-09-14 1997-03-25 Mitsubishi Denki Bill Techno Service Kk Failure restoration device for elevator

Also Published As

Publication number Publication date
JP2009156842A (en) 2009-07-16

Similar Documents

Publication Publication Date Title
US8659254B2 (en) Servo system, servo motor driving device, safety unit and method for controlling servo system
US20130240719A1 (en) Rotary encoder and method of detecting abnormality of rotary encoder
JP6580258B2 (en) Electronic control device and operation control method thereof
JP2019161759A (en) Motor drive system
JP5043639B2 (en) Rotary encoder
JP6672804B2 (en) Rotation angle detector
JP5043636B2 (en) Rotary encoder
JP5043638B2 (en) Rotary encoder
JP6641920B2 (en) Power converter
JP5079622B2 (en) Rotary encoder
JP5089296B2 (en) Rotary encoder for elevator apparatus and elevator apparatus
JP5043640B2 (en) Rotary encoder
TWI801821B (en) Conveyor system, input circuit
JP2010169556A (en) Speed monitoring device
JP5301814B2 (en) Rotary encoder and electronic control system
JP2010133330A (en) Fan monitoring controller
KR20170091351A (en) Apparatus and method for controlling steering motor
JP2007288829A (en) Method and device for detecting abnormality of machine
JP5274816B2 (en) Rotary encoder and electronic control system
JP2008292176A (en) Control system using rotary encoder and rotary encoder with self-diagnosis function
JP5043566B2 (en) Elevator equipment
JP5804866B2 (en) Elevator encoder monitoring apparatus and elevator encoder monitoring method
KR102188822B1 (en) Apparatus and method for detecting angle sensor failure of motor for gear actuator
JP5166002B2 (en) Electronic control system and rotary encoder used therefor
JP5043637B2 (en) Method for judging output state of light receiving element in rotary encoder

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20101227

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120419

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120508

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120607

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: 20120703

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120712

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 5043638

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20150720

Year of fee payment: 3

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313532

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250