CN101488016B - PLC module-grade time-setting method based on GPS - Google Patents

PLC module-grade time-setting method based on GPS Download PDF

Info

Publication number
CN101488016B
CN101488016B CN2009100250398A CN200910025039A CN101488016B CN 101488016 B CN101488016 B CN 101488016B CN 2009100250398 A CN2009100250398 A CN 2009100250398A CN 200910025039 A CN200910025039 A CN 200910025039A CN 101488016 B CN101488016 B CN 101488016B
Authority
CN
China
Prior art keywords
module
time
plc
gps
programmable logic
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
CN2009100250398A
Other languages
Chinese (zh)
Other versions
CN101488016A (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.)
State Grid Corp of China SGCC
Nari Technology Co Ltd
State Grid Electric Power Research Institute
Original Assignee
Nanjing NARI Group Corp
State Grid Electric Power Research Institute
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 Nanjing NARI Group Corp, State Grid Electric Power Research Institute filed Critical Nanjing NARI Group Corp
Priority to CN2009100250398A priority Critical patent/CN101488016B/en
Publication of CN101488016A publication Critical patent/CN101488016A/en
Application granted granted Critical
Publication of CN101488016B publication Critical patent/CN101488016B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Abstract

The invention discloses a time setting method for PLC module level based on GPS, in particular to a time setting process method for module level of a system formed by each module of a programmable logic controller. The method comprises the following steps: a sub-synchronous signal (an idle contact) output by a GPS device is accessed into each module of the programmable logic controller (PLC); after the signal is subjected to high-speed optical-coupling isolation and other anti-interference treatments in each module, external interrupt of a microprocessor of each module is introduced to complete time setting of second and millisecond among the modules of the system through an interrupt service routine of the microprocessor; meanwhile, a CPU module in the system transmits a time-setting message to each I/O module through serial bus interval fixed time so as to complete time-setting for year, month, day, hour and minute of each module. Two modes of time setting are matched with each other, so that accuracy, precision and reliability of GPS time setting can be improved.

Description

A kind of PLC module-grade setting means based on GPS
Technical field
This invention belongs to the programmable logic controller (PLC) technical field.Can be applied to the control system that Monitoring and Control System for Hydropower Station, sluice control system, key water control project supervisory system and waterworks monitoring system or the like every profession and trade is made up by programmable logic controller (PLC) (PLC) in conjunction with programmable logic controller (PLC) (PLC).
Background technology
Along with the raising of development of auto-control technology and automatization level, programmable logic controller (PLC) (PLC) more and more has been applied in each field that automatization level is had relatively high expectations that comprises the power station.In the monitoring and control system that make up by programmable logic controller (PLC) (PLC), utilize the branch of GPS (GPS) satellite transmission/second synchronizing signal, provide accurate synchronizing clock signals to monitoring and control system, for intelligent modular unit equipment such as monitoring and the failure wave-recording of control system and logout provide precise time.With user friendly production management, crash analysis etc.How to finish more accurately each module equipment in the system to the time, be the problem that PLC manufacturer must consider and solve.
Domestic at present, external Programmable Logic Controller to the time mode, adopt GPS branch synchronizing signal (hardware idle contact signal) only to insert the CPU module mostly, utilize the CPU internal interrupt finish to the CPU module to the time, and for other I/O module, the CPU fixed interval time by universal serial bus to each I/O module send to the time message, finish each I/O module to the time function.
Summary of the invention
The GPS that the object of the present invention is to provide a kind of PLC of raising module-grade reliably to the time technology, have the CPU module each I/O module is taked communication packet carry out GPS to the time the basis on, GPS branch synchronizing signal (hardware idle contact signal) is inserted each I/O module, the GPS that finishes each I/O module-grade to the time function, with the communication of CPU module to the time match, strengthen GPS to the time accuracy and reliability.
In order to reach above goal of the invention, the present invention adopts following technical scheme, may further comprise the steps,
The output of GPS device divides the CPU module of programmable logic controller (PLC) (PLC) in synchronizing signal (the hardware idle contact signal) connecting system, simultaneously by each I/O module of programmable logic controller (PLC) (PLC) in the core bus connecting system, in each module, all adopt the mode of microprocessor external interrupt finish the second of module-grade, Millisecond to the time.
The CPU module of In-System Programmable logic controller (PLC) every the set time (as 3~5 minutes etc.) also can by universal serial bus with send to the time message mode to each I/O module carry out to the time.
In each module of programmable logic controller (PLC) (PLC) microprocessor to the time interrupt service routine priority height, when to the time signal input, the interrupt routine operation, time is handled, its processing mode is: judge this second of time>30, then divide+1, second and millisecond zero clearing; Judge this second of time<30, then divide not change, second and millisecond zero clearing.Date grades handles in other programs according to respective rule.
The CPU module of In-System Programmable logic controller (PLC) send to the time message program feature be, the fixed interval time, the CPU module simultaneously to each I/O module send to the time message, message format is followed the CAN communications protocol, after each I/O module receives corresponding temporal information, the time in the module that upgrades in time.
The GPS that a kind of high accuracy, high reliability module-grade be provided for supervisor control to the time technology, the present invention invented the module-grade GPS of containing following each several part content to the time technology.The principle schematic of this summary of the invention scheme is seen shown in the Figure of description one, CPU module and each I/O module all have independently microprocessor and corresponding auxiliary circuit, GPS divide to the time signal (idle contact) through converter (module inside) be converted to open into to the time signal, insert each module after signal flow see Figure of description two for details to synoptic diagram.Open into to the time signal insert CPU module and each I/O module by core bus, each module inside all isolates the microprocessor external interrupt that corresponding module is introduced in the back by high speed photo coupling, after interrupt handling routine was judged the current time, second, millisecond are handled, the microprocessor reclocking, keep second, microsecond unanimity between all modules, finish module-grade to the time function.The interrupt handling routine FB(flow block) sees Figure of description three for details.Simultaneously each I/O module receive communication that the CPU module sends over by universal serial bus to the time message, finish the date between all modules, hour and the unification that divides to the time.Above-mentioned two kinds to the time mode work in coordination, guarantee to the time accurately with reliable.
The beneficial effect that the present invention has is: each module communication of conventional P LC to the time mode the basis on increased hard contact insert each I/O module to the time mode, can guarantee each module GPS to the time accuracy and reliability, for intelligent modular unit equipment such as monitoring and the failure wave-recording of control system and logout provide precise time.For the production management that makes things convenient for users, crash analysis etc. provide reliably to the time powerful guarantee.
Description of drawings
Fig. 1 be each module GPS of PLC to the time principle of work and power synoptic diagram;
Fig. 2 for GPS divide to the time signal (idle contact) insert each module after signal flow to synoptic diagram;
Fig. 3 is a microprocessor interrupt service routine FB(flow block).
Embodiment
In the process of implementing, can provide the idle contact signal as gps signal receiver, the GPS branch that can directly insert the PLC backboard to respective signal to the time signal terminal.Can not provide the idle contact signal as gps signal receiver, can adopt corresponding conversion equipment the conversion of signals of GPS receiver be the GPS that inserts the PLC backboard after the idle contact mode divide to the time signal terminal.Specific implementation process is as follows: by GPS device output branchs synchronizing signal (hardware idle contact signal) pass through converter (module inside) be converted to open into to the time signal, employing+5V power supply is its working power, open to the time signal connecting system in the CPU module of programmable logic controller (PLC) (PLC), pass through each I/O module of programmable logic controller (PLC) (PLC) in the core bus connecting system simultaneously, this open to the time signal in each module, all take high speed photo coupling to isolate, take hardware handles measures such as filtering simultaneously, introduce each module internal microprocessor external interrupt then, the second of taking the mode of Interrupt Process to finish module-grade, Millisecond to the time, thereby the time that guarantees each module is in second, the unanimity of the time of Millisecond in high precision.In each module of programmable logic controller (PLC) (PLC) microprocessor to the time interrupt service routine priority height, when to the time signal input, the interrupt routine operation, time is handled, its processing mode is: judge this second of time>30, then divide+1, second and millisecond zero clearing; Judge this second of time<30, then divide not change, second and millisecond zero clearing.Date grades handles in other programs according to respective rule.In the simultaneity factor CPU module of programmable logic controller (PLC) (PLC) every the set time (as 3~5 minutes etc.) also can by universal serial bus with send to the time message mode to each I/O module carry out to the time, its mode be the CPU module simultaneously to each I/O module send to the time message, message format is followed the CAN communications protocol, after each I/O module receives corresponding temporal information, the interior time of the module that upgrades in time, guarantee the accurate unanimity of time-division date of each module of system.Two kinds to the time mode cooperatively interact, the GPS that significantly improves each module of PLC to the time accurately and reliably, the application of the time accuracy being had relatively high expectations for the high resolving power of SOE amount time keeping in the PLC application process etc. provides the time reference of high precision high reliability, is the indispensability guarantee that numerous PLC user carries out work such as production management, crash analysis easily and reliably.

Claims (5)

1. PLC module-grade setting means based on GPS, it is characterized in that, may further comprise the steps, the output of GPS device divides the CPU module of programmable logic controller (PLC) (PLC) in the synchronizing signal connecting system, simultaneously by each I/O module of programmable logic controller (PLC) (PLC) in the core bus connecting system, in each module, all adopt the mode of microprocessor external interrupt finish the second of module-grade, Millisecond to the time.
2. a kind of PLC module-grade setting means according to claim 1 based on GPS, it is characterized in that, the CPU module of programmable logic controller (PLC) (PLC) every the set time also can by universal serial bus with send to the time message mode to each I/O module carry out to the time.
3. a kind of PLC module-grade setting means based on GPS according to claim 2 is characterized in that the described set time is 3 minutes to 5 minutes.
4. a kind of PLC module-grade setting means based on GPS according to claim 1 is characterized in that, to the time step further comprise, judge this second of time>30, then divide+1, second and the millisecond zero clearing; Judge this second of time<30, then divide not change, second and millisecond zero clearing.
5. a kind of PLC module-grade setting means based on GPS according to claim 2 is characterized in that message format is followed the CAN communications protocol.
CN2009100250398A 2009-02-13 2009-02-13 PLC module-grade time-setting method based on GPS Active CN101488016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100250398A CN101488016B (en) 2009-02-13 2009-02-13 PLC module-grade time-setting method based on GPS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100250398A CN101488016B (en) 2009-02-13 2009-02-13 PLC module-grade time-setting method based on GPS

Publications (2)

Publication Number Publication Date
CN101488016A CN101488016A (en) 2009-07-22
CN101488016B true CN101488016B (en) 2010-12-08

Family

ID=40890935

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100250398A Active CN101488016B (en) 2009-02-13 2009-02-13 PLC module-grade time-setting method based on GPS

Country Status (1)

Country Link
CN (1) CN101488016B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101929823B (en) * 2010-03-09 2013-01-02 成都市猎户座科技有限责任公司 Air-ground antiradar weapon precision-guidance system
CN103728963A (en) * 2014-01-24 2014-04-16 江苏省秦淮河水利工程管理处 Sluice gate in-situ monitoring device
CN105281859B (en) * 2014-07-01 2018-03-23 福建吉星智能科技股份有限公司 A kind of precision time service method based on GPS
CN105049146A (en) * 2015-06-25 2015-11-11 南京南瑞集团公司 Accurate clock synchronization time-setting method for large PLC system
CN112558685B (en) * 2020-12-11 2024-05-10 南京四方亿能电力自动化有限公司 Method for synchronizing time between power distribution terminal modules

Also Published As

Publication number Publication date
CN101488016A (en) 2009-07-22

Similar Documents

Publication Publication Date Title
CN101488016B (en) PLC module-grade time-setting method based on GPS
CN105450323B (en) A kind of SOE time synchronization control methods and system
CN201422028Y (en) Substation measure and control device realizing precise time setting function of IEEE1588
CN204270025U (en) There is the clock system of IRIG-B time adjustment function
CN102913278A (en) Modularization-based universal intelligent coal mine underground belt transport monitoring and controlling system
CN100470976C (en) Integrated automation converting station debugging apparatus
CN102062825B (en) Direct current protection test device and test method of direct current protector
CN104767443A (en) Servo motor control system
CN103699029A (en) Energy consumption data acquisition terminal
CN202435421U (en) Multifunctional HART (highway addressable remote transducer) communication interface
CN103034206A (en) Industrial data collection system adopting late binding communication plug-in unit
CN203673286U (en) Low-power consumption, high-precision punctuality device
CN201867799U (en) Analog quantity output module
CN103546485B (en) Network card for DC600V train power supply device
CN107425934B (en) Time synchronization device for intelligent substation on-line monitoring
CN202929431U (en) Embedded type real time numerical control system
CN201328003Y (en) Optical fiber current differential protection device and electric protection device
CN201557123U (en) Device for converting network time signal into direct current time code
CN205539268U (en) Smart power grids light digital relay protection tester
CN202374278U (en) System based on time synchronization network of synchronous digital hierarchy
CN208956061U (en) A kind of multi-mode electrically Force system synchronised clock expanding unit
CN201177643Y (en) Electrical energy meter of digital transforming plant
CN105785185B (en) A kind of intelligent grid relay-protection tester
CN103336176A (en) Intelligent substation phase approval device capable of adaptively receiving FT3 transport protocols
CN205177153U (en) Automatic monitoring system of dam

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
ASS Succession or assignment of patent right

Owner name: NANJING NARI CO., LTD. STATE GRID CORPORATION OF C

Free format text: FORMER OWNER: NANJING NARI CO., LTD.

Effective date: 20121119

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20121119

Address after: Nan Shui Road Gulou District of Nanjing city of Jiangsu Province, No. 8 210003

Patentee after: State Grid Electric Power Research Insititute

Patentee after: Nanjing Nari Co., Ltd.

Patentee after: State Grid Corporation of China

Address before: Nan Shui Road Gulou District of Nanjing city of Jiangsu Province, No. 8 210003

Patentee before: State Grid Electric Power Research Insititute

Patentee before: Nanjing Nari Co., Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20171107

Address after: 211106 Jiangning City, Nanjing Province, the integrity of the road No. 19,

Co-patentee after: NARI Technology Development Co., Ltd.

Patentee after: State Grid Electric Power Research Insititute

Co-patentee after: State Grid Corporation of China

Address before: Nan Shui Road Gulou District of Nanjing city of Jiangsu Province, No. 8 210003

Co-patentee before: Nanjing Nari Co., Ltd.

Patentee before: State Grid Electric Power Research Insititute

Co-patentee before: State Grid Corporation of China