WO2013121568A1 - Node synchronization method, network transmission system, and node device - Google Patents

Node synchronization method, network transmission system, and node device Download PDF

Info

Publication number
WO2013121568A1
WO2013121568A1 PCT/JP2012/053724 JP2012053724W WO2013121568A1 WO 2013121568 A1 WO2013121568 A1 WO 2013121568A1 JP 2012053724 W JP2012053724 W JP 2012053724W WO 2013121568 A1 WO2013121568 A1 WO 2013121568A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
frame
slave
time
synchronization
Prior art date
Application number
PCT/JP2012/053724
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 富士電機株式会社
Priority to PCT/JP2012/053724 priority Critical patent/WO2013121568A1/en
Publication of WO2013121568A1 publication Critical patent/WO2013121568A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/403Bus networks with centralised control, e.g. polling
    • H04L12/4035Bus networks with centralised control, e.g. polling in which slots of a TDMA packet structure are assigned based on a contention resolution carried out at a master unit
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0647Synchronisation among TDM nodes
    • H04J3/065Synchronisation among TDM nodes using timestamps

Definitions

  • the present invention relates to a node synchronization method, a network transmission system, and a node device for realizing stabilization of a data exchange cycle of each node.
  • each device has a virtual shared memory (common memory) and transmits its own station (own node) data to all stations on the network at the update timing.
  • each received station updates its data and accesses an application, thereby realizing a data exchange system that guarantees real-time performance.
  • Patent Document 1 a method for realizing efficient broadcast communication (broadcast communication) on the network at the time of data exchange described above has been proposed (see, for example, Patent Document 1).
  • the time division multiple access method using the internal timer of each node and the internal timer correction of the slave node using the synchronization frame from the master node are used together.
  • the transmission path is configured as a network connected by a bus or a serial cable.
  • Ethernet registered trademark
  • Patent Document 1 When the technique as disclosed in Patent Document 1 is applied to a line using Ethernet as a physical layer, there are the following problems.
  • the physical layer is a cascade of buses or serial cables. Therefore, it can be assumed that the reception timing of the data transmitted by broadcast is a time difference that can be ignored at the same time or almost at each station.
  • Ethernet such as 100BASE-TX or 1000BASE-T
  • a star type is adopted as a topology
  • a configuration including a relay device such as a HUB (hub) is adopted.
  • HUB employs a relay method called store & forward when relaying frame data, and transmission to the destination node is not performed unless all the frame data is received. For this reason, the reception timing delay at each node of the broadcast transmission data varies depending on the number of HUB stages that pass through. Therefore, for example, when a high-efficiency data exchange is realized using a high-speed communication line such as 1000BASE-T, the delay as described above cannot be ignored.
  • the timer correction timing of each slave station varies, resulting in duplication (congestion) of data transmission timing in each station.
  • Congestion is fatal for an industrial network because frame data is discarded due to buffer capacity such as HUB as well as data delay.
  • the reception timing of the synchronization frame is not only delayed even if the frame is not discarded, but also delayed depending on the size and type of the congested frame. Time is indeterminate. Therefore, the conventional method has a problem that the data exchange cycle in the entire system is disturbed.
  • the present invention has been made in view of the above points, and an object thereof is to provide a node synchronization method, a network transmission system, and a node device for realizing stabilization of a data exchange cycle of each node.
  • the present invention provides a node synchronization method in which a master node having a timer and a plurality of slave nodes are connected via a communication path, and the timers of the respective nodes are synchronized.
  • the slave node After receiving the synchronization frame transmitted by the master node, the slave node initializes the timer of the slave node and transmits a reception completion frame to the master node.
  • the master node transmits by the slave node.
  • Round-trip transmission between the master node and the slave node from the difference between the time of the timer at the time of reception and the timer time at the time of transmission of the synchronization frame transmitted from the own node
  • the delay time is calculated, and the calculated round trip transmission delay time is notified to the slave node.
  • the slave node receives the round-trip transmission delay time notification frame, and sets the timer in the own node based on the round-trip transmission delay time included in the notification frame. Synchronize with.
  • a timer of a node (station) configuring a network is adjusted not to a synchronization frame reception timing but to a synchronization frame transmission timing of a master station.
  • the present invention performs synchronization matching that minimizes the influence (for example, synchronization error) due to the relay delay of a frame such as a relay device (for example, HUB) inserted into a communication path (network), for example.
  • the synchronization in the present embodiment refers to a state in which, for example, the phase (timer) of the counter operation of each node is matched, but is not limited to this.
  • the present invention can perform communication without causing data congestion on the network at the time of transmission of the synchronization frame by having a margin before transmission of the synchronization frame.
  • FIG. 1 is a diagram illustrating an example of a schematic configuration of a network transmission system according to the present embodiment.
  • the network transmission system 10 shown in FIG. 1 includes a plurality of node devices 11 (node devices 11-1 to 11-3 in the example of FIG. 1) and a HUB (hub) 12 as one or a plurality of relay devices. (HUBs 12-1 to 12-5 in the example of FIG. 1). Note that the number and types of node devices and relay devices, and connection methods are not limited to this.
  • the node device 11-1 as the node A is a master node (master station), and the node device 11-2 as the node B and the node device 11-3 as the node C are slave nodes ( Slave station).
  • the communication path of the network transmission system 10 is, for example, a star type having a relay device between the master node 11-1 and the slave node 11-2.
  • the relay apparatus uses HUB as an example, but the present invention is not limited to this, and for example, a router, a repeater, an optical converter, or the like can be used.
  • the master node and the slave node are connected via a communication path.
  • the master node and the slave node are used as, for example, a network of controllers (control devices), basically, devices used in the controller system are targets of masters or slaves.
  • the device include a controller, a PC (Personal Computer), a server, an input / output (IO) module, and a drive device (for example, an inverter and a servo).
  • the node device 11-1 and the node device 11-3 are connected to the same HUB 12-1, and the node device 11-2 passes through a 5-stage HUB (relay device).
  • the node device 11-1 and the node device 11-3 are connected.
  • FIG. 2 is a diagram illustrating an example of data transmission before node synchronization correction.
  • FIG. 2 an example of data transmission when the node device 11-2 (node B) or the connected HUB 11-2 is powered on and the node device 11-2 newly joins a communication path (network). Is shown. Note that the node device 11-1 (node A) and the node device 11-3 (node C) at this time are already synchronized.
  • each node has a cycle timer (first timer) and a send timer (second timer).
  • the synchronization frame 21 (in the example of FIG. 2, the synchronization frames 21-1 to 21-4) is transmitted according to the cycle T of the cycle timer (A) of the node device 11-1. Yes.
  • the node device 11-1 also clears the send timer 22 (send timers 22-1 to 22-3 in the example of FIG. 2) at the cycle timer clear timing. Thereafter, the node device 11-1 transmits the transmission data 23 (transmission data 23-1 to 23-3 in the example of FIG. 2) of each node at the timing of the send timer up.
  • the node device 11-2 receives the synchronization frame 21 from the node device 11-1 via the HUB 12-1. Therefore, a delay 24 occurs at the reception timing of the synchronization frame 21. At this time, since the node device 11-2 (node B) is not synchronized, the cycle T and the send timer (B) of the node device 11-2 are cleared at the reception timing of the synchronization frame 21. Done.
  • the send timer (B) operates in a state including the delay 24.
  • the node device 11-3 node C also includes a delay corresponding to one HUB, but here it is not considered because it is a little in time.
  • data 25 (data 25-1 to 25-3 in the example of FIG. 2) is transmitted at the timing of the send timer up of the node device 11-2 in the state described above.
  • the node device 11-1 and the node device 11-3 overlap with, for example, the synchronization frames 21-2 to 21-4 at the timing of receiving the data 25, and congestion occurs.
  • control can be performed so that data transmission from a participating node (for example, the node device 11-1) is not performed until synchronization is completed.
  • an example expressing congestion is shown.
  • a general Ethernet HUB employs an interface method called store & forward.
  • all the sent frames are stored in the reception buffer in the HUB, and are transmitted after performing the HUB internal processing (for example, abnormality determination, destination determination, etc.).
  • the reception buffer assuming that the destination port is in use has a sufficient size. If there is some congestion, communication is performed without data loss. be able to.
  • the reception timing of the synchronization frame is an important element for synchronization, and delayed reception of the synchronization frame is fatal.
  • frame priority control can be performed by QoS (Quality of Service) or the like.
  • QoS Quality of Service
  • the synchronization frame 21 is also delayed in reception by the node device 11-3 regardless of the priority setting. The synchronization of each node on the system will be lost.
  • HUB used in Ethernet does not have an IP address (Internet Protocol Address) and is not normally recognized by the system configuration node.
  • IP address Internet Protocol Address
  • a HUB can be constructed in a star topology, it is possible to construct a system via a number of stages of HUB between system configuration nodes, and the delay time due to the HUB varies depending on the manufacturer, model, etc. There are many cases. Therefore, in practice, it has been difficult to set a delay time from the master node to each slave node until the system is configured.
  • the transmission delay time between the master node and the joining slave node is determined, and this is set as the joining slave node, so that the master timer and the joining slave timer are synchronized, and then joined to the system. Can be made.
  • FIG. 3 is a diagram showing an example of a data exchange procedure for correcting the slave node time.
  • TC bands 31 and 37 indicate the transmission band (timer clear) of the synchronization frame
  • TS bands 32 and 38 indicate the data transmission band (timer send), and each is transmitted at a predetermined cycle. Is done.
  • nodes A, B, and C in the example of FIG. 3 correspond to the node devices 11-1, 11-2, and 11-3, respectively.
  • the squares shown in FIG. 3 indicate frames
  • the squares on the lines for the nodes A to C indicate transmission frames
  • the squares below the lines indicate reception frames.
  • the TC frame indicates a synchronization frame
  • the TS * (* indicates any of A to C) frames indicates node data from any of the nodes A to C.
  • TSA indicates that the node data is from node A (node device 11-1).
  • a req frame 33 indicates subscription request data
  • an OK frame 34 indicates subscription permission data
  • a dly frame 35 indicates a TC reception delay
  • a SET frame 36 indicates a delay time setting (specifically, Indicates round trip transmission delay time setting).
  • the node B (node device 11-2) that is the joining node transmits the subscription request req frame 33 in the TS band 38 to the node A (node device 11-1) that is the master node.
  • the node A determines whether or not the participation requesting node can participate, and if the participation is permitted, the node A issues an OK frame 34 for permission to join following the synchronization frame TC.
  • the OK frame 34 is expressed as a separate frame.
  • the present invention is not limited to this.
  • the OK frame 34 may be configured as data on the synchronization frame TC.
  • the node B (node device 11-2) as a slave node that has received the OK frame 34 that has been permitted to join from the node A transmits a dly frame 35 that is a TC reception delay frame to the master at the next synchronization frame TC reception timing. To do. This frame is transmitted at the timing of receiving the synchronization frame TC.
  • the node device B which is a joining node, has already received the synchronization frame TC several times, and has cleared (initialized) the internal timer at that timing. For this reason, the node B, which is a joining node, may transmit at the clear timing of the cycle timer of the own node (own station) in the same manner as the synchronization frame TC transmission of the master.
  • the dly frame 35 which is a TC reception delay frame, is unicast (one-to-one) communication to the master node, and thus overlaps the reception of the synchronization frame TC to the slave node that has already joined the network transmission system. There is nothing.
  • the node A that has received the dly frame 35 records the value of the cycle timer at that timing.
  • the node A sets the transmission time obtained above in the SET frame 36 for setting the delay time for the joining slave node (node B), and uses this SET frame 36 as a round trip transmission delay time notification frame.
  • the Node B that has received the SET frame 36 subtracts the round-trip transmission delay time set in the SET frame 36 from its own cycle timer (accelerates timer up) (for example, time 39 shown in FIG. 3),
  • the cycle timer is synchronized with the timer of the node A that is the master node.
  • the cycle timer of the node B is delayed from the timer of the node A, and thus the synchronization is performed by the above-described subtraction process.
  • the present invention is not limited to this.
  • the round-trip transmission delay time set in the SET frame 36 is added to the own cycle timer so that the own cycle timer is set at the master node. It can be synchronized with the timer of a certain node A.
  • the delay time setting SET frame 36 may also be data of the synchronization frame TC, similar to the subscription-permitted OK frame 34. In this way, the node that has finished adjusting the cycle timer is allowed to transmit data in the TS band, assuming that it is permitted to join the system.
  • the req frame 33 is used as the subscription request data and the OK frame 34 is used as the subscription permission data frame for the node subscription.
  • the present invention is not limited to this.
  • the synchronization in this embodiment can be performed even in a procedure in which station numbers are sequentially designated in the framing frame TC and a station scheduled to join among the designated stations (nodes) responds with the dly frame 35.
  • a node far in terms of transmission time is, for example, a node having a predetermined number or more of the number of HUB stages passed through.
  • a margin time can be provided between the timing of the final data transmission and the transmission timing of the synchronization frame TC.
  • the conventional method depends on the system configuration and is not uniquely determined by the number of nodes or the like.
  • the master node (node device 11-1) in the present embodiment performs the above-described joining process for all slave nodes of the network transmission system 10, the transmission delay time between the master and each slave is maintained. Yes. Therefore, although the master node is not necessarily at the center of the configuration, for example, a predetermined value based on the maximum transmission delay time (round-trip transmission delay time) for all slave nodes can be set as the margin time.
  • the margin time in the present embodiment is a time during which data transmission or the like provided for avoiding congestion, collision, etc. of data flowing through the network is not performed. In the present embodiment, it is possible to prevent the synchronization frame TC from being congested by providing a margin time as described above.
  • the margin time may be longer than the maximum round trip transmission delay time, for example, preferably about 2 to 3 times.
  • FIG. 4 is a diagram showing an example of data transmission after node synchronization correction.
  • the margin time 41 is set as described above.
  • data transmission between nodes can be completed by setting a margin time 41 as shown in FIG. That is, in the present embodiment, a value that allows for the margin time 41 is set for the cycle T of the cycle timer.
  • the slave node when synchronization is performed between the master node and the slave node, the slave node sequentially responds simultaneously with a preset send timer up after the master node transmits a synchronization frame.
  • the margin time 41 means, for example, a time until the next synchronization frame transmission of the master node with respect to the transmission timing of the last slave node. That is, the margin time 41 means the time from the timing at which all the slave nodes have transmitted responses to the synchronization frame transmission of the master node to the timing at which the next synchronization frame is transmitted.
  • FIG. 5 is a diagram illustrating an example of a system configuration for explaining how to determine the allowance time.
  • the margin time is set in accordance with the number of data relay apparatuses in the system configuration. Specifically, for example, the data arrival time of the route having the largest number of data relay apparatuses among the communication between nodes can be used, but the present invention is not limited to this.
  • the master node is not determined in advance, but is determined by, for example, a master determination method in node synchronization processing of the present embodiment described later. Therefore, all of the nodes A to H can be master nodes unless the node device 51 has a special setting (such as a slave mode).
  • the system can be operated without problems such as data congestion and collision by setting a margin time based on, for example, the data arrival time from the node A to the node H, the maximum delay time, and the like.
  • the maximum delay time detected is the number of relay stages from the node D or node E to the node A or node H (four stages in the example of FIG. 5). It turns out that. Further, the detected maximum delay time is minimum when the central node of the system configuration becomes the master. In the example of the network transmission system 50 in FIG. 5, the maximum delay time is minimum when the node D or the node E is the master node. Become. In other words, if the master node is at the center of the system configuration, the maximum delay time in that configuration is between the slaves arranged opposite to each other across the master node (in the example of FIG. 5, node A, node H).
  • the margin time when setting the margin time, it is possible to include the delay time between all nodes by setting about 2 to 3 times the maximum delay time from the master node as a reference. It becomes possible. Note that the margin time increases as the master node deviates from the center of the system configuration.
  • the “maximum cascade stage number ⁇ 2 times” of the relay device can be uniquely determined as a margin time.
  • the maximum number of stages of the relay device of the system can be set in advance by the user, and abnormal termination or the like can be performed when the number of stages is exceeded.
  • a node exceeding a preset margin time is prevented from joining the system.
  • the master node cannot receive within the TC band when receiving a subscription request, it is possible to control the subscription to the system by determining that a node exceeding the margin time has been inserted.
  • the master node refuses to join a node that exceeds the above-described margin time, and the slave node notifies the user that there is an abnormality in joining.
  • processing such as setting no delay time or responding abnormally is performed.
  • the resetting of synchronization means, for example, recalculation or resetting of delay when there is a configuration change.
  • the delay time is set, for example, when the node system is joined or when the master is disconnected.
  • the delay time may be measured a plurality of times (several tens of times) when the system joins or the master leaves, and the average value may be set as the delay time between nodes.
  • the state may change due to aging of nodes and devices, ambient environment (for example, temperature, noise), and the like.
  • delay time measurement is performed for all nodes participating in the network transmission system, for example, at a constant cycle (for example, once every several seconds), and the delay time is set again.
  • the synchronization is basically adjusted on the slave side. For example, in the present embodiment, a delay time is distributed from the master node to each slave node, and the timer is adjusted correspondingly. While the slave node participating in the system can synchronize with the master node, the synchronization frame TC transmitted from the master node is received with a delay of the delay time.
  • the reception timing of the synchronization frame TC is measured by the timer of the own node (own station), and the time is compared with a preset delay time at the time of synchronization with the master node. It is possible to detect whether or not synchronization has occurred.
  • the present embodiment for example, when the TC reception timing is confirmed a plurality of times, and reception of TC is delayed from a set delay time in advance by a predetermined number (for example, 5 times) in advance, etc. Based on the set condition, the delay or advance of its own timer is detected. Further, in the present embodiment, based on the amount of delay or advance of own timer obtained at the time of detection described above, a correction for synchronizing the timer in the own node with the timer of the master node so as to eliminate the above-described synchronization deviation. I do.
  • FIG. 6 is a flowchart illustrating an example of master determination in node synchronization processing. 6 illustrates a procedure in which one of a plurality of node devices connected to the network is determined and operated as a master node, but is not limited thereto.
  • the node synchronization process first initializes each resource of the node device (S01), and monitors the initial line when it is normally initialized (S02).
  • monitoring of the initial line means monitoring of the line during initial (initialization), for example, and is distinguished from monitoring during operation.
  • frames such as TC (synchronization frame transmission band (timer clear)), TS (data transmission band (timer send)), and ITC (TC frame used only during system initialization) are included. There is a possibility of flowing.
  • the ITC does not flow during operation, unlike during initial operation.
  • a line status check is performed. The check cycle can be checked at a timing such as “maximum cycle time ⁇ 3 times”, but is not limited to this, and may be checked at another timing.
  • the node synchronization process determines whether the monitoring timer is up (UP) without receiving the above-described TS, ITC, or TC as a result of monitoring (S03).
  • an initial temporary master is determined (S04).
  • the initial temporary master monitors, for example, a station number (node number), a refresh cycle delay, TC reception of other node devices (other stations), and the like.
  • the initial temporary master controls ITC transmission.
  • the master right is acquired and the master operation is performed (S06).
  • the master operation in the present embodiment is, for example, at least one of the above-described TS reception monitoring, joining node management, transmission delay time calculation, message transmission control, delay time setting transmission for each slave node, and the like.
  • the present invention is not limited to this.
  • the node synchronization process if the above-described condition of S05 is not satisfied (NO in S05), it is determined whether another node apparatus TC is received or an ITC having a higher priority than the own node is received. Judgment is made (S07). In the node synchronization process, when another node apparatus TC is received or an ITC having a higher priority than the own node is received (YES in S07), a process for slave operation described later is performed (S08).
  • the process described above is repeated when there is a mild abnormality that can be easily recovered, such as a process delay in memory read / write or a minor communication failure. Done.
  • a process of notifying error information may be included.
  • FIG. 7 is a flowchart showing an example of slave determination in the node synchronization processing.
  • a procedure is shown in which one of a plurality of node devices connected to the network is determined and operated as a slave node, but is not limited thereto.
  • the node synchronization process first initializes each resource of the node device (S11), and monitors the initial line when it is normally initialized (S12). In the process of S12, for example, the line status is checked.
  • the check cycle can be checked at a timing such as “maximum cycle time ⁇ 3 times”, but is not limited thereto.
  • the node synchronization processing determines whether there is reception of TS, ITC, or TC as a result of monitoring (S13).
  • S13 the condition of S13 described above is satisfied (YES in S13)
  • S14 an initial master is determined (S14).
  • the initial master determination in the process of S14 includes, for example, “a state in which there is a master (or master candidate) other than the own node and the own node may become a slave”.
  • the own node when the own node is in the line monitoring state after initialization and a frame such as TC has already flowed, the own node may be a slave.
  • monitoring is performed for a predetermined period (for example, three periods), and if that is all right, the node that transmits TC (or ITC) is recognized as a master, and the own node tries to become a slave. To do.
  • the initial master monitors for example, TC, TS, etc., receives ITC or TC, and checks the master station number. This monitoring is performed with reference to, for example, three laps, but is not limited to this.
  • a TC or ITC of the same node it is determined whether or not a TC or ITC of the same node has been received for a predetermined number of consecutive times (for example, three consecutive) (S15), and a TC or ITC of the same node has been received for a predetermined number of consecutive times If this is the case (YES in S15), a slave operation confirmation wait state is entered (S16). At this time, in this embodiment, the network cannot be joined. In the process of S16, for example, a TS transmission delay time is set and a delay time backup for the connection node is performed.
  • the node synchronization processing determines whether or not the master is permitted to join and the delay time setting is completed (S17). If the master is permitted to join and the delay time setting is completed (YES in S17). Then, slave operation is performed (S18).
  • the node synchronization processing is terminated.
  • the process of S15 described above when the condition of S15 is not satisfied within a predetermined time, the own node may try to become the master. In this case, after the slave operation is confirmed, if the master is not allowed to join, an error notification may be given due to network setting abnormality or the like.
  • the node synchronization process when the condition of S17 is not satisfied within the predetermined time in the process of S17 (NO in S17), the node synchronization process is terminated.
  • the process described above is repeated when there is a mild abnormality that can be easily recovered, such as a process delay in memory read / write or a minor communication failure. Done.
  • a process of notifying error information may be included.
  • FIG. 8 is a flowchart showing an example of switching from the slave to the master in the node synchronization processing.
  • S21 node synchronization processing
  • the node synchronization processing makes an inquiry about master right transfer on the network (S23). Specifically, the TS with the inquiry bit turned ON is transmitted (S24).
  • the node synchronization processing is performed for a predetermined time. Wait for operation master switching.
  • the node synchronization processing is set as an operational temporary master when it is detected that the master has been dropped in the operation master switching waiting state in the processing of S22 described above (S25). At this time, the node synchronization processing performs ITC transmission at a predetermined timing. Further, the node synchronization processing waits for switching of the operation master when ITC or TC having a higher priority than the own node is received.
  • the node synchronization process it is determined whether or not the ITC has been transmitted continuously for a predetermined number of times (for example, three times) within a predetermined time (S26), and when the predetermined number has been transmitted continuously (YES in S26).
  • the master operation is switched (S27). Further, in the node synchronization process, when a predetermined number of ITCs cannot be transmitted continuously within a predetermined time (NO in S26), the process is terminated and the operation master is waited for switching.
  • the participating nodes of the network in operation always monitor the frame
  • the master node monitors the TC frame from the master having higher priority than itself
  • the slave node monitors the drop of the master node.
  • the slave node that detects the drop of the master node adds a master transfer inquiry to the TS frame, and performs a master transfer process.
  • the master switching state is entered, and the normal operation is entered after the master is determined.
  • the priority described above is determined by, for example, the type of node (for example, module shape, PCI-e (Peripheral Components Interconnect-express) board), the network station number (node number) in ascending order, and the like.
  • FIG. 9 is a diagram illustrating an example of a functional configuration of the node device according to the present embodiment.
  • the node device 60 shown in FIG. 9 includes a communication interface (IF) means 61, a load command means 62, a storage management means 63, a system management means 64, a switch (SW) management means 65, and a time management means (timer). ) 66, application control means 67, network control means 68, and input / output (IO) control means 69.
  • IF communication interface
  • load command means 62 includes a storage management means 63, a system management means 64, a switch (SW) management means 65, and a time management means (timer).
  • SW switch
  • timer time management means
  • the node device 60 shown in FIG. 9 has a common configuration for both the master node and the slave node. Also, the node device 60 shown in FIG. 9 has a configuration including both functions of the controller and the network.
  • the processing of the controller is performed, for example, with a constant cycle as a control unit (scan cycle).
  • a control LSI Large Scale Integration
  • an interrupt with a constant cycle from a control LSI (Large Scale Integration) (for example, a master LSI) is performed.
  • LSI Large Scale Integration
  • the present invention is not limited to this. For example, processing may be performed based on a built-in timer of a microcomputer.
  • the reception interrupt of the inter-controller network is used, the delay time is calculated from the difference between the TC reception timing and the scan cycle interrupt from the master LSI, and correction is performed.
  • the controller can operate by downloading a support program (loader) on the PC, a combination program, and an operation definition.
  • the node device 60 as a normal controller and a loader is connected to an external device or the like by a communication IF means 61 via, for example, a serial cable or a USB (Universal Serial Bus).
  • a communication IF means 61 via, for example, a serial cable or a USB (Universal Serial Bus).
  • the transmitted / received communication is output from the communication IF unit 61 to the loader command unit 62.
  • loader command means 62 exchanges corresponding processing by a protocol called a loader command.
  • loader commands include commands such as application start / stop (system management control), application data monitoring and modification (application management control), program, definition download (storage management control), etc. Acts on function.
  • the storage management means 63 is rewritable and stores various information in a flash memory such as an SD memory card, which is a non-volatile semiconductor memory that does not lose data even when the power is turned off. Management such as reading.
  • the storage management unit 63 outputs the acquired information to at least one of the system management unit 64, the application control unit 67, and the network control unit 68 as necessary.
  • the system management unit 64 executes preset processing (for example, execution cycle, memory allocation, IO configuration management, initialization of each resource, etc.), status monitoring (failure diagnosis) of the node device 60, IO data exchange processing Etc.
  • the system management means 64 performs processing as described above based on various data obtained from the storage management means 63, loader command means 62, SW monitoring means 65, time management means 66, application control means 67, and IO control means 69. Execute.
  • the system management means 64 receives the synchronization frame transmitted after the master node timer is up when the network control means 68 is set as a slave node. Further, the system management means 64 initializes the above-described timer for the TC and TS transmission periods in correspondence with the received synchronization frame, and transmits the reception completion frame from the communication IF means 61 to the master node after the initialization.
  • the system management unit 64 receives the transmission delay time notification frame from the master node when the network control unit 68 sets the slave node, and based on the received transmission delay time, Adjust. Specifically, when the timer in its own node is delayed from the transmission delay time of the master node, the system management means 64, for example, uses the received transmission delay time (specifically, the round-trip transmission delay time) as its own. By subtracting from the current time of the timer of the node, the node device 60 can synchronize the current time of the local node timer with the master timer.
  • the received transmission delay time specifically, the round-trip transmission delay time
  • the system management means 64 adds the above-described transmission delay time to the current time of the own node timer, so that the master timer Synchronize with.
  • system management unit 64 receives the synchronization frame reception completion frame from the slave node when the network control unit 68 sets the master node. Further, the system management unit 64 records the current time obtained from the RTC in the above-described timer of the TC and TS transmission cycle in the time management unit 66 based on the received synchronization frame reception completion frame.
  • the system management means 64 determines the round-trip transmission delay between the master node and the slave node from the difference between the current time of the timer when receiving the reception completion frame and the timer time when transmitting the synchronization frame transmitted from the own node. Calculate time. Further, the system management means 64 notifies the calculated round trip transmission delay time to the slave node.
  • the system management means 64 sets a margin time during which data transmission or the like is not performed at the master node with reference to the maximum transmission delay time between a plurality of slave nodes. Further, the system management means 64 uses the interval from the slave node data transmission to the master node synchronization frame transmission as a margin time. As a result, in the present embodiment, it is possible to prevent communication congestion from occurring during transmission of the synchronization frame.
  • system management means 64 performs various settings, control, monitoring, and the like.
  • the settings in the system management means 64 are basically read from the storage management means 63.
  • the setting file writing for storage management is stored from the outside via the communication IF means 61 and the loader command means 62, for example.
  • the setting contents include, for example, system settings (for example, IO module configuration, control cycle settings, etc.), module settings (for example, module initialization operation settings, etc.), but are not limited thereto. is not.
  • system settings for example, IO module configuration, control cycle settings, etc.
  • module settings for example, module initialization operation settings, etc.
  • the system settings described above are settings for the entire system. For this reason, settings for individual modules are transmitted as messages through network control or IO control.
  • control in the system management means 64 performs operation control such as starting and stopping of applications, and other resets (initialization), for example. These operation controls are instructed from the loader command means 62 or the SW monitoring means 65, for example. Moreover, as control in the system management means 64, in addition to the content described above, for example, control of exchange processing of IO data during operation, network data, and the like is performed.
  • monitoring in the system management means 64 monitors module hardware failures, network, and system-wide abnormality information collected by network control at regular intervals.
  • monitoring by the system management means 64 includes system shutdown, notification to the user (for example, notification using voice, light, etc.), notification to a predetermined computer (for example, management terminal) using a loader command (for example, an error message or the like is performed.
  • the SW monitoring unit 65 monitors an external key switch (Key SW) (for example, power ON / OFF, etc.), a station number SW, and the like, and sends each SW signal obtained by, for example, a user operation to the system management unit 64. Output.
  • Key SW for example, power ON / OFF, etc.
  • the time management means 66 acquires time information that serves as a reference for synchronization. Specifically, the date information acquisition unit 66 acquires a signal from, for example, an RTC (Real Time Clock), and manages time and the like by a calendar function or the like.
  • the time management means 66 may have the cycle timer (first timer) and the send timer (second timer) described above. Further, the time management unit 66 may manage the above-described margin time obtained from the system management unit 64. The time management unit 66 outputs the acquired time information to the system management unit 64.
  • the application control means 67 stores various application programs for controlling applications such as the above-described various node synchronization processes implemented in the present embodiment. Control signals from the loader command means 62 and the system management means 64 are stored. Various application processes are executed based on the above.
  • the network control means 68 controls the entire network for sending and receiving messages and control data with other nodes, for example. Further, the network control unit 68 performs control for the own node to set to either the master node or the slave node based on the connection state with other node devices as described above.
  • the network control means 68 performs control so as to reject the subscription when the slave node requesting to join is a slave node exceeding the margin time when the own node is the master node. Further, the network control unit 68 determines a temporary master from a plurality of node devices, operates the temporary master as a master node when the ITC transmission is a predetermined number or more and a slave join notification is received from another node device. Then, other node devices are operated as slave nodes.
  • the network control unit 68 executes predetermined processing when a node device is newly joined to a plurality of node devices connected to the communication path (communication network) or when the master node is dropped from the communication path. Re-execute the process to synchronize. Further, when the node is a slave node, the network control unit 68 measures the TC reception timing with the timer of the node, and compares the measured time with a preset delay time, thereby It is detected whether or not synchronization has occurred, and correction is performed so that the above-described synchronization is eliminated in accordance with the delay or advance of the timer obtained from the detection result.
  • the IO control means 69 controls the overall input / output of messages and control data with the connected external device.
  • the network function is described on the same functional block.
  • the present invention is not limited to this.
  • the IO control unit 69 is divided into separate modules. It can be implemented to exchange messages and control data between modules.
  • FIG. 10 is a diagram illustrating an example of a hardware configuration of the node device.
  • the node device 70 includes a basic system unit 71, an application control unit 72, and a network control unit 73.
  • the basic system unit 71 corresponds to the system management unit 64 described above
  • the application control unit 72 corresponds to the application control unit 67
  • the network control unit 73 corresponds to the network control unit 68.
  • the basic system unit 71 includes system control means 81, SDRAM (Synchronous DRAM) 82, LAN (Local Area Network) 83, RTC 84, SD memory (Secure Digital memory) 85, and flash memory (Flash Memory) 86. And an internal bus management LSI 87, an SRAM (Static Random Access Memory) 88, and a master LSI 89.
  • the application control unit 72 includes an application network unit 91, a master LSI 92, an SRAM 93, a flash memory 94, and a DDR-SDRAM (Double-Data-Rate Synchronous Random Access Memory) 95. Yes.
  • the SX bus (high-speed bus) and the E-SX bus (super high-speed bus) are predetermined input / output (IO) control buses.
  • the system control 81 performs control in the basic system of the node device 70.
  • the system control 81 controls transmission / reception of various data from an external device connected via the LAN 83, controls the operation of the entire system based on time information obtained from the RTC 84, and an application (program) such as the SD memory 85. Is read and executed.
  • the system control unit 81 may input / output various data from an external device via a USB or the like.
  • Master LSIs 89 and 92 are control LSIs for the IO control bus.
  • DDR-SDRAM 95, SDRAM 82, and SRAMs 88 and 93 are volatile memories
  • flash memories 86 and 94 are writable nonvolatile memories.
  • the internal bus management LSI 87 is an LSI (FPGA (Field-Programmable Gate Array) for connecting microcomputers.
  • the internal bus management LSI 87 is connected to, for example, a shared memory (for example, a shared memory included in the master LSI 92 shown in FIG. 10).
  • the internal bus management LSI 87 controls access to the SRAM of another CPU (Central Processing Unit) connected by the SX bus.
  • CPU module such as PLC (Programmable Logic Controller), etc. It means a module that performs application computations, and the internal bus management LSI 87 handles interrupts between microcomputers. Do.
  • the own node (own station) area corresponds to the processor bus space in FIG.
  • the above-described processor means a module that executes, for example, a PLC application.
  • the application network means 91 has a structure that mainly uses, for example, a dual-core microcomputer and processes each application and network.
  • the hardware configuration described above is not limited to this in the present invention.
  • one microcomputer may be used.
  • each function as shown in FIG. 9 can be realized by using the hardware configuration shown in FIG. Specifically, the node device 60 in this embodiment is set to either a master node or a slave node based on the connection state with other node devices. Further, when the node device 60 is set as a slave node, the node device 60 receives a synchronization frame transmitted by the master node, thereby initializing a timer of the slave node and transmitting a reception completion frame to the master node.
  • the node device 60 when the node device 60 is set as the master node, the node device 60 receives the reception completion frame transmitted by the slave node, and the timer at the time of transmission and the timer at the time of transmission of the synchronization frame transmitted from the own node.
  • the round trip transmission delay time between the master node and the slave node is calculated from the difference with the time.
  • the node device 60 transmits a round trip transmission delay time notification frame for notifying the slave node of the calculated round trip transmission delay time, causes the slave node to receive the round trip transmission delay time notification frame, and is included in the notification frame. Based on the round-trip transmission delay time, the timer in the own node is synchronized with the timer of the master node.
  • a program for causing a computer to function as each unit included in the node device 60 described above is generated, and the generated program is installed in a computer such as a PC.
  • a program for causing a computer to function as each unit included in the node device 60 described above is generated, and the generated program is installed in a computer such as a PC.
  • stabilization of the data exchange cycle of each node can be realized.
  • a timer of each node is synchronized with a shared memory network using a time division multiplex transmission method, thereby improving transmission efficiency and data exchange.
  • Efficiency and stabilization of the data exchange cycle can be realized.
  • this embodiment can be applied to a synchronization method when performing a series of operations in a large-scale facility such as a steel plant using a plurality of operations. It can be widely applied as a synchronization method.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

This slave node receives a synchronization frame transmitted by this master node, thereby initializing a timer of the slave node. The slave node then transmits a transmission received frame to the master node. The master node receives the transmission received frame transmitted by the slave node, and from the difference between the timer time at reception and the timer time when the synchronization frame that was transmitted from the slave node, the master node calculates the round-trip transmission delay time between the master node and the slave node, and transmits a round-trip transmission delay time notification frame notifying the slave node of the calculated round-trip transmission delay time. The slave node receives the round-trip transmission delay time notification frame, and on the basis of the round-trip transmission delay time included in the notification frame, synchronizes the slave node timer with the master node timer.

Description

ノード同期方法、ネットワーク伝送システム、及びノード装置Node synchronization method, network transmission system, and node device
 本発明は、各ノードのデータ交換周期の安定化を実現するためのノード同期方法、ネットワーク伝送システム、及びノード装置に関する。 The present invention relates to a node synchronization method, a network transmission system, and a node device for realizing stabilization of a data exchange cycle of each node.
 例えば、従来のプラント制御用伝送システム等のような産業用ネットワークにおいては、システムを構成する各機器が、リアルタイム性を保証したうえで相互に大容量のデータ交換を行う必要がある。したがって、例えば各機器に搭載されるアプリケーションによるアクセス要求の発生に応じてイベント的に相互アクセスを行うような場合には、ネットワーク負荷がアプリケーションに依存してしまいリアルタイム性を保証することができない。 For example, in an industrial network such as a conventional transmission system for plant control, it is necessary for each device constituting the system to exchange large amounts of data with each other while guaranteeing real-time performance. Therefore, for example, when mutual access is performed in an event according to the occurrence of an access request by an application installed in each device, the network load depends on the application, and real-time performance cannot be guaranteed.
 そこで、従来では、各機器に仮想的な共有メモリ(コモンメモリ)を持ち、更新タイミングでネットワーク上の全局へ自局(自ノード)データの送信を行う技術が存在する。このような技術を用いた場合には、受信した各局が、そのデータを更新し、アプリケーションにアクセスさせることにより、リアルタイム性を保証したデータ交換方式を実現している。 Therefore, conventionally, there is a technology in which each device has a virtual shared memory (common memory) and transmits its own station (own node) data to all stations on the network at the update timing. When such a technique is used, each received station updates its data and accesses an application, thereby realizing a data exchange system that guarantees real-time performance.
 また、従来では、上述したデータ交換時にネットワーク上での効率的な同報通信(ブロードキャスト通信)を実現するための手法が提案されている(例えば、特許文献1参照)。特許文献1では、各ノードの内蔵タイマによる時分割多重アクセス方式とマスタノードからの同期化フレームによるスレーブノードの内蔵タイマ補正を併用している。また、特許文献1に示す手法では、伝送路をバス又はシリアルケーブルで接続されたネットワークとして構成している。 Also, conventionally, a method for realizing efficient broadcast communication (broadcast communication) on the network at the time of data exchange described above has been proposed (see, for example, Patent Document 1). In Patent Document 1, the time division multiple access method using the internal timer of each node and the internal timer correction of the slave node using the synchronization frame from the master node are used together. In the method shown in Patent Document 1, the transmission path is configured as a network connected by a bus or a serial cable.
特開2005-159754号公報JP 2005-159754 A
 ところで、最近では、産業用ネットワークにおいてもイーサネット(登録商標)の適用が進んでおり、情報系機器との連携も考慮されたコントローラレベルでのネットワークにおいては主流となりつつある。そこで、特許文献1に示されているような手法を、イーサネットを物理層とした回線へ適用しようとした場合には、以下のような課題がある。 Recently, Ethernet (registered trademark) has been applied to industrial networks, and it is becoming mainstream in the network at the controller level considering cooperation with information system devices. Therefore, when the technique as disclosed in Patent Document 1 is applied to a line using Ethernet as a physical layer, there are the following problems.
 例えば、特許文献1に示されているような手法では、物理層をバス或いはシリアルケーブルのカスケードとしている。そのため、ブロードキャスト送信されたデータの受信タイミングは、各局同時或いはほぼ無視できる時間差であることが想定できる。 For example, in the technique shown in Patent Document 1, the physical layer is a cascade of buses or serial cables. Therefore, it can be assumed that the reception timing of the data transmitted by broadcast is a time difference that can be ignored at the same time or almost at each station.
 しかしながら、例えば100BASE-TXや1000BASE-T等のイーサネットを伝送路とした場合では、トポロジとしてスター型が採用され、HUB(ハブ)のような中継装置を含めた構成となる。一般的に、HUBにおいては、フレームデータの中継に際し、ストア&フォワードといわれる中継方式を採用しており、全フレームデータを受信しきらなければ宛て先ノードへの送信を行わない。このため、ブロードキャスト送信データの各ノードでの受信タイミング遅延は、経由するHUBの段数によって変化する。したがって、例えば1000BASE-T等の高速な通信回線を用いて高効率なデータ交換を実現しようとする場合には、上述したような遅延を無視できない。 However, for example, when Ethernet such as 100BASE-TX or 1000BASE-T is used as a transmission path, a star type is adopted as a topology, and a configuration including a relay device such as a HUB (hub) is adopted. In general, HUB employs a relay method called store & forward when relaying frame data, and transmission to the destination node is not performed unless all the frame data is received. For this reason, the reception timing delay at each node of the broadcast transmission data varies depending on the number of HUB stages that pass through. Therefore, for example, when a high-efficiency data exchange is realized using a high-speed communication line such as 1000BASE-T, the delay as described above cannot be ignored.
 また、例えば、マスタ局が送信する同期化フレームの受信タイミングがばらついた場合には、各スレーブ局のタイマ補正タイミングがばらついてしまい、各局でのデータ送信タイミングの重複(輻輳)が発生してしまう。輻輳は、データの延着だけでなくHUB等のバッファ容量等によってはフレームデータの破棄が発生し、産業用ネットワークとしては致命的である。特に、マスタ局の同期化フレームに対して輻輳が発生した場合には、フレーム破棄が発生しなくとも、同期化フレームの受信タイミングがさらに遅くなるだけでなく、輻輳したフレームのサイズや種類によって遅れ時間が不確定となる。そのため、従来手法では、システム全体でのデータ交換周期が乱れてしまう問題がある。 Further, for example, when the reception timing of the synchronization frame transmitted by the master station varies, the timer correction timing of each slave station varies, resulting in duplication (congestion) of data transmission timing in each station. . Congestion is fatal for an industrial network because frame data is discarded due to buffer capacity such as HUB as well as data delay. In particular, when congestion occurs in the synchronization frame of the master station, the reception timing of the synchronization frame is not only delayed even if the frame is not discarded, but also delayed depending on the size and type of the congested frame. Time is indeterminate. Therefore, the conventional method has a problem that the data exchange cycle in the entire system is disturbed.
 本発明は、上記の点に鑑みてなされたものであり、各ノードのデータ交換周期の安定化を実現するためのノード同期方法、ネットワーク伝送システム、及びノード装置を提供することを目的とする。 The present invention has been made in view of the above points, and an object thereof is to provide a node synchronization method, a network transmission system, and a node device for realizing stabilization of a data exchange cycle of each node.
 上記の課題を解決するために、本発明は、タイマを有するマスタノード及び複数のスレーブノードが通信路を介して接続され、該それぞれのノードの前記タイマを同期させるノード同期方法であって、前記スレーブノードは、前記マスタノードによって送信される同期化フレームを受信することで、該スレーブノードのタイマを初期化して受信完了フレームを前記マスタノードに送信し、前記マスタノードは、前記スレーブノードによって送信された前記受信完了フレームを受信し、該受信時の前記タイマの時刻と自ノードから送信した前記同期化フレームの送信時のタイマ時刻との差分から、前記マスタノードと前記スレーブノード間の往復伝送遅延時間を計算し、計算した往復伝送遅延時間を前記スレーブノードに通知する往復伝送遅延時間通知フレームを送信し、前記スレーブノードは、前記往復伝送遅延時間通知フレームを受信して、該通知フレームに含まれる前記往復伝送遅延時間に基づいて、自ノード内のタイマを前記マスタノードのタイマと同期させる。 In order to solve the above problems, the present invention provides a node synchronization method in which a master node having a timer and a plurality of slave nodes are connected via a communication path, and the timers of the respective nodes are synchronized. By receiving the synchronization frame transmitted by the master node, the slave node initializes the timer of the slave node and transmits a reception completion frame to the master node. The master node transmits by the slave node. Round-trip transmission between the master node and the slave node from the difference between the time of the timer at the time of reception and the timer time at the time of transmission of the synchronization frame transmitted from the own node The delay time is calculated, and the calculated round trip transmission delay time is notified to the slave node. The slave node receives the round-trip transmission delay time notification frame, and sets the timer in the own node based on the round-trip transmission delay time included in the notification frame. Synchronize with.
 なお、本発明の構成要素、表現又は構成要素の任意の組み合わせを、方法、装置、システム、コンピュータプログラム、記録媒体、データ構造等に適用したものも本発明の態様として有効である。 In addition, what applied the arbitrary combination of the component of this invention, the expression, or the component to a method, an apparatus, a system, a computer program, a recording medium, a data structure, etc. is effective as an aspect of this invention.
 本発明によれば、各ノードのデータ交換周期の安定化を実現することができる。 According to the present invention, stabilization of the data exchange cycle of each node can be realized.
本実施形態におけるネットワーク伝送システムの概略構成の一例を示す図である。It is a figure which shows an example of schematic structure of the network transmission system in this embodiment. ノード同期補正前のデータの伝送例を示す図である。It is a figure which shows the example of transmission of the data before node synchronous correction | amendment. スレーブノード時間補正のためのデータ交換手順の一例を示す図である。It is a figure which shows an example of the data exchange procedure for slave node time correction | amendment. ノード同期補正後のデータの伝送例を示す図である。It is a figure which shows the example of transmission of the data after node synchronous correction | amendment. 余裕時間の決め方を説明するためのシステム構成例を示す図である。It is a figure which shows the example of a system configuration for demonstrating how to determine margin time. ノード同期処理におけるマスタ決定の一例を示すフローチャートである。It is a flowchart which shows an example of the master determination in a node synchronous process. ノード同期処理におけるスレーブ決定の一例を示すフローチャートである。It is a flowchart which shows an example of the slave determination in a node synchronous process. ノード同期処理におけるスレーブからマスタへの切り替えの一例を示すフローチャートである。10 is a flowchart illustrating an example of switching from a slave to a master in node synchronization processing. 本実施形態におけるノード装置の機能構成の一例を示す図である。It is a figure which shows an example of a function structure of the node apparatus in this embodiment. ノード装置のハードウェア構成の一例を示す図である。It is a figure which shows an example of the hardware constitutions of a node apparatus.
 <本発明について>
 本発明は、例えば、ネットワークを構成するノード(局)のタイマを、同期化フレーム受信タイミングではなく、マスタ局の同期化フレーム送信タイミングに合わせ込む。つまり、本発明は、例えば通信路(ネットワーク)に挿入される中継装置(例えば、HUB)等のフレームの中継遅延による影響(例えば、同期誤差)を最小限とした同期合わせを行い、各ノードの通信サイクルの同期化等を高精度に行う。ここで、本実施形態における同期とは、例えば各ノードのカウンタ動作の位相(タイマ)等が合っている状態をいうが、これに限定されるものではない。また、本発明は、同期化フレーム送信前に余裕時間を持つことで同期化フレーム送信時にネットワーク上でデータの輻輳を発生させない通信を行うこともできる。
<About the present invention>
In the present invention, for example, a timer of a node (station) configuring a network is adjusted not to a synchronization frame reception timing but to a synchronization frame transmission timing of a master station. In other words, the present invention performs synchronization matching that minimizes the influence (for example, synchronization error) due to the relay delay of a frame such as a relay device (for example, HUB) inserted into a communication path (network), for example. Perform communication cycle synchronization with high accuracy. Here, the synchronization in the present embodiment refers to a state in which, for example, the phase (timer) of the counter operation of each node is matched, but is not limited to this. In addition, the present invention can perform communication without causing data congestion on the network at the time of transmission of the synchronization frame by having a margin before transmission of the synchronization frame.
 以下に、本発明におけるノード同期方法、ネットワーク伝送システム、及びノード装置を好適に実施した形態について、図面を用いて説明する。 Hereinafter, embodiments in which a node synchronization method, a network transmission system, and a node device according to the present invention are suitably implemented will be described with reference to the drawings.
 <ネットワーク伝送システム:概略構成例>
 図1は、本実施形態におけるネットワーク伝送システムの概略構成の一例を示す図である。図1に示すネットワーク伝送システム10は、一例として、複数のノード装置11(図1の例では、ノード装置11-1~11-3)と、1又は複数の中継装置としてのHUB(ハブ)12(図1の例では、HUB12-1~12-5)とを有する。なお、ノード装置や中継装置の数や種類、接続方法についてはこれに限定されるものではない。
<Network transmission system: schematic configuration example>
FIG. 1 is a diagram illustrating an example of a schematic configuration of a network transmission system according to the present embodiment. As an example, the network transmission system 10 shown in FIG. 1 includes a plurality of node devices 11 (node devices 11-1 to 11-3 in the example of FIG. 1) and a HUB (hub) 12 as one or a plurality of relay devices. (HUBs 12-1 to 12-5 in the example of FIG. 1). Note that the number and types of node devices and relay devices, and connection methods are not limited to this.
 ここで、図1の例では、ノードAとしてのノード装置11-1をマスタノード(マスタ局)とし、ノードBとしてのノード装置11-2及びノードCとしてのノード装置11-3をスレーブノード(スレーブ局)とする。また、図1の例に示すように、ネットワーク伝送システム10の通信路は、例えばマスタノード11-1とスレーブノード11-2との間に中継装置を有するスター型である。なお、中継装置は、一例としてHUBを用いているが、本発明においてはこれに限定されるものではなく、例えばルータ、リピータ、光コンバータ等を用いることもできる。 In the example of FIG. 1, the node device 11-1 as the node A is a master node (master station), and the node device 11-2 as the node B and the node device 11-3 as the node C are slave nodes ( Slave station). As shown in the example of FIG. 1, the communication path of the network transmission system 10 is, for example, a star type having a relay device between the master node 11-1 and the slave node 11-2. The relay apparatus uses HUB as an example, but the present invention is not limited to this, and for example, a router, a repeater, an optical converter, or the like can be used.
 なお、本実施形態において、マスタノード及びスレーブノードは、通信路を介して接続される。また、マスタノード及びスレーブノードは、例えばコントローラ(制御装置)のネットワークとして使用されるため、基本的にコントローラシステムで使われる機器は、マスタ又はスレーブの対象となる。機器としては、例えばコントローラ、PC(Personal Computer)、サーバ、入出力(IO)モジュール、ドライブ装置(例えば、インバータ、サーボ等)も含まれる。 In this embodiment, the master node and the slave node are connected via a communication path. In addition, since the master node and the slave node are used as, for example, a network of controllers (control devices), basically, devices used in the controller system are targets of masters or slaves. Examples of the device include a controller, a PC (Personal Computer), a server, an input / output (IO) module, and a drive device (for example, an inverter and a servo).
 図1に示すネットワーク伝送システム10は、ノード装置11-1及びノード装置11-3が同一のHUB12-1に接続されており、ノード装置11-2は、5段のHUB(中継装置)を経由してノード装置11-1及びノード装置11-3と接続されている。 In the network transmission system 10 shown in FIG. 1, the node device 11-1 and the node device 11-3 are connected to the same HUB 12-1, and the node device 11-2 passes through a 5-stage HUB (relay device). The node device 11-1 and the node device 11-3 are connected.
 ここで、本実施形態におけるノード同期方式の内容を明確にするため、ノード同期補正前と補正後の内容を説明する。図2は、ノード同期補正前のデータの伝送例を示す図である。図2の例では、ノード装置11-2(ノードB)或いはその接続されたHUB11-2の電源が投入されてノード装置11-2が新規に通信路(ネットワーク)に加入した場合のデータ伝送例を示している。なお、このときのノード装置11-1(ノードA)及びノード装置11-3(ノードC)は、すでに同期済みであるものとする。 Here, in order to clarify the contents of the node synchronization method in this embodiment, the contents before and after the node synchronization correction will be described. FIG. 2 is a diagram illustrating an example of data transmission before node synchronization correction. In the example of FIG. 2, an example of data transmission when the node device 11-2 (node B) or the connected HUB 11-2 is powered on and the node device 11-2 newly joins a communication path (network). Is shown. Note that the node device 11-1 (node A) and the node device 11-3 (node C) at this time are already synchronized.
 図2の例では、各ノードにサイクルタイマ(第1のタイマ)とセンドタイマ(第2のタイマ)を有する。図2の例では、ノード装置11-1のサイクルタイマ(A)の周期Tにしたがって、同期化フレーム21(図2の例では、同期化フレーム21-1~21-4)の送信を行っている。 In the example of FIG. 2, each node has a cycle timer (first timer) and a send timer (second timer). In the example of FIG. 2, the synchronization frame 21 (in the example of FIG. 2, the synchronization frames 21-1 to 21-4) is transmitted according to the cycle T of the cycle timer (A) of the node device 11-1. Yes.
 ここで、ノード装置11-1は、サイクルタイマのクリアタイミングで、センドタイマ22(図2の例では、センドタイマ22-1~22-3)も合わせてクリアする。その後、ノード装置11-1は、センドタイマアップのタイミングで各ノードの送信データ23(図2の例では、送信データ23-1~23-3)を送信する。 Here, the node device 11-1 also clears the send timer 22 (send timers 22-1 to 22-3 in the example of FIG. 2) at the cycle timer clear timing. Thereafter, the node device 11-1 transmits the transmission data 23 (transmission data 23-1 to 23-3 in the example of FIG. 2) of each node at the timing of the send timer up.
 このとき、ノード装置11-2は、HUB12-1を経由してノード装置11-1からの同期化フレーム21を受信する。そのため、同期化フレーム21の受信タイミングには、遅延24が発生する。なお、この時点では、ノード装置11-2(ノードB)の同期化は行われていないため、この同期化フレーム21の受信タイミングで周期T及びノード装置11-2のセンドタイマ(B)のクリアが行われる。 At this time, the node device 11-2 receives the synchronization frame 21 from the node device 11-1 via the HUB 12-1. Therefore, a delay 24 occurs at the reception timing of the synchronization frame 21. At this time, since the node device 11-2 (node B) is not synchronized, the cycle T and the send timer (B) of the node device 11-2 are cleared at the reception timing of the synchronization frame 21. Done.
 したがって、センドタイマ(B)は、遅延24を含んだ状態で動作する。なお、厳密にはノード装置11-3(ノードC)も、HUB1台分の遅延を含むが、ここでは時間的に僅かなものなので考慮しない。 Therefore, the send timer (B) operates in a state including the delay 24. Strictly speaking, the node device 11-3 (node C) also includes a delay corresponding to one HUB, but here it is not considered because it is a little in time.
 次に、図2の例では、上述した状態でノード装置11-2のセンドタイマアップのタイミングでデータ25(図2の例では、データ25-1~25-3)を送信する。この場合、ノード装置11-1及びノード装置11-3では、データ25を受信するタイミングで、例えば同期化フレーム21-2~21-4等と重なり輻輳が発生する。なお、本実施形態では、同期が完了するまで参加ノード(例えば、ノード装置11-1等)からのデータ送信を行わないように制御することもできるが、ここでは従来のタイマ補正前の処理を説明するため、輻輳を表現した例を示している。 Next, in the example of FIG. 2, data 25 (data 25-1 to 25-3 in the example of FIG. 2) is transmitted at the timing of the send timer up of the node device 11-2 in the state described above. In this case, the node device 11-1 and the node device 11-3 overlap with, for example, the synchronization frames 21-2 to 21-4 at the timing of receiving the data 25, and congestion occurs. In this embodiment, control can be performed so that data transmission from a participating node (for example, the node device 11-1) is not performed until synchronization is completed. In order to explain, an example expressing congestion is shown.
 ここで、一般的なイーサネットのHUBでは、ストア&フォワードといわれるインタフェース方式が採用されている。この場合、送られてきたフレームは、全てをHUB内の受信バッファに蓄え、HUB内部処理(例えば、異常判定や宛先判定等)を行ってから送信される。また、送信先ポートが使用中の場合を想定した受信バッファは、余裕を持ったサイズが確保されているのが普通であり、多少の輻輳であればデータの消失は発生せずに通信を行うことができる。しかしながら、同期化フレームは、その受信タイミングが同期を行ううえでの重要な要素であり、同期化フレームの遅延受信は致命的である。 Here, a general Ethernet HUB employs an interface method called store & forward. In this case, all the sent frames are stored in the reception buffer in the HUB, and are transmitted after performing the HUB internal processing (for example, abnormality determination, destination determination, etc.). In addition, it is normal that the reception buffer assuming that the destination port is in use has a sufficient size. If there is some congestion, communication is performed without data loss. be able to. However, the reception timing of the synchronization frame is an important element for synchronization, and delayed reception of the synchronization frame is fatal.
 また、例えばイーサネットでは、QoS(Quality of Service)等によるフレームの優先度制御を行うことができる。しかしながら、図2の例では、すでにノード装置11-2からのデータ25が受信状態になっているため、優先度の設定によらず同期化フレーム21はノード装置11-3での受信も遅れてしまいシステム上の各ノードの同期が崩れてしまう。 Further, for example, in Ethernet, frame priority control can be performed by QoS (Quality of Service) or the like. However, in the example of FIG. 2, since the data 25 from the node device 11-2 has already been received, the synchronization frame 21 is also delayed in reception by the node device 11-3 regardless of the priority setting. The synchronization of each node on the system will be lost.
 イーサネットで使用されるHUBは、IPアドレス(Internet Protocol Address)を持っておらず、通常システム構成ノードからは認識されない。また、HUBは、スター型のトポロジで構築可能なため、システム構成ノード間で何段ものHUBを経由してシステムを構築することが可能であり、またHUBによる遅延時間もメーカや機種等によって異なる場合が多い。そのため、実際には、システムが構成されるまで、マスタノードからスレーブの各ノードへの遅れ時間を設定することは困難であった。 HUB used in Ethernet does not have an IP address (Internet Protocol Address) and is not normally recognized by the system configuration node. In addition, since a HUB can be constructed in a star topology, it is possible to construct a system via a number of stages of HUB between system configuration nodes, and the delay time due to the HUB varies depending on the manufacturer, model, etc. There are many cases. Therefore, in practice, it has been difficult to set a delay time from the master node to each slave node until the system is configured.
 そこで、本実施形態では、マスタノードと加入スレーブノード間の伝送遅延時間を決定し、これを加入スレーブノードに設定することで、マスタのタイマと加入スレーブのタイマを同期させたうえでシステムへ加入させることができる。 Therefore, in this embodiment, the transmission delay time between the master node and the joining slave node is determined, and this is set as the joining slave node, so that the master timer and the joining slave timer are synchronized, and then joined to the system. Can be made.
 ここで、図3は、スレーブノード時間補正のためのデータ交換手順の一例を示す図である。なお、図3において、TC帯域31,37は、同期化フレームの送信帯域(タイマクリア)を示し、TS帯域32,38はデータ送信帯域(タイマセンド)を示しており、それぞれが所定の周期で伝送される。 Here, FIG. 3 is a diagram showing an example of a data exchange procedure for correcting the slave node time. In FIG. 3, TC bands 31 and 37 indicate the transmission band (timer clear) of the synchronization frame, and TS bands 32 and 38 indicate the data transmission band (timer send), and each is transmitted at a predetermined cycle. Is done.
 また、図3の例におけるノードA,B,Cは、それぞれノード装置11-1,11-2,11-3に対応している。また、図3に示す四角はフレームを示し、各ノードA~Cに対する線上の四角は送信フレームを示し、線下の四角は受信フレームを示している。 Further, the nodes A, B, and C in the example of FIG. 3 correspond to the node devices 11-1, 11-2, and 11-3, respectively. Also, the squares shown in FIG. 3 indicate frames, the squares on the lines for the nodes A to C indicate transmission frames, and the squares below the lines indicate reception frames.
 また、TCフレームは同期化フレームを示し、TS*(*はA~Cの何れかを示す)フレームはA~Cの何れかのノードからのノードデータを示す。例えば、TSAであれば、ノードA(ノード装置11-1)からのノードデータであることを示す。また、図3において、reqフレーム33は、加入要求データを示し、OKフレーム34は、加入許可データを示し、dlyフレーム35は、TC受信遅延を示し、SETフレーム36は遅延時間設定(具体的には、往復伝送遅延時間設定)を示す。 Also, the TC frame indicates a synchronization frame, and the TS * (* indicates any of A to C) frames indicates node data from any of the nodes A to C. For example, TSA indicates that the node data is from node A (node device 11-1). In FIG. 3, a req frame 33 indicates subscription request data, an OK frame 34 indicates subscription permission data, a dly frame 35 indicates a TC reception delay, and a SET frame 36 indicates a delay time setting (specifically, Indicates round trip transmission delay time setting).
 ここで、加入ノードであるノードB(ノード装置11-2)は、TS帯域38の中で加入要求reqフレーム33をマスタノードであるノードA(ノード装置11-1)に対して送信する。ノードAは、加入要求ノードの参加可否を判断したうえで、参加許可をする場合は加入許可のOKフレーム34を同期化フレームTCに続けて発行する。なお、本実施形態では、OKフレーム34を別フレームとして表現しているが、これに限定されるものではなく、例えば同期化フレームTC上のデータ等として構成されてもよい。 Here, the node B (node device 11-2) that is the joining node transmits the subscription request req frame 33 in the TS band 38 to the node A (node device 11-1) that is the master node. The node A determines whether or not the participation requesting node can participate, and if the participation is permitted, the node A issues an OK frame 34 for permission to join following the synchronization frame TC. In the present embodiment, the OK frame 34 is expressed as a separate frame. However, the present invention is not limited to this. For example, the OK frame 34 may be configured as data on the synchronization frame TC.
 ノードAから加入許可のOKフレーム34を受け取ったスレーブノードとしてのノードB(ノード装置11-2)は、次の同期化フレームTC受信タイミングでマスタ宛にTC受信遅延フレームであるdlyフレーム35を送信する。なお、このフレームは、同期化フレームTC受信のタイミングで送信される。しかしながら、加入ノードであるノード装置Bは、すでに同期化フレームTCを何度か受信しており、そのタイミングによって内部タイマをクリア(初期化)している。そのため、加入ノードであるノードBは、マスタの同期化フレームTC送信と同様に自ノード(自局)のサイクルタイマのクリアタイミングで送信を行えばよい。 The node B (node device 11-2) as a slave node that has received the OK frame 34 that has been permitted to join from the node A transmits a dly frame 35 that is a TC reception delay frame to the master at the next synchronization frame TC reception timing. To do. This frame is transmitted at the timing of receiving the synchronization frame TC. However, the node device B, which is a joining node, has already received the synchronization frame TC several times, and has cleared (initialized) the internal timer at that timing. For this reason, the node B, which is a joining node, may transmit at the clear timing of the cycle timer of the own node (own station) in the same manner as the synchronization frame TC transmission of the master.
 また、TC受信遅延フレームであるdlyフレーム35は、マスタノードへのユニキャスト(1対1)通信であるため、これによって、すでにネットワーク伝送システムに加入済みのスレーブノードに対する同期化フレームTC受信に重なることはない。 The dly frame 35, which is a TC reception delay frame, is unicast (one-to-one) communication to the master node, and thus overlaps the reception of the synchronization frame TC to the slave node that has already joined the network transmission system. There is nothing.
 また、dlyフレーム35を受信したノードAは、そのタイミングでサイクルタイマの値を記録する。dlyフレームのノードAにおける受信タイミングは、ノードAが送信した同期化フレームTCに対する加入スレーブの応答と等価と考えられる。そのため、dlyフレーム35の受信タイミングのサイクルタイマ値と同期化フレームTC送信時のサイクルタイマ値(=0)の差分が、マスタと加入ノードの間の往復の伝送時間(往復伝送遅延時間)と考えられる。 Also, the node A that has received the dly frame 35 records the value of the cycle timer at that timing. The reception timing of the dly frame at the node A is considered to be equivalent to the response of the joining slave to the synchronization frame TC transmitted by the node A. Therefore, the difference between the cycle timer value of the reception timing of the dly frame 35 and the cycle timer value (= 0) at the time of transmission of the synchronization frame TC is considered as the round trip transmission time (round trip transmission delay time) between the master and the joining node. It is done.
 そこで、ノードAは、上述にて得られた伝送時間を加入スレーブノード(ノードB)に対して遅延時間設定のSETフレーム36で設定し、このSETフレーム36を往復伝送遅延時間通知フレームとしてノードBに送信する。SETフレーム36を受信したノードBは、SETフレーム36で設定された往復伝送遅延時間を自身のサイクルタイマから減算する(タイマアップを早める)ことで(例えば、図3に示す時間39)、自身のサイクルタイマをマスタノードであるノードAのタイマと同期させる。なお、図3の例では、ノードBのサイクルタイマが、ノードAのタイマより遅れていたため、上述した減算処理により同期させたが、これに限定されるものではない。例えば、ノードBのサイクルタイマがノードAのタイマより進んでいた場合には、SETフレーム36で設定された往復伝送遅延時間を自身のサイクルタイマに加算することで、自身のサイクルタイマをマスタノードであるノードAのタイマと同期させることができる。 Therefore, the node A sets the transmission time obtained above in the SET frame 36 for setting the delay time for the joining slave node (node B), and uses this SET frame 36 as a round trip transmission delay time notification frame. Send to. The Node B that has received the SET frame 36 subtracts the round-trip transmission delay time set in the SET frame 36 from its own cycle timer (accelerates timer up) (for example, time 39 shown in FIG. 3), The cycle timer is synchronized with the timer of the node A that is the master node. In the example of FIG. 3, the cycle timer of the node B is delayed from the timer of the node A, and thus the synchronization is performed by the above-described subtraction process. However, the present invention is not limited to this. For example, when the cycle timer of the node B is ahead of the timer of the node A, the round-trip transmission delay time set in the SET frame 36 is added to the own cycle timer so that the own cycle timer is set at the master node. It can be synchronized with the timer of a certain node A.
 なお、本実施形態では、図3において、加入許可のOKフレーム34と同様、遅延時間設定のSETフレーム36も同期化フレームTCのデータであってもよい。このように、サイクルタイマの調整を終えたノードは、システムへの加入が許可されたものとして、TS帯域でデータ送信可能とする。 In the present embodiment, in FIG. 3, the delay time setting SET frame 36 may also be data of the synchronization frame TC, similar to the subscription-permitted OK frame 34. In this way, the node that has finished adjusting the cycle timer is allowed to transmit data in the TS band, assuming that it is permitted to join the system.
 また、本実施形態では、ノードの加入に対しreqフレーム33を加入要求データとし、OKフレーム34を加入許可データのフレームとして用いたが、本発明においてはこれに限定されるものではなく、例えば同期化フレームTCで順次局番を指定し、指定された局(ノード)の中で加入予定の局がdlyフレーム35を応答するような手順でも本実施形態における同期化が可能となる。 In the present embodiment, the req frame 33 is used as the subscription request data and the OK frame 34 is used as the subscription permission data frame for the node subscription. However, the present invention is not limited to this. The synchronization in this embodiment can be performed even in a procedure in which station numbers are sequentially designated in the framing frame TC and a station scheduled to join among the designated stations (nodes) responds with the dly frame 35.
 <余裕時間について>
 ここで、上述したように同期化を行った場合でも、最後にデータを送信するノードと伝送時間的に遠いノードは、最後に送信されたスレーブノードのデータとマスタノードの同期化フレームTCが輻輳して受信される場合がある。なお、伝送時間的に遠いノードとは、例えば経由するHUB段数の所定数以上のノード等である。
<About extra time>
Here, even when the synchronization is performed as described above, the node that is farther in transmission time than the node that finally transmits data is congested with the data of the slave node that was transmitted last and the synchronization frame TC of the master node. May be received. Note that a node far in terms of transmission time is, for example, a node having a predetermined number or more of the number of HUB stages passed through.
 そのため、本実施形態では、最終データ送信のタイミングから同期化フレームTCの送信タイミングまでの間に、余裕時間を設けることもできる。しかしながら、従来手法では、システム構成に依存しており、ノード台数等では一意に決定されない。 Therefore, in this embodiment, a margin time can be provided between the timing of the final data transmission and the transmission timing of the synchronization frame TC. However, the conventional method depends on the system configuration and is not uniquely determined by the number of nodes or the like.
 一方、本実施形態におけるマスタノード(ノード装置11-1)は、ネットワーク伝送システム10の全スレーブノードに対し、上述した加入処理を行うので、マスタと各スレーブ間での伝送遅延時間を保持している。そこで、マスタノードは、必ずしも構成の中心にあるわけではないが、例えば全スレーブノードに対する最大伝送遅延時間(往復伝送遅延時間)を基準した所定の値を余裕時間として設定することができる。 On the other hand, since the master node (node device 11-1) in the present embodiment performs the above-described joining process for all slave nodes of the network transmission system 10, the transmission delay time between the master and each slave is maintained. Yes. Therefore, although the master node is not necessarily at the center of the configuration, for example, a predetermined value based on the maximum transmission delay time (round-trip transmission delay time) for all slave nodes can be set as the margin time.
 本実施形態における余裕時間とは、例えばネットワークを流れるデータの輻輳、衝突を避ける等のために設けるデータの送信等を行わない時間である。本実施形態では、上述したように余裕時間を設けることで、同期化フレームTCが輻輳するのを防止することができる。 The margin time in the present embodiment is a time during which data transmission or the like provided for avoiding congestion, collision, etc. of data flowing through the network is not performed. In the present embodiment, it is possible to prevent the synchronization frame TC from being congested by providing a margin time as described above.
 なお、本実施形態では、理論上、最大の往復伝送遅延時間の余裕時間があれば、マスタノードの次の同期化フレーム送信タイミングに重なることはない。しかしながら、実運用での余裕と効率等を勘案すると、余裕時間は、例えば最大の往復伝送遅延時間以上であればよく、例えば約2~3倍程度にするのが好ましい。 In the present embodiment, theoretically, if there is an allowance time for the maximum round-trip transmission delay time, there is no overlap with the next synchronized frame transmission timing of the master node. However, considering the margin and efficiency in actual operation, the margin time may be longer than the maximum round trip transmission delay time, for example, preferably about 2 to 3 times.
 ここで、図4は、ノード同期補正後のデータの伝送例を示す図である。図4の例では、上述したように余裕時間41が設定されている。本実施形態では、図4に示すように余裕時間41を設定することで、ノード間のデータ伝送も完了することができる。つまり、本実施形態では、サイクルタイマの周期Tに対して余裕時間41を見込んだ値を設定する。 Here, FIG. 4 is a diagram showing an example of data transmission after node synchronization correction. In the example of FIG. 4, the margin time 41 is set as described above. In the present embodiment, data transmission between nodes can be completed by setting a margin time 41 as shown in FIG. That is, in the present embodiment, a value that allows for the margin time 41 is set for the cycle T of the cycle timer.
 つまり、本実施形態において、マスタノードとスレーブノードとで同期合わせをする場合には、マスタノードが同期化フレームを送信してから、スレーブノードは予め設定されたセンドタイマアップと同時に順次応答する。このとき、余裕時間41は、例えば最後のスレーブノードの送信タイミングに対するマスタノードの次の同期化フレーム送信までの時間を意味する。すなわち、余裕時間41とは、マスタノードの同期化フレーム送信に対するスレーブノード全てが応答送信し終わったタイミングから、次の同期化フレームを送信するタイミングまでの時間を意味する。 That is, in the present embodiment, when synchronization is performed between the master node and the slave node, the slave node sequentially responds simultaneously with a preset send timer up after the master node transmits a synchronization frame. At this time, the margin time 41 means, for example, a time until the next synchronization frame transmission of the master node with respect to the transmission timing of the last slave node. That is, the margin time 41 means the time from the timing at which all the slave nodes have transmitted responses to the synchronization frame transmission of the master node to the timing at which the next synchronization frame is transmitted.
 これにより、本実施形態では、同期化フレームTCの通信帯域にデータ通信が行われないことを保証すると共に、各スレーブノードに対し同期化フレームTCが一定した遅延時間で受信されることを保証する。 Thus, in this embodiment, it is ensured that no data communication is performed in the communication band of the synchronization frame TC, and that the synchronization frame TC is received with a constant delay time for each slave node. .
 なお、データの輻輳がない場合には、HUB12内でのフレーム処理時間は一定となる。そのため、システム構成が変わらない限りは、いつも同じ遅延時間でフレームを受信することができる。 When there is no data congestion, the frame processing time in the HUB 12 is constant. Therefore, as long as the system configuration does not change, frames can always be received with the same delay time.
 ここで、上述した余裕時間の決め方(計算の仕方)について具体的に説明する。図5は、余裕時間の決め方を説明するためのシステム構成例を示す図である。 Here, the above-described method for determining the allowance time (how to calculate) will be specifically described. FIG. 5 is a diagram illustrating an example of a system configuration for explaining how to determine the allowance time.
 データの輻輳や衝突は、通信中のデータが遅延することにより発生するが、ネットワーク伝送システムでは、その遅れ要素の大部分がHUB等の中継装置となる。 Data congestion or collision occurs when data being communicated is delayed, but in a network transmission system, most of the delay elements are relay devices such as HUBs.
 したがって、余裕時間の設定は、例えば本質的にシステム構成中のデータ中継装置の数に対応させて設定させることになる。具体的には、例えばそれぞれのノード間通信のうち一番データ中継装置の数の多いルートのデータ到達時間等を用いることができるが、これに限定されるものではない。 Therefore, for example, the margin time is set in accordance with the number of data relay apparatuses in the system configuration. Specifically, for example, the data arrival time of the route having the largest number of data relay apparatuses among the communication between nodes can be used, but the present invention is not limited to this.
 例えば、図5に示すネットワーク伝送システム50では、ノードA~Hの8個のノード装置51-1~51-8と、各ノードA~Hを多段階で中継する中継装置である7個のHUB52-1~51-7とを有する。なお、ノード装置や中継装置の数や種類、接続方法についてはこれに限定されるものではない。 For example, in the network transmission system 50 shown in FIG. 5, eight node devices 51-1 to 51-8 of the nodes A to H and seven HUBs 52 that are relay devices that relay the nodes A to H in multiple stages. -1 to 51-7. Note that the number and types of node devices and relay devices, and connection methods are not limited to this.
 ここで、本実施形態において、マスタノードは、予め決定されているわけではなく、例えば後述する本実施形態のノード同期処理におけるマスタ決定方法等により決定される。そのため、ノード装置51に特段の設定(例えばスレーブモードのようなもの)等がない限り、ノードA~Hの全てがマスタノードとなりえる。 Here, in the present embodiment, the master node is not determined in advance, but is determined by, for example, a master determination method in node synchronization processing of the present embodiment described later. Therefore, all of the nodes A to H can be master nodes unless the node device 51 has a special setting (such as a slave mode).
 また、ノードA又はノードHがマスタノードとなった場合には、ノードAからノードHまでの間において、HUB52の中継段数が一番多くなる(図5の例では、7段)。そのため、本実施形態では、例えばノードAからノードHに対するデータ到達時間や最大遅延時間等に基づいて余裕時間を設定することで、データの輻輳や衝突等の問題なくシステムを動作させることができる。 In addition, when the node A or the node H becomes the master node, the number of relay stages of the HUB 52 is the largest between the node A and the node H (7 stages in the example of FIG. 5). Therefore, in this embodiment, the system can be operated without problems such as data congestion and collision by setting a margin time based on, for example, the data arrival time from the node A to the node H, the maximum delay time, and the like.
 一方、例えばノードDやノードEがマスタノードとなった場合、検出される最大の遅延時間は、ノードDやノードEからノードA又はノードHまでの中継段数(図5の例では、4段)ということになる。また、検出される最大遅延時間は、システム構成の中心のノードがマスタになった場合に最小となり、図5のネットワーク伝送システム50の例では、ノードD又はノードEがマスタノードのときに最小となる。つまり、仮にマスタノードがシステム構成の中心になっていた場合には、その構成での最大遅延時間は、マスタノードを挟んで反対に配置されたスレーブ間(図5の例では、ノードA、ノードH)と考えられる。 On the other hand, for example, when the node D or node E becomes the master node, the maximum delay time detected is the number of relay stages from the node D or node E to the node A or node H (four stages in the example of FIG. 5). It turns out that. Further, the detected maximum delay time is minimum when the central node of the system configuration becomes the master. In the example of the network transmission system 50 in FIG. 5, the maximum delay time is minimum when the node D or the node E is the master node. Become. In other words, if the master node is at the center of the system configuration, the maximum delay time in that configuration is between the slaves arranged opposite to each other across the master node (in the example of FIG. 5, node A, node H).
 そこで、本実施形態において、余裕時間を設定する場合には、マスタノードからの最大遅延時間の約2~3倍程度を基準に設定すれば、必ず全てのノード間の遅延時間を包含することが可能となる。なお、マスタノードがシステム構成の中心からずれるほど余裕時間は大きくなる方向となる。 Therefore, in this embodiment, when setting the margin time, it is possible to include the delay time between all nodes by setting about 2 to 3 times the maximum delay time from the master node as a reference. It becomes possible. Note that the margin time increases as the master node deviates from the center of the system configuration.
 なお、本実施形態では、例えば後からシステムに加入されるノードが一番マスタから遠い場合、余裕時間の計算が変わる可能性もある。しかしながら、本実施形態のような厳密な同期が必要とされるシステムでは、当初想定していないノードのシステムへの加入のようなことは考えづらい。そのため、本実施形態では、例えばノードの脱落、追加加入を許可しないものとしたり、もし加入してきたノードが一番マスタから遠い場合には、システムの異常終了等を行う。また、本実施形態では、中継装置の「最大カスケード段数×2倍」を一意に余裕時間と定めることもできる。また、本実施形態では、予めユーザによりシステムの中継装置の最大段数を設定させ、その段数を超える場合に異常終了等を行うこともできる。 In this embodiment, for example, when a node that joins the system later is farthest from the master, the calculation of the margin time may change. However, in a system that requires strict synchronization as in the present embodiment, it is difficult to think about joining a node to the system that is not initially assumed. For this reason, in this embodiment, for example, dropping of a node or additional joining is not permitted, or if the joining node is farthest from the master, the system is abnormally terminated. In the present embodiment, the “maximum cascade stage number × 2 times” of the relay device can be uniquely determined as a margin time. In the present embodiment, the maximum number of stages of the relay device of the system can be set in advance by the user, and abnormal termination or the like can be performed when the number of stages is exceeded.
 <許容値を超えたスレーブについて>
 ここで、本実施形態におけるネットワーク伝送システムでは、例えば予め設定された余裕時間を超えるノードをシステムに加入させないようにする。これは、例えばマスタノードが加入要求を受けた際にTC帯域内で受信できなければ、余裕時間を超えるノードの挿入が行われたと判断することで、システムへの加入を制御することができる。
<Slave exceeding the allowable value>
Here, in the network transmission system according to the present embodiment, for example, a node exceeding a preset margin time is prevented from joining the system. For example, if the master node cannot receive within the TC band when receiving a subscription request, it is possible to control the subscription to the system by determining that a node exceeding the margin time has been inserted.
 つまり、マスタノードは、加入要求をしてきたスレーブノードであっても、上述した余裕時間を超えるノードに対しては加入を拒否し、スレーブノードはユーザに加入失敗を異常があったとして通知する。なお、加入を拒否する場合には、例えば遅延時間設定を行わなかったり、異常応答をする等の処理を行う。 In other words, even if the master node is a slave node that has requested to join, the master node refuses to join a node that exceeds the above-described margin time, and the slave node notifies the user that there is an abnormality in joining. When rejecting the subscription, for example, processing such as setting no delay time or responding abnormally is performed.
 <同期の再設定について>
 次に、本実施形態における同期の再設定について説明する。同期の再設定とは、例えば構成変更があった場合の遅延等の再計算や再設定等を意味する。遅延時間の設定は、例えばノードのシステム加入時又はマスタ脱落時等に行う。また、本実施形態では、システム加入時又はマスタ脱退時等に複数回(数十回)の遅延時間測定を行い、その平均値をノード間の遅延時間として設定してもよい。しかしながら、実際のシステムでは、ノード、機器の経年変化や周囲環境(例えば、温度、ノイズ)等により、状態が変化することがある。
<About resetting synchronization>
Next, the resetting of synchronization in this embodiment will be described. The resetting of synchronization means, for example, recalculation or resetting of delay when there is a configuration change. The delay time is set, for example, when the node system is joined or when the master is disconnected. In the present embodiment, the delay time may be measured a plurality of times (several tens of times) when the system joins or the master leaves, and the average value may be set as the delay time between nodes. However, in an actual system, the state may change due to aging of nodes and devices, ambient environment (for example, temperature, noise), and the like.
 そこで、本実施形態では、例えば一定の周期(例えば、数秒に1回等)で遅延時間測定を、ネットワーク伝送システムに参加する全ノードに対して行い、再度遅延時間を設定する。 Therefore, in this embodiment, delay time measurement is performed for all nodes participating in the network transmission system, for example, at a constant cycle (for example, once every several seconds), and the delay time is set again.
 <システム運用中における同期ずれの検出方法及び修正方法>
 次に、システム運用中における同期ずれの検出方法及び修正方法について具体的に説明する。システム運用中では、基本的にスレーブ側で同期の調整を行う。例えば、本実施形態では、マスタノードから各スレーブノードに対して遅延時間が配布され、それに対応させてタイマを調整する。システムに参加したスレーブノードは、マスタノードと同期できている間はマスタノードから送信される同期化フレームTCが遅延時間分遅れて受信されることになる。すなわち、本実施形態では、自ノード(自局)のタイマで同期化フレームTCの受信タイミングを測定し、その時間と予め設定された同期時の遅延時間とを比較することで、マスタノードとの同期ずれが起こっているかどうかを検出することができる。
<Method for detecting and correcting synchronization loss during system operation>
Next, a method for detecting and correcting synchronization loss during system operation will be specifically described. During system operation, the synchronization is basically adjusted on the slave side. For example, in the present embodiment, a delay time is distributed from the master node to each slave node, and the timer is adjusted correspondingly. While the slave node participating in the system can synchronize with the master node, the synchronization frame TC transmitted from the master node is received with a delay of the delay time. That is, in this embodiment, the reception timing of the synchronization frame TC is measured by the timer of the own node (own station), and the time is compared with a preset delay time at the time of synchronization with the master node. It is possible to detect whether or not synchronization has occurred.
 これにより、本実施形態では、例えば複数回のTC受信タイミングを確認し、所定数(例えば、5回)連続してTCの受信が設定された遅延時間より遅れている場合等のように、予め設定された条件に基づいて、自身のタイマの遅れや進みを検出する。また、本実施形態では、上述した検出時に得られる自身のタイマの遅れや進みのずれ量に基づいて、上述した同期ずれがなくなるように自ノード内のタイマを前記マスタノードのタイマと同期させる修正を行う。 Thereby, in the present embodiment, for example, when the TC reception timing is confirmed a plurality of times, and reception of TC is delayed from a set delay time in advance by a predetermined number (for example, 5 times) in advance, etc. Based on the set condition, the delay or advance of its own timer is detected. Further, in the present embodiment, based on the amount of delay or advance of own timer obtained at the time of detection described above, a correction for synchronizing the timer in the own node with the timer of the master node so as to eliminate the above-described synchronization deviation. I do.
 <ノード同期処理におけるマスタ決定方法>
 次に、本実施形態におけるノード同期処理について、フローチャートを用いて具体的に説明する。図6は、ノード同期処理におけるマスタ決定の一例を示すフローチャートである。なお、図6の例では、ネットワークに接続された複数のノード装置のうちの1つがマスタノードとして決定され運用される手順を示すが、これに限定されるものではない。
<Master determination method in node synchronization processing>
Next, the node synchronization processing in the present embodiment will be specifically described using a flowchart. FIG. 6 is a flowchart illustrating an example of master determination in node synchronization processing. 6 illustrates a procedure in which one of a plurality of node devices connected to the network is determined and operated as a master node, but is not limited thereto.
 図6の処理において、ノード同期処理は、まずノード装置の各リソースの初期化を行い(S01)、正常に初期化された場合に、イニシャル回線の監視を行う(S02)。ここで、イニシャル回線の監視とは、例えばイニシャル(初期化)中での回線の監視を意味し、運用中の監視とは区別される。例えば、イニシャル中では、TC(同期化フレームの送信帯域(タイマクリア))、TS(データ送信帯域(タイマセンド))の他、ITC(システム初期化中だけに使用されるTCフレーム)等のフレームが流れる可能性がある。一方、運用中では、イニシャル中とは異なり、ITCは流れない。なお、S02の処理では、例えば回線状態のチェック等を行う。チェック周期としては、例えば「最大周期時間×3倍」の時間等のタイミングでチェックすることができるが、これに限定されるものではなく、他のタイミングでチェックしてもよい。 In the process of FIG. 6, the node synchronization process first initializes each resource of the node device (S01), and monitors the initial line when it is normally initialized (S02). Here, monitoring of the initial line means monitoring of the line during initial (initialization), for example, and is distinguished from monitoring during operation. For example, during initialization, frames such as TC (synchronization frame transmission band (timer clear)), TS (data transmission band (timer send)), and ITC (TC frame used only during system initialization) are included. There is a possibility of flowing. On the other hand, the ITC does not flow during operation, unlike during initial operation. In the process of S02, for example, a line status check is performed. The check cycle can be checked at a timing such as “maximum cycle time × 3 times”, but is not limited to this, and may be checked at another timing.
 ノード同期処理は、監視の結果、上述したTS、ITC、又はTCの受信なしで監視タイマがアップ(UP)したか否かを判断する(S03)。 The node synchronization process determines whether the monitoring timer is up (UP) without receiving the above-described TS, ITC, or TC as a result of monitoring (S03).
 ここで、ノード同期処理は、上述したS03の条件を満たす場合(S03において、YES)、イニシャル仮マスタを決定する(S04)。イニシャル仮マスタは、例えば局番(ノード番号)やリフレッシュ周期遅延、他のノード装置(他局)のTC受信等を監視する。また、イニシャル仮マスタは、ITC送信の制御を行う。次に、ノード同期処理は、例えばITC送信が所定数(例えば、3回等)以上であり、更にスレーブ加入通知があるか否かを判断し(S05)、ITC送信が所定数(例えば、3回等)以上であり、更にスレーブ加入通知がある場合(S05において、YES)、マスタ権を獲得し、マスタ運用を行う(S06)。ここで、本実施形態におけるマスタ運用とは、例えば上述したTS受信の監視、加入ノード管理、伝送遅延時間計算、メッセージ送信制御、及びスレーブノード毎の遅延時間設定送信等のうち、少なくとも1つの処理を示すが、これに限定されるものではない。 Here, in the node synchronization process, when the condition of S03 described above is satisfied (YES in S03), an initial temporary master is determined (S04). The initial temporary master monitors, for example, a station number (node number), a refresh cycle delay, TC reception of other node devices (other stations), and the like. The initial temporary master controls ITC transmission. Next, in the node synchronization processing, for example, it is determined whether or not the ITC transmission is equal to or greater than a predetermined number (for example, three times) and there is a slave joining notification (S05), and the ITC transmission is determined to be a predetermined number (for example, 3). If there is a slave subscription notification (YES in S05), the master right is acquired and the master operation is performed (S06). Here, the master operation in the present embodiment is, for example, at least one of the above-described TS reception monitoring, joining node management, transmission delay time calculation, message transmission control, delay time setting transmission for each slave node, and the like. However, the present invention is not limited to this.
 また、ノード同期処理は、上述したS05の条件を満たさない場合(S05において、NO)、他のノード装置TCを受信したか、又は自ノードよりも優先度の高いITCを受信したか否かを判断する(S07)。ノード同期処理は、他のノード装置TCを受信したか、又は自ノードよりも優先度の高いITCを受信した場合(S07において、YES)、後述するスレーブ運用するための処理を行う(S08)。 In the node synchronization process, if the above-described condition of S05 is not satisfied (NO in S05), it is determined whether another node apparatus TC is received or an ITC having a higher priority than the own node is received. Judgment is made (S07). In the node synchronization process, when another node apparatus TC is received or an ITC having a higher priority than the own node is received (YES in S07), a process for slave operation described later is performed (S08).
 また、ノード同期処理は、S03の処理において、所定時間内にS03の条件を満たさない場合(S03において、NO)、又は、S07の処理において、所定時間内にS07の条件を満たさない場合(S07において、NO)、ノード同期処理を終了する。 In the node synchronization process, when the condition of S03 is not satisfied within the predetermined time in the process of S03 (NO in S03), or when the condition of S07 is not satisfied within the predetermined time in the process of S07 (S07). NO), the node synchronization processing is terminated.
 また、本実施形態では、上述した各処理において、例えばメモリの読み書きにおける処理の遅れや軽度の通信障害等のように、容易に復旧可能な軽度の異常があった場合に、上述した処理が繰り返し行われる。また、本実施形態では、例えば故障等の容易に復旧できない重度の異常があった場合に、エラー情報を通知する処理を含めてもよい。 Further, in the present embodiment, in each process described above, the process described above is repeated when there is a mild abnormality that can be easily recovered, such as a process delay in memory read / write or a minor communication failure. Done. In this embodiment, for example, when there is a serious abnormality that cannot be easily recovered, such as a failure, a process of notifying error information may be included.
 <ノード同期処理におけるスレーブ決定方法>
 次に、図7は、ノード同期処理におけるスレーブ決定の一例を示すフローチャートである。なお、図7の例では、ネットワークに接続された複数のノード装置のうちの1つがスレーブノードとして決定され運用される手順を示すが、これに限定されるものではない。
<Slave determination method in node synchronization processing>
Next, FIG. 7 is a flowchart showing an example of slave determination in the node synchronization processing. In the example of FIG. 7, a procedure is shown in which one of a plurality of node devices connected to the network is determined and operated as a slave node, but is not limited thereto.
 図7の処理において、ノード同期処理は、まずノード装置の各リソースの初期化を行い(S11)、正常に初期化された場合に、イニシャル回線の監視を行う(S12)。なお、S12の処理は、例えば、回線状態のチェックを行う。チェック周期としては、例えば「最大周期時間×3倍」の時間等のタイミングでチェックすることができるが、これに限定されるものではない。 In the process of FIG. 7, the node synchronization process first initializes each resource of the node device (S11), and monitors the initial line when it is normally initialized (S12). In the process of S12, for example, the line status is checked. The check cycle can be checked at a timing such as “maximum cycle time × 3 times”, but is not limited thereto.
 ノード同期処理は、監視の結果、TS、ITC、又はTCの受信があるか否かを判断する(S13)。ここで、ノード同期処理は、上述したS13の条件を満たす場合(S13において、YES)、イニシャルマスタを決定する(S14)。 The node synchronization processing determines whether there is reception of TS, ITC, or TC as a result of monitoring (S13). Here, in the node synchronization process, when the condition of S13 described above is satisfied (YES in S13), an initial master is determined (S14).
 なお、S14の処理におけるイニシャルマスタ決定とは、例えば「自ノード以外にマスタ(又はマスタ候補)があり、自ノードはスレーブになるかもしれない状態」を含む意味である。基本的には、自ノードが初期化後の回線監視状態であって、TC等のフレームがすでに流れている場合には、自ノードはスレーブでよい。しかしながら、例えばシステム立上げ時等の不安定な状態では、一度のフレーム受信でマスタを決めてしまうのはリスクがある。そこで、本実施形態では、所定周期(例えば、3周期)の監視を行い、それでも大丈夫そうであれば、TC(又はITC)を送信しているノードをマスタと認め、自ノードはスレーブになろうとする。 Note that the initial master determination in the process of S14 includes, for example, “a state in which there is a master (or master candidate) other than the own node and the own node may become a slave”. Basically, when the own node is in the line monitoring state after initialization and a frame such as TC has already flowed, the own node may be a slave. However, in an unstable state such as when the system is started up, there is a risk that the master is determined by receiving a single frame. Therefore, in this embodiment, monitoring is performed for a predetermined period (for example, three periods), and if that is all right, the node that transmits TC (or ITC) is recognized as a master, and the own node tries to become a slave. To do.
 具体的には、イニシャルマスタは、例えばTCやTS等を監視し、ITC又はTCを受信して、マスタ局番チェックを行う。なお、この監視は、例えば3周を基準として監視しているが、これに限定されるものではない。 Specifically, the initial master monitors, for example, TC, TS, etc., receives ITC or TC, and checks the master station number. This monitoring is performed with reference to, for example, three laps, but is not limited to this.
 次に、ノード同期処理は、所定数連続(例えば、3連続)で同一ノードのTC又はITCを受信したか否かを判断し(S15)、所定数連続で同一ノードのTC又はITCを受信した場合(S15において、YES)、スレーブ運用確定待ち状態となる(S16)。このとき、本実施形態では、ネットワークの加入はできなくなる。また、S16の処理では、例えばTS送信遅延時間の設定や接続ノードに対する遅延時間バックアップ等を行う。 Next, in the node synchronization processing, it is determined whether or not a TC or ITC of the same node has been received for a predetermined number of consecutive times (for example, three consecutive) (S15), and a TC or ITC of the same node has been received for a predetermined number of consecutive times If this is the case (YES in S15), a slave operation confirmation wait state is entered (S16). At this time, in this embodiment, the network cannot be joined. In the process of S16, for example, a TS transmission delay time is set and a delay time backup for the connection node is performed.
 また、ノード同期処理は、マスタから加入を許可され、遅延時間設定が完了したか否かを判断し(S17)、マスタから加入を許可され、遅延時間設定が完了した場合(S17において、YES)、スレーブ運用を行う(S18)。 Further, the node synchronization processing determines whether or not the master is permitted to join and the delay time setting is completed (S17). If the master is permitted to join and the delay time setting is completed (YES in S17). Then, slave operation is performed (S18).
 また、ノード同期処理は、S13の処理において、所定時間内にS13の条件を満たさない場合(S13において、NO)、又は、S15の処理において、所定時間内にS15の条件を満たさない場合(S15において、NO)、ノード同期処理を終了する。なお、本実施形態においては、上述したS15の処理において、所定時間内にS15の条件を満たさない場合に、自ノードがマスタになろうとしてもよい。なお、その場合には、スレーブ運用が確定した後で、マスタに加入が認められなければ、ネットワークの設定異常等でエラー通知を行ってもよい。 In the node synchronization process, when the condition of S13 is not satisfied within the predetermined time in the process of S13 (NO in S13), or when the condition of S15 is not satisfied within the predetermined time in the process of S15 (S15 NO), the node synchronization processing is terminated. In the present embodiment, in the process of S15 described above, when the condition of S15 is not satisfied within a predetermined time, the own node may try to become the master. In this case, after the slave operation is confirmed, if the master is not allowed to join, an error notification may be given due to network setting abnormality or the like.
 また、ノード同期処理は、S17の処理において、所定時間内にS17の条件を満たさない場合(S17において、NO)ノード同期処理を終了する。 Further, in the node synchronization process, when the condition of S17 is not satisfied within the predetermined time in the process of S17 (NO in S17), the node synchronization process is terminated.
 また、本実施形態では、上述した各処理において、例えばメモリの読み書きにおける処理の遅れや軽度の通信障害等のように、容易に復旧可能な軽度の異常があった場合に、上述した処理が繰り返し行われる。また、本実施形態では、例えば故障等の容易に復旧できない重度の異常があった場合に、エラー情報を通知する処理を含めてもよい。 Further, in the present embodiment, in each process described above, the process described above is repeated when there is a mild abnormality that can be easily recovered, such as a process delay in memory read / write or a minor communication failure. Done. In this embodiment, for example, when there is a serious abnormality that cannot be easily recovered, such as a failure, a process of notifying error information may be included.
 <ノード同期処理におけるスレーブからマスタへの切り替え方法>
 ここで、本実施形態では、マスタ運用中に故障等の異常が発生した場合に、スレーブ運用していたノードをマスタに切り替えて運用させるのが好ましい。
<Switching method from slave to master in node synchronization processing>
Here, in this embodiment, when an abnormality such as a failure occurs during the master operation, it is preferable to switch the node that has been operated as a slave to the master.
 図8は、ノード同期処理におけるスレーブからマスタへの切り替えの一例を示すフローチャートである。なお、図8の例では、ノード同期処理において、上述したようにスレーブ運用を行っているものとする(S21)。このような状態で、マスタノードの故障等によるマスタの脱落を検出すると(S22)、ノード同期処理は、マスタ権移行の問い合わせをネットワーク上に行う(S23)。具体的には、問い合わせビットをONにしたTSを送信する(S24)。なお、ノード同期処理は、上述した問い合わせにおいて、例えば自ノードよりも優先度の高いITCを受信したり、自ノードよりも優先度の高いTSフレームで問い合わせビットがあった場合には、所定時間の運用マスタの切り替え待ちを行う。 FIG. 8 is a flowchart showing an example of switching from the slave to the master in the node synchronization processing. In the example of FIG. 8, it is assumed that slave operation is performed as described above in the node synchronization processing (S21). In such a state, when it is detected that the master is lost due to a failure of the master node or the like (S22), the node synchronization processing makes an inquiry about master right transfer on the network (S23). Specifically, the TS with the inquiry bit turned ON is transmitted (S24). In the above-described inquiry, for example, when an ITC having a higher priority than the own node is received or there is an inquiry bit in a TS frame having a higher priority than the own node, the node synchronization processing is performed for a predetermined time. Wait for operation master switching.
 また、ノード同期処理は、上述したS22の処理において、運用マスタの切り替え待ち状態でマスタの脱落を検出した場合に、運用中仮マスタとして設定する(S25)。このとき、ノード同期処理は、所定のタイミングでITC送信を行う。また、ノード同期処理は、自ノードよりも優先度の高いITCやTCを受信した場合には、運用マスタの切り替え待ちを行う。 Also, the node synchronization processing is set as an operational temporary master when it is detected that the master has been dropped in the operation master switching waiting state in the processing of S22 described above (S25). At this time, the node synchronization processing performs ITC transmission at a predetermined timing. Further, the node synchronization processing waits for switching of the operation master when ITC or TC having a higher priority than the own node is received.
 次に、ノード同期処理は、所定時間内にITCを所定数(例えば、3回等)連続で送信したか否かを判断し(S26)、所定数連続で送信した場合(S26において、YES)、マスタ運用に切り替える(S27)。また、ノード同期処理は、所定時間内にITCを所定数連続で送信できなかった場合(S26において、NO)、処理を終了し、運用マスタの切り替え待ち等を行う。 Next, in the node synchronization process, it is determined whether or not the ITC has been transmitted continuously for a predetermined number of times (for example, three times) within a predetermined time (S26), and when the predetermined number has been transmitted continuously (YES in S26). The master operation is switched (S27). Further, in the node synchronization process, when a predetermined number of ITCs cannot be transmitted continuously within a predetermined time (NO in S26), the process is terminated and the operation master is waited for switching.
 つまり、運用中のネットワークの参加ノードは、常にフレームを監視し、マスタノードの場合は自分より優先度の高いマスタからのTCフレームの監視を行い、スレーブノードの場合はマスタノードの脱落を監視する。マスタノードの脱落を検出したスレーブノードは、TSフレームにマスタ移行問い合わせを付加し、マスタ移行処理を実施する。 In other words, the participating nodes of the network in operation always monitor the frame, the master node monitors the TC frame from the master having higher priority than itself, and the slave node monitors the drop of the master node. . The slave node that detects the drop of the master node adds a master transfer inquiry to the TS frame, and performs a master transfer process.
 また、本実施形態では、マスタ、スレーブ共に、現在マスタノードとしているノードよりも優先度の高い局からのTCフレームを検出した場合に、マスタ切替状態へ移行し、マスタの確定後に通常運用へ移行することができる。なお、上述した優先度とは、例えばノードの種類(例えば、モジュール形状、PCI-e(Peripheral Components Interconnect - express)ボード等)や、ネットワーク局番(ノード番号)の若い順等により決定される。 In this embodiment, when both the master and the slave detect a TC frame from a station having a higher priority than the node that is currently the master node, the master switching state is entered, and the normal operation is entered after the master is determined. can do. The priority described above is determined by, for example, the type of node (for example, module shape, PCI-e (Peripheral Components Interconnect-express) board), the network station number (node number) in ascending order, and the like.
 <ノードの機能構成例>
 次に、本実施形態におけるノードの機能構成例について図を用いて説明する。図9は、本実施形態におけるノード装置の機能構成の一例を示す図である。図9に示すノード装置60は、通信インタフェース(IF)手段61と、ロードコマンド手段62と、ストレージ管理手段63と、システム管理手段64と、スイッチ(SW)管理手段65と、時間管理手段(タイマ)66と、アプリケーション制御手段67と、ネットワーク制御手段68と、入出力(IO)制御手段69とを有する。
<Example of functional configuration of node>
Next, a functional configuration example of the node in the present embodiment will be described with reference to the drawings. FIG. 9 is a diagram illustrating an example of a functional configuration of the node device according to the present embodiment. The node device 60 shown in FIG. 9 includes a communication interface (IF) means 61, a load command means 62, a storage management means 63, a system management means 64, a switch (SW) management means 65, and a time management means (timer). ) 66, application control means 67, network control means 68, and input / output (IO) control means 69.
 なお、図9に示すノード装置60は、マスタノードもスレーブノードも共通の構成である。また、図9に示すノード装置60は、コントローラ及びネットワークの両方機能を含めた構成を有する。ここで、コントローラの処理は、例えば一定周期を制御単位(スキャン周期)として処理を行うが、本実施形態では、制御LSI(Large Scale Integration)(例えば、マスタLSI等)からの一定周期の割込みを基準に動作させることができる。なお、本実施形態においては、これに限定されるものではなく、例えばマイコンの内蔵タイマ等を基準に処理を行ってもよい。 The node device 60 shown in FIG. 9 has a common configuration for both the master node and the slave node. Also, the node device 60 shown in FIG. 9 has a configuration including both functions of the controller and the network. Here, the processing of the controller is performed, for example, with a constant cycle as a control unit (scan cycle). In this embodiment, an interrupt with a constant cycle from a control LSI (Large Scale Integration) (for example, a master LSI) is performed. Can be operated on the basis. In the present embodiment, the present invention is not limited to this. For example, processing may be performed based on a built-in timer of a microcomputer.
 本実施形態では、コントローラ間ネットワークの受信割込みを使用し、TCの受信タイミングとマスタLSIからのスキャン周期割込みとの差異から遅延時間を計算し、補正を行う。なお、コントローラは、PC上の支援ツール(ローダ)と組合せプログラムや動作定義をダウンロードして動作することができる。 In this embodiment, the reception interrupt of the inter-controller network is used, the delay time is calculated from the difference between the TC reception timing and the scan cycle interrupt from the master LSI, and correction is performed. The controller can operate by downloading a support program (loader) on the PC, a combination program, and an operation definition.
 通常コントローラとローダとしてのノード装置60は、通信IF手段61により、例えばシリアルケーブルやUSB(Universal Serial Bus)等を介して外部装置等と接続される。ここで、送受信される通信は、通信IF手段61からローダコマンド手段62に出力される。 The node device 60 as a normal controller and a loader is connected to an external device or the like by a communication IF means 61 via, for example, a serial cable or a USB (Universal Serial Bus). Here, the transmitted / received communication is output from the communication IF unit 61 to the loader command unit 62.
 ローダコマンド手段62は、ローダコマンドと呼ばれるプロトコルにより対応する処理のやり取りが行われる。具体的には、ローダコマンドには、アプリケーションの起動停止(システム管理制御)、アプリケーションデータのモニタや変更(アプリ管理制御)、プログラム、定義のダウンロード(ストレージ管理制御)等のコマンドがあり、それぞれの機能に対し作用する。 The loader command means 62 exchanges corresponding processing by a protocol called a loader command. Specifically, loader commands include commands such as application start / stop (system management control), application data monitoring and modification (application management control), program, definition download (storage management control), etc. Acts on function.
 ストレージ管理手段63は、書き換え可能であり、電源を切ってもデータが消えない不揮発性の半導体メモリであるSDメモリカード等のフラッシュメモリ等に対して各種情報を蓄積したり、蓄積された情報を読み出す等の管理を行う。また、ストレージ管理手段63は、取得した情報を必要に応じてシステム管理手段64、アプリケーション制御手段67、及びネットワーク制御手段68のうち、少なくとも1つに出力する。 The storage management means 63 is rewritable and stores various information in a flash memory such as an SD memory card, which is a non-volatile semiconductor memory that does not lose data even when the power is turned off. Management such as reading. The storage management unit 63 outputs the acquired information to at least one of the system management unit 64, the application control unit 67, and the network control unit 68 as necessary.
 システム管理手段64は、予め設定された処理の実行(例えば、実行周期、メモリ割付、IO構成の管理、各リソースの初期化等)、ノード装置60の状態監視(故障診断)、IOデータ交換処理等を行う。なお、システム管理手段64は、ストレージ管理手段63、ローダコマンド手段62、SW監視手段65、時間管理手段66、アプリケーション制御手段67、IO制御手段69から得られる各種データに基づいて上述したような処理を実行する。 The system management unit 64 executes preset processing (for example, execution cycle, memory allocation, IO configuration management, initialization of each resource, etc.), status monitoring (failure diagnosis) of the node device 60, IO data exchange processing Etc. The system management means 64 performs processing as described above based on various data obtained from the storage management means 63, loader command means 62, SW monitoring means 65, time management means 66, application control means 67, and IO control means 69. Execute.
 具体的には、システム管理手段64は、ネットワーク制御手段68によりスレーブノードに設定された場合に、マスタノードのタイマアップ後に送信される同期化フレームを受信する。また、システム管理手段64は、受信した同期化フレームに対応させて上述したTC,TSの伝送周期のタイマを初期化し、初期化後に受信完了フレームを通信IF手段61からマスタノードに送信させる。 Specifically, the system management means 64 receives the synchronization frame transmitted after the master node timer is up when the network control means 68 is set as a slave node. Further, the system management means 64 initializes the above-described timer for the TC and TS transmission periods in correspondence with the received synchronization frame, and transmits the reception completion frame from the communication IF means 61 to the master node after the initialization.
 また、システム管理手段64は、ネットワーク制御手段68によりスレーブノードに設定された場合に、マスタノードからの伝送遅延時間の通知フレームを受信し、受信した伝送遅延時間に基づいて、自ノード内のタイマを調整する。具体的には、システム管理手段64は、自ノード内のタイマがマスタノードの伝送遅延時間より遅れている場合には、例えば受信した伝送遅延時間(具体的には、往復伝送遅延時間)を自ノードのタイマの現在時刻から減算することで、ノード装置60は、自ノード内タイマの現在時刻をマスタのタイマと同期させることができる。また、システム管理手段64は、自ノード内のタイマがマスタノードの伝送遅延時間より進んでいる場合には、上述した伝送遅延時間を自ノードのタイマの現在時刻に加算することで、マスタのタイマと同期させる。 Further, the system management unit 64 receives the transmission delay time notification frame from the master node when the network control unit 68 sets the slave node, and based on the received transmission delay time, Adjust. Specifically, when the timer in its own node is delayed from the transmission delay time of the master node, the system management means 64, for example, uses the received transmission delay time (specifically, the round-trip transmission delay time) as its own. By subtracting from the current time of the timer of the node, the node device 60 can synchronize the current time of the local node timer with the master timer. In addition, when the timer in the own node is ahead of the transmission delay time of the master node, the system management means 64 adds the above-described transmission delay time to the current time of the own node timer, so that the master timer Synchronize with.
 また、システム管理手段64は、ネットワーク制御手段68によりマスタノードに設定された場合に、スレーブノードからの同期化フレーム受信完了フレームを受信する。また、システム管理手段64は、受信した同期化フレーム受信完了フレームに基づいて、時間管理手段66における上述したTC,TSの伝送周期のタイマにRTCから得られる現在時刻を記録する。 Further, the system management unit 64 receives the synchronization frame reception completion frame from the slave node when the network control unit 68 sets the master node. Further, the system management unit 64 records the current time obtained from the RTC in the above-described timer of the TC and TS transmission cycle in the time management unit 66 based on the received synchronization frame reception completion frame.
 また、システム管理手段64は、受信完了フレームの受信時のタイマの現在時刻と、自ノードから送信した同期化フレームの送信時のタイマ時刻との差分から、マスタノードとスレーブノード間の往復伝送遅延時間を計算する。また、システム管理手段64は、計算した往復伝送遅延時間をスレーブノードに対して通知する。 Further, the system management means 64 determines the round-trip transmission delay between the master node and the slave node from the difference between the current time of the timer when receiving the reception completion frame and the timer time when transmitting the synchronization frame transmitted from the own node. Calculate time. Further, the system management means 64 notifies the calculated round trip transmission delay time to the slave node.
 更に、システム管理手段64は、マスタノード時に、複数のスレーブノード間との伝送遅延時間のうち最大のものを基準としてデータの送信等を行わない余裕時間を設定する。また、システム管理手段64は、スレーブノードのデータ送信後、マスタノードの同期化フレーム送信までの間隔を余裕時間とする。これにより、本実施形態では、同期化フレーム送信時に通信の輻輳を発生させないようにすることができる。 Furthermore, the system management means 64 sets a margin time during which data transmission or the like is not performed at the master node with reference to the maximum transmission delay time between a plurality of slave nodes. Further, the system management means 64 uses the interval from the slave node data transmission to the master node synchronization frame transmission as a margin time. As a result, in the present embodiment, it is possible to prevent communication congestion from occurring during transmission of the synchronization frame.
 また、システム管理手段64は、各種の設定や制御、監視等行う。システム管理手段64における設定は、基本的にストレージ管理手段63から読み出される。なお、ストレージ管理に対しての設定ファイル書込み等は、例えば外部から通信IF手段61及びローダコマンド手段62を経由して格納される。 Further, the system management means 64 performs various settings, control, monitoring, and the like. The settings in the system management means 64 are basically read from the storage management means 63. The setting file writing for storage management is stored from the outside via the communication IF means 61 and the loader command means 62, for example.
 また、設定内容としては、例えば、システム設定(例えば、IOモジュールの構成、制御周期の設定等)、モジュール設定(例えば、モジュール初期化動作の設定等)等があるが、これに限定されるものではない。なお、上述したシステム設定は、システム全体への設定となる。そのため、個別のモジュールに対する設定等は、ネットワーク制御、又はIO制御等を通してメッセージ等で伝えられる。 The setting contents include, for example, system settings (for example, IO module configuration, control cycle settings, etc.), module settings (for example, module initialization operation settings, etc.), but are not limited thereto. is not. The system settings described above are settings for the entire system. For this reason, settings for individual modules are transmitted as messages through network control or IO control.
 また、システム管理手段64における制御とは、例えばアプリケーションの起動や停止、その他リセット(初期化)等の操作制御を行う。なお、これらの操作制御は、例えばローダコマンド手段62又はSW監視手段65等から指示される。また、システム管理手段64における制御としては、上述した内容以外にも、例えば運転中のIOデータ、ネットワークデータ等の交換処理等の制御を行う。 Further, the control in the system management means 64 performs operation control such as starting and stopping of applications, and other resets (initialization), for example. These operation controls are instructed from the loader command means 62 or the SW monitoring means 65, for example. Moreover, as control in the system management means 64, in addition to the content described above, for example, control of exchange processing of IO data during operation, network data, and the like is performed.
 更に、システム管理手段64における監視は、一定周期でモジュールのハードウェア故障や、ネットワーク、IO制御で収集したシステム全体の異常情報等を監視する。また、システム管理手段64における監視は、システムの停止やユーザへの通知(例えば、音声や光等を用いた通知)、ローダコマンドを用いた所定のコンピュータ(例えば、管理端末)等への通知(例えば、エラーメッセージ等)を行う。 Further, the monitoring in the system management means 64 monitors module hardware failures, network, and system-wide abnormality information collected by network control at regular intervals. In addition, monitoring by the system management means 64 includes system shutdown, notification to the user (for example, notification using voice, light, etc.), notification to a predetermined computer (for example, management terminal) using a loader command ( For example, an error message or the like is performed.
 SW監視手段65は、外部からのキースイッチ(Key SW)(例えば、電源ON/OFF等)や、局番SW等を監視し、例えばユーザ等の操作により得られる各SW信号をシステム管理手段64に出力する。 The SW monitoring unit 65 monitors an external key switch (Key SW) (for example, power ON / OFF, etc.), a station number SW, and the like, and sends each SW signal obtained by, for example, a user operation to the system management unit 64. Output.
 時間管理手段66は、同期を取るための基準となる時刻情報を取得するものである。具体的には、日時情報取得手段66は、例えばRTC(Real Time Clock)からの信号を取得し、カレンダ機能等により、時間等を管理する。
ここで、時間管理手段66は、上述したサイクルタイマ(第1のタイマ)とセンドタイマ(第2のタイマ)を有していてもよい。また、時間管理手段66は、システム管理手段64から得られる上述した余裕時間を管理してもよい。時間管理手段66は、取得した時間情報をシステム管理手段64に出力する。
The time management means 66 acquires time information that serves as a reference for synchronization. Specifically, the date information acquisition unit 66 acquires a signal from, for example, an RTC (Real Time Clock), and manages time and the like by a calendar function or the like.
Here, the time management means 66 may have the cycle timer (first timer) and the send timer (second timer) described above. Further, the time management unit 66 may manage the above-described margin time obtained from the system management unit 64. The time management unit 66 outputs the acquired time information to the system management unit 64.
 アプリケーション制御手段67は、本実施形態で実施される上述した各種のノード同期処理等のアプリケーションを制御するための各種アプリケーションプログラムが格納されており、ローダコマンド手段62やシステム管理手段64からの制御信号等に基づいて各種アプリケーション処理が実行される。 The application control means 67 stores various application programs for controlling applications such as the above-described various node synchronization processes implemented in the present embodiment. Control signals from the loader command means 62 and the system management means 64 are stored. Various application processes are executed based on the above.
 ネットワーク制御手段68は、例えば他のノード間とのメッセージや制御データの送受信を行うためのネットワーク全般の制御を行う。また、ネットワーク制御手段68は、上述したように他のノード装置との接続状態に基づいて、自ノードがマスタノード又はスレーブノードの何れかに設定するための制御を行う。 The network control means 68 controls the entire network for sending and receiving messages and control data with other nodes, for example. Further, the network control unit 68 performs control for the own node to set to either the master node or the slave node based on the connection state with other node devices as described above.
 具体的には、ネットワーク制御手段68は、自ノードがマスタノードの場合において、加入要求してきたスレーブノードが余裕時間を超えるスレーブノードの場合には、加入を拒否するよう制御する。また、ネットワーク制御手段68は、複数のノード装置から仮マスタを決定し、ITC送信が所定数以上であり、更に他のノード装置からスレーブ加入通知があった場合に、仮マスタをマスタノードとして運用し、他のノード装置をスレーブノードとして運用する。 Specifically, the network control means 68 performs control so as to reject the subscription when the slave node requesting to join is a slave node exceeding the margin time when the own node is the master node. Further, the network control unit 68 determines a temporary master from a plurality of node devices, operates the temporary master as a master node when the ITC transmission is a predetermined number or more and a slave join notification is received from another node device. Then, other node devices are operated as slave nodes.
 また、ネットワーク制御手段68は、通信路(通信ネットワーク)に接続された複数のノード装置に新たにノード装置が加入される場合又はマスタノードが通信路から脱落した場合には、所定の処理の実行を同期させる処理を再実行する。更に、ネットワーク制御手段68は、自ノードがスレーブノードの場合において、自ノードのタイマでTC受信タイミングを測定し、測定した時間と予め設定された遅延時間とを比較することで、マスタノードとの同期ずれが起こっているかを検出し、検出結果により得られるタイマの遅れや進みに応じて上述した同期ずれがなくなるように修正を行う。 The network control unit 68 executes predetermined processing when a node device is newly joined to a plurality of node devices connected to the communication path (communication network) or when the master node is dropped from the communication path. Re-execute the process to synchronize. Further, when the node is a slave node, the network control unit 68 measures the TC reception timing with the timer of the node, and compares the measured time with a preset delay time, thereby It is detected whether or not synchronization has occurred, and correction is performed so that the above-described synchronization is eliminated in accordance with the delay or advance of the timer obtained from the detection result.
 IO制御手段69は、接続される外部機器との間でメッセージや制御データの入出力全般の制御を行う。 The IO control means 69 controls the overall input / output of messages and control data with the connected external device.
 なお、図9に示すノード装置60は、ネットワーク機能を同一機能ブロック上に記載しているが、本発明においてはこれに限定されるものではなく、例えば別モジュールとして分けて、IO制御手段69を介して各モジュール間のメッセージや制御データのやり取りをするよう実装することができる。 In the node device 60 shown in FIG. 9, the network function is described on the same functional block. However, the present invention is not limited to this. For example, the IO control unit 69 is divided into separate modules. It can be implemented to exchange messages and control data between modules.
 <ノード装置のハードウェア構成例>
 次に、本実施形態におけるノード装置のハードウェアの一例について図を用いて説明する。図10は、ノード装置のハードウェア構成の一例を示す図である。図10に示すハードウェア構成例において、ノード装置70は、基本システム部71と、アプリケーション制御部72と、ネットワーク制御部73とを有する。
<Example of hardware configuration of node device>
Next, an example of hardware of the node device according to the present embodiment will be described with reference to the drawings. FIG. 10 is a diagram illustrating an example of a hardware configuration of the node device. In the hardware configuration example illustrated in FIG. 10, the node device 70 includes a basic system unit 71, an application control unit 72, and a network control unit 73.
 基本システム部71は、上述したシステム管理手段64に相当し、アプリケーション制御部72は、アプリケーション制御手段67に相当し、ネットワーク制御部73は、ネットワーク制御手段68に相当する。 The basic system unit 71 corresponds to the system management unit 64 described above, the application control unit 72 corresponds to the application control unit 67, and the network control unit 73 corresponds to the network control unit 68.
 基本システム部71には、システム制御手段81と、SDRAM(Synchronous DRAM)82と、LAN(Local Area Network)83と、RTC84と、SDメモリ(Secure Digital memory)85と、フラッシュメモリ(Flash Memory)86と、内部バス管理LSI87と、SRAM(Static Random Access Memory)88と、マスタLSI89とを有するよう構成されている。また、アプリケーション制御部72は、アプリケーション・ネットワーク手段91と、マスタLSI92と、SRAM93と、フラッシュメモリ94と、DDR-SDRAM(Double-Data-Rate Synchronous Dynamic Random Access Memory)95とを有するよう構成されている。 The basic system unit 71 includes system control means 81, SDRAM (Synchronous DRAM) 82, LAN (Local Area Network) 83, RTC 84, SD memory (Secure Digital memory) 85, and flash memory (Flash Memory) 86. And an internal bus management LSI 87, an SRAM (Static Random Access Memory) 88, and a master LSI 89. The application control unit 72 includes an application network unit 91, a master LSI 92, an SRAM 93, a flash memory 94, and a DDR-SDRAM (Double-Data-Rate Synchronous Random Access Memory) 95. Yes.
 ここで、上述した図10において、例えばSXバス(高速バス)、E-SXバス(超高速バス)は、所定の入出力(IO)コントロールバスである。システム制御81は、ノード装置70の基本システムにおける制御を行う。例えばシステム制御81は、LAN83で接続された外部装置より各種データの送受信を制御したり、RTC84から得られる時間情報に基づいてシステム全体の動作を制御したり、SDメモリ85等のアプリケーション(プログラム)を読み出して実行する等の制御を行う。また、システム制御手段81は、USB等を介して外部装置から各種データの入出力を行ってもよい。
マスタLSI89,92はIOコントロールバスの制御LSIである。DDR-SDRAM95、SDRAM82、SRAM88,93は、揮発メモリ、フラッシュメモリ86,94は、書込み可能な不揮発メモリを意味する。
Here, in FIG. 10 described above, for example, the SX bus (high-speed bus) and the E-SX bus (super high-speed bus) are predetermined input / output (IO) control buses. The system control 81 performs control in the basic system of the node device 70. For example, the system control 81 controls transmission / reception of various data from an external device connected via the LAN 83, controls the operation of the entire system based on time information obtained from the RTC 84, and an application (program) such as the SD memory 85. Is read and executed. Further, the system control unit 81 may input / output various data from an external device via a USB or the like.
Master LSIs 89 and 92 are control LSIs for the IO control bus. DDR-SDRAM 95, SDRAM 82, and SRAMs 88 and 93 are volatile memories, and flash memories 86 and 94 are writable nonvolatile memories.
 内部バス管理LSI87は、マイコン間を接続するLSI(FPGA(Field-Programmable Gate Array)である。内部バス管理LSI87は、例えば共有メモリ(例えば、図10に示すマスタLSI92に含まれる共有メモリ)へのアクセス(プロセッサバスアクセス)を制御する。また、内部バス管理LSI87は、SXバスで接続された他のCPU(Central Processing Unit)のSRAMへのアクセスを制御する。なお、上述したCPUとは、例えばPLC(Programmable Logic Controller)等のCPUモジュールというアプリケーション演算を行うモジュールを意味する。更に、内部バス管理LSI87は、マイコン間での割込み等の処理も行う。 The internal bus management LSI 87 is an LSI (FPGA (Field-Programmable Gate Array) for connecting microcomputers. The internal bus management LSI 87 is connected to, for example, a shared memory (for example, a shared memory included in the master LSI 92 shown in FIG. 10). The internal bus management LSI 87 controls access to the SRAM of another CPU (Central Processing Unit) connected by the SX bus. CPU module such as PLC (Programmable Logic Controller), etc. It means a module that performs application computations, and the internal bus management LSI 87 handles interrupts between microcomputers. Do.
 また、上述したプロセッサバスアクセスにおいて、自ノード(自局)領域は、図10の中のプロセッサバス空間に相当する。なお、上述したプロセッサとは、例えばPLCのアプリケーション実行を行うモジュールのことを意味する。 In the processor bus access described above, the own node (own station) area corresponds to the processor bus space in FIG. Note that the above-described processor means a module that executes, for example, a PLC application.
 また、アプリケーション・ネットワーク手段91は、例えばデュアルコアマイコンを使用し、それぞれアプリケーション、ネットワークを主に処理する構造になっている。なお、上述したハードウェア構成は、本発明においてはこれに限定されるものではなく、例えばマイコンが1つでもよい。 Also, the application network means 91 has a structure that mainly uses, for example, a dual-core microcomputer and processes each application and network. The hardware configuration described above is not limited to this in the present invention. For example, one microcomputer may be used.
 ここで、本実施形態では、図10に示すハードウェア構成を用いて、図9に示すような各機能を実現することができる。具体的には、本実施形態におけるノード装置60は、他のノード装置との接続状態に基づいて、マスタノード又はスレーブノードの何れかに設定する。また、ノード装置60は、スレーブノードに設定された場合に、マスタノードによって送信される同期化フレームを受信することで、該スレーブノードのタイマを初期化して受信完了フレームをマスタノードに送信する。また、ノード装置60は、マスタノードに設定された場合に、スレーブノードによって送信された受信完了フレームを受信し、受信時の前記タイマの時刻と自ノードから送信した同期化フレームの送信時のタイマ時刻との差分から、マスタノードとスレーブノード間の往復伝送遅延時間を計算する。また、ノード装置60は、計算した往復伝送遅延時間をスレーブノードに通知する往復伝送遅延時間通知フレームを送信し、スレーブノードに、往復伝送遅延時間通知フレームを受信させて、その通知フレームに含まれる往復伝送遅延時間に基づいて、自ノード内のタイマをマスタノードのタイマと同期させる。 Here, in the present embodiment, each function as shown in FIG. 9 can be realized by using the hardware configuration shown in FIG. Specifically, the node device 60 in this embodiment is set to either a master node or a slave node based on the connection state with other node devices. Further, when the node device 60 is set as a slave node, the node device 60 receives a synchronization frame transmitted by the master node, thereby initializing a timer of the slave node and transmitting a reception completion frame to the master node. Further, when the node device 60 is set as the master node, the node device 60 receives the reception completion frame transmitted by the slave node, and the timer at the time of transmission and the timer at the time of transmission of the synchronization frame transmitted from the own node. The round trip transmission delay time between the master node and the slave node is calculated from the difference with the time. Further, the node device 60 transmits a round trip transmission delay time notification frame for notifying the slave node of the calculated round trip transmission delay time, causes the slave node to receive the round trip transmission delay time notification frame, and is included in the notification frame. Based on the round-trip transmission delay time, the timer in the own node is synchronized with the timer of the master node.
 また、本実施形態では、コンピュータを、上述したノード装置60が有する各手段として機能させるためのプログラム(ノード同期プログラム)を生成し、生成したプログラムを、PC等のコンピュータ等にインストールすることにより、上述した各ノード同期処理を実現することができる。 In the present embodiment, a program (node synchronization program) for causing a computer to function as each unit included in the node device 60 described above is generated, and the generated program is installed in a computer such as a PC. Each node synchronization process described above can be realized.
 上述したように、本発明によれば、各ノードのデータ交換周期の安定化を実現することができる。また、本発明によれば、例えばイーサネットのようなスター型トポロジを持つシステムにおいて、時分割多重伝送方式を用いた共有メモリネットワークに対し、各ノードのタイマを同期化し、伝送の効率化とデータ交換の効率化、データ交換周期の安定化等を実現することができる。 As described above, according to the present invention, stabilization of the data exchange cycle of each node can be realized. In addition, according to the present invention, in a system having a star topology such as Ethernet, for example, a timer of each node is synchronized with a shared memory network using a time division multiplex transmission method, thereby improving transmission efficiency and data exchange. Efficiency and stabilization of the data exchange cycle can be realized.
 なお、本実施形態は、例えば鉄鋼プラント等のような大規模設備等における一連の動作を複数の操作を用いて行う場合の同期手法に適用することができ、更にギガイーサネット全般における各装置間の同期方式としても広く適用することができる。 In addition, this embodiment can be applied to a synchronization method when performing a series of operations in a large-scale facility such as a steel plant using a plurality of operations. It can be widely applied as a synchronization method.
 以上本発明の好ましい実施例について詳述したが、本発明は係る特定の実施形態に限定されるものではなく、特許請求の範囲に記載された本発明の要旨の範囲内において、種々の変形、変更が可能である。 The preferred embodiments of the present invention have been described in detail above, but the present invention is not limited to the specific embodiments, and various modifications, It can be changed.
 10,50 ネットワーク伝送システム
 11,51 ノード装置
 12,52 HUB(中継装置)
 21 同期化フレーム
 22 センドタイマ
 23 送信データ
 24 遅延
 25 データ
 31,37 TC帯域
 32,38 TS帯域
 33 reqフレーム
 34 OKフレーム
 35 dlyフレーム
 36 SETフレーム
 39 時間
 41 余裕時間
 60,70 ノード装置
 61 通信インタフェース(IF)手段
 62 ロードコマンド手段
 63 ストレージ管理手段
 64 システム管理手段
 65 スイッチ(SW)管理手段
 66 時間管理手段(タイマ)
 67 アプリケーション制御手段
 68 ネットワーク制御手段
 69 入出力(IO)制御手段
 71 基本システム部
 72 アプリケーション制御部
 73 ネットワーク制御部
 81 システム制御手段
 82 SDRAM
 83 LAN
 84 RTC
 85 SDメモリ
 86,94 フラッシュメモリ
 87 内部バス管理LSI
 88,93 SRAM
 89,92 マスタLSI
 91 アプリケーション・ネットワーク手段
 95 DDR-SDRAM
10, 50 Network transmission system 11, 51 Node device 12, 52 HUB (relay device)
21 synchronization frame 22 send timer 23 transmission data 24 delay 25 data 31, 37 TC band 32, 38 TS band 33 req frame 34 OK frame 35 dly frame 36 SET frame 39 time 41 allowance time 60, 70 node device 61 communication interface (IF ) Means 62 load command means 63 storage management means 64 system management means 65 switch (SW) management means 66 time management means (timer)
67 Application Control Unit 68 Network Control Unit 69 Input / Output (IO) Control Unit 71 Basic System Unit 72 Application Control Unit 73 Network Control Unit 81 System Control Unit 82 SDRAM
83 LAN
84 RTC
85 SD memory 86, 94 Flash memory 87 Internal bus management LSI
88, 93 SRAM
89,92 Master LSI
91 Application network means 95 DDR-SDRAM

Claims (24)

  1.  タイマを有するマスタノード及び複数のスレーブノードが通信路を介して接続され、該それぞれのノードの前記タイマを同期させるノード同期方法であって、
     前記スレーブノードは、前記マスタノードによって送信される同期化フレームを受信することで、該スレーブノードのタイマを初期化して受信完了フレームを前記マスタノードに送信し、
     前記マスタノードは、前記スレーブノードによって送信された前記受信完了フレームを受信し、該受信時の前記タイマの時刻と自ノードから送信した前記同期化フレームの送信時のタイマ時刻との差分から、前記マスタノードと前記スレーブノード間の往復伝送遅延時間を計算し、計算した往復伝送遅延時間を前記スレーブノードに通知する往復伝送遅延時間通知フレームを送信し、
     前記スレーブノードは、前記往復伝送遅延時間通知フレームを受信して、該通知フレームに含まれる前記往復伝送遅延時間に基づいて、自ノード内のタイマを前記マスタノードのタイマと同期させることを特徴とするノード同期方法。
    A node synchronization method in which a master node having a timer and a plurality of slave nodes are connected via a communication path, and the timers of the respective nodes are synchronized,
    The slave node receives a synchronization frame transmitted by the master node, initializes a timer of the slave node, and transmits a reception completion frame to the master node.
    The master node receives the reception completion frame transmitted by the slave node, and from the difference between the timer time at the time of reception and the timer time at the time of transmission of the synchronization frame transmitted from the own node, Calculate a round trip transmission delay time between the master node and the slave node, send a round trip transmission delay time notification frame to notify the slave node of the calculated round trip transmission delay time,
    The slave node receives the round trip transmission delay time notification frame, and synchronizes a timer in the own node with a timer of the master node based on the round trip transmission delay time included in the notification frame. Node synchronization method to perform.
  2.  前記マスタノードは、複数のスレーブノード間とのそれぞれの前記往復伝送遅延時間のうち、最大の往復伝送遅延時間に基づいて、
     前記マスタノードが全スレーブノードに前記同期化フレームを送信し、前記スレーブノード全てが応答送信し終わったタイミングから、次の同期化フレームを送信するタイミングまでの余裕時間を設定することを特徴とする請求項1に記載のノード同期方法。
    The master node is based on a maximum round-trip transmission delay time among the round-trip transmission delay times between a plurality of slave nodes.
    The master node transmits the synchronization frame to all slave nodes, and sets a margin time from a timing at which all the slave nodes have transmitted a response to a timing at which the next synchronization frame is transmitted. The node synchronization method according to claim 1.
  3.  前記余裕時間は、前記最大の往復伝送遅延時間以上であることを特徴とする請求項2に記載のノード同期方法。 3. The node synchronization method according to claim 2, wherein the margin time is equal to or longer than the maximum round-trip transmission delay time.
  4.  新たに前記通信路に加入要求するノードは、前記マスタノードに対して加入要求フレームを送信し、
     前記マスタノードは、前記加入要求するノードの参加可否を判断したうえで、スレーブノードとして参加許可する場合に加入許可フレームを前記同期化フレームに続けて送信し、
     前記加入要求するノードは、前記加入許可フレーム及び同期化フレームを受信し、スレーブノードとして、次の同期化フレームの受信タイミングで前記マスタノードに受信遅延フレームを送信し、
     前記マスタノードは、前記受信遅延フレームの受信時のサイクルタイマ値と、前記同期化フレームの送信時のサイクルタイマ値との差分を、前記往復伝送遅延時間とすることを特徴とする請求項1に記載のノード同期方法。
    The node newly requesting to join the communication path transmits a join request frame to the master node,
    The master node, after determining whether or not to join the node requesting to join, when allowing participation as a slave node, transmits a join permission frame following the synchronization frame,
    The node requesting to join receives the join permission frame and the synchronization frame, and as a slave node, transmits a reception delay frame to the master node at a reception timing of the next synchronization frame,
    2. The master node according to claim 1, wherein a difference between a cycle timer value at the time of reception of the reception delay frame and a cycle timer value at the time of transmission of the synchronization frame is set as the round trip transmission delay time. The node synchronization method described.
  5.  前記往復伝送遅延時間が、前記余裕時間を超えるスレーブノードの加入の場合には、加入を拒否することを特徴とする請求項4に記載のノード同期方法。 5. The node synchronization method according to claim 4, wherein, when the slave node joins the round trip transmission delay time exceeding the margin time, the joining is rejected.
  6.  前記通信路に接続された複数のノードに新たなノードが加入される場合又は前記マスタノードが前記通信路から脱落した場合には、前記マスタノードと前記スレーブノードとの同期を再実行することを特徴とする請求項1に記載のノード同期方法。 When a new node is joined to a plurality of nodes connected to the communication path or when the master node is dropped from the communication path, the synchronization between the master node and the slave node is re-executed. The node synchronization method according to claim 1, wherein:
  7.  前記スレーブノードは、自ノードのタイマで同期化フレームの受信タイミングを測定し、測定した時間と、予め設定された前記マスタノードとの同期時における遅延時間とを比較することで、前記マスタノードとの同期ずれが起こっているかを検出し、該検出されたずれ量に応じて、前記上述した同期ずれがなくなるように、自ノード内のタイマを前記マスタノードのタイマと同期させることを特徴とする請求項1に記載のノード同期方法。 The slave node measures the reception timing of the synchronization frame with the timer of its own node, and compares the measured time with a delay time at the time of synchronization with the master node set in advance. And a timer in the own node is synchronized with the timer of the master node so as to eliminate the above-mentioned synchronization deviation according to the detected deviation amount. The node synchronization method according to claim 1.
  8.  前記通信路は、前記マスタノードと前記スレーブノードとの間に中継装置を有するスター型であることを特徴とする請求項1に記載のノード同期方法。 The node synchronization method according to claim 1, wherein the communication path is a star type having a relay device between the master node and the slave node.
  9.  タイマを有するマスタノード及び複数のスレーブノードが通信路を介して接続され、該それぞれのノードの前記タイマを同期させるネットワーク伝送システムであって、
     前記スレーブノードは、前記マスタノードによって送信される同期化フレームを受信することで、該スレーブノードのタイマを初期化して受信完了フレームを前記マスタノードに送信し、
     前記マスタノードは、前記スレーブノードによって送信された前記受信完了フレームを受信し、該受信時の前記タイマの時刻と自ノードから送信した前記同期化フレームの送信時のタイマ時刻との差分から、前記マスタノードと前記スレーブノード間の往復伝送遅延時間を計算し、計算した往復伝送遅延時間を前記スレーブノードに通知する往復伝送遅延時間通知フレームを送信し、
     前記スレーブノードは、前記往復伝送遅延時間通知フレームを受信して、該通知フレームに含まれる前記往復伝送遅延時間に基づいて、自ノード内のタイマを前記マスタノードのタイマと同期させることを特徴とするネットワーク伝送システム。
    A network transmission system in which a master node having a timer and a plurality of slave nodes are connected via a communication path, and the timers of the respective nodes are synchronized.
    The slave node receives a synchronization frame transmitted by the master node, initializes a timer of the slave node, and transmits a reception completion frame to the master node.
    The master node receives the reception completion frame transmitted by the slave node, and from the difference between the timer time at the time of reception and the timer time at the time of transmission of the synchronization frame transmitted from the own node, Calculate a round trip transmission delay time between the master node and the slave node, send a round trip transmission delay time notification frame to notify the slave node of the calculated round trip transmission delay time,
    The slave node receives the round trip transmission delay time notification frame, and synchronizes a timer in the own node with a timer of the master node based on the round trip transmission delay time included in the notification frame. Network transmission system.
  10.  前記マスタノードは、複数のスレーブノード間とのそれぞれの前記往復伝送遅延時間のうち、最大の往復伝送遅延時間に基づいて、
     前記マスタノードが全スレーブノードに前記同期化フレームを送信し、前記スレーブノード全てが応答送信し終わったタイミングから、次の同期化フレームを送信するタイミングまでの余裕時間を設定することを特徴とする請求項9に記載のネットワーク伝送システム。
    The master node is based on a maximum round-trip transmission delay time among the round-trip transmission delay times between a plurality of slave nodes.
    The master node transmits the synchronization frame to all slave nodes, and sets a margin time from a timing at which all the slave nodes have transmitted a response to a timing at which the next synchronization frame is transmitted. The network transmission system according to claim 9.
  11.  前記余裕時間は、前記最大の往復伝送遅延時間以上であることを特徴とする請求項10に記載のネットワーク伝送システム。 The network transmission system according to claim 10, wherein the margin time is equal to or longer than the maximum round-trip transmission delay time.
  12.  新たに前記通信路に加入要求するノードは、前記マスタノードに対して加入要求フレームを送信し、
     前記マスタノードは、前記加入要求するノードの参加可否を判断したうえで、スレーブノードとして参加許可する場合に加入許可フレームを前記同期化フレームに続けて送信し、
     前記加入要求するノードは、前記加入許可フレーム及び同期化フレームを受信し、スレーブノードとして、次の同期化フレームの受信タイミングで前記マスタノードに受信遅延フレームを送信し、
     前記マスタノードは、前記受信遅延フレームの受信時のサイクルタイマ値と、前記同期化フレームの送信時のサイクルタイマ値との差分を、前記往復伝送遅延時間とすることを特徴とする請求項9に記載のネットワーク伝送システム。
    The node newly requesting to join the communication path transmits a join request frame to the master node,
    The master node, after determining whether or not to join the node requesting to join, when allowing participation as a slave node, transmits a join permission frame following the synchronization frame,
    The node requesting to join receives the join permission frame and the synchronization frame, and as a slave node, transmits a reception delay frame to the master node at a reception timing of the next synchronization frame,
    10. The master node according to claim 9, wherein a difference between a cycle timer value at the time of reception of the reception delay frame and a cycle timer value at the time of transmission of the synchronization frame is set as the round-trip transmission delay time. The network transmission system described.
  13.  前記往復伝送遅延時間が、前記余裕時間を超えるスレーブノードの加入の場合には、加入を拒否することを特徴とする請求項12に記載のネットワーク伝送システム。 13. The network transmission system according to claim 12, wherein if the slave node joins the round trip transmission delay time exceeding the margin time, the joining is rejected.
  14.  前記通信路に接続された複数のノードに新たなノードが加入される場合又は前記マスタノードが前記通信路から脱落した場合には、前記マスタノードと前記スレーブノードとの同期を再実行することを特徴とする請求項9に記載のネットワーク伝送システム。 When a new node is joined to a plurality of nodes connected to the communication path or when the master node is dropped from the communication path, the synchronization between the master node and the slave node is re-executed. The network transmission system according to claim 9, wherein:
  15.  前記スレーブノードは、自ノードのタイマで同期化フレームの受信タイミングを測定し、測定した時間と、予め設定された前記マスタノードとの同期時における遅延時間とを比較することで、前記マスタノードとの同期ずれが起こっているかを検出し、該検出されたずれ量に応じて、前記上述した同期ずれがなくなるように、自ノード内のタイマを前記マスタノードのタイマと同期させることを特徴とする請求項1に記載のネットワーク伝送システム。 The slave node measures the reception timing of the synchronization frame with the timer of its own node, and compares the measured time with a delay time at the time of synchronization with the master node set in advance. And a timer in the own node is synchronized with the timer of the master node so as to eliminate the above-mentioned synchronization deviation according to the detected deviation amount. The network transmission system according to claim 1.
  16.  前記通信路は、前記マスタノードと前記スレーブノードとの間に中継装置を有するスター型であることを特徴とする請求項9に記載のネットワーク伝送システム。 The network transmission system according to claim 9, wherein the communication path is a star type having a relay device between the master node and the slave node.
  17.  通信路に接続された他のノード装置間が有するタイマを同期させるノード装置において、
     前記他のノード装置との接続状態に基づいて、マスタノード又はスレーブノードの何れかに設定するネットワーク制御手段と、
     前記ネットワーク制御手段により前記スレーブノードに設定された場合に、前記マスタノードによって送信される同期化フレームを受信することで、該スレーブノードのタイマを初期化して受信完了フレームを前記マスタノードに送信するシステム管理手段とを有し、
     前記システム管理手段は、
     前記ネットワーク制御手段により前記マスタノードに設定された場合に、前記スレーブノードによって送信された前記受信完了フレームを受信し、該受信時の前記タイマの時刻と自ノードから送信した前記同期化フレームの送信時のタイマ時刻との差分から、前記マスタノードと前記スレーブノード間の往復伝送遅延時間を計算し、計算した往復伝送遅延時間を前記スレーブノードに通知する往復伝送遅延時間通知フレームを送信し、前記スレーブノードに、前記往復伝送遅延時間通知フレームを受信させて、該通知フレームに含まれる前記往復伝送遅延時間に基づいて、自ノード内のタイマを前記マスタノードのタイマと同期させることを特徴とするノード装置。
    In a node device that synchronizes a timer of another node device connected to a communication path,
    Network control means for setting either the master node or the slave node based on the connection state with the other node device;
    When set to the slave node by the network control means, by receiving a synchronization frame transmitted by the master node, the timer of the slave node is initialized and a reception completion frame is transmitted to the master node System management means,
    The system management means includes
    When the master node is set by the network control means, the reception completion frame transmitted by the slave node is received, and the time of the timer at the time of reception and transmission of the synchronization frame transmitted from the own node are received. From the difference between the timer time of the hour, calculate the round trip transmission delay time between the master node and the slave node, send the round trip transmission delay time notification frame to notify the slave node the calculated round trip transmission delay time, A slave node receives the round trip transmission delay time notification frame, and synchronizes a timer in the own node with a timer of the master node based on the round trip transmission delay time included in the notification frame. Node device.
  18.  前記システム管理手段は、
     前記ネットワーク制御手段により前記マスタノードに設定された場合に、複数のスレーブノード間とのそれぞれの前記往復伝送遅延時間のうち、最大の往復伝送遅延時間に基づいて、
     前記マスタノードが全スレーブノードに前記同期化フレームを送信し、前記スレーブノード全てが応答送信し終わったタイミングから、次の同期化フレームを送信するタイミングまでの余裕時間を設定することを特徴とする請求項17に記載のノード装置。
    The system management means includes
    Based on the maximum round-trip transmission delay time among the round-trip transmission delay times between a plurality of slave nodes when set to the master node by the network control means,
    The master node transmits the synchronization frame to all slave nodes, and sets a margin time from a timing at which all the slave nodes have transmitted a response to a timing at which the next synchronization frame is transmitted. The node device according to claim 17.
  19.  前記余裕時間は、前記最大の往復伝送遅延時間以上であることを特徴とする請求項18に記載のノード装置。 The node device according to claim 18, wherein the margin time is equal to or longer than the maximum round-trip transmission delay time.
  20.  前記システム管理手段は、
     前記ネットワーク制御手段により前記マスタノードに設定された場合に、新たに前記通信路に加入要求してきたノードからの加入要求フレームを受信し、前記加入要求するノードの参加可否を判断したうえで、スレーブノードとして参加許可する場合に加入許可フレームを前記同期化フレームに続けて送信し、
     前記加入要求するノードに対し、前記加入許可フレーム及び同期化フレームを受信させ、スレーブノードとして、次の同期化フレームの受信タイミングで受信遅延フレームを送信させて、前記受信遅延フレームの受信時のサイクルタイマ値と、前記同期化フレームの送信時のサイクルタイマ値との差分を、前記往復伝送遅延時間とすることを特徴とする請求項17に記載のノード装置。
    The system management means includes
    When it is set as the master node by the network control means, it receives a join request frame from a node that has newly requested to join the communication path, and determines whether or not the node requesting to join can participate in the slave. When allowing participation as a node, a join permission frame is transmitted following the synchronization frame,
    A cycle at the time of receiving the reception delay frame by causing the node requesting to join to receive the join permission frame and the synchronization frame, and as a slave node to transmit a reception delay frame at a reception timing of the next synchronization frame. The node device according to claim 17, wherein a difference between a timer value and a cycle timer value at the time of transmission of the synchronization frame is set as the round trip transmission delay time.
  21.  前記ネットワーク制御手段は、
     前記往復伝送遅延時間が、前記余裕時間を超えるスレーブノードの加入の場合には、加入を拒否することを特徴とする請求項20に記載のノード装置。
    The network control means includes
    21. The node apparatus according to claim 20, wherein when the slave node joins the round trip transmission delay time exceeding the margin time, the joining is rejected.
  22.  前記通信路に接続された複数のノードに新たなノードが加入される場合又は前記マスタノードが前記通信路から脱落した場合には、前記マスタノードと前記スレーブノードとの同期を再実行することを特徴とする請求項17に記載のノード装置。 When a new node is joined to a plurality of nodes connected to the communication path or when the master node is dropped from the communication path, the synchronization between the master node and the slave node is re-executed. The node device according to claim 17, characterized in that:
  23.  前記システム管理手段は、
     前記ネットワーク制御手段により前記スレーブノードに設定された場合に、自ノードのタイマで同期化フレームの受信タイミングを測定し、測定した時間と、予め設定された前記マスタノードとの同期時における遅延時間とを比較することで、前記マスタノードとの同期ずれが起こっているかを検出し、該検出されたずれ量に応じて、前記上述した同期ずれがなくなるように、自ノード内のタイマを前記マスタノードのタイマと同期させることを特徴とする請求項17に記載のノード装置。
    The system management means includes
    When set to the slave node by the network control means, the reception timing of the synchronization frame is measured by a timer of the own node, the measured time, and a delay time at the time of synchronization with the master node set in advance To detect whether a synchronization deviation with the master node has occurred, and in accordance with the detected amount of deviation, the timer in its own node is set so as to eliminate the synchronization deviation described above. The node device according to claim 17, wherein the node device is synchronized with a timer of the node.
  24.  前記通信路は、前記マスタノードと前記スレーブノードとの間に中継装置を有するスター型であることを特徴とする請求項17に記載のノード装置。 The node device according to claim 17, wherein the communication path is a star type having a relay device between the master node and the slave node.
PCT/JP2012/053724 2012-02-16 2012-02-16 Node synchronization method, network transmission system, and node device WO2013121568A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/JP2012/053724 WO2013121568A1 (en) 2012-02-16 2012-02-16 Node synchronization method, network transmission system, and node device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2012/053724 WO2013121568A1 (en) 2012-02-16 2012-02-16 Node synchronization method, network transmission system, and node device

Publications (1)

Publication Number Publication Date
WO2013121568A1 true WO2013121568A1 (en) 2013-08-22

Family

ID=48983725

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2012/053724 WO2013121568A1 (en) 2012-02-16 2012-02-16 Node synchronization method, network transmission system, and node device

Country Status (1)

Country Link
WO (1) WO2013121568A1 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015154212A (en) * 2014-02-13 2015-08-24 富士電機株式会社 Network system and parameter determination device therefor
JP2016005247A (en) * 2014-06-19 2016-01-12 富士電機株式会社 Network transmission system, and master node and slave node thereof
JP2016009944A (en) * 2014-06-23 2016-01-18 富士電機株式会社 Network communication system, master node thereof
JP2016012815A (en) * 2014-06-27 2016-01-21 富士電機株式会社 Network communication system, master node thereof
JP2016170065A (en) * 2015-03-13 2016-09-23 日本電気株式会社 Signal processing controller, signal processing control method, secondary monitor radar system, and computer program
KR20160125942A (en) 2014-02-27 2016-11-01 후지 덴키 가부시키가이샤 Programmable controller system and controller therefor
KR20180099777A (en) 2016-08-05 2018-09-05 후지 덴키 가부시키가이샤 Control network system, its node device
CN112596423A (en) * 2020-11-27 2021-04-02 斐思光电科技武汉有限公司 Cluster control method based on spatial light modulator and spatial light modulator
CN114245453A (en) * 2021-12-27 2022-03-25 东莞市阿尔法电子科技有限公司 Time synchronization method and device, TWS earphone, computer equipment and storage medium
CN117042079A (en) * 2023-10-09 2023-11-10 深圳鹏龙通科技有限公司 Data transmission method, device, equipment and computer readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009290626A (en) * 2008-05-30 2009-12-10 Kddi Corp Optical transmission system and time reference pulse synchronizing method
JP2012009977A (en) * 2010-06-23 2012-01-12 Panasonic Corp Network system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009290626A (en) * 2008-05-30 2009-12-10 Kddi Corp Optical transmission system and time reference pulse synchronizing method
JP2012009977A (en) * 2010-06-23 2012-01-12 Panasonic Corp Network system

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015154212A (en) * 2014-02-13 2015-08-24 富士電機株式会社 Network system and parameter determination device therefor
KR20160125942A (en) 2014-02-27 2016-11-01 후지 덴키 가부시키가이샤 Programmable controller system and controller therefor
JP2016005247A (en) * 2014-06-19 2016-01-12 富士電機株式会社 Network transmission system, and master node and slave node thereof
JP2016009944A (en) * 2014-06-23 2016-01-18 富士電機株式会社 Network communication system, master node thereof
JP2016012815A (en) * 2014-06-27 2016-01-21 富士電機株式会社 Network communication system, master node thereof
JP2016170065A (en) * 2015-03-13 2016-09-23 日本電気株式会社 Signal processing controller, signal processing control method, secondary monitor radar system, and computer program
KR20180099777A (en) 2016-08-05 2018-09-05 후지 덴키 가부시키가이샤 Control network system, its node device
JPWO2018025491A1 (en) * 2016-08-05 2018-11-22 富士電機株式会社 Control network system and its node equipment
CN112596423A (en) * 2020-11-27 2021-04-02 斐思光电科技武汉有限公司 Cluster control method based on spatial light modulator and spatial light modulator
CN112596423B (en) * 2020-11-27 2022-02-18 斐思光电科技武汉有限公司 Cluster control method based on spatial light modulator and spatial light modulator
CN114245453A (en) * 2021-12-27 2022-03-25 东莞市阿尔法电子科技有限公司 Time synchronization method and device, TWS earphone, computer equipment and storage medium
CN114245453B (en) * 2021-12-27 2023-10-13 东莞市阿尔法电子科技有限公司 Time synchronization method, device, TWS earphone, computer equipment and storage medium
CN117042079A (en) * 2023-10-09 2023-11-10 深圳鹏龙通科技有限公司 Data transmission method, device, equipment and computer readable storage medium
CN117042079B (en) * 2023-10-09 2023-12-08 深圳鹏龙通科技有限公司 Data transmission method, device, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
WO2013121568A1 (en) Node synchronization method, network transmission system, and node device
US10868754B2 (en) High availability input/output management nodes
JP6265058B2 (en) Network transmission system, its master node, slave node
CN106685735B (en) EPA on-chip system, EPA communication system and communication method
CN103684716A (en) Method for transmitting messages in a redundantly operable industrial communication network and communication device for the redundantly operable industrial communication network
JP4884557B2 (en) Data communication system and data communication apparatus
Du et al. Software-defined networking for real-time ethernet
JP6045950B2 (en) Communication control device and communication system
JP2005159754A (en) Transmission timing determining method, bus usage right arbitrating method, network system and program
CN114531373A (en) Node state detection method, node state detection device, equipment and medium
US11012301B2 (en) Notification and transfer of link aggregation group control in anticipation of a primary node reboot
KR20140001499A (en) Method and system for managing high availability
EP2698949B1 (en) METHOD AND SYSTEM FOR SETTING DETECTION FRAME TIMEOUT DURATION OF ETHERNET NODEs
US9929934B2 (en) Partner discovery in control clusters using shared VLAN
JP6745106B2 (en) Gateway device and sensor network system
WO2023007209A1 (en) Fault-tolerant distributed computing for vehicular systems
US20220137604A1 (en) Coordination Device and Method for Providing Control Applications via a Communication Network for Transmitting Time-Critical Data
JP2016099634A (en) Control system, repeating device, and control device
US10122588B2 (en) Ring network uplink designation
US9755846B2 (en) Leader device selection in control clusters using shared VLAN
US20150372942A1 (en) Method for Constructing Optimal Time-Controlled Paths in a Large Computer Network
JP6287621B2 (en) Network communication system, its master node
US11853175B2 (en) Cluster system and restoration method that performs failover control
JP6653250B2 (en) Computer system
JP5763030B2 (en) Duplex network control system and duplex network control 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: 12868645

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: JP