ENGINE CONTROL SYSTEM AND ENGINE CONTROL METHOD
Patent Information
- Application Number
- DE602017090195
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2017-03-31
- Publication Date
- 2025-06-25
- Estimated Expiration
- 2037-03-31
AI Technical Summary
The connection of each sensor or peripheral device to a motor control apparatus increases physical and processing costs in existing systems.
A motor control system that includes a motor control apparatus with an encoder-sensor communication transmission-and-reception management unit, which manages communications and associations between encoders, external encoders, and sensors using a mapping table stored in a non-volatile memory, reducing the need for direct connections and associated costs.
This configuration allows for reduced physical and processing costs by efficiently managing sensor and encoder communications, enabling cost-effective motor control.
Description
TECHNICAL FIELD
[0001] The present disclosure relates to a motor control method and a motor control system.BACKGROUND ART
[0002] Patent Literature 1 discloses a system in which a plurality of sensors are connected to an interface unit through respective communication paths, and a detection signal of each of the sensors is transmitted to a host controller or a motor control apparatus via a network that connects the host controller and the motor control apparatus to each other.
[0003] Patent Literature 2 discloses a system in which a peripheral device that sets a parameter of a motor control apparatus or performs monitoring of the motor control apparatus through a communication unit in the motor control apparatus is connected.CITATION LISTPATENT LITERATURE
[0004] Patent Literature 1: JP H8-241111 A Patent Literature 2: JP H10-105206 A EP1460503 A1 describes a data table stored in a numerical controller that associates motors controlled by the numerical controller with information from sensors used by the motors. When the numerical controller is turned on, the contents of the data table are sent from the numerical control section to the motor control section. The motor control section controls each motor by using information from the sensors associated with the motor in the data table.US2008 / 017245 A1 describes an actuator including sensors which are used to detect variables representing the operating state of the actuator and are connected to an evaluation unit associated with the actuator. The evaluation unit is connected to sensors and / or control actuating elements by means of a first data bus. The sensors are used to detect measurable variables representing the operating state of the actuator, and to transmit the same to the evaluation unit.JP 2016-018445 A discusses automatically setting an axial configuration parameter, using a control system.JP H07-114402 A discusses to send and identification code to a software servo circuit without provision of an exclusive signal line for the identification code and to eliminate the need for interconnection between the software servo circuit and an identification code storage means for each setting of a parameter in a parameter automatic setting system for servo motor.JP 2007-528070 A discusses an actuator that includes sensors, which are used to detect variables representing the operating state of the actuator and are connected to an evaluation unit associated with the actuator.JP 2006-260581 A discusses a plurality of servo motors for driving a plurality of action axes such as an arm and the like, the rotary encoders for detecting respective rotation positions of the servo motors are provided and output the position information as serial data.JP 2001-157458 A discusses acontrol device of a power converter for vehicles that controls the power converter based on the output of a current sensor for detecting current flowing through an electric motor is provided with an operation means 21 for calculating a current conversion timing in synchronization with a PWM pulse, and a control means with a serial communication means 22 for communicating the operation result digitally.SUMMARY OF INVENTIONTECHNICAL PROBLEM
[0005] However, there is a problem in that each sensor or each peripheral device is connected to a motor control apparatus, and thus a physical or processing cost tends to increase, in the system in the related art.
[0006] The present disclosure has been made in consideration of the above circumstances, and an object of the present disclosure is to provide a motor control apparatus, a motor control method, and a motor control system, in which it is possible to reduce a physical or processing cost.SOLUTION TO PROBLEM
[0007] The invention is defined by the features of the appended independent claims.ADVANTAGEOUS EFFECTS OF INVENTION
[0008] According to the present disclosure, it is possible to provide a motor control apparatus, a motor control method, and a motor control system, in which it is possible to reduce a physical or processing cost.BRIEF DESCRIPTION OF DRAWINGS
[0009] Fig.1 is a diagram illustrating an example of a hardware configuration or a motor control system according to an example. Fig. 2 is a schematic diagram illustrating an example of an overall configuration of the motor control system according to the example. Fig. 3 is a diagram illustrating an example of a function block of a motor control unit in a motor control apparatus constituting the motor control system according to the example. Fig. 4 is a diagram illustrating an example of a mapping table managed by an encoder-sensor communication transmission-and-reception management unit of the motor control apparatus constituting the motor control system according to the example. Fig. 5 is a diagram illustrating an operation of the motor control apparatus constituting the motor control system according to the example. Fig. 6 is a diagram illustrating an operation of the motor control apparatus constituting the motor control system according to the example. DESCRIPTION OF EXAMPLES
[0010] According to the viewpoint of the inventor of the present example, sensing of an operation situation in a motor control system has become more important in recent years. However, if the number of sensors increases, a physical cost for the number of wires and the like and a processing cost for traffic, processing loads, and the like increase. In particular, in a case where sensing is performed in real time, the costs tend to increase.
[0011] As a result of intensive research and development to reduce the costs in the motor control system, the inventor of the present example has conceived of a new and unique motor control system. Hereinafter, an example of a motor control system 1 according to an example will be described with reference to Figs. 1 to 6.
[0012] In the present disclosure, the motor control system 1 according to the example is configured to control a plurality of motors #1 to #3. As illustrated in Figs. 1 and 2, the motor control system 1 includes a motor control apparatus 2, motors #1 to #3, a mechanical apparatus (not illustrated), encoders #1 to #3 that detect position information of the motors #1 to #3, encoders #4 and #5 that detect position information of the mechanical apparatus, and sensors #6 to #8.
[0013] In the example, a case where one motor control apparatus 2 that drives three axes of the motors #1 to #3 is provided is described as an example. The present disclosure can be applied to a case where a plurality of motor control apparatuss are provided, or a motor control apparatus that drives one axis and the like.
[0014] The motor control apparatus 2 is configured to control the motors #1 to #3. Specifically, the motor control apparatus 2 is a device including a computer that controls an amplifier unit that outputs a current, a voltage, and the like to the motors #1 to #3. That is, the motors #1 to #3 are configured to rotate in accordance with the voltage or the current applied from the motor control apparatus 20.
[0015] Generally, the motor control apparatus 2 that controls a servomotor is called as a servo-controller, a servo-amplifier, or the like. The motor control apparatus 2 may be a device configured to control the motor 10.
[0016] Specifically, as illustrated in Fig. 2, the motor control apparatus 2 includes inverter (INV) circuits #1 to #3 including amplifier units, motor control units #1 to #3 that respectively control the motors #1 to #3, an encoder-sensor communication transmission-and-reception management unit 10, a non-volatile memory 11, and physical interfaces (IFs) #1 to #3.
[0017] The amplifier unit is a power converter configured to supply a current or a voltage to the motors #1 to #3 based on a torque command from the motor control units #1 to #3, by switching (PWM control) of the inverter (INV) circuits #1 to #3.
[0018] Here, as illustrated in Fig. 3, each of the motor control units #1 to #3 includes a motor control calculation unit 101, an encoder logical-axis interface 102, an external encoder logical-axis interface 103, and a sensor logical-axis interface 104.
[0019] The motor control calculation unit 101 is configured to receive a command (position command and the like) from a host device and performs calculation for controlling positions, speeds, torques, and the like of the motors #1 to #3.
[0020] The encoder logical-axis interface 102 is configured to read out constants of the motors #1 to #3 corresponding to the motor control units #1 to #3 to which the encoder logical-axis interface 102 belongs, and identification information (encoder ID information) of the encoders #1 to #3 corresponding to the motors #1 to #3, based on a mapping table which is managed by the encoder-sensor communication transmission-and-reception management unit 10 and is stored in the non-volatile memory 11.
[0021] The encoder logical-axis interface 102 is configured to acquire position information of the motors #1 to #3 corresponding to the motor control units #1 to #3 to which the encoder logical-axis interface 102 belongs from the encoder #1 to #3 corresponding to the motors #1 to #3, based on the mapping table which is managed by the encoder-sensor communication transmission-and-reception management unit 10 and is stored in the non-volatile memory 11.
[0022] Specifically, in the example, the encoder logical-axis interface 102 in the motor control unit #1 is configured to acquire the motor constant or the position information of the motor #1 and the encoder ID information of the encoder #1 from the encoder-sensor communication transmission-and-reception management unit 10.
[0023] Similarly, the encoder logical-axis interface 102 in the motor control unit #2 is configured to acquire the motor constant or the position information of the motor #2 and the encoder ID information of the encoder #2 from the encoder-sensor communication transmission-and-reception management unit 10.
[0024] Similarly, the encoder logical-axis interface 102 in the motor control unit #3 is configured to acquire the motor constant or the position information of the motor #3 and the encoder ID information of the encoder #3 from the encoder-sensor communication transmission-and-reception management unit 10.
[0025] The external encoder logical-axis interface 103 is configured to read out identification information (external encoder ID information) of the external encoders #4 and #5 corresponding to the motors #2 and #3 corresponding to the motor control units #1 to #3 to which the external encoder logical-axis interface 103 belongs, based on the mapping table which is managed by the encoder-sensor communication transmission-and-reception management unit 10 and is stored in the non-volatile memory 11.
[0026] The external encoder logical-axis interface 103 is configured to acquire the position information of the mechanical apparatus that is driven by the motors #2 and #3 corresponding to the motor control units #2 and #3 to which the external encoder logical-axis interface 103 belongs, from the external encoders #4 and #5 corresponding to the mechanical apparatus that is driven by the motors #2 and #3. The acquisition is performed based on the mapping table which is managed by the encoder-sensor communication transmission-and-reception management unit 10 and is stored in the non-volatile memory 11.
[0027] Specifically, in the example, the external encoder logical-axis interface 103 in the motor control unit #2 is configured to acquire position information of the mechanical apparatus that is driven by the motor #2 or encoder ID information of the encoder #4, from the encoder-sensor communication transmission-and-reception management unit 10.
[0028] Similarly, the external encoder logical-axis interface 103 in the motor control unit #3 is configured to acquire position information of the mechanical apparatus that is driven by the motor #3 or encoder ID information of the encoder #5, from the encoder-sensor communication transmission-and-reception management unit 10.
[0029] The sensor logical-axis interface 104 is configured to read out identification information (sensor ID information) of the sensors #6 to #8 corresponding to the motor control units #1 to #3 to which the sensor logical-axis interface 104 belongs, based on the mapping table managed by the encoder-sensor communication transmission-and-reception management units 10.
[0030] The sensor logical-axis interface 104 is configured to read out sensor data of the sensors #6 to #8 corresponding to the motor control units #1 to #3 to which the sensor logical-axis interface 104 belongs, based on the mapping table managed by the encoder-sensor communication transmission-and-reception management units 10. Here, the sensor data includes ON / OFF information and the like of the sensor, for example.
[0031] The encoder-sensor communication transmission-and-reception management unit 10 is configured to manage communications with the encoders #1 to #5 or the sensors #6 to #8. Here, the encoder-sensor communication transmission-and-reception management unit 10 is configured to manage the mapping table illustrated in Fig. 4.
[0032] The mapping table is configured to be stored in a non-volatile memory such as an electrically erasable programmable read only memory (EEPROM).
[0033] In the example of a first axis in Fig. 4, the identification information of the encoder #1 and the motor control unit #1 (motor #1) are associated with each other. Specifically, the encoder logical-axis interface 102 of the motor control unit #1, the physical interface #3 (ch3), a communication address Addr.3, and the identification information of the encoder #1 are associated with each other.
[0034] Similarly, in the example of the first axis in Fig. 4, the identification information of the sensor #6 and the motor control unit #1 (motor #1) are associated with each other. Specifically, the sensor logical-axis interface 104 of the motor control unit #1, a physical interface #1 (ch1), the communication address Addr.3, and the identification information of the sensor #6 are associated with each other.
[0035] In the example of the first axis in Fig. 4, the external encoder is not provided. Thus, identification information of the external encoder and the motor control unit #1 (motor #1) are not associated with each other.
[0036] In the example of a second axis in Fig. 4, the identification information of the encoder #2 and the motor control unit #2 (motor #2) are associated with each other. Specifically, the encoder logical-axis interface 102 of the motor control unit #2, the physical interface #3 (ch3), a communication address Addr.2, and the identification information of the encoder #2 are associated with each other.
[0037] Similarly, in the example of the second axis in Fig. 4, the identification information of the encoder #4 (external encoder) and the motor control unit #2 (motor #2) are associated with each other. Specifically, the external encoder logical-axis interface 103 of the motor control unit #2, a physical interface #2 (ch2), the communication address Addr.2, and the identification information of the encoder #4 are associated with each other.
[0038] Similarly, in the example of the second axis in Fig. 4, the identification information of the sensor #7 and the motor control unit #2 (motor #2) are associated with each other. Specifically, the sensor logical-axis interface 104 of the motor control unit #2, the physical interface #1 (ch1), the communication address Addr.2, and the identification information of the sensor #7 are associated with each other.
[0039] In the example of a third axis in Fig. 4, the identification information of the encoder #3 and the motor control unit #3 (motor #3) are associated with each other. Specifically, the encoder logical-axis interface 102 of the motor control unit #3, the physical interface #3 (ch3), the communication address Addr.1, and the identification information of the encoder #3 are associated with each other.
[0040] Similarly, in the example of the third axis in Fig. 4, the identification information of the encoder #5 (external encoder) and the motor control unit #3 (motor #3) are associated with each other. Specifically, the external encoder logical-axis interface 103 of the motor control unit #3, the physical interface #2 (ch2), the communication address Addr.1, and the identification information of the encoder #5 are associated with each other.
[0041] Similarly, in the example of the third axis in Fig. 4, the identification information of the sensor #8 and the motor control unit #3 (motor #3) are associated with each other. Specifically, the sensor logical-axis interface 104 of the motor control unit #3, the physical interface #1 (ch1), the communication address Addr.1, and the identification information of the sensor #8 are associated with each other.
[0042] The mapping table may be set in advance by a user, and the setting details may be preserved in the non-volatile memory 11 of the motor control apparatus 2.
[0043] For example, the encoder-sensor communication transmission-and-reception management unit 10 is configured to assign unique communication addresses to the encoders #1 to #3, the external encoders #4 and #5, and the sensors #6 to #8 based on the above-described mapping table.
[0044] The encoder-sensor communication transmission-and-reception management unit 10 is configured to transfer the constants of the motors #1 to #3, the identification information of the encoders #1 to #3, the identification information of the external encoders #4 and #5, and the identification information of the sensors #6 to #8 to the corresponding encoder logical-axis interface 102, the corresponding external encoder logical-axis interface 103, or the corresponding sensor logical-axis interface 104, based on the above-described mapping table.
[0045] Similarly, the encoder-sensor communication transmission-and-reception management unit 10 is configured to transfer the position information of the motors #1 to #3, the position information of the mechanical apparatus that is driven by the motors #2 and #3, and the sensor data of the sensors #6 to #8 to the corresponding encoder logical-axis interface 102, the corresponding external encoder logical-axis interface 103, or the corresponding sensor logical-axis interface 104, based on the above-described mapping table.
[0046] The physical interfaces #1 to #3 are configured to perform processing of transmitting and receiving data to and from devices (motor control apparatus, encoder, external encoder, sensor, and the like) other than the motor control apparatus 2 to which the physical interfaces #1 to #3 belong.
[0047] Here, the encoders #1 to #3 and the external encoders #4 and #5 may be optical encoders or magnetic encoders, for example. The encoders #1 to #3 and the external encoders #4 and #5 are configured to transmit the position information of the motors #1 to #3 or the position information of the mechanical apparatus that is driven by the motor #2 or #3, to the motor control apparatus 2.
[0048] In the example, a case using the encoders #1 to #3 and the external encoders #4 and #5 as the position detector is described as an example. The present disclosure can be applied to a case using a sensor (for example, resolver) capable of detecting the position information of the motors #1 to #3 and the position information of the mechanical apparatus that is driven by the motors #2 and #3. Here, the encoders #1 to #3 and the external encoders #4 and #5 may be linear scales (linear encoders) used in a case where the motors #1 to #3 are linear motors or linear scales (linear encoders) attached to the mechanical apparatus.
[0049] The motors #1 to #3 may be rotary motors or linear motors. Here, in a case where the motors #1 to #3 are rotary motors, the above-described position information indicates a rotation angle. In a case where the motors #1 to #3 are linear motors, the above-described position information indicates a linear position.
[0050] In the example, a case where the encoders #1 to #3 and the external encoders #4 and #5 are provided is described as an example. The present disclosure can be applied to a case where there is no limitation to the number of external encoders (for example, 0, 1, or three or more).
[0051] The mechanical apparatus is configured to be driven by the motors #1 to #3. For example, a robot corresponds to the mechanical apparatus. For example, in the example, the motors #1 to #3 are configured to respectively drive the first axis to the third axis of a three-axis robot as the mechanical apparatus.
[0052] In an embodiment not forming part of the invention, the sensors #6 to #8 are configured to detect information (sensor data) relating to at least any one of the motors #1 to #3 and the mechanical apparatus configured to be driven by the motors #1 to #3. For example, a temperature sensor, a pressure sensor, a torque sensor, a vibration sensor, a limit switch sensor, a touch sensor, and an I / O device are assumed as the plurality of sensors #6 to #8.
[0053] The temperature sensor is a sensor configured to detect the temperature of at least any one of the mechanical apparatus and the motors #1 to #3 or the temperature in the vicinity of the mechanical apparatus or the motors #1 to #3. For example, a temperature measuring resistor type sensor or a thermocouple type sensor may be used as the temperature sensor.
[0054] The pressure sensor is a sensor configured to detect the pressure of at least any one of the mechanical apparatus and the motors #1 to #3 or the pressure in the vicinity of the mechanical apparatus or the motors #1 to #3. The pressure sensor is configured to measure the pressure with a pressure-sensitive element through a diaphragm (a stainless steel diaphragm, a silicon diaphragm, or the like) and to convert the measured pressure into an electrical signal and output the electrical signal.
[0055] The torque sensor is a sensor configured to detect a torque of at least any one of the mechanical apparatus and the motors #1 to #3. For example, the torque sensor may be a non-contact type torque sensor or a contact type torque sensor.
[0056] In this embodiment not forming part of the invention, the information (sensor data) relating to at least any one of the mechanical apparatus and the motors #1 to #3 means information which is not position information of the motors #1 to #3 among types of information regarding the state of at least any one of the mechanical apparatus and the motors #1 to #3. The information relating to at least any one of the mechanical apparatus and the motors #1 to #3 may be, for example, information which can be detected by the sensors #6 to #8.
[0057] For example, the information relating to at least any one of the mechanical apparatus and the motors #1 to #3 is information of the torques of the motors #1 to #3, the temperatures of the motors #1 to #3, a position of an object such as an arm, which is moved by the motors #1 to #3, pressure on the object, or the state (for example, temperature or ON / OFF information) of the sensors #6 to #8 that detect the above items.
[0058] The association information regarding at least any one of the mechanical apparatus and the motors #1 to #3 is used for an output control of the motors #1 to #3 or for adjusting a control parameter or is used for determining whether or not a problem occurs in the motors #1 to #3 or predicting lifespans (remaining periods) of the motors #1 to #3.
[0059] Here, as illustrated in Fig. 2, in the motor control system 1 according to the example, the encoders #1 to #3, the external encoders #4 and #5, and the sensors #6 to #8 are connected under a control of the motor control apparatus 2.
[0060] Specifically, in the motor control system 1 according to the example, as illustrated in Fig. 1, the encoder #1 and the sensor #6 are connected in series under a control of the first axis of the motor control apparatus 2.
[0061] Similarly, in the motor control system 1 according to the example, as illustrated in Fig. 1, the encoder #2, the external encoder #4, and the sensor #7 are connected in series under a control of the second axis of the motor control apparatus 2.
[0062] Further, in the motor control system 1 according to the example, as illustrated in Fig. 1, the encoder #3, the external encoder #5, and the sensor #8 are connected in series under a control of the third axis of the motor control apparatus 2.
[0063] The case where the three sensors #6 to #8 are provided is described as an example not forming part of the invention.
[0064] Here, the motor control apparatus 2 is configured to automatically acquire the identification information of the encoders #1 to #3, the identification information of the external encoders #4 and #5, and the identification information of the sensors #6 to #8 and to store the identification information and the motor control units #1 to #3 in the non-volatile memory 11 in association with each other.
[0065] Specifically, the encoder-sensor communication transmission-and-reception management unit 10 in the motor control apparatus 2 is configured to automatically acquire the identification information of the sensors #6 to #8 through the physical interface #1 and to store the identification information and the motor control units #1 to #3 in the non-volatile memory 11 in association with each other.
[0066] Similarly, the encoder-sensor communication transmission-and-reception management unit 10 in the motor control apparatus 2 is configured to automatically acquire the identification information of the encoders #4 and #5 through the physical interface #2 and to store the identification information and the motor control units #2 and #3 in the non-volatile memory 11 in association with each other.
[0067] Similarly, the encoder-sensor communication transmission-and-reception management unit 10 in the motor control apparatus 2 is configured to automatically acquire the identification information of the encoders #1 to #3 through the physical interface #3 and to store the identification information and the motor control units #1 to #3 in the non-volatile memory 11 in association with each other.
[0068] The motor control apparatus 2 may be configured to compare the identification information of the encoders #1 to #3, the identification information of the external encoders #4 and #5, or the identification information of the sensors #6 to #8, which have been acquired from the encoders #1 to #3, the external encoders #4 and #5, and the sensors #6 to #8 connected under the control of the motor control apparatus 2, to the identification information of the encoders #1 to #3, the identification information of the external encoders #4 and #5, or the identification information of the sensors #6 to #8, which have been stored in the non-volatile memory 11. Thus, the motor control apparatus 2 may be configured to check at least one of whether the encoders #1 to #3, the external encoders #4 and #5, and the sensors #6 to #8 operate as the above-described association and whether a connection configuration of the encoders #1 to #3, the external encoders #4 and #5, and the sensors #6 to #8 is not changed.
[0069] Further, the motor control apparatus 2 may be configured to instruct the encoders #1 to #3, the external encoders #4 and #5, or the sensors #6 to #8 to perform setting. For example, the motor control apparatus 2 is configured to instruct the encoders #1 to #3 and the external encoders #4 and #5 to set an origin, set a multiturn limit, reset a multiturn, and the like.
[0070] Here, the origin is a zero point in a coordinate system of the mechanical apparatus that is driven by the motors #1 to #3. For example, origin setting means that the origin is set to any position by a predetermined parameter in a case where an absolute linear encoder is used as the position detector. The user of the motor control apparatus 2 can set the predetermined parameter to be any value in accordance with the used mechanical apparatus.
[0071] The multiturn limit is used, for example, for controlling the position of a rotating body such as a turntable by using an absolute encoder as the position detector. In a case where a mechanical apparatus that moves the turntable only in one direction is assumed, the turntable rotates only in the one direction. Thus, the number of rotations of the turntable may exceed the upper limit of the number of rotations that can be counted by the absolute encoder. The multiturn limit is a parameter used such that fractions do not occur in an integer ratio relationship of the number of rotations of the motor and the number of rotations of the turntable, in this case. The user of the motor control apparatus 2 can set the parameter to any value in accordance with the mechanical apparatus to be used.
[0072] The multiturn reset means initialization (initialization of multiturn data) of the absolute value encoder to be used.
[0073] The motor control apparatus 2 is configured to start the motor control apparatus 20 again in a case where the above-described setting is performed and to check at least one of whether or not the encoders #1 to #3, the external encoders #4 and #5, or the sensors #6 to #8 operate as with the setting and whether or not predetermined operations of the motors #1 to #3 controlled by the motor control apparatus 2 are possible.
[0074] The motor control apparatus 2 may be configured to check at least one of whether or not the encoders #1 to #3, the external encoders #4 and #5, or the sensors #6 to #8 operate as with the setting and whether or not predetermined operations of the motors #1 to #8 controlled by the motor control apparatus 2 are possible, in a case where the power of the motor control apparatus 2 is put again, or in a case where the motor control apparatus 2 is restored (alarm reset) from an abnormal state or changes a parameter that requires power on (that is, in a case where the motor control apparatus 2 is software-reset).
[0075] Next, an example of an operation of the motor control apparatus 2 constituting the motor control system 1 according to the example will be described with reference to Figs. 5 and 6.
[0076] As illustrated in Fig. 5, in Step S101, the motor control apparatus 2 automatically acquires and displays the identification information of the encoders #1 to #3, the identification information of the external encoders #4 and #5, and the identification information of the sensors #6 to #8, through the physical interfaces #1 to #3.
[0077] In Step S102, the motor control apparatus 2 sets association between the identification information and the logical-axis interfaces 102 to 104. In Step S103, the motor control apparatus 2 generates the mapping table (see Fig. 4) and stores the mapping table in the non-volatile memory 11.
[0078] As illustrated in Fig. 6, if the power is put into the motor control apparatus 2 in Step S201, the motor control apparatus 2 automatically searches for the encoders #1 to #3, the external encoders #4 and #5, and the sensors #6 to #8 connected under the control of the physical interfaces #1 to #3 of the motor control apparatus 2 in Step S202.
[0079] In Step S203, the motor control apparatus 2 compares the number of the encoders #1 to #3, the external encoders #4 and #5, and the sensors #6 to #8 connected under the control of the physical interface #1 to #3 of the motor control apparatus 2 to the managed number (number registered in the mapping table).
[0080] In a case where both the numbers are equal to each other, the process proceeds to Step S204. In a case where both the numbers are not equal to each other, the process proceeds to Step S206.
[0081] In Step S204, the motor control apparatus 2 acquires the identification information of the encoders #1 to #3, the external encoders #4 and #5, and the sensors #6 to #8 connected under the control of the physical interface #1 to #3 of the motor control apparatus 2.
[0082] In Step S205, the motor control apparatus 2 compares the acquired identification information to the managed identification information (identification information registered in the mapping table).
[0083] In a case where both pieces of identification information coincide with each other, the process proceeds to Step S207. In a case where both the pieces of identification information do not coincide with each other, the process proceeds to Step S206.
[0084] In Step S206, the motor control apparatus 2 displays abnormality and performs a notification of the abnormality. In Step S207, the motor control apparatus 2 performs a normal operation.
[0085] According to the motor control system 1 in the example, even in a case where the plurality of encoders are configured to be connected in series under the control of the motor control apparatus 2, it is possible to appropriately realize the setting procedure of the motor control apparatus 2. As a result, it is possible to reduce a physical or processing cost.Reference Signs List
[0086] 1 ...motor control system 2 ...motor control apparatus 10 ...encoder-sensor communication transmission-and-reception management unit 11 ...non-volatile memory 101 ...motor control calculation unit 102 ...encoder logical-axis interface 103 ...external encoder logical-axis interface 104 ...sensor logical-axis interface
Claims
1. A motor control system comprising: a motor control apparatus (2) including a plurality of motor control units configured to respectively control motors; and a plurality of position detectors connected in series under a control of the motor control apparatus and configured to detect position information of the respective motors, wherein the motor control apparatus is configured: to automatically acquire each identification information of the plurality of position detectors, to store the acquired identification information in association with the plurality of motor control units in a non-volatile memory (11).
2. The motor control system according to claim 1, wherein the motor control apparatus is configured: to compare the identification information of the plurality of position detectors, which has been acquired from the plurality of position detectors connected under the control of the motor control apparatus, to identification information of the plurality of position detectors, which has been stored in the non-volatile memory, and to check at least one of whether the position detectors operate in accordance with the association and whether a connection configuration of the plurality of position detectors is not changed.
3. A motor control method of controlling, by a plurality of motor control units respective motors, the method comprising: automatically acquiring each identification information of a plurality of position detectors connected in series under a control of a motor control apparatus including the plurality of motor control units and detecting position information of the respective motors, by the plurality of position detectors; and storing the acquired identification information in association with the plurality of motor control units in a non-volatile memory by the motor control apparatus.