Patent Document

TECHNICAL FIELD 
       [0001]    The present invention relates for example to an motion controller device that controls a device-for-control coupled by way of a network built into industrial equipment, and to a communication method for information in that same device. 
       BACKGROUND ART 
       [0002]    In recent years, control systems are being employed that couple various types of control devices over a network with the aim of minimizing the wiring factory automation (FA) systems. In industrial equipment in particular, a so-called motion controller is utilized for devices for control, by coupling the drivers to drive motors on each axis within the drive system and the input and output devices contained within the peripheral devices by way of a network. 
         [0003]    The motion controller device is comprised of a central communication device that controls the entire controller, and plural terminal communication devices that directly drive devices for control such as sensors and actuators; and that is utilized by configuring a network in which the communication lines couple the central communication device and plural terminal communication devices by way of configurations such as multi-drop and daisy chains. 
         [0004]    The motion controller device executes control by way of a central communication device and terminal communication device that transmit and receive control information for devices and sensor input information via the network. 
         [0005]    The network for this type of motion controller device are often utilized in topologies such as bus or ring type topologies by multi-drop, and these topologies have simple communication control and a simple network configuration. 
         [0006]    Currently however, advances in the functions and performance of industrial equipment have led to a greater number of devices for control, and systems are now on a large scale, so that adapting network type controllers utilizing multi-drop to these types of large-scale systems, causes longer communication lines and also complicated controller configurations in systems where the available footprint (surface area) is limited such as in industrial equipment. 
         [0007]    To resolve these types of problems network topologies that are configured to allow branch coupling such as by point-to-point topology are considered for use on networks for motion controller devices. However, in view of the restrictions on methods for coupling the communication lines in these types of networks, network topology capable of satisfactory response performance required by each device for control is necessary. 
         [0008]    Therefore, a great many man-hours are required when applying motion controller devices utilizing these types of networks to large-scale systems. 
         [0009]    Moreover, on these types of networks for motion controller devices, plural communication paths are sometimes configured for one terminal communication device in some cases in order to avoid communication interference. There is for example a technology (Patent Literature 1) for coupling a field bus defined as a single configuration bus and a redundant configuration bus while maintaining the universality of the host (upper-ranking) controller. However, these types of networks not only make the coupling methods for communication lines more complicated and the system structure more complicated, but also require many man-hours for communication settings and adjusting the coupling configuration so as to satisfy the response performance required for each device for control. 
       CITATION LIST 
     Patent Literature 
       [0000]    
       
         Patent Literature 1: Japanese Unexamined Patent Application Publication No. 2005-122592 
       
     
       SUMMARY OF INVENTION 
     Technical Problem 
       [0011]    In view of the aforementioned problems with the systems of the related art, the present invention has the main object of providing a motion controller device for eliminating restrictions on methods for coupling communication lines in communication ports and reducing the number of man-hours required when the controller is applied in network structures capable of branching by way of point-to-point topology; and moreover a communication method for information in the same device(s). Namely, the invention provides a motion controller device capable of ensuring the response performance required for each device for control in a structure comprising a network having plural communication paths for one terminal communication device, by dynamically changing the communication paths according to the volume of communication data along the communication line; and provides a communication method for information in that same device. 
       Solution to Problem 
       [0012]    In order to achieve the above objects, an aspect of the present invention provides a motion controller device comprised of one or more terminal communication devices that execute input or output operation or control processing for devices for control, and a central communication device coupled to the terminal communication devices by utilizing a network; and further including a transmission path between at least one communication port for the central communication device and any one of communication ports of the terminal communication device; and a transmission path between at least one communication port of the terminal communication device and any one of the communication ports of the central communication device, or any one of communication ports of the other terminal communication devices; and a network is configured in this way and a motion controller device is provided so that a terminal communication device is capable of coupling multiple transmission paths. 
         [0013]    According to an aspect of the present, invention, in the above-described motion controller device, the central communication device further includes a control software execution unit that executes control commands to the devices for control and/or sets a communication control method; a control information storage unit that stores control commands to the devices for control and/or stores the input and output information; an identification number storage unit that stores identification numbers for recognizing the individual terminal communication device coupled to the network; a central communication control unit that controls communications between the terminal communication devices by way the network; one or more communication ports including one or more communication channels that convey a transmit signal and/or a receive signal by full duplex transmission for a communication signal of the network; and a communication signal transmit and receive unit that is configured from a pair of a communication signal receiver unit that executes receive processing of communication signals of the network and a communication signal transmitter units that execute transmit processing of communication signals of the network which are equal in number to the communication channels of each communication port; and the terminal communication device further includes: an identification number setter unit that sets the identification number; a device control unit that controls the device for control based on control commands that are sent from the central communication device by way of the network or performs operations for input and output information that is transmitted to and is received from the central communication device by way of the network; an upstream port number storage unit that specifies one of its own communication ports to transfer communication data when carrying out communications with the central communication device by way of the network; a terminal communication control unit that controls communication with the central communication device by way of the network; and two or more communication ports, each communication port respectively including two communication signal transmit and receive units as well as a transmit and receive switching control unit that switches performing of and/or stopping of transmitting operation and receiving operation of the communication signal transmit and receive units, for one communication channel of the communication port. 
         [0014]    According to an aspect of the present invention, in the above-described motion controller device, the central communication device preferably further includes: a central communication cost storage unit that stores communication costs as information expressing the delay time for communication that is required with the terminal communication devices coupled to the network; a communication path control setting information storage unit that stores communication path control information as information expressing change methods when each terminal communication device changes communication paths on the network; a communication status information storage unit that stores information regarding the communication status of each terminal communication device in the network; a communication path information storage unit that stores communication path information as information expressing the network path to each terminal communication device; and a communication data quantity setting information storage unit that stores communication data quantity setting information as information for setting the limit quantity of communication data on the communication lines set in the terminal communication device, and the terminal communication device further includes: a communication data quantity setting unit that stores the limit quantity of communication data on the communication line coupled to the terminal communication device; and a communication path control information setting unit that sets communication path control information as information expressing change methods when changing communication paths of the network. Moreover, the control software execution unit of the central communication device preferably includes a function to set the communication cycle and the response time that are required in the terminal communication device, and generate communication path control information and communication data quantity setting information based on the communication cycle and the response time that are set, and store that information in the communication path control setting information unit and the communication data quantity setting information storage unit of the central communication device; or the control software execution unit of the central communication device preferably includes a function to search the communication status information storage unit and the communication path information storage unit of the central communication device, and provide the topology, the communication path, and the communication status. Moreover, the control software execution unit of the central communication device preferably installs functions for displaying the network communication status and setting functions within the control software execution unit of the central communication device by way of a GUI (graphical user interface). 
         [0015]    Moreover, according to an aspect of the present invention, to achieve the above-described objects, a communication method for the above-described motion controller device is provided in which the terminal communication device switches transmitting operation and receiving operation in the communication signal transmit and receive unit by way of a transmit and receive switching control unit of the communication signal control unit, and sets the transmitting operation or receiving operation in the communication signal transmit and receive unit so that full duplex communication signals are normally conveyed on all the transmission paths, the central communication device transmits communication data including communication port numbers as unique numbers set for each communication port from all of its own communication ports, the terminal communication device sets the communication port that initially receives the communication data transmitted from the central communication device as the upstream port among all of the terminal communication device&#39;s own ports, and stores the communication port number that is the individual port number set for that communication port as well as the communication port number contained in the communication data that is received at this time in an upstream port number storage unit, the central communication device from there onwards transmits communication data including a communication port number for its own communication port where transmission of communication data is performed and an identification number set in the terminal communication device to the terminal communication device by way of its own communication port, the terminal communication device receives communication data from the central communication device by way of the upstream port specified by the upstream port number storage unit, and the terminal. communication device internally loads the communication data when the identification number of the communication data matches the identification number set inside its own device, when the identification number of the communication data does not match the identification number set inside its own device, the communication data is transmitted from any other communication port; and when the communication port number of the central communication device that is contained in the communication data that is received from those other communication ports matches the communication port number of central communication device stored in the upstream port number storage unit, that communication data is transmitted from the upstream communication port, when there is no match, that communication data is discarded, and when the terminal communication device transmits communication data from itself to the central communication device, the communication data including the communication port number of the central communication device stored in the upstream port number storage unit and the identification number set inside the device itself is transmitted to the central communication device by way of the upstream port. 
         [0016]    Also in the present invention, a communication method for the above-described motion controller device is provided in which the central communication device further includes: a central communication cost storage unit that stores communication costs as information expressing the delay time for communication that is required with the terminal communication device coupled to the network; a communication path control setting information storage unit that stores communication path control information as information expressing change methods when each terminal communication device changes communication paths on the network; a communication status information storage unit that stores information regarding the communication status of each terminal communication device on the network; a communication path information storage unit that stores communication path information as information expressing the network path to each terminal communication device; and a communication data quantity setting information storage unit that stores communication data quantity setting information as information for setting the limit quantity of communication data on the communication lines set in the terminal communication device; and the terminal communication device further includes: a communication data quantity storage unit that stores the limit quantity of communication data on the communication line coupled to the terminal communication device; and a communication path control information setting unit that sets communication path control information as information expressing change methods when changing communication paths over the network, the central communication device stores communication path control information and communication data quantity setting information that are set in each terminal communication device into the communication path control setting information storage unit and the communication data quantity setting information storage unit by way of the control software execution unit, the central communication control unit transmits the communication path control information stored in the communication path control setting information storage unit and communication data setting information stored in the communication data quantity setting information storage unit by way of the network, the terminal communication device stores the communication path control information that is transmitted from the central communication device into the communication path control information storage unit, and further stores the communication data quantity setting information that is transmitted from the central communication device into the communication data quantity storage unit, and the terminal communication device constantly monitors the communication data quantity of the upstream port that is specified by the upstream port number storage unit, and when the communication data quantity exceeds the value that is stored in the communication data quantity storage unit, executes any of the following communication control from the terminal communication control unit based on the communication path control information stored in the communication path control storage unit so that: the communication data quantity is transmitted from one of its own ports other than the upstream port, to a communication port of the central communication device other than the communication port of the central communication device specified by the upstream port number storage unit; the communication data quantity or the communication data quantity is transmitted from a communication port other than the upstream communication port to a communication port of the central communication device specified by the upstream port number storage unit; or is transmitted from an upstream control port. 
       Advantageous Effects of Invention 
       [0017]    A main feature of the present invention is that the number of man-hours required when adapting the controller can be reduced and there is no need to consider methods for coupling communication ports when configuring a network. Moreover, a complex network such as having plural communication paths can be easily configured without the necessity for considering methods for coupling communication ports when configuring the network. 
     
    
     
       BRIEF DESCRIPTION OF DRAWINGS 
         [0018]      FIG. 1  is a drawing showing the structure of the motion controller of an embodiment of the present invention. 
           [0019]      FIG. 2  is a drawing for describing the processing sequence of the communication signal control unit for establishing communication for each communication line in the present invention. 
           [0020]      FIG. 3  is a drawing showing an example of the communication status during execution of processing for establishing communication for each communication line in the present invention. 
           [0021]      FIG. 4  is a drawing for describing the format of the packet that is utilized in network communication in the present invention. 
           [0022]      FIG. 5  is a drawing for describing the processing sequence of the terminal communication control unit for establishing the communication functions for the network in the present invention. 
           [0023]      FIG. 6  is a drawing for describing the results during execution of processing for establishing a communication function for the network in the present invention. 
           [0024]      FIG. 7  is a drawing showing one example of the structure of the terminal communication cost storage unit in the present invention. 
           [0025]      FIG. 8  is a drawing for describing the processing sequence of the terminal communication device for calculating the communication cost in the present invention. 
           [0026]      FIG. 9  is a drawing showing one example of the structure of the communication data quantity storage unit in the present invention. 
           [0027]      FIG. 10  shows one example of the data structure of the communication path control method storage unit in the terminal communication device of the present invention. 
           [0028]      FIG. 11  is a flow chart showing the processing executed by the terminal communication control unit of the terminal communication device. 
           [0029]      FIG. 12  is a drawing for describing the function and an example of the display of the control design support software in the embodiment of the present invention. 
       
    
    
     DESCRIPTION OF EMBODIMENTS 
       [0030]    The embodiment of the present invention is hereafter described while referring to an example that is shown in  FIG. 1 . 
         [0031]      FIG. 1  is a structural drawing of the motion controller of an embodiment of the present invention. A detailed structure of just one of plural terminal communication devices  120  as a representative example is shown by a broken line and enlarged. 
         [0032]    As can be clearly seen in the drawing, the motion controller of the embodiment is a control system comprised of a central communication device  110 , one or more terminal communication devices  120 , and a network to couple these components, and the devices for control (such as sensors and motors, etc.) are respectively coupled to and are controlled by these terminal communication devices  120 . 
         [0033]    The central communication device  110  is comprised of a control software execution unit  100  that executes control commands to the device for control and sets communication control methods; a control information storage unit  112  that stores control command to the device for control and input-output information; an identification number storage unit  113  that stores the identification number to uniquely recognize a terminal communication device  120  coupled to the network; a communication central communication cost storage unit  114  that stores communication costs as information expressing the delay time required for communication with each terminal communication unit  120  coupled to a network; a communication path control setting information storage unit  115  that stores communication path control information as information expressing change methods when each terminal communication unit  120  is changing communication paths on a network; a communication status information storage unit  116  that stores information regarding the communication status on the network for each terminal communication unit  120 ; a communication path information storage unit  117  that stores communication path information as information expressing the network path to each terminal communication unit  120 ; a communication data quantity setting information storage unit  118  that stores communication data quantity setting information as information for setting the limit quantity of communication data on the communication lines set in each of the terminal communication units  120 ; a central communication control unit  111  that controls communications with the terminal communication units  120  over a network; and one or more communication ports  140  containing one or more communication channels to carry out full duplex transmission of transmit signals and receive signal for communication signals in the network. Each of the communication ports respectively includes a communication signal transmit and receive unit  131  that is comprised, of a pair of a communication signal receiver unit  131 - 1  that executes receive-processing of communication signals of the network, and a communication signal transmitter unit  131 - 2  that executes transmit-processing of communication signals of the network, and that are equal in number to the communication channels of the communication port. As can be clearly understood from the drawing, each communication signal receiver unit  131 , shown as a representative unit in the drawing, respectively includes a communication signal receiver unit  131 - 1  and a communication signal transmitter unit  131 - 2 . 
         [0034]    The terminal communication device  120  is comprised of an identification number setter unit  122  that sets its own identification No., a device control unit  123  that controls the device for control based on control commands that are transmitted from the central communication unit  110  by way of the network; an upstream port number specifying unit  124  that specifies a communication port  141  for carrying out data transfer during communication with the central communication unit  110  over a network; a terminal communication cost storage unit  125  that stores the communication cost as information expressing the delay time that is required for communication with the central communication unit  110  over a network; a communication data quantity storage unit  126  that stores the communication data quantity of the communication line  150  coupled to the terminal communication unit  120 ; a communication path control method storage unit  127  that sets the communication path control information as information expressing the change method during a change in communication paths over the network; a terminal communication control unit  121  that controls communication with the central communication unit  110  by way of the network; one or more communication ports  140 ; and a communication control unit  130 . This communication control unit  130  shown as a representative unit in the drawing, is comprised of two communication signal transmit and receive units  131 ,  131  for one communication channel of each communication port  140 , and a transmit and receive switching control unit  132  that performs transmitting and receiving and/or stops the switching of these communication signal transmit and receive units. Each of the communication signal transmit and receive units  131  includes a communication signal receiver unit  131 - 1  and a communication signal transmitter unit  131 - 1  the same as is described above. 
         [0035]    A communication line  150  is coupled between at least one communication port of the central communication device  110 , and any one of the communication ports  140  of the plural terminal communication devices  120 . A communication port  150  is also coupled between at least one communication port  140  of the terminal communication device  120 , and any one of the communication ports  140  of the central communication device  110 ; or any one of communication port  140  of the other terminal communication devices  120  in this way a network is configured. A communication port number serving as a unique number is assigned to the respective communication ports  140  of the central communication device  110  and the terminal communication device  120 . 
         [0036]    The operation of the central communication device  110  and the terminal communication device  120  is described next according to the sequence when the motion controller that is shown in  FIG. 1  is actually establishing a network. 
         [0037]    First of all, in the figure, a communication line  150  couples the communication port  140  of the central communication device  110 , and the communication port  140  of the terminal communication device  120 . Communication via each of the communication lines  150  is established by determining the transmit channel and receive channel so that a full duplex communication signal is correctly transmitted between two communication ports per the communication port  140  of the terminal communication device  120 . The communication signal transmit and receive units  131  of the communication signal control unit  130  coupled to the communication port  140  of the terminal communication device  120  at this time is capable of transmitting a communication signal by performing transmitting operation and stopping receiving operation, and also is capable of receiving a communication signal by stopping transmitting operation and performing receiving operation by way of the control of the transmit and receive switching control unit  132  so that establishing communications is achievable by switching between the transmitting and receiving functions of the plural communication signal transmit and receive units  131  that are contained within the communication signal control unit  130  of the terminal communication device  120 . 
         [0038]      FIG. 2  is a flow chart for showing the process that is performed by the communication signal control unit  130  for establishing communication in each communication line  150  in the motion controller described above in  FIG. 1 . The identification number for the terminal communication device  120  is set beforehand by the identification number setter unit  122 . One among the two communication signal transmit and receive units  131 ,  131  within the communication signal control unit  130  of the terminal communication device  120  performs transmitting of a communication signal and the other performs receiving of a communication-signal. 
         [0039]    Moreover, 
         [0040]    the mutual standby (wait) time in the terminal communication device  120  is set to T wait  [seconds], and 
         [0041]    the identification number set in terminal communication device  120  is set to N id . 
         [0042]    The communication signal control unit  130  of the terminal communication device  120  first of all decides whether or not a communication signal transmit and receive unit  131  executing the receiving operation among the two above-described communication signal transmit and receive units  131 ,  131  is actually receiving a communication signal (process  200 ). When actually receiving a communication signal (“Yes” in the figure), the communication signal control unit  130  further decides whether or not the communication signal transmit and receive unit  131  executing the receiving operation is able to maintain the receive status for a specified time (process  201 ). 
         [0043]    If results from the decision process  201  are that receive status is continued for a specified time (for example: approximately T wait /8 [s] to T wait /4 [s]) (“Yes” in the figure), then maintaining the receiving and transmitting functions assigned to the two communication signal transmit and receive units  131  at this time establishes communication over the communication line  150  coupled to the communication port  140  within this communication signal control unit  130  (process  202 ) and the process ends. 
         [0044]    On the other hand, if the results from the above process  200  are that the communication signal transmit and receive unit  131  is not receiving a communication signal (“No” in the figure), or if the results from process  201  are that receive status did not continue for a specified time (“No” in the figure), a decision is made by way of T wait× N id  [seconds] cycle timer on whether T wait× N id  [seconds] elapsed or not (process  203 ) If results from the process  203  are that T wait× N id  [seconds] elapsed (“Yes” in the figure), the switching between receiving and transmitting is executed among the two communication signal transmit and receive units  131 ,  131  of the communication signal transmit and receive unit  130 . 
         [0045]    On the other hand, if results from the process  203  are that T wait× N id  [seconds] has not elapsed (“No” in the figure), the operation of the two communication signal transmit and receive units  131 ,  131  of the communication signal transmit and receive unit  130  is left unchanged and the process  200  is executed again. 
         [0046]    Next,  FIG. 3  shows one example of the communication status of the communication line  150  when executing the processing of the communication signal control unit  130  for establishing communication via the communication line  150  that is shown in the above  FIG. 2 . 
         [0047]    Namely, in the example in  FIG. 3 , at time n [seconds], the communication channel settings are mutually transmitting and mutually receiving in the two terminal communication devices  120 ,  120  so that the communication signals in the communication line are in a conflicting signal and no-signal state so that communication cannot be established. 
         [0048]    On the other hand, at time n+(T wait ) [seconds], the setting for one communication channel of the terminal communication devices  120 ,  120  are switched so that there is a combination of transmitting and receiving, receiving and transmitting along each communication channel in the two terminal communication devices  120 ,  120  and therefore a full duplex correct communication signal can be transmitted along the communication line and so communication can be established. 
         [0049]    The communication data format utilized by the central communication device  110  and the terminal communication device  120  when mutually communicating over a network is described next. 
         [0050]      FIG. 4  shows the communication data format or namely the so-called packet that is utilized when the central communication device  110  and the terminal communication device  120  are carrying out communications via the network of the motion controller in  FIG. 1 . 
         [0051]    As can be clearly understood from the drawing, the packet is comprised of a data section  400  that stores data for carrying out the actual communication such as control commands and input-output information; a packet type section  401  that stores information expressing the type of packet; a central communication port number section  402  that stores the communication port number of the central communication device  110  of the communication destination and the communication source; and an identification (type) number section  403  that stores the identification number of the terminal communication device  120  for the communication destination and the communication source. 
         [0052]    A packet transmitted from the central communication device  110  and that is utilized for establishing communication functions over the network is the so-called communication initialization setting packet. In the communication initialization setting packet, a unique number of the packet is stored in the packet type section  401 , a port number for the communication port  140  for carrying out transmitting from the central communication device  110  is stored in the central communication port number section  402 , however nothing is stored in the other sections. 
         [0053]    The packet transmitted from the central communication device  110  and that is utilized for transferring control information and input-output information, to the device for control coupled to the terminal communication device  120  is the control information packet. Within the control information packet, control information or input-output information is stored in the data section  400 , a unique number for the packet is stored in the packet type section  401 , a port number for the communication port  140  that performs transmission from the central communication device  110  is stored in the central communication port number section  402 , and the identification number set in the terminal communication device  120  is stored in the identification number section  403 . 
         [0054]    Further, the packet transmitted from the terminal communication device  120  and that is utilized for transferring communication status and error information of the terminal communication device  120  is the terminal information packet. Within the terminal information packet, the error information and communication status of the terminal communication device  120  is stored in the data section  400 , the unique identification number for this packet is stored in the packet type section  401 , the port number for the communication port  140  of the central communication device  110  serving as the transmitting destination is stored in the central communication port number section  402 , and the identification number set in the terminal communication device  120  is stored in the identification type number section  403 . 
         [0055]    The operation when the central communication device  110  and terminal communication device  120  establish a communication function by way of a network is described next. 
         [0056]    After communication is established for all communication lines  150 , the central communication device  110  transmits the above-described communication initialization setting packet from all of its own communication ports  140 . 
         [0057]      FIG. 5  is a flow chart showing the process that is executed by the terminal communication control unit  121  for establishing a communication function over the network in the motion controller of  FIG. 1 . 
         [0058]    When the communication initialization setting packet is received from any of the plural communication ports  140 , the terminal communication device  120  decides whether there are already previously received communication initialization setting packets from any of the plural communication ports  140 ,  140 , . . . (process  500 ). When there are already previously received communication initialization setting packets from the past (“Yes” in the figure), the (just) received communication initialization setting packet is discarded (process  500 ) and the process ends. 
         [0059]    On the other hand, when the results from the above process  500  are that communication initialization setting packets have not been received in the past (“No” in the figure), the port number (No.) where the packet is received is stored in the upstream communication port number storage unit  124  (process  502 ). The received communication initialization setting packet is then transmitted from all of the communication ports  140  except the communication port  140  that received the communication initialization setting packet (process  503 ). 
         [0060]    A terminal information packet is transmitted at the same time from the communication port  140  where the communication initialization setting packet is received, and from then onwards a terminal information packet is periodically transmitted (process  504 ). 
         [0061]      FIG. 6  is a drawing showing the results from the processing performed by the terminal communication control unit  121  shown in  FIG. 5  for the motion controller of  FIG. 1 . In the drawing, the numbers within the communication port  140  of the central communication device  110  and the terminal communication device  120  indicate the port numbers that are set in each communication port  141 . 
         [0062]    When the central communication device  110  transmits a communication initialization setting packet from all of its own communication ports  140  after communications are established for all communication lines  150 , the content shown in  FIG. 6  is stored in the upstream communication port number storage unit  124  for each terminal communication device  120 . 
         [0063]    When the setting is made in the upstream communication port number storage unit  124 , the terminal communication device  120  from then onwards transmits the packet from all of the communication ports  140  except the upstream communication port in the case where a packet other than the communication initialization setting packet is received from a communication port  140  (hereafter, “upstream communication port”) specified by the upstream communication port number storage unit  124 . 
         [0064]    In the case where a packet other than the above-described communication initialization setting packet is received from a communication port  140  other than the upstream communication port, a search for a central communication port number section  402  for the packet is made, and when the result is that there is a match with the port number for the central communication device  110  stored in the upstream communication port storage unit  124 , the packet is transmitted to the upstream communication port, and if not a match the packet is discarded. 
         [0065]    Further, when transmitting packets from itself, the terminal communication device  120  stores its own identification number, and the port number of the central communication device  110  stored in the upstream communication port storage unit  124 , into the packet, and transmits it from the upstream port. 
         [0066]    In other words, communication control of the target terminal communication device  120  allows the central communication device  110  to receive the terminal information packet that is transmitted from each terminal communication device  120 . The identification number of the identification type number section  403  for the terminal information packet, and the port number of the communication port  140  of the central communication device  110  that did the receiving are then stored in the identification number storage unit  113 . 
         [0067]    The central communication device  110  then searches the identification number storage unit  113 , and transmits the packet to the terminal communication device  120  from the communication port  140  corresponding to the port number stored in the identification number storage unit  113 . 
         [0068]    In other words, in the above-described communication control, the communication line  150  shown by the thick lines in  FIG. 6  forms the path in the network that actually executes communications and attains a so-called tree structure coupling configuration. 
         [0069]    In the motion controller where communication over a network is established, the terminal communication device  120  switches the network communication paths according to the communication data quantity of the communication line  150  as described below. 
         [0070]    The communication cost (namely, the number of other terminal communication devices  120  that are routed through when carrying out communications from the terminal communication device  120  to the central communication device  110 ) that is required for switching the network communication paths by the terminal communication device  120  is first of, all calculated. 
         [0071]    The packet transmitted from the central communication device  110  and that is utilized for calculating the communication cost along the network communication path coupled to the terminal communication devices  120  is the so-called communication cost calculation packet. In this communication cost calculation packet, the data section  400  stores the communication cost when the initial value is set to “1” and that value is increased each time a transmission from a terminal communication device  120  is received. In the communication cost calculation packet, the packet type section  401  stores a unique number of that packet, the central communication port number section  402  stores the port number of the communication port  140  when the central communication device  110  is transmitting, and the identification number section  403  stores the identification number set in the terminal communication device  120 . 
         [0072]      FIG. 7  shows one example of the data structure of the terminal communication cost storage unit  117  for storing the communication cost that is required when changing the communication path by operation of the terminal communication device  120  in the motion controller shown in  FIG. 1 . 
         [0073]      FIG. 7(   a ) shows one example of the data structure of the terminal communication cost storage unit  117  for making a correspondence and storing the communication cost or so-called terminal communication cost from all of the communication ports  140  of the central communication device  110  to all of the communication ports  140  of the terminal communication device  120 . 
         [0074]      FIG. 7(   b ) shows one example of the data structure of the terminal communication cost storage unit  117  when storing the communication cost and the communication port  140  that receives the terminal communication device  120  in the order of small communication cost. 
         [0075]      FIG. 8  is a flow chart showing the process in the terminal communication unit  121  for calculating the communication cost required for changing the communication path by the operation of the terminal communication device, in the motion controller of  FIG. 1 . 
         [0076]    First of all, when the communication cost calculation packet is received, the terminal communication device  120  decides whether or not it matches the identification number set within itself (process  800 ). 
         [0077]    When the result from the process  800  is that there is a match for the identification number (“Yes” in the figure), the communication cost stored in the communication cost calculation packet is compared with the communication cost stored in the terminal communication cost storage unit  125  (process  801 ). 
         [0078]    When the result from comparison process  801  is that the communication cost of the communication cost calculation packet that is received is a smaller value than the cost stored in the terminal communication cost storage unit  125  (“Yes” in the figure), the communication cost of that communication cost calculation packet is stored in a location corresponding to the terminal communication cost storage unit  125  (process  802 ), the received communication cost calculation packet is discarded (process  803 ), and the process ends. 
         [0079]    On the other hand, when the result from the comparison process  800  is that there is no match for the identification number, (“No” in the figure), a decision (process  804 ) is made on whether or not there is an identical communication cost calculation packet already received from the communication port and if the result is that the communication cost calculation packet is not received (“No” in the figure), the communication cost stored in the data section  400  of the communication cost calculation packet is incremented (+1) (process  805 ), and the communication cost calculation packet is then transmitted from all of the communication ports other than the port that received the communication cost calculation packet (process  806 ). 
         [0080]    However if the result from process  801  is that the communication cost of the communication cost calculation packet that is received is a value larger than the cost stored in the terminal communication cost storage unit  125  (“No” in the figure), or if the result from process  804  is that an identical communication cost calculation packet is already received (“Yes” in the figure), the received communication cost calculation packet is discarded (process  803 ). 
         [0081]    In the above processing, the communication cost along each communication path is calculated, and is stored in the terminal communication cost storage unit  117  of each terminal communication device  120 . 
         [0082]    The operation to switch the communication path by the terminal communication device  120  utilizing the above-described communication cost is described next. 
         [0083]      FIG. 9  shows one example of the data structure of the communication data quantity storage unit  125  of the terminal communication device  120  in the motion controller shown in  FIG. 1 . 
         [0084]    In other words, the communication data quantity storage unit  125  stores the communication data quantity for switching communications, and when the number of waiting transmission (standby) communication packets of each communication port  140  confirmed in fixed cycles by the terminal communication control unit  121  corresponding to the communication data quantity stored here is large, the terminal communication device  120  switches the communication path. 
         [0085]    The central communication control unit  111  transmits the communication data quantity setting information stored in the communication data quantity setting information storage unit  118  of the central communication device  110  to the terminal communication device  120  so that the value for the communication data quantity is stored into the communication data quantity storage unit  125 . 
         [0086]      FIG. 10  shows one example of the data structure of the communication path control method storage unit  127  of the terminal communication device  120  in the motion controller shown in above  FIG. 1 . 
         [0087]    In the figure, the communication path control information stored in the communication path control method storage unit  127  is information showing which of the two switching methods to apply when switching the communication path by way of the terminal communication device  120 . 
         [0088]    The above-described switching is two methods. One method changes the communication port  140  of the central communication device  110  that is the packet destination; and another method transmits packets by way of a communication port  140  other than the upstream port specified by the upstream port number storage unit  124  of the terminal communication device  120  without changing the communication port  140  of the central communication device  110  that is the packet destination. Here, in the first described method, the communication path control information is expressed by a “1”, and in the next method the communication path control information is expressed by a “2”, and when not either of these methods (when not set), the communication path control information is expressed as “0”. 
         [0089]    The central communication unit  111  transmits the communication path control information stored in the communication path control setting information storage unit  115  of the central communication device  110  to the terminal communication device  12  so that the communication path control information is stored into the communication path control method storage unit  127 . 
         [0090]    Next,  FIG. 11  is a flow chart showing the processing executed by the terminal communication control unit  121  of the terminal communication device when changing the communication path in the motion controller shown in  FIG. 1 . 
         [0091]    In the figure, first of all, the terminal communication device  120  confirms the communication quantity of the upstream port and then compares it with the communication quantity set in the communication data quantity storage unit  126  (process  1000 ). 
         [0092]    When the result from process  1100  is that the value for the communication quantity of the upstream port is larger than the value of the communication quantity of the communication data quantity storage unit  126  (“Yes” in the figure), a search is made of the communication path control method (communication path information “R”) set in the communication path control method storage unit  127  (process  1101 ). 
         [0093]    Next, the communication path information “R” is judged (process  1102 ) and when the process result is that the information for the communication path control method (“R” of the communication path information) is “1”, a check is made for packets that were received again (process  1103 ). If there are no re-received packets (“No” in the figure), a search is made for a minimum cost item (process  1104 ) from among the information stored among the terminal communication cost storage unit  125  (process  1104 ), and a receive flag and identification number (ID) are added to the packet (process  1105 ), the packet is transmitted and the processing ends. 
         [0094]    However when the result of process  1102  is that the information for the communication control method is “2”, the communication cost in the terminal communication cost storage unit  125  is minimal and a search is made of the terminal communication cost storage unit  125  for a communication port  140  of the central communication device  110  specified by the upstream port number storage unit as the communication destination, and the packet is transmitted to another communication port of the central communication device (transmits the central communication port number) (process  1106 ) and the processing ends. 
         [0095]    Also, when the result for the process  1102  of the information for the communication control method is “0” or the result from the process  1103  is that the packet is received again (“Yes” in the figure), the packet is transmitted from the communication port  140  specified by the upstream port number storage unit (process  1107 ), and the processing ends. 
         [0096]    Also when the result from process  1100  is that the communication quantity of the upstream port is smaller than the communication quantity of the communication data quantity storage unit  126  (“No” in the figure), the packet is transmitted from the upstream port that is set (process  1108 ) and the processing ends. 
         [0097]    The above processing is capable of switching the communication path by way of the terminal communication device  120 . 
         [0098]      FIG. 12  shows one example of the display screen of the control support software  1200  rendered via a GUI (graphical user interface) that is used to confirm the switching of the communication paths of the network, and the setting of the request function for the device for control utilizing a display and input section  101  such as a monitor and keyboard by way of the control software execution unit  100  of central communication device  110 . 
         [0099]    As can be clearly understood from the drawing, the control support software  1200  is comprised of a communication function setter unit  1201 , a network display unit  1202 , a motion controller, and a process display unit  1203  that displays the processing contents of the control support software  1200 . 
         [0100]    The communication function setter unit  1201  is comprised of an identification number display unit  1210 , a communication cycle setter unit  1211 , and a communication response time setter unit  1212 . The communication function setter unit  1201  displays an identification number set in each terminal communication device  120  on the identification number display unit  1210 ; sets a communication cycle requested by the terminal communication device  120  in the communication cycle setter unit  1211 ; and sets the response time for the communication requested to the terminal communication device  120  in the communication response time setter unit  1212 . 
         [0101]    The network display unit  1202  is comprised of a central communication unit symbol  1220 , a terminal communication unit symbol  1221 , a coupling state symbol  1222 , and a communication port symbol  1223 . These symbols are utilized to display the network structure of the motion controller, and the switching status of the communication paths, the communication data quantity of the each communication line, the communication error status and other information on the network display unit  1202 . Further, details of the network operating status that are shown by the network display unit  1202  are shown on the process display unit  1203 . 
         [0102]    To sum up the main features of the present invention as described above, the motion controller is comprised of one or more terminal communication devices that execute input or output operation or control processing, and a central communication device coupled to the terminal communication devices by utilizing a network; and in which the central communication device further includes a control software execution unit to execute control commands to the devices for control and/or to set the communication control method; a control information storage unit to store control commands to the devices for control and/or the input and output information; an identification number storage unit to store an identification number for recognizing the individual terminal communication devices coupled to the network; a central communication control unit that executes communication control between the terminal communication devices over a network; one or more communication ports including one or more communication channels that convey a transmit signal and/or a receive signal by full duplex transmission in a communication signal of the network; a communication signal transmit and receive unit comprised of a pair of a communication signal receiver unit that executes receive-processing of communication signals of the network, and a communication signal transmitter unit that executes transmit-processing of communication signals of the network per communication port and that are equal in number to the communication channels of each communication port. 
         [0103]    The terminal communication device of the present invention is preferably comprised of an identification number setter unit that sets the identification number; a device control unit that controls the device for control based on control commands that are sent from the central communication device by way of the network or performs operations for input and output information that is transmitted or received from the central communication device by way of the network; an upstream port number storage unit that specifies one of its own communication ports for transferring communication data when carrying out communications with the central communication device over a network; a terminal communication control unit that controls communication with the central communication device by way of the network; one or more communication ports; and one communication signal control unit in each communication port that includes two communication signal transmit and receive units and a transmit and receive switching control unit that switches the performing and stopping of transmitting and receiving of the communication signal transmit and receive units corresponding to one communication channel of the communication port. 
         [0104]    The above structure is further preferably comprised of a transmission path between at least one communication port of the central communication device, and any one of the communication port of the terminal communication devices; and preferably comprised of a transmission path between at least one communication port of a terminal communication device, and any one of the communication port of the central communication device or any one of the communication port of the other terminal communication devices. 
         [0105]    Another feature of the present invention in the structure is provided in which the terminal communication device determines the transmit operation and receive operation of the communication signal transmit and receive unit so as to switch the transmit operation and receive operation of the communication transmit and receive unit and correctly convey the full duplex communication signal on all the transmission paths by way of the transmit and receive signal switching control unit of the communication signal control unit. 
         [0106]    Another feature in the above-described structure is a communication control method in which the central communication device transmits communication data including communication port numbers that are unique numbers set in each communication port by all of the central communication device&#39;s own communication ports; and the terminal communication device sets the communication port that initially receives the communication data transmitted from the central communication device as the upstream port among all of the terminal communication device&#39;s own ports, and stores the communication port number that is the individual port number set for that communication port and the communication port number contained in the communication data that is received at this time is stored into the upstream port number storage unit; and then the central communication device transmits communication data including the communication port number of the central communication device&#39;s own communication port where transmission of the communication data is performed and the identification number set in the terminal communication device to the terminal communication device by way of its own communication port; and the terminal communication device receives communication data from the central communication device by way of the upstream port specified by the upstream port number storage unit, and when the identification number of that communication data matches the identification number set in its own device, that communication data is loaded into its own device, and when the identification number of that communication data does not match the identification number set in its own device, the terminal communication device transmits that communication data from all other communication ports, and when a communication port number of the central communication device included in communication data received from other communication ports matches the communication port number of the central communication device stored in the upstream port number storage unit, the upstream communication port transmits the communication data, and when not a match, the terminal communication device discards that communication data, and when the terminal communication device transmits communication data from itself to the central communication device, the communication data including the communication port number of the central communication device stored in the upstream port number storage unit and the identification number set in the device itself is transmitted to the central communication device by way of the upstream port. 
         [0107]    Moreover, as another feature of the present invention, the central communication device further includes: a central communication cost storage unit that stores a communication cost which is information expressing the delay time for communication that is required with the terminal communication devices coupled to a network; a communication path control setting information storage unit that stores communication path control information which is information expressing change methods when each terminal communication device is changing communication paths on a network; a communication status information storage unit that stores information regarding the communication status of each terminal communication device on the network; a communication path information storage unit that stores communication path information which is information expressing the network path to each terminal communication device; and a communication data quantity setting information storage unit that stores communication data quantity setting information which is information for setting the limit quantity of communication data on the communication lines set in the terminal communication devices. Moreover, the terminal communication device further includes: a communication data quantity storage unit that stores the limit quantity of communication data on the communication line coupled to the terminal communication device; and a communication path control information setting unit that sets communication path control information which is information expressing change methods when changing communication paths over a network. 
         [0108]    Also in the above structure, the central communication device stores the communication path control information and the communication data quantity setting information to set into each terminal communication device, into the communication path control setting information storage unit and the communication data quantity setting information storage unit by way of the control software execution unit; and the central communication control device transmits the communication path control information that is stored in the communication path control setting information storage unit and communication data setting information stored in the communication data quantity setting information storage unit to the terminal communication device by way of the network; the terminal communication device stores the communication path control information that is transmitted from the central communication device into the communication path control information storage unit, and further stores the communication data quantity setting information that is transmitted from the central communication device into the communication data quantity storage unit; and the terminal communication device constantly monitors the communication data quantity of the upstream port that is specified from the upstream port number storage unit, and when the communication data quantity exceeds the value that is stored in the communication data quantity storage unit, the terminal communication device preferably executes any of the following communication control from the terminal communication control unit: transmit the communication data from one of its own ports other than the upstream port to a communication port of the central communication device other than the communication port of the central communication device specified by the upstream port, number storage unit; or transmit the communication data from a communication port other than the upstream communication port to a communication port of the central communication device specified by the upstream port number storage unit; or transmit the communication data from an upstream control port, based on the communication path control information that is stored in the communication path control information storage unit. 
         [0109]    Further, the control software execution means of the central communication device may include a function to set the communication cycle that is required in the terminal communication device and the response time, generate communication path control information and communication data quantity setting information based on the communication cycle and response time that are set, and respectively store them in a communication path control setting information means and a communication data quantity setting information storage means of the central communication device. The control software execution means of the central communication device may also include a function to search the communication status information path storage means and the communication path information storage means of the central communication device, and provide the coupling structure, the communication path, and the communication status of the network. The control software execution unit of the central communication device preferably further includes a GUI (graphical user interface) to implement the setting function and a display function to display the network communication status that are included within the control software execution means. 
         [0110]    Also in the above-described structure, there is no need to consider methods for coupling communication ports when configuring a network and the large number of man-hours required when configuring the controller can be reduced. Moreover, other structures allow easily configuring a complex network such as having plural communication paths without the necessity for considering methods for coupling communication ports when configuring the network. Further, another structure is capable of ensuring the response performance that is required for each device for control, by dynamically changing the communication paths in order to eliminate adjustment of the coupling structure, and reduce the man-hours that are required in the above-described complicated network. 
       LIST OF REFERENCE SIGNS 
       [0000]    
       
           100  . . . Control software execution unit,  101  . . . Display and input means,  110  . . . Central communication device,  111  . . . Central communication control unit,  112  . . . Device control information storage unit,  113  . . . Identification number storage unit,  114  . . . Central communication cost storage unit,  115  . . . Communication path control setting information storage unit,  116  . . . Communication status information storage unit,  117  . . . Communication path information storage unit,  118  . . . Communication data quantity setting information storage unit,  120  . . . Terminal communication device,  121  . . . Terminal communication control unit,  122  . . . Identification number setter unit,  123  . . . Device control unit,  124  . . . Upstream port number storage unit,  125  . . . Terminal communication cost storage unit,  126  . . . Communication data quantity storage unit,  127  . . . Communication path control method storage unit,  130  . . . Communication signal control unit,  131  . . . Communication signal transmit and receive unit,  131 - 1  . . . Communication signal receiver unit,  131 - 2  . . . Communication signal transmitter unit,  133  . . . Transmit and receive switching unit  140  . . . Communication port,  150  . . . Communication line,  400  . . . Data section,  401  . . . Packet type section,  402  . . . Central communication port number section,  403  . . . Identification type number section,  1200  . . . Control support software,  1201  . . . Communication function setter unit,  1202  . . . Network display unit,  1203  . . . Process display unit,  1210  . . . Identification number display unit,  1211  . . . Communication cycle setter unit,  1212  . . . Communication response time setter unit,  1220  . . . Central communication means symbol,  1221  . . . Terminal communication unit symbol,  1222  . . . Coupling state symbol,  1223  . . . Communication port symbol

Technology Category: g