Method for sequentially recording events in distributed control system
The invention discloses a method for sequentially recording events in a distributed control system, and belongs to the technical field of distributed control systems. According to the method, an internal clock of the distributed control system is synchronized by a satellite clock of a global positioning system, phenomena that events recorded by a sequence of event recording system are omitted, and the sequence of event occurrence time recorded by the sequence of event recording system is disordered and the like are eliminated, relative time errors of the events of the sequence of event recording system are reduced, the capacity of the sequence of event recording system and real-time of acquiring and processing the events of the sequence of event recording system are improved, the accuracy of analyzing accidents by the distributed control system is further improved, and the field requirement of the distributed control system is met. 1. In a decentralized control system sequence of event recording method, characterized in that includes: digital input acquisition modules to the channel acquisition; through the digital input data processing module obtaining digital input acquisition module data, the digital input data to the processing module of the time stamp in the data, and the data transmission time stamp is added to the sequence of event recording system recording event processing module; sequence of event recording system event processing module received data assembling time, sequence of event recording system event processing module for receiving the synchronization signal of the upper, and sends the data to a host computer; a host computer the use of the global satellite positioning system receiver as a common clock source transmits a synchronization signal. 2. Decentralized control system method for sequence of event recording according to Claim 1, characterized in that the digital input acquisition module with a plurality of, each digital input acquisition module are provided with a plurality of channel at the same time recording a plurality of event recording system event, the response time of each channel in the nanosecond level. 3. Decentralized control system method for sequence of event recording according to Claim 1, characterized in that the digital input data processing module per millisecond digital input acquisition modules to the one-time scanning, in order to guarantee the sequence of event recording system event resolution is 1 millisecond; digital data processing module the collected digital input acquisition module of the channel data stored in the buffer, and comparing it with the previous acquisition to compare the channel data, if not the same, the data processing module of the data channel related information, the current millisecond count to the sequence of event recording system recording event processing module. 4. Decentralized control system method for sequence of event recording according to Claim 1, characterized in that sequence of event recording system recording event processing module through the bus every ten seconds to the sequence of event recording system recording event processing module carries out a synchronization, in order to reduce the time cumulative error. 5. Decentralized control system method for sequence of event recording according to Claim 1, characterized in that the global satellite positioning system receiver to receive global satellite positioning system of the second pulse, the second pulse to 10 obtained after frequency dividing processing 10 second pulse, the 10 second pulse is sent to the sequence of event recording system recording event processing module; sequence of event recording system recording event processing module receives the 10 second pulse will be zero after the self-timer. 6. Decentralized control system method for sequence of event recording according to Claim 5, characterized in that sequence of event recording system recording event processing module receives the time pulse recorded as 1st time; Sequence of event recording system recording event processing module receiving a time pulse, the sequence of event recording system recording event processing module in a reset GPS, GPS judges whether it is the main mode of operation, if it is, to the GPS port to output the high level signal, the 10 milliseconds in the thread, 5 after cycle, GPS port to write low-level signal; the sequence of event recording system when scanning, GPS counting value is ten times that of the 2nd time; Digital data processing module receives the sequence of event recording system recording event processing module 10 second synchronous pulse to enter an interrupt, arranging the mark position, obtaining flag bit will be zero after counting millisecond of GPS, millisecond of GPS time counting is 3rd; If time minus 2nd 3rd time is greater than 3000 milliseconds, the standard time is 1st time, 10 seconds, 3rd time to superpose; If time is greater than 2nd 3rd time minus 1000 milliseconds, the 1st time minus the standard for 10 seconds plus 3rd time; Otherwise, standard time is equal to 3rd 1st time with time. 7. Decentralized control system method for sequence of event recording according to Claim 2, characterized in that each digital input acquisition module with 16 a sequence of event recording system channel; each of the sequence of event recording system belt 15 a digital input acquisition module, a sequence of event recording system belt 240 a channel, at the same time recording 240 event. 8. Decentralized control system method for sequence of event recording according to Claim 1, characterized in that digital data processing module adopts ARM7 as a microcontroller, using a crystal oscillator.