CN104597878A - Controller time synchronizing method of industrial control system - Google Patents

Controller time synchronizing method of industrial control system Download PDF

Info

Publication number
CN104597878A
CN104597878A CN201410848839.0A CN201410848839A CN104597878A CN 104597878 A CN104597878 A CN 104597878A CN 201410848839 A CN201410848839 A CN 201410848839A CN 104597878 A CN104597878 A CN 104597878A
Authority
CN
China
Prior art keywords
time
controller
lock
control system
industrial control
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.)
Pending
Application number
CN201410848839.0A
Other languages
Chinese (zh)
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.)
Chongqing Chuanyi Automation Co Ltd
Original Assignee
Chongqing Chuanyi Automation 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 Chongqing Chuanyi Automation Co Ltd filed Critical Chongqing Chuanyi Automation Co Ltd
Priority to CN201410848839.0A priority Critical patent/CN104597878A/en
Publication of CN104597878A publication Critical patent/CN104597878A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Electric Clocks (AREA)
  • Computer And Data Communications (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention provides a controller time synchronizing method of an industrial control system. The controller time synchronizing method of the industrial control system comprises the following steps that a time synchronization reference source sends synchronization pulse to a node controller and meanwhile transmits synchronization time information; while receiving the synchronization pulse, the node controller triggers a synchronization timer of the node controller; when receiving the synchronization time information, the node controller takes the sum of the timing time of the timer and the synchronization time in the synchronization time information as the calibration time for time synchronization calibration. Therefore, the controller time synchronizing method of the industrial control system can facilitate networking and effectively avoid influence of environmental factors, and meanwhile can effectively ensure time synchronization precision and working stability.

Description

The controller method for synchronizing time of industrial control system
Technical field
The present invention relates to a kind of method for synchronizing time, particularly relate to a kind of controller method for synchronizing time of industrial control system.
Background technology
In industrial control system, multiple controller is needed to control industrial process etc., in order to ensure the accuracy controlled, need to carry out time synchronized to each controller in industrial control system, existing time synchronized mainly contains the modes such as the synchronous or Network Time Protocol time synchronized of gps time, but there is following shortcoming in prior art: although gps time synchronously can realize accurate timing and accurate synchronization, but the reception of its signal is large by the impact of environment, therefore, gps time is synchronously on the basis based on signal stabilization, but the environmental factors such as present electromagnetic environment interference can badly influence the stability of gps signal, and Network Time Protocol time synchronized is easy to networking, but the stability of Network Time Protocol time synchronized and synchronization accuracy low.
Therefore, need to propose a kind of new method for synchronizing time, can either networking be facilitated, effectively avoid the impact of environmental factor, effectively can ensure the precision of time synchronized and the stability of work again.
Summary of the invention
In view of this, the object of this invention is to provide the controller method for synchronizing time in a kind of industrial control system, can either networking be facilitated, effectively avoid the impact of environmental factor, effectively can ensure the precision of time synchronized and the stability of work again.
Controller method for synchronizing time in a kind of industrial control system provided by the invention, comprises the steps:
Time synchronized reference source sends synchronizing pulse to Node Controller, and time synchronized reference source sends information lock in time;
While Node Controller receives synchronizing pulse, the synchrotimer of trigger node controller, after Node Controller receives information lock in time, sum lock in time in the timing time of timer and lock in time information to be gone forward side by side line time synchronous calibration as alignment time of Node Controller.
Further, between transmission synchronizing pulse, setting-up time synchronization norm resource:
Connected by each controller in industrial control system, and in setting controller, arbitrary controller is time synchronized reference source, except being set as the controller of time synchronized reference source, other controllers are set as Node Controller.
Further, each controller in industrial control system is by two paths of signals connection, and wherein a road is pulse signal-line, and another road is information communication lock in time line, pulse signal-line is connected by GPIO Interface and Controler, and information communication lock in time line is connected with the communication port of controller.
Further, when Node Controller listens to the negative edge of the pulse signal of synchronizing pulse, the synchrotimer of trigger node controller.
Further, described time synchronized reference source according to setting cycle lock in time send synchronizing pulse and lock in time information.
Further, if the timing time value of synchrotimer is less than periodic quantity lock in time of setting, then sum lock in time in the timing time of timer and lock in time information to be gone forward side by side line time synchronous calibration as alignment time of Node Controller.
Beneficial effect of the present invention: the controller method for synchronizing time of industrial control system of the present invention, the synchronous of local zone time is realized by the controller in control system, effectively can avoid the impact of extraneous factor, thus ensure the stability of time synchronized, effectively can ensure again the precision of time synchronized; And networking is convenient, use cost is cheap.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described:
Fig. 1 is process flow diagram of the present invention.
Fig. 2 is the connection diagram of controller of the present invention.
Fig. 3 is the sequential chart of work of the present invention.
Embodiment
Fig. 1 is process flow diagram of the present invention, and Fig. 2 is the connection diagram of controller of the present invention, as shown in the figure,
The controller method for synchronizing time of a kind of industrial control system provided by the invention, comprises the steps:
S1. each controller in industrial control system is by two paths of signals connection, wherein a road is pulse signal-line, another road is information communication lock in time line, pulse signal-line is connected by GPIO Interface and Controler, information communication lock in time line is connected with the communication port of controller, wherein, information communication lock in time line is connected by the communication port of the Interface and Controler such as RS485, that is, synchronization pulse is sent by pulse signal-line, and lock in time, information was sent by information communication lock in time line, during the transmission of such synchronization pulse can not to lock in time information transmission impact, its syndeton schematic diagram as shown in Figure 2, certain lock in time, information also can not affect synchronization pulse, synchronization pulse can be transferred to each controller node fast, and triggering synchronous timer, although synchronization pulse has delay, but be in microsecond even nanosecond this time delay, precision for time synchronized does not affect.
S2. between transmission synchronizing pulse, setting-up time synchronization norm resource:
In setting controller, arbitrary controller is time synchronized reference source, except being set as the controller of time synchronized reference source, other controllers are set as Node Controller, that is: the arbitrary controller in system all can be set to time synchronized reference source, in this way, realize the time synchronized of the inner different controller of industrial control system, ensure the consistance of the time of different controller.
S3. time synchronized reference source sends synchronizing pulse to Node Controller, and time synchronized reference source sends information lock in time, and described time synchronized reference source according to setting cycle lock in time send synchronizing pulse and lock in time information, wherein, after each synchronizing pulse sends, information lock in time is sent to Node Controller by time synchronized reference source immediately, wherein, lock in time, information was the moment that synchronizing pulse triggers, as described in Figure 3, within the time synchronized cycle, time synchronized reference source sends a pulse signal, the trigger instants of synchronizing pulse is T1, and this trigger instants T1 is the trigger instants of the negative edge of pulse signal, and while the negative edge of pulse signal triggers, trigger instants T1 is sent to each Node Controller as information lock in time by time synchronized reference source immediately.
S4. while Node Controller receives synchronizing pulse, the synchrotimer of trigger node controller, after Node Controller receives information lock in time, if the timing time of synchrotimer is less than cycle lock in time of setting, then sum lock in time in the timing time of timer and lock in time information to be gone forward side by side line time synchronous calibration as alignment time of Node Controller, wherein, when Node Controller listens to the negative edge of the pulse signal of synchronizing pulse, the synchrotimer of trigger node controller, this is because the GPIO mouth of time synchronized reference source is high level state under normal conditions, sometime, as the T1 moment, the high level of the GPIO mouth of time synchronized reference source reduces and forms low level pulse, and this low level pulse is sent to Node Controller, now, by catching the trigger pip of negative edge as the timer of Node Controller of synchronizing pulse, and due to the time delay of action of the negative edge of pulse signal little, the accuracy of time synchronized can be ensured,
If the timing time value of synchrotimer is less than periodic quantity lock in time of setting, then sum lock in time in the timing time of timer and lock in time information to be gone forward side by side line time synchronous calibration as alignment time of Node Controller
Wherein, cycle lock in time of setting is Tsyn, lock in time is the time of extracting in information lock in time is Tst, the timing time of the synchrotimer of Node Controller is Tct, alignment time is Tset, if the value Tct of synchrotimer is less than the value Tsyn in cycle lock in time, then the alignment time is Tset=Tst+Tct, and this alignment time is used for calibrate Node Controller its temporal, and closedown synchrotimer, prepare time synchronized action next time, such as: lock in time, cycle set was 100ms, certainly, cycle lock in time is set to different values according to different system hardwares and network condition.
What finally illustrate is, above embodiment is only in order to illustrate technical scheme of the present invention and unrestricted, although with reference to preferred embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that, can modify to technical scheme of the present invention or equivalent replacement, and not departing from aim and the scope of technical solution of the present invention, it all should be encompassed in the middle of right of the present invention.

Claims (6)

1. a controller method for synchronizing time for industrial control system, is characterized in that: comprise the steps:
Time synchronized reference source sends synchronizing pulse to Node Controller, and time synchronized reference source sends information lock in time;
While Node Controller receives synchronizing pulse, the synchrotimer of trigger node controller, after Node Controller receives information lock in time, sum lock in time in the timing time of timer and lock in time information to be gone forward side by side line time synchronous calibration as alignment time of Node Controller.
2. the controller method for synchronizing time of industrial control system according to claim 1, is characterized in that: between transmission synchronizing pulse, setting-up time synchronization norm resource:
Connected by each controller in industrial control system, and in setting controller, arbitrary controller is time synchronized reference source, except being set as the controller of time synchronized reference source, other controllers are set as Node Controller.
3. the controller method for synchronizing time of industrial control system according to claim 2, it is characterized in that: each controller in industrial control system is by two paths of signals connection, wherein a road is pulse signal-line, another road is information communication lock in time line, pulse signal-line is connected by GPIO Interface and Controler, and information communication lock in time line is connected with the communication port of controller.
4. the controller method for synchronizing time of industrial control system according to claim 1, is characterized in that: when Node Controller listens to the negative edge of the pulse signal of synchronizing pulse, the synchrotimer of trigger node controller.
5. the controller method for synchronizing time of industrial control system according to claim 1, is characterized in that: described time synchronized reference source according to cycle lock in time of setting send synchronizing pulse and lock in time information.
6. the controller method for synchronizing time of industrial control system according to claim 5, it is characterized in that: if the timing time value of synchrotimer is less than periodic quantity lock in time of setting, then sum lock in time in the timing time of timer and lock in time information to be gone forward side by side line time synchronous calibration as alignment time of Node Controller.
CN201410848839.0A 2014-12-31 2014-12-31 Controller time synchronizing method of industrial control system Pending CN104597878A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410848839.0A CN104597878A (en) 2014-12-31 2014-12-31 Controller time synchronizing method of industrial control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410848839.0A CN104597878A (en) 2014-12-31 2014-12-31 Controller time synchronizing method of industrial control system

Publications (1)

Publication Number Publication Date
CN104597878A true CN104597878A (en) 2015-05-06

Family

ID=53123737

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410848839.0A Pending CN104597878A (en) 2014-12-31 2014-12-31 Controller time synchronizing method of industrial control system

Country Status (1)

Country Link
CN (1) CN104597878A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104731736A (en) * 2015-03-27 2015-06-24 深圳怡化电脑股份有限公司 Time synchronization device, method and system
CN105700336A (en) * 2016-04-07 2016-06-22 山东和远智能科技股份有限公司 Electric power instrument time calibrating method based on RS485 bus connection
CN108226867A (en) * 2017-12-25 2018-06-29 上海昂丰装备科技有限公司 A kind of grab bucket method for ultrasonic locating
CN113271169A (en) * 2021-04-27 2021-08-17 东风汽车集团股份有限公司 Vehicle time service method and system based on wireless communication terminal
WO2022155879A1 (en) * 2021-01-22 2022-07-28 华为技术有限公司 Time synchronization method and related device
CN116090907A (en) * 2023-03-07 2023-05-09 中建四局第五建筑工程有限公司 Building construction quality traceability management method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145896A (en) * 2007-09-17 2008-03-19 浙江中控技术有限公司 Control system and method for clock synchronization between control stations
CN101515831A (en) * 2008-02-22 2009-08-26 杭州华三通信技术有限公司 Method, system and device for time synchronous transfer
CN102082655A (en) * 2010-12-30 2011-06-01 华为技术有限公司 Time compensation method, device and system
CN102368703A (en) * 2011-11-30 2012-03-07 中国航空工业集团公司第六三一研究所 High precision time service method used for distributed system
CN102752065A (en) * 2012-06-29 2012-10-24 华为技术有限公司 Time synchronization method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145896A (en) * 2007-09-17 2008-03-19 浙江中控技术有限公司 Control system and method for clock synchronization between control stations
CN101515831A (en) * 2008-02-22 2009-08-26 杭州华三通信技术有限公司 Method, system and device for time synchronous transfer
CN102082655A (en) * 2010-12-30 2011-06-01 华为技术有限公司 Time compensation method, device and system
CN102368703A (en) * 2011-11-30 2012-03-07 中国航空工业集团公司第六三一研究所 High precision time service method used for distributed system
CN102752065A (en) * 2012-06-29 2012-10-24 华为技术有限公司 Time synchronization method and system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104731736A (en) * 2015-03-27 2015-06-24 深圳怡化电脑股份有限公司 Time synchronization device, method and system
CN105700336A (en) * 2016-04-07 2016-06-22 山东和远智能科技股份有限公司 Electric power instrument time calibrating method based on RS485 bus connection
CN108226867A (en) * 2017-12-25 2018-06-29 上海昂丰装备科技有限公司 A kind of grab bucket method for ultrasonic locating
WO2022155879A1 (en) * 2021-01-22 2022-07-28 华为技术有限公司 Time synchronization method and related device
CN113271169A (en) * 2021-04-27 2021-08-17 东风汽车集团股份有限公司 Vehicle time service method and system based on wireless communication terminal
CN116090907A (en) * 2023-03-07 2023-05-09 中建四局第五建筑工程有限公司 Building construction quality traceability management method and system
CN116090907B (en) * 2023-03-07 2023-06-20 中建四局第五建筑工程有限公司 Building construction quality traceability management method and system

Similar Documents

Publication Publication Date Title
CN104597878A (en) Controller time synchronizing method of industrial control system
EP2770678A1 (en) Clock synchronization method and system in 1588-2008 protocol
CN101478358B (en) Method and device for optimized time synchronization correction
US9906320B2 (en) Industrial network apparatus and data communication method
WO2012177459A3 (en) End-to-end delay management for distributed communications networks
CN104918319A (en) Clock synchronization simplified information exchange method applied to wireless sensor network
JP2018506232A5 (en)
WO2015119895A8 (en) Bandwidth and latency estimation in a communication network
MX2017002121A (en) A method and system for supporting distributed relay control protocol (drcp) operations upon misconfiguration.
CN103366714B (en) splicing display device synchronous display method and system
MX351201B (en) A method and system for synchronizing with neighbor in a distributed resilient network interconnect (drni) link aggregation group.
JP2015503887A5 (en)
WO2013180613A3 (en) Methods and nodes for improved estimation of available path capacity of a data transfer path
CN104243079A (en) Microsecond clock synchronization method for real-time Ethernet
CN102869087A (en) Hardware time synchronization implementation method for industrial Internet of things chip
CN103995471A (en) Clock synchronization method of distributed control system
EP3849145A3 (en) High speed embedded protocol for distributed control system
PH12019502728A1 (en) Paging method, terminal device, and network device
CN105262555A (en) Time synchronization method, programmable logic device, single board and network element
CN104184534A (en) Method for achieving accuracy of transparent clock path delay of IEEE1588 protocol
GB2565961A (en) Synchronous waveform clock synchronization without a system controller
GB2523862A (en) Methods and systems for estimating network performance
WO2020119214A1 (en) Synchronization method and device, network element, and computer storage medium
CN104038554A (en) FPGA-based high-speed data acquisition and communication method and communication equipment for power system
CN108199822B (en) Bus synchronization method and device of EtherCAT-NCUC

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150506