A time synchronization method and system
A time synchronization system and time synchronization technology, applied in the direction of time division multiplexing system, electrical program control, electrical components, etc., can solve the problems of poor operation flexibility and convenience, low reliability, large modification, etc., to improve the real High performance and real-time performance, easy operation, and the effect of improving accuracy
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0037] Embodiment 1. A time synchronization system
[0038] Such as figure 1 As shown, a time synchronization system, the system includes:
[0039] A time synchronization unit is used to synchronize the time of the data collector and the background server with the NTP server;
[0040] The calculation unit is used to make the data collector calculate the time difference between the network standard time synchronized from the NTP server and the time stamp data uploaded by the PLC;
[0041] The data processing unit is used to make the data collector add the time difference to the time stamp data uploaded by the PLC to obtain standardized PLC time stamp data;
[0042] The data transmission unit is used to make the data collector transmit the standardized PLC time stamp data to the background server. It can be seen that the system structure applied by the time synchronization system of the present invention is as follows figure 2 shown.
[0043] As a preferred implementation ...
Embodiment 2
[0049] Embodiment 2, a time synchronization method
[0050] Such as image 3 Shown, a kind of time synchronization method, the steps that this method includes are:
[0051] Synchronize the time of the data collector and the background server with the NTP server;
[0052] The data collector calculates the network standard time t synchronized from the NTP server NTP with the timestamp data uploaded by the PLC t PLC The time difference between t d , ie t d = t NTP -t PLC ;
[0053] Thereafter, the PLC continuously transmits the time stamp data to the data collector, and the data collector will upload the time stamp data t PLC_n plus the time difference t d , get the standardized PLC time stamp data t real , ie t real = t PLC_n +t d ;
[0054] The data collector transmits the standardized PLC time stamp data to the background server for further data processing.
[0055] As a preferred implementation of the method embodiment, the data collector transmits the standard...
Embodiment 3
[0066] Embodiment 3, a specific embodiment of a time synchronization method
[0067] In this embodiment, the PLC is set to include PLC1, PLC2, and PLC3, and the current time is 14:15:27 on January 9, 2017, the time of PLC1 is 14:14:00 on January 9, 2017, and the time of PLC2 is January 8, 2017 14:15:27, and PLC3 time is January 1, 1970 14:15:27.
[0068] A time synchronization method, its specific steps include:
[0069] S101, the data collector and the background server are all synchronized with the NTP server in the form of Ethernet, so that the data collector and the background server are all synchronized to obtain the network standard time from the NTP server, that is, at this time, the data collector, the background The time of the server and the NTP server is synchronized, and the current time is 14:15:27 on January 9, 2017;
[0070] S102, the data collector will carry out the data format conversion of Unix timestamp (00:00 on January 1, 1970, Greenwich Mean Time) from...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com