[go: up one dir, main page]

JPH08247789A - Encoder signal output method - Google Patents

Encoder signal output method

Info

Publication number
JPH08247789A
JPH08247789A JP4993195A JP4993195A JPH08247789A JP H08247789 A JPH08247789 A JP H08247789A JP 4993195 A JP4993195 A JP 4993195A JP 4993195 A JP4993195 A JP 4993195A JP H08247789 A JPH08247789 A JP H08247789A
Authority
JP
Japan
Prior art keywords
encoder
self
identification number
signal
power supply
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.)
Pending
Application number
JP4993195A
Other languages
Japanese (ja)
Inventor
Shigeo Seki
重夫 関
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.)
Tamagawa Seiki Co Ltd
Original Assignee
Tamagawa Seiki 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 Tamagawa Seiki Co Ltd filed Critical Tamagawa Seiki Co Ltd
Priority to JP4993195A priority Critical patent/JPH08247789A/en
Publication of JPH08247789A publication Critical patent/JPH08247789A/en
Pending legal-status Critical Current

Links

Landscapes

  • Transmission And Conversion Of Sensor Element Output (AREA)
  • Analogue/Digital Conversion (AREA)

Abstract

(57)【要約】 【目的】 本発明はエンコーダ信号出力方法に関し、特
に、複数のエンコーダをバスラインで接続し、リクエス
ト信号に基づいて自己認識番号とエンコーダ信号を出力
できるようにすることを目的とする。 【構成】 本発明によるエンコーダ信号出力方法は、リ
クエスト信号と自己認識番号が一致した場合にはエンコ
ーダ信号(6a)と自己認識番号(30)を出力し、これらが不
一致の場合にはリクエスト信号の受信待機状態とする構
成がある。
(57) [Summary] [Object] The present invention relates to an encoder signal output method, and more particularly, it is an object of the present invention to connect a plurality of encoders by a bus line and output a self-identification number and an encoder signal based on a request signal. And The encoder signal output method according to the present invention outputs the encoder signal (6a) and the self-identification number (30) when the request signal and the self-identification number match, and outputs the encoder signal (6a) and the self-identification number (30) when they do not match. There is a configuration in which a reception standby state is set.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、エンコーダ信号出力方
法に関し、特に、複数のエンコーダをバスラインで接続
し、リクエスト信号に基づいて自己認識番号とエンコー
ダ信号を出力できるようにするための新規な改良に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an encoder signal output method, and more particularly to a novel encoder for connecting a plurality of encoders by a bus line and outputting a self-identification number and an encoder signal based on a request signal. Regarding improvement.

【0002】[0002]

【従来の技術】従来、用いられていたこの種のエンコー
ダ信号出力方法としては、一般に、複数のエンコーダを
共通のバスラインで接続し、予め設定されたエンコーダ
の自己認識番号を出力することができるのみで、リクエ
スト信号により自己認識番号をエンコーダ内部のメモリ
ーには設定(書き込み)していなかった。
2. Description of the Related Art As a conventional encoder signal output method of this type, a plurality of encoders can be connected by a common bus line to output a preset self-identification number of the encoder. However, the self-identification number was not set (written) in the memory inside the encoder by the request signal.

【0003】[0003]

【発明が解決しようとする課題】従来のエンコーダ信号
出力方法は、以上のように構成されていたため、次のよ
うな課題が存在していた。すなわち、自己認識番号をリ
クエスト信号によりエンコーダ内蔵のメモリー内に記憶
させておくことができず、多くのエンコーダを任意の自
己認識番号を外部から付与して制御することが不可能で
あった。また、リクエスト信号に含まれる自己認識番号
と、自らの自己認識番号の一致か否かを認識し、データ
通信を行う等の制御することが不可能であった。
Since the conventional encoder signal output method is configured as described above, there are the following problems. That is, the self-identification number cannot be stored in the memory built in the encoder by the request signal, and it is impossible to control many encoders by externally assigning an arbitrary self-identification number. In addition, it is impossible to control whether data communication is performed by recognizing whether or not the self-identification number included in the request signal matches the self-identification number of the user.

【0004】本発明は、以上のような課題を解決するた
めになされたもので、特に、複数のエンコーダをバスラ
インで接続し、リクエスト信号に基づいて自己認識番号
とエンコーダ信号を出力できるようにしたエンコーダ信
号出力方法を提供することを目的とする。
The present invention has been made to solve the above problems, and in particular, enables a plurality of encoders to be connected by a bus line so that a self-identification number and an encoder signal can be output based on a request signal. It is an object of the present invention to provide a method of outputting an encoder signal.

【0005】[0005]

【課題を解決するための手段】本発明によるエンコーダ
信号出力方法は、バスラインを介して接続され自己認識
番号を有する複数のエンコーダからのエンコーダ信号
を、外部からのリクエスト信号によって出力するエンコ
ーダ信号出力方法において、前記リクエスト信号と前記
自己認識番号が一致した場合には前記エンコーダ信号と
前記自己認識番号を出力し、前記リクエスト信号と前記
自己認識番号が不一致の場合には前記リクエスト信号の
受信待機状態とする方法である。
An encoder signal output method according to the present invention outputs an encoder signal from a plurality of encoders having a self-identification number, which are connected via a bus line, by a request signal from the outside. In the method, when the request signal and the self-identification number match, the encoder signal and the self-identification number are output, and when the request signal and the self-identification number do not match, the request signal reception standby state Is the method.

【0006】さらに詳細には、前記エンコーダ信号及び
自己認識番号をシリアル信号として出力する方法であ
る。
More specifically, it is a method of outputting the encoder signal and the self-identification number as a serial signal.

【0007】さらに詳細には、複数の前記リクエスト信
号の中からエンコーダ自己認識設定コマンドを認識し、
前記エンコーダのメモリーに前記自己認識番号を記憶す
る方法である。
More specifically, the encoder self-recognition setting command is recognized from among the plurality of request signals,
A method of storing the self-identification number in the memory of the encoder.

【0008】さらに詳細には、前記エンコーダは、主電
源とバッテリーが並列接続され、前記主電源がオフ又は
電圧降下時に前記主電源回路をオフとし、コンデンサよ
りなる無停電電源を用い、前記コンデンサの電圧が前記
バッテリーの電圧以下となった時に前記バッテリーを用
いる方法である。
More specifically, in the encoder, a main power supply and a battery are connected in parallel, the main power supply circuit is turned off when the main power supply is turned off or a voltage drop occurs, and an uninterruptible power supply composed of a capacitor is used. A method of using the battery when the voltage becomes equal to or lower than the voltage of the battery.

【0009】[0009]

【作用】本発明によるエンコーダ信号出力方法において
は、リクエスト信号と自己認識番号が一致した場合に
は、エンコーダ信号と自己認識番号を出力し、リクエス
ト信号と自己認識番号が不一致の場合には前記リクエス
ト信号の受信待機状態とする。
In the encoder signal output method according to the present invention, when the request signal and the self-identification number match, the encoder signal and the self-identification number are output, and when the request signal and the self-identification number do not match, the request is sent. Set to the signal reception standby state.

【0010】[0010]

【実施例】以下、図面と共に本発明によるエンコーダ信
号出力方法の好適な実施例について詳細に説明する。図
1において、符号1で示されるものは光源であり、この
光源1からの光は回転円板2のスリット及び固定スリッ
ト3を経て受光素子4に入光し、この受光素子4からの
出力信号4aは、波形整形回路5で波形整形されて信号
処理部6にて周知のエンコーダとしての信号処理が施さ
れる。前記信号処理部6で信号処理されたエンコーダ信
号6aは送受信ドライバ7を経て出力端子8から出力さ
れ、外部からのリクエスト信号9aは入力端子9から入
力されて送受信ドライバ7を経て信号処理部6に入力さ
れる。なお、この信号処理部6には、エンコーダ11自
体の自己認識をするための自己認識番号10aを内蔵し
たメモリー10が設けられている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A preferred embodiment of an encoder signal output method according to the present invention will be described in detail below with reference to the drawings. In FIG. 1, reference numeral 1 is a light source, and light from this light source 1 enters a light receiving element 4 through a slit of a rotating disk 2 and a fixed slit 3 and an output signal from this light receiving element 4 is outputted. 4a is waveform-shaped by the waveform shaping circuit 5 and subjected to signal processing as a known encoder by the signal processing unit 6. The encoder signal 6a processed by the signal processing unit 6 is output from the output terminal 8 via the transmission / reception driver 7, and the request signal 9a from the outside is input from the input terminal 9 to the signal processing unit 6 via the transmission / reception driver 7. Is entered. The signal processing unit 6 is provided with a memory 10 having a self-identification number 10a for self-recognizing the encoder 11 itself.

【0011】前記信号処理部6に接続された1対の電源
線12、13には、主電源切換スイッチ14及び逆流防
止用のダイオード15が接続され、この各電源線12、
13は主電源切換スイッチ14及びダイオード15が直
列接続されるように接続されて0Vライン16との間に
外部電源17が接続され、前記送受信ドライバ7は前記
0Vライン16と一方の電源線12とに接続されてい
る。
A main power source changeover switch 14 and a backflow prevention diode 15 are connected to the pair of power source lines 12 and 13 connected to the signal processing unit 6, and the power source lines 12 and 13 are connected to each other.
A main power source change-over switch 14 and a diode 15 are connected in series so that an external power source 17 is connected between the main power source changeover switch 14 and the diode 15, and the transmission / reception driver 7 includes the 0 V line 16 and one power source line 12. It is connected to the.

【0012】前記0Vライン16と電源線13との間に
は大容量のコンデンサからなる無停電電源17及び電源
監視回路18が接続され、この電源監視回路18は電圧
レベルを検出して主電源回路切換スイッチ14のオンオ
フを行うように構成されている。前記外部電源17は、
1対の接続端子20、21間に直列接続された+3.6
Vのバッテリー22とダイオード23と、このバッテリ
ー22に並列接続された主電源回路の+5Vの主電源2
4と、接続端子20と主電源24間に接続されたスイッ
チ25とからなり、この各接続端子20、21は前記電
源線13と0Vライン16に接続されている。
An uninterruptible power supply 17 composed of a large-capacity capacitor and a power supply monitoring circuit 18 are connected between the 0V line 16 and the power supply line 13, and the power supply monitoring circuit 18 detects a voltage level and detects the main power supply circuit. The changeover switch 14 is configured to be turned on and off. The external power source 17 is
+3.6 connected in series between a pair of connection terminals 20 and 21
V battery 22 and diode 23, + 5V main power supply 2 of the main power supply circuit connected in parallel to this battery 22
4 and a switch 25 connected between the connection terminal 20 and the main power supply 24. The connection terminals 20 and 21 are connected to the power supply line 13 and the 0V line 16.

【0013】次に、動作について述べる。前記信号処理
部6におけるCPUの通信のフレームフォーマットは図
2から図6に示すように、アイドルH、コントロールフ
ィールドCF、ステータスフィールドSF、データフィ
ールドDF0、DF1‥‥‥DFn、CRCフィールドR
Fとからなり、各フィールドCF、SF、DF1n、R
Fは図3から図6で示すように構成されている。
Next, the operation will be described. As shown in FIGS. 2 to 6, the frame format of the CPU communication in the signal processing unit 6 includes an idle H, a control field CF, a status field SF, data fields DF 0 , DF 1, ... DF n , a CRC field R.
F and each field CF, SF, DF 1 to n , R
F is configured as shown in FIGS.

【0014】前記リクエスト信号(通信開始命令信号)
10aのフォーマットは図7に示すように、コントロー
ルフィールドCFのリクエストコードに図8のデータI
D0〜ID2を指定し、ステータスフィールドSFのエ
ンコーダIDコードに所定のコードを指定し、エンコー
ダ11に送信される。また、データフレームは図9に示
すように構成され、通信時間も各々設定されている。
The request signal (communication start command signal)
The format of 10a is, as shown in FIG. 7, the request code of the control field CF and the data I of FIG.
D0 to ID2 are designated, a predetermined code is designated as the encoder ID code of the status field SF, and the encoder ID code is transmitted to the encoder 11. Further, the data frame is configured as shown in FIG. 9, and the communication time is also set for each.

【0015】次に、エンコーダ11を複数個バスライン
(図示せず)を用いて制御し、各エンコーダ11のエン
コーダIDすなわち自己認識番号30を設定する場合
は、図10で示すエンコーダIDコードで示すように、
各エンコーダ11をS1〜S8とした場合、この自己認識
番号30は図10の組み合わせとなる。
Next, when a plurality of bus lines (not shown) are used to control the encoder 11 and the encoder ID of each encoder 11, that is, the self-identification number 30 is set, the encoder ID code shown in FIG. 10 is used. like,
If each encoder 11 was S 1 to S 8, the self-identification number 30 is the combination of Figure 10.

【0016】従って、複数のリクエスト信号からエンコ
ーダ自己認識設定コマンドを認識し、エンコーダ11に
内蔵したメモリー10に自己認識番号30を図10のよ
うに記憶することができる。この場合は各のエンコーダ
を1台毎に自己認識番号30を設定する。また、リクエ
スト信号に含まれる自己認識番号30とそのエンコーダ
自身の自己認識番号30を照合し、一致した場合は、こ
のリクエスト信号に応じたデータ(図示せず)を送受信
ドライバ7を介して出力することができる。また、前述
の照合が不一致の場合には、信号処理部6は次のリクエ
スト信号を受信するための受信スタンバイ状態となる。
従って、バス接続された各エンコーダ11に対し、任意
の自己認識番号30を含んだリクエスト信号でアクセス
した時、自己認識番号30が一致したエンコーダ11の
みがデータであるエンコーダ信号6aとその自己認識番
号30をシリアルデータの形式で出力することができ
る。また、各エンコーダ11の中、エンコーダ信号6a
が出力をしない他のエンコーダ11は、前述のように、
リクエスト信号受信スタンバイ状態としていることによ
り、あたかも前記バスラインから隔離される作用が得ら
れる。
Therefore, the encoder self-identification setting command can be recognized from a plurality of request signals, and the self-identification number 30 can be stored in the memory 10 built in the encoder 11 as shown in FIG. In this case, the self-identification number 30 is set for each encoder. Further, the self-identification number 30 included in the request signal is compared with the self-identification number 30 of the encoder itself, and if they match, data (not shown) corresponding to the request signal is output via the transmission / reception driver 7. be able to. If the above-mentioned collations do not match, the signal processing unit 6 enters the reception standby state for receiving the next request signal.
Therefore, when each encoder 11 connected to the bus is accessed by a request signal containing an arbitrary self-identification number 30, only the encoder 11 having the same self-identification number 30 is the encoder signal 6a and its self-identification number. 30 can be output in the form of serial data. In addition, in each encoder 11, the encoder signal 6a
The other encoder 11 that does not output
By setting the request signal reception standby state, it is possible to obtain an effect of separating from the bus line.

【0017】また、前述の外部電源17を用いている場
合、主電源24がオフ又は電圧降下時に前記主電源回路
切換スイッチ14によってオフとし、コンデンサよりな
る無停電電源17を用いて信号処理部6を作動させ、こ
の無停電電源17の電圧がバッテリー22の電圧以下と
なった時にバッテリー22を用いることにより、バッテ
リー22の寿命を延長させることができる。
When the external power supply 17 is used, the main power supply 24 is turned off by the main power supply circuit changeover switch 14 when the main power supply 24 is turned off or the voltage drops, and the signal processing unit 6 is operated by using the uninterruptible power supply 17 made of a capacitor. When the voltage of the uninterruptible power supply 17 becomes equal to or lower than the voltage of the battery 22, the battery 22 is used to extend the life of the battery 22.

【0018】[0018]

【発明の効果】本発明によるエンコーダ信号出力方法
は、以上のように構成されているため、バス接続された
複数のエンコーダにおいて、所定の自己認識番号を有す
るエンコーダのみが他のエンコーダからの影響を受ける
ことなく、独立した状態でエンコーダ信号を通信によっ
て出力させることができる。また、外部電源のバッテリ
ーをコンデンサからなる無停電電源でカバーしているた
め、バッテリーの消費を効果的に防止することができ
る。
Since the encoder signal output method according to the present invention is configured as described above, among the plurality of encoders connected to the bus, only the encoder having the predetermined self-identification number is affected by the other encoders. The encoder signal can be output by communication in an independent state without receiving the signal. Further, since the battery of the external power supply is covered by the uninterruptible power supply including the capacitor, it is possible to effectively prevent the battery consumption.

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

【図1】本発明によるエンコーダ信号出力方法を示すブ
ロック図である。
FIG. 1 is a block diagram showing an encoder signal output method according to the present invention.

【図2】通信用フレームフォーマットを示す構成図であ
る。
FIG. 2 is a configuration diagram showing a communication frame format.

【図3】コントロールフィールドCFの構成図である。FIG. 3 is a configuration diagram of a control field CF.

【図4】ステータスフィールドSFの構成図である。FIG. 4 is a configuration diagram of a status field SF.

【図5】データフィールドを示す構成図である。FIG. 5 is a configuration diagram showing a data field.

【図6】CRCフィールドRFを示す構成図である。FIG. 6 is a configuration diagram showing a CRC field RF.

【図7】リクエスト信号のフォーマットを示す構成図で
ある。
FIG. 7 is a configuration diagram showing a format of a request signal.

【図8】リクエストコードとパリティを示す構成図であ
る。
FIG. 8 is a configuration diagram showing a request code and parity.

【図9】エンコーダ信号をデータとして出力するための
データフレーム構成図である。
FIG. 9 is a data frame configuration diagram for outputting an encoder signal as data.

【図10】各エンコーダのエンコーダID(自己認識番
号)を示す構成図である。
FIG. 10 is a configuration diagram showing an encoder ID (self-identification number) of each encoder.

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

6a エンコーダ信号 11 エンコーダ 22 バッテリー 24 主電源 17 無停電電源 30 自己認識番号 6a Encoder signal 11 Encoder 22 Battery 24 Main power supply 17 Uninterruptible power supply 30 Self-identification number

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 バスラインを介して接続され自己認識番
号(30)を有する複数のエンコーダ(11)からのエンコーダ
信号(6a)を、外部からのリクエスト信号によって出力す
るエンコーダ信号出力方法において、前記リクエスト信
号と前記自己認識番号(30)が一致した場合には前記エン
コーダ信号(6a)と前記自己認識番号(30)を出力し、前記
リクエスト信号と前記自己認識番号(30)が不一致の場合
には前記リクエスト信号の受信待機状態とすることを特
徴とするエンコーダ信号出力方法。
1. An encoder signal output method for outputting an encoder signal (6a) from a plurality of encoders (11) having a self-identification number (30) connected via a bus line in response to an external request signal. When the request signal and the self-identification number (30) match, the encoder signal (6a) and the self-identification number (30) are output, and when the request signal and the self-identification number (30) do not match. Is in a standby state for receiving the request signal.
【請求項2】 前記エンコーダ信号(6a)及び自己認識番
号(30)をシリアル信号として出力することを特徴とする
請求項1記載のエンコーダ信号出力方法。
2. The encoder signal output method according to claim 1, wherein the encoder signal (6a) and the self-identification number (30) are output as serial signals.
【請求項3】 複数の前記リクエスト信号の中からエン
コーダ自己認識設定コマンドを認識し、前記エンコーダ
(11)のメモリー(10)に前記自己認識番号(30)を記憶する
ことを特徴とする請求項1又は2記載のエンコーダ信号
出力方法。
3. The encoder self-recognition setting command is recognized from among the plurality of request signals, and the encoder
3. The encoder signal output method according to claim 1, wherein the self-identification number (30) is stored in the memory (10) of (11).
【請求項4】 前記エンコーダ(11)は、主電源(24)とバ
ッテリー(22)が並列接続され、前記主電源(24)がオフ又
は電圧降下時に前記主電源回路をオフとし、コンデンサ
よりなる無停電電源(17)を用い、前記コンデンサの電圧
が前記バッテリー(22)の電圧以下となった時に前記バッ
テリー(22)を用いることを特徴とする請求項1ないし3
の何れかに記載のエンコーダ信号出力方法。
4. The encoder (11) comprises a main power supply (24) and a battery (22) connected in parallel, and turns off the main power supply circuit when the main power supply (24) is off or drops in voltage, and is composed of a capacitor. 4. The battery (22) is used when an uninterruptible power supply (17) is used and the voltage of the capacitor becomes equal to or lower than the voltage of the battery (22).
An encoder signal output method according to any one of 1.
JP4993195A 1995-03-09 1995-03-09 Encoder signal output method Pending JPH08247789A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4993195A JPH08247789A (en) 1995-03-09 1995-03-09 Encoder signal output method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4993195A JPH08247789A (en) 1995-03-09 1995-03-09 Encoder signal output method

Publications (1)

Publication Number Publication Date
JPH08247789A true JPH08247789A (en) 1996-09-27

Family

ID=12844770

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4993195A Pending JPH08247789A (en) 1995-03-09 1995-03-09 Encoder signal output method

Country Status (1)

Country Link
JP (1) JPH08247789A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009300354A (en) * 2008-06-17 2009-12-24 Fanuc Ltd Encoder with internal information output function
US7786853B2 (en) 2001-10-06 2010-08-31 Robert Bosch Gmbh Method for transmitting data from at least one sensor to a control device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7786853B2 (en) 2001-10-06 2010-08-31 Robert Bosch Gmbh Method for transmitting data from at least one sensor to a control device
JP2009300354A (en) * 2008-06-17 2009-12-24 Fanuc Ltd Encoder with internal information output function

Similar Documents

Publication Publication Date Title
US8307137B2 (en) Remote communication method of a network
CA2336385A1 (en) Improved inter-device serial bus protocol
JPH08247789A (en) Encoder signal output method
US4196360A (en) Interface driver circuit
CN108628780A (en) A kind of data communications method, system and electric vehicle
JPH08278164A (en) Encoder signal output method
US5786885A (en) Image processing system
JPH08233607A (en) Encoder signal output method
EP4102388B1 (en) Control device and input-output interface unit
JPH0746806B2 (en) Time division multiplex transmission system
JPH08313299A (en) Encoder ID setting method for encoder device
JPH0562784B2 (en)
JP2505004B2 (en) Remote control system
JPS60204133A (en) Radio data reception terminal equipment
JP2781003B2 (en) Function setting device for terminal of remote monitoring and control system
US6944176B1 (en) Method and apparatus for bit level network data multiplexing
JPS611135A (en) Load supervisory control system
JP2001034372A (en) Data communication system
JPH04273358A (en) One-chip microcomputer containing dmac
JPH08313300A (en) Encoder signal communication method
JP3296835B2 (en) Function setting method for multiplex transmission equipment
JPS6138656U (en) Electronic copying machine control device
JPH02189612A (en) Output interface device
JPH0675610A (en) Display device for programmable controller
JPS6426262A (en) 16 bit microprocessor system

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040420

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040907