WO2011078017A1 - Communication node and communication system - Google Patents

Communication node and communication system Download PDF

Info

Publication number
WO2011078017A1
WO2011078017A1 PCT/JP2010/072488 JP2010072488W WO2011078017A1 WO 2011078017 A1 WO2011078017 A1 WO 2011078017A1 JP 2010072488 W JP2010072488 W JP 2010072488W WO 2011078017 A1 WO2011078017 A1 WO 2011078017A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
packet
slave
data
output
Prior art date
Application number
PCT/JP2010/072488
Other languages
French (fr)
Japanese (ja)
Inventor
康夫 國吉
吉幸 大村
晶彦 長久保
Original Assignee
国立大学法人東京大学
独立行政法人産業技術総合研究所
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 国立大学法人東京大学, 独立行政法人産業技術総合研究所 filed Critical 国立大学法人東京大学
Publication of WO2011078017A1 publication Critical patent/WO2011078017A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks

Definitions

  • the present invention relates to a communication node and a communication system, and is suitably applied to a communication system that transmits and receives packet data between a plurality of communication nodes connected in a ring shape via a cable, for example.
  • robots and FA Field Automation
  • sensors eg, angle sensors, tactile sensors, force sensors, proximity sensors, vibration sensors, etc.
  • actuators such as motors
  • peripheral circuits eg, drivers, current sensors, Temperature sensor, encoder circuit, etc.
  • MPU Micro / Processor / Unit
  • an object of the present invention is to propose a communication node and a communication system that can efficiently transmit and receive packets with a smaller delay than conventional ones.
  • claim 1 of the present invention provides an input means for inputting a wait area from the outside following an address area of a packet, and outputting the address area to the outside, or the address area
  • An address verification means for determining whether the address added to the packet matches or does not match with the self address set in advance when the wait area is output to the outside.
  • the address matching means determines that the address of the packet and the self address match
  • the packet acquisition means for acquiring received data input subsequent to the wait area; and
  • the wait area is Immediately after the output, self data stored in advance in the sending means is added to the end of the wait area and output to the outside, and the address of the packet does not match the self address by the address checking means.
  • switching means for outputting the received data to the outside as it is after the address area and the wait area.
  • a plurality of slaves each including the address matching unit, the packet acquisition unit, and the sending unit that stores the self-data, and the packet input to the input unit.
  • the switching means capable of transmitting to each slave, and the switching means includes a slave determined by the address matching means that the address of the packet and the self-address match among the plurality of slaves. In some cases, the self data is received from the slave.
  • a destination address indicating a destination that is being output to the outside or has already been output is routed through a route connected to the output means.
  • the feedback address is returned, it is determined whether the destination address and the feedback address match or do not match, and when it is determined that the destination address and the feedback address do not match, the current output It is characterized by comprising retransmission means for interrupting packet output in the middle and outputting the packet to the outside again from the beginning.
  • a plurality of slaves including the address matching unit and the packet acquisition unit, and a switching input / output unit that connects each of the slaves to an external device.
  • the means is characterized by receiving data as the self data from the external device, selecting one of the slaves according to the type of the data, and transmitting the data to the slave.
  • the apparatus includes a slave including the address matching unit and the packet acquisition unit, and a plurality of input / output units that connect the slave to an external device.
  • One of the plurality of input / output means is selected in accordance with the type of data, and the received data is transmitted to the input / output means.
  • switching input / output means for connecting each of the slaves and an external device, and the switching input / output means receives data as the self data from the external device, and One of the slaves is selected according to the type, and the data is transmitted to the slave.
  • At least one of the slaves is connected to an external device via a plurality of input / output means, and a plurality of the input / output means are provided according to the type of the received data. Any one of them is selected and the received data is transmitted to the input / output means.
  • An eighth aspect of the present invention is characterized in that the communication node according to any one of the first to seventh aspects is connected to a transmission path, and the packet circulates a plurality of the communication nodes. It is.
  • the packet received by performing address verification by the address verification means and data exchange Even when exchanging data, it is possible to efficiently transmit and receive packets with a delay time equivalent to that when simply transferring packets.
  • Communication system 2a Master node (communication node) 2b-2j Slave node (communication node) 4 External devices 10a to 10c Slave 11a, 11b IO (input / output means) 12 Switching IO (Switching input / output means) 15 Address verification means (retransmission means) 21,93 Switching means 22 Address matching means 23 Input means 24 Packet acquisition means 25 Sending means 26 Output means 30 Transfer means
  • reference numeral 1 denotes a communication system having a configuration in which a plurality of communication nodes 2a to 2j are connected by a transmission line 3 in a ring shape.
  • the communication nodes 2a to 2j are master nodes, and the other communication nodes can function as slave nodes.
  • the master node may be a fixed communication node, or a transmission right (token) is transferred between the communication nodes 2a to 2j as necessary, and any one of the plurality of communication nodes 2a to 2j is used.
  • a plurality of communication nodes may have a transmission right to function as a master node.
  • the communication node 2a functions as a master node having the transmission right (hereinafter, the communication node 2a is called the master node 2a), and all the other communication nodes 2b to 2j are A case of functioning as a slave node (hereinafter, communication nodes 2b to 2j are called slave nodes 2b to 2j) will be described below.
  • the case where the communication system 1 according to the present invention is applied to, for example, a robot is described, and a slave is connected to an external device in which a plurality of motors, sensors, and the like are densely arranged, such as hands and feet of the robot. Assume that nodes 2b to 2j are provided.
  • the external device 4 including a plurality of motors 6a and 6b, a plurality of sensors 7a and 7b, and an AD conversion unit 8 connected to the sensors 7a and 7b is illustrated, and attention is paid to the external device 4. This will be described below.
  • a transmission signal is first transmitted from the master node 2a, and this transmission signal sequentially passes through all the slave nodes 2b to 2j along the transmission path 3, and is connected in a ring shape.
  • the nodes 2b to 2j go around in a certain direction and return to the master node 2a again.
  • the transmission signal transmitted from the master node 2a can circulate at high speed on the transmission line 3 provided with the plurality of slave nodes 2b to 2j. Since all the slave nodes 2b to 2j have the same configuration, the following description will be given focusing on the slave node 2d having the plurality of slaves 10a to 10c to which the external device 4 is connected.
  • the master node 2a adds, for example, an address indicating the slave 10a connected to the predetermined motor 6a and data 0 indicating a command value for the motor 6a to the packet P, and uses the packet P as a transmission signal.
  • the slave 10a of the slave node 2d normally transfers the transmission signal to the slave 10b.
  • the slave 10a acquires the address added to the packet P, and is the packet P addressed to itself based on this address. Whether or not it can be judged.
  • the slave 10a determines that the packet P is addressed to another slave, the slave 10a continues to transfer the packet P as it is to the next slave 10b as a transmission signal.
  • the slave 10a when determining that the packet P is addressed to the slave 10a, the slave 10a obtains the data 0 added to the packet P, and at the same time, replaces the data 1 indicating the current value of the motor 6a with the data 0. It is added to the packet P, this packet P is transmitted as a transmission signal, and the downstream slaves 10b and 10c and the slave nodes 2e to 2j can make a round and be received by the master node 2a.
  • the master node 2a can acquire the data 1 added to the packet P when receiving the transmission signal that has circulated around the slave nodes 2b to 2j.
  • the slave node 2d includes a plurality of slaves 10a to 10c, a plurality of IOs (Input / Output) 11a and 11b for connecting the motors 6a and 6b corresponding to the slaves 10a and 10b, and any one of the slaves.
  • An IO (hereinafter referred to as a switching IO) 12 serving as an input / output means that is configured to be switchable between 10a to 10c and has a switching function for distributing the data 1 acquired from the AD conversion unit 8 to a predetermined slave 10a. Is provided.
  • the slave 10a When the slave 10a acquires the data 0 added to the packet P, the slave 10a can transmit this to the motor 6a via the IO 11a. Accordingly, the motor 6a can be controlled based on the data 0.
  • the slave 10a acquires the data 0 added to the packet P and outputs it to the IO 11a.
  • the present invention is not limited to this, and the data 0 acquired by the slave 10a. May be acquired by the IO 11a at an arbitrary timing.
  • the motor 6a is connected to a sensor 7a, and the current value of the motor is detected by the sensor 7a, for example.
  • the current value detected by the sensor 7a is digitized by the AD conversion unit 8, and this is transmitted as data 1 to the switching IO 12 and distributed from the switching IO 12 to a predetermined slave 10a.
  • the communication system 1 performs a predetermined transmission / reception process (described later) when acquiring the packet P in each of the slaves 10a to 10c, and an address verification that is verified by the address verification means 15 in the master node 2a. It is characterized in that retransmission processing (to be described later) is performed based on the result, and switching processing in which the switching IO 12 switches the delivery destination slaves 10a to 10c in accordance with the data 1 acquired from the AD conversion unit 8.
  • the delay is reduced in all the slaves including the slaves 10a to 10c by a predetermined transmission / reception process so that each slave can efficiently acquire the packet P addressed to itself.
  • the master node 2a can also receive the packet P transmitted by itself within a short time, the master node 2a can shorten the time required for retransmission processing necessary for re-output of the packet P when the packet is damaged. Is planned. Further, in this communication system 1, by reducing the delay in all the slaves including the slaves 10a to 10c, each of the slaves efficiently acquires the packet P addressed to itself, and the motors 6a, 6b and By taking the correspondence of the sensors 7a and 7b, the communication cycle is speeded up and the external device 4 is downsized.
  • a packet P generated by the master node 2a includes, for example, an address area AD to which an address indicating the slave 10a is added, a wait area W having a predetermined number of bits, a master It consists of a data area DT to which either data 0 from the node 2a or data 1 received from the external device 4 is added, and a CRC (Cyclic Redundancy Check) (not shown) indicating a check code for detecting a data error.
  • the address area AD can be generated first, followed by the wait area W, the data area DT, and the CRC.
  • description of CRC not related to transmission / reception processing according to the present invention is omitted, and description will be made focusing on address area AD, wait area W, and data area DT.
  • the slave node 2d can be received by the slave 10a from the upstream slave node 2c using the packet P generated by the master node 2a as a transmission signal.
  • the slave 10a is configured to be able to transfer the packet P received from the upstream slave node 2c as it is to the downstream slave 10b by the switching means 21, and acquires the packet P by simply transferring the packet P. Then, the delay can be reduced when the data is output to the downstream slave 10b.
  • the slave 10a transfers the wait area W of the packet P
  • the slave 10a collates the address added to the address area AD by the address collating means 22, and if the address is addressed to itself, the slave 10a Data 0 stored in the buffer is added after the wait area W, and the contents of the data area DT of the packet P changed from data 0 to data 1 downstream
  • the slave 10b can receive it.
  • the slave 10a has an input means 23 to which the packet P is input from the upstream slave node 2c, a switching means 21 for switching the passage route of the packet P in the slave 10a, and a packet P.
  • an output means 26 for outputting the packet P input to the switching means 21 to the downstream slave 10b.
  • the switching means 21 is provided with a transfer means 30 and a route selection means 31.
  • the route selection unit 31 of the switching unit 21 is configured to be able to connect either the transfer unit 30 or the transmission unit 25 and the output unit 26, and is an idle signal output before the packet output from the master node 2a. Can be brought into a transfer state in which the output means 26 is connected to the transfer means 30.
  • the route selection unit 31 changes the connection destination of the output unit 26 from the transfer unit 30 to the transmission unit 25 according to the collation result of the address added to the address area AD of the packet P. Switch.
  • the route selection means 31 continues to connect the output means 26 and the transfer means 30 when the address added to the address area AD is addressed to another slave, and the packet P with the data 0 added to the data area DT. Can be output from the output means 26 as a transmission signal.
  • the path selection means 31 outputs the wait area W of the packet P from the output means 26 as a transmission signal.
  • the route selection means 31 passes the address area AD and the wait area W received from the transfer means 30 as they are, because the output means 26 is connected to the transfer means 30 in advance before receiving the packet P,
  • the address area AD and wait area W are output as transmission signals from the output means 26 to the downstream slave 10b.
  • the packet acquisition unit 24 acquires the packet P from the transfer unit 30 and temporarily stores the acquired packet P.
  • the address verification means 22 determines whether or not the address area AD has been received from the packet P stored in the packet acquisition means 24. When the address area AD has been received, the address verification means 22 The self address set in advance can be collated.
  • the path selection means 31 sends the output means 26 to the transfer means 30 assuming that the packet P is addressed to another slave. Keep connecting.
  • the slave 10a converts the address area AD of the packet P input to the input means 23, the wait area W, and the data area DT to which data 0 is added into the path selection means 31. Can be output as it is as a transmission signal from the output means 26 and transferred to the downstream slave 10b.
  • the address acquisition unit 22 discards the address area AD, the wait area W, and the data area DT received from the transfer unit 30, and waits for the next packet P to be sent from the transfer unit 30.
  • the route selection means 31 is connected to the transfer means 30 in advance based on the idle signal, so that the address area AD and the wait area W received from the transfer means 30 And the address area AD and wait area W are output as transmission signals from the output means 26 to the downstream slave 10b.
  • the packet acquisition unit 24 receives the packet P from the transfer unit 30 and temporarily stores the received packet P. If the address matching means 22 determines that the address of the address area AD matches the self address as a result of matching the address of the address area AD acquired by the packet acquiring means 24 with the self address, the packet P is addressed to the self slave. If there is, a switching signal is sent to the route selection means 31. As a result, the route selection means 31 switches the connection destination of the output means 26 from the transfer means 30 to the sending means 25 as shown in FIG. As shown in FIG.
  • the slave 10a reads the data 1 stored in the sending means 25, adds it to the data area DT, adds the data area DT to the end of the wait area W, Can be output from the output means 26 as a transmission signal and sent to the downstream slave 10b.
  • the address matching means 22 determines that the address added to the address area AD matches the self address, the address matching means 22 extends from the end of the address area AD to a predetermined number of bits.
  • this position is determined as the end of the wait area W, and a data addition command is sent to the sending means 25.
  • the sending means 25 sends the data 1 as its own data to the route selection means 31 based on the data addition command, and adds the data 1 to the location that is the end of the wait area W.
  • the route selection means 31 can output the data area DT of the data 1 added immediately after the end of the weight area W from the output means 26 as a transmission signal.
  • the route selection means 31 interrupts the transfer of the wait area W from the transfer means 30. Therefore, the route selection means 31 generates a transmission signal corresponding to the wait area W from the end of the address area AD to a predetermined number of bits, and outputs it to the output means 26 from the time when the transfer of the wait area W is interrupted. Continue to output.
  • the transmission timing of the data 1 from the transmission means 25 to the path selection means 31 is adjusted, so that the address added to the end has been described, the present invention is not limited to this, and the route according to the end of the weight region W when the end of the weight region W passes the route selection means 31.
  • Data 1 may be added to the end of the weight area W by switching the connection path of the selection means 31 to the sending means 25. In short, if new data 1 can be added to the end of the weight area W, the other Various methods may be applied.
  • the slave nodes 2b to 2j transmit their own data 1 from the position of a predetermined number of bits from the end of the address area AD. As long as it is mounted, the content of the weight area W may be changed.
  • the master node 2a sends a packet P in which valid data is written to the slave areas 10a to 10c in the wait area W, and the slave 10b that is the destination acquires the data in the wait area W and the data area DT, and addresses
  • the implementation is such that its own data 1 is transmitted from the position of a predetermined number of bits from the end of the area AD, but in this case as well, the content of the wait area W received by the master node 2a may be changed. Good.
  • the master node 2a places data in the wait area W.
  • the address verification means 22 is configured to send a data holding command to the packet acquisition means 24 when the address added to the address area AD matches the self address.
  • the packet acquisition means 24 stores the data 0 as the reception data added to the packet P as shown in FIG. 4C based on the data holding command, and stores the data 0 in the slave 10a.
  • the information can be transmitted to the associated IO 11a (FIG. 1).
  • the address area AD is collated with the address of the address area AD while the wait area W having a predetermined number of bits added in advance following the address area AD is being output from the output unit 26.
  • the collation and the switching operation for switching the connection route to the sending means 25 in the route selection means 31 when the address of the address area AD matches the self address are performed.
  • the delay caused in each slave when the packet passes through many slaves included in the slave nodes 2b to 2j is also related to data exchange. It can be shortened to the same time as a simple transfer process.
  • the delay of the slave 10a is 1 bit or less, that is, 10 nsec or less.
  • the path selection means 31 uses the output means 26.
  • the timing for switching the connection destination to the sending means 25 is delayed, the data exchange for exchanging data 0 to data 1 in the data area DT at the end of the address area AD may not be in time, and the packet P may be destroyed.
  • the wait area W is provided in advance between the address area AD and the data area DT, address matching performed in the address matching means 22 and switching operation in the route selecting means 31 are performed. Can be performed within the wait transfer time, data exchange from data 0 to data 1 can be executed reliably in the data area DT, and the packet P can be prevented from being destroyed.
  • the communication system 1 shown in FIG. 1 has a very short packet transmission delay in each of the slave nodes 2b to 2j. Therefore, even when the number of slave nodes is relatively large, the master node 2a transmits the packet P to the downstream slave node 2b. Before the transmission of all signals is completed, the head of the transmission signal returns to the master node 2a again via all the slave nodes 2b to 2j.
  • the address verification means 15 of the master node 2a adds the address added to the address area AD of the currently output packet P and the address area AD among the packets that have returned through all the slave nodes 2b to 2j.
  • An error determination process is performed for checking the added address (hereinafter referred to as a feedback address).
  • the master node 2a can determine whether or not the packet acquired after making a round of the slave nodes 2b to 2j is damaged by noise or the like during transmission.
  • the address verification means 15 of the master node 2a is provided with storage means (not shown), and the address added to the address area AD among the packets P currently sent to the downstream slave node 2b is It can be stored in the storage means as an address for error determination.
  • the address verification means 15 of the master node 2a receives a transmission signal that makes a round of all the slave nodes 2b to 2j when the packet P is being output to the downstream slave node 2b, and receives the address area AD of the packet P. Can be determined whether or not the feedback address added to the address area AD matches the error determination address stored in the storage means.
  • the address verification means 15 does not perform after the address area AD has all fed back, but sequentially checks the signal to be fed back with the address for error determination in units of 1 bit before the area AD has all fed back. The damage of the area AD can be determined.
  • the address verification unit 15 as the retransmission unit of the master node 2a performs the error determination process, the return address of the packet P that has made a round of all the slave nodes 2b to 2j, and the error determination address stored in the storage unit Is determined to be inconsistent, it is determined that the packet P is damaged due to noise or the like during transmission, the output of the currently transmitted transmission signal is immediately interrupted, and an idle signal is output instead of the transmission signal. Let it be idle. As a result, the slave nodes 2b to 2j interrupt the input of the transmission signal, and when the idle signal is input instead of the transmission signal, the slave node 2b-2j discards the packet P stored in the packet acquisition means 24 (FIG. 2). Wait until a new transmission signal is input.
  • the master node 2a starts to output the packet P again to the downstream slave node 2b as a transmission signal in order from the head address area to the wait area and the data area.
  • the master node 2a determines whether or not there is a possibility that the packet P is damaged before completing the output of all the packets P.
  • the packet P is output again from the beginning without waiting for the completion of output.
  • the master node 2a prevents the slave nodes 2b to 2j from acquiring the packet P that may be damaged during transmission, and shortens the communication time required for re-outputting the packet P when the packet is damaged. And real-time performance can be improved.
  • the damage of the packet P due to noise or the like is conventionally determined using a CRC (not shown) added to the end of the packet P. Therefore, the master node 2a receives all the transmission signals that have made a round of all the slave nodes 2b to 2j, and after acquiring the entire packet, determines whether or not the packet P is damaged by CRC, and the packet P is damaged. If it is determined, the packet P is re-output.
  • CRC not shown
  • the master node 2a can detect whether or not the packet P is damaged without acquiring the whole packet, and when the whole packet is output to the downstream slave node 2b, the packet P again. Can be output again from the beginning, and accordingly, the re-output time of the packet P when the packet is damaged can be shortened.
  • the master node 2a of the present invention can determine whether the address area AD is damaged without acquiring the entire address area AD by sequentially performing address collation in units of 1-bit feedback signal. It is.
  • the processing circuit is prevented from becoming complicated, and the processing content is simple, so that the master node 2a
  • the internal circuit configuration of the IC constituting the circuit is also simple and can be reduced in size.
  • the IOs 11a and 11b and the switching IO 12 are, for example, a parallel bus or a serial bus (SPI (Serial Peripheral Interface), SMBus (System Management Bus), I2O ((Intelligent Input / Output)), UART (Universal Asynchronous Receiver) Transmitter)) and the like, and the motors 6a and 6b of the external device 4 are connected to the IOs 11a and 11b via the buses, and the AD converter 8 of the external device 4 is connected to the switching IO 12 respectively.
  • SPI Serial Peripheral Interface
  • SMBus System Management Bus
  • I2O Intelligent Input / Output
  • UART Universal Asynchronous Receiver
  • the IO 11a can acquire data 0, which is a command value to the motor 6a, from the slave 10a via the parallel bus, and can output data 0 to the motor 6a of the external device 4.
  • the external device 4 includes a multi-channel AD conversion unit 8, sensors 7a and 7b provided for the respective motors 6a and 6b are connected to the AD conversion unit 8, and a plurality of the AD conversion units 8 are provided.
  • the measurement signals sent from the sensors 7a and 7b can be subjected to AD conversion processing.
  • the external device 4 is provided with an AD conversion unit individually for each of the sensors 7a and 7b as in the prior art, and is reduced in size as compared with an external device including a plurality of AD conversion units.
  • a bus such as SMBus is connected to the switching IO 12, and the AD conversion unit 8 of the external device 4 is connected to the switching IO 12 via the bus.
  • the switching IO 12 receives from the AD conversion unit 8 a data string obtained by AD converting the measurement signals from the sensors 7a and 7b, the switching IO 12 selects, for example, the slave 10a associated with the data string from the slaves 10a to 10c.
  • the data 1 added to the data string can be output only to the selected slave 10a.
  • the data string received by the switching IO 12 from the AD conversion unit 8 is composed of a slave ID indicating an ID previously associated with each of the slaves 10a to 10c, a data length, and data 1 sent to the master node 2a.
  • the switching IO 12 selects, for example, the slave 10a corresponding to the slave ID of the data string as the connection destination, and selects the data string corresponding to the data length of the data string as the connection destination slave. It is configured to output to 10a.
  • the switching IO 12 can output data 1 which is a current value in the same motor 6a to the slave 10a which has transferred the data 0 from the master node 2a to the motor 6a.
  • the slave that delivers the data 0 from the master node 2a to the motor 6a and the slave to which the data 1 obtained from the motor 6a is input can be the same slave 10a.
  • Data 0 and data 1 can be exchanged in the data area of the packet P at the timing when P is acquired and address verification is performed.
  • FIG. 5 in which the same reference numerals are assigned to the parts corresponding to those in FIG.
  • Each of the motor modules 43a and 43b receives the measurement results from a plurality of sensors 7a and 7b that measure the currents of the motors 6a and 6b, AD conversion units 44a and 44b that perform AD conversion processing, and a rotation angle of a predetermined part Counters 46a and 46b.
  • the external device 42 as a comparative example is connected to a sensor network 49 and an AD converter 48 connected to a predetermined sensor 47, separately from the AD converters 44a and 44b and the counters 46a and 46b. MPU50 is provided.
  • the AD modules 44a and 44b and the counters 46a and 46b are provided for the respective motor modules 43a and 43b, so that the motor modules 43a and 43b are enlarged. As a result, there is a problem that the overall size of the external device 42 is increased.
  • an external device 52 as shown in FIG. .
  • the predetermined sensor 47 and the sensors 7A and 7B of the motor modules 53A and 53B are connected to one AD converter 48 to share the AD converter 48, Instead of the counter, the rotation angle is measured by one MPU 50.
  • the AD conversion unit and the counter of each motor module 53A, 53B can be omitted, so that the size of each motor module 53A, 53B can be reduced.
  • data 1 from the AD conversion unit 48 related to the motor 6a is input to a slave 10c different from the slave 10a that outputs data 0 to the motor 6a.
  • Data input / output related to one motor 6a is performed using different slaves 10a and 10c.
  • Switching IOs 12a and 12b with a switching function for freely distributing them are provided.
  • a slave 10a that outputs data 0 to the motor 6a, and a slave 10a that receives data 1 related to the motor 6a Therefore, the data 0 and data 1 in the data area of the packet P can be exchanged at the timing when the slave 10a acquires the packet P and checks the address.
  • the switching IO 12a By appropriately switching the connection-destination slaves 10a to 10d at 12b, for example, data 0 and data 1 related to the motor 6a can be exchanged by the same slave 10a.
  • the slave node 61 can exchange data 0 and data 1 in the data area DT of the packet P at the timing when each of the slaves 10a to 10d acquires the packet P. Therefore, in the slave node 61, it is not necessary to align the communication cycle between the slaves 10a to 10d as in the slave node 41 shown in FIG. The speed can be increased.
  • data exchanged in one packet can be associated with one motor module 53a or 53b, so that the processing in the computer connected to the master node 2a can be made simple and efficient.
  • the command to the motor 6a, the sensor 7a, and the rotation angle 53a can be handled in a unified manner.
  • Tc between the slave ID and data 1 indicates the data length.
  • the MPU 50 selects any one of the slaves 10a to 10d via the switching IO 12b, and not only sends data 1 to the selected slave but also receives data 0 from the selected slave. That is, the MPU 50 can select one of the slaves 10a to 10d and exchange data with the selected slave.
  • the packet P is continuously output from the output means 26 to the downstream slave 10b via the transfer means 30 and the path selection means 31, and the packet acquisition means 24 The packet P acquired by is discarded.
  • the address area AD is analyzed and whether the packet is addressed to itself. I was deciding whether or not.
  • the data in the data area DT is exchanged, and the packet fetched in the buffer is output to the downstream slave as a transmission signal in order from the top address area AD.
  • the slave 10a when the packet P is input from the input means 23, the packet P is immediately output to the downstream slave 10b, and at the same time, the address verification of the address added to the packet P is performed.
  • the delay time that occurs when the packet P is transferred to the downstream slave 10b can be shortened compared to the conventional case, and the packet P can be transmitted and received efficiently.
  • the delay time when transmitting and receiving the packet P can be shortened compared to the conventional slave.
  • the slave 10a acquires the data 0 added to the data area DT from the packet P acquired by the packet acquisition means 24. At this time, the slave 10a disconnects the connection between the output unit 26 and the transfer unit 30 in the route selection unit 31, and connects the transmission unit 25 to the output unit 26, and the data 1 stored in the transmission unit 25 in advance. Is added to the end of the wait area W instead of the data 0, and this is output from the output means 26 to the downstream slave 10b.
  • the output unit 26 when the output unit 26 outputs a predetermined number of wait areas W in the packet P from the output unit 26, the address verification by the address verification unit 22 and the route selection unit 31 By switching the connection path, even after it is determined that the packet P is addressed to itself, the data 1 can be reliably added to the end of the wait area W instead of the data 0, and the packet P is destroyed. Can be prevented.
  • the wait area W since the wait area W is provided, when the wait area W is output from the output means 26, the address verification by the address verification means 22 and the switching of the connection route by the path selection means 31 are performed. Therefore, the data 1 can be output without delay immediately after the transfer of the address area AD and the wait area W of the packet P in each of the slaves 10a to 10c provided on the transmission path 3, and the delay can be made smaller than before. Packet P can be transmitted and received efficiently. Further, in the communication system 1, the time of the packet P returning from the master node 2a to the master node 2a again through all the slave nodes 2b to 2j can be shortened.
  • the address verification is performed within the preset transfer time of the wait area W.
  • the delay of the entire packet is the product of the transfer delay of each slave node and the total number of slave nodes. . Since the delay of the slave node is 1 bit or less in the harmonized method (described later) and is shorter in the repeat method (described later), the communication system 1 realizing high-speed response can be constructed even when there are many slave nodes.
  • each of the slaves 10a to 10c has an extremely short delay and can efficiently transmit and receive the packet P, and a high-speed response of data communication between the master node 2a and the slave nodes 2b to 2j can be achieved. Therefore, for example, it is extremely effective in reducing the size of the external device 4.
  • a communication system 71 in which MPUs 73a to 73d are respectively provided in a plurality of communication nodes 72a to 72f as shown in FIG. 8 will be described as an example.
  • motors 74a and 74b are provided in MPUs 73a and 73b via drivers 75a and 75b, and sensors 76a and 76b are provided in MPUs 73c and 73d via amplifiers 77a and 77b.
  • a device 79a including the communication nodes 72e and 72f provided is provided.
  • devices 79b and 79c having communication nodes 72a and 72b, respectively, and having sufficient space in the installation space G are provided.
  • the high-performance PU (Processor Unit) 83a, 83b that functions in place of the MPU is provided in the installation space G of the other device 79b, 79c, so that one device 82 is small enough to omit the MPU. Can be achieved.
  • packet communication can be made to respond at high speed like the buses of the high-performance PUs 83a and 83b. Even when the high-performance PUs 83a and 83b are away from each other, packet communication similar to the communication system 71 shown in FIG. 8 can be realized.
  • the amount of data per unit time is very large in sensors that require high-speed sampling, such as vibration sensors and acceleration sensors. Therefore, in the slave node of the communication system, if the data collection cycle by the packet P is slow, it is necessary to buffer the data from the sensor. However, if the slave nodes 2b to 2j can collect data at high speed by the packet P in the communication system 1, the amount of buffers and RAMs to be arranged in the slaves 10a to 10c can be greatly reduced, and the ICs to be used Since the rank of the MPU can be lowered, the slaves 10a to 10c can be further downsized.
  • the head of the packet P currently output to the downstream slave node 2c is again transmitted to the master node 2a via all the slave nodes 2b to 2j. Is returned to the address area AD of the currently output packet P, and the address added to the address area AD of the packet P that has returned around the slave nodes 2b to 2j is checked.
  • the master node 2a Even if it makes a round of the nodes 2b to 2j, the slave nodes 2b to 2j do not change the address of the packet P, so the packet P is damaged by noise or the like while making a round of the downstream slave nodes 2b to 2j.
  • the master node 2a immediately interrupts the currently output packet P, and again outputs the packet P from the head address area AD to the downstream slave node 2c. It is possible to shorten the time required for re-outputting the packet P at the time and improve the real-time property.
  • the switching IO 12 that connects the slave 10a and the AD conversion unit 8 of the external device 4 has a plurality of connection destinations according to the slave ID of the data string received from the AD conversion unit 8.
  • the switching IO 12 that connects the slave 10a and the AD conversion unit 8 of the external device 4 has a plurality of connection destinations according to the slave ID of the data string received from the AD conversion unit 8.
  • the data 0 received from the AD converter 8 is associated with the motor 7a that has obtained the data 0. Since the data can be directly output to the slave 10a, the data exchange of the data 0 and the data 1 of the packet P can be performed at the timing when the packet P is acquired in the slave 10a and the address verification is finished. Thus, in the slave node 2d, data 1 and data 0 can be transmitted / received at high speed by the communication cycle of the slaves 10a to 10c.
  • the present invention is not limited to the present embodiment, and various modifications can be made within the scope of the gist of the present invention, and a communication system used for a robot or FA system. It can be applied not only to various communication systems.
  • each slave 10a to 10c is configured to be freely switchable to any one of the plurality of IOs 11a, 11b and switching IO12 to any one of IO11a, 11b or switching IO12. Also good.
  • the data 0 has been described as a command value to the motor 6a, for example, and the data 1 has been described as a current value of the motor 6a, for example.
  • the present invention is not limited to this, and a plurality of communication nodes are connected to a line.
  • Various other communication systems such as a communication system connected in a type, a communication system in which a plurality of communication nodes are connected in a star shape, and a communication system in which a plurality of communication nodes are connected in a tree shape may be applied.
  • the IOs 11a and 11b are configured to have a PWM (Pulse Width Modulation) output as an output to the motors 6a and 6b, or a counter input of a rotation angle sensor (rotary encoder) connected to the motor.
  • PWM Pulse Width Modulation
  • the IO having various other configurations such as the configuration having the above may be applied.
  • the packet acquisition unit 22 uses the data area DT received from the transfer unit 30 without discarding it.
  • An implementation is also possible.
  • sending means is used for the circuit unit that stores data 1 as its own data.
  • the sending means 25 does not necessarily have to be implemented to send, for example, The sending means 25 may simply store the self data, and actually the switching means 21 may read and send the self data.
  • the sending means 25 may store the self data and send the self data to the switching means 21, and the switching means 21 may simply output the self data to the outside via the route selecting means 31.
  • the packet P having the address area AD at the head is applied has been described.
  • the present invention is not limited to this, and the packet having the wait area W immediately after the address area AD is used. If there is, for example, a packet in which there are various other data at the head and there is an address area AD immediately after that may be applied.
  • slaves when there are a plurality of slaves in the slave node, there may be an implementation in which the slaves share the address verification unit 22 and the packet acquisition unit 24.
  • the slave node 2d is different from the above-described embodiment only in that a switching unit 93 is provided outside the slaves 92a to 92c.
  • the slaves 92a to 92c have the same configuration, for convenience of explanation, attention is paid to the slave 92b.
  • the slave 92b acquires the data 0 added to the packet P and stores the data stored in the slave 92b. A case where 1 is added to the packet P will be described below.
  • the slave 92b includes an address matching means 22, a packet acquisition means 24, and a sending means 25, and is provided outside the slave 92b.
  • the packet acquisition means 24 is connected to the transfer means 94 of the switching means 93, and compared with the above-described embodiment, the size is reduced by the amount that the switching means 93 is not provided in the slave 92b. Is planned.
  • the switching unit 93 when the packet P is input from the input unit 23, the switching unit 93 outputs the packet P to the respective slaves simultaneously by the transfer unit 94 and outputs the packet to the route selection unit 95 as it is.
  • the packet P can be directly transferred to the downstream slave node 2e (FIG. 10) via the route selection means 95 and the output means 26.
  • the slave 92b performs the address verification by the address verification unit 22 and outputs the connection path to the path selection unit 31 when the wait area W is output from the output unit 26. Can be switched. At the same time, the slaves 92a and 92c perform address verification.
  • each slave 92a, 92b, 92c determines that the data 0 added to the received packet P is not addressed to itself, it discards the packet P.
  • each slave 92a, 92c discards the packet P because the data 0 added to the received packet P is not addressed to itself, but the slave 92b
  • the address added to the address area AD matches the self address
  • the data 0 added to the data area DT is acquired from the packet P acquired by the packet acquisition means 24.
  • the path operation means 95 receives the switching signal from the address collating means 22 of the slave 92b, cuts off the connection between the output means 26 and the transfer means 30 based on the switching signal, and outputs the output means 26 and each slave.
  • the sending means 25 of 92a to 92c is connected.
  • the path operation unit 95 receives the data 1 from the transmission unit 25 of the slave 92b, adds the data 1 to the end of the wait area W instead of the data 0, and outputs the data 1 from the output unit 26 to the downstream slave node. It is made to be able to do.
  • the switching means 93 is not provided in each of the slaves 92a to 92c.
  • the slave node 2d itself can be reduced in size.
  • the transfer processing in each slave 92a to 92c can be executed by one switching means 93. Therefore, even if a slave is provided in addition to the slaves 92a to 92c and the number of slaves is increased, the slave node The transfer time for transferring the packet P from 2d to the downstream slave node can be maintained as the transfer time before the number of slaves is increased. That is, in this case, the delay time does not depend on the number of slaves, and is configured to be proportional to the number of slave nodes, so that the delay time can be significantly shortened. Furthermore, the circuits in each of the slave nodes 2b to 2j can be simplified, and the miniaturization of the IC can be promoted.
  • the transfer means 30 has a built-in receiver element, etc., whereby the received transmission signal is binarized and further sampled at the timing of the clock in the slave, so that the jitter of the transmission signal (in the time axis) The waveform collapse due to the fluctuation component generated along the line) and the skew (tilt) is corrected and converted into a harmonized signal.
  • the tuned signal is sent to the route selection means 31 and the packet acquisition means 24.
  • the path selection means 21 sends the tuned signal or the signal from the sending means 25 downstream through a driver element or the like.
  • the delay of this harmonizing method is mainly caused when sampling is performed at the timing of the clock in the slave, and is 1 bit or less.
  • the packet length is made sufficiently smaller than 5000 bits, it is not necessary to introduce a delay due to a clock error, so that the delay due to the harmonic wave can be minimized.
  • the packet length is shortened, there is a disadvantage that the substantial data transfer efficiency is lowered.
  • the packet length is shortened, and the delay caused by the switching means 21 in the wave shaping method is limited to 1 bit or less.
  • the switching means 100 using the repeater system branches the transmission signal received from the input means 23 (FIG. 2) into two, and one of the branch signals is adjusted by the wave shaping means 101. After being waved, it is output to the packet acquisition means 24.
  • the wave shaping means binarizes the transmission signal received by the receiver element 102, and then samples it at the timing of the clock 103 by the sampling unit 104, thereby correcting the waveform distortion of the transmission signal and converting the wave shaped signal. Output.
  • the other branch signal can be output to the output side via the repeater element 106.
  • the signal from the sending means 25 is output to the output side via the driver element 107 in the switching means 100.
  • the repeater element 106 outputs a signal similar to the input signal, but is an element having a function of improving output impedance and the like, and the delay is extremely small.
  • the outputs of the repeater element 106 and the driver element 107 can be validated / invalidated, and for example, those having high impedance due to the invalidation are used.
  • the validation / invalidation of the repeater element 106 and the driver element 107 is controlled by the address collating means 22, and the function equivalent to the path selection means is achieved by enabling only one of them. As a result, either the transmission signal from the input means 23 (FIG. 2) or the signal from the sending means 25 is output from the switching means 100.
  • the delay in the switching means 100 at this time is the same as the delay of the repeater element 106, it can be shortened as compared with the harmonizing method or the like. Normally, only the repeater element 106 is enabled, and the received transmission signal is output as it is through the repeater element 106. When outputting the sending means 25, only the driver element 107 connected to the sending means 25 is valid. When the data transmission from the transmission means 25 is completed, only the repeater element is validated again.
  • the switching means 21 shown in FIG. 2 includes a transfer means 30 and a route selection means 31, but the transfer means 30 and the route selection means 31 are not necessarily provided as physical structures.
  • a switching unit that functions in a similar manner may be constructed without providing a transfer unit and a route selection unit as a physical structure.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

Provided are a communication node and communication system that, in comparison to existing technologies, can reduce delay and can transmit and receive packets efficiently. When a slave device (10a) is outputting a wait region (W) via an output means (26), an address matching means (22) performs address matching and a route selection means (31) performs switching of a connection route, so each slave device (10a to 10c) provided on a channel (3) can output data (1) with no delay immediately after transfer of an address region (AD) and wait region (W) of a packet (P).

Description

通信ノード及び通信システムCommunication node and communication system
 本発明は、通信ノード及び通信システムに関し、例えばケーブルを介してリング状に接続された複数の通信ノード間においてパケットデータの送受信を行う通信システムに適用して好適なものである。 The present invention relates to a communication node and a communication system, and is suitably applied to a communication system that transmits and receives packet data between a plurality of communication nodes connected in a ring shape via a cable, for example.
 近年、ロボットやFA(Factory Automation)システムは、センサ(例えば角度センサや、触覚センサ、力センサ、近接センサ、振動センサ等)や、モータ等のアクチュエータ、その周辺回路(例えばドライバや、電流センサ、温度センサ、エンコーダ回路等)、各種処理を行うMPU(Micro・Processor・Unit)、メイン計算機等の多種多様なデバイスから構成されている。このようなロボットやFAシステムでは、相互にデータ交換や指令値を送る必要があるため、実時間通信ネットワークで結合することが有用である(例えば、特許文献1参照)。 In recent years, robots and FA (Factory Automation) systems have been using sensors (eg, angle sensors, tactile sensors, force sensors, proximity sensors, vibration sensors, etc.), actuators such as motors, and peripheral circuits (eg, drivers, current sensors, Temperature sensor, encoder circuit, etc.), MPU (Micro / Processor / Unit) for performing various processes, and a main computer. In such robots and FA systems, it is necessary to exchange data and send command values to each other, so it is useful to combine them with a real-time communication network (see, for example, Patent Document 1).
 そして、近年では、組み立て製品が小型複雑化していることや、人間の手指で扱う物体が、ロボットやFAシステムの取り扱う操作対象物となる場合も多いことから、ロボットやFAシステムについても小型化が要望されている。さらにこれらロボットやFAシステムは、人間の手指・手首・上腕を模したような装置となり、多種多様なモータやセンサ類が非常に多く搭載されている。そのため、センサ周辺回路や、モータ駆動回路、データ処理用MPUの回路、通信回路等の内蔵される電子回路系も、従来に比して大幅な小型化が要望されている。 In recent years, assembly products have become smaller and more complicated, and objects handled by human fingers are often objects to be handled by robots and FA systems. It is requested. Furthermore, these robots and FA systems are devices that mimic human fingers, wrists, and upper arms, and are equipped with a great variety of motors and sensors. For this reason, the sensor circuit, the motor drive circuit, the data processing MPU circuit, the communication circuit, and other built-in electronic circuit systems are also required to be greatly reduced in size as compared with the prior art.
特開2000-228677号公報JP 2000-228677 A
 しかしながら、このようなロボットやFAシステム(以下、これらをまとめて単にロボットと呼ぶ)では、ロボットが取り扱う操作対象物や、ロボット自体の重量やサイズが小型化されると、必然的にデータ送受信時における物理的な応答周波数も高くなり、扱うセンサ信号やサーボ系の周波数帯域が、従来のロボット等に比べて一桁以上高く設定する必要があるという問題が生じる。そのため、このようなロボット等に用いられる通信システムでは、従来よりも高速周期でのデータ交換が行われることが望まれている。そして、ロボットやFAシステムでは、例えば小型高速回転型モータの制御や、振動センサ、加速度センサ等からのデータを用いていることが多いことから、この傾向が顕著である。 However, in such robots and FA systems (hereinafter collectively referred to simply as robots), if the object to be handled by the robot or the weight or size of the robot itself is reduced, data transmission / reception will inevitably occur. As a result, the sensor response and servo system frequency band to be handled need to be set at least one digit higher than those of conventional robots. Therefore, in a communication system used for such a robot or the like, it is desired that data exchange be performed at a higher cycle than in the past. In robots and FA systems, for example, this tendency is remarkable because, for example, control of a small high-speed rotary motor, data from a vibration sensor, an acceleration sensor, and the like are often used.
 そこで、本発明は以上の点を考慮してなされたもので、従来よりも遅延を小さくさせて効率良くパケットを送受信できる通信ノード及び通信システムを提案することを目的とする。 Therefore, the present invention has been made in consideration of the above points, and an object of the present invention is to propose a communication node and a communication system that can efficiently transmit and receive packets with a smaller delay than conventional ones.
 かかる課題を解決するため本発明の請求項1は、パケットのアドレス領域に続いてウェイト領域が外部から入力される入力手段と、前記アドレス領域を前記外部へ出力させているとき、又は前記アドレス領域に続いて前記ウェイト領域を前記外部へ出力させているときに、前記パケットに付加されたアドレスと、予め自己に設定されている自己アドレスとが一致又は不一致であるかを判断するアドレス照合手段と、前記アドレス照合手段により前記パケットのアドレスと前記自己アドレスとが一致すると判断されたとき、前記ウェイト領域に続いて入力される受信データを取得するパケット取得手段と、前記アドレス照合手段により前記パケットのアドレスと前記自己アドレスとが一致すると判断されたときには、前記ウェイト領域を外部に出力し終えた直後に、送出手段に予め記憶されている自己データを前記ウェイト領域の終端に付加して外部へ出力させ、前記アドレス照合手段により前記パケットのアドレスと前記自己アドレスとが不一致であると判断されたときには、前記アドレス領域及び前記ウェイト領域に続いてそのまま前記受信データを外部へ出力させる切替手段とを備えることを特徴とするものである。 In order to solve this problem, claim 1 of the present invention provides an input means for inputting a wait area from the outside following an address area of a packet, and outputting the address area to the outside, or the address area An address verification means for determining whether the address added to the packet matches or does not match with the self address set in advance when the wait area is output to the outside. When the address matching means determines that the address of the packet and the self address match, the packet acquisition means for acquiring received data input subsequent to the wait area; and When it is determined that the address matches the self address, the wait area is Immediately after the output, self data stored in advance in the sending means is added to the end of the wait area and output to the outside, and the address of the packet does not match the self address by the address checking means. And switching means for outputting the received data to the outside as it is after the address area and the wait area.
 また、本発明の請求項2は、前記アドレス照合手段と前記パケット取得手段と前記自己データを記憶する前記送出手段とを備えた複数のスレーブと、前記入力手段に入力された前記パケットを各前記スレーブにそれぞれ伝えることが可能な前記切替手段とを備え、前記切替手段は、前記複数のスレーブのうち、前記アドレス照合手段により前記パケットのアドレスと前記自己アドレスとが一致すると判断したスレーブが存在するときには、該スレーブから前記自己データを受け取ることを特徴とするものである。 According to a second aspect of the present invention, there is provided a plurality of slaves each including the address matching unit, the packet acquisition unit, and the sending unit that stores the self-data, and the packet input to the input unit. The switching means capable of transmitting to each slave, and the switching means includes a slave determined by the address matching means that the address of the packet and the self-address match among the plurality of slaves. In some cases, the self data is received from the slave.
 また、本発明の請求項3は、前記外部へ現在出力中の前記パケットのうち、前記外部へ出力中または既に出力し終えた送り先を示す送り先アドレスが、出力手段に接続されている経路を経由して帰還アドレスとして帰還すると、前記送り先アドレスと前記帰還アドレスとが一致又は不一致であるかを判断し、前記送り先アドレスと前記帰還アドレスとが不一致であると判断したときには、前記現在出力中の前記パケットの出力を途中で中断させ、再び先頭から該パケットを前記外部へ出力させる再送手段を備えることを特徴とするものである。 According to a third aspect of the present invention, among the packets currently being output to the outside, a destination address indicating a destination that is being output to the outside or has already been output is routed through a route connected to the output means. When the feedback address is returned, it is determined whether the destination address and the feedback address match or do not match, and when it is determined that the destination address and the feedback address do not match, the current output It is characterized by comprising retransmission means for interrupting packet output in the middle and outputting the packet to the outside again from the beginning.
 また、本発明の請求項4は、前記アドレス照合手段と前記パケット取得手段とを備えた複数のスレーブと、各前記スレーブと外部デバイスとを接続する切替入出力手段とを備え、前記切替入出力手段は、前記自己データとなるデータを前記外部デバイスから受け取り、該データの種類に応じて各前記スレーブのいずれかを選択して該スレーブに該データを伝送することを特徴とするものである。 According to a fourth aspect of the present invention, there is provided a plurality of slaves including the address matching unit and the packet acquisition unit, and a switching input / output unit that connects each of the slaves to an external device. The means is characterized by receiving data as the self data from the external device, selecting one of the slaves according to the type of the data, and transmitting the data to the slave.
 また、本発明の請求項5は、前記アドレス照合手段と前記パケット取得手段とを備えたスレーブと、前記スレーブと外部デバイスとを接続する複数の入出力手段とを備え、前記スレーブは、前記受信データの種類に応じて複数の前記入出力手段のいずれかを選択して該入出力手段に該受信データを伝送することを特徴とするものである。 According to a fifth aspect of the present invention, the apparatus includes a slave including the address matching unit and the packet acquisition unit, and a plurality of input / output units that connect the slave to an external device. One of the plurality of input / output means is selected in accordance with the type of data, and the received data is transmitted to the input / output means.
 また、本発明の請求項6は、各前記スレーブと外部デバイスとを接続する切替入出力手段を備え、前記切替入出力手段は、前記自己データとなるデータを前記外部デバイスから受け取り、該データの種類に応じて各前記スレーブのいずれかを選択して該スレーブに該データを伝送することを特徴とするものである。 According to a sixth aspect of the present invention, there is provided switching input / output means for connecting each of the slaves and an external device, and the switching input / output means receives data as the self data from the external device, and One of the slaves is selected according to the type, and the data is transmitted to the slave.
 また、本発明の請求項7は、前記スレーブのうち少なくとも1つは、外部デバイスと複数の入出力手段を介して接続されており、前記受信データの種類に応じて複数の前記入出力手段のいずれかを選択して該入出力手段に該受信データを伝送することを特徴とするものである。 According to a seventh aspect of the present invention, at least one of the slaves is connected to an external device via a plurality of input / output means, and a plurality of the input / output means are provided according to the type of the received data. Any one of them is selected and the received data is transmitted to the input / output means.
 また、本発明の請求項8は、請求項1~7のうちいずれか1項記載の通信ノードが伝送路に接続されおり、前記パケットが複数の前記通信ノードを巡回することを特徴とするものである。 An eighth aspect of the present invention is characterized in that the communication node according to any one of the first to seventh aspects is connected to a transmission path, and the packet circulates a plurality of the communication nodes. It is.
 本発明の請求項1の通信ノード、請求項8の通信システムによれば、ウェイト領域を出力させているときに、アドレス照合手段によるアドレス照合と、データ交換とを行うことにより、入力してきたパケットとデータ交換する場合にも、単純にパケットを転送する場合と同等の遅延時間で効率良くパケットを送受信できる。 According to the communication node of claim 1 and the communication system of claim 8 of the present invention, when the wait area is output, the packet received by performing address verification by the address verification means and data exchange Even when exchanging data, it is possible to efficiently transmit and receive packets with a delay time equivalent to that when simply transferring packets.
本発明における通信システムの全体構成を示す概略図である。It is the schematic which shows the whole structure of the communication system in this invention. スレーブの回路構成を示すブロック図である。It is a block diagram which shows the circuit structure of a slave. パケットが他のスレーブ宛のときのスレーブにおける送受信処理の説明に供する概略図である。It is the schematic where it uses for description of the transmission / reception process in the slave when a packet is addressed to another slave. パケットが自己スレーブ宛のときのスレーブにおけるデータの送受信処理の説明に供する概略図である。It is the schematic where it uses for description of the transmission / reception process of the data in a slave when a packet is addressed to a self-slave. 従来のスレーブノード及び外部デバイスの回路構成(1)を示すブロック図である。It is a block diagram which shows the circuit structure (1) of the conventional slave node and an external device. 従来のスレーブノード及び外部デバイスの回路構成(2)を示すブロック図である。It is a block diagram which shows the circuit structure (2) of the conventional slave node and an external device. 本発明によるスレーブノード及び外部デバイスの回路構成を示すブロック図である。It is a block diagram which shows the circuit structure of the slave node by this invention, and an external device. 従来の通信システムの回路構成を示すブロック図である。It is a block diagram which shows the circuit structure of the conventional communication system. 本発明による低遅延の通信ノードから構成された通信システムの回路構成を示すブロック図である。It is a block diagram which shows the circuit structure of the communication system comprised from the communication node of the low delay by this invention. 他の実施の形態による通信システムの全体構成を示す概略図である。It is the schematic which shows the whole structure of the communication system by other embodiment. スレーブノードの回路構成を示すブロック図である。It is a block diagram which shows the circuit structure of a slave node. リピータ方式を用いた切替手段の回路構成を示すブロック図である。It is a block diagram which shows the circuit structure of the switching means using a repeater system.
 1 通信システム
 2a マスターノード(通信ノード)
 2b~2j スレーブノード(通信ノード)
 4 外部デバイス
 10a~10c スレーブ
 11a,11b IO(入出力手段)
 12 切替IO(切替入出力手段)
 15 アドレス照合手段(再送手段)
 21,93 切替手段
 22 アドレス照合手段
 23 入力手段
 24 パケット取得手段
 25 送出手段
 26 出力手段
 30 転送手段
1 Communication system 2a Master node (communication node)
2b-2j Slave node (communication node)
4 External devices 10a to 10c Slave 11a, 11b IO (input / output means)
12 Switching IO (Switching input / output means)
15 Address verification means (retransmission means)
21,93 Switching means 22 Address matching means 23 Input means 24 Packet acquisition means 25 Sending means 26 Output means 30 Transfer means
 以下図面に基づいて本発明の実施の形態を詳述する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
 (1)通信システムの概要
 図1において、1は通信システムを示し、複数の通信ノード2a~2jが伝送路3によりリング状に接続された構成を有する。通信システム1は、通信ノード2a~2jのうち1つ或いは複数がマスターノードであり、他の通信ノードがスレーブノードとして機能し得るようになされている。マスターノードは、固定された通信ノードとしてもよく、または、必要に応じて送信権(トークン)の受け渡しが通信ノード2a~2j間で行われ、複数の通信ノード2a~2jのうちいずれか1つ或いは複数の通信ノードが送信権をもつことで、マスターノードとして機能させるようにしてもよい。
(1) Overview of Communication System In FIG. 1, reference numeral 1 denotes a communication system having a configuration in which a plurality of communication nodes 2a to 2j are connected by a transmission line 3 in a ring shape. In the communication system 1, one or more of the communication nodes 2a to 2j are master nodes, and the other communication nodes can function as slave nodes. The master node may be a fixed communication node, or a transmission right (token) is transferred between the communication nodes 2a to 2j as necessary, and any one of the plurality of communication nodes 2a to 2j is used. Alternatively, a plurality of communication nodes may have a transmission right to function as a master node.
 因みに、この実施の形態の場合は、通信ノード2aのみが送信権をもったマスターノードとして機能し(以下、通信ノード2aをマスターノード2aと呼ぶ)、他の残り全ての通信ノード2b~2jがスレーブノード(以下、通信ノード2b~2jをスレーブノード2b~2jと呼ぶ)として機能する場合について以下説明する。また、この実施の形態では、本発明による通信システム1を例えばロボットに適用した場合について説明し、当該ロボットの手や足等のように複数のモータやセンサ等が密集した外部デバイスに対してスレーブノード2b~2jが設けられているとする。なお、ここでは、複数のモータ6a,6bと複数のセンサ7a,7bとこれらセンサ7a,7bに接続されたAD変換部8を備える外部デバイス4だけを図示し、この外部デバイス4について着目して以下説明する。 Incidentally, in the case of this embodiment, only the communication node 2a functions as a master node having the transmission right (hereinafter, the communication node 2a is called the master node 2a), and all the other communication nodes 2b to 2j are A case of functioning as a slave node (hereinafter, communication nodes 2b to 2j are called slave nodes 2b to 2j) will be described below. Further, in this embodiment, the case where the communication system 1 according to the present invention is applied to, for example, a robot is described, and a slave is connected to an external device in which a plurality of motors, sensors, and the like are densely arranged, such as hands and feet of the robot. Assume that nodes 2b to 2j are provided. Here, only the external device 4 including a plurality of motors 6a and 6b, a plurality of sensors 7a and 7b, and an AD conversion unit 8 connected to the sensors 7a and 7b is illustrated, and attention is paid to the external device 4. This will be described below.
 この場合、通信システム1では、初めにマスターノード2aから伝送信号が送信され、この伝送信号が伝送路3に沿って全てのスレーブノード2b~2jを順次通過してゆき、環状に接続されたスレーブノード2b~2jを一定方向に周回して再びマスターノード2aに戻ってくる構成を有する。このように、通信システム1では、マスターノード2aから送信された伝送信号が、複数のスレーブノード2b~2jが設けられた伝送路3上を高速周期で周回し得るようになされている。なお、スレーブノード2b~2jは全て同一の構成を有することから、以下、そのうち外部デバイス4が接続され、複数のスレーブ10a~10cを備えたスレーブノード2dに着目して説明する。 In this case, in the communication system 1, a transmission signal is first transmitted from the master node 2a, and this transmission signal sequentially passes through all the slave nodes 2b to 2j along the transmission path 3, and is connected in a ring shape. The nodes 2b to 2j go around in a certain direction and return to the master node 2a again. As described above, in the communication system 1, the transmission signal transmitted from the master node 2a can circulate at high speed on the transmission line 3 provided with the plurality of slave nodes 2b to 2j. Since all the slave nodes 2b to 2j have the same configuration, the following description will be given focusing on the slave node 2d having the plurality of slaves 10a to 10c to which the external device 4 is connected.
 この際、マスターノード2aは、例えば所定のモータ6aに接続されたスレーブ10aを示すアドレスと、当該モータ6aに対する指令値を示したデータ0とをパケットPに付加し、当該パケットPを伝送信号として送信する。スレーブノード2dのスレーブ10aは、通常は伝送信号をスレーブ10bに転送しており、パケットPが到達すると、パケットPに付加されたアドレスを取得し、このアドレスを基に自己宛のパケットPであるか否かを判断し得るようになされている。その結果、スレーブ10aは、パケットPが他のスレーブ宛だと判断する場合は、パケットPをそのまま伝送信号として次のスレーブ10bに転送し続ける。 At this time, the master node 2a adds, for example, an address indicating the slave 10a connected to the predetermined motor 6a and data 0 indicating a command value for the motor 6a to the packet P, and uses the packet P as a transmission signal. Send. The slave 10a of the slave node 2d normally transfers the transmission signal to the slave 10b. When the packet P arrives, the slave 10a acquires the address added to the packet P, and is the packet P addressed to itself based on this address. Whether or not it can be judged. As a result, when the slave 10a determines that the packet P is addressed to another slave, the slave 10a continues to transfer the packet P as it is to the next slave 10b as a transmission signal.
 一方、スレーブ10aは、パケットPが自己宛だと判断すると、パケットPに付加されたデータ0を取得すると供に、これと同時に当該モータ6aの電流値を示したデータ1をデータ0の換わりにパケットPに付加し、このパケットPを伝送信号として送信し、下流のスレーブ10b,10cやスレーブノード2e~2jを一巡させてマスターノード2aに受信させ得る。マスターノード2aは、スレーブノード2b~2jを周回してきた伝送信号を受信すると、パケットPに付加されたデータ1を取得し得るようになされている。 On the other hand, when determining that the packet P is addressed to the slave 10a, the slave 10a obtains the data 0 added to the packet P, and at the same time, replaces the data 1 indicating the current value of the motor 6a with the data 0. It is added to the packet P, this packet P is transmitted as a transmission signal, and the downstream slaves 10b and 10c and the slave nodes 2e to 2j can make a round and be received by the master node 2a. The master node 2a can acquire the data 1 added to the packet P when receiving the transmission signal that has circulated around the slave nodes 2b to 2j.
 実際上、このスレーブノード2dには、複数のスレーブ10a~10cと、各スレーブ10a,10bに対応するモータ6a,6bを接続させる複数のIO(Input/Output)11a,11bと、何れかのスレーブ10a~10cに接続切り替え可能に構成され、AD変換部8から取得したデータ1を所定のスレーブ10aへ振り分ける切替機能が付いた入出力手段としてのIO(以下、これを切替IOと呼ぶ)12とが設けられている。 In practice, the slave node 2d includes a plurality of slaves 10a to 10c, a plurality of IOs (Input / Output) 11a and 11b for connecting the motors 6a and 6b corresponding to the slaves 10a and 10b, and any one of the slaves. An IO (hereinafter referred to as a switching IO) 12 serving as an input / output means that is configured to be switchable between 10a to 10c and has a switching function for distributing the data 1 acquired from the AD conversion unit 8 to a predetermined slave 10a. Is provided.
 スレーブ10aは、パケットPに付加されたデータ0を取得すると、これをIO11aを介してモータ6aに伝達し得るようになされている。これによりモータ6aは、データ0に基づいて制御され得るようになされている。 When the slave 10a acquires the data 0 added to the packet P, the slave 10a can transmit this to the motor 6a via the IO 11a. Accordingly, the motor 6a can be controlled based on the data 0.
 因みに、上述した実施の形態においては、パケットPに付加されたデータ0をスレーブ10aが取得してこれをIO11aに出力しているが、本発明はこれに限らず、スレーブ10aが取得したデータ0を、任意のタイミングでIO11aが取得するようにしてもよい。なお、このモータ6aは、センサ7aが接続されており、当該センサ7aによって例えばモータの電流値が検知されている。センサ7aによって検知された電流値は、AD変換部8によりデジタル化され、これをデータ1として切替IO12に伝達されて当該切替IO12から所定のスレーブ10aに振り分けられるようになされている。 Incidentally, in the embodiment described above, the slave 10a acquires the data 0 added to the packet P and outputs it to the IO 11a. However, the present invention is not limited to this, and the data 0 acquired by the slave 10a. May be acquired by the IO 11a at an arbitrary timing. The motor 6a is connected to a sensor 7a, and the current value of the motor is detected by the sensor 7a, for example. The current value detected by the sensor 7a is digitized by the AD conversion unit 8, and this is transmitted as data 1 to the switching IO 12 and distributed from the switching IO 12 to a predetermined slave 10a.
 ここで、本発明による通信システム1は、各スレーブ10a~10cにおいてパケットPを取得する際に所定の送受信処理(後述する)を行う点と、マスターノード2aにおいてアドレス照合手段15により照合したアドレス照合結果に基づき再送処理(後述する)を行う点と、切替IO12がAD変換部8から取得したデータ1に応じて受け渡し先のスレーブ10a~10cを切り替える切替処理を行える点に特徴がある。そして、本発明による通信システム1では、所定の送受信処理によりスレーブ10a~10cを含むすべてのスレーブにおいて遅延を小さくさせることで各スレーブは自己宛てのパケットPを効率よく取得させ得るようになされており、またマスターノード2aも自身が送信したパケットPを短時間のうちに受信することができるため、マスターノード2aにおいてパケット破損時におけるパケットPの再出力に必要な再送処理のための時間の短縮化が図られている。また、この通信システム1では、スレーブ10a~10cを含む全てのスレーブで遅延を小さくさせることで各スレーブに効率良く自己宛のパケットPを取得させつつ、切替IO12による切替処理によりモータ6a,6bとセンサ7a,7bの対応をとることで通信周期の高速化および外部デバイス4の小型化を図るようになされている。 Here, the communication system 1 according to the present invention performs a predetermined transmission / reception process (described later) when acquiring the packet P in each of the slaves 10a to 10c, and an address verification that is verified by the address verification means 15 in the master node 2a. It is characterized in that retransmission processing (to be described later) is performed based on the result, and switching processing in which the switching IO 12 switches the delivery destination slaves 10a to 10c in accordance with the data 1 acquired from the AD conversion unit 8. In the communication system 1 according to the present invention, the delay is reduced in all the slaves including the slaves 10a to 10c by a predetermined transmission / reception process so that each slave can efficiently acquire the packet P addressed to itself. In addition, since the master node 2a can also receive the packet P transmitted by itself within a short time, the master node 2a can shorten the time required for retransmission processing necessary for re-output of the packet P when the packet is damaged. Is planned. Further, in this communication system 1, by reducing the delay in all the slaves including the slaves 10a to 10c, each of the slaves efficiently acquires the packet P addressed to itself, and the motors 6a, 6b and By taking the correspondence of the sensors 7a and 7b, the communication cycle is speeded up and the external device 4 is downsized.
 (2)スレーブにおける送受信処理
 本発明においてマスターノード2aで生成されるパケットPは、例えばスレーブ10aを示すアドレスが付加されるアドレス領域ADと、予め定められた所定ビット数のウェイト領域Wと、マスターノード2aからのデータ0又は外部デバイス4から受け取ったデータ1の何れかが付加されるデータ領域DTと、データエラー検出用のチェックコードを示すCRC(Cyclic  Redundancy Check)(図示せず)とからなり、アドレス領域ADを先頭にして、続いてウェイト領域W、データ領域DT及びCRCの順に生成され得る。なお、この実施の形態の場合では、本発明による送受信処理と関係のないCRCについての説明は省略し、以下、アドレス領域AD、ウェイト領域W及びデータ領域DTについて着目して説明する。
(2) Transmission / Reception Processing in Slave In the present invention, a packet P generated by the master node 2a includes, for example, an address area AD to which an address indicating the slave 10a is added, a wait area W having a predetermined number of bits, a master It consists of a data area DT to which either data 0 from the node 2a or data 1 received from the external device 4 is added, and a CRC (Cyclic Redundancy Check) (not shown) indicating a check code for detecting a data error. The address area AD can be generated first, followed by the wait area W, the data area DT, and the CRC. In the case of this embodiment, description of CRC not related to transmission / reception processing according to the present invention is omitted, and description will be made focusing on address area AD, wait area W, and data area DT.
 スレーブノード2dは、マスターノード2aで生成されたパケットPを伝送信号として上流のスレーブノード2cからスレーブ10aが受信し得る。スレーブ10aは、切替手段21によって、上流のスレーブノード2cから受け取ったパケットPをそのまま下流のスレーブ10bに転送し得るように構成されており、単なるパケットPの転送を行うことで、パケットPを取得してから下流のスレーブ10bへ出力する際に遅延の発生を小さくすることができる。 The slave node 2d can be received by the slave 10a from the upstream slave node 2c using the packet P generated by the master node 2a as a transmission signal. The slave 10a is configured to be able to transfer the packet P received from the upstream slave node 2c as it is to the downstream slave 10b by the switching means 21, and acquires the packet P by simply transferring the packet P. Then, the delay can be reduced when the data is output to the downstream slave 10b.
 この際、スレーブ10aは、パケットPのウェイト領域Wを転送しているとき、アドレス領域ADに付加されたアドレスの照合をアドレス照合手段22により行い、アドレスが自分宛だった場合には、パケットPのデータ0を取得すると供に、予めバッファに記憶しておいたデータ1をウェイト領域Wの後に付加し、パケットPのデータ領域DTの内容がデータ0からデータ1に変更されたものを下流のスレーブ10bが受け取り得るようになされている。 At this time, when the slave 10a transfers the wait area W of the packet P, the slave 10a collates the address added to the address area AD by the address collating means 22, and if the address is addressed to itself, the slave 10a Data 0 stored in the buffer is added after the wait area W, and the contents of the data area DT of the packet P changed from data 0 to data 1 downstream The slave 10b can receive it.
 実際上、図2に示すように、スレーブ10aは、上流のスレーブノード2cからパケットPが入力される入力手段23と、スレーブ10a内においてパケットPの通過経路を切り替える切替手段21と、パケットPを取り込むパケット取得手段24と、パケットPのアドレス領域ADに付されたアドレスと、予め設定されている自己アドレスとを照合するアドレス照合手段22と、マスターノード2aへ送るデータ1を記憶する送出手段25と、切替手段21に入力されたパケットPを下流のスレーブ10bに出力する出力手段26とを備えており、切替手段21には転送手段30と経路選択手段31とが設けられている。 In practice, as shown in FIG. 2, the slave 10a has an input means 23 to which the packet P is input from the upstream slave node 2c, a switching means 21 for switching the passage route of the packet P in the slave 10a, and a packet P. The packet acquisition means 24 to be fetched, the address collating means 22 for collating the address assigned to the address area AD of the packet P with the preset self address, and the sending means 25 for storing the data 1 to be sent to the master node 2a And an output means 26 for outputting the packet P input to the switching means 21 to the downstream slave 10b. The switching means 21 is provided with a transfer means 30 and a route selection means 31.
 切替手段21の経路選択手段31は、転送手段30又は送出手段25のいずれか一方と、出力手段26とを接続可能に構成されており、マスターノード2aからパケット出力前に出力されているアイドル信号を認識すると、出力手段26を転送手段30に接続させた転送状態となり得る。経路選択手段31は、パケット取得手段24によりパケットPを取得すると、当該パケットPのアドレス領域ADに付加されたアドレスの照合結果に応じて出力手段26の接続先を転送手段30から送出手段25に切り替える。 The route selection unit 31 of the switching unit 21 is configured to be able to connect either the transfer unit 30 or the transmission unit 25 and the output unit 26, and is an idle signal output before the packet output from the master node 2a. Can be brought into a transfer state in which the output means 26 is connected to the transfer means 30. When the packet acquisition unit 24 acquires the packet P, the route selection unit 31 changes the connection destination of the output unit 26 from the transfer unit 30 to the transmission unit 25 according to the collation result of the address added to the address area AD of the packet P. Switch.
 実際上、経路選択手段31は、アドレス領域ADに付加されたアドレスが他のスレーブ宛の場合、出力手段26と転送手段30とを接続し続け、データ領域DTにデータ0が付加されたパケットPを出力手段26から伝送信号として出力し得る。これに対して、経路選択手段31は、アドレス領域ADに付加されたアドレスが自己スレーブ宛の場合、出力手段26からパケットPのウェイト領域Wを伝送信号として出力している際に、出力手段26の接続先を送出手段25に切り替えることにより、データ0の替わりに新たにデータ1を付加したデータ領域DTをウェイト領域Wの直後に追加してこれを出力手段26から伝送信号として出力し得るようになされている。 In practice, the route selection means 31 continues to connect the output means 26 and the transfer means 30 when the address added to the address area AD is addressed to another slave, and the packet P with the data 0 added to the data area DT. Can be output from the output means 26 as a transmission signal. On the other hand, when the address added to the address area AD is addressed to the own slave, the path selection means 31 outputs the wait area W of the packet P from the output means 26 as a transmission signal. By switching the connection destination to the sending means 25, a data area DT newly added with data 1 instead of data 0 can be added immediately after the wait area W and output from the output means 26 as a transmission signal. Has been made.
 (2-1)パケットが他のスレーブ宛の場合
 スレーブ10aは、上流のスレーブノード2cからの伝送信号が入力手段23に到達すると、当該伝送信号を転送手段30に送出する。転送手段30は、入力手段23に入力されたパケットPの内容を順次2つに分配し、同じ内容の2つのパケットPを生成してゆき、一方のパケットPをパケット取得手段24に送出すると供に、他方のパケットを経路選択手段31に送出する。
(2-1) When the packet is addressed to another slave When the transmission signal from the upstream slave node 2c reaches the input means 23, the slave 10a sends the transmission signal to the transfer means 30. The transfer means 30 sequentially distributes the contents of the packet P input to the input means 23 into two, generates two packets P with the same contents, and sends one packet P to the packet acquisition means 24. The other packet is sent to the route selection means 31.
 ここで、経路選択手段31は、パケットPを受け取る前に出力手段26が予め転送手段30に接続されていることにより、転送手段30から受け取っているアドレス領域AD及びウェイト領域Wをそのまま通過させ、当該アドレス領域AD及びウェイト領域Wを伝送信号として出力手段26から下流のスレーブ10bへ出力させてゆく。 Here, the route selection means 31 passes the address area AD and the wait area W received from the transfer means 30 as they are, because the output means 26 is connected to the transfer means 30 in advance before receiving the packet P, The address area AD and wait area W are output as transmission signals from the output means 26 to the downstream slave 10b.
 このとき同時にパケット取得手段24は、転送手段30からパケットPを取得しており、取得したパケットPを一時的に記憶してゆく。アドレス照合手段22は、パケット取得手段24に記憶したパケットPのうちアドレス領域ADを受け取り終えたか否かを判断しており、当該アドレス領域ADを受け取り終えると、アドレス領域ADに付加されたアドレスと、予め設定されている自己アドレスとを照合し得るようになされている。 At the same time, the packet acquisition unit 24 acquires the packet P from the transfer unit 30 and temporarily stores the acquired packet P. The address verification means 22 determines whether or not the address area AD has been received from the packet P stored in the packet acquisition means 24. When the address area AD has been received, the address verification means 22 The self address set in advance can be collated.
 アドレス照合手段22は、アドレス領域ADに付加されたアドレスが自己アドレスと不一致であると判断した場合、パケットPが他のスレーブ宛であるとして、経路選択手段31において出力手段26を転送手段30に接続させ続ける。これによりスレーブ10aは、図3に示すように、入力手段23に入力されたパケットPのアドレス領域ADと、ウェイト領域Wと、データ0が付加されているデータ領域DTとを、経路選択手段31を経由させて伝送信号としてそのまま出力手段26から出力させてゆき、下流のスレーブ10bに転送し得る。 If the address verification means 22 determines that the address added to the address area AD does not match the self address, the path selection means 31 sends the output means 26 to the transfer means 30 assuming that the packet P is addressed to another slave. Keep connecting. As a result, as shown in FIG. 3, the slave 10a converts the address area AD of the packet P input to the input means 23, the wait area W, and the data area DT to which data 0 is added into the path selection means 31. Can be output as it is as a transmission signal from the output means 26 and transferred to the downstream slave 10b.
 このようにスレーブ10aでは、先頭のアドレス領域ADをそのまま出力手段26から出力した後、ウェイト領域Wを出力手段26から出力させている間に、パケットPのアドレス領域ADに付加されたアドレスと、自己アドレスとを照合することができる。なお、アドレス取得手段22は、転送手段30から受け取ったアドレス領域AD、ウェイト領域W及びデータ領域DTについて破棄し、次のパケットPが転送手段30から送られてくるのを待ち受ける。 As described above, in the slave 10a, after the head address area AD is output from the output means 26 as it is, the address added to the address area AD of the packet P while the wait area W is being output from the output means 26, The self address can be verified. The address acquisition unit 22 discards the address area AD, the wait area W, and the data area DT received from the transfer unit 30, and waits for the next packet P to be sent from the transfer unit 30.
 (2-2)パケットが自己スレーブ宛の場合
 次に、アドレス領域ADに付加されたアドレスが自己スレーブ宛の場合について以下説明する。この場合、上述と同様に、スレーブ10aは、上流のスレーブノード2cからの伝送信号が入力手段23に入力されると、当該伝送信号を転送手段30に送出する。転送手段30は、入力手段23に入力されたパケットPの内容を順次2つに分配し、同じ内容の2つのパケットPを生成してゆき、一方のパケットPをパケット取得手段24に送出すると供に、他方のパケットPを経路選択手段31に送出する。
(2-2) Case where Packet is Addressed to Self-Slave Next, the case where the address added to the address area AD is addressed to the self-slave will be described below. In this case, as described above, when the transmission signal from the upstream slave node 2c is input to the input unit 23, the slave 10a transmits the transmission signal to the transfer unit 30. The transfer means 30 sequentially distributes the contents of the packet P input to the input means 23 into two, generates two packets P with the same contents, and sends one packet P to the packet acquisition means 24. The other packet P is sent to the route selection means 31.
 ここで、経路選択手段31は、パケットPを受け取る前にアイドル信号を基に出力手段26が予め転送手段30に接続されていることにより、転送手段30から受け取っているアドレス領域AD及びウェイト領域Wをそのまま通過させ、当該アドレス領域AD及びウェイト領域Wを伝送信号として出力手段26から下流のスレーブ10bへ出力させてゆく。 Here, before receiving the packet P, the route selection means 31 is connected to the transfer means 30 in advance based on the idle signal, so that the address area AD and the wait area W received from the transfer means 30 And the address area AD and wait area W are output as transmission signals from the output means 26 to the downstream slave 10b.
 このとき同時にパケット取得手段24は、転送手段30からパケットPを受け取っており、受け取ったパケットPを一時的に記憶してゆく。アドレス照合手段22は、パケット取得手段24において取得したアドレス領域ADのアドレスと、自己アドレスとを照合した結果、アドレス領域ADのアドレスが自己アドレスと一致すると判断した場合、パケットPが自己スレーブ宛であるとして、経路選択手段31に切替信号を送出する。これにより経路選択手段31は、図4(A)に示すように、出力手段26の接続先を転送手段30から送出手段25に切り替える。スレーブ10aは、図4(B)に示すように、送出手段25に記憶されているデータ1を読み出してデータ領域DTに付加し、当該データ領域DTをウェイト領域Wの終端に追加して、これを伝送信号として出力手段26から出力してゆき、下流のスレーブ10bに送出し得るようになされている。 At the same time, the packet acquisition unit 24 receives the packet P from the transfer unit 30 and temporarily stores the received packet P. If the address matching means 22 determines that the address of the address area AD matches the self address as a result of matching the address of the address area AD acquired by the packet acquiring means 24 with the self address, the packet P is addressed to the self slave. If there is, a switching signal is sent to the route selection means 31. As a result, the route selection means 31 switches the connection destination of the output means 26 from the transfer means 30 to the sending means 25 as shown in FIG. As shown in FIG. 4B, the slave 10a reads the data 1 stored in the sending means 25, adds it to the data area DT, adds the data area DT to the end of the wait area W, Can be output from the output means 26 as a transmission signal and sent to the downstream slave 10b.
 実際上、この実施の形態の場合、アドレス照合手段22は、アドレス領域ADに付加されたアドレスが自己アドレスと一致したと判断した場合、アドレス領域ADの終端から予め定められた所定ビット数までを、パケット取得手段24で取得したことを認識すると、この箇所をウェイト領域Wの終端と判断し、送出手段25にデータ付加命令を送出する。これにより送出手段25は、データ付加命令に基づいて、自己データとしてのデータ1を経路選択手段31に送出し、ウェイト領域Wの終端となる箇所にデータ1を追加する。経路選択手段31は、ウェイト領域Wの終端の直後に追加したデータ1のデータ領域DTを伝送信号として出力手段26から出力し得るようになされている。 In practice, in the case of this embodiment, when the address matching means 22 determines that the address added to the address area AD matches the self address, the address matching means 22 extends from the end of the address area AD to a predetermined number of bits. When the packet acquisition means 24 recognizes that it has been acquired, this position is determined as the end of the wait area W, and a data addition command is sent to the sending means 25. As a result, the sending means 25 sends the data 1 as its own data to the route selection means 31 based on the data addition command, and adds the data 1 to the location that is the end of the wait area W. The route selection means 31 can output the data area DT of the data 1 added immediately after the end of the weight area W from the output means 26 as a transmission signal.
 因みに、経路選択手段31は、出力手段26の接続経路が送出手段25に切り替えられた際、転送手段30からのウェイト領域Wの転送が中断される。そこで、経路選択手段31は、アドレス領域ADの終端から予め定められた所定ビット数までウェイト領域Wに相当する伝送信号を生成し、これをウェイト領域Wの転送が中断した時点から出力手段26に出力し続ける。なお、ウェイト領域Wのデータが変更され得るように伝送信号を生成する実装もあり得る。 Incidentally, when the connection route of the output means 26 is switched to the sending means 25, the route selection means 31 interrupts the transfer of the wait area W from the transfer means 30. Therefore, the route selection means 31 generates a transmission signal corresponding to the wait area W from the end of the address area AD to a predetermined number of bits, and outputs it to the output means 26 from the time when the transfer of the wait area W is interrupted. Continue to output. There may be an implementation that generates a transmission signal so that data in the weight region W can be changed.
 なお、上述した実施の形態においては、アドレス領域ADに付加されたアドレスが自己アドレスと一致すると、送出手段25から経路選択手段31へのデータ1の送出タイミングを調整することで、ウェイト領域Wの終端にデータ1を追加するようにした場合について述べたが、本発明はこれに限らず、ウェイト領域Wの終端が経路選択手段31を通過する際に、当該ウェイト領域Wの終端に合わせて経路選択手段31の接続経路が送出手段25に切り替わることで、ウェイト領域Wの終端にデータ1を追加するようにしてもよく、要は、ウェイト領域Wの終端に新たなデータ1を付加できればこの他種々の方法を適用するようにしてもよい。 In the above-described embodiment, when the address added to the address area AD matches the self address, the transmission timing of the data 1 from the transmission means 25 to the path selection means 31 is adjusted, so that the Although the case where data 1 is added to the end has been described, the present invention is not limited to this, and the route according to the end of the weight region W when the end of the weight region W passes the route selection means 31. Data 1 may be added to the end of the weight area W by switching the connection path of the selection means 31 to the sending means 25. In short, if new data 1 can be added to the end of the weight area W, the other Various methods may be applied.
 例えば、マスターノード2aも各スレーブ10a~10cもウェイト領域Wのデータを利用しない場合では、スレーブノード2b~2jはアドレス領域ADの終端から所定のビット数の位置から自己のデータ1を送出するよう実装されていれば、ウェイト領域Wの内容が変更されてしまう実装であってもよい。また、マスターノード2aはウェイト領域Wにスレーブ10a~10cに対して有効なデータを書き込んだパケットPを送出し、宛先となるスレーブ10bはウェイト領域Wとデータ領域DTのデータを取得するとともに、アドレス領域ADの終端から所定のビット数の位置から自己のデータ1が送出されるような実装を行うが、この場合もマスターノード2aが受け取るウェイト領域Wは内容が変更されてしまう実装であってもよい。因みに、マスターノード2aはウェイト領域Wにデータを載せる実装もあり得る。 For example, when neither the master node 2a nor the slaves 10a to 10c use the data in the wait area W, the slave nodes 2b to 2j transmit their own data 1 from the position of a predetermined number of bits from the end of the address area AD. As long as it is mounted, the content of the weight area W may be changed. The master node 2a sends a packet P in which valid data is written to the slave areas 10a to 10c in the wait area W, and the slave 10b that is the destination acquires the data in the wait area W and the data area DT, and addresses The implementation is such that its own data 1 is transmitted from the position of a predetermined number of bits from the end of the area AD, but in this case as well, the content of the wait area W received by the master node 2a may be changed. Good. Incidentally, there may be an implementation in which the master node 2a places data in the wait area W.
 また、アドレス照合手段22は、アドレス領域ADに付加されたアドレスが自己アドレスと一致した場合、データ保持命令をパケット取得手段24に送出し得るようになされている。これにより、パケット取得手段24は、データ保持命令に基づいて、図4(C)に示すように、パケットPに付加されていた受信データとしてのデータ0を記憶し、当該データ0をスレーブ10aに対応付けられたIO11a(図1)へ伝達し得るようになされている。 Further, the address verification means 22 is configured to send a data holding command to the packet acquisition means 24 when the address added to the address area AD matches the self address. Thereby, the packet acquisition means 24 stores the data 0 as the reception data added to the packet P as shown in FIG. 4C based on the data holding command, and stores the data 0 in the slave 10a. The information can be transmitted to the associated IO 11a (FIG. 1).
 このようにスレーブ10aでは、アドレス領域ADに続いて予め付加された所定ビット数のウェイト領域Wを、出力手段26から出力させている間に、アドレス領域ADのアドレスと自己アドレスとを照合するアドレス照合と、アドレス領域ADのアドレスが自己アドレスと一致したときに経路選択手段31において送出手段25へ接続経路を切り替える切替操作とを行うようになされている。これにより、ウェイト領域Wを設けた分だけパケット長が増加するものの、スレーブノード2b~2jに含まれる多数のスレーブをパケットが通過する際に各スレーブで生じる遅延を、データ交換を行うにも関わらず単純な転送処理と同等の時間に短縮することができる。因みに、このような本発明による送受信処理では、例えば変調速度が100Mbaudならば、スレーブ10aの遅延は1bit以下つまり10nsec以下となる。 As described above, in the slave 10a, the address area AD is collated with the address of the address area AD while the wait area W having a predetermined number of bits added in advance following the address area AD is being output from the output unit 26. The collation and the switching operation for switching the connection route to the sending means 25 in the route selection means 31 when the address of the address area AD matches the self address are performed. As a result, although the packet length is increased by the provision of the wait area W, the delay caused in each slave when the packet passes through many slaves included in the slave nodes 2b to 2j is also related to data exchange. It can be shortened to the same time as a simple transfer process. Incidentally, in such transmission / reception processing according to the present invention, for example, if the modulation speed is 100 Mbaud, the delay of the slave 10a is 1 bit or less, that is, 10 nsec or less.
 ここで、ウェイト領域Wを設けずに、アドレス領域ADの直後にデータ領域DTを設けた場合には、仮にアドレス照合手段22によるアドレス照合に時間を要し、経路選択手段31において出力手段26の接続先を送出手段25に切り替えるタイミングが遅くなったとき、アドレス領域ADの終端にあるデータ領域DTにおいてデータ0をデータ1に交換するデータ交換が間に合わなくなり、パケットPが破壊される虞がある。 Here, when the data area DT is provided immediately after the address area AD without providing the wait area W, it takes time for the address verification by the address verification means 22, and the path selection means 31 uses the output means 26. When the timing for switching the connection destination to the sending means 25 is delayed, the data exchange for exchanging data 0 to data 1 in the data area DT at the end of the address area AD may not be in time, and the packet P may be destroyed.
 これに対して本願発明では、アドレス領域ADとデータ領域DTとの間にウェイト領域Wを予め設けていることにより、アドレス照合手段22において行われるアドレスの照合と、経路選択手段31における切替操作とをウェイト転送時間内に行うことができ、データ領域DTにおいてデータ0からデータ1へのデータ交換を確実に実行でき、パケットPが破壊されることを防止できる。 On the other hand, in the present invention, since the wait area W is provided in advance between the address area AD and the data area DT, address matching performed in the address matching means 22 and switching operation in the route selecting means 31 are performed. Can be performed within the wait transfer time, data exchange from data 0 to data 1 can be executed reliably in the data area DT, and the packet P can be prevented from being destroyed.
 (3)マスターノードにおける再送処理
 次に、マスターノード2aによる再送処理について詳細に説明する。図1に示す通信システム1は、各スレーブノード2b~2jにおけるパケットの伝送遅延が極めて短いことから、スレーブノード数が比較的多い場合でも、マスターノード2aが下流のスレーブノード2bにパケットPを伝送信号として全て送信し終える前に、当該伝送信号の先頭が全てのスレーブノード2b~2jを経由して再びマスターノード2aに帰還してくる。
(3) Retransmission process in master node Next, the retransmission process by the master node 2a will be described in detail. The communication system 1 shown in FIG. 1 has a very short packet transmission delay in each of the slave nodes 2b to 2j. Therefore, even when the number of slave nodes is relatively large, the master node 2a transmits the packet P to the downstream slave node 2b. Before the transmission of all signals is completed, the head of the transmission signal returns to the master node 2a again via all the slave nodes 2b to 2j.
 そこで、マスターノード2aのアドレス照合手段15は、現在出力しているパケットPのアドレス領域ADに付加したアドレスと、全てのスレーブノード2b~2jを一巡して戻ってきたパケットのうちアドレス領域ADに付加されたアドレス(以下、これを帰還アドレスと呼ぶ)とを照合するエラー判定処理を行うようになされている。これによりマスターノード2aは、スレーブノード2b~2jを一巡した後に取得したパケットが伝送中のノイズ等によって破損したか否かを判定し得るようになされている。 Therefore, the address verification means 15 of the master node 2a adds the address added to the address area AD of the currently output packet P and the address area AD among the packets that have returned through all the slave nodes 2b to 2j. An error determination process is performed for checking the added address (hereinafter referred to as a feedback address). As a result, the master node 2a can determine whether or not the packet acquired after making a round of the slave nodes 2b to 2j is damaged by noise or the like during transmission.
 この場合、マスターノード2aのアドレス照合手段15には、記憶手段(図示せず)が設けられており、下流のスレーブノード2bへ現在送り出しているパケットPのうち、アドレス領域ADに付加したアドレスがエラー判定用のアドレスとして記憶手段に記憶され得る。そして、マスターノード2aのアドレス照合手段15は、下流のスレーブノード2bへパケットPを出力している際に、全てのスレーブノード2b~2jを一巡した伝送信号が入力され、パケットPのアドレス領域ADを取得すると、当該アドレス領域ADに付加されている帰還アドレスと、記憶手段に記憶されたエラー判定用のアドレスとが一致するか否かを判断し得る。このとき、アドレス照合手段15は、アドレス領域ADが全て帰還してから行うのではなく、帰還する信号を1bit単位でエラー判定用のアドレスと順次照合することで、領域ADがすべて帰還する以前に領域ADの破損を判定することができる。 In this case, the address verification means 15 of the master node 2a is provided with storage means (not shown), and the address added to the address area AD among the packets P currently sent to the downstream slave node 2b is It can be stored in the storage means as an address for error determination. The address verification means 15 of the master node 2a receives a transmission signal that makes a round of all the slave nodes 2b to 2j when the packet P is being output to the downstream slave node 2b, and receives the address area AD of the packet P. Can be determined whether or not the feedback address added to the address area AD matches the error determination address stored in the storage means. At this time, the address verification means 15 does not perform after the address area AD has all fed back, but sequentially checks the signal to be fed back with the address for error determination in units of 1 bit before the area AD has all fed back. The damage of the area AD can be determined.
 その結果、マスターノード2aの再送手段としてのアドレス照合手段15は、エラー判定処理により、全てのスレーブノード2b~2jを一巡したパケットPの帰還アドレスと、記憶手段に記憶されたエラー判定用のアドレスとが不一致であると判定すると、伝送中のノイズ等によってパケットPが破損していると判断し、現在出力している伝送信号の出力を直ちに中断させ、当該伝送信号の替わりにアイドル信号を出力させてアイドル状態にさせる。これにより各スレーブノード2b~2jは、伝送信号の入力が途中で中断され、当該伝送信号の替わりにアイドル信号が入力されると、パケット取得手段24(図2)に記憶したパケットPを破棄し、新たに伝送信号が入力されるまで待ち受ける。 As a result, the address verification unit 15 as the retransmission unit of the master node 2a performs the error determination process, the return address of the packet P that has made a round of all the slave nodes 2b to 2j, and the error determination address stored in the storage unit Is determined to be inconsistent, it is determined that the packet P is damaged due to noise or the like during transmission, the output of the currently transmitted transmission signal is immediately interrupted, and an idle signal is output instead of the transmission signal. Let it be idle. As a result, the slave nodes 2b to 2j interrupt the input of the transmission signal, and when the idle signal is input instead of the transmission signal, the slave node 2b-2j discards the packet P stored in the packet acquisition means 24 (FIG. 2). Wait until a new transmission signal is input.
 そして、マスターノード2aは、アイドル状態にさせた後、パケットPを再び先頭のアドレス領域からウェイト領域及びデータ領域の順に伝送信号として下流のスレーブノード2bへ出力し始める。このようにしてマスターノード2aは、パケットP全てを出力完了する前に、パケットPが破損している虞があるか否かを判定し、パケットPが破損している虞がある場合、パケットPの出力完了を待つことなく、再びパケットPを先頭から出力し直す。これにより、マスターノード2aは、伝送中に破損した虞のあるパケットPをスレーブノード2b~2jが取得することを未然に防止し、パケット破損時におけるパケットPの再出力に必要な通信時間の短縮化を図り、実時間性を向上させることができる。 Then, after the master node 2a is set in the idle state, the master node 2a starts to output the packet P again to the downstream slave node 2b as a transmission signal in order from the head address area to the wait area and the data area. In this way, the master node 2a determines whether or not there is a possibility that the packet P is damaged before completing the output of all the packets P. The packet P is output again from the beginning without waiting for the completion of output. As a result, the master node 2a prevents the slave nodes 2b to 2j from acquiring the packet P that may be damaged during transmission, and shortens the communication time required for re-outputting the packet P when the packet is damaged. And real-time performance can be improved.
 因みに、従来、ノイズ等によるパケットPの破損は、パケットPの最後に付加されたCRC(図示せず)を用いて判断される。そのため、マスターノード2aは、全てのスレーブノード2b~2jを一巡した伝送信号全てを受け取り、パケット全体を取得した後に、CRCによりパケットPの破損の有無を判断し、当該パケットPが破損していると判断すると、パケットPの再出力を行うことになる。 Incidentally, the damage of the packet P due to noise or the like is conventionally determined using a CRC (not shown) added to the end of the packet P. Therefore, the master node 2a receives all the transmission signals that have made a round of all the slave nodes 2b to 2j, and after acquiring the entire packet, determines whether or not the packet P is damaged by CRC, and the packet P is damaged. If it is determined, the packet P is re-output.
 これに対して本願発明によるマスターノード2aでは、パケット全体を取得しなくても、パケットPの破損の有無を検知でき、パケット全体を下流のスレーブノード2bへ出力している際に、再びパケットPを先頭から出力し直すことができるので、その分だけ、パケット破損時におけるパケットPの再出力時間の短縮化を図ることができる。 On the other hand, the master node 2a according to the present invention can detect whether or not the packet P is damaged without acquiring the whole packet, and when the whole packet is output to the downstream slave node 2b, the packet P again. Can be output again from the beginning, and accordingly, the re-output time of the packet P when the packet is damaged can be shortened.
 なお、仮にアドレス判定専用のCRCをアドレス領域ADの直後に付加して、当該CRCにより領域ADの破損を判定する方法を用いた場合には、パケット全体を取得せずとも迅速にパケットPの再送処理を行うことも可能であるが、パケット長の増加や処理回路が複雑になると言う欠点がある。これに対して本願発明のマスターノード2aは、帰還する信号1bit単位で、アドレス照合を順次行っていくことにより、アドレス領域AD全体を取得しなくてもアドレス領域ADの破損を判定することも可能である。これにより本発明では、より迅速にパケットPの再送処理が可能なだけでなく、パケット長が増加することなく、また処理回路の複雑化を防止し、処理内容もシンプルであるため、マスターノード2aを構成するICの内部の回路構成も簡素で小型化を図ることができる。 If a method of adding a CRC dedicated to address determination immediately after the address area AD and determining whether the area AD is damaged by the CRC is used, it is possible to quickly retransmit the packet P without acquiring the entire packet. Although it is possible to perform processing, there are drawbacks in that the packet length increases and the processing circuit becomes complicated. On the other hand, the master node 2a of the present invention can determine whether the address area AD is damaged without acquiring the entire address area AD by sequentially performing address collation in units of 1-bit feedback signal. It is. Thus, in the present invention, not only can the packet P be retransmitted more quickly, but the packet length does not increase, the processing circuit is prevented from becoming complicated, and the processing content is simple, so that the master node 2a The internal circuit configuration of the IC constituting the circuit is also simple and can be reduced in size.
 (4)切替IOにおける切替処理
 (4-1)切替IOを有するスレーブノードの構成
 次に、切替IO12における切替処理について、図1に示したスレーブノード2dに着目して詳細に説明する。この場合、IO11a,11b,切り替えIO12は例えばパラレルバスやシリアルバス(SPI(Serial  Peripheral Interface)、SMBus(System Management Bus)、I2O((Intelligent
Input/Output))、 UART (Universal Asynchronous Receiver
Transmitter))等の伝送手段を備え、各バスを経由して、IO11a,11bに外部デバイス4のモータ6a,6bが、切替IO12に外部デバイス4のAD変換器8がそれぞれ接続されている。
(4) Switching Process in Switching IO (4-1) Configuration of Slave Node Having Switching IO Next, switching processing in the switching IO 12 will be described in detail focusing on the slave node 2d shown in FIG. In this case, the IOs 11a and 11b and the switching IO 12 are, for example, a parallel bus or a serial bus (SPI (Serial Peripheral Interface), SMBus (System Management Bus), I2O ((Intelligent
Input / Output)), UART (Universal Asynchronous Receiver)
Transmitter)) and the like, and the motors 6a and 6b of the external device 4 are connected to the IOs 11a and 11b via the buses, and the AD converter 8 of the external device 4 is connected to the switching IO 12 respectively.
 例えばIO11aは、パラレルバスを経由して、モータ6aへの指令値であるデータ0をスレーブ10aから取得し、外部デバイス4のモータ6aにデータ0を出力し得るようになされている。 For example, the IO 11a can acquire data 0, which is a command value to the motor 6a, from the slave 10a via the parallel bus, and can output data 0 to the motor 6a of the external device 4.
 ここで、外部デバイス4は、多チャンネルのAD変換部8を備えており、各モータ6a,6b毎に設けられたセンサ7a,7bがAD変換部8に接続され、当該AD変換部8が複数のセンサ7a,7bから送られてくる計測信号をAD変換処理し得るように構成されている。これにより外部デバイス4は、従来のようにセンサ7a,7b毎にそれぞれAD変換部を個別に設け、複数のAD変換部を備えた外部デバイスに比して小型化が図られている。 Here, the external device 4 includes a multi-channel AD conversion unit 8, sensors 7a and 7b provided for the respective motors 6a and 6b are connected to the AD conversion unit 8, and a plurality of the AD conversion units 8 are provided. The measurement signals sent from the sensors 7a and 7b can be subjected to AD conversion processing. As a result, the external device 4 is provided with an AD conversion unit individually for each of the sensors 7a and 7b as in the prior art, and is reduced in size as compared with an external device including a plurality of AD conversion units.
 かかる構成に加えて、切替IO12には、例えばSMBus等のバスが接続されており、当該バスを経由して切替IO12に外部デバイス4のAD変換部8が接続されている。切替IO12は、各センサ7a,7bからの計測信号をAD変換処理したデータ列をAD変換部8からそれぞれ受け取ると、スレーブ10a~10cのうちからデータ列に対応付けられた例えばスレーブ10aを選択し、当該データ列に付加されたデータ1を、選択したスレーブ10aにだけ出力し得るようになされている。 In addition to such a configuration, a bus such as SMBus is connected to the switching IO 12, and the AD conversion unit 8 of the external device 4 is connected to the switching IO 12 via the bus. When the switching IO 12 receives from the AD conversion unit 8 a data string obtained by AD converting the measurement signals from the sensors 7a and 7b, the switching IO 12 selects, for example, the slave 10a associated with the data string from the slaves 10a to 10c. The data 1 added to the data string can be output only to the selected slave 10a.
 実際上、切替IO12がAD変換部8から受け取るデータ列は、各スレーブ10a~10cに予め対応付けられたIDを示したスレーブIDと、データ長と、マスターノード2aへ送られるデータ1とにより構成されている。切替IO12は、AD変換部8からデータ列を受け取ると、当該データ列のスレーブIDに対応した例えばスレーブ10aを接続先として選択し、当該データ列のデータ長の分だけデータ列を接続先のスレーブ10aに出力するように構成されている。 In practice, the data string received by the switching IO 12 from the AD conversion unit 8 is composed of a slave ID indicating an ID previously associated with each of the slaves 10a to 10c, a data length, and data 1 sent to the master node 2a. Has been. When receiving the data string from the AD conversion unit 8, the switching IO 12 selects, for example, the slave 10a corresponding to the slave ID of the data string as the connection destination, and selects the data string corresponding to the data length of the data string as the connection destination slave. It is configured to output to 10a.
 これにより切替IO12は、マスターノード2aからのデータ0をモータ6aに受け渡したスレーブ10aに対し、同じモータ6aでの電流値であるデータ1を出力し得るようになされている。かくして、切替IO12では、マスターノード2aからのデータ0をモータ6aに受け渡すスレーブと、このモータ6aから得られるデータ1が入力されるスレーブとを同一のスレーブ10aにできるため、当該スレーブ10aにおいてパケットPを取得してアドレス照合を行ったタイミングで当該パケットPのデータ領域においてデータ0及びデータ1のデータ交換を行わせることができる。 Thus, the switching IO 12 can output data 1 which is a current value in the same motor 6a to the slave 10a which has transferred the data 0 from the master node 2a to the motor 6a. Thus, in the switching IO 12, the slave that delivers the data 0 from the master node 2a to the motor 6a and the slave to which the data 1 obtained from the motor 6a is input can be the same slave 10a. Data 0 and data 1 can be exchanged in the data area of the packet P at the timing when P is acquired and address verification is performed.
 (4-2)従来のスレーブノードと本発明のスレーブノードとの比較
 次に、本発明によるスレーブノード2dの切替処理について従来のスレーブノードと比較して以下説明する。図1との対応部分に同一符号を付して示す図5は従来のスレーブノード41及び外部デバイス42を示し、この外部デバイス42には複数のモータモジュール43a,43bが設けられている。各モータモジュール43a,43bは、モータ6a,6bの電流等を計測する複数のセンサ7a,7bから計測結果を受け取りAD変換処理するAD変換部44a,44bと、所定部位の回転角を計測するためのカウンタ46a,46bとをそれぞれ有している。
(4-2) Comparison of Conventional Slave Node and Slave Node of Present Invention Next, the switching process of the slave node 2d according to the present invention will be described below in comparison with the conventional slave node. FIG. 5, in which the same reference numerals are assigned to the parts corresponding to those in FIG. Each of the motor modules 43a and 43b receives the measurement results from a plurality of sensors 7a and 7b that measure the currents of the motors 6a and 6b, AD conversion units 44a and 44b that perform AD conversion processing, and a rotation angle of a predetermined part Counters 46a and 46b.
 また、この比較例となる外部デバイス42には、これらAD変換部44a,44b及びカウンタ46a,46bとは別に、所定のセンサ47に接続されたAD変換部48と、センサネットワーク49に接続されたMPU50とが設けられている。ここで、このような構成を有する外部デバイス42では、AD変換部44a,44bやカウンタ46a,46bがモータモジュール43a,43b毎にそれぞれ設けられていることにより、当該モータモジュール43a,43bが大型化してしまい、その結果、外部デバイス42全体としても大型化するという問題があった。 In addition, the external device 42 as a comparative example is connected to a sensor network 49 and an AD converter 48 connected to a predetermined sensor 47, separately from the AD converters 44a and 44b and the counters 46a and 46b. MPU50 is provided. Here, in the external device 42 having such a configuration, the AD modules 44a and 44b and the counters 46a and 46b are provided for the respective motor modules 43a and 43b, so that the motor modules 43a and 43b are enlarged. As a result, there is a problem that the overall size of the external device 42 is increased.
 そこで、このような・BR>O部デバイス42についてモータモジュール43A,43Bの小型化を図るため、図5との対応部分に同一符号を付して示す図6のような外部デバイス52が考えられる。この比較例となる外部デバイス52では、所定のセンサ47や、各モータモジュール53A,53Bのセンサ7A,7Bを1つのAD変換部48に接続させてAD変換部48を共有化させると供に、カウンタの換わりに回転角を1つのMPU50で計測させている。これにより外部デバイス52では、各モータモジュール53A,53BのAD変換部及びカウンタをそれぞれ省くことができるので、各モータモジュール53A,53Bの小型化を図ることができる。 Therefore, in order to reduce the size of the motor modules 43A and 43B for such a BR> O unit device 42, an external device 52 as shown in FIG. . In the external device 52 as a comparative example, the predetermined sensor 47 and the sensors 7A and 7B of the motor modules 53A and 53B are connected to one AD converter 48 to share the AD converter 48, Instead of the counter, the rotation angle is measured by one MPU 50. Thereby, in the external device 52, the AD conversion unit and the counter of each motor module 53A, 53B can be omitted, so that the size of each motor module 53A, 53B can be reduced.
 しかしながら、このようなスレーブノード41では、例えばモータ6aにデータ0を出力するスレーブ10aとは別のスレーブ10cに対し、当該モータ6aに関するAD変換部48からのデータ1を入力することになり、1つのモータ6aに関するデータの入出力を異なるスレーブ10a,10cを用いて行うことになる。 However, in such a slave node 41, for example, data 1 from the AD conversion unit 48 related to the motor 6a is input to a slave 10c different from the slave 10a that outputs data 0 to the motor 6a. Data input / output related to one motor 6a is performed using different slaves 10a and 10c.
 この場合、モータ6aにデータ0を出力するスレーブ10aと、当該モータ6aに関するデータ1が入力されるスレーブ10dとでは、パケットPを取得するタイミングが異なることから、これらスレーブ10a,10d間で通信周期を揃えて、パケットPのデータ領域DTにおいてデータ0及びデータ1のデータ交換を行う必要が生じ、その結果、必要帯域が大きくなり通信システム全体としてパケットPの周期が低速化してしまうという問題が生じる。 In this case, since the slave 10a that outputs data 0 to the motor 6a and the slave 10d that receives data 1 related to the motor 6a have different timings for acquiring the packet P, the communication cycle between the slaves 10a and 10d is different. Therefore, it is necessary to exchange data 0 and 1 in the data area DT of the packet P. As a result, the necessary bandwidth becomes large and the cycle of the packet P is slowed down as a whole communication system. .
 これに対して、図6との対応部分に同一符号を付して示す図7に示すように、本発明によるスレーブノード61では、AD変換部48やMPU50からのデータを複数のスレーブ10a~10dに自由に振り分ける切替機能付きの切替IO12a,12bを設け、例えばこの切替IO12による経路の切り替えによって、データ0をモータ6aに出力するスレーブ10aと、このモータ6aに関するデータ1が入力されるスレーブ10aとを同一にできるため、当該スレーブ10aにおいてパケットPを取得しアドレス照合したタイミングで、当該パケットPのデータ領域におけるデータ0及びデータ1のデータ交換を行わせることができる。 On the other hand, as shown in FIG. 7 in which the same reference numerals are assigned to the corresponding parts as in FIG. Switching IOs 12a and 12b with a switching function for freely distributing them are provided. For example, by switching the path by the switching IO 12, a slave 10a that outputs data 0 to the motor 6a, and a slave 10a that receives data 1 related to the motor 6a Therefore, the data 0 and data 1 in the data area of the packet P can be exchanged at the timing when the slave 10a acquires the packet P and checks the address.
 これにより、スレーブノード61では、各モータモジュール53a,53bのAD変換部及びカウンタを省いてAD変換部48及びMPU50を共有化させ、各モータモジュール53a,53bを小型化させても、切替IO12a,12bで接続先のスレーブ10a~10dを適宜切り替えることにより、例えばモータ6aに関するデータ0及びデータ1のやり取りを、同じスレーブ10aで行うことができる。 Thus, in the slave node 61, even if the AD converter 48 and the MPU 50 are shared by omitting the AD converters and counters of the motor modules 53a and 53b, and the motor modules 53a and 53b are downsized, the switching IO 12a, By appropriately switching the connection-destination slaves 10a to 10d at 12b, for example, data 0 and data 1 related to the motor 6a can be exchanged by the same slave 10a.
 このようにスレーブノード61では、各スレーブ10a~10dがパケットPを取得したタイミングで、当該パケットPのデータ領域DTにおけるデータ0及びデータ1のデータ交換を行わせることができる。従って、スレーブノード61では、上述した図6に示すスレーブノード41のようにスレーブ10a~10d間で通信周期を揃える必要がなく、その分、必要帯域を小さくでき通信システム全体としてパケットPの送受信の高速化を図ることができる。 As described above, the slave node 61 can exchange data 0 and data 1 in the data area DT of the packet P at the timing when each of the slaves 10a to 10d acquires the packet P. Therefore, in the slave node 61, it is not necessary to align the communication cycle between the slaves 10a to 10d as in the slave node 41 shown in FIG. The speed can be increased.
 また、これにより、1つのパケットで交換するデータが1つのモータモジュール53a又は53bに対応づけできるためマスターノード2aに接続された計算機での処理を簡便かつ効率化させることができる。例えばモータ6aへの指令とセンサ7aおよび回転角53aが一元的に扱うことが可能になる。 In addition, as a result, data exchanged in one packet can be associated with one motor module 53a or 53b, so that the processing in the computer connected to the master node 2a can be made simple and efficient. For example, the command to the motor 6a, the sensor 7a, and the rotation angle 53a can be handled in a unified manner.
 なお、図7においてスレーブIDとデータ1との間に示すTcはデータ長を示すものである。また、MPU50は、切替IO12bを介して、スレーブ10a~10dのいずれかを選択し、選択したスレーブへデータ1を送るだけではなく、選択したスレーブからデータ0を受け取るようになされている。つまり、MPU50はスレーブ10a~10dのいずれかを選択し、その選択したスレーブとデータの交換をすることもできる。 In FIG. 7, Tc between the slave ID and data 1 indicates the data length. Further, the MPU 50 selects any one of the slaves 10a to 10d via the switching IO 12b, and not only sends data 1 to the selected slave but also receives data 0 from the selected slave. That is, the MPU 50 can select one of the slaves 10a to 10d and exchange data with the selected slave.
 (5)動作及び効果
 以上の構成において、図3に示したスレーブ10aでは、上流のスレーブノード2cからのパケットPが入力手段23に入力し始めると、転送手段30及び経路選択手段31を経由させて出力手段26から下流のスレーブ10bへ出力させてゆき、これと同時に当該パケットPをパケット取得手段24で取得する。スレーブ10aでは、現在取得中のパケットPの先頭にあるアドレス領域ADの出力手段26からの出力に続いて、ウェイト領域Wを出力手段26から出力させているときに、アドレス照合手段22により当該アドレス領域ADのアドレスが、自己アドレスと一致するか否かを判断する。
(5) Operation and effect In the above configuration, in the slave 10a shown in FIG. 3, when the packet P from the upstream slave node 2c starts to be input to the input means 23, the packet is passed through the transfer means 30 and the path selection means 31. Then, the packet is output from the output means 26 to the downstream slave 10b, and at the same time, the packet acquisition means 24 acquires the packet P. In the slave 10a, when the wait area W is output from the output means 26 following the output from the output means 26 of the address area AD at the head of the currently acquired packet P, the address collating means 22 It is determined whether the address of the area AD matches the self address.
 スレーブ10aでは、アドレス領域ADのアドレスが自己アドレスと一致しない場合、転送手段30及び経路選択手段31を経由させて出力手段26から下流のスレーブ10bへパケットPをそのまま出力し続け、パケット取得手段24により取得したパケットPを廃棄する。 In the slave 10a, if the address in the address area AD does not match the self address, the packet P is continuously output from the output means 26 to the downstream slave 10b via the transfer means 30 and the path selection means 31, and the packet acquisition means 24 The packet P acquired by is discarded.
 ところで、従来のスレーブでは、上流のスレーブからパケットを受け取り始めると、アドレス領域AD及びデータ領域DTからなるパケット全てをバッファに一旦取り込んだ後に、アドレス領域ADを解析し始め自己宛のパケットであるか否かを判断していた。その後、パケットが自己宛のときには、データ領域DTのデータを交換して、バッファに取り込んだパケットを改めて先頭のアドレス領域ADから順に伝送信号として下流のスレーブへ出力していた。 By the way, in the conventional slave, when receiving packets from the upstream slave, after all the packets consisting of the address area AD and the data area DT are once taken into the buffer, the address area AD is analyzed and whether the packet is addressed to itself. I was deciding whether or not. After that, when the packet is addressed to itself, the data in the data area DT is exchanged, and the packet fetched in the buffer is output to the downstream slave as a transmission signal in order from the top address area AD.
 これに対して本発明によるスレーブ10aでは、パケットPが入力手段23から入力されると、直ちに下流のスレーブ10bへ当該パケットPを出力しつつ、これと同時にパケットPに付加されたアドレスのアドレス照合を行うようにしたことにより、下流のスレーブ10bにパケットPを転送する際に生じる遅延時間を従来よりも短縮させることができ、効率良くパケットPを送受信できる。 On the other hand, in the slave 10a according to the present invention, when the packet P is input from the input means 23, the packet P is immediately output to the downstream slave 10b, and at the same time, the address verification of the address added to the packet P is performed. Thus, the delay time that occurs when the packet P is transferred to the downstream slave 10b can be shortened compared to the conventional case, and the packet P can be transmitted and received efficiently.
 なお、スレーブ10aでは、ウェイト領域Wを設けた分だけパケットPが伸びるものの、当該ウェイト領域Wが比較的小さいビット数からなると供に、入力手段23からパケットPを受け取ると同時に当該パケットPを次の下流のスレーブ10bへ出力し始めることから、従来のスレーブよりもパケットPを送受信する際の遅延時間を短縮化させることができる。 In the slave 10a, although the packet P grows by the amount of the wait area W, the wait area W is composed of a relatively small number of bits, and at the same time the packet P is received from the input means 23, Therefore, the delay time when transmitting and receiving the packet P can be shortened compared to the conventional slave.
 また、スレーブ10aは、パケットPのアドレス領域ADに付加されたアドレスが自己アドレスと一致すると、パケット取得手段24において取得したパケットPのうちデータ領域DTに付加されているデータ0を取得する。このときスレーブ10aは、経路選択手段31において出力手段26と転送手段30との接続を遮断すると供に、出力手段26に送出手段25を接続し、当該送出手段25に予め記憶されているデータ1を、データ0の替わりにウェイト領域Wの終端に付加し、これを出力手段26から下流のスレーブ10bへ出力する。 Further, when the address added to the address area AD of the packet P matches the self address, the slave 10a acquires the data 0 added to the data area DT from the packet P acquired by the packet acquisition means 24. At this time, the slave 10a disconnects the connection between the output unit 26 and the transfer unit 30 in the route selection unit 31, and connects the transmission unit 25 to the output unit 26, and the data 1 stored in the transmission unit 25 in advance. Is added to the end of the wait area W instead of the data 0, and this is output from the output means 26 to the downstream slave 10b.
 このように本発明によるスレーブ10aでは、パケットPに予め定められた所定ビッド数のウェイト領域Wを出力手段26から出力させているときに、アドレス照合手段22によるアドレス照合と、経路選択手段31による接続経路の切り替えとを行うようにしたことにより、パケットPが自己宛だと判断した後でも、ウェイト領域Wの終端にデータ0に替えて新たにデータ1を確実に付加でき、パケットPが破壊されることを防止できる。 In this way, in the slave 10a according to the present invention, when the output unit 26 outputs a predetermined number of wait areas W in the packet P from the output unit 26, the address verification by the address verification unit 22 and the route selection unit 31 By switching the connection path, even after it is determined that the packet P is addressed to itself, the data 1 can be reliably added to the end of the wait area W instead of the data 0, and the packet P is destroyed. Can be prevented.
 また、この通信システム1では、ウェイト領域Wを設けたため、ウェイト領域Wを出力手段26から出力させているときに、アドレス照合手段22によるアドレス照合と、経路選択手段31による接続経路の切り替えとを行うので、伝送路3上に設けられた各スレーブ10a~10cにおいてパケットPのアドレス領域ADとウェイト領域Wの転送の直後にデータ1を遅延なく出力することができ、従来よりも遅延を小さくさせ効率良くパケットPを送受信できる。また、この通信システム1では、マスターノード2aから全スレーブノード2b~2jを介して再びマスターノード2aまで戻ってくるパケットPの時間を短くすることができる。 In the communication system 1, since the wait area W is provided, when the wait area W is output from the output means 26, the address verification by the address verification means 22 and the switching of the connection route by the path selection means 31 are performed. Therefore, the data 1 can be output without delay immediately after the transfer of the address area AD and the wait area W of the packet P in each of the slaves 10a to 10c provided on the transmission path 3, and the delay can be made smaller than before. Packet P can be transmitted and received efficiently. Further, in the communication system 1, the time of the packet P returning from the master node 2a to the master node 2a again through all the slave nodes 2b to 2j can be shortened.
 この通信システム1では、リング状に繋がれた一定の伝送路3上において現時点のスレーブノード2b~2jの数をさらに増加させていっても、予め設定したウェイト領域Wの転送時間内にアドレス照合手段22によるアドレス照合と、経路選択手段31による接続経路の切り替えが収まるように全スレーブノードが設計さている限りは、パケット全体の遅延は各スレーブノードの転送遅延と全スレーブノード数の積となる。スレーブノードの遅延は整波方式(後述する)で1bit以下、リピート方式(後述する)ならさらに短いため、スレーブノードが多い場合でも高速応答性を実現した通信システム1を構築できる。 In this communication system 1, even if the number of the current slave nodes 2b to 2j is further increased on a certain transmission line 3 connected in a ring shape, the address verification is performed within the preset transfer time of the wait area W. As long as all slave nodes are designed so that address verification by means 22 and switching of connection paths by route selection means 31 can be accommodated, the delay of the entire packet is the product of the transfer delay of each slave node and the total number of slave nodes. . Since the delay of the slave node is 1 bit or less in the harmonized method (described later) and is shorter in the repeat method (described later), the communication system 1 realizing high-speed response can be constructed even when there are many slave nodes.
 このような通信システム1では、各スレーブ10a~10cにおいて、それぞれ遅延が極めて短く効率良くパケットPを送受信でき、マスターノード2aとスレーブノード2b~2jとの間でのデータ通信の高速応答化を図れることから、例えば外部デバイス4の小型化を図る際には極めて有効である。この点について、例えば、図8に示すような複数の通信ノード72a~72fにそれぞれMPU73a~73dが設けられた通信システム71を一例に説明する。この通信システム71では、モータ74a,74bがドライバ75a,75bを介してMPU73a,73bに設けられた通信ノード72c,72dと、センサ76a,76bが増幅回路77a,77bを介してMPU73c,73dに設けられた通信ノード72e,72fとを備えたデバイス79aが設けられている。また、通信システム71では、通信ノード72a,72bをそれぞれ備え、かつ設置空間Gに余裕のあるデバイス79b,79cが設けられている。 In such a communication system 1, each of the slaves 10a to 10c has an extremely short delay and can efficiently transmit and receive the packet P, and a high-speed response of data communication between the master node 2a and the slave nodes 2b to 2j can be achieved. Therefore, for example, it is extremely effective in reducing the size of the external device 4. In this regard, for example, a communication system 71 in which MPUs 73a to 73d are respectively provided in a plurality of communication nodes 72a to 72f as shown in FIG. 8 will be described as an example. In this communication system 71, motors 74a and 74b are provided in MPUs 73a and 73b via drivers 75a and 75b, and sensors 76a and 76b are provided in MPUs 73c and 73d via amplifiers 77a and 77b. A device 79a including the communication nodes 72e and 72f provided is provided. In the communication system 71, devices 79b and 79c having communication nodes 72a and 72b, respectively, and having sufficient space in the installation space G are provided.
 ここで、一方のデバイス79aの小型化を図る場合には、図8との対応部分に同一符号を付して示す図9における通信システム81のように、一方のデバイス82に設けられていたMPUを取り省き、当該MPUの替わりに機能させる高性能PU(Processor Unit)83a,83bを他方のデバイス79b,79cの設置空間Gに設けることで、一方のデバイス82についてMPUを取り省いた分だけ小型化を図ることができる。 Here, when downsizing the one device 79a, the MPU provided in the one device 82 as in the communication system 81 in FIG. The high-performance PU (Processor Unit) 83a, 83b that functions in place of the MPU is provided in the installation space G of the other device 79b, 79c, so that one device 82 is small enough to omit the MPU. Can be achieved.
 この場合、通信システム81では、本発明による送受信処理を実行する通信ノード85a~85fを用いることにより、高性能PU83a,83bのバス並みにパケット通信を高速応答化させることができ、一方のデバイス82から高性能PU83a,83bが離れた状態でも、図8に示す通信システム71と同様なパケット通信を実現することができる。 In this case, in the communication system 81, by using the communication nodes 85a to 85f that execute transmission / reception processing according to the present invention, packet communication can be made to respond at high speed like the buses of the high-performance PUs 83a and 83b. Even when the high-performance PUs 83a and 83b are away from each other, packet communication similar to the communication system 71 shown in FIG. 8 can be realized.
 なお、振動センサや加速度センサ等のように高速サンプリングが必要なセンサでは、単位時間あたりのデータ量が非常に多い。そのため、通信システムのスレーブノードにおいて、パケットPによるデータ収集の周期が遅いと、センサからのデータをバッファリングしておく必要がある。しかしながら、通信システム1においてスレーブノード2b~2jがパケットPにより高速周期でデータ収集が可能になると、スレーブ10a~10cに配置すべきバッファやRAMの量を大幅に減らすことができ、また使用するICやMPUのランクを下げることもできるので、スレーブ10a~10cの小型化を一段と図ることができる。 Note that the amount of data per unit time is very large in sensors that require high-speed sampling, such as vibration sensors and acceleration sensors. Therefore, in the slave node of the communication system, if the data collection cycle by the packet P is slow, it is necessary to buffer the data from the sensor. However, if the slave nodes 2b to 2j can collect data at high speed by the packet P in the communication system 1, the amount of buffers and RAMs to be arranged in the slaves 10a to 10c can be greatly reduced, and the ICs to be used Since the rank of the MPU can be lowered, the slaves 10a to 10c can be further downsized.
 また、図1に示したように、本発明によるマスターノード2aでは、下流のスレーブノード2cに現在出力しているパケットPの先頭が、全てのスレーブノード2b~2jを経由して再びマスターノード2aに帰還してきたとき、現在出力しているパケットPのアドレス領域ADのアドレスと、スレーブノード2b~2jを一巡して戻ってきたパケットPのアドレス領域ADに付加されたアドレスとを照合する。 Also, as shown in FIG. 1, in the master node 2a according to the present invention, the head of the packet P currently output to the downstream slave node 2c is again transmitted to the master node 2a via all the slave nodes 2b to 2j. Is returned to the address area AD of the currently output packet P, and the address added to the address area AD of the packet P that has returned around the slave nodes 2b to 2j is checked.
 マスターノード2aは、現在出力しているパケットPの送り先アドレスとしてのアドレスと、スレーブノード2b~2jを一巡して戻ってきたパケットPの帰還アドレスとしてのアドレスとが一致しない場合、パケットPがスレーブノード2b~2jを一巡しても、スレーブノード2b~2jがパケットPのアドレスを変更することはないため、下流のスレーブノード2b~2jを一巡している際にパケットPがノイズ等によって破損したと判断する。 If the address as the destination address of the currently output packet P does not match the address as the return address of the packet P that has returned around the slave nodes 2b to 2j, the master node 2a Even if it makes a round of the nodes 2b to 2j, the slave nodes 2b to 2j do not change the address of the packet P, so the packet P is damaged by noise or the like while making a round of the downstream slave nodes 2b to 2j. Judge.
 この場合、マスターノード2aは、現在出力しているパケットPを直ちに中断すると供に、再び先頭のアドレス領域ADからパケットPを下流のスレーブノード2cへ出力し直すようにしたことにより、パケット破損時におけるパケットPの再出力に必要な時間の短縮化を図り、実時間性を向上させることができる。 In this case, the master node 2a immediately interrupts the currently output packet P, and again outputs the packet P from the head address area AD to the downstream slave node 2c. It is possible to shorten the time required for re-outputting the packet P at the time and improve the real-time property.
 さらに、本発明によるスレーブノード2dでは、スレーブ10aと外部デバイス4のAD変換部8とを接続する切替IO12が、AD変換部8から受け取ったデータ列のスレーブIDに応じて、接続先が複数のスレーブ10a~10cのいずれかに自動的に切り替わるように構成されていることで、例えばマスターノード2aからのデータ0をモータ6aに出力するスレーブと、このモータ6aに関するデータ1が入力されるスレーブとを同一のスレーブ10aにできる。 Furthermore, in the slave node 2d according to the present invention, the switching IO 12 that connects the slave 10a and the AD conversion unit 8 of the external device 4 has a plurality of connection destinations according to the slave ID of the data string received from the AD conversion unit 8. By being configured to automatically switch to one of the slaves 10a to 10c, for example, a slave that outputs data 0 from the master node 2a to the motor 6a, and a slave to which data 1 related to the motor 6a is input Can be made the same slave 10a.
 このようにスレーブノード2dでは、外部デバイス4においてAD変換部8を複数のセンサ7a,7bに共有させても、AD変換部8から受け取るデータ0を、当該データ0を得たモータ7aに対応付けられているスレーブ10aに対し直接出力することができるので、当該スレーブ10aにおいてパケットPを取得しアドレス照合を終えたタイミングで当該パケットPのデータ0及びデータ1のデータ交換を行わせることができる。かくして、スレーブノード2dでは、スレーブ10a~10c単位の通信周期によりデータ1及びデータ0の送受信を高速で行うことができる。 Thus, in the slave node 2d, even if the AD converter 8 is shared by the plurality of sensors 7a and 7b in the external device 4, the data 0 received from the AD converter 8 is associated with the motor 7a that has obtained the data 0. Since the data can be directly output to the slave 10a, the data exchange of the data 0 and the data 1 of the packet P can be performed at the timing when the packet P is acquired in the slave 10a and the address verification is finished. Thus, in the slave node 2d, data 1 and data 0 can be transmitted / received at high speed by the communication cycle of the slaves 10a to 10c.
 (6)他の実施の形態
 なお、本発明は、本実施形態に限定されるものではなく、本発明の要旨の範囲内で種々の変形実施が可能であり、ロボットやFAシステムに用いる通信システムだけでなく、種々の通信システムに対して適用することができる。
(6) Other Embodiments The present invention is not limited to the present embodiment, and various modifications can be made within the scope of the gist of the present invention, and a communication system used for a robot or FA system. It can be applied not only to various communication systems.
 また、上述した実施の形態においては、複数のスレーブのうち接続先となるスレーブを自由に切り替え可能に構成された切替IO12を適用した場合について説明したが、本発明はこれに限らず、マスターノード2aから受け取ったデータ0の内容に応じて、各スレーブ10a~10cが複数のIO11a,11b及び切替IO12のうち、いずれか1つのIO11a,11b又は切替IO12に自由に切り替え可能に構成するようにしてもよい。 Further, in the above-described embodiment, the case where the switching IO 12 configured to freely switch the connection destination slave among the plurality of slaves has been described, but the present invention is not limited thereto, and the master node According to the contents of data 0 received from 2a, each slave 10a to 10c is configured to be freely switchable to any one of the plurality of IOs 11a, 11b and switching IO12 to any one of IO11a, 11b or switching IO12. Also good.
 また、データ0は例えばモータ6aへの指令値とし、データ1は例えばモータ6aの電流値として説明したが、パケットPのデータ領域の内容はこれに限定するものではない。 Further, the data 0 has been described as a command value to the motor 6a, for example, and the data 1 has been described as a current value of the motor 6a, for example.
 さらに、上述した実施の形態においては、複数の通信ノードがリング状に接続されたリング型の通信システム1を適用した場合について述べたが、本発明はこれに限らず、複数の通信ノードがライン型に接続された通信システムや、複数の通信ノードがスター型に接続された通信システム、複数の通信ノードがツリー型に接続された通信システム等この他種々の通信システムを適用してもよい。 Furthermore, in the above-described embodiment, the case where the ring communication system 1 in which a plurality of communication nodes are connected in a ring shape has been described. However, the present invention is not limited to this, and a plurality of communication nodes are connected to a line. Various other communication systems such as a communication system connected in a type, a communication system in which a plurality of communication nodes are connected in a star shape, and a communication system in which a plurality of communication nodes are connected in a tree shape may be applied.
 さらに、他の実施の形態として、IO11a,11bは、モータ6a,6bへの出力として、PWM(Pulse Width Modulation)出力を有する構成や、モータに接続された回転角センサ(ロータリーエンコーダ)のカウンタ入力を有する構成等この他種々の構成からなるIOを適用してもよい。 Further, as another embodiment, the IOs 11a and 11b are configured to have a PWM (Pulse Width Modulation) output as an output to the motors 6a and 6b, or a counter input of a rotation angle sensor (rotary encoder) connected to the motor. The IO having various other configurations such as the configuration having the above may be applied.
 さらに、他の実施の形態として、スレーブ10a~10cにおける送受信処理において、パケットPが他のスレーブ宛の場合において、パケット取得手段22が転送手段30から受け取ったデータ領域DTを破棄せず、利用する実装もあり得る。 Furthermore, as another embodiment, in the transmission / reception processing in the slaves 10a to 10c, when the packet P is destined for another slave, the packet acquisition unit 22 uses the data area DT received from the transfer unit 30 without discarding it. An implementation is also possible.
 さらに、上述した実施の形態においては、自己データとしてデータ1を記憶している回路部について送出手段と言う表現を用いたが、必ずしも送出手段25が送出を行う実装である必要はなく、例えば、送出手段25は、単に自己データを記憶しているのみで、実際には切替手段21がその自己データを読み出して送出する構成であってもよい。また、送出手段25は自己データを記憶するとともに、切替手段21に自己データを送出し、切替手段21はその自己データを経路選択手段31を介して単に外部へ出力する構成であってもよい。 Furthermore, in the above-described embodiment, the expression “sending means” is used for the circuit unit that stores data 1 as its own data. However, the sending means 25 does not necessarily have to be implemented to send, for example, The sending means 25 may simply store the self data, and actually the switching means 21 may read and send the self data. The sending means 25 may store the self data and send the self data to the switching means 21, and the switching means 21 may simply output the self data to the outside via the route selecting means 31.
 さらに、上述した実施の形態においては、先頭にアドレス領域ADがあるパケットPを適用した場合について述べたが、本発明は、これに限らず、アドレス領域ADの直後にウェイト領域Wがあるパケットであれば、例えば先頭に他の種々のデータが存在し、その直後にアドレス領域ADがあるパケットを適用してもよい。 Furthermore, in the above-described embodiment, the case where the packet P having the address area AD at the head is applied has been described. However, the present invention is not limited to this, and the packet having the wait area W immediately after the address area AD is used. If there is, for example, a packet in which there are various other data at the head and there is an address area AD immediately after that may be applied.
 さらに、他の実施の形態として、スレーブノードにスレーブが複数ある場合、スレーブがアドレス照合手段22及びパケット取得手段24を共有する実装もあり得る。 Furthermore, as another embodiment, when there are a plurality of slaves in the slave node, there may be an implementation in which the slaves share the address verification unit 22 and the packet acquisition unit 24.
 (6-1)切替手段21の共有化について
上述した実施の形態においては、各スレーブ10a~10c毎に切替手段21をそれぞれ設けるようにした場合について述べたが、本発明はこれに限らず、各スレーブ毎に切替手段を設けずに、これらスレーブとは別に切替手段を設け、当該切替手段を各スレーブで共有させるようにしてもよい。この場合、図1との対応部分に同一符号を付して示す図10のように、91は他の実施の形態による通信システムを示し、当該通信システム91の例えばスレーブノード2dは、複数のスレーブ92a~92cと、これらスレーブ92a~92cの外部に設けられた切替手段93とを備えており、当該切替手段93に対して各スレーブ92a~92cが接続された構成を有する。なお、スレーブノード2dは、上述した実施の形態とはスレーブ92a~92cの外部に切替手段93が設けられているのみが相違している。
(6-1) Sharing of switching means 21 In the above-described embodiment, the case where the switching means 21 is provided for each of the slaves 10a to 10c has been described. However, the present invention is not limited to this. Instead of providing a switching unit for each slave, a switching unit may be provided separately from these slaves, and the switching unit may be shared by each slave. In this case, as shown in FIG. 10 where parts corresponding to those in FIG. 1 are assigned the same reference numerals, 91 denotes a communication system according to another embodiment, and for example, the slave node 2d of the communication system 91 includes a plurality of slaves. 92a to 92c and switching means 93 provided outside these slaves 92a to 92c are provided, and the slaves 92a to 92c are connected to the switching means 93. The slave node 2d is different from the above-described embodiment only in that a switching unit 93 is provided outside the slaves 92a to 92c.
 ここでは、スレーブ92a~92cは同一の構成であるため、説明の便宜上、スレーブ92bに着目し、例えばパケットPに付加されたデータ0をスレーブ92bが取得して、当該スレーブ92bに記憶されたデータ1をパケットPに付加する場合について以下説明する。 Here, since the slaves 92a to 92c have the same configuration, for convenience of explanation, attention is paid to the slave 92b. For example, the slave 92b acquires the data 0 added to the packet P and stores the data stored in the slave 92b. A case where 1 is added to the packet P will be described below.
 図2との対応部分に同一符号を付して示す図11に示すように、スレーブ92bは、アドレス照合手段22、パケット取得手段24及び送出手段25を備えており、当該スレーブ92bの外部に設けられた切替手段93の転送手段94に、パケット取得手段24が接続された構成を有し、上述した実施の形態に比べて、当該スレーブ92b内に切替手段93が設けられていない分だけ小型化が図られている。 As shown in FIG. 11 where parts corresponding to those in FIG. 2 are assigned the same reference numerals, the slave 92b includes an address matching means 22, a packet acquisition means 24, and a sending means 25, and is provided outside the slave 92b. The packet acquisition means 24 is connected to the transfer means 94 of the switching means 93, and compared with the above-described embodiment, the size is reduced by the amount that the switching means 93 is not provided in the slave 92b. Is planned.
 この場合、切替手段93は、入力手段23からパケットPが入力されると、当該パケットPを転送手段94によって各スレーブへそれぞれ同時に出力すると供に、当該パケットをそのまま経路選択手段95にも出力し、経路選択手段95及び出力手段26を経由させてパケットPを下流のスレーブノード2e(図10)へそのまま転送し得るようになされている。 In this case, when the packet P is input from the input unit 23, the switching unit 93 outputs the packet P to the respective slaves simultaneously by the transfer unit 94 and outputs the packet to the route selection unit 95 as it is. The packet P can be directly transferred to the downstream slave node 2e (FIG. 10) via the route selection means 95 and the output means 26.
 スレーブ92bは、上述した実施の形態と同様に、ウェイト領域Wを出力手段26から出力させているときに、アドレス照合手段22によるアドレス照合を行うと供に、経路選択手段31に対して接続経路を切り替えさせ得るようになされている。同時に、スレーブ92a,92cもアドレス照合を行っている。 As in the above-described embodiment, the slave 92b performs the address verification by the address verification unit 22 and outputs the connection path to the path selection unit 31 when the wait area W is output from the output unit 26. Can be switched. At the same time, the slaves 92a and 92c perform address verification.
 実際上、各スレーブ92a,92b,92cは、受け取ったパケットPに付加されたデータ0が自己宛でないことを判断すると、当該パケットPを破棄する。これに対し、パケットPがスレーブ92b宛であった場合、各スレーブ92a,92cは受け取ったパケットPに付加されたデータ0が自己宛でないため当該パケットPを破棄するが、スレーブ92bは、パケットPのアドレス領域ADに付加されたアドレスが自己アドレスと一致すると、パケット取得手段24において取得したパケットPのうちデータ領域DTに付加されているデータ0を取得する。 In practice, when each slave 92a, 92b, 92c determines that the data 0 added to the received packet P is not addressed to itself, it discards the packet P. On the other hand, when the packet P is addressed to the slave 92b, each slave 92a, 92c discards the packet P because the data 0 added to the received packet P is not addressed to itself, but the slave 92b When the address added to the address area AD matches the self address, the data 0 added to the data area DT is acquired from the packet P acquired by the packet acquisition means 24.
 このとき経路操作手段95は、スレーブ92bのアドレス照合手段22からの切替信号を受け取り、当該切替信号に基づいて出力手段26と転送手段30との接続を遮断すると供に、出力手段26と各スレーブ92a~92cの送出手段25とを接続する。これにより経路操作手段95は、スレーブ92bの送出手段25からデータ1を受け取り、データ0の替わりにウェイト領域Wの終端に当該データ1を付加し、これを出力手段26から下流のスレーブノードへ出力し得るようになされている。 At this time, the path operation means 95 receives the switching signal from the address collating means 22 of the slave 92b, cuts off the connection between the output means 26 and the transfer means 30 based on the switching signal, and outputs the output means 26 and each slave. The sending means 25 of 92a to 92c is connected. As a result, the path operation unit 95 receives the data 1 from the transmission unit 25 of the slave 92b, adds the data 1 to the end of the wait area W instead of the data 0, and outputs the data 1 from the output unit 26 to the downstream slave node. It is made to be able to do.
 以上の構成において、スレーブノード2dでは、上述した実施の形態と同様の効果を奏することに加え、各スレーブ92a~92c内に切替手段93がそれぞれ設けられていない分だけ、当該スレーブ92a~92cの小型化を図ることができると供に、スレーブノード2d自体の小型化を図ることができる。 In the above configuration, in the slave node 2d, in addition to the effects similar to those of the above-described embodiment, the switching means 93 is not provided in each of the slaves 92a to 92c. In addition to the reduction in size, the slave node 2d itself can be reduced in size.
 さらに、スレーブノード2dでは、各スレーブ92a~92cにおける転送処理を1つの切替手段93で実行できることから、スレーブ92a~92cの他にさらにスレーブを設け、スレーブ数を増加させていっても、スレーブノード2dから下流のスレーブノードへパケットPを転送する転送時間を、スレーブ数を増加させる前の転送時間のまま維持できる。すなわち、この場合、遅延時間はスレーブの数に依存することなく、スレーブノードの数に比例するように構成され、大幅に遅延時間を短縮させることが可能になる。さらに、各スレーブノード2b~2j内の回路も簡略化でき、ICの小型化も促進できる。 Furthermore, in the slave node 2d, the transfer processing in each slave 92a to 92c can be executed by one switching means 93. Therefore, even if a slave is provided in addition to the slaves 92a to 92c and the number of slaves is increased, the slave node The transfer time for transferring the packet P from 2d to the downstream slave node can be maintained as the transfer time before the number of slaves is increased. That is, in this case, the delay time does not depend on the number of slaves, and is configured to be proportional to the number of slave nodes, so that the delay time can be significantly shortened. Furthermore, the circuits in each of the slave nodes 2b to 2j can be simplified, and the miniaturization of the IC can be promoted.
 (6-2)転送方式について
 (6-2-1)整波方式
 切替手段21の一例としては、整波方式とリピータ方式による方法が考えられる。整波方式においては、例えば転送手段30はレシーバ素子などを内蔵し、これにより受け取った伝送信号を2値化し、さらにスレーブ内のクロックのタイミングでサンプリングすることで、伝送信号のジッター(時間軸に沿って生じている変動成分)やスキュー(傾き)による波形の崩れを修正し整波した信号へと変換する。この整波された信号は、経路選択手段31とパケット取得手段24へと送られる。経路選択手段21は、その整波された信号または送出手段25からの信号をドライバ素子などを通じて下流へと送出する。この整波方式の遅延は、主にスレーブ内のクロックのタイミングでサンプリングする際に生じるもので、1bit以下となる。
(6-2) Transfer Method (6-2-1) Wave Modulation Method As an example of the switching means 21, a method based on a wave rectification method and a repeater method can be considered. In the harmonized method, for example, the transfer means 30 has a built-in receiver element, etc., whereby the received transmission signal is binarized and further sampled at the timing of the clock in the slave, so that the jitter of the transmission signal (in the time axis) The waveform collapse due to the fluctuation component generated along the line) and the skew (tilt) is corrected and converted into a harmonized signal. The tuned signal is sent to the route selection means 31 and the packet acquisition means 24. The path selection means 21 sends the tuned signal or the signal from the sending means 25 downstream through a driver element or the like. The delay of this harmonizing method is mainly caused when sampling is performed at the timing of the clock in the slave, and is 1 bit or less.
 因みに、この整波方式の場合では、通信システム1における各切替手段21がサンプリングに使用するクロックに相互に誤差があり、なおかつパケット長が長い場合は、整波の最中に切替手段21において伝送信号の伝送クロックとサンプリングのクロックがズレてしまう状況が起こり得る。このようなズレの可能性がある場合は、転送自体を1bit以上遅延させて対処する必要があり、遅延の増大を招いてしまう問題がある。例えば、クロックが±100ppmの誤差を持つ場合は、最大5000bitで1bit分のズレが生じることになる。しかし、この場合、パケット長を5000bitより十分小さくすれば、クロック誤差による遅延を導入する必要がなくなるため、整波に起因する遅延を最小限にとどめることができる。一方で、パケット長を短くした場合には、実質的なデータの転送効率が下がる欠点もある。本発明による通信システム1では転送効率よりも、遅延性を重視するため、パケット長を短くし、整波方式の際に切替手段21で生じるによる遅延を1bit以下に留めるものとする。 Incidentally, in the case of this harmonizing method, when each switching means 21 in the communication system 1 has an error in the clocks used for sampling and the packet length is long, transmission is performed in the switching means 21 during wave shaping. There may be a situation where the signal transmission clock and the sampling clock are shifted. If there is a possibility of such a shift, it is necessary to cope with the transfer itself by delaying it by 1 bit or more, which causes an increase in delay. For example, when the clock has an error of ± 100 ppm, a deviation of 1 bit occurs at a maximum of 5000 bits. However, in this case, if the packet length is made sufficiently smaller than 5000 bits, it is not necessary to introduce a delay due to a clock error, so that the delay due to the harmonic wave can be minimized. On the other hand, when the packet length is shortened, there is a disadvantage that the substantial data transfer efficiency is lowered. In the communication system 1 according to the present invention, in order to place importance on delay rather than transfer efficiency, the packet length is shortened, and the delay caused by the switching means 21 in the wave shaping method is limited to 1 bit or less.
 (6-2-2)リピータ方式
 ロボットハンドのように、極めて狭い領域に多数のスレーブノードが密集する場合は、伝送距離が短いためスキューやジッタ等の影響を受けにくく、このような状況はロボットの場合、少なくない。このような場合には、単純にリピータを介して転送する方法を用いることにより、切替手段21における遅延を整波方式よりも小さくすることができる。
(6-2-2) Repeater method When a large number of slave nodes are crowded in a very narrow area like a robot hand, the transmission distance is short, so it is not easily affected by skew or jitter. In the case of In such a case, the delay in the switching means 21 can be made smaller than that of the harmonizing method by simply using a method of transferring via a repeater.
 例えば、図12に示すように、リピータ方式を用いた切替手段100は、入力手段23(図2)から受け取った伝送信号を2つに分岐し、そのうち一方の分岐信号を整波手段101により整波した後にパケット取得手段24へと出力する。なお、整波手段は、レシーバ素子102により受け取った伝送信号を2値化した後、クロック103のタイミングでサンプリング部104でサンプリングすることで、伝送信号の波形の崩れを修正し整波した信号を出力している。 For example, as shown in FIG. 12, the switching means 100 using the repeater system branches the transmission signal received from the input means 23 (FIG. 2) into two, and one of the branch signals is adjusted by the wave shaping means 101. After being waved, it is output to the packet acquisition means 24. The wave shaping means binarizes the transmission signal received by the receiver element 102, and then samples it at the timing of the clock 103 by the sampling unit 104, thereby correcting the waveform distortion of the transmission signal and converting the wave shaped signal. Output.
 このとき、他方の分岐信号は、リピータ素子106を介して出力側に出力されうる。また送出手段25からの信号は切替手段100内のドライバ素子107を介して出力側に出力される。因みに、リピータ素子106は入力信号と同様の信号を出力するものであるが、出力インピーダンスなどを改善する働きをもつ素子であり、遅延は極めて小さい。また、リピータ素子106とドライバ素子107の出力は有効化/無効化が可能であり、無効化により例えば高インピーダンスになるものを用いる。リピータ素子106とドライバ素子107の有効化/無効化はアドレス照合手段22により制御し、いずれか一方のみを有効化することで経路選択手段と同等の働きをなすものとする。これにより、入力手段23(図2)からの伝送信号、または送出手段25からの信号のいずれかが切替手段100から出力される。 At this time, the other branch signal can be output to the output side via the repeater element 106. The signal from the sending means 25 is output to the output side via the driver element 107 in the switching means 100. Incidentally, the repeater element 106 outputs a signal similar to the input signal, but is an element having a function of improving output impedance and the like, and the delay is extremely small. Further, the outputs of the repeater element 106 and the driver element 107 can be validated / invalidated, and for example, those having high impedance due to the invalidation are used. The validation / invalidation of the repeater element 106 and the driver element 107 is controlled by the address collating means 22, and the function equivalent to the path selection means is achieved by enabling only one of them. As a result, either the transmission signal from the input means 23 (FIG. 2) or the signal from the sending means 25 is output from the switching means 100.
 このときの切替手段100における遅延は、リピータ素子106の遅延と同じになるため、整波方式などに比して短くし得る。通常は、リピータ素子106のみが有効化しており、受信した伝送信号はそのままリピータ素子106を通過して出力され、送出手段25を出力する際は送出手段25に接続されたドライバ素子107のみを有効化し、送出手段25からのデータ送出が終了すると、再びリピータ素子のみを有効化する。 Since the delay in the switching means 100 at this time is the same as the delay of the repeater element 106, it can be shortened as compared with the harmonizing method or the like. Normally, only the repeater element 106 is enabled, and the received transmission signal is output as it is through the repeater element 106. When outputting the sending means 25, only the driver element 107 connected to the sending means 25 is valid. When the data transmission from the transmission means 25 is completed, only the repeater element is validated again.
 なお図2において示した切替手段21は、転送手段30と経路選択手段31とが示されているが、必ずしも物理的な構造として転送手段30と経路選択手段31が設けられている必要はなく、例えば図12で示した切替手段100のように、物理的な構造として転送手段と経路選択手段を設けておらずとも、機能的に同様な働きをする切替手段を構築してもよい。 The switching means 21 shown in FIG. 2 includes a transfer means 30 and a route selection means 31, but the transfer means 30 and the route selection means 31 are not necessarily provided as physical structures. For example, like the switching unit 100 shown in FIG. 12, a switching unit that functions in a similar manner may be constructed without providing a transfer unit and a route selection unit as a physical structure.

Claims (8)

  1.  パケットのアドレス領域に続いてウェイト領域が外部から入力される入力手段と、
     前記アドレス領域を前記外部へ出力させているとき、又は前記アドレス領域に続いて前記ウェイト領域を前記外部へ出力させているときに、前記パケットに付加されたアドレスと、予め自己に設定されている自己アドレスとが一致又は不一致であるかを判断するアドレス照合手段と、
     前記アドレス照合手段により前記パケットのアドレスと前記自己アドレスとが一致すると判断されたとき、前記ウェイト領域に続いて入力される受信データを取得するパケット取得手段と、
     前記アドレス照合手段により前記パケットのアドレスと前記自己アドレスとが一致すると判断されたときには、前記ウェイト領域を外部に出力し終えた直後に、送出手段に予め記憶されている自己データを前記ウェイト領域の終端に付加して外部へ出力させ、前記アドレス照合手段により前記パケットのアドレスと前記自己アドレスとが不一致であると判断されたときには、前記アドレス領域及び前記ウェイト領域に続いてそのまま前記受信データを外部へ出力させる切替手段と
     を備えることを特徴とする通信ノード。
    An input means in which the wait area is input from the outside following the address area of the packet;
    When the address area is output to the outside, or when the wait area is output to the outside following the address area, the address added to the packet and set in advance in advance An address verification means for determining whether the self-address matches or does not match;
    A packet acquisition means for acquiring received data input subsequent to the wait area when the address matching means determines that the address of the packet and the self address match;
    When the address matching means determines that the address of the packet matches the self address, immediately after the output of the wait area to the outside, the self data stored in advance in the sending means is stored in the wait area. When the address collating means determines that the address of the packet and the self address do not match, the received data is directly sent to the outside following the address area and the wait area. And a switching means for outputting to the communication node.
  2.  前記アドレス照合手段と前記パケット取得手段と前記自己データを記憶する前記送出手段とを備えた複数のスレーブと、
     前記入力手段に入力された前記パケットを各前記スレーブにそれぞれ伝えることが可能な前記切替手段とを備え、
     前記切替手段は、
     前記複数のスレーブのうち、前記アドレス照合手段により前記パケットのアドレスと前記自己アドレスとが一致すると判断したスレーブが存在するときには、該スレーブから前記自己データを受け取る
     ことを特徴とする請求項1記載の通信ノード。
    A plurality of slaves comprising the address verification means, the packet acquisition means, and the sending means for storing the self data;
    The switching means capable of transmitting the packet input to the input means to each of the slaves, and
    The switching means is
    2. The self data is received from the slave when there is a slave determined by the address matching unit that the address of the packet matches the self address among the plurality of slaves. Communication node.
  3.  前記外部へ現在出力中の前記パケットのうち、前記外部へ出力中または既に出力し終えた送り先を示す送り先アドレスが、出力手段に接続されている経路を経由して帰還アドレスとして帰還すると、前記送り先アドレスと前記帰還アドレスとが一致又は不一致であるかを判断し、
     前記送り先アドレスと前記帰還アドレスとが不一致であると判断したときには、前記現在出力中の前記パケットの出力を途中で中断させ、再び先頭から該パケットを前記外部へ出力させる再送手段を備える
     ことを特徴とする請求項1又は2記載の通信ノード。
    Of the packets currently being output to the outside, when a destination address indicating a destination that has been output to the outside or has already been output returns as a return address via a path connected to the output means, the destination Determining whether the address and the return address match or do not match,
    When it is determined that the destination address and the feedback address do not coincide with each other, there is provided retransmission means for interrupting the output of the packet currently being output and outputting the packet from the beginning to the outside again. The communication node according to claim 1 or 2.
  4.  前記アドレス照合手段と前記パケット取得手段とを備えた複数のスレーブと、
     各前記スレーブと外部デバイスとを接続する切替入出力手段とを備え、
     前記切替入出力手段は、前記自己データとなるデータを前記外部デバイスから受け取り、該データの種類に応じて各前記スレーブのいずれかを選択して該スレーブに該データを伝送する
     ことを特徴とする請求項1記載の通信ノード。
    A plurality of slaves comprising the address verification means and the packet acquisition means;
    Switching input / output means for connecting each of the slaves and an external device,
    The switching input / output unit receives data as the self data from the external device, selects any of the slaves according to the type of the data, and transmits the data to the slave. The communication node according to claim 1.
  5.  前記アドレス照合手段と前記パケット取得手段とを備えたスレーブと、
     前記スレーブと外部デバイスとを接続する複数の入出力手段とを備え、
     前記スレーブは、
     前記受信データの種類に応じて複数の前記入出力手段のいずれかを選択して該入出力手段に該受信データを伝送する
     ことを特徴とする請求項1記載の通信ノード。
    A slave comprising the address verification means and the packet acquisition means;
    A plurality of input / output means for connecting the slave and an external device;
    The slave is
    The communication node according to claim 1, wherein one of the plurality of input / output means is selected according to the type of the received data and the received data is transmitted to the input / output means.
  6.  各前記スレーブと外部デバイスとを接続する切替入出力手段を備え、
     前記切替入出力手段は、前記自己データとなるデータを前記外部デバイスから受け取り、該データの種類に応じて各前記スレーブのいずれかを選択して該スレーブに該データを伝送する
     ことを特徴とする請求項2記載の通信ノード。
    Comprising switching input / output means for connecting each slave and an external device;
    The switching input / output means receives data as the self data from the external device, selects one of the slaves according to the type of the data, and transmits the data to the slave. The communication node according to claim 2.
  7.  前記スレーブのうち少なくとも1つは、
     外部デバイスと複数の入出力手段を介して接続されており、前記受信データの種類に応じて複数の前記入出力手段のいずれかを選択して該入出力手段に該受信データを伝送する
     ことを特徴とする請求項2記載の通信ノード。
    At least one of the slaves is
    Connected to an external device via a plurality of input / output means, and selects one of the plurality of input / output means according to the type of the received data and transmits the received data to the input / output means. The communication node according to claim 2, wherein:
  8.  請求項1~7のうちいずれか1項記載の通信ノードが伝送路に接続されおり、
     前記パケットが複数の前記通信ノードを巡回する
     ことを特徴とする通信システム。
    The communication node according to any one of claims 1 to 7 is connected to a transmission line,
    A communication system, wherein the packet circulates a plurality of the communication nodes.
PCT/JP2010/072488 2009-12-21 2010-12-14 Communication node and communication system WO2011078017A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2009-289596 2009-12-21
JP2009289596A JP2011130371A (en) 2009-12-21 2009-12-21 Communication node and communication system

Publications (1)

Publication Number Publication Date
WO2011078017A1 true WO2011078017A1 (en) 2011-06-30

Family

ID=44195546

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2010/072488 WO2011078017A1 (en) 2009-12-21 2010-12-14 Communication node and communication system

Country Status (2)

Country Link
JP (1) JP2011130371A (en)
WO (1) WO2011078017A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7438471B1 (en) 2023-07-10 2024-02-26 三菱電機株式会社 Equipment, communication systems, communication control methods and programs

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56147541A (en) * 1980-04-17 1981-11-16 Mitsubishi Electric Corp Remote process input and output controller for computer
JPH0425254A (en) * 1990-05-21 1992-01-29 Matsushita Electric Ind Co Ltd Loop transmission equipment
JPH08154100A (en) * 1994-09-30 1996-06-11 Matsushita Electric Ind Co Ltd Communication equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56147541A (en) * 1980-04-17 1981-11-16 Mitsubishi Electric Corp Remote process input and output controller for computer
JPH0425254A (en) * 1990-05-21 1992-01-29 Matsushita Electric Ind Co Ltd Loop transmission equipment
JPH08154100A (en) * 1994-09-30 1996-06-11 Matsushita Electric Ind Co Ltd Communication equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
YOICHI ISHIWATA ET AL.: "In-body LAN and external computer system of ETL-Humanoid", IEICE TECHNICAL REPORT, CPSY96-112 TO 120 [COMPUTER SYSTEM], vol. 96, no. 597, 19 March 1997 (1997-03-19), pages 59 - 64 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7438471B1 (en) 2023-07-10 2024-02-26 三菱電機株式会社 Equipment, communication systems, communication control methods and programs

Also Published As

Publication number Publication date
JP2011130371A (en) 2011-06-30

Similar Documents

Publication Publication Date Title
US10530606B2 (en) Method for transmitting data via a serial communication bus, bus interface, and computer program
US20100146157A1 (en) Multi-radio interfacing and direct memory access based data transferring methods and sink node for performing the same in wireless sensor network
JPH0618374B2 (en) Data transmission method for multi-network system
US8660117B2 (en) Packet switching device and local communication network with such a packet switching device
US20050132089A1 (en) Directly connected low latency network and interface
JP2004515122A (en) System and method for transmitting data in parallel
CN101227296B (en) Method, system for transmitting PCIE data and plate card thereof
CN104144094B (en) Digital bus system slave node and its operating method
CN101242284B (en) Communication method and network device based on SPI bus
US11398919B2 (en) Method for detecting network subscribers in an automation network and automation network
CN112395230A (en) UART interface extension circuit based on programmable logic device
WO2003069440A2 (en) Network processor with high-speed transceiver
NL9000608A (en) COMMUNICATION SYSTEM.
US7843966B2 (en) Communication system for flexible use in different application scenarios in automation technology
WO2011078017A1 (en) Communication node and communication system
US20120044941A1 (en) Data transmission system, data transmission method, and data transmission device
CN108008657B (en) Load balancing redundancy switching system with control panel and switching panel buses directly connected
CN106664231A (en) Transmission unit with checking function
JP6337469B2 (en) Communication system and communication method
US20080101383A1 (en) Repeater Node for a Network
US11677829B2 (en) Data processing device and data processing system
An et al. Analysis of CAN FD to CAN message routing method for CAN FD and CAN gateway
CN110855540B (en) 485 multi-master communication method and system based on single-ring network
JP3948330B2 (en) Interconnect equipment between different networks
JP3571003B2 (en) Communication device and FPGA configuration method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10839250

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10839250

Country of ref document: EP

Kind code of ref document: A1