WO2014091592A1 - Signal synchronization system, node synchronization system, signal synchronization method, and node synchroniz ation method - Google Patents
Signal synchronization system, node synchronization system, signal synchronization method, and node synchroniz ation method Download PDFInfo
- Publication number
- WO2014091592A1 WO2014091592A1 PCT/JP2012/082334 JP2012082334W WO2014091592A1 WO 2014091592 A1 WO2014091592 A1 WO 2014091592A1 JP 2012082334 W JP2012082334 W JP 2012082334W WO 2014091592 A1 WO2014091592 A1 WO 2014091592A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- reference signal
- synchronization
- count value
- value
- unit
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/04—Generating or distributing clock signals or signals derived directly therefrom
- G06F1/06—Clock generators producing several clock signals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0682—Clock or time synchronisation in a network by delay compensation, e.g. by compensation of propagation delay or variations thereof, by ranging
Definitions
- the present invention relates to a signal synchronization system, a node synchronization system, a signal synchronization method, and a node synchronization method for synchronizing predetermined signals.
- each device is provided with a virtual shared memory (common memory) and transmits its own node data to all nodes (stations) on the network at the update timing.
- each received node updates its data and accesses an application, thereby realizing a data exchange method that guarantees real-time performance.
- broadcast communication broadcast communication
- 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.
- the slave processor generates a delay time due to overhead or the like after receiving the interrupt signal from the main processor until executing the reset processing of its own counter corresponding to the signal. Therefore, conventionally, even if reset processing is performed, a counter synchronization error between the main processor and the slave processor remains.
- a method of receiving a synchronization frame and clearing a timer can be considered.
- the counter is cleared by firmware after receiving the synchronization frame, an error occurs in the counter due to a delay time such as overhead.
- the interrupt signal transmitted from the main processor to the slave processor is counted by hardware, and based on the difference from the counter in the slave processor, It can be considered that the main processor and the slave processor are synchronized by adjusting the counting target (reference value) of the counter.
- the counter of the main processor and the counter of the slave processor have different electrical characteristics, so it is difficult to estimate how much the counter shifts between the main processor and the slave processor. Therefore, if the synchronization correction process for adjusting the reference value of the counter of the slave processor is performed for each interrupt signal, the master processor and the slave processor are kept synchronized. However, if the synchronization correction process is frequently performed, the processing load increases, which may affect other processes that should be executed.
- a signal synchronization system a node synchronization system, a signal synchronization method, and a node synchronization method that synchronize a predetermined signal with high accuracy while suppressing a processing load.
- the purpose is to provide.
- the signal synchronization of the present invention includes a main module that operates according to a first reference signal and a slave module that operates according to a second reference signal, and synchronizes the second reference signal with the first reference signal.
- the system includes a first reference signal generation unit that generates a first reference signal when the main module performs a count and the count value reaches a preset reference value, and the slave module performs a count and performs a reference value
- the second reference signal generating unit that generates the second reference signal when the count value reaches the time, the interval counting unit that counts the interval for performing the synchronization correction processing, and the correction processing interval value for performing the synchronization correction processing in the interval counting unit.
- the first reference signal is received and restarted, and an overhead counter for counting, and after the count value reaches the correction processing interval value in the interval counter, the first reference signal is received.
- a counter value acquisition unit that acquires the count value of the second reference signal generation unit and the count value of the overhead counter unit, and a value that cancels the difference between the count value of the second reference signal generation unit and the count value of the overhead counter unit
- a synchronization correction unit that temporarily sets the reference value as a reference value in the second reference signal generation unit.
- FIG. 6 is a time chart (part 3) for explaining an example of synchronization correction processing in the first embodiment; It is a figure which shows the schematic example of a sequence of a signal synchronization method. It is a figure which shows an example of schematic structure of the node synchronous system in 2nd Embodiment.
- the main module side In response to the interrupt signal (counter reset signal) from, the overhead value on the slave module side is obtained.
- the synchronization correction process is performed based on the obtained overhead value and the counter on the slave module side.
- the interval for performing the synchronization correction process is counted and synchronized periodically (intermittently) for each predetermined correction process interval value. Execute correction processing.
- the synchronization correction process is performed in consideration of the delay time (transmission delay time) on the communication path.
- FIG. 1 is a diagram illustrating an example of a schematic configuration of a signal synchronization system according to the first embodiment.
- the signal synchronization system 10 shown in FIG. 1 shows an example of a multiprocessor for performing counter synchronization among a plurality of processor modules (modules 11a to 11c in the example of FIG. 1) as an example. .
- a signal synchronization system 10 shown in FIG. 1 includes a plurality of processor modules 11a to 11c (hereinafter referred to as “processor module 11” as necessary), a transmission bus 12, and an I / O (input / output) module 13 (FIG. 1). And 13a to 13d), an external device 14 (indicated by 14a to 14d in FIG. 1), and a programming device 15.
- processor module 11 for convenience of explanation, the main configuration of each processor module will be described with the processor module 11 a as a main processor module and the processor modules 11 b and 11 c as slave processor modules.
- the number of slave processor modules is not limited to two as shown in FIG.
- the present invention is not limited to the above-described configuration, and has the same configuration so that one processor module can be the main processor module 11a and the slave processor modules 11b and 11c. .
- Each processor module 11 is connected by a transmission bus 12. In the first embodiment, it is assumed that there is no delay time caused by the transmission bus 12.
- the main processor module 11 a includes a first reference signal generation unit 21, a first calculation unit 22, and a storage unit 23.
- the first reference signal generation unit 21 is built in a CPU to be described later, but is not limited to this.
- the first reference signal generation unit 21 and the CPU are separate. It may be configured.
- the above-described “built-in” means that only the function units (the first reference signal generation unit 21 and the first calculation unit 22) in the CPU can access the first reference signal generation unit 21, for example. Means.
- the slave processor modules 11b and 11c include a second reference signal generator 31, a second calculator 32, an interval counter 33, an overhead counter 34, a count value acquisition unit 35, and a synchronization determination unit 36. , A synchronization correction unit 37 and a storage unit 38.
- the second reference signal generation unit 31 is built in the CPU.
- the present invention is not limited to this.
- the second reference signal generation unit 31 and the CPU are configured separately. It may be.
- the first reference signal generator 21 performs counting and generates a first reference signal when the count value reaches a preset reference value.
- the first reference signal generation unit 21 functions as a hardware counter (hereinafter also referred to as “timer” as necessary).
- the above-described count value is cyclically counted based on the reference value. In FIG. 1, such a hardware counter is indicated by a broken line.
- the first calculation unit 22 executes (calculates) a predetermined application program stored in the storage unit 23 according to the first reference signal generated by the first reference signal generation unit 21.
- the first reference signal is also given (transmitted) to the slave processor modules 11b and 11c through the transmission bus 12 as an interrupt signal (counter reset signal).
- the storage unit 23 stores a predetermined application program (sequence program) to be calculated by the first calculation unit 22.
- the predetermined application program calculated by the first calculation unit 22 is a process for giving an instruction to, for example, the I / O module 13a connected to the main processor module 11a and controlling the external device 14a by the I / O module 13a. . Therefore, the storage unit 23 stores a program for executing predetermined processing mainly on the I / O module 13a and the external device 14a connected to the own processor module 11a.
- the main processor module 11a generates a first reference signal at predetermined intervals, and the first calculation unit 22 executes (calculates) an application program (sequence program) in accordance with the first reference signal.
- the device is controlled, and the application program (sequence program) is cyclically executed.
- slave processor modules 11b and 11c will be described. Since the slave processor modules 11b and 11c have the same configuration, in the following description, the slave processor module 11b will be described, and the slave processor module 11c will be described. Omitted.
- the second reference signal generation unit 31 performs counting, sets the same reference value as the reference value set in the first reference signal generation unit 21 described above, and reaches the reference value to reach the second reference value. Generate a signal.
- the second reference signal generation unit 31 functions as a hardware counter. The above-described count value is cyclically counted based on the reference value.
- the counters of the first reference signal generation unit 21 and the second reference signal generation unit 31 are free running counters and are self-running.
- the second calculation unit 32 executes (calculates) a predetermined application program or the like stored in the storage unit 38 in accordance with the second reference signal generated by the second reference signal generation unit 31.
- the second reference signal generation unit 31 is a counter that can be accessed only from the second arithmetic unit 32 in the CPU, for example, and is a counter (CPU built-in counter) built in the CPU. That is, the second reference signal generation unit 31 is a counter that cannot be reset in hardware from the outside of the main processor module 11a and the like.
- the second calculation unit 32 receives the first reference signal (synchronization reference signal) from the main processor module 11a as an interrupt signal, and activates a synchronization correction process described later.
- the interval counting unit 33 performs counting and generates a correction processing start signal indicating that a correction processing interval value corresponding to a correction processing interval for performing synchronization processing is set in advance and reaches the correction processing interval value. To do.
- the correction processing interval value is set through the following calculation. For example, it is assumed that the synchronization error between the main processor module 11a and the slave processor module 11b, which is allowed to satisfy the processing accuracy required for the signal synchronization system, is 10 ⁇ s. In this case, in this embodiment, the shortest time until the synchronization error reaches 1 to 5 ⁇ s is calculated. Here, the reason why it is 1 ⁇ s or more is that if it is shorter than that, the frequency of synchronization correction processing increases and the processing load increases. The reason why it is 5 ⁇ s or less is that the margin for 10 ⁇ s is taken into consideration.
- the frequency of the oscillator used in the main processor module 11a and the sub processor module 11b is 50 MHz and the oscillation accuracy is 50 ppm.
- the shortest time when the synchronization error is 5 ⁇ s is 100 ms. Therefore, the correction processing interval value may be a value obtained by converting 20 ms to 100 ms into a count value.
- the overhead counting unit 34 counts and synchronizes after reception of the first reference signal described above after reception of the correction processing start signal, that is, after the count value of the interval counting unit 33 reaches the correction processing interval value.
- the overhead value until the correction process is executed is measured.
- the overhead counter 34 functions as a hardware counter (timer) that receives and restarts the first reference signal.
- the overhead counting unit 34 Since the overhead counting unit 34 is a counter configured by hardware, it reacts immediately to the first reference signal. However, the synchronization correction processing takes time until preparation for reading the count value is completed, for example.
- the time required to prepare for reading the count value is an overhead.
- the overhead means a delay time from the occurrence of a certain event until the processing (software) for the event is actually executed. In this example, the overhead is synchronized from the starting point when the overhead counting unit 34 is restarted. The time until correction processing is actually performed is not limited to this.
- the count value acquisition unit 35 After receiving the correction processing start signal, that is, after the count value of the interval counter 33 reaches the correction processing interval value, the count value acquisition unit 35 actually executes the synchronization correction processing in response to reception of the first reference signal.
- the count value of the second reference signal generation unit 31 and the count value of the overhead count unit 34 at the time (starting point) to be obtained are acquired.
- the synchronization determination unit 36 determines that the first reference signal and the second reference signal are It is determined that they are synchronized. Further, the synchronization determination unit 36, when the count value of the second reference signal generation unit 31 and the count value of the overhead counter 34 acquired by the count value acquisition unit 35 are different from each other, It is determined that the reference signal is asynchronous.
- the synchronization determination unit 36 converts the count value of the second reference signal generation unit 31 acquired by the count value acquisition unit 35 and the count value of the overhead count unit 34 into time, and synchronizes when both times are equal. It can also be determined that it is asynchronous, and when both times are different, it can also be determined that they are asynchronous. That is, in the first embodiment, the unit time per clock of each counter may not be equal between the processor modules 11. Therefore, in such a case, each count value is converted into time, and synchronous / asynchronous determination is performed at the converted time.
- the synchronization correction unit 37 sets the reference value in the second reference signal generation unit 31 when the synchronization determination unit 36 determines that the first reference signal and the second reference signal are synchronized. In addition, when the synchronization determination unit 36 determines that the first reference signal and the second reference signal are asynchronous, the synchronization correction unit 37 determines the count value of the second reference signal generation unit 31 and the count value of the overhead count unit 34. The value which cancels the difference of is obtained. Specifically, the synchronization correction unit 37 subtracts the count value of the overhead counter 34 from the count value of the second reference signal generation unit 31 acquired by the count value acquisition unit 35 to obtain the synchronization correction value.
- the synchronization correction unit 37 subtracts the obtained synchronization correction value from the reference value, and sets the subtracted value as a new reference value in the second reference signal generation unit 31.
- the new reference value is a timer that is temporarily used when the synchronization determination unit 36 determines asynchronous with respect to the timer reference value (default reference value) used when the synchronization determination unit 36 determines synchronization. This is the reference value.
- the synchronization determination unit 36 determines that the first reference signal and the second reference signal are asynchronous, sets the subtracted value as a new reference value in the second reference signal generation unit 31, and uses the subtracted value.
- the synchronization correction unit 37 quickly sets the reference value in the second reference signal generation unit 31.
- the reference value can be temporarily changed by the synchronization correction value.
- the correction for the synchronization correction value is executed at a time, but the present invention is not limited to this, and it may be executed in multiple steps. Even in that case, the synchronization correction unit 37 sets the reference value in the second reference signal generation unit 31 after the synchronization correction processing is completed.
- the synchronization correction unit 37 sets the above-described default reference value in the second reference signal generation unit 31 each time the synchronization determination unit 36 determines the synchronization between the first reference signal and the second reference signal. However, if synchronization is maintained, once the default reference value is set, nothing needs to be done.
- the synchronization correction unit 37 since the synchronization correction process is executed at every correction process interval, there is a high possibility that the count value of the second reference signal generation unit 31 and the count value of the overhead count unit 34 are different, and the synchronization determination unit Often, 36 determines that the first reference signal and the second reference signal are asynchronous. Therefore, the synchronization correction unit 37 does not execute the determination by the synchronization determination unit 36, that is, regardless of whether the first reference signal and the second reference signal are synchronous or asynchronous, the synchronization correction unit 37 performs the second reference signal generation unit. A value that cancels the difference between the count value of 31 and the count value of the overhead counter 34 may be obtained, and the value may be set as a new reference value in the second reference signal generator 31.
- the determination process becomes unnecessary, and the processing load for the determination can be reduced.
- the storage unit 38 stores a predetermined application program (sequence program) that is calculated by the second calculation unit 32.
- the predetermined application program calculated by the second calculation unit 32 gives instructions to the I / O modules 13b and 13c connected to the slave processor module 11b, for example, and the external devices 14b and 14c are transmitted by the I / O modules 13b and 13c. It is a process to control. Therefore, the storage unit 38 stores a program for executing predetermined processing mainly on the I / O modules 13b and 13c and the external devices 14b and 14c connected to the own processor module 11b.
- the I / O module 13 performs input / output processing with the external device 14 and the like. For example, the I / O module 13 outputs (transmits) data or the like obtained from the connected external device 14 or the like to the processor module 11, or outputs a result processed by the processor module 11 to the external device 14 or the like. Or remember. That is, the processor module 11 controls the external device 14 by calculating the input data obtained from the I / O module 13 by the application program and giving the calculation result to the I / O module 13 as output data.
- the external device 14 is, for example, various sensors, motors, recording devices, or the like.
- the external device 14 detects and drives data, inputs / outputs data, and the like based on a control signal from the I / O module 13.
- the reference value may be set in advance in each of the processor module 11a, the processor module 11b, and the processor module 11c, or may be set from a programming device 15 (setting device) externally connected thereto.
- the programming device 15 can be realized by adding a function for setting a reference value by communicating with the processor module 11 to a PC (Personal Computer) used by a user or the like. It may be a device. Thereby, a reference value (processing cycle) can be arbitrarily adjusted for each user.
- PC Personal Computer
- the multiprocessor has been described as an example of the signal synchronization system 10.
- the signal synchronization system 10 includes a first reference signal generation unit 21, a second reference signal generation unit 31, and an overhead counting unit. 34, the count value acquisition unit 35, the synchronization determination unit 36, and the synchronization correction unit 37 may be included.
- the application example of the signal synchronization system 10 is not limited to a multiprocessor.
- the main device side is a transmitting station that transmits a digital signal of date / time information by an atomic clock
- the slave device side is a radio wave clock.
- Application as a timer synchronization system is also possible.
- FIG. 2 is a diagram illustrating an example of a hardware configuration of the processor module 11.
- the processor module 11 illustrated in FIG. 2 includes an input unit 41, an output unit 42, a CPU 43, an FPGA 44, a memory 45, and an external interface 46, which are connected by a common bus B.
- the input unit 41 inputs various operation signals such as execution of a program from a user or the like.
- the input unit 41 may have a keyboard operated by a user or the like, a pointing device such as a mouse or a touch panel, and may have a voice input device when inputting by voice or the like. .
- the output unit 42 includes a display that displays various windows and data necessary for operating the processor module 11 that performs processing in the present embodiment, and displays the execution progress and results of the control program executed by the CPU 43. .
- the CPU 43 Based on a control program such as an OS (Operating System) and an execution program stored in the memory 45, the CPU 43 performs processing of the entire processor module 11 such as various operations and data input / output with each hardware component. Each process in this embodiment is realized by controlling. In addition, the CPU 43 cooperates with the memory 45 to substantially function as the first calculation unit 22, the second calculation unit 32, the count value acquisition unit 35, the synchronization determination unit 36, and the synchronization correction unit 37 described above. A first reference signal generation unit 21 and a second reference signal generation unit 31 are incorporated. Various information necessary during program execution may be acquired from the memory 45 and the execution result or the like may be stored in the memory 45.
- a control program such as an OS (Operating System) and an execution program stored in the memory 45.
- An FPGA (Field-Programmable Gate Array) 44 is an integrated circuit that can rewrite a logic circuit.
- the FPGA 44 is composed of various logic circuits that assist the CPU 43, and particularly functions as the interval counting unit 33 and the overhead counting unit 34 in the present embodiment.
- the interval counting unit 33 may be processed by software.
- the memory 45 stores an execution program read by the CPU 43 and the like.
- the memory 45 includes a ROM (Read Only Memory), a RAM (Random Access Memory), and the like. Further, the memory 45 may have storage means such as a hard disk as an auxiliary storage device.
- the memory 45 stores an execution program in the present embodiment, a control program provided in a computer, and the like, and performs input / output as necessary.
- the memory 45 corresponds to the storage units 23 and 38 described above.
- the external interface 46 transmits / receives data and control signals to / from other processor modules 11 via the transmission bus 12 and the like.
- the external interface 46 also transmits / receives data and control signals to / from the connected I / O module 13.
- the hardware configuration described above it is possible to execute the synchronization correction processing in this embodiment.
- the synchronization correction processing in the present embodiment can be easily realized by a general-purpose personal computer or the like.
- Example of synchronization correction processing in the first embodiment 3 to 5 are time chart diagrams (No. 1 to No. 3) for explaining an example of the synchronization correction processing in the first embodiment.
- FIGS. 3 to 5 an example of synchronization of count values between the main processor module 11a and the slave processor module 11b is shown.
- the reference value (processing cycle) in the first embodiment is 1000 ⁇ s, but is not limited to this.
- the setting can be appropriately changed by the programming device 15 described above.
- the first reference signal generator 21 of the main processor module 11a performs counting.
- a first reference signal is output.
- the 1st calculating part 22 performs a predetermined
- a triangular area indicated by hatching indicates the transition of the count value, and the count value increases as time passes, and is reset when the count target (for example, a reference value) is reached.
- the second reference signal generation unit 31 of the slave processor module 11b performs counting. When the count value reaches the reference value at time (2) in FIG. 3, a second reference signal is output. And the 2nd calculating part 32 performs a predetermined
- the interval counter 33 performs counting, and when the count value reaches the correction processing interval value ((3) in FIG. 3), a correction processing start signal is generated. In response to the correction processing start signal, preparation for the synchronous correction processing is started.
- the first reference signal generated by the main processor module 11a is transmitted to the slave processor module 11b as an interrupt signal.
- the slave processor module 11b receives the first reference signal as an interrupt, and starts a synchronization correction process by software ((4) in FIG. 3).
- the overhead counter 34 of the slave processor module 11b clears the counter value by the hardware and restarts ((5) in FIG. 3).
- the count value acquisition unit 35 acquires the count value from the second reference signal generation unit 31 ((7) in FIG. 3) at the time (6) in FIG. The count value is acquired from the overhead counter 34 ((8) in FIG. 3).
- the synchronization determination unit 36 converts the count value given by the count value acquisition unit 35 into time.
- 300 ⁇ s is obtained from the count value of the second reference signal generation unit 31 and 300 ⁇ s is obtained from the count value of the overhead counting unit 34.
- the overhead from when the first reference signal is interrupted until the count value is acquired in the synchronization correction process can be measured, and the count value of the second reference signal generation unit 31 at that time can be acquired.
- the count values should be equal.
- the synchronization determination unit 36 compares the count value (300 ⁇ s) of the second reference signal generation unit 31 obtained from the count value acquisition unit 35 with the count value (300 ⁇ s) of the overhead count unit 34. In this case, the synchronization determination unit 36 determines that the first reference signal and the second reference signal are synchronized because both are the same value.
- the synchronization correction unit 37 sets the reference value 1000 ⁇ s in the second reference signal generation unit 31 as usual. (At this time, the second reference signal generator 31 has not restarted). Then, the second reference signal generation unit 31 restarts because the count value reaches the reference value 1000 ⁇ s at the time (9) in FIG.
- the second reference signal generation unit 31 is built in the CPU 43 described above. However, in the present embodiment, the second reference signal generation unit 31 is not limited to this and may be separate from the CPU 43.
- the synchronization correction processing shown in FIG. 3 includes the program processing of the count value acquisition unit 35, the synchronization determination unit 36, and the synchronization correction unit 37.
- FIG. 4 shows a case where the counter of the slave processor module 11b is delayed by 3 ⁇ s from the counter of the main processor module 11a.
- the interval counter 33 of the slave processor module 11b performs counting, and when the count value reaches the correction processing interval value ((1) in FIG. 4), a correction processing start signal is generated. In response to the correction processing start signal, preparation for the synchronous correction processing is started.
- the first reference signal generation unit 21 of the main processor module 11a outputs the first reference signal every 1000 ⁇ s because the count value reaches the reference value.
- the slave processor module 11b receives the first reference signal as an interrupt, and starts the synchronous correction processing by software ((2) in FIG. 4).
- the overhead counter 34 of the slave processor module 11b clears and restarts the counter value counted by the hardware ((3) in FIG. 4).
- the count value acquisition unit 35 acquires the count value from the second reference signal generation unit 31 ((5) in FIG. 4) at the time (4) in FIG. The count value is acquired from the overhead counter 34 ((6) in FIG. 4).
- the synchronization determination unit 36 converts the count value given by the count value acquisition unit 35 into time.
- 297 ⁇ s is obtained from the count value of the second reference signal generation unit 31 and 300 ⁇ s is obtained from the count value of the overhead counting unit 34.
- the synchronization determination unit 36 compares the two count values and determines that the first reference signal and the second reference signal are asynchronous because the two count values are different.
- the synchronization correction unit 37 Since the synchronization determination unit 36 determines asynchronism, the synchronization correction unit 37 generates the second reference signal so that the difference between the count value of the second reference signal generation unit 31 and the count value of the overhead count unit 34 is canceled out. A temporary reference value is set in the part 31. Specifically, the synchronization correction unit 37 uses the expression “reference value (processing period) ⁇ (count value of the overhead counter 34 ⁇ count value of the second reference signal generator 31)” to calculate the second reference signal generator. A restart value (reset value) of the count value of 31 is obtained, and the obtained count value is set in the second reference signal generation unit 31 as a temporary reference value.
- 1st Embodiment can restart the 2nd reference signal production
- the reference value is set to 1000 ⁇ s after the third cycle.
- FIG. 5 shows a case where the counter of the slave processor module 11b is advanced by 3 ⁇ s from the counter of the main processor module 11a.
- the interval counter 33 of the slave processor module 11b performs counting, and when the count value reaches the correction processing interval value ((1) in FIG. 5), a correction processing start signal is generated. In response to the correction processing start signal, preparation for the synchronous correction processing is started.
- the first reference signal generation unit 21 of the main processor module 11a outputs the first reference signal every 1000 ⁇ s because the count value reaches the reference value.
- the slave processor module 11b receives the first reference signal as an interrupt, and starts the synchronous correction processing by software ((2) in FIG. 5).
- the overhead counting unit 34 of the slave processor module 11b clears the count value of the counter by the hardware and restarts ((3) in FIG. 5).
- the count value acquisition unit 35 acquires the count value from the second reference signal generation unit 31 ((5) in FIG. 5) at the time (4) in FIG. The count value is acquired from the overhead counter 34 ((6) in FIG. 5).
- the synchronization determination unit 36 converts the count value given by the count value acquisition unit 35 into time.
- 303 ⁇ s is obtained from the count value of the second reference signal generation unit 31 and 300 ⁇ s is obtained from the count value of the overhead counting unit 34.
- the synchronization determination unit 36 compares the two count values and determines that the first reference signal and the second reference signal are asynchronous because the two count values are different values.
- the synchronization correction unit 37 Since the synchronization determination unit 36 determines asynchronism, the synchronization correction unit 37 generates the second reference signal so that the difference between the count value of the second reference signal generation unit 31 and the count value of the overhead count unit 34 is canceled out.
- a temporary reference value is set in the part 31.
- the synchronization correction unit 37 calculates in the same manner as in the description of FIG. 4, obtains a temporary reference value, and sets it in the second reference signal generation unit 31.
- the second reference signal generation unit 31 restarts because the count value reaches the temporary reference value 1003 ⁇ s at the point (7) in FIG.
- the count value of the overhead counter 34 minus the count value of the second reference signal generator 31 is the synchronization correction value.
- 1st Embodiment can restart the 2nd reference signal production
- FIG. 6 is a diagram illustrating a schematic sequence example of the signal synchronization method.
- synchronization using the main processor module 11a and the sub processor module 11b will be described.
- the present embodiment is not limited to this, and one main processor module is not limited to this. Multiple slave processor modules can be synchronized.
- the first reference signal generation unit 21 of the main processor module 11a generates a first reference signal (S01), and the second reference signal generation unit 31 of the slave processor module 11b Two reference signals are generated (S02). This process is cyclically operated in terms of hardware.
- the main processor module 11a also transmits the first reference signal obtained in the process of S01 to the slave processor module 11b. Therefore, the slave processor module 11b is always in a state where it can receive the first reference signal.
- the interval counting unit 33 of the slave processor module 11b counts the correction processing interval, and when the count value reaches the correction processing interval value, generates a correction processing start signal and starts preparation for the synchronous correction processing (S03). .
- the slave processor module 11b When the slave processor module 11b receives the first reference signal transmitted by the main processor module 11a after the count value of the interval counter 33 reaches the correction processing interval value (S04), the synchronization correction processing by software is started. Together with (S05), the overhead counting unit 34 is restarted (S06). Then, the count value acquisition unit 35 acquires both count values of the second reference signal generation unit 31 and the overhead count unit 34 (S07), and the synchronization determination unit 36 performs synchronization determination based on the both count values. (S08) If it is determined to be asynchronous, the synchronization correction unit 37 performs synchronization correction (S09).
- FIG. 7 is a diagram illustrating an example of a schematic configuration of the node synchronization system according to the second embodiment.
- the node synchronization system 50 shown in FIG. 7 is an example that performs counter synchronization among a plurality of nodes such as the nodes 51a to 51c.
- the node synchronization system 50 includes a plurality of nodes 51a to 51c (hereinafter referred to as “node 51” as necessary), a communication path (communication network) 52, and an I / O (input / output) module 53 (in FIG. 7, 53a to 53d), an external device 54 (indicated by 54a to 54d in FIG. 7), and a programming device 55. That is, in the node synchronization system 50, a master node 51a and slave nodes 51b and 51c are connected via a communication path 52 as a communication network.
- the node 51a is a master node and the nodes 51b and 51c are slave nodes, and the configuration unique to each node will be described.
- the present invention is not limited to this. It has both configurations so that it can be.
- it is assumed that a transmission delay time by the communication path 52 is generated.
- the master node 51a corresponds to the main processor module 11a in the first embodiment
- the slave nodes 51b and 51c correspond to the slave processor modules 11b and 11c in the first embodiment.
- the programming device 55 is substantially equal to the programming device 15 in the first embodiment
- the I / O modules 53a to 53d are substantially the same as the I / O modules 13a to 13d in the first embodiment.
- the external devices 54a to 54d are substantially the same as the external devices 14a to 14d in the first embodiment. Therefore, in the following description, the description of the same configuration as in the first embodiment is omitted.
- the master node 51a includes a first reference signal generator 61 (corresponding to the first reference signal generator 21 of the first embodiment) and a first calculator 62 (corresponding to the first calculator 22 of the first embodiment).
- a storage unit 63 (corresponding to the storage unit 23 of the first embodiment), an interval counting unit 64 (corresponding to the interval counting unit 33 of the first embodiment), a transmission delay time notification unit 65, and a synchronization frame And a notification unit 66.
- the main difference between the master node 51a and the main processor module 11a in the first embodiment is that the interval counter 33 provided in the slave processor module 11b in the first embodiment is added as the interval counter 64.
- a transmission delay time notification unit 65 and a synchronization frame notification unit 66 are newly added. Therefore, in the following description, the main part of the second embodiment will be described, and the same movement as in the first embodiment will be omitted.
- the interval counting unit 64 performs counting, and when a correction processing interval value corresponding to a correction processing interval for performing synchronization processing is preset, and the count value reaches the correction processing interval value, this is indicated. A correction processing start signal is generated. Since the correction processing interval value is substantially the same as that in the first embodiment, the description thereof is omitted here.
- the correction processing interval is measured on the master node 51a side, but the correction processing interval may be measured on the slave node 51b side. In that case, when the count value reaches the correction processing interval value in the slave node 51b, a correction processing start signal is transmitted to the master node 51a, and the synchronous correction processing is started.
- the transmission delay time notification unit 65 of the master node 51a After receiving the correction processing start signal, the transmission delay time notification unit 65 of the master node 51a transmits a transmission delay time request frame to the slave nodes 51b and 51c in order to calculate the transmission delay time.
- This transmission delay time request frame has substantially the same format as a later-described synchronization frame and has a different data in a predetermined portion (for example, a command portion) in the synchronization frame.
- the transmission delay time request frame is transmitted in synchronization with the first reference signal generated by the first reference signal generation unit 61.
- the transmission delay time notification unit 65 receives a reception completion frame from the slave node that responds to the transmission delay time request frame. Then, the transmission delay time notification unit 65 calculates the round trip transmission delay time between the master node 51a and the slave nodes 51b and 51c from the difference between the time when the response frame is received and the time when the transmission delay time request frame is transmitted. To do. Then, the transmission delay time notification unit 65 transmits a transmission delay time notification frame including the calculated round trip transmission delay time to the slave nodes 51b and 51c in synchronization with the next first reference signal, whereby the slave nodes 51b and 51c. Is notified of the delay time caused by the communication path 52.
- the master node 51a After notifying the round-trip transmission delay time, the master node 51a, based on the first reference signal (in synchronization with the first reference signal), sends the prepared synchronization frame to the slave nodes 51b, 51c. This process is executed by the synchronization frame notification unit 66.
- the synchronization frame is a synchronization reference signal for matching the count value of the second reference signal generation unit 71 of the slave nodes 51b and 51c with the count value of the first reference signal generation unit 61 of the master node 51a. is there.
- the slave nodes 51b and 51c include a second reference signal generator 71 (corresponding to the second reference signal generator 31 of the first embodiment) and a second calculator 72 (the second calculator 32 of the first embodiment). ), An overhead counting unit 74 (corresponding to the overhead counting unit 34 of the first embodiment), a count value acquiring unit 75 (corresponding to the count value acquiring unit 35 of the first embodiment), and a synchronization determining unit 76 (corresponding to the synchronization determination unit 36 of the first embodiment), a synchronization correction unit 77 (corresponding to the synchronization correction unit 37 of the first embodiment), and a storage unit 78 (storage unit 38 of the first embodiment).
- a second reference signal generator 71 corresponding to the second reference signal generator 31 of the first embodiment
- a second calculator 72 the second calculator 32 of the first embodiment.
- An overhead counting unit 74 corresponding to the overhead counting unit 34 of the first embodiment
- a count value acquiring unit 75 corresponding to the count value acquiring unit 35 of the first embodiment
- a synchronization determining unit 76
- the CPU 43 has a second reference signal generation unit 71 built therein. Since the slave nodes 51b and 51c have the same configuration, the following description will be made using the slave node 51b, and the description of the slave node 51c will be omitted.
- the main differences from the processor module 11b of the first embodiment are that the synchronization determination unit 76 is different from the synchronization determination unit 36 of the first embodiment, and that a reception completion notification unit 79 and a frame reception unit 80 are added. It is. However, since the other components are substantially the same as those in the first embodiment, the description thereof is omitted here. Hereinafter, the synchronization correction processing of the slave node 51b including the transmission delay time of the communication path 52 will be described.
- the reception completion notification unit 79 receives the above-described transmission delay time request frame from the master node 51a, and transmits a reception completion frame to the master node 51a according to the transmission delay time request frame.
- the frame receiving unit 80 receives the above-described transmission delay time notification frame transmitted by the master node 51a, and saves the round-trip transmission delay time (value) included in the frame in the above-described memory 45 or the like. In this way, the slave node 51b obtains the round trip transmission delay time between the master node 51a and the slave node 51b from the master node 51a.
- the slave node 51b that has obtained the round-trip transmission delay time from the master node 51a receives the synchronization frame and causes the second computing unit 72 to generate an interrupt.
- the second calculation unit 72 starts a synchronization correction process described later.
- the synchronization correction processing may be started with the round trip transmission delay time set to zero (0).
- hardware logic such as FPGA 44 as the means for receiving the synchronization frame. .
- the overhead counting unit 74 measures an overhead value until the synchronization correction process is executed, starting from the reception of the synchronization frame described above. Specifically, the overhead counting unit 74 functions as a hardware counter (timer) that receives and restarts the synchronization frame.
- the count value acquisition unit 75 acquires the count value of the second reference signal generation unit 71 and the count value of the overhead count unit 74 at the time when the synchronization correction process is actually executed in response to reception of the synchronization frame. .
- the synchronization determination unit 76 calculates the one-way transmission delay time of the communication path 52 by dividing the above-described round-trip transmission delay time by 2, and further converts the one-way transmission delay time and the count value of the overhead counter 74 described above into a time. The total delay time is calculated by adding the calculated value. Then, the synchronization determination unit 76 compares the obtained total delay time with a value obtained by time-converting the count value of the second reference signal generation unit 71 acquired by the count value acquisition unit 75. As a result of the comparison, when both are equal, the synchronization determination unit 76 determines that the first reference signal and the second reference signal are synchronized. When both are different, the first reference signal and the second reference signal are determined. Are determined to be asynchronous.
- the synchronization means that the count value of the first reference signal generation unit 61 is equal to the count value of the second reference signal generation unit 71.
- the synchronization determination unit 76 can, of course, determine synchronization / asynchronization by converting the count values of the respective counters into time as in the synchronization determination unit 36 of the first embodiment.
- the synchronization correction unit 77 sets the reference value to the second reference signal. Set in the generation unit 71. If it is determined that the first reference signal and the second reference signal are asynchronous, a value that cancels the difference between the count value of the second reference signal generation unit 71 and the total delay time value is obtained. Specifically, the synchronization correction unit 77 obtains a synchronization correction value by subtracting the total delay time value from the count value of the second reference signal generation unit 71 acquired by the count value acquisition unit 75.
- the synchronization correction unit 77 subtracts the obtained synchronization correction value from the reference value, and sets the subtracted value as a new reference value in the second reference signal generation unit 71.
- the new reference value is a timer of the second reference signal generation unit 71 with respect to a reference value (default reference value) set in the second reference signal generation unit 71 when the synchronization determination unit 76 determines synchronization. Temporarily set to correct the value (temporary reference value).
- the default reference value does not need to be rewritten thereafter if the default reference value is set in the second reference signal generation unit 71 and synchronization is maintained.
- this embodiment can perform the synchronization correction process considering the influence of the transmission delay time when the synchronization reference signal (synchronization frame) is notified via the communication path 52. That is, in the second embodiment, the count value including the transmission delay time between the nodes and the overhead of the slave nodes 51b and 51c can be corrected, and synchronization between the nodes can be realized with high accuracy.
- FIGS. 8 to 10 are time charts for explaining an example of synchronization correction processing in the second embodiment, and are examples of synchronization of count values between the master node 51a and the slave node 51b.
- the reference value (processing cycle) in the second embodiment is set to 1000 ⁇ s as in the first embodiment, and this reference value can be appropriately changed by the programming device 55.
- the first reference signal generator 61 of the master node 51a performs counting. When the count value reaches the reference value at time (1) in FIG. 8, a first reference signal is output. And the 1st calculating part 62 performs a predetermined
- the second reference signal generation unit 71 of the slave node 51b performs counting. When the count value reaches the reference value at time (2) in FIG. 8, a second reference signal is output. And the 2nd calculating part 72 performs a predetermined
- the interval counting unit 64 performs counting, and when the count value reaches the correction processing interval value ((3) in FIG. 8), a correction processing start signal is generated.
- the synchronization correction process in the master node 51a is started in response to the correction process start signal.
- the transmission delay time notification unit 65 of the master node 51a transmits a transmission delay time request frame in order to calculate the transmission delay time ((4) in FIG. 8).
- the reception completion notifying unit 79 of the slave node 51b transmits the reception completion frame to the master node 51a according to the transmission delay time request frame ((5 in FIG. 8). )).
- the transmission delay time notification unit 65 of the master node 51a calculates the round trip transmission delay time between the master node 51a and the slave node 51b according to the reception completion frame, and includes the calculated round trip transmission delay time (400 ⁇ s).
- a transmission delay time notification frame is transmitted ((6) in FIG. 8).
- the frame receiving unit 80 of the slave node 51b saves the round-trip transmission delay time (value) included in the frame in the memory 45 or the like ((7) in FIG. 8).
- the synchronization frame notification unit 66 of the master node 51a transmits the synchronization frame as an interrupt signal to the slave node 51b ((8) in FIG. 8). Then, the slave node 51b receives the synchronization frame through the one-way transmission delay time (200 ⁇ s) of the communication path 52 at the time of (9) in FIG. 8, and activates the synchronization correction process by software in the slave node 51b. Yes. With the reception of the synchronization frame, the hardware counter of the overhead counter 74 is cleared and restarted ((10) in FIG. 8).
- the count value acquisition unit 75 acquires the count value from the second reference signal generation unit 71 ((12) in FIG. 8) at the time (11) in FIG. The count value is acquired from the overhead counter 74 ((13) in FIG. 8).
- the count value acquisition unit 75 refers to the count value of the second reference signal generation unit 71, converts it to time, and acquires 400 ⁇ s.
- the synchronization determination unit 76 calculates a one-way transmission delay time 200 ⁇ s from the round-trip transmission delay time (400 ⁇ s), and adds the calculated transmission delay time and the time-converted count value of the overhead counter 74 to 200 ⁇ s.
- the delay time is 400 ⁇ s.
- the synchronization determination unit 76 compares the total delay time 400 ⁇ s with the 400 ⁇ s obtained by converting the count value of the second reference signal generation unit 71 acquired by the count value acquisition unit 75, and since both are equal, the first reference signal And the second reference signal are determined to be synchronized.
- the synchronization correction unit 77 sets the reference value 1000 ⁇ s in the second reference signal generation unit 71 as usual. (The second reference signal generator 71 has not been restarted at the time of setting). The second reference signal generation unit 71 restarts because the count value reaches the reference value 1000 ⁇ s at the time point (14) in FIG.
- FIG. 9 shows a case where the counter of the slave node 51b is delayed by 3 ⁇ s from the counter of the master node 51a.
- the frame receiving unit 80 of the slave node 51b performs the round trip included in the transmission delay time notification frame. Since the processing until the transmission delay time (value) is saved in the memory 45 or the like is substantially the same as the processing in FIG. 8, the description thereof is omitted here.
- the synchronization frame notification unit 66 of the master node 51a transmits the synchronization frame as an interrupt signal to the slave node 51b. Then, the slave node 51b receives the synchronization frame through the one-way transmission delay time (200 ⁇ s) of the communication path 52 at the time of FIG. 9 (2), and starts the synchronization correction process by software in the slave node 51b. . In addition, with the reception of the synchronization frame, the counter of the overhead counter 74 is cleared and restarted ((3) in FIG. 9).
- the count value acquisition unit 75 acquires the count value from the second reference signal generation unit 71 ((5) in FIG. 9) at the time (4) in FIG. Then, the count value is acquired from the overhead counter 74 ((6) in FIG. 9).
- the count value acquisition unit 75 refers to the count value of the second reference signal generation unit 71, converts it to time, and acquires 397 ⁇ s.
- the synchronization determination unit 76 calculates a one-way transmission delay time 200 ⁇ s from the round-trip transmission delay time (400 ⁇ s), and adds the calculated transmission delay time and the time-converted count value of the overhead counter 74 to 200 ⁇ s. The delay time is 400 ⁇ s.
- the synchronization determination unit 76 compares the total delay time 400 ⁇ s and the count value of the second reference signal generation unit 71 acquired by the count value acquisition unit 75 with time of 397 ⁇ s. It is determined that the signal and the second reference signal are asynchronous.
- the synchronization correction unit 77 sets a temporary reference value in the second reference signal generation unit 71. Specifically, the synchronization correction unit 77 restarts the second reference signal generation unit 71 using the formula “reference value (processing period) ⁇ (total delay time ⁇ count value of the second reference signal generation unit 71)”. A value (reset value) is obtained, and the obtained count value is set in the second reference signal generator 71 as a temporary reference value.
- the second reference signal generation unit 71 restarts because the count value reaches the temporary reference value 997 ⁇ s at the point (7) in FIG. Incidentally, the total delay time—the value of the count value of the second reference signal generator 71 is the synchronization correction value.
- FIG. 10 shows a case where the counter of the slave node 51b is advanced by 3 ⁇ s from the counter of the master node 51a.
- the frame receiving unit 80 of the slave node 51b performs the round trip included in the transmission delay time notification frame. Since the processing until the transmission delay time (value) is saved in the memory 45 or the like is substantially the same as the processing of FIGS. 8 and 9, the description thereof is omitted here.
- the synchronization frame notification unit 66 of the master node 51a transmits the synchronization frame as an interrupt signal to the slave node 51b. Then, the slave node 51b receives the synchronization frame through the one-way transmission delay time (200 ⁇ s) of the communication path 52 at the time of FIG. 10 (2), and starts the synchronization correction process by software in the slave node 51b. . In addition, with the reception of the synchronization frame, the counter of the overhead counter 74 is cleared and restarted ((3) in FIG. 10).
- the count value acquisition unit 75 acquires the count value from the second reference signal generation unit 71 ((5) in FIG. 10) at the time (4) in FIG. Then, the count value is acquired from the overhead counter 74 ((6) in FIG. 10).
- the count value acquisition unit 75 refers to the count value of the second reference signal generation unit 71, converts it into time, and acquires 403 ⁇ s.
- the synchronization determination unit 76 obtains a one-way transmission delay time of 200 ⁇ s from the round-trip transmission delay time (400 ⁇ s), and adds the obtained one-way transmission delay time to the time-converted count value of the overhead counting unit 74 of 200 ⁇ s.
- the total delay time is 400 ⁇ s.
- the synchronization determination unit 76 compares the total delay time 400 ⁇ s with the 403 ⁇ s obtained by converting the count value of the second reference signal generation unit 71 acquired by the count value acquisition unit 75 into time, and the first reference because the two are different. It is determined that the signal and the second reference signal are asynchronous.
- the synchronization correction unit 77 sets a temporary reference value in the second reference signal generation unit 71.
- the synchronization correction unit 77 subsequently changes the original reference value 1000 ⁇ s to the first cycle. 2 is set in the reference signal generation unit 71 (the second reference signal generation unit 71 has not been restarted at the time of setting). Then, the second reference signal generation unit 71 restarts when the count value reaches the reference value 1000 ⁇ s. That is, in the second embodiment, the slave counter can be restarted at substantially the same timing as the restart of the master counter in the next fourth cycle with respect to the third cycle. The value and the value of the counter on the slave side can be adjusted to substantially the same value.
- the synchronization correction processing includes program processing of the count value acquisition unit 75, the synchronization determination unit 76, and the synchronization correction unit 77 as in the first embodiment.
- the second reference signal generation unit 71 of the slave node 51b has been described on the assumption that it is built in the CPU 43, it is not limited to this. That is, the second reference signal generation unit 71 can be realized even if it is separate from the CPU 43. However, since the second reference signal generation unit 71 is built in the CPU 43, the second reference signal generation unit 71 cannot be hardware reset with a predetermined signal generated outside the CPU 43. In other words, the second reference signal generation unit 71 is a counter whose operation is controlled through a program. For this reason, in this embodiment, the reset process (restart process) of the second reference signal generation unit 71 needs to be executed by a program, and the overhead thereof leads to a synchronization error. Therefore, in this embodiment, a configuration for measuring overhead is required (the same applies to the first embodiment).
- the synchronization correction process is an interrupt process that is activated by receiving a synchronization frame.
- the slave node 51b obtains and holds the round trip transmission delay time from the master node 51a, and uses the held round trip transmission delay time in the synchronization correction processing.
- the master node 51a includes the round trip transmission delay time in the synchronization frame and transmits it to the slave node 51b, and the slave node 51b that has received this uses the round trip transmission time included in the synchronization frame. .
- the slave node 51b can utilize the round trip transmission delay time according to the situation in a timely manner. .
- the transmission delay time notifying unit 65 may calculate the one-way transmission delay time by halving the calculated round-trip transmission delay time, and notify the slave node 51b of the calculated one-way transmission delay time.
- the synchronization determination unit 76 of the slave node 51b may obtain the total delay time by using the given one-way transmission delay time as it is.
- the first reference signal and the second reference signal can be synchronized including the transmission delay time of the signal through the communication path 52.
- FIG. 11 is a diagram for explaining an example of a transmission delay time notification procedure according to the second embodiment.
- the above-described master node 51 a and slave nodes 51 b and 51 c are provided, and each node 51 is connected in a state where signals can be transmitted and received via the communication path 52. To do. Further, in the following description, an example in which the master node 51a acquires the signal transmission delay time through the communication path 52 between the nodes 51 is shown.
- the squares shown in FIG. 11 indicate frames, the squares on the line for each node 51 indicate transmission frames, and the squares below the lines indicate reception frames.
- the frame shown in FIG. 11 includes a transmission delay time request frame 81 (“REQ *” in FIG. 11 (* indicates an identifier (eg, b, c) of each slave node, for example)), and reception is completed.
- a frame 82 (“REC *” in FIG. 11), a transmission delay time notification frame 83 (“SET *” in FIG. 11), and a response frame 84 (“ANS *” in FIG. 11) to the transmission delay time notification frame 83
- the master node 51a broadcasts a transmission delay time request frame 81b (REQb) for the slave node 51b on the communication path 52 in accordance with the master node synchronization standard.
- the transmission delay time request frame 81b includes information (target node information) indicating a transmission delay time request for the slave node 51b.
- the transmission delay time request frame 81b transmitted by broadcast is received by the slave nodes 51b and 51c via the communication path 52 after a predetermined transmission delay time.
- the slave node 51b receives the transmission delay time request frame 81b with the delay time D1 from the master node synchronization reference
- the slave node 51c receives the transmission delay time request with the delay time D2 from the master node synchronization reference.
- the frame 81b is received.
- each of the slave nodes 51b and 51c confirms the above-mentioned target node information included in the transmission delay time request frame 81b.
- the transmission delay time request frame 81b is a request for the slave node 51b
- the slave node 51b broadcasts the reception completion frame 82b (RECb) to the master node 51a.
- the reception completion frame 82b includes information (target node information) indicating that it is a reception completion frame for the master node 51a.
- the transmitted reception completion frame 82b is received by the master node 51a and the slave node 51c via the communication path 52.
- the master node 51a and the slave node 51c confirm the above-described target node information included in the reception completion frame 82b.
- the reception completion frame 82b is a frame for the master node 51a. Therefore, the master node 51a sets the transmission delay time for the slave node 51b based on the time information from the transmission of the transmission delay time request frame 81b transmitted according to the master node synchronization reference until the reception completion frame 82b is received.
- the set transmission delay time may be a round trip transmission delay time in which a predetermined signal reciprocates between the master node 51a and the slave node 51b via the communication path 52, or may be a one-way transmission delay time.
- the master node 51a creates a transmission delay time notification frame 83b (SETb) for notifying the slave node 51b of the set transmission delay time, and broadcasts the created transmission delay time notification frame 83b according to the master node synchronization standard. Send.
- the transmission delay time notification frame 83b includes the target node information described above.
- the transmission delay time notification frame 83b transmitted by broadcast is received by each of the slave nodes 51b and 51c after a predetermined transmission delay time via the communication path 52 in the same manner as the transmission delay time request frame 81b described above.
- the slave node 51b determines that it is information for the own node from the target node information of the received transmission delay time notification frame 83b, and includes the transmission delay time included in the frame, the overhead time described above, and the like.
- the synchronization correction process in the second embodiment is performed.
- the slave node 51b creates a response frame 84b (ANSb) for the transmission delay time notification frame 83b, and broadcasts the created response frame 84b.
- the response frame 84b includes information indicating that the frame is for the master node 51a (target node information), information indicating that the synchronization correction processing has been completed, and the like.
- the transmitted response frame 84b is received by the master node 51a and the slave node 51c via the communication path 52, similarly to the reception completion frame 82b described above.
- the master node 51a and the slave node 51c confirm the above-described target node information included in the response frame 84b.
- the response frame 84b is a frame for the master node 51a. Therefore, the master node 51a can grasp that the synchronization correction processing is completed by the response frame 84b from the slave node 51b.
- the slave node 51c receives a transmission delay time request frame 81b (REQb), a reception completion frame 82b (RECb), a transmission delay time notification frame 83b (SETb), and a response frame 84b (ANSb). However, since none of them is a frame for the own node, the received frame is discarded.
- the contents up to the above are the transmission delay time notification procedure to the slave node 51b. Therefore, the master node 51a similarly notifies the slave node 51c of the transmission delay time.
- the master node 51a broadcasts a transmission delay time request frame 81c (REQc) to the slave node 51c on the communication path 52 according to the master node synchronization standard.
- the transmission delay time request frame 81c transmitted by broadcast is received by each of the slave nodes 51b and 51c via the communication path 52 with a predetermined transmission delay time (D1, D2) as described above.
- the transmission delay time request frame 81c is a request for the slave node 51c
- only the slave node 51c broadcasts a reception completion frame 82c (RECc) to the master node 51a.
- the transmitted reception completion frame 82c is received by the master node 51a and the slave node 51c via the communication path 52.
- the reception completion frame 82c is a frame for the master node 51a. Therefore, the master node 51a sets the transmission delay time for the slave node 51c based on the time information from the transmission of the transmission delay time request frame 81c transmitted according to the master node synchronization reference until the reception completion frame 82c is received.
- the set transmission delay time may be a round trip transmission delay time in which a predetermined signal reciprocates between the master node 51a and the slave node 51c via the communication path 52, or may be a one-way transmission delay time.
- the master node 51a creates a transmission delay time notification frame 83c (SETc) for notifying the slave node 51c of the set transmission delay time, and broadcasts the created transmission delay time notification frame 83c according to the master node synchronization standard. Send.
- the transmission delay time notification frame 83c transmitted by broadcast is received by each of the slave nodes 51b and 51c via the communication path 52 with a predetermined transmission delay time (D1, D2) in the same manner as the transmission delay time request frame 81c described above.
- D1, D2 predetermined transmission delay time
- the slave node 51c determines from the target node information of the received transmission delay time notification frame 83c that the information is for the own node, and the transmission delay time included in the frame and the overhead time described above.
- the synchronization correction process in the second embodiment including the above is performed.
- the slave node 51c creates a response frame 84c (ANSc) for the transmission delay time notification frame 83c, and broadcasts the created response frame 84c.
- the response frame 84c includes information indicating that the frame is for the master node 51a (target node information), information indicating that the synchronization correction processing has been completed, and the like.
- the transmitted response frame 84c is received by the master node 51a and the slave node 51c via the communication path 52 in the same manner as the reception completion frame 82c described above.
- the master node 51a and the slave node 51b confirm the above-described target node information included in the response frame 84c.
- the response frame 84c is a frame for the master node 51a. Therefore, the master node 51a can recognize that the synchronization correction processing has been completed based on the response frame 84c from the slave node 51c.
- the slave node 51b receives a transmission delay time request frame 81c (REQc), a reception completion frame 82c (RECc), a transmission delay time notification frame 83c (SETc), and a response frame 84c (ANSc). However, since none of them is a frame for the own node, the received frame is discarded.
- REQc transmission delay time request frame 81c
- RECc reception completion frame 82c
- SETc transmission delay time notification frame
- ANSc response frame 84c
- the transmission delay time can be notified by sequentially performing the above-described processing on each of the slave nodes 51b and 51c of the communication path 52.
- the transmission delay time notification procedure is not limited to the procedure described above.
- a send counter may be provided inside and the response frame 84 may be controlled to be transmitted at different timings using the send counter.
- the counter of each node is synchronized with the common memory network using the time division multiplex transmission method, and the entire apparatus is Synchronous control that matches the timing of control is possible.
- the counter to be synchronized can be configured using a counter inside the microcomputer or using a counter such as an FPGA. Therefore, in the second embodiment, for example, a counter that is synchronized with the master node 51a at the reception timing of a frame to be transmitted and received and a counter that measures the processing time in the microcomputer are configured by hardware such as FPGA, for example. Processing errors can be corrected by calculating the count value with a microcomputer.
- the node synchronization between the master and the slave has been described as an example of the node synchronization system 50.
- the present invention is not limited to this.
- sampling synchronization in a protection relay or the like It can also be applied to technology.
- FIG. 12 is a diagram illustrating an example of a schematic configuration of a network transmission system including the node synchronization system 50 using the master node 51a and the slave nodes 51b and 51c in the second embodiment.
- the network transmission system 90 shown in FIG. 12 includes a plurality of nodes 51 (nodes 51a to 51c in the example of FIG. 12) and a HUB 91 as one or a plurality of relay devices (in the example of FIG. 12, HUB 91a). 91e). Note that the number and type of nodes and relay devices, and the connection method are not limited thereto.
- the master node of FIG. 7, that is, the node 51a is the node A (master station)
- the slave nodes of FIG. 7, that is, the node 51b and the node 51c are the node B and node C (slave station).
- the communication path of the network transmission system 90 is, for example, a star type having a relay device between the master node 51a and the slave node 51b.
- the relay device uses HUB as an example.
- the present embodiment is not limited to this, and for example, a router, a repeater, an optical converter, or the like can be used.
- the master node 51a and the slave nodes 51b and 51c are, for example, programmable controllers (also referred to as a control device or PLC (Programmable Logic Controller)), and the communication path of the network transmission system 90 exchanges data between these programmable controllers.
- Data exchange bus Examples of devices connected to the data exchange bus include a PC, a server, an I / O module, a drive device (for example, an inverter, a servo, and the like) in addition to the above-described programmable controller.
- the node 51a and the node 51c are connected to the same HUB 91a, and the node 51b is connected to the node 51a and the node 51c via a 5-stage HUB (relay device). Yes.
- 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.).
- FIG. 13 is a diagram illustrating a schematic sequence example of the node synchronization method.
- synchronization using the master node 51a and the slave node 51b will be described.
- the present invention is not limited to this. Slave nodes can be synchronized.
- the first reference signal generation unit 61 of the master node 51a generates a first reference signal (S11), and the second reference signal generation unit 71 of the slave node 51b generates a second reference signal.
- a signal is generated (S12). Further, this process is cyclically operated in terms of hardware.
- the interval counting unit 64 of the master node 51a counts the correction processing interval, and when the count value reaches the correction processing interval value, generates a correction processing start signal and starts the synchronous correction processing (S13).
- the transmission delay time request frame is transmitted (S14).
- the transmission delay time request frame is a data obtained by changing a predetermined portion of data included in the synchronization frame, and can be referred to as a synchronization frame.
- the reception completion notification unit 79 of the slave node 51b Upon receiving the transmission delay time request frame, the reception completion notification unit 79 of the slave node 51b generates a reception completion notification and notifies the master node 51a (S15).
- the transmission delay time notification unit 65 of the master node 51a Upon receiving the reception completion notification, calculates, for example, a round trip transmission delay time (S16), and generates a transmission delay time notification frame including the calculated round trip transmission delay time (S17). The generated transmission delay time notification frame is transmitted to the slave node 51b via the communication path 52 (S18).
- the frame receiving unit 80 of the slave node 51b When receiving the transmission delay time notification frame, the frame receiving unit 80 of the slave node 51b saves the round-trip transmission delay time (value) included in the frame in the memory 45 or the like (S19). Then, the synchronization frame notification unit 66 of the master node 51a transmits the synchronization frame as an interrupt signal to the slave node 51b in synchronization with the first reference signal (S20).
- the slave node 51b receives the synchronization frame (S21), the synchronization correction process by software is activated (S22) and the overhead counting unit 74 is restarted (S23).
- the count value acquisition unit 75 acquires both count values of the second reference signal generation unit 71 and the overhead count unit 74 (S24), and the synchronization determination unit 76 performs synchronization determination based on the both count values.
- S25 If it is determined to be asynchronous, an overall delay time is calculated (S26). The total delay time is, for example, a value obtained by adding a transmission delay time and an overhead value, but is not limited thereto.
- the synchronization correction unit 77 of the slave node 51b performs synchronization correction using the calculated total delay time (S27). In the process illustrated in FIG. 13, the slave node 51b may transmit a response frame indicating that the synchronization correction has been completed to the master node 51a.
- the master node 51a also performs node synchronization processing in the above-described procedure for slave nodes other than the slave node 51b connected to the communication path 52.
- a program for causing a computer to function as each unit included in the above-described node 51 is generated, and the generated program is installed in the computer or the like, so that Node synchronization processing can be realized.
- the present embodiment it is possible to synchronize a predetermined signal with high accuracy while suppressing the processing load. Thereby, for example, stabilization of the data exchange cycle of each node 51 can be realized. Further, according to the present embodiment, in a system having a star topology such as Ethernet, for example, the timer of each node 51 is synchronized with the shared memory network using the time division multiplex transmission method, thereby improving the transmission efficiency. The efficiency of data exchange, the stabilization of the data exchange cycle, etc. 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.
- each step of the signal synchronization method and the node synchronization method of the present specification does not necessarily have to be processed in time series in the order described in the sequence diagram, and may include processing in parallel or by a subroutine. .
- the present invention can be used for a signal synchronization system, a node synchronization system, a signal synchronization method, and a node synchronization method for synchronizing predetermined signals.
Abstract
Description
本実施形態は、例えば、複数のプロセッサモジュールや、少なくとも1のプロセッサモジュールをそれぞれ含む複数のノード、装置、基板といった、主従関係にあるモジュール間でカウンタ(タイマ)同期を行う場合に、主モジュール側からの割り込み信号(カウンタリセット信号)に対し、従モジュール側のオーバーヘッド値を求める。また、本実施形態は、求めたオーバーヘッド値と従モジュール側のカウンタとに基づいて同期補正処理を行う。 (About this embodiment)
In the present embodiment, for example, when counter (timer) synchronization is performed between modules having a master-slave relationship such as a plurality of processor modules or a plurality of nodes, devices, and boards each including at least one processor module, the main module side In response to the interrupt signal (counter reset signal) from, the overhead value on the slave module side is obtained. In the present embodiment, the synchronization correction process is performed based on the obtained overhead value and the counter on the slave module side.
図1は、第1実施形態における信号同期システムの概略構成の一例を示す図である。図1に示す信号同期システム10は、一例として、モジュールとしての複数のプロセッサモジュール(図1の例では、プロセッサモジュール11a~11c)間で、カウンタ同期を行うためのマルチプロセッサの一例を示している。 (First embodiment: signal synchronization system)
FIG. 1 is a diagram illustrating an example of a schematic configuration of a signal synchronization system according to the first embodiment. The
次に、プロセッサモジュール11のハードウェア構成例について、図を用いて説明する。図2は、プロセッサモジュール11のハードウェア構成の一例を示す図である。図2に示すプロセッサモジュール11は、入力部41と、出力部42と、CPU43と、FPGA44と、メモリ45と、外部インタフェース46とを有し、これらは共通バスBにより接続されている。 (Hardware configuration example of the processor module 11)
Next, a hardware configuration example of the
図3~図5は、第1実施形態における同期補正処理例を説明するためのタイムチャート図(その1~その3)である。図3~図5に示す例では、主プロセッサモジュール11aと、従プロセッサモジュール11bとの間における計数値の同期例を示している。なお、第1実施形態における基準値(処理周期)は、1000μsとするが、これに限定されるものではなく、例えば上述したプログラミング装置15により適宜設定を変更することができる。 (Example of synchronization correction processing in the first embodiment)
3 to 5 are time chart diagrams (No. 1 to No. 3) for explaining an example of the synchronization correction processing in the first embodiment. In the example shown in FIGS. 3 to 5, an example of synchronization of count values between the
図6は、信号同期方法の概略的なシーケンス例を示す図である。図6の例では、説明の便宜上、主プロセッサモジュール11aと従プロセッサモジュール11bとを用いた同期について説明するが、本実施形態においてはこれに限定されるものではなく、1つの主プロセッサモジュールに対して複数の従プロセッサモジュールを同期させることができる。 (Sequence example of signal synchronization method)
FIG. 6 is a diagram illustrating a schematic sequence example of the signal synchronization method. In the example of FIG. 6, for the sake of convenience of explanation, synchronization using the
第2実施形態は、上述した第1実施形態における伝送バス12による遅延時間を含めて同期補正処理を実行することが特徴である。図7は、第2実施形態におけるノード同期システムの概略構成の一例を示す図である。図7に示すノード同期システム50は、ノード51a~51c等の複数のノードの間で、カウンタ同期を行う一例である。 (Second embodiment: node synchronization system)
The second embodiment is characterized in that the synchronization correction processing is executed including the delay time by the
図8~図10は、第2実施形態における同期補正処理例を説明するためのタイムチャート図であり、マスタノード51aとスレーブノード51b間での計数値の同期例である。なお、第2実施形態における基準値(処理周期)は、第1実施形態と同様1000μsとし、この基準値はプログラミング装置55により適宜変更することができる。 (Example of synchronization correction processing in the second embodiment)
FIGS. 8 to 10 are time charts for explaining an example of synchronization correction processing in the second embodiment, and are examples of synchronization of count values between the
次に、上述した同期補正処理における伝送遅延時間の通知手順について説明する。図11は、第2実施形態における伝送遅延時間の通知手順の一例を説明するための図である。なお、図11の例では、上述したマスタノード51aと、スレーブノード51b,51cとを有し、各ノード51は、通信路52を介して信号の送受信が可能な状態で接続されているものとする。また、以下の説明では、マスタノード51aが各ノード51間の通信路52による信号の伝送遅延時間を取得する例を示す。 (Notification procedure of transmission delay time in synchronization correction processing)
Next, a transmission delay time notification procedure in the above-described synchronization correction process will be described. FIG. 11 is a diagram for explaining an example of a transmission delay time notification procedure according to the second embodiment. In the example of FIG. 11, the above-described
ここで、上述した第2実施形態では、例えば各ノード間を、IEEE802.3u(100BASE-TX)やIEEE802.3ab(1000BASE-T)等のようなHUB(ハブ)等の中継装置を介して接続される場合がある。図12は、第2実施形態におけるマスタノード51a及びスレーブノード51b,51cを用いたノード同期システム50を含むネットワーク伝送システムの概略構成の一例を示す図である。図12に示すネットワーク伝送システム90は、一例として、上述した複数のノード51(図12の例では、ノード51a~51c)と、1又は複数の中継装置としてのHUB91(図12の例では、HUB91a~91e)とを有する。なお、ノードや中継装置の数や種類、接続方法についてはこれに限定されるものではない。 (Network transmission system: schematic configuration example)
Here, in the second embodiment described above, for example, each node is connected via a relay device such as a HUB (hub) such as IEEE802.3u (100BASE-TX) or IEEE802.3ab (1000BASE-T). May be. FIG. 12 is a diagram illustrating an example of a schematic configuration of a network transmission system including the
図13は、ノード同期方法の概略的なシーケンス例を示す図である。図13の例では、説明の便宜上、マスタノード51aとスレーブノード51bとを用いた同期について説明するが、本実施形態においてはこれに限定されるものではなく、1つのマスタノードに対して複数のスレーブノードを同期させることができる。 (Sequence example of node synchronization method)
FIG. 13 is a diagram illustrating a schematic sequence example of the node synchronization method. In the example of FIG. 13, for the sake of convenience of explanation, synchronization using the
11 プロセッサモジュール
12 伝送バス
13,53 I/O(入出力)モジュール
14,54 外部機器
15,55 プログラミング装置
21,61 第1基準信号生成部
22,62 第1演算部
23,38,63,78 記憶部
31,71 第2基準信号生成部
32,72 第2演算部
34,74 オーバーヘッド計数部
35,75 計数値取得部
36,76 同期判定部
37,77 同期補正部
41 入力部
42 出力部
43 CPU
44 FPGA
45 メモリ
46 外部インタフェース
50 ノード同期システム
51 ノード
52 通信路
65 伝送遅延時間通知部
66 同期化フレーム通知部
79 受信完了通知部
80 フレーム受信部
81 伝送遅延時間リクエストフレーム
82 受信完了フレーム
83 伝送遅延時間通知フレーム
84 応答フレーム
90 ネットワーク伝送システム
91 HUB(中継装置) DESCRIPTION OF
44 FPGA
45
Claims (18)
- 第1基準信号に従って動作する主モジュールと、第2基準信号に従って動作する従モジュールとを含み、該第1基準信号に該第2基準信号を同期させる信号同期システムであって、
前記主モジュールは、
計数を行い、予め設定された基準値に計数値が達することで前記第1基準信号を生成する第1基準信号生成部を備え、
前記従モジュールは、
計数を行い、前記基準値に計数値が達することで前記第2基準信号を生成する第2基準信号生成部と、
同期補正処理を行う間隔を計数する間隔計数部と、
前記間隔計数部において前記同期補正処理を行う補正処理間隔値に計数値が達した後、前記第1基準信号を受信してリスタートし、計数を行うオーバーヘッド計数部と、
前記間隔計数部において前記補正処理間隔値に計数値が達した後、前記第1基準信号の受信に応じて前記第2基準信号生成部の計数値及び前記オーバーヘッド計数部の計数値を取得する計数値取得部と、
前記第2基準信号生成部の計数値と前記オーバーヘッド計数部の計数値との差分を相殺する値を、前記第2基準信号生成部に一時的に基準値として設定する同期補正部と、
を備えることを特徴とする信号同期システム。 A signal synchronization system including a main module operating in accordance with a first reference signal and a slave module operating in accordance with a second reference signal, wherein the second reference signal is synchronized with the first reference signal,
The main module is
A first reference signal generation unit that performs counting and generates the first reference signal when the count value reaches a preset reference value;
The slave module is
A second reference signal generation unit that performs counting and generates the second reference signal when the count value reaches the reference value;
An interval counting unit that counts the interval at which the synchronization correction processing is performed;
After the count value reaches the correction processing interval value for performing the synchronization correction processing in the interval counting unit, an overhead counting unit that receives and restarts the first reference signal and performs counting,
After the count value reaches the correction processing interval value in the interval count unit, the count value of the second reference signal generation unit and the count value of the overhead counter unit are acquired in response to reception of the first reference signal. A numerical value acquisition unit;
A synchronization correction unit that temporarily sets a value that cancels the difference between the count value of the second reference signal generation unit and the count value of the overhead count unit as a reference value in the second reference signal generation unit;
A signal synchronization system comprising: - 前記従モジュールは、該従モジュールにおける演算を実行するプロセッサを含み、
前記第2基準信号生成部は、前記プロセッサのみがアクセスできるカウンタであることを特徴とする請求項1に記載の信号同期システム。 The slave module includes a processor that executes an operation in the slave module;
The signal synchronization system according to claim 1, wherein the second reference signal generation unit is a counter that can be accessed only by the processor. - 前記従モジュールに含まれるプロセッサは、前記計数値取得部、前記同期補正部として機能することを特徴とする請求項2に記載の信号同期システム。 3. The signal synchronization system according to claim 2, wherein a processor included in the slave module functions as the count value acquisition unit and the synchronization correction unit.
- 前記従モジュールは、
前記計数値取得部によって取得された、前記第2基準信号生成部の計数値と前記オーバーヘッド計数部の計数値とが異なるとき前記第1基準信号と前記第2基準信号とが非同期であると判定する同期判定部をさらに備え、
前記同期補正部は、前記同期判定部に非同期であると判定された場合にのみ、前記差分を相殺する値を、前記第2基準信号生成部に一時的に基準値として設定することを特徴とする請求項1から3のいずれか1項に記載の信号同期システム。 The slave module is
It is determined that the first reference signal and the second reference signal are asynchronous when the count value of the second reference signal generation unit acquired by the count value acquisition unit is different from the count value of the overhead counter A synchronization determination unit that
The synchronization correction unit temporarily sets a value that cancels the difference as a reference value in the second reference signal generation unit only when it is determined to be asynchronous to the synchronization determination unit. The signal synchronization system according to any one of claims 1 to 3. - 前記同期判定部は、前記計数値取得部によって取得された前記第2基準信号生成部の計数値と前記オーバーヘッド計数部の計数値とを時間換算し、双方の時間が異なるとき非同期であると判定することを特徴とする請求項4に記載の信号同期システム。 The synchronization determination unit time-converts the count value of the second reference signal generation unit and the count value of the overhead counter acquired by the count value acquisition unit, and determines that they are asynchronous when both times are different The signal synchronization system according to claim 4, wherein:
- 前記第1基準信号生成部は、前記第1基準信号を周期的に生成し、
前記第2基準信号生成部は、前記第2基準信号を周期的に生成することを特徴とする請求項1から5のいずれか1項に記載の信号同期システム。 The first reference signal generation unit periodically generates the first reference signal,
The signal synchronization system according to claim 1, wherein the second reference signal generation unit periodically generates the second reference signal. - 前記基準値は、外部接続される設定装置から設定できることを特徴とする請求項1から6のいずれか1項に記載の信号同期システム。 The signal synchronization system according to any one of claims 1 to 6, wherein the reference value can be set from an externally connected setting device.
- 第1基準信号に従って動作するマスタノードと、第2基準信号に従って動作するスレーブノードとを含み、該第1基準信号に該第2基準信号を同期させるノード同期システムであって、
前記マスタノードは、
計数を行い、予め設定された基準値に計数値が達することで前記第1基準信号を生成する第1基準信号生成部と、
同期補正処理を行う間隔を計数する間隔計数部と、
前記間隔計数部において前記同期補正処理を行う補正処理間隔値に計数値が達した後、前記マスタノードと前記スレーブノードとを接続する通信路における伝送遅延時間を算出して前記スレーブノードに通知する伝送遅延時間通知部と、
前記通信路を介して前記第1基準信号に同期した同期化フレームを前記スレーブノードに送信する同期化フレーム通知部と、
を備え、
前記スレーブノードは、
計数を行い、前記基準値に計数値が達することで前記第2基準信号を生成する第2基準信号生成部と、
前記同期化フレームを受信してリスタートし、計数を行うオーバーヘッド計数部と、
前記同期化フレームの受信に応じて前記第2基準信号生成部の計数値及び前記オーバーヘッド計数部の計数値を取得する計数値取得部と、
前記第2基準信号生成部の計数値と、前記オーバーヘッド計数部の計数値と前記伝送遅延時間を示す値との和である総合遅延時間値との差分を相殺する値を、前記第2基準信号生成部に一時的に基準値として設定する同期補正部と、
を備えることを特徴とするノード同期システム。 A node synchronization system including a master node that operates according to a first reference signal and a slave node that operates according to a second reference signal, wherein the second reference signal is synchronized with the first reference signal,
The master node is
A first reference signal generation unit that performs counting and generates the first reference signal when the count value reaches a preset reference value;
An interval counting unit that counts the interval at which the synchronization correction processing is performed;
After the count value reaches the correction processing interval value for performing the synchronization correction processing in the interval counting unit, the transmission delay time in the communication path connecting the master node and the slave node is calculated and notified to the slave node. A transmission delay time notification unit;
A synchronization frame notification unit that transmits a synchronization frame synchronized with the first reference signal to the slave node via the communication path;
With
The slave node is
A second reference signal generation unit that performs counting and generates the second reference signal when the count value reaches the reference value;
An overhead counting unit that receives and restarts the synchronization frame and performs counting;
A count value acquisition unit that acquires a count value of the second reference signal generation unit and a count value of the overhead counter in response to reception of the synchronization frame;
A value that cancels the difference between the count value of the second reference signal generation unit and the total delay time value that is the sum of the count value of the overhead counter and the value indicating the transmission delay time is set to the second reference signal. A synchronization correction unit temporarily set as a reference value in the generation unit;
A node synchronization system comprising: - 前記伝送遅延時間通知部は、伝送遅延時間リクエストフレームを前記スレーブノードに送信し、前記伝送遅延時間リクエストフレームに対する前記スレーブノードからの受信完了フレームを受信し、該受信時の時刻と前記伝送遅延時間リクエストフレームを送信したときの時刻との差分から、前記伝送遅延時間を算出することを特徴とする請求項8に記載のノード同期システム。 The transmission delay time notification unit transmits a transmission delay time request frame to the slave node, receives a reception completion frame from the slave node with respect to the transmission delay time request frame, and receives the reception time and the transmission delay time. The node synchronization system according to claim 8, wherein the transmission delay time is calculated from a difference from a time when a request frame is transmitted.
- 前記通信路は、前記マスタノードと前記スレーブノードとの間に中継装置を有するスター型であることを特徴とする請求項8または9に記載のノード同期システム。 The node synchronization system according to claim 8 or 9, wherein the communication path is a star type having a relay device between the master node and the slave node.
- 前記スレーブノードは、該スレーブノードにおける演算を実行するプロセッサを含み、
前記第2基準信号生成部は、前記プロセッサのみがアクセスできるカウンタであることを特徴とする請求項8から10のいずれか1項に記載のノード同期システム。 The slave node includes a processor that executes operations in the slave node;
The node synchronization system according to any one of claims 8 to 10, wherein the second reference signal generation unit is a counter that can be accessed only by the processor. - 前記スレーブノードに含まれるプロセッサは、前記計数値取得部、前記同期補正部として機能することを特徴とする請求項11に記載のノード同期システム。 The node synchronization system according to claim 11, wherein a processor included in the slave node functions as the count value acquisition unit and the synchronization correction unit.
- 前記スレーブノードは、
前記計数値取得部によって取得された、前記第2基準信号生成部の計数値と前記総合遅延時間とが異なるとき前記第1基準信号と前記第2基準信号とが非同期であると判定する同期判定部をさらに備え、
前記同期補正部は、前記同期判定部に非同期であると判定された場合にのみ、前記差分を相殺する値を、前記第2基準信号生成部に一時的に基準値として設定することを特徴とする請求項8から12のいずれか1項に記載のノード同期システム。 The slave node is
Synchronous determination for determining that the first reference signal and the second reference signal are asynchronous when the count value of the second reference signal generation unit acquired by the count value acquisition unit is different from the total delay time Further comprising
The synchronization correction unit temporarily sets a value that cancels the difference as a reference value in the second reference signal generation unit only when it is determined to be asynchronous to the synchronization determination unit. The node synchronization system according to any one of claims 8 to 12. - 前記同期判定部は、前記計数値取得部によって取得された前記第2基準信号生成部の計数値と前記オーバーヘッド計数部の計数値とを時間換算し、双方の時間が異なるとき非同期であると判定することを特徴とする請求項13に記載のノード同期システム。 The synchronization determination unit time-converts the count value of the second reference signal generation unit and the count value of the overhead counter acquired by the count value acquisition unit, and determines that they are asynchronous when both times are different The node synchronization system according to claim 13.
- 前記第1基準信号生成部は、前記第1基準信号を周期的に生成し、
前記第2基準信号生成部は、前記第2基準信号を周期的に生成することを特徴とする請求項8から14のいずれか1項に記載のノード同期システム。 The first reference signal generation unit periodically generates the first reference signal,
The node synchronization system according to claim 8, wherein the second reference signal generation unit periodically generates the second reference signal. - 前記基準値は、外部接続される設定装置から設定できることを特徴とする請求項8から15のいずれか1項に記載のノード同期システム。 16. The node synchronization system according to claim 8, wherein the reference value can be set from an externally connected setting device.
- 第1基準信号に従って動作する主モジュールと、第2基準信号に従って動作する従モジュールとによって、該第1基準信号に該第2基準信号を同期させる信号同期方法であって、
前記主モジュールは、
計数を行い、予め設定された基準値に計数値が達することで前記第1基準信号を生成し、
前記従モジュールは、
計数を行い、前記基準値に計数値が達することで前記第2基準信号を生成し、
同期補正処理を行う間隔を計数し、
前記同期補正処理を行う補正処理間隔値に計数値が達した後、前記第1基準信号を受信してリスタートし、計数を行い、
前記同期補正処理を行う間隔を示す計数値が前記補正処理間隔値に達した後、前記第2基準信号を生成するための計数値及び前記第1基準信号を受信してリスタートした計数値を取得し、
前記第2基準信号を生成するための計数値と前記第1基準信号を受信してリスタートした計数値との差分を相殺する値を、前記第2基準信号を生成するための計数に一時的に基準値として設定することを特徴とする信号同期方法。 A signal synchronization method for synchronizing the second reference signal to the first reference signal by a main module operating according to the first reference signal and a slave module operating according to the second reference signal,
The main module is
Counting is performed, and the first reference signal is generated when the count value reaches a preset reference value.
The slave module is
Counting, and generating the second reference signal when the count value reaches the reference value;
Count the interval to perform synchronization correction processing,
After the count value reaches the correction processing interval value for performing the synchronous correction processing, the first reference signal is received and restarted, and counting is performed.
After a count value indicating an interval for performing the synchronization correction processing reaches the correction processing interval value, a count value for generating the second reference signal and a count value restarted by receiving the first reference signal Acquired,
A value that cancels the difference between the count value for generating the second reference signal and the count value that has been received and restarted is temporarily used for the count for generating the second reference signal. The signal synchronization method is characterized in that it is set as a reference value. - 第1基準信号に従って動作するマスタノードと、第2基準信号に従って動作するスレーブノードとによって、該第1基準信号に該第2基準信号を同期させるノード同期方法であって、
前記マスタノードは、
計数を行い、予め設定された基準値に計数値が達することで前記第1基準信号を生成し、
同期補正処理を行う間隔を計数し、
前記同期補正処理を行う間隔の計数値が補正処理間隔値に達した後、前記マスタノードと前記スレーブノードとを接続する通信路における伝送遅延時間を算出して前記スレーブノードに通知し、
前記通信路を介して前記第1基準信号に同期した同期化フレームをスレーブノードに送信し、
前記スレーブノードは、
計数を行い、前記基準値に計数値が達することで前記第2基準信号を生成し、
前記同期化フレームを受信してリスタートし、計数を行い、
前記同期化フレームの受信に応じて前記第2基準信号を生成するための計数値及び前記同期化フレームを受信してリスタートした計数値を取得し、
前記第2基準信号を生成するための計数値と、前記同期化フレームを受信してリスタートした計数値と前記伝送遅延時間を示す値との和である総合遅延時間値との差分を相殺する値を、前記第2基準信号を生成するための計数に一時的に基準値として設定することを特徴とするノード同期方法。 A node synchronization method for synchronizing the second reference signal to the first reference signal by a master node that operates according to the first reference signal and a slave node that operates according to the second reference signal,
The master node is
Counting is performed, and the first reference signal is generated when the count value reaches a preset reference value,
Count the interval to perform synchronization correction processing,
After the count value of the interval for performing the synchronization correction processing reaches the correction processing interval value, the transmission delay time in the communication path connecting the master node and the slave node is calculated and notified to the slave node,
Transmitting a synchronization frame synchronized with the first reference signal to the slave node via the communication path;
The slave node is
Counting, and generating the second reference signal when the count value reaches the reference value;
Receiving the synchronization frame, restarting, counting,
Obtaining a count value for generating the second reference signal in response to reception of the synchronization frame and a count value restarted by receiving the synchronization frame;
The difference between the count value for generating the second reference signal and the total delay time value that is the sum of the count value that is received and restarted after receiving the synchronization frame and the value indicating the transmission delay time is canceled out A node synchronization method, wherein a value is temporarily set as a reference value in a count for generating the second reference signal.
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014551797A JP5825446B2 (en) | 2012-12-13 | 2012-12-13 | Signal synchronization system, node synchronization system, signal synchronization method, and node synchronization method |
CN201280077569.7A CN104838615B (en) | 2012-12-13 | 2012-12-13 | Signal synchronizing system, node synchronization system, signal synchronizing method and node synchronization method |
PCT/JP2012/082334 WO2014091592A1 (en) | 2012-12-13 | 2012-12-13 | Signal synchronization system, node synchronization system, signal synchronization method, and node synchroniz ation method |
KR1020157015123A KR101636496B1 (en) | 2012-12-13 | 2012-12-13 | Signal synchronization system, node synchronization system, signal synchronization method, and node synchronization method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/JP2012/082334 WO2014091592A1 (en) | 2012-12-13 | 2012-12-13 | Signal synchronization system, node synchronization system, signal synchronization method, and node synchroniz ation method |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2014091592A1 true WO2014091592A1 (en) | 2014-06-19 |
Family
ID=50933913
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/JP2012/082334 WO2014091592A1 (en) | 2012-12-13 | 2012-12-13 | Signal synchronization system, node synchronization system, signal synchronization method, and node synchroniz ation method |
Country Status (4)
Country | Link |
---|---|
JP (1) | JP5825446B2 (en) |
KR (1) | KR101636496B1 (en) |
CN (1) | CN104838615B (en) |
WO (1) | WO2014091592A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2018006959A (en) * | 2016-06-30 | 2018-01-11 | キヤノン株式会社 | Communication system, communication apparatus, and communication method |
WO2021190963A1 (en) | 2020-03-26 | 2021-09-30 | Safran | Method for communication according to a tdma protocol, between a master device and at least one slave device |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6400553B2 (en) * | 2015-09-28 | 2018-10-03 | ファナック株式会社 | Numerical control system with synchronous control function between units |
CN109644240A (en) * | 2017-07-11 | 2019-04-16 | 深圳市柔宇科技有限公司 | Image pickup method and terminal |
KR102200451B1 (en) * | 2018-09-21 | 2021-01-08 | 주식회사 룩시드랩스 | Method for synchronizing time and apparatus using the same |
JP7243695B2 (en) * | 2020-08-25 | 2023-03-22 | 横河電機株式会社 | Information processing device, information processing system, and information processing method |
CN114285512B (en) * | 2021-11-17 | 2024-01-23 | 中国电子科技集团公司第五十四研究所 | Communication timing method, communication system and communication equipment |
KR20230079632A (en) * | 2021-11-29 | 2023-06-07 | 성창 주식회사 | System for synchronizing time between server and IoT device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005159754A (en) * | 2003-11-26 | 2005-06-16 | Fuji Electric Fa Components & Systems Co Ltd | Transmission timing determining method, bus usage right arbitrating method, network system and program |
JP2005253033A (en) * | 2004-02-06 | 2005-09-15 | Nippon Telegr & Teleph Corp <Ntt> | Network synchronization device, clock transmission method, and clock transmission packet network |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6691071B2 (en) * | 2002-05-13 | 2004-02-10 | Motorola, Inc. | Synchronizing clock enablement in an electronic device |
US7844703B2 (en) * | 2006-11-02 | 2010-11-30 | International Business Machines Corporation | System and method of measurement for a distributed computer system |
CN101039145B (en) * | 2007-03-30 | 2010-08-04 | 华为技术有限公司 | Method and apparatus for realizing clock |
CN100589371C (en) * | 2007-07-16 | 2010-02-10 | 中兴通讯股份有限公司 | System and method for eliminating long line transmission time delay of source synchronizing signal |
JP5127482B2 (en) * | 2008-01-30 | 2013-01-23 | 株式会社東芝 | Timing synchronization method, synchronization apparatus, synchronization system, and synchronization program |
KR101011314B1 (en) * | 2008-03-31 | 2011-01-28 | 후지쯔 가부시끼가이샤 | Apparatus with clock generation function, method for setting reference frequency, and method for adjusting reference frequency |
CN101431796A (en) * | 2008-12-10 | 2009-05-13 | 扬州万方电子技术有限责任公司 | Method for clock master-slave synchronization of centered broad band radio communication system |
US8120935B2 (en) * | 2011-03-29 | 2012-02-21 | American Superconductor Corporation | Power converter with dual ring network control |
-
2012
- 2012-12-13 JP JP2014551797A patent/JP5825446B2/en active Active
- 2012-12-13 CN CN201280077569.7A patent/CN104838615B/en active Active
- 2012-12-13 WO PCT/JP2012/082334 patent/WO2014091592A1/en active Application Filing
- 2012-12-13 KR KR1020157015123A patent/KR101636496B1/en active IP Right Grant
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005159754A (en) * | 2003-11-26 | 2005-06-16 | Fuji Electric Fa Components & Systems Co Ltd | Transmission timing determining method, bus usage right arbitrating method, network system and program |
JP2005253033A (en) * | 2004-02-06 | 2005-09-15 | Nippon Telegr & Teleph Corp <Ntt> | Network synchronization device, clock transmission method, and clock transmission packet network |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2018006959A (en) * | 2016-06-30 | 2018-01-11 | キヤノン株式会社 | Communication system, communication apparatus, and communication method |
WO2021190963A1 (en) | 2020-03-26 | 2021-09-30 | Safran | Method for communication according to a tdma protocol, between a master device and at least one slave device |
FR3108817A1 (en) * | 2020-03-26 | 2021-10-01 | Safran | Method of communication according to a TDMA protocol between a master device and at least one slave device |
Also Published As
Publication number | Publication date |
---|---|
KR20150084917A (en) | 2015-07-22 |
JP5825446B2 (en) | 2015-12-02 |
CN104838615A (en) | 2015-08-12 |
KR101636496B1 (en) | 2016-07-05 |
JPWO2014091592A1 (en) | 2017-01-05 |
CN104838615B (en) | 2017-08-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5825446B2 (en) | Signal synchronization system, node synchronization system, signal synchronization method, and node synchronization method | |
JP6523497B1 (en) | Master controller and synchronous communication system using the same | |
WO2016004644A1 (en) | Method and apparatus for monitoring ethernet clock synchronization | |
WO2015128981A1 (en) | Programmable controller system and controller therefor | |
CN107402534B (en) | Adjusting method, EtherCAT main station and computer readable storage medium | |
JP2011193457A (en) | System and method for performing time synchronization | |
JP2013083450A (en) | Time control device, time control method, and program | |
US20220147022A1 (en) | Control system | |
CN110572230A (en) | correction method and device for realizing time synchronization | |
CN106230541B (en) | A kind of Site synch system and method for Industrial Ethernet | |
JP2019101480A (en) | Control device and control method | |
JP6029433B2 (en) | Microcomputer | |
JP6010802B2 (en) | Time synchronization system, time synchronization method, slave node, and computer program | |
JP2011023788A (en) | Network synchronization method and synchronization circuit | |
WO2020021597A1 (en) | Communication device, communication system, and synchronization control method | |
US8060769B2 (en) | Duplexed field controller | |
JP5850143B2 (en) | Signal synchronization system, multiprocessor, and node synchronization system | |
JP4961589B2 (en) | Network system and slave synchronization method | |
JP2010061458A (en) | Machine controller system and method for synchronizing machine controllers | |
JP5662119B2 (en) | Node system and monitoring node | |
JP6085864B2 (en) | Time synchronization system, time synchronization method, slave node, and computer program | |
CN107229543B (en) | Semiconductor device with a plurality of semiconductor chips | |
JP5223809B2 (en) | Synchronous communication system | |
JP2014157386A (en) | Data processing system | |
CN117424668A (en) | Time synchronization between master and slave devices in a network |
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: 12889834 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2014551797 Country of ref document: JP Kind code of ref document: A |
|
ENP | Entry into the national phase |
Ref document number: 20157015123 Country of ref document: KR Kind code of ref document: A |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 12889834 Country of ref document: EP Kind code of ref document: A1 |