CN102843764B - Method for outputting synchronization signals accurately to solve problem on synchronization of multi-stations - Google Patents

Method for outputting synchronization signals accurately to solve problem on synchronization of multi-stations Download PDF

Info

Publication number
CN102843764B
CN102843764B CN201210293856.3A CN201210293856A CN102843764B CN 102843764 B CN102843764 B CN 102843764B CN 201210293856 A CN201210293856 A CN 201210293856A CN 102843764 B CN102843764 B CN 102843764B
Authority
CN
China
Prior art keywords
slave station
local
offset
delay
clock
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210293856.3A
Other languages
Chinese (zh)
Other versions
CN102843764A (en
Inventor
金东�
周俊华
汪永生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SUZHOU GUFUDAO AUTOMATION TECHNOLOGY Co Ltd
Original Assignee
SUZHOU GUFUDAO AUTOMATION TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SUZHOU GUFUDAO AUTOMATION TECHNOLOGY Co Ltd filed Critical SUZHOU GUFUDAO AUTOMATION TECHNOLOGY Co Ltd
Priority to CN201210293856.3A priority Critical patent/CN102843764B/en
Publication of CN102843764A publication Critical patent/CN102843764A/en
Application granted granted Critical
Publication of CN102843764B publication Critical patent/CN102843764B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention discloses a method for outputting synchronization signals accurately to solve the problem on the synchronization of multi-stations, comprising the following steps: setting the clock of a slave station 1 as a system reference clock, calculating the delay error and the offset error of each slave station when a main station reads the corresponding time value, writing the calculation result into each slave station, sending commands by the main station when the main station starts to synchronize all the slave station, reading the current system time from the reference clock slave station 1, writing the current system time into other slave stations, recording the current time after a slave station n receives the commands, acquiring the local reference clock for outputting pulse and further acquiring the local clock offset delta t, and compensating by the system according to the local clock offset delta t so as to output accurate synchronization pulse. The method overcomes the defects of the prior art and can realize synchronous outputting.

Description

The method of synchronizing signal is accurately exported for solving multistation stationary problem
Technical field
The present invention relates to a kind of method accurately exporting synchronizing signal for solving multistation stationary problem.
Background technology
In prior art, multiple slave stations based on distributed AC servo system cannot be accomplished synchronously, such as, multi-axial Simultaneous in digital control system, and synchronous acquisition inputs, synchronism output and other motion controls synchronous, these all limit the development of distributed AC servo system in synchronous applications.Therefore often distributed AC servo system is not adopted, but be all integrated on master control circuit plate, such way can accomplish Synchronization Control really, but problem adjoint to be thus system too integrated, a lot of problem can be caused, such as cabling is various, poor expandability, be difficult to especially in large scale system realize.
Summary of the invention
In order to overcome the deficiency that prior art exists, the object of the present invention is to provide a kind of method accurately exporting synchronizing signal for solving multistation stationary problem that can realize synchronism output.
For reaching above object, the invention provides a kind of method accurately exporting synchronizing signal for solving multistation stationary problem, comprising the steps:
(1) by the clock T of slave station 1 refbe set to system reference clock, then
When Frame arrives slave station 1 from main website, slave station local clock T refmoment be t 1, the slave station local clock T when Frame arrives slave station n local (N)moment be t n, and meet: t n-t 1=T offset (n)+ T delay (n);
When Frame returns arrival slave station n through follow-up all slave stations, slave station local clock T local (N)moment be t' n, when Frame arrives slave station 1, slave station local clock T refmoment be t' 1, and meet: t'1-t'n=-T offset (n)+ T delay (n);
Wherein: T offset (n)represent the offset error that slave station 1 causes to slave station n because of power-on time, crystal oscillator Induction Peried, T delay (n)represent slave station 1 to slave station n because transmission forwards the delay error caused;
(2) when main website reads corresponding moment value, calculate delay error and the offset error of each slave station, and result of calculation is write in each slave station; Wherein, the delay error of slave station n and offset error are calculated by following formula:
T delay(n)= ((t' 1-t 1)-(t' n-t n))/2
T offset(n)= ((t' n+ t n)-(t 1+ t' 1))/2;
(3) when main website starts synchronous all slave stations, main website sends instruction, reads present system time T from reference clock slave station 1 sys_refand write in all the other slave stations, after slave station n receives this instruction, record current time t local(n), obtain the local reference clock T for exporting pulse local_ ref=t local(n)-T offset (n)-T delay (n), and then obtain local clock offsets Δ t=t local(n)-T offset (n)-T delay (n)-T sys_ref, system compensates T according to Δ t local_ refthus export accurate lock-out pulse.
As a further improvement on the present invention, main website calculates T at repetitive measurement delay (n), T offjset (n)mean value after write each slave station to reduce error.
The invention has the beneficial effects as follows: the multiple slave stations based on distributed AC servo system can realize synchronism output, overcome the offset error because power-on time, crystal oscillator Induction Peried cause, factor data transmission forwards the delay time error that causes and to drift about the error caused because of crystal oscillator, thus can be used for the synchronous exigent occasions such as multi-axial Simultaneous.
Accompanying drawing explanation
Accompanying drawing 1 is the method Signal transmissions schematic diagram accurately exporting synchronizing signal according to the present invention for solving multistation stationary problem.
Embodiment
Below preferred embodiment of the present invention is described in detail, can be easier to make advantages and features of the invention be readily appreciated by one skilled in the art, thus more explicit defining is made to protection scope of the present invention.
See accompanying drawing 1, a kind of method accurately exporting synchronizing signal for solving multistation stationary problem, the method comprises the steps:
(1) by slave station 1 clock T refbe set to system reference clock; Slave station 1 local clock T during Frame arrival slave station 1 refmoment be t 1, when data return through follow-up all slave stations, slave station local clock T during arrival slave station 1 refmoment be t' 1; Slave station local clock T during Frame arrival slave station n local (N)moment be t n, when data return through follow-up all slave stations, slave station local clock T during arrival slave station n local (N)moment be t' n; Suppose that the smooth length of cable TX with RX is consistent, all devices process is consistent with Forwarding Latency, without saltus step, can set up following relation:
T n-t 1=T offset (n)+ T delay (n)(1-1 formula)
T'1-t'n=-T offset (n)+ T delay (n)(1-2 formula)
Wherein, T offset (n)represent the offset error that slave station 1 causes to slave station n because of power-on time, crystal oscillator Induction Peried; T delay (n)represent slave station 1 to slave station n because transmission forwards the delay error caused; Note: clock skew is from three parameters of crystal oscillator frequency precision: fixed frequency, temperature drift, ageing rate.Fixed frequency: refer within the scope of actual output frequency, actual meeting deviation is how many, unit ppm; Temperature drift: refer in operating temperature range, frequency meeting deviation is how many, unit ppm; Ageing rate: refer in work after 1 year, frequency meeting deviation is how many, unit ppm.Such as: fixed frequency 25MHZ, positive and negative 10ppm.Refer to that frequency changes within the scope of the positive and negative 250HZ of 25MHZ.
(2) when main website reads the corresponding moment, then calculate delay error and the offset error of each slave station, and these information are write in each slave station;
Can obtain slave station n's
Delay error T delay (n)=((t' 1-t 1)-(t' n-t n))/2 (1-3 formulas)
Offset error T offset (n)=((t' n+ t n)-(t 1+ t' 1))/2 (1-4 formulas)
(3) when main website starts synchronous all slave stations, main website sends instruction, reads present system time T from reference clock slave station sys_ref,and write in other slave stations; After slave station n receives this instruction, record present system time t local(n), now can calculate the local reference clock for exporting pulse:
T local_ ref=t local(n)-T offset (n)-T delay (n)(1-5 formula)
Now also can calculate local clock offsets:
Δ t=t local(n)-T offset (n)-T delay (n)-T sys_ref(1-6 formula)
T is compensated according to Δ t local_ ref, eliminate clock skew, export more accurate lock-out pulse.
It should be noted that, in order to reduce error, main website can repetitive measurement, calculates T delay (n), T offjset (n)mean value after write each slave station, system according to compensate after T sys_localjust can export the signal of precise synchronization.Multiple slave stations based on distributed AC servo system can realize synchronism output, overcome the offset error because power-on time, crystal oscillator Induction Peried cause, factor data transmission forwards the delay time error that causes and to drift about the error caused because of crystal oscillator, thus can be used for the synchronous exigent occasions such as multi-axial Simultaneous.
Above execution mode is only for illustrating technical conceive of the present invention and feature; its object is to allow person skilled in the art understand content of the present invention and to be implemented; can not limit the scope of the invention with this, all equivalences done according to Spirit Essence of the present invention change or modification is all encompassed in protection scope of the present invention.

Claims (2)

1. accurately exporting a method for synchronizing signal for solving multistation stationary problem, it is characterized in that, comprise the steps:
(1) by the clock T of slave station 1 refbe set to system reference clock, then
When Frame arrives slave station 1 from main website, slave station local clock T refmoment be t 1, the slave station local clock T when Frame arrives slave station n local (N)moment be t n, and meet: t n-t 1=T offset (n)+ T delay (n);
When Frame returns arrival slave station n through follow-up all slave stations, slave station local clock T local (N)moment be t' n, when Frame arrives slave station 1, slave station local clock T refmoment be t' 1, and meet: t'1-t'n=-T offset (n)+ T delay (n);
Wherein: T offset (n)represent the offset error that slave station 1 causes to slave station n because of power-on time, crystal oscillator Induction Peried, T delay (n)represent slave station 1 to slave station n because transmission forwards the delay error caused;
(2) when main website reads corresponding moment value, calculate delay error and the offset error of each slave station, and result of calculation is write in each slave station; Wherein, the delay error of slave station n and offset error are calculated by following formula:
T delay(n)= ((t' 1-t 1)-(t' n-t n))/2
T offset(n)= ((t' n+ t n)-(t 1+ t' 1))/2;
(3) when main website starts synchronous all slave stations, main website sends instruction, reads present system time T from reference clock slave station 1 sys_refand write in all the other slave stations, after slave station n receives this instruction, record current time t local(n), obtain the local reference clock T for exporting pulse local_ ref=t local(n)-T offset (n)-T delay (n), and then obtain local clock offsets Δ t=t local(n)-T offset (n)-T delay (n)-T sys_ref, system compensates T according to Δ t local_ refthus export accurate lock-out pulse.
2. the method accurately exporting synchronizing signal for solving multistation stationary problem according to claim 1, is characterized in that: main website is at repetitive measurement and calculate T delay (n), T offset (n)mean value after write each slave station to reduce error.
CN201210293856.3A 2012-08-17 2012-08-17 Method for outputting synchronization signals accurately to solve problem on synchronization of multi-stations Active CN102843764B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210293856.3A CN102843764B (en) 2012-08-17 2012-08-17 Method for outputting synchronization signals accurately to solve problem on synchronization of multi-stations

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210293856.3A CN102843764B (en) 2012-08-17 2012-08-17 Method for outputting synchronization signals accurately to solve problem on synchronization of multi-stations

Publications (2)

Publication Number Publication Date
CN102843764A CN102843764A (en) 2012-12-26
CN102843764B true CN102843764B (en) 2015-02-25

Family

ID=47370755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210293856.3A Active CN102843764B (en) 2012-08-17 2012-08-17 Method for outputting synchronization signals accurately to solve problem on synchronization of multi-stations

Country Status (1)

Country Link
CN (1) CN102843764B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015180150A1 (en) * 2014-05-30 2015-12-03 深圳市英威腾电气股份有限公司 Method for multi-machine frequency converter generating synchronization signal, and multi-machine frequency converter
CN106455048A (en) * 2016-09-13 2017-02-22 北京捷联微芯科技有限公司 Distance determining method and station
CN108983044B (en) * 2018-08-06 2021-02-19 北京恒源利通电力技术有限公司 Overhead line three-phase current synchronous wave recording method based on RF wireless communication
CN112748395B (en) * 2020-12-21 2022-05-13 中国航天科工集团八五一一研究所 Time difference data matching method based on DSP

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5481258A (en) * 1993-08-11 1996-01-02 Glenayre Electronics, Inc. Method and apparatus for coordinating clocks in a simulcast network
JP5389039B2 (en) * 2007-11-02 2014-01-15 ノヴァテル インコーポレイテッド System and method for distributing accurate time and frequency across a network
CN201127028Y (en) * 2007-12-19 2008-10-01 华东电网有限公司 Time synchronization system transferring time through synchronous digital hierarchy optical communications network
CN101738600B (en) * 2008-11-14 2012-05-30 武汉大学 High-frequency ground wave radar networking clock synchronization control device
JP5430469B2 (en) * 2010-03-31 2014-02-26 三菱電機株式会社 Master device, slave device, time synchronization method, and program

Also Published As

Publication number Publication date
CN102843764A (en) 2012-12-26

Similar Documents

Publication Publication Date Title
CN110492965B (en) Method and device for synchronizing time of serial messages in master-slave system
CN102843764B (en) Method for outputting synchronization signals accurately to solve problem on synchronization of multi-stations
CN103532652B (en) A kind of time synchronism apparatus and method
CN107257579B (en) Time synchronization method of UWB high-precision positioning system
CN107182123A (en) The synchronous method and synchronization system of a kind of UWB alignment systems
WO2021008532A1 (en) Active antenna unit delay alignment method and apparatus and active antenna unit
CN109425844A (en) A kind of calibration method and system of data sampling
CN103454911A (en) Rough synchronization method for satellite bidirectional time comparison
CN104184535A (en) Clock synchronization method and clock synchronization device
CN107786293A (en) Method for synchronizing time, clock equipment, from clockwork and clock synchronization system
CN101826955A (en) Synchronization error correction method
CN102412957A (en) High-precision synchronous clock adjusting method
CN104243079A (en) Microsecond clock synchronization method for real-time Ethernet
CN107483136A (en) A kind of clock synchronizing method between fixed communication apparatus
CN104702214A (en) Crystal oscillator frequency compensation method
CN103532693A (en) Time synchronizing device and method
CN114615736A (en) Time synchronization network device and method
KR101847366B1 (en) Time synchronization device and time synchronization system
DE602009000810D1 (en) A method for synchronizing applicable clock signals in a synchronous communication network, corresponding transceivers, computer program product and computer readable storage means
CN105892430A (en) Robot joint motor synchronization control system and method
CN102255682B (en) Method and device for converting precision time protocol clock into inter-range instrumentation group B (IRIG-B) code
US10222786B2 (en) Numerical control system having synchronous control function between units
CN102377559B (en) Method and system for implementing clock timing synchronous network
CN103441832A (en) Clock synchronization method, system and equipment based on PTP
CN110611544A (en) Method and device for accurately timing by utilizing RS232 serial port

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant