JP2006256547A - Electronic control device - Google Patents

Electronic control device Download PDF

Info

Publication number
JP2006256547A
JP2006256547A JP2005079209A JP2005079209A JP2006256547A JP 2006256547 A JP2006256547 A JP 2006256547A JP 2005079209 A JP2005079209 A JP 2005079209A JP 2005079209 A JP2005079209 A JP 2005079209A JP 2006256547 A JP2006256547 A JP 2006256547A
Authority
JP
Japan
Prior art keywords
control device
electronic control
identification information
servo motor
motor control
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
JP2005079209A
Other languages
Japanese (ja)
Other versions
JP4539390B2 (en
Inventor
Kojiro Kubota
晃二朗 久保田
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.)
Denso Corp
Original Assignee
Denso Corp
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 Denso Corp filed Critical Denso Corp
Priority to JP2005079209A priority Critical patent/JP4539390B2/en
Publication of JP2006256547A publication Critical patent/JP2006256547A/en
Application granted granted Critical
Publication of JP4539390B2 publication Critical patent/JP4539390B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Control Of Multiple Motors (AREA)
  • Control Of Electric Motors In General (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an electronic control device capable of setting identification information without individual difference. <P>SOLUTION: The electronic control device detects the voltage level changing according to the connection order from a master ECU 10 (S100), acquires the number of servo motor control devices connected to the master ECU 10 (S102), and sets identification information by itself by using a map for determining identification information storing the corresponding relationship of the voltage level according to the connection order from the master ECU 10 to identification information for each number of the servo motor control devices connected to connection cables (S106). <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、マスタ制御装置に複数の電子制御装置が接続ケーブルを用いて縦続接続されることによって構成される制御システムに用いられる電子制御装置に関する。   The present invention relates to an electronic control device used in a control system configured by connecting a plurality of electronic control devices to a master control device in cascade using a connection cable.

従来、車両には複数のサーボモータが設けられており、これらのサーボモータを駆動するサーボモータ制御装置はLANによって接続されるようになっている。このように複数のサーボモータ制御装置をLAN接続する場合、各サーボモータ制御装置をLAN接続する前に、予め各サーボモータ制御装置に対してID(識別情報)を付与する必要がある。このIDの付与には、スイッチの設定や抵抗の付け替えによってIDを設定するハードウェアによる方法やソフトウェアレベルでIDをメモリに記憶させる方法がある。   Conventionally, a plurality of servo motors are provided in a vehicle, and servo motor control devices that drive these servo motors are connected by a LAN. When a plurality of servo motor control devices are connected by LAN in this way, it is necessary to assign an ID (identification information) to each servo motor control device in advance before connecting each servo motor control device via LAN. This ID assignment includes a hardware method for setting an ID by setting a switch or changing a resistance, and a method for storing the ID in a memory at a software level.

また、LAN接続された複数のアクチュエータを備えた装置において、アクチュエータ側コネクタの一部にアクチュエータの種類にかかわらず同じ端子数のアドレス固定端子を増設し、ハーネス側コネクタにアクチュエータの種類に応じて異なるアドレスセレクタ端子を増設し、各コネクタが結合したときのアドレス固定端子とアドレスセレクタ端子の接続状況によってアクチュエータ側でアクチュエータの種類を識別できるようにしたものがある(例えば、特許文献1参照)。
特開平10−6748号公報
In addition, in an apparatus having a plurality of actuators connected via LAN, an address fixing terminal having the same number of terminals is added to a part of the actuator-side connector regardless of the type of actuator, and the harness-side connector differs depending on the type of actuator Some address selector terminals are added so that the type of actuator can be identified on the actuator side according to the connection status between the address fixed terminal and the address selector terminal when the connectors are coupled (see, for example, Patent Document 1).
Japanese Patent Laid-Open No. 10-6748

しかし、上記したように予めサーボモータ制御装置毎にIDを付与する場合、サーボモータ制御装置毎に異なるIDを設定することになるため、LAN接続されるサーボモータ制御装置の数だけ品番が必要となる。   However, when an ID is assigned to each servo motor control device in advance as described above, a different ID is set for each servo motor control device, so that the product number is required for the number of servo motor control devices connected via LAN. Become.

また、特許文献1に記載の装置では、ハーネス側コネクタにアクチュエータの種類に応じて異なるアドレスセレクタ端子を増設する必要がある。   Moreover, in the apparatus described in Patent Document 1, it is necessary to add different address selector terminals to the harness side connector according to the type of actuator.

このように、上記した構成では、サーボモータ制御装置やLAN接続コネクタにそれぞれ差異をもたせる必要があった。   Thus, in the above-described configuration, it is necessary to make a difference between the servo motor control device and the LAN connection connector.

本発明は上記問題に鑑みたもので、個々に差異をもたせることなく識別情報の設定を行うことを目的とする。   The present invention has been made in view of the above problems, and an object thereof is to set identification information without causing individual differences.

上記目的を達成するため、請求項1または2に記載の発明では、マスタ制御装置に複数の電子制御装置が接続ケーブルを用いて縦続接続されることによって構成される制御システムに用いられる電子制御装置であって、前記接続ケーブルを用いて縦続接続されたときの前記マスタ制御装置からの接続順序に応じて変化する物理量を検出する検出手段と、前記マスタ制御装置から前記接続ケーブルに接続されている電子制御装置の数を取得する接続数取得手段と、前記接続ケーブルに接続された電子制御装置の数毎に前記マスタ制御装置からの接続順序に応じた物理量と識別情報の対応関係を示す識別情報判定用マップを記憶する記憶手段と、前記接続数取得手段が取得した電子制御装置の数および前記検出手段が検出した物理量に基づいて、前記記憶手段に記憶された前記対応関係から識別情報を設定する識別情報設定手段と、を備えたことを特徴としている。   In order to achieve the above object, according to the first or second aspect of the present invention, an electronic control device used in a control system configured by connecting a plurality of electronic control devices to a master control device in cascade using a connection cable. And detecting means for detecting a physical quantity that changes in accordance with a connection order from the master control device when connected in cascade using the connection cable, and connected from the master control device to the connection cable. Identification information indicating the correspondence between physical quantity and identification information according to the connection order from the master control device for each number of electronic control devices connected to the connection cable, and connection number acquisition means for acquiring the number of electronic control devices Based on the storage means for storing the determination map, the number of electronic control devices acquired by the connection number acquisition means, and the physical quantity detected by the detection means, Serial and from said stored correspondence relationship storage means and the identification information setting means for setting identification information, comprising the.

このように、識別情報設定手段が、接続ケーブルに接続されたサーボモータ制御装置の数とマスタ制御装置からの接続順序に応じて変化する物理量に基づいて自ら識別情報を設定する。   In this way, the identification information setting means sets identification information by itself based on the physical quantity that changes in accordance with the number of servo motor control devices connected to the connection cable and the connection order from the master control device.

したがって、各電子制御装置には、マスタ制御装置からの接続順序に応じた識別情報が付与され、個々に差異をもたせることなく識別情報の設定を行うことができる。   Therefore, identification information corresponding to the connection order from the master control device is given to each electronic control device, and the identification information can be set without causing a difference.

本発明の一実施形態に係るサーボモータ制御システムの概略構成を図1に示す。本実施形態におけるサーボモータ制御システムは、マスタ制御装置としてのマスタECU10、電子制御装置としての第1〜第4のサーボモータ制御装置21〜24および第1〜第4のサーボモータ31〜34によって構成されている。   A schematic configuration of a servo motor control system according to an embodiment of the present invention is shown in FIG. The servo motor control system in the present embodiment includes a master ECU 10 as a master control device, first to fourth servo motor control devices 21 to 24 and electronic servo devices 31 to 34 as electronic control devices. Has been.

まず、マスタECU10について説明する。マスタECU10には、図示しないバッテリからイグニッションスイッチを介して電源が供給される。マスタECU10は、このイグニッションスイッチを介して供給される電源の電圧(12V)から一定電圧(5V)を生成する定電圧電源(図示せず)を有し、この定電圧電源にて生成した一定電圧を内部回路に供給する。   First, the master ECU 10 will be described. Power is supplied to the master ECU 10 from a battery (not shown) via an ignition switch. The master ECU 10 has a constant voltage power source (not shown) that generates a constant voltage (5 V) from the voltage (12 V) of the power source supplied via the ignition switch, and the constant voltage generated by the constant voltage power source. To the internal circuit.

マスタECU10は、抵抗11およびROM、RAM、EEPROM、A/D変換回路を有するCPU(図示せず)、イグニッションスイッチを介して供給される電源と接続された電源端子110、CPUのA/D変換回路の入力端子と接続された識別端子111、外部と通信を行うための通信用端子112、接地端子113を備えている。また、識別端子111と定電圧電源の出力との間には、10kオームの抵抗11が設けられている。   The master ECU 10 includes a resistor 11 and a CPU (not shown) having ROM, RAM, EEPROM, and an A / D conversion circuit, a power supply terminal 110 connected to a power supply supplied via an ignition switch, and A / D conversion of the CPU. An identification terminal 111 connected to an input terminal of the circuit, a communication terminal 112 for communicating with the outside, and a ground terminal 113 are provided. Further, a 10 k ohm resistor 11 is provided between the identification terminal 111 and the output of the constant voltage power source.

次に、第1〜第4のサーボモータ制御装置21〜24について説明する。なお、第1〜第4のサーボモータ制御装置21〜24はそれぞれ同様の構成となっているため、ここでは、第1のサーボモータ制御装置21について説明する。   Next, the first to fourth servo motor control devices 21 to 24 will be described. Since the first to fourth servo motor control devices 21 to 24 have the same configuration, the first servo motor control device 21 will be described here.

第1のサーボモータ制御装置21は、IC21aおよび抵抗21bを備えている。なお、抵抗21bの抵抗値は、10kオームとなっている。   The first servo motor control device 21 includes an IC 21a and a resistor 21b. The resistance value of the resistor 21b is 10k ohms.

また、第1のサーボモータ制御装置21は、第1の電源端子210a、入力端子としての第1の識別端子211a、第1の通信用端子212aおよび第1の接地端子213aからなる第1の端子群と、第2の電源端子210b、出力端子としての第2の識別端子211b、第2の通信用端子212bおよび第2の接地端子223bからなる第2の端子群を備えている。   The first servo motor control device 21 includes a first terminal including a first power terminal 210a, a first identification terminal 211a as an input terminal, a first communication terminal 212a, and a first ground terminal 213a. And a second terminal group including a second power terminal 210b, a second identification terminal 211b as an output terminal, a second communication terminal 212b, and a second ground terminal 223b.

第1、第2の電源端子210a、210b、第1、第2の通信用端子212a、212bおよび第1、第2の接地端子213a、213bは、それぞれ互いに接続されている。また、第1の識別端子211aと第2の識別端子211bは、抵抗21bを介して接続されている。   The first and second power supply terminals 210a and 210b, the first and second communication terminals 212a and 212b, and the first and second ground terminals 213a and 213b are connected to each other. The first identification terminal 211a and the second identification terminal 211b are connected via a resistor 21b.

IC21aは、CPU、ROM、RAM等を有するマイコンによって構成されており、第1、第2の通信用端子212a、212bを介して外部と通信を行う通信回路、第1の識別端子211aを介してA/D入力端子に印加される電圧をデジタル信号に変換するA/D変換回路、第1のサーボモータ31の駆動制御を行う駆動回路(いずれも図示せず)等を備えている。   The IC 21a is constituted by a microcomputer having a CPU, a ROM, a RAM, etc., and a communication circuit that communicates with the outside via the first and second communication terminals 212a and 212b, and the first identification terminal 211a. An A / D conversion circuit that converts a voltage applied to the A / D input terminal into a digital signal, a drive circuit that controls driving of the first servo motor 31 (none of which are shown), and the like are provided.

また、第1の端子群210a〜213aは、接続ケーブルを用いてマスタECU10の端子群110〜113と接続され、第2の端子群210b〜213bは、第2のサーボモータ制御装置22の第1の端子群220a〜223aと接続ケーブルを用いて接続される。   Further, the first terminal groups 210 a to 213 a are connected to the terminal groups 110 to 113 of the master ECU 10 using connection cables, and the second terminal groups 210 b to 213 b are the first terminals of the second servo motor control device 22. The terminal groups 220a to 223a are connected using a connection cable.

すなわち、初段となる第1のサーボモータ制御装置21の第1の識別端子211aは、マスタECU10の抵抗11を介して電源出力(電圧5V)に接続される。また、初段以降のサーボモータ制御装置の第2の識別端子211bに後段のサーボモータ制御装置の第1の識別端子211aが接続され、最終段の第4のサーボモータ制御装置24の第2の識別端子211bは接地される。   That is, the first identification terminal 211a of the first servo motor control device 21 which is the first stage is connected to the power supply output (voltage 5V) via the resistor 11 of the master ECU 10. In addition, the first identification terminal 211a of the subsequent stage servo motor control device is connected to the second identification terminal 211b of the servo motor control device after the first stage, and the second identification of the fourth servo motor control apparatus 24 at the final stage. The terminal 211b is grounded.

このように、マスタECU10に第1〜第4のサーボモータ制御装置21〜24が縦続接続されると、マスタECU10の電源出力から抵抗11、第1のサーボモータ制御装置21の抵抗21b、第2のサーボモータ制御装置22の抵抗22b、第3のサーボモータ制御装置23の抵抗23b、第4のサーボモータ制御装置24の抵抗24bを介してマスタECU10の接地端子113に至るループ状の経路が形成される。   Thus, when the first to fourth servo motor control devices 21 to 24 are cascade-connected to the master ECU 10, the resistor 11, the resistor 21b of the first servo motor control device 21, the second A loop path is formed that reaches the ground terminal 113 of the master ECU 10 via the resistor 22b of the servo motor controller 22, the resistor 23b of the third servo motor controller 23, and the resistor 24b of the fourth servo motor controller 24. Is done.

したがって、第1のサーボモータ制御装置21のIC21aのA/D入力端子には、マスタECU11の一定電圧(5V)を抵抗11と、抵抗21b〜24bによって分圧した電圧が印加される。なお、本実施形態における抵抗11、抵抗21b〜24bの各抵抗値は10kオームとなっているため、IC21aのA/D入力端子には、4Vの電圧が印加される。   Therefore, a voltage obtained by dividing the constant voltage (5 V) of the master ECU 11 by the resistor 11 and the resistors 21b to 24b is applied to the A / D input terminal of the IC 21a of the first servo motor control device 21. Since the resistance values of the resistor 11 and the resistors 21b to 24b in this embodiment are 10 k ohms, a voltage of 4V is applied to the A / D input terminal of the IC 21a.

また、第2のサーボモータ制御装置22のIC22aのA/D入力端子には、マスタECU11の一定電圧(5V)を抵抗11、抵抗21bと、抵抗22b〜24bによって分圧した電圧が印加され、IC22aのA/D入力端子には、3Vの電圧が印加される。同様に、IC23aのA/D入力端子には、2Vの電圧が印加され、IC24aのA/D入力端子には、1Vの電圧が印加される。   Further, a voltage obtained by dividing the constant voltage (5 V) of the master ECU 11 by the resistor 11, the resistor 21b, and the resistors 22b to 24b is applied to the A / D input terminal of the IC 22a of the second servo motor control device 22, A voltage of 3V is applied to the A / D input terminal of the IC 22a. Similarly, a voltage of 2V is applied to the A / D input terminal of the IC 23a, and a voltage of 1V is applied to the A / D input terminal of the IC 24a.

このように、接続ケーブルを用いて第1〜第4のサーボモータ制御装置21〜24が縦続接続されると、第1〜第4のサーボモータ制御装置21〜24のIC21a〜IC24aのA/D入力端子には、それぞれマスタ制御装置からの接続順序に応じて変化する電圧が印加される。   As described above, when the first to fourth servo motor control devices 21 to 24 are connected in cascade using the connection cable, the A / Ds of the ICs 21a to IC24a of the first to fourth servo motor control devices 21 to 24 are connected. A voltage that changes in accordance with the connection order from the master control device is applied to each input terminal.

また、本実施形態において、作業者は、マスタECU10に複数のサーボモータ制御装置を縦続接続する際に、マスタECU10からの接続順序が下位のサーボモータ制御装置、すなわちマスタECU10から遠いサーボモータ制御装置から順番にIDが大きくなるようにサーボモータ制御装置を接続するようになっている。また、マスタECU10に複数のサーボモータ制御装置を接続した後、マスタECU10のEEPROMに、マスタECU10に接続されたサーボモータの数を登録するようになっている。   Further, in this embodiment, when a worker cascade-connects a plurality of servo motor control devices to the master ECU 10, the servo motor control device having a lower connection order from the master ECU 10, that is, a servo motor control device far from the master ECU 10 is used. The servo motor control device is connected so that the ID becomes larger in order. Further, after a plurality of servo motor control devices are connected to the master ECU 10, the number of servo motors connected to the master ECU 10 is registered in the EEPROM of the master ECU 10.

また、マスタECU10のCPUは、イグニッションスイッチが投入され、バッテリから電源が供給されると、ROMに記憶されたプログラムに従って各種処理を開始し、EEPROMに記憶されたマスタECU10に接続されたサーボモータの数を、マスタECU10に接続された全てのサーボモータ制御装置に送信するようになっている。   Further, when the ignition switch is turned on and power is supplied from the battery, the CPU of the master ECU 10 starts various processes in accordance with the program stored in the ROM, and the servo motor connected to the master ECU 10 stored in the EEPROM. The number is transmitted to all servo motor control devices connected to the master ECU 10.

また、本実施形態において、第1〜第4のサーボモータ制御装置21〜24のIC21a〜IC24aの各ROMには、IC21a〜IC24aが自ら識別IDを決定するための識別情報判定用マップが記憶されている。この識別情報判定用マップは、マスタECU10に縦続接続されたサーボモータ制御装置の数毎にマスタECU10からの接続順序に応じて変化する電圧レベルと識別情報の対応関係を示すものである。   In the present embodiment, the identification information determination maps for the ICs 21a to 24a to determine their own identification IDs are stored in the ROMs of the ICs 21a to 24a of the first to fourth servo motor control devices 21 to 24, respectively. ing. This identification information determination map shows the correspondence between the voltage level and the identification information that changes in accordance with the connection order from the master ECU 10 for each number of servo motor control devices cascade-connected to the master ECU 10.

図2に、マスタECU10に縦続接続されたサーボモータ制御装置の数が4個の場合における識別情報判定用マップの例を示す。このような識別情報判定用マップに記憶された対応関係からIC21a〜IC24aの各A/D入力端子に印加された電圧レベルが4Vと判定された場合にはIDを04とし、3Vと判定された場合にはIDを03とし、2Vと判定された場合にはIDを02とし、1Vと判定された場合にはIDを01として決定する。また、IC21a〜IC24aの各A/D入力端子に印加された電圧レベルの判定は、誤判定を防止するために所定のヒステリシス幅が設けられている。   FIG. 2 shows an example of the identification information determination map when the number of servo motor control devices cascaded to the master ECU 10 is four. When the voltage level applied to each A / D input terminal of the ICs 21a to 24a is determined to be 4V from the correspondence stored in the identification information determination map, the ID is set to 04 and determined to be 3V. In this case, the ID is set to 03. If it is determined to be 2V, the ID is determined to be 02. If it is determined to be 1V, the ID is determined to be 01. Further, the determination of the voltage level applied to each A / D input terminal of the IC 21a to IC 24a is provided with a predetermined hysteresis width in order to prevent erroneous determination.

なお、第1〜第4のサーボモータ制御装置21〜24のIC21a〜IC24aの各ROMには、図2に示すような、マスタECU10からの接続順序に応じて変化する電圧レベルと識別情報の対応関係を示す識別情報判定用マップが、マスタECU10に接続されるサーボモータ制御装置の数毎に記憶されている。   In addition, in each ROM of IC21a-IC24a of the 1st-4th servo motor control apparatuses 21-24, the correspondence of the voltage level and identification information which change according to the connection order from master ECU10 as shown in FIG. An identification information determination map indicating the relationship is stored for each number of servo motor control devices connected to the master ECU 10.

IC21a〜IC24aの各CPUは、これらの識別情報判定用マップからマスタECU10に縦続接続されたサーボモータ制御装置の数に応じて使用する識別情報判定用マップを決定し、決定した識別情報判定用マップを用いてIDを決定する。   Each CPU of the ICs 21a to 24a determines an identification information determination map to be used according to the number of servo motor control devices cascaded to the master ECU 10 from these identification information determination maps, and the determined identification information determination map The ID is determined using.

次に、図3を参照して、第1〜第4のサーボモータ制御装置21〜24の各IC21a〜24aのIDの決定処理について説明する。   Next, with reference to FIG. 3, the ID determination process of each IC 21a to 24a of the first to fourth servo motor control devices 21 to 24 will be described.

図1に示したように、マスタECU10に第1〜第4のサーボモータ制御装置21〜24が接続ケーブルを用いて縦続接続された後、イグニッションスイッチが投入され、バッテリからマスタECU10および第1〜第4のサーボモータ制御装置21〜24へ電源が供給されると、第1〜第4のサーボモータ制御装置21〜24のIC21a〜24aの各CPUは、それぞれ図3に示す処理を開始する。   As shown in FIG. 1, after the first to fourth servo motor control devices 21 to 24 are connected to the master ECU 10 in cascade using a connection cable, an ignition switch is turned on, and the master ECU 10 and the first to first ECUs 10 to 1 are connected from the battery. When power is supplied to the fourth servo motor control devices 21 to 24, the CPUs of the ICs 21a to 24a of the first to fourth servo motor control devices 21 to 24 start the process shown in FIG.

まず、識別端子211aを介してA/D入力端子に印加される電圧の電圧レベルを特定する。具体的には、A/D入力端子に印加される電圧をA/D変換回路にてデジタル信号に変換してA/D入力端子に印加される電圧レベルを特定する(S100)。本実施形態では、IC21aでは4V、IC22aでは3V、IC23aでは2V、IC24aでは1Vと特定する。   First, the voltage level of the voltage applied to the A / D input terminal via the identification terminal 211a is specified. Specifically, the voltage applied to the A / D input terminal is converted into a digital signal by the A / D conversion circuit, and the voltage level applied to the A / D input terminal is specified (S100). In this embodiment, 4V is specified for the IC 21a, 3V for the IC 22a, 2V for the IC 23a, and 1V for the IC 24a.

次に、マスタECU10からマスタECU10に接続されたサーボモータの数(サーボモータ制御装置の数)を受信する。本実施形態では、マスタECU10に接続されたサーボモータの数として4を受信する(S102)。   Next, the number of servo motors connected to the master ECU 10 (the number of servo motor control devices) is received from the master ECU 10. In the present embodiment, 4 is received as the number of servo motors connected to the master ECU 10 (S102).

次に、ROMに記憶された識別情報判定用マップから、マスタECU10に接続されたサーボモータの数に応じた識別情報判定用マップを決定する。本実施形態では、マスタECU10に縦続接続されたサーボモータの数が4個の場合の識別情報判定用マップを決定する(S104)。   Next, an identification information determination map corresponding to the number of servo motors connected to the master ECU 10 is determined from the identification information determination map stored in the ROM. In the present embodiment, an identification information determination map is determined when the number of servo motors cascaded to the master ECU 10 is four (S104).

次に、S100においてデジタル信号に変換したA/D入力端子に印加された電圧(電圧値)とS104で決定した識別情報判定用マップを用いて自己の識別情報を決定する(S106)。具体的には、図2に示すように、A/D入力端子の電圧が4Vの場合にはIDを04として決定し、3Vの場合にはIDを03として決定し、2Vの場合にはIDを02として決定し、1Vの場合にはIDを01として決定する。したがって、例えば、マスタECU10からの接続順序が最下位のサーボモータ制御装置は自己の識別情報を01として決定し、マスタECU10からの接続順序が最下位から2番目のサーボモータ制御装置は、自己の識別情報を02として決定する。このように、自己の識別情報を決定し、決定した自己の識別情報を各自RAMに記憶(設定し)、本処理を終了する。   Next, the identification information is determined using the voltage (voltage value) applied to the A / D input terminal converted into the digital signal in S100 and the identification information determination map determined in S104 (S106). Specifically, as shown in FIG. 2, when the voltage at the A / D input terminal is 4V, the ID is determined as 04, when 3V, the ID is determined as 03, and when 2V, the ID is determined as ID. Is determined as 02, and ID is determined as 01 in the case of 1V. Therefore, for example, the servo motor control device with the lowest connection order from the master ECU 10 determines its own identification information as 01, and the servo motor control device with the second lowest connection order from the master ECU 10 The identification information is determined as 02. In this way, the self identification information is determined, the determined self identification information is stored (set) in each RAM, and the present process is terminated.

なお、上述したように、作業者は、マスタECU10に複数のサーボモータ制御装置を縦続接続する際に、マスタECU10からの接続順序が下位のサーボモータ制御装置、すなわちマスタECU10から遠いサーボモータ制御装置から順番にIDが大きくなるようにサーボモータ制御装置を接続するようになっている。   Note that, as described above, when the operator cascade-connects a plurality of servo motor control devices to the master ECU 10, the servo motor control device having a lower connection order from the master ECU 10, that is, a servo motor control device far from the master ECU 10 is used. The servo motor control device is connected so that the ID becomes larger in order.

したがって、マスタECU10は、例えば、送信先のIDを01として動作指令を送信することにより、マスタECU10からの接続順序が下位のサーボモータ制御装置に対して動作指令を行うことができる。また、送信先のIDを02として動作指令を送信することにより、マスタECU10からの接続順序が下位から2番目のサーボモータ制御装置に対して動作指令を行うことができる。   Accordingly, the master ECU 10 can issue an operation command to the servo motor control device whose order of connection from the master ECU 10 is lower by, for example, transmitting an operation command with the transmission destination ID being 01. Further, by transmitting the operation command with the transmission destination ID set to 02, the operation command can be issued to the servo motor control device having the second lowest connection order from the master ECU 10.

上述したように、上述した構成によれば、接続ケーブルを用いて縦続接続されたときのマスタECU10からの接続順序に応じて変化する電圧のレベルを検出し(S100)、マスタECU10から接続ケーブルに接続されているサーボモータ制御装置の数を取得し(S102)、これらのマスタECU10からの接続順序に応じて変化する電圧レベルと接続ケーブルに接続されているサーボモータ制御装置の数に基づき、接続ケーブルに接続されたサーボモータ制御装置の数毎にマスタECU10からの接続順序に応じた電圧のレベルと識別情報の対応関係が記憶された識別情報判定用マップを用いて、識別情報を設定する(S106)ようになっている。   As described above, according to the above-described configuration, the voltage level that changes in accordance with the connection order from the master ECU 10 when cascade connection is performed using the connection cable is detected (S100), and the connection from the master ECU 10 to the connection cable is detected. The number of servo motor control devices connected is acquired (S102), and the connection is made based on the voltage level that changes according to the connection order from the master ECU 10 and the number of servo motor control devices connected to the connection cable. For each number of servo motor control devices connected to the cable, the identification information is set using the identification information determination map in which the correspondence between the voltage level corresponding to the connection order from the master ECU 10 and the identification information is stored ( S106).

このように、接続ケーブルに接続されたサーボモータ制御装置の数とマスタ制御装置からの接続順序に応じて変化する電圧レベルに基づいて自ら識別情報を設定するので、個々に差異をもたせることなく識別情報の設定を行うことができる。   In this way, identification information is set on the basis of the number of servo motor control devices connected to the connection cable and the voltage level that changes according to the connection order from the master control device. Information can be set.

なお、上記実施形態における構成と特許請求の範囲の構成との対応関係について説明すると、図3のS100の処理が検出手段に相当し、S102の処理が接続数取得手段に相当し、S106の処理が識別情報設定手段に相当する。   The correspondence relationship between the configuration in the above embodiment and the configuration of the claims will be described. The processing in S100 in FIG. 3 corresponds to the detection unit, the processing in S102 corresponds to the connection number acquisition unit, and the processing in S106. Corresponds to identification information setting means.

なお、本発明は上記実施形態に限定されるものではなく、本発明の趣旨に基づいて種々なる形態で実施することができる。   In addition, this invention is not limited to the said embodiment, Based on the meaning of this invention, it can implement with a various form.

例えば、上記実施形態では、マスタ制御装置としてのマスタECU10、電子制御装置としての第1〜第4のサーボモータ制御装置21〜24および第1〜第4のサーボモータ31〜34によって構成されたサーボモータ制御システムを例に示したが、電子制御装置の用途としては、サーボモータ制御システムに限定されるものではなく、例えば、センサを用いて検出した検出信号をマスタ制御装置へ送信するシステム等に用いてもよい。   For example, in the above embodiment, the servo is constituted by the master ECU 10 as the master control device, the first to fourth servo motor control devices 21 to 24 as the electronic control device, and the first to fourth servo motors 31 to 34. Although the motor control system is shown as an example, the use of the electronic control device is not limited to the servo motor control system. For example, the system is a system that transmits a detection signal detected using a sensor to the master control device. It may be used.

また、上記実施形態では、第1のサーボモータ制御装置21において、第1の識別端子211aとIC21aのA/D入力端子が直接接続され、第1の識別端子211aの電圧がIC21aのA/D入力端子に直接印加される例を示したが、例えば、第1の識別端子211aとIC21aのA/D入力端子との間に抵抗を設け、IC21aのA/D入力端子に、この抵抗を介して第1の識別端子211aの電圧が印加されるように構成してもよい。   In the first embodiment, in the first servo motor control device 21, the first identification terminal 211a and the A / D input terminal of the IC 21a are directly connected, and the voltage of the first identification terminal 211a is the A / D of the IC 21a. Although an example in which the voltage is directly applied to the input terminal is shown, for example, a resistor is provided between the first identification terminal 211a and the A / D input terminal of the IC 21a, and the A / D input terminal of the IC 21a is connected via this resistor. The voltage of the first identification terminal 211a may be applied.

なお、上記実施形態では、図3のS100において、接続ケーブルを用いて縦続接続されたときのマスタECUからの接続順序に応じて変化する物理量として、識別端子に印加される電圧のレベルを検出する例を示したが、電圧以外の物理量を用いてもよい。   In the above embodiment, in S100 of FIG. 3, the level of the voltage applied to the identification terminal is detected as a physical quantity that changes in accordance with the connection order from the master ECU when connected in cascade using the connection cable. Although an example has been shown, physical quantities other than voltage may be used.

また、上記実施形態では、マスタECU10に第1〜第4のサーボモータ制御装置21〜24が縦続接続されたときに、直列接続された抵抗21b〜24bによってマスタECU10の電源電圧(5V)を分圧する例を示したが、直列接続された抵抗21b〜24bによってマスタECU10の電源電圧(12V)を分圧するように構成してもよい。この場合、マスタECU10の電源電圧(12V)の電源変動が大きくなると考えられるため、IC21a〜24aにて、このマスタECU10の電源電圧(12V)についてもA/D変換を行い、このA/D変換によって変換した値によってA/D入力端子に印加された電圧をA/D変換した値に補正を加えるようにしてもよい。   In the above embodiment, when the first to fourth servo motor control devices 21 to 24 are cascade-connected to the master ECU 10, the power supply voltage (5V) of the master ECU 10 is divided by the resistors 21b to 24b connected in series. Although an example in which pressure is applied is shown, the power supply voltage (12 V) of the master ECU 10 may be divided by resistors 21b to 24b connected in series. In this case, since it is considered that the power supply fluctuation of the power supply voltage (12V) of the master ECU 10 becomes large, the power supply voltage (12V) of the master ECU 10 is also A / D converted by the ICs 21a to 24a. The voltage applied to the A / D input terminal may be corrected based on the value converted by A / D conversion.

なお、図3に示すフローチャートの各ステップの処理は、それぞれの機能を実現する手段として把握されるものであり、IC21a〜24aとしては、上記した実施形態に示すようなソフトウェアによって構成されるものに限らず、ハードウェアにより構成されていてもよい。   In addition, the process of each step of the flowchart shown in FIG. 3 is grasped as a means for realizing each function, and the ICs 21a to 24a are configured by software as shown in the above-described embodiment. The configuration is not limited to hardware.

本発明の一実施形態に係るサーボモータ制御システムの概略構成を示す図である。It is a figure which shows schematic structure of the servomotor control system which concerns on one Embodiment of this invention. 識別情報判定用マップの一例を示す図である。It is a figure which shows an example of the map for identification information determination. 第1〜第4のサーボモータ制御装置の各ICの識別IDの決定処理を示す図である。It is a figure which shows the determination process of identification ID of each IC of a 1st-4th servomotor control apparatus.

符号の説明Explanation of symbols

10…マスタECU、11、21b〜24b…抵抗、IC…21a〜24a、
31〜34…サーボモータ。
10 ... Master ECU, 11, 21b-24b ... Resistance, IC ... 21a-24a,
31-34 ... Servo motors.

Claims (2)

マスタ制御装置に複数の電子制御装置が接続ケーブルを用いて縦続接続されることによって構成される制御システムに用いられる電子制御装置であって、
前記接続ケーブルを用いて縦続接続されたときの前記マスタ制御装置からの接続順序に応じて変化する物理量を検出する検出手段と、
前記マスタ制御装置から前記接続ケーブルに接続されている電子制御装置の数を取得する接続数取得手段と、
前記接続ケーブルに接続された電子制御装置の数毎に前記マスタ制御装置からの接続順序に応じた物理量と識別情報の対応関係を示す識別情報判定用マップを記憶する記憶手段と、
前記接続数取得手段が取得した電子制御装置の数および前記検出手段が検出した物理量に基づいて、前記記憶手段に記憶された前記対応関係から識別情報を設定する識別情報設定手段と、を備えたことを特徴とする電子制御装置。
An electronic control device used in a control system configured by connecting a plurality of electronic control devices to a master control device in cascade using a connection cable,
Detecting means for detecting a physical quantity that changes in accordance with a connection order from the master control device when cascade-connected using the connection cable;
Connection number acquisition means for acquiring the number of electronic control devices connected to the connection cable from the master control device;
Storage means for storing an identification information determination map indicating a correspondence relationship between a physical quantity and identification information according to the connection order from the master control device for each number of electronic control devices connected to the connection cable;
Identification information setting means for setting identification information from the correspondence stored in the storage means based on the number of electronic control devices acquired by the connection number acquisition means and the physical quantity detected by the detection means An electronic control device characterized by that.
一端が入力端子に接続され他端が出力端子に接続された抵抗を有し、
前記縦続接続される複数の電子制御装置のうち前段の電子制御装置の出力端子が後段の電子制御装置の入力端子に接続されるとともに、初段の電子制御装置の入力端子が前記マスタ制御装置の電源出力に接続され、最終段の電子制御装置の出力端子が接地されるようにして、前記複数の電子制御装置の各抵抗が直列に接続された状態で、前記直列接続された抵抗によって前記マスタ制御装置の電源電圧を分圧した電圧により前記検出手段は前記物理量を検出することを特徴とする請求項1に記載の電子制御装置。
Having one end connected to the input terminal and the other end connected to the output terminal;
Among the plurality of cascaded electronic control devices, the output terminal of the preceding electronic control device is connected to the input terminal of the subsequent electronic control device, and the input terminal of the first electronic control device is the power source of the master control device. The master control is performed by the series-connected resistors in a state where the resistors of the plurality of electronic control devices are connected in series so that the output terminal of the final-stage electronic control device is grounded. The electronic control device according to claim 1, wherein the detection unit detects the physical quantity based on a voltage obtained by dividing a power supply voltage of the device.
JP2005079209A 2005-03-18 2005-03-18 Electronic control unit Expired - Fee Related JP4539390B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005079209A JP4539390B2 (en) 2005-03-18 2005-03-18 Electronic control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005079209A JP4539390B2 (en) 2005-03-18 2005-03-18 Electronic control unit

Publications (2)

Publication Number Publication Date
JP2006256547A true JP2006256547A (en) 2006-09-28
JP4539390B2 JP4539390B2 (en) 2010-09-08

Family

ID=37096230

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005079209A Expired - Fee Related JP4539390B2 (en) 2005-03-18 2005-03-18 Electronic control unit

Country Status (1)

Country Link
JP (1) JP4539390B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010195133A (en) * 2009-02-24 2010-09-09 Sanden Corp Onboard device control system and identifier setting method in onboard device control system
JP2012001181A (en) * 2010-06-21 2012-01-05 Denso Corp Vehicle control system
JP2014108695A (en) * 2012-11-30 2014-06-12 Denso Corp Network system
JP2019103180A (en) * 2017-11-29 2019-06-24 ミネベアミツミ株式会社 Motor drive controller, motor drive system, control method for motor drive controller, and control program for motor drive controller
US11577673B2 (en) 2020-09-11 2023-02-14 Nidec Mobility Corporation Motor module, management module, vehicle-mounted device control system
US11898394B2 (en) 2020-09-15 2024-02-13 Nidec Mobility Corporation Motor module

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005015198A (en) * 2003-06-27 2005-01-20 Sharp Corp Paper feed cassette and image formation apparatus
JP2005033695A (en) * 2003-07-11 2005-02-03 Japan Radio Co Ltd Information transmission system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005015198A (en) * 2003-06-27 2005-01-20 Sharp Corp Paper feed cassette and image formation apparatus
JP2005033695A (en) * 2003-07-11 2005-02-03 Japan Radio Co Ltd Information transmission system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010195133A (en) * 2009-02-24 2010-09-09 Sanden Corp Onboard device control system and identifier setting method in onboard device control system
JP2012001181A (en) * 2010-06-21 2012-01-05 Denso Corp Vehicle control system
JP2014108695A (en) * 2012-11-30 2014-06-12 Denso Corp Network system
JP2019103180A (en) * 2017-11-29 2019-06-24 ミネベアミツミ株式会社 Motor drive controller, motor drive system, control method for motor drive controller, and control program for motor drive controller
JP6993198B2 (en) 2017-11-29 2022-01-13 ミネベアミツミ株式会社 A motor drive control device, a motor drive system, a control method for the motor drive control device, and a control program for the motor drive control device.
US11577673B2 (en) 2020-09-11 2023-02-14 Nidec Mobility Corporation Motor module, management module, vehicle-mounted device control system
US11898394B2 (en) 2020-09-15 2024-02-13 Nidec Mobility Corporation Motor module

Also Published As

Publication number Publication date
JP4539390B2 (en) 2010-09-08

Similar Documents

Publication Publication Date Title
JP4539390B2 (en) Electronic control unit
JP7251580B2 (en) battery system
EP3531083B1 (en) Sensor system interconnect for automatic configuration
US7299308B2 (en) Data transmission apparatus and electronic control unit
JP2008293752A (en) Communication device
US9360344B2 (en) Parallel reading of an analog sensor by two control units
US20140129079A1 (en) Universal vehicle input/output transceiver and method of operation thereof
JP2008114806A (en) On-vehicle device relay system, on-vehicle device relay method and relay device
WO2011034052A1 (en) Vehicle electronic control device
US9244859B2 (en) Bus subscriber for a bus system, bus system for a motor vehicle, and method for allocating addresses in a bus system
JP6273792B2 (en) Vehicle data acquisition device and vehicle network communication load control program
KR101567973B1 (en) Can communication apparatus and method
KR100860129B1 (en) Vehicles diagnosis system and display method
JP4947493B2 (en) Vehicle air conditioner control device with sensor identification function
CN102736515B (en) Positioner
JP3979202B2 (en) In-vehicle communication system
KR101835096B1 (en) Similar accessory power generation apparatus using a battery regular power and acceleration sensor of the vehicle diagnostic connector and method thereof
EP3647742B1 (en) Power supply circuit and motor control device
CN111984284B (en) Data rewriting method and data rewriting system
JP3956527B2 (en) Voltage output device
JPH0950306A (en) Control system
JP5987758B2 (en) Program and control device
KR20150125795A (en) Electronic Apparatus for Vehicle
JP2009005160A (en) Error generation device
JP2023130046A (en) Power feeding control device, power feeding control system, and power feeding control method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070518

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091224

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100106

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100224

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

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

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

Free format text: PAYMENT UNTIL: 20130702

Year of fee payment: 3

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

LAPS Cancellation because of no payment of annual fees