CONTROL SYSTEM, DRIVER, ELECTRIC MOTOR, CONTROL DEVICE, AND CONTROL METHOD
A daisy chain network for packet transfer and power supply simplifies wiring and reduces costs in complex control systems by eliminating separate communication lines, enhancing flexibility and response times.
Patent Information
- Application Number
- JP2021041885
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-03-15
- Publication Date
- 2024-10-02
- Estimated Expiration
- 2041-03-15
AI Technical Summary
The complexity of control systems involving multiple drivers and electric motors leads to increased wiring load and costs due to separate wiring of power and communication lines, which is inefficient and costly.
A daisy chain network is established for packet transfer and power supply, where commands and physical quantities detected by encoders are transmitted through a single communication line, eliminating the need for separate communication lines between drivers and motors.
This configuration simplifies signal lines, reduces wiring load and costs, and enhances flexibility in arranging drivers and motors, while improving response times in control systems.
Smart Images

Figure 0007559635000001 
Figure 0007559635000002 
Figure 0007559635000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a control system, a driver, an electric motor, a control device, and a control method. [Background technology]
[0002] Between the servo driver (servo drive, or simply called the driver) and the electric motor, the power line and the encoder signal line are wired separately. This makes the wiring work a heavy burden. As a result, the wiring work also causes an increase in costs. In view of this, for example, in a servo system consisting of multiple motors with built-in serial encoders, a communication line connecting the servo drive and the serial encoder, and a power line connecting the serial encoder and the servo drive, a system has been proposed in which the power line and the communication line are common and connected in a daisy chain (for example, see Patent Document 1 below). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2007-181340 A [Patent Document 2] JP 2006-304461 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, as the control system becomes more complex, a configuration in which a plurality of drivers and motors are connected to a control device such as a PLC may be possible.
[0005] An object of the present invention is to simplify signal lines and reduce the burden and cost of wiring work in a complex control system including a plurality of drivers. [Means for solving the problem]
[0006] An embodiment according to the invention is exemplified by the following control system. In a first aspect, the control system comprises: A plurality of control mechanisms including a driver for driving an electric motor and an electric motor having an encoder for detecting a physical quantity related to the rotation of the electric motor; A control device that controls the plurality of control mechanisms, the drivers, the motors, and the control devices included in the plurality of control mechanisms are connected to a network having a daisy chain structure capable of packet transfer and supplying power to the encoders, the control device sets a command addressed to each driver in an area corresponding to each driver of the plurality of control mechanisms within the packet, and transmits the packet to a next connection destination in the daisy chain structure; Each driver of the plurality of control mechanisms obtains a command addressed to itself from the control device from a region corresponding to itself in a packet received from a source of the daisy chain structure, and transmits the received packet to a next destination in the daisy chain structure; Each electric motor of the multiple control mechanisms sets the physical quantity detected by the encoder possessed by that electric motor in the area corresponding to it in the received packet, and transmits the received packet to the next destination in the daisy chain structure.
[0007] In this control system, each motor sets the physical quantity detected by the encoder of the motor in the area corresponding to the motor in the packet, thereby daisy-chaining the motors. Therefore, it is not necessary to provide a communication line between the driver and the electric motor for individually transferring the physical quantity detected by the encoder of the electric motor.
[0008] In a second aspect, the packet is forwarded by looping back at an end of the network having the daisy chain structure; The drivers of the plurality of control mechanisms each obtain the physical quantity detected in the electric motor corresponding to the respective driver from the region corresponding to the driver in the packet that has been returned and transferred.
[0009] In this control system, the physical quantities detected by the encoders of the electric motors are handed over to the drivers connected in the daisy chain structure by packets that are folded back and transferred at the end of the daisy chain network. Therefore, a command from the control device to the driver and the delivery of the physical quantities from the electric motor to the driver can be executed by a packet making a round trip in the daisy chain structure.
[0010] In a third aspect, in each of the plurality of control mechanisms, the driver is connected to the daisy chain structure at a position closer to the control device than the corresponding electric motor. With this arrangement, a packet makes a round trip through the daisy chain structure, thereby realizing a command from the control device to the driver and a transfer of the physical quantity from the electric motor to the driver.
[0011] In a fourth aspect, the control device is connected to a start point of the daisy chain structure and transmits the packet; While the transmitted packet is traveling back and forth between the terminal end of the daisy chain structure, each motor of the plurality of control mechanisms sets the physical quantity in the received packet; After the transmitted packet has traveled back and forth once between the terminal of the daisy chain structure, the control device retransmits the packet that has traveled back and forth once; The drivers of the respective control mechanisms acquire the physical quantities detected in the electric motors corresponding to the respective drivers from the regions corresponding to the respective drivers in the retransmitted packets.
[0012] With this configuration, the packet travels back and forth twice between the end of the daisy chain structure, thereby realizing the command from the control device to the driver and the delivery of the physical quantity from the motor to the driver. In this case, the driver does not need to be connected to the daisy chain structure at a position closer to the control device than the corresponding motor. This increases the degree of freedom in the arrangement and connection of the driver and the corresponding motor.
[0013] In a fifth aspect, an embodiment of the present invention can be specified as the driver described above.
[0014] In a sixth aspect, an embodiment of the present invention can be specified as the electric motor described above.
[0015] In a seventh aspect, an embodiment of the present invention can be specified as the above control device.
[0016] In an eighth aspect, one embodiment of the present invention can be specified as a control method in a control system. Effect of the Invention
[0017] In at least one aspect of the present embodiment, in a complex control system including a plurality of drivers, signal lines are simplified, so that the burden and cost of wiring work can be reduced. [Brief description of the drawings]
[0018] [Figure 1] FIG. 1 is a diagram illustrating an example of an application scene of a control system according to an embodiment. [Diagram 2] FIG. 2 is a diagram illustrating a control system according to a comparative example. [Diagram 3] FIG. 3 is a diagram illustrating a control system according to the first embodiment. [Figure 4] FIG. 4 is a diagram illustrating another arrangement of the motor and the driver in the first embodiment. [Diagram 5] FIG. 5 is a diagram illustrating a control system according to the first embodiment. [Figure 6]FIG. 6 is a diagram illustrating a control system using ducts to protect or shield wiring. [Figure 7] FIG. 7 is a diagram for comparing a control system including a sensor according to a comparative example with the control system according to the first embodiment. [Figure 8] FIG. 8 is a diagram illustrating the configuration of process data included in a packet according to the first embodiment, and the processing of the nodes when the packet circulates around the daisy chain for the first time. [Figure 9] FIG. 9 is a diagram illustrating the process of the node when the packet circulates around the daisy chain for the second time. [Figure 10] FIG. 10 is a diagram illustrating the processing of the control system of the first embodiment. [Figure 11] FIG. 11 is a diagram illustrating the process after a packet is returned in the reverse direction of the daisy chain. [Figure 12] FIG. 12 is a diagram illustrating a configuration of process data included in a packet according to the second embodiment and processing of a node when the packet circulates around the daisy chain. [Figure 13] FIG. 13 is a diagram illustrating the processing of the control system of the second embodiment. [Figure 14] FIG. 14 is a diagram illustrating the processing of the control system of the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0019] Hereinafter, an embodiment according to one aspect of the present invention (hereinafter, also referred to as "the present embodiment") will be described with reference to the drawings. However, the present embodiment described below is merely an example of the present invention in every respect. It goes without saying that various improvements and modifications can be made without departing from the scope of the present invention. In other words, in carrying out the present invention, a specific configuration according to the present embodiment may be appropriately adopted. Note that data appearing in the present embodiment is explained in natural language. However, more specifically, data appearing in the present embodiment is processed in pseudo-language, commands, parameters, machine language, etc. that can be recognized by a computer. In addition, these data are stored in the form of binary data, character strings, etc. in the storage area of a main storage device or a secondary storage device.
[0020] <Application Examples> First, an example of a scene to which the present invention is applied will be described with reference to FIG. 1. FIG. 1 illustrates a control system 100 according to the present embodiment. However, as shown in FIG. 1, the control system 100 is, for example, a factory automation system, a collection and delivery system of a collection and delivery center of a transport company, a dispatch center of a mail-order company, an articulated robot, a construction machine, or the like. As shown in FIG. 1, the control system 100 has a plurality of motors M1 to M4, servo drivers (hereinafter simply referred to as drivers) D1 to D4 that drive the motors M1 to M4, and a control device 10. In FIG. 1, the motors M1 to M4 and the drivers D1 to D4 are connected by power lines LP1 to LP4 for supplying power from the drivers D1, etc. to the motors M1, etc. Note that the motors are also called electric motors.
[0021] The motors M1, drivers D1, and the control device 10 are connected by a communication line LC. The communication line LC connects the control device 10, drivers D1, and the motors N1, etc. in a daisy chain to form a network N1. The daisy chain is a network This is one way of connecting the nodes that make up the network. In a daisy chain, the second node is connected to the first node, and the third node is connected to the second node. Note that the network N1 is not limited to a single daisy chain, and can branch into multiple routes by branching sections BR.
[0022] Here, the network N1 may be, for example, EtherCATP (registered trademark). In the network N1, the control device 10 is the master node, and the motors M1, etc., the driver D1, etc. are slave nodes.
[0023] As shown in Fig. 1, the control system 100 can be said to be a system that controls, for example, four axes. However, the number of slave nodes is not limited to eight as shown in Fig. 1. That is, the number of motors M1, etc. and the number of drivers D1, etc. may each be three or less, or five or more.
[0024] In network N1, the available area for data input / output within a packet is determined for each slave node. Then, a packet sent from a master node reaches the slave node at the most downstream (end), is turned back, and returns to the master node again. During this time, data exchange between the master node and all slave nodes is completed while the packet makes a circuit of network N1.
[0025] Furthermore, in the network N1, the communication line LC includes, for example, an Ethernet (registered trademark) signal line and a power line. Therefore, the communication line LC includes, for example, a data line capable of transmitting and receiving information in an IEEE 802.3 standard Ethernet (registered trademark) frame, and a power line capable of supplying power from the master node to the slave node. The network N1 can be said to be an example of a daisy-chain structured network capable of packet transfer and power supply to each encoder.
[0026] The control device 10 is, for example, a Programmable Logic Controller (PLC), a servo controller, The control device 10 includes a central processing unit (CPU) such as a microprocessor and a memory, and is controlled by a program that can be changed by the user. The control device 10 controls the devices. The control device 10 has a communication interface for the communication line LS. The CPU of the control device 10 executes communication through the communication line LS connected in a daisy chain.
[0027] The driver D1 etc. receives target value instructions from the control device 10, supplies power to the motor M1 etc., and controls the motor M1 etc. The target values are, for example, the rotational position, rotational speed, rotational force, etc. of the shaft of the motor M1 etc. The driver D1 etc. has a controller including a CPU and a communication interface of a communication line LS, and executes communication through the communication line LS connected in a daisy chain.
[0028] The motor M1 etc. has a communication device and an encoder inside. The communication device has a controller including a CPU and a communication interface of a communication line LS, and executes communication through the communication line LS connected in a daisy chain. The encoder detects physical quantities related to the rotation of the motor, such as the rotation position (rotation angle), number of rotations, or rotation speed of the shaft of the motor M1 etc. The encoder receives power supply from the power line of the communication line LC, and detects the rotation of the shaft of the motor M1 etc. by operating, for example, an optical sensor. The communication device then notifies the control device 10 or the driver D1 etc. of the physical quantities detected by the encoder (rotation position, number of rotations, rotation speed, etc.) through the data line of the communication line LC. The driver D1 etc. controls the motor M1 etc. so that the rotation position, rotation speed, rotation force, etc. of the motor M1 approach target values based on the physical quantities detected by the encoder. The combination of the driver D1 etc. and the motor M1 etc. can be said to be an example of a control mechanism.
[0029] <Comparative Example> FIG. 2 illustrates a control system 500 according to a comparative example. The control system 500 includes a control device 50, drivers D51 and D52, and motors M51 and M51. In the control system 500, the control device 50 and the drivers D1 and D52 are connected by a communication line LC50 to form a motion network, as in the case of FIG. 1. However, in the comparative example, the drivers D51 and D52 supply power to the motors M51 and M52 through power lines LP51 and LP52. Also, in the comparative example, the drivers D51 and D52 receive detection values such as the rotational position and rotational speed of the motors M51 and M52 from the encoders attached to the motors M51 and M52 via encoder lines LE51 and LE52.
[0030] That is, in the comparative example, separate wiring is required between the driver D51 etc. and the motor M51 etc., using the power lines LP1 etc. and the encoder lines LE1 etc. Also, to avoid the effects of noise, the power lines and the encoder lines must be installed separately. Therefore, if there is a distance between the driver D51 etc. and the motor M51 etc., the long-distance power lines LP1 etc. and the encoder lines LE1 etc. must be wired separately. Also, the communication lines LC50 and the encoder lines LE51 etc. for the motion network are each dedicated communication lines. Therefore, the user must prepare dedicated cable types for each.
[0031] <Embodiment 1> Hereinafter, the control systems 100A to 100D of this embodiment will be described with reference to FIGS.
[0032] (composition) Fig. 3 is a diagram illustrating a control system 10A of this embodiment. As in Fig. 1, the control system 100A has a plurality of motors M1, M2, drivers D1, D2 for driving the motors M1, etc., and a control device 10. As in Fig. 1, in Fig. 3, the motors M1, M2 and the drivers D1, D2 are connected by power lines LP1, LP2 for supplying power from the driver D1, etc. to the motors M1, etc. The control system 100A can be said to be, for example, a system for controlling two axes.
[0033] Also in FIG. 3, like FIG. 1, the motors M1, etc., the drivers D1, etc., and the control device 10 are connected by a communication line LC. The communication line LC connects the control device 10, the drivers D1, etc., and the motors M1, etc. in a daisy chain to form the network N1 illustrated in FIG. 1. Note that FIG. 3 does not illustrate the branching portion BR in FIG. 1. However, in this embodiment and other embodiments described below, the daisy chain formed by the communication line LC can branch into a plurality of paths at the branching portion BR. The control device 10, the drivers D1, etc., and the motors M1, etc. are the same as those described in FIG. 1.
[0034] In the control system 100A as well, power is supplied from the driver D1 etc. to the encoder attached to the motor M1 etc. via the communication line LC. Then, physical quantities such as the rotational position, number of rotations, and rotational speed of the motor D1 etc. detected by the encoder are notified to the control device 10 via the communication line LC. Therefore, in the control system 100A as well, it is not necessary to wire the encoder lines LE1, LE2 etc. individually from the control device 10 to the drivers D1, D2. In other words, a daisy chain of communication lines LC is sufficient.
[0035] 4 illustrates another arrangement of the motors M1, M2 and the drivers D1, D2 in this embodiment. In FIG. 4, it is assumed that the drivers D1, D2 are arranged close to the control device 10, and the motors M1, M2 are arranged away from the control device 10 and the drivers D1, D2, etc. In this way, when the driver D1, etc. and the motor M1, etc. are arranged at a distance, the control system 100A in FIG. 3 has a function of controlling the encoder in a more efficient manner than the comparative example in FIG. 21. This eliminates the need for wiring such as the driver line LE1, resulting in a significant effect.
[0036] Fig. 5 is a diagram illustrating a control system 100B in which motors M1, M2 and drivers D1, D2 are arranged in the same manner as in the comparative example of Fig. 2. In Fig. 5, a control system 500B having a configuration similar to that of Fig. 2 is also illustrated for comparison.
[0037] 5, in the control system 500B, an encoder line LE1 that connects the driver 51 and the motor M51, and an encoder line LE2 that connects the driver 52 and the motor M52 are wired. On the other hand, in the control system 100B of the present embodiment, if a single daisy chain of communication lines LC is wired, physical quantities such as the rotational position and rotational speed detected by the encoders attached to the motors M1 and M2 can be fed back to the drivers D1 and D2 from the motors M1 and M2.
[0038] Fig. 6 is a diagram illustrating a control system 100C of this embodiment using ducts T1 and T2 for protecting or shielding wiring. For comparison, Fig. 6 also illustrates a control system 500C using ducts T51 and T52 in the same configuration as Fig. 2.
[0039] 6, in a control system 500C of the comparative example, the power lines LP51, LP52 and the encoder lines LE51, LE52 are housed in different ducts T51, T52, respectively, to prevent interference due to noise. Similarly, in a control system 100C of the present embodiment, the power lines LP1, LP2 and the communication line LC are housed in different ducts T1, T2, respectively.
[0040] As shown in FIG. 6, in the case of the control system 500C, two encoder lines LE51 and LE52 need to pass through the duct T51. On the other hand, in the control system 100C of the present embodiment, only one communication line LC is required to pass through the duct T2. FIG. 6 is an example of the control system 100C that controls two axes. When controlling three axes, in the case of the control system 500C of the comparative example, three encoder lines pass through the duct T51, and in the case of the control system 100C of the present embodiment, only one communication line LC is required to pass through the duct T2. This is a generalized effect that, in a system that controls N (integer) axes, N encoder lines can be replaced with one communication line LC. In addition, the effect of the present embodiment is particularly large when, for example, a control panel including the control device 10, drivers D1, D2, etc. is installed at a position away from the motors M1, M2, etc.
[0041] Fig. 7 is a diagram comparing a control system 500D of a comparative example including sensors SN51, etc. with a control system 100D of this embodiment including sensors SN1, etc. The control system 500D illustrated on the left side of Fig. 7 is a control system 500C of Fig. 6 to which sensors SN51 and SN52 have been added. On the other hand, the control system 100D illustrated on the right side of Fig. 7 is a control system 100C of Fig. 6 to which sensors SN1 and SN2 have been added.
[0042] In the control system 500D, the sensors SN1 and SN2 are connected to the drivers D51 and D52 by the sensor lines LS51 and LS52 passing through the duct T51, respectively. On the other hand, in the control system 100D of this embodiment, the sensors SN1 and SN2 only need to be connected to the daisy chain of the communication line LC. Therefore, in the control system 100D, instead of the two sensor lines LS51 and LS52, one daisy chain communication line LS may be wired. This is also true when the number of sensors LS1 and the like is increased to N (an integer). In addition, for example, when a control panel including the control device 10, the drivers D1 and D2, and the like is installed at a position away from the motors M1 and M2, and the like, the effect of this embodiment is particularly large.
[0043] Here, the type and number of sensors SN1, SN2, etc. are not limited. The sensors SN1, SN2, etc. have a detection unit, a controller including a CPU, and a communication interface with the daisy-chain communication line LS. The detection unit detects data including at least one of various physical quantities, chemical components, biological information, images, sounds, etc. The physical quantities include, for example, mechanical or electromagnetic measurements, measurements from the environment, etc. The chemical components include, for example, molecules and other components contained in a substance or the environment. The biological information includes, for example, information obtained from the human body or living organisms, biological information obtained from the environment, etc. The controller sends the data detected by the detection unit from the communication interface to the next destination via the daisy-chain communication line LS. These data are set in an input / output possible area corresponding to the sensor SN1, etc., in a packet exchanged on the communication line LS. That is, the sensor SN1 etc. detects data including at least one of physical quantity, chemical component, biological information, image, and sound, sets the detected data in an area corresponding to itself in a packet received from a source of the daisy chain structure, and transmits the received packet to the next destination of the daisy chain structure. In this way, the data detected by the sensor SN1 etc. is transmitted to the drivers D1, D2 etc. or the control device 10.
[0044] (Packet process data configuration and input / output timing) 1, 3 to 7, the control device 10 and the like can be said to be located at the starting point of a daisy chain. That is, the control device 10, driver D1, motor M1, driver D2, motor M2, ... are connected in a daisy chain structure. Below, input and output of data to and from packets in this daisy chain structure will be explained together with the structure of process data in the packets.
[0045] Fig. 8 illustrates the structure of process data included in a packet exchanged via a daisy chain of communication lines LC of the control systems 100A to 100D of this embodiment. The process data is the data portion excluding the header information and frame check sequence of the packet. In Fig. 8, the process data structure is illustrated by arrows, along with the processing of the control device 10 and the processing of the slave node accessed when the packet circulates around the daisy chain for the first time.
[0046] As shown in FIG. 8, the process data is specified in advance as a readable / writable area for each of the drivers D1, D2, . . . and the motors M1, M2, . . . which are slave nodes incorporated in the daisy chain. Such a specification may be implemented, for example, so that the nodes can be identified by node numbers in the daisy chain network. Such a specification may be executed, for example, when each slave node is connected to the daisy chain. Also, such a specification may be executed, for example, in the initial setting between the master node and the slave node. As shown in the figure, in this embodiment and other embodiments described below, the motors M1, M2, etc. are accompanied by encoders E1, E2, etc. Then, the process data exemplified in FIG. 8 includes a command C1 addressed to the driver D1, a feedback F1 addressed to the driver D1, a command C2 addressed to the driver D2, a feedback F2 addressed to the driver D2, . . . In this embodiment, the number of slave nodes of the drivers D1, etc. and the motors M1, etc. is not limited to two (four in total).
[0047] For example, the control device 10 writes a command C1 addressed to driver D1 and a command C2 addressed to driver D2 in the respective areas of the packet (arrows A1, A2), and sends the packet to the daisy chain. In this embodiment, the daisy chain is formed in the order of driver D1, motor M1, driver D2, and motor M1, as shown in FIG. 3. As already mentioned, the control device 10, drivers D1, etc., motors M1, etc., and sensors SN1, etc. are provided with communication interfaces of the communication line LS, and communication is carried out by these. However, in the explanation of this embodiment, it is explained that the control device 10, drivers D1, etc., and motor M1, etc. communicate with each other. The control device 10 transfers the packet to the driver D1.
[0048] Then, the driver D1 receives the packet and reads out a command C1 for the driver D1 from the process data (arrow A3). The command C1 is, for example, a target value for the rotational position, rotational speed, rotational force, etc. of the motor M1. The driver D1 transfers the packet to the motor M1 and controls the motor M1 according to the command C1 read out from the process data. At this point, the feedback F1 for the driver D1 has not been set, so the driver D1 cannot obtain the feedback F1.
[0049] Next, when the motor M1 receives the packet, it writes the physical quantities such as the rotation position, the number of rotations, and the rotation speed detected by the encoder E1 attached to the motor M1 in the feedback F1 area addressed to the driver D1 (arrow A4).Then, the motor M1 transfers the packet to the driver D2.
[0050] Next, when the driver D2 receives the packet, it reads out a command C2 for the driver D2 from the process data (arrow A5). The driver D2 transfers the packet to the motor M2 and controls the motor M2 according to the command C2 read out from the process data. At this point, the feedback F2 for the driver D2 has not been set, so the driver D2 cannot obtain the feedback F2.
[0051] Furthermore, when the motor M2 receives the packet, it writes physical quantities such as the rotation position, number of rotations, and rotation speed detected by the encoder E2 attached to the motor M2 in the feedback F2 area addressed to the driver D2 (arrow A6). Then, the motor M2 sends the packet addressed to the driver D2, looping back through the daisy chain. The packet is then transferred in the reverse direction through the daisy chain, and temporarily returns to the control device 10. Note that in this embodiment, while the packet is transferred in the reverse direction through the daisy chain, the slave node does not perform input / output to the process data area. Then, the control device 10 sends the looped back transferred packet again toward the driver D1.
[0052] 9 illustrates with arrows the process of the slave node accessed when the packet circulates the daisy chain for the second time. In this embodiment, in the second circulation of the packet, the control device 10 clears the commands (command C1 addressed to driver D1 and command C2 addressed to driver D2) from the first circulation (arrows A111, A12). However, instead of clearing the first command C1 addressed to driver D1 and command C2 addressed to driver D2, the control device 10 may set the access to this area by the drivers D1 and D2 to be prohibited. Then, as in the first circulation, the control device 10 transfers the packet to the driver D1.
[0053] When the driver D1 receives the packet circulated for the second time, it reads the feedback F1 addressed to the driver D1 from the process data (arrow A7). The driver D1 transfers the packet to the motor M1 and controls the motor M1 according to the command C1 and feedback F1 acquired in the first circulation.
[0054] Next, when the motor M1 receives the packet, since the data has already been written in the feedback F1 area, the motor M1 transfers the packet as is to the driver D2.
[0055] Next, when the driver D2 receives the packet circulated for the second time, it reads the feedback F2 addressed to the driver D2 from the process data (arrow A8). The driver D2 transfers the packet to the motor M2 and controls the motor M2 according to the command C2 and feedback F2 acquired in the first circulation.
[0056] Next, when the motor M2 receives the packet, since the data has already been written in the feedback F2 area, the motor M2 returns the packet to the driver D2 as is.
[0057] The packet returned in this way is transferred in the reverse direction through the daisy chain and returned to the control device 10. Then, the control device 10 sets a new target value in the packet of the first round illustrated in FIG. 8, and sends a packet that clears the feedback F1, F2 areas or sets the areas to be writable to the daisy chain. In this way, the control device 10 alternately sends the packet circulating in the first round illustrated in FIG. 8 and the packet circulating in the second round, which has been returned in the first round and is illustrated in FIG. 9, to the daisy chain. In this manner, the control device 10 passes the target value to the drivers D1, D2 of the slave nodes. Also, the encoders E1, E2 of the motors M1, M2 pass the feedback to the drivers D1, D2 via the control device 10.
[0058] (process) The process of the control system 100A will be described with reference to Figs. 9 and 10. Figs. 9 and 10 illustrate the exchange of packets between the control device 10, the drivers D1 and D2, the motors M1 and M2, and the encoders E1 and E2 attached to the motors M1 and M2, and the process executed by them. In this process, the control device 10, acting as the master node, first instructs the slave nodes to perform initial settings (S1). The initial settings instruction may include, for example, a notification of each access permission area in the process data for each slave node. Then, each slave node recognizes the area to be read and the area to be written by itself according to the initial settings instruction, and stores the area in each memory (S2 to S5). As already mentioned, such settings may be executed when each slave node is connected to a daisy chain.
[0059] Next, the control device 10 sets a command in the process data (S6) and sends out the packet (S7). The process of S6 is an example of setting a command addressed to each driver in an area corresponding to each driver of a plurality of control mechanisms in the packet. The process of S7 is an example of sending the packet to the next connection destination in the daisy chain structure.
[0060] Then, the driver D1 receives the packet (S8). The driver D1 then reads a command C1 addressed to the driver D1 from an area in the process data to which the driver D1 is permitted to access (S9). The process of S9 is an example of obtaining a command addressed to the driver D1 from the control device 10 from an area corresponding to the driver D1 in the packet received from the sender of the daisy chain structure. Next, the driver D1 sends out the packet (S10) and controls the motor M1 according to the command C1 (S11). The process of S10 is an example of transmitting the packet to the next connection destination in the daisy chain structure.
[0061] Next, the motor M1 receives the packet (S12). Then, the motor M1 writes the physical amount detected by the encoder E1 in the area of the feedback F1 addressed to the driver D1 (S13). The process of S13 is an example of setting the physical amount detected by the encoder of each electric motor in the area corresponding to the motor itself in the received packet. Then, the motor M1 sends out the packet (S14). The process of S14 is an example of sending the received packet to the next destination in the daisy chain structure.
[0062] Next, the driver D2 receives the packet (S15). The driver D2 then reads a command C2 addressed to the driver D2 from an area in the process data to which access is permitted (S16). The process of S16 is also an example of obtaining a command addressed to the driver D2 from the area corresponding to the driver D2 in the packet received from the sender of the daisy chain structure. Next, the driver D2 sends out the packet (S17) and executes the model in accordance with the command C2. Then, the controller M2 is controlled (S18).
[0063] Motor M2 then receives the packet (S19). Motor M2 then writes the physical quantity detected by encoder E2 in the feedback F2 area addressed to driver D2 (S20). The process of S20 is also an example of setting the physical quantity detected by the encoder of each motor in the area corresponding to the motor in the received packet. Motor M1 then sends the packet back in the reverse direction of the daisy chain. The processes of S13 and S20 are also an example of setting the physical quantity in the packet received by each motor of multiple control mechanisms while the packet goes back and forth between the ends of the daisy chain structure.
[0064] Fig. 11 illustrates the process after the packet is folded back in the reverse direction of the daisy chain. That is, the motor M2 sends a packet toward the driver D2 (S30). Then, each slave node sends a packet in the reverse direction of the daisy chain (S31 to S37). The process of S30 to S37 can be said to be an example of a packet being folded back and transferred at the end of a network with a daisy chain structure. Also, the process of S7 in Fig. 10 to S37 in Fig. 11 can be said to have made one round trip between the end of the daisy chain structure and the packet.
[0065] When the control device 10 receives the packet that has been looped back and forwarded (S37), it sends the received packet back to the daisy chain as feedback (S38). The process of S38 is an example of sending a packet that has made a round trip again.
[0066] Then, the driver D1 receives the feedback packet (S39). The driver D1 reads the feedback F1 addressed to the driver D1 from an area in the process data to which the driver D1 is permitted to access (S40). The process of S40 is an example of acquiring a physical quantity detected in the motor corresponding to each driver from an area corresponding to the driver in the packet that has been sent again. Next, the driver D1 sends the packet to the motor M1 (S41) and controls the motor M1 according to the command C1 and feedback F1 acquired in the first round (S42).
[0067] Next, the motor M1 receives the packet (S43) and sends it to the driver D2 as is (S44). As a result, the driver D2 receives the feedback packet (S45). Then, the driver D2 reads the feedback F2 addressed to the driver D2 from an area in the process data to which the driver D2 is permitted to access (S46). The process of S46 is also an example of obtaining a physical quantity detected in the motor corresponding to each driver from an area corresponding to the driver D2 in the packet that has been sent again. Next, the driver D2 sends the packet to the motor M2 (S47) and controls the motor M2 according to the command C2 and feedback F2 obtained in the first round (S48).
[0068] Then, the motor M2 receives the packet (S49) and returns it to the driver D2 (S50). After that, similar to S30 to S37, each slave node sends out packets in the reverse direction of the daisy chain.
[0069] (Effects of the embodiment) As described above, the control system 100A of this embodiment has a configuration in which the control device 10, the driver D1, etc., and the motor M1 (including the encoder E1) are connected in a daisy chain by the communication line LC. The control device 10 serves as the master node, and the drivers D1, etc., and the motor M1 (encoder E1) etc. serve as slave nodes. As a result, while the packet is traveling back and forth in the daisy chain, the control device 10 transmits the target value to the driver D1, etc. A command including the motor M1 is transmitted, and a physical quantity, which is feedback information measured by the encoder E1 in the motor M1, etc., is added to the packet. Then, next, while the packet goes back and forth again in the daisy chain, the driver D1, etc. acquires this feedback information. Such two round trips (round trips) of the packet make the conventional encoder line LE1, etc. unnecessary. As a result, in the control system 100A including a plurality of drivers D1, etc., motors M1 (encoders E1), etc., the load of wiring work is significantly reduced. This effect is significant when the distance between the driver D1, etc. and the motor M1 (encoder E1), etc. is large, for example, as illustrated in FIG. 4 and FIG. 5. This effect is also significant when a duct D1, etc. is used, as illustrated in FIG. 6. This effect is also significant when a large number of sensors SN1, etc. are used, as illustrated in FIG. 7. In this embodiment, in the daisy chain of Figs. 2 to 7, the driver D1, etc. is located closer to the control device 10 than the motor M1, etc., which is the control target. However, even if the driver D1, etc. is located farther from the control device 10 than the motor M1, etc., which is the control target, the processing of the control system 100A is applicable. That is, in the control system 100A of this embodiment, while the packet makes two round trips in the daisy chain, the control device 10 issues a command to the driver D1, etc. and the motor M1, etc. issues a feedback to the driver D1, etc. Therefore, in the control system 100A of this embodiment, there is no restriction on the positional relationship in the daisy chain between the driver D1, etc. and the motor M1, etc., which is the control target. That is, the driver D1, etc. and the motor M1, etc., which is the control target, can be flexibly arranged, improving the degree of freedom of the layout.
[0070] <Embodiment 2> Hereinafter, the control system 100B of the second embodiment will be described with reference to FIG. 12 to FIG. 14. In the control system 100A of the first embodiment, while a packet makes two round trips through the daisy chain, a command from the control device 10 to the driver D1, etc. and a feedback from the motor M1, etc. to the driver D1, etc. are executed. Here, the feedback is the transmission of detection data of the encoder E1, etc. to the driver D1, etc. On the other hand, in the control system 100B of the present embodiment, while a packet makes one round trip through the daisy chain, a command from the control device 10 to the driver D1, etc. and a feedback from the motor M1, etc. to the driver D1, etc. are executed. That is, a packet sent from the control device 10 as a master node is used to execute communication between slave nodes, that is, between the driver D1, etc. and the motor M1, etc. As a result, in the control system 100B, the response between the driver D1, etc. and the motor M1, etc. is improved.
[0071] (Packet process data configuration and input / output timing) FIG. 12 illustrates the configuration of process data included in a packet exchanged through a daisy chain by the communication line LC of the control system 100B. FIG. 12 also illustrates the processing of each node when a packet circulates through the daisy chain. The process data includes a command C1 addressed to the driver D1, feedback F11, F12 addressed to the driver D1, a command C2 addressed to the driver D2, feedback F2 addressed to the driver D2, . . . Note that FIG. 12 illustrates feedback F11, F12 addressed to the driver D1, but only one of them may be used. The feedback F11, F12 addressed to the driver D1 are provided because the packet passes through the motor M1 twice while traveling back and forth through the daisy chain, so that there are two opportunities for the physical quantity to be written.
[0072] As in the first embodiment (FIG. 8), for example, the control device 10 writes a command C1 addressed to the driver D1 and a command C2 addressed to the driver D2 in the respective areas of the packet (arrows A21 and A22), and sends the packet to the daisy chain. The daisy chain is formed in the order of the driver D1, the motor M1, the driver D2, and the motor M1, as in FIG. 3 of the first embodiment.
[0073] Then, when the driver D1 receives the packet, the process data The driver D1 reads out the command C1 from the process data (arrow A23). The driver D1 transfers the packet to the motor M1 and controls the motor M1 according to the command C1 read out from the process data. Note that at this point, as in the first embodiment (FIG. 8), the feedback F1 addressed to the driver D1 has not been set, so the driver D1 cannot obtain the feedback F1.
[0074] Next, when the motor M1 receives the packet, the encoder E1 attached to the motor M1 writes the detected physical quantities such as the rotation position, number of rotations, and rotation speed in the feedback F1 area addressed to the driver D1 (arrow A24). Then, the motor M1 transfers the packet to the driver D2. Note that in the control system 100B, when the driver D1 uses only the feedback F12 area, the motor M1 may transfer the packet to the driver D2 as it is without writing the physical quantities detected by the encoder LE1 in the feedback F1 area.
[0075] Next, when the driver D2 receives the packet, it reads out a command C2 for the driver D2 from the process data (arrow A25). The driver D2 transfers the packet to the motor M2 and controls the motor M2 according to the command C2 read out from the process data. At this point, as in the first embodiment (FIG. 8), the feedback F2 for the driver D2 has not been set, so the driver D2 cannot obtain the feedback F2.
[0076] Furthermore, when the motor M2 receives the packet, the encoder E2 attached to the motor M2 writes the detected physical quantities such as the rotation position, the number of rotations, and the rotation speed in the feedback F2 area addressed to the driver D2 (arrow A26). Then, the motor M1 transfers the packet to the driver D2. After that, the packet is transferred in the reverse direction in the daisy chain.
[0077] However, in this embodiment, during this reverse transfer, the driver D1 and the driver D2 obtain feedback from the motors M1 and M2, respectively. That is, first, when the driver D2 receives a packet sent in the reverse direction from the motor M2, The feedback F2 addressed to the driver D2 is read from the process data (arrow A27). The driver D2 transfers the packet in the reverse direction to the motor M1, and controls the motor M2 according to the command C2 and feedback F2 acquired in the process of arrow A25.
[0078] Next, when the motor M1 receives the packet, the data detected by the encoder E1 at this time is written to the feedback F12 addressed to the driver D1 (arrow A28). In the control system 100B, when the driver D1 uses only the area of the feedback F11, the motor M1 may directly transfer the packet to the driver D1, as in the first embodiment. That is, the control system 100B may use only one of the feedbacks F11 and F12 addressed to the driver D1.
[0079] Next, when the driver D1 receives the packet, it reads the feedbacks F11 and F12 addressed to the driver D1 from the process data (arrows A29 and A30). The driver D1 transfers the packet in the reverse direction to the control device 10 and controls the motor M1 according to the command C1 and the feedbacks F11 and F12 acquired in the process of the arrow A23. Note that when the motor M1 does not execute either the process of the arrow A24 or the process of the arrow A28, the driver D1 may control the motor M1 according to either the feedbacks F11 and F12 written by the motor M1.
[0080] (process) The processing of the control system 100B will be described with reference to Fig. 13 and Fig. 14. Fig. 13 and Fig. 14 show an example of packet exchange among the control device 10, drivers D1, D2, motors M1, M2, and encoders E1, E2 attached to the motors M1, M2, and the processing executed by these. Of this process, the processes from S51 to S61 are similar to the processes from S1 to S11 in Fig. 10, and therefore a description thereof will be omitted.
[0081] Then, when the driver D1 sends out a packet (S61), the motor M1 receives the packet (S62). Then, the motor M1 writes the data detected by the encoder E1 in the feedback F11 area addressed to the driver D1 (S63). As described in FIG. 12, in the control system 100B, when the driver D1 does not use the feedback F11 area but uses only the feedback F12 area, the motor M1 may transfer the packet to the driver D2 as it is without writing it in the feedback F11 area. Then, the motor M1 sends out the packet (S64).
[0082] Next, the process of S65 to S70 is the same as the process of S15 to S20 in Fig. 10, so the description thereof will be omitted. When the motor M2 writes the data detected by the encoder E2 to the feedback F2 area addressed to the driver D2 (S70), the motor M2 returns the packet in the reverse direction of the daisy chain. The process of S70 is an example of a packet being returned and transferred at the end of a network with a daisy chain structure.
[0083] FIG. 14 illustrates the process after the packet is folded back in the reverse direction of the daisy chain in the second embodiment. That is, after the process of S70, the motor M2 sends a packet to the driver D2 (S80). Then, the driver D2 receives the packet (S81). Then, the driver D2 reads the feedback F2 addressed to the driver D2 from the area in the process data to which the driver D2 is permitted to access (S82). The process of S82 is an example of acquiring the physical quantity detected in the electric motor corresponding to each driver from the area corresponding to the driver D2 in the packet that has been folded back and transferred. Next, the driver D2 sends the packet to the motor M1 (S83) and controls the motor M2 according to the command C2 and feedback F2 acquired in the process of S66 (S84).
[0084] Next, the motor M1 receives the packet (S85). Then, the motor M1 writes the data detected by the encoder E1 in the feedback F12 area addressed to the driver D1 (S86). As described in FIG. 12, in the control system 100B, if the driver D1 does not use the feedback F12 area and uses only the feedback F11 area, the motor M1 does not need to execute the process of S86. Then, the motor M1 sends the packet addressed to the driver D1 (S87).
[0085] Next, the driver D1 receives the packet (S88). Then, the driver D1 reads the feedbacks F11 and F12 addressed to the driver D1 from the accessible areas in the process data (S89). The process of S89 is also an example of obtaining the physical quantities detected in the electric motors corresponding to the respective drivers from the areas corresponding to the driver in the packet that has been returned and transferred.
[0086] However, as described in Fig. 12, in the control system 100B, only one of the feedbacks F11 and F12 may be used. In that case, the driver D1 may read only one of the feedbacks F11 and F12. Next, the driver D1 sends a packet to the control device 10 (S90) and controls the motor M1 according to the command C1 and the feedbacks F11 and F12 acquired in the process of S59 (S91).
[0087] (Effects of the embodiment) As described above, the control system 100B of this embodiment has a configuration in which the control device 10, the driver D1, the motor M1 (encoder E1), etc. are connected in a daisy chain by the communication line LC, as in the first embodiment. However, in this embodiment, the control device 10 While a packet from makes one round trip around the daisy chain, the following processes 1 to 3 are executed in the control device 10 and the corresponding slave node.
[0088] (1) The control device 10 transmits a command including a target value to the driver D1 or the like, and the driver D1 or the like receives the command.
[0089] (2) The motor M1 or the like writes feedback information measured by the encoder E1 or the like in an area such as the feedback F1 of the packet.
[0090] (3) The motors M1 and the like obtain the feedback (physical quantity detected by the encoder E1 and the like) written by the motors M1 and the like from the feedback F1 and the like area of the packet.
[0091] As a result, in the control system 100B including a plurality of drivers D1, motors M1 (encoders E1), etc., the drivers D1, etc. can control the motors M1, etc. with better response than in the control system 100A exemplified in the first embodiment.
[0092] In this embodiment, as illustrated in Fig. 2 to Fig. 7, in the daisy chain, the driver D1, etc. must be located closer to the control device 10 than the motor M1, etc., which is the object of control. That is, in the daisy chain, the driver D1, etc. is located closer to the control device 10 than the motor M1, etc., which is the object of control, and is connected to the daisy chain structure. This enables instructions to the driver D1, etc., and feedback from the motor M1, etc. to the driver D1, etc., in one round trip packet.
[0093] <Other embodiments> <Additional Notes> 1. A plurality of control mechanisms (M1 to M4, D1 to D4) including motors (M1 to M4) having drivers (D1 to D4) for driving the motors (M1 to M4) and encoders (E1, E2) for detecting physical quantities related to the rotation of the motors; A control device (100) that controls the plurality of control mechanisms, The drivers, the motors, and the control devices included in the plurality of control mechanisms are connected to a network (N1) having a daisy chain structure capable of packet transfer and supplying power to the encoders, the control device (100) sets commands addressed to each driver in an area corresponding to each driver (D1 to D4) of the plurality of control mechanisms within the packet, and transmits the packet to a next connection destination in the daisy chain structure; Each driver (D1 to D4) of the plurality of control mechanisms obtains a command addressed to itself from the control device from a region corresponding to itself in a packet received from a source of the daisy chain structure, and transmits the received packet to a next destination in the daisy chain structure; A control system (100, 100A, 100B) in which each electric motor (M1 to M4) of the plurality of control mechanisms sets a physical quantity detected by an encoder possessed by each electric motor in an area corresponding to the respective electric motor in a received packet, and transmits the received packet to a next destination in the daisy chain structure. [Explanation of symbols]
[0094] 10 Control device 100, 100A, 100B Control System D1, D2, D3, D4 Drivers E1, E2, E3, E4 Encoders LC communication line LP1, LP2 power line M1, M2, M3, M4 motors SN1, SN2 Sensors
Claims
1. A plurality of control mechanisms including a driver for driving an electric motor and an electric motor having an encoder for detecting a physical quantity related to the rotation of the electric motor; A control device that controls the plurality of control mechanisms, the drivers, the motors, and the control devices included in the plurality of control mechanisms are connected to a network having a daisy chain structure capable of packet transfer and supplying power to the encoders, the control device sets a command addressed to each driver in an area corresponding to each driver of the plurality of control mechanisms within the packet, and transmits the packet to a next connection destination in the daisy chain structure; Each driver of the plurality of control mechanisms obtains a command addressed to itself from the control device from a region corresponding to itself in a packet received from a source of the daisy chain structure, and transmits the received packet to a next destination in the daisy chain structure; A control system in which each electric motor of the multiple control mechanisms sets a physical quantity detected by an encoder possessed by each electric motor in an area corresponding to the respective electric motor in a received packet, and transmits the received packet to a next destination in the daisy chain structure.
2. The packet is forwarded back at the end of the daisy-chain network, 2. The control system according to claim 1, wherein each driver of the plurality of control mechanisms acquires the physical quantity detected in the electric motor corresponding to each driver from a region corresponding to the driver in the packet that is folded back and transferred.
3. 3. The control system according to claim 1, wherein in each of said plurality of control mechanisms, a driver is connected in a daisy chain configuration at a position closer to said control device than a corresponding electric motor.
4. The control device is connected to a start point of the daisy chain structure and transmits the packet; While the transmitted packet is traveling back and forth between the terminal end of the daisy chain structure, each motor of the plurality of control mechanisms sets the physical quantity in the received packet; After the transmitted packet has traveled back and forth once between the terminal of the daisy chain structure, the control device retransmits the packet that has traveled back and forth once; The control system according to claim 1 , wherein each driver of the plurality of control mechanisms acquires the physical quantity detected in the electric motor corresponding to each driver from a region corresponding to the driver in the retransmitted packet.
5. and one or more sensors connected to the daisy chain network. A control system as claimed in any one of claims 1 to 4, wherein the one or more sensors set detected data in an area corresponding to the sensor in a packet received from a sender of the daisy chain structure, and transmit the received packet to the next destination in the daisy chain structure.
6. A plurality of control mechanisms including a driver for driving an electric motor and an electric motor having an encoder for detecting a physical quantity related to the rotation of the electric motor; A control device that controls the plurality of control mechanisms, The drivers, the motors, and the control devices included in the plurality of control mechanisms are each configured as a digital signal processor capable of packet transfer and power supply to the encoders. Connected by a G-chain network, the control device sets a command addressed to each driver in an area corresponding to each driver of the plurality of control mechanisms within the packet, and transmits the packet to a next connection destination in the daisy chain structure; Each of the electric motors of the plurality of control mechanisms sets a physical quantity detected by an encoder of the electric motor in an area corresponding to the electric motor in the received packet, and transmits the received packet to a next destination in the daisy chain structure. A driver that obtains a command addressed to itself from the control device from an area corresponding to itself in a packet received from a sender in the daisy chain structure, and transmits the received packet to the next destination in the daisy chain structure.
7. The packet is forwarded back at the end of the daisy-chain network, 7. The driver according to claim 6, wherein the physical quantity detected in the electric motor corresponding to each of the drivers is obtained from a region corresponding to the driver in the packet that has been folded back and transferred.
8. A plurality of control mechanisms including a driver for driving an electric motor and an electric motor having an encoder for detecting a physical quantity related to the rotation of the electric motor; A control device that controls the plurality of control mechanisms, the drivers, the motors, and the control devices included in the plurality of control mechanisms are connected to a network having a daisy chain structure capable of packet transfer and supplying power to the encoders, the control device sets a command addressed to each driver in an area corresponding to each driver of the plurality of control mechanisms within the packet, and transmits the packet to a next connection destination in the daisy chain structure; In a network having a daisy chain structure, a driver of each of the plurality of control mechanisms obtains a command addressed to itself from the control device from a region corresponding to itself in a packet received from a source of the daisy chain structure, and transmits the received packet to a next destination in the daisy chain structure. An electric motor that sets a physical quantity detected by an encoder attached to itself in an area corresponding to itself in a received packet, and transmits the received packet to the next destination in the daisy chain structure.
9. A plurality of control mechanisms including a driver for driving an electric motor and an electric motor having an encoder for detecting a physical quantity related to the rotation of the electric motor; A control device for a control system including: the drivers, the motors, and the control devices included in the plurality of control mechanisms are connected to a network having a daisy chain structure capable of packet transfer and supplying power to the encoders, Each driver of the plurality of control mechanisms obtains a command addressed to itself from the control device from a region corresponding to itself in a packet received from a source of the daisy chain structure, and transmits the received packet to a next destination in the daisy chain structure; In a network having a daisy chain structure, each electric motor of the plurality of control mechanisms sets a physical quantity detected by an encoder of the respective electric motor in an area corresponding to the respective electric motor in the received packet, and transmits the received packet to a next destination in the daisy chain structure. a control device that sets commands addressed to each driver in an area corresponding to each driver of the plurality of control mechanisms within the packet, and transmits the packet to the next connection destination in the daisy chain structure;
10. A plurality of control mechanisms including a driver for driving an electric motor and an electric motor having an encoder for detecting a physical quantity related to the rotation of the electric motor; A control method for a control system including a control device that controls the plurality of control mechanisms, the drivers, the motors, and the control devices included in the plurality of control mechanisms are connected to a network having a daisy chain structure capable of packet transfer and supplying power to the encoders, the control device sets a command addressed to each driver in an area corresponding to each driver of the plurality of control mechanisms within the packet, and transmits the packet to a next connection destination in the daisy chain structure; Each driver of the plurality of control mechanisms obtains a command addressed to itself from the control device from a region corresponding to itself in a packet received from a source of the daisy chain structure, and transmits the received packet to a next destination in the daisy chain structure; A control method in which each electric motor of the multiple control mechanisms sets a physical quantity detected by an encoder possessed by each electric motor in an area corresponding to itself in the received packet, and transmits the received packet to the next destination in the daisy chain structure.
Citation Information
Patent Citations
Serial communication device for controlling motor and motor driving gear
JP2003189654A
Servo system, and serial encoder and servo drive compatible with daisy chain connection
JP2006304461A
Servo system and servo drive
JP2007181340A
Communication device
JP2017011771A
Smart servo motor, and drive device using a plurality of smart servo motors
WO2019220504A1
