Distributed industrial monitoring device timing system
Technical field
The utility model relates to the timing system of industrial monitoring device, specifically, relates to the timing system of distributed industrial monitoring device.
Background technology
In distributed industrial monitoring device, owing to there are a plurality of industrial monitoring devices that have separate CPU, and each industrial monitoring device frequent nonsynchronous problem of time of occurrence in operational process, therefore synchronous in the time of need carrying out the school to each industrial monitoring device, so that keep each industrial monitoring device consistance in time, thereby guarantee the data sampling of supervising device and the accuracy of control.
At present, it is synchronous when the communication message that the clock of each industrial monitoring device mainly relies on main industrial monitoring device to send carries out the school to it, owing to exist uncertain during the communication message school, and be difficult to accurately carry out the time delay error compensation of transmission course constantly in the communication message school, simultaneously the load capacity of each industrial monitoring device self also has nothing in common with each other, thus the accuracy when greatly reducing the message school.Above-mentioned many uncertain factors make that the timing system clocking error between existing distributed industrial monitoring device is bigger.And, because existing computed in software backoff algorithm is very complicated, even constantly transmission course is compensated in the message school, also can additionally take very big cpu resource, cause the CPU expense to increase, make in the message school constantly when transmission course compensated the method for accuracy when improving the school and be not suitable for the school of distributed industrial monitoring device.
The utility model content
The purpose of this utility model is to provide a kind of distributed industrial monitoring device timing system, under the prerequisite that does not increase the cpu resource expense, solve the stationary problem of each industrial monitoring device clock, and the accuracy of raising timing system, target logical consistency when guaranteeing each industrial monitoring device information improves the monitoring precision of industrial monitoring device.
To achieve these goals, consider that distributed industrial monitoring device relates to band GPS and is not with two situations of GPS, the utility model has proposed following two kinds of technical schemes respectively at both of these case:
Scheme one (not being with GPS)
Distributed industrial monitoring device timing system, comprise that a main industrial monitoring device and at least one are from the industrial monitoring device, it is characterized in that, described distributed industrial monitoring device timing system also is provided with the pulse per second (PPS) transmitter, from industrial monitoring device pulse per second (PPS) receiver and light spacer assembly, each is connected from industrial monitoring device pulse per second (PPS) receiver with one by a light spacer assembly from industrial monitoring device CPU, main industrial monitoring device CPU links to each other from industrial monitoring device CPU with each respectively by the system for field bus, and main industrial monitoring device CPU also directly links to each other with the pulse per second (PPS) transmitter, and the pulse per second (PPS) transmitter is connected from industrial monitoring device pulse per second (PPS) receiver with each by the pulse per second (PPS) bus.
Scheme two (band GPS)
Distributed industrial monitoring device timing system, comprise gps antenna, gps receiver, main industrial monitoring device and at least one are from the industrial monitoring device, it is characterized in that, described distributed industrial monitoring device timing system also is provided with a pulse per second (PPS) transmitter, a main industrial monitoring device pulse per second (PPS) receiver, at least one is from industrial monitoring device pulse per second (PPS) receiver, one first smooth spacer assembly, one second smooth spacer assembly and at least one the 3rd smooth spacer assembly, each is connected from industrial monitoring device pulse per second (PPS) receiver with one by one the 3rd smooth spacer assembly from industrial monitoring device CPU, main industrial monitoring device CPU links to each other with main industrial monitoring device pulse per second (PPS) receiver by the second smooth spacer assembly, main industrial monitoring device CPU also links to each other from industrial monitoring device CPU with each respectively by the system for field bus, gps antenna, gps receiver, the first smooth spacer assembly, the pulse per second (PPS) transmitter connects successively, the pulse per second (PPS) transmitter again by the pulse per second (PPS) bus respectively with main industrial monitoring device pulse per second (PPS) receiver, each links to each other from industrial monitoring device pulse per second (PPS) receiver.
So-called pulse per second (PPS) bus is meant the system for field bus that is exclusively used in the transmission pps pulse per second signal.
Design concept of the present utility model: on the basis of existing technology, keep each industrial monitoring device clock in year, month, day, the time, divide, second the school time mode constant, transmit pps pulse per second signal by increasing the pulse per second (PPS) bus, each industrial monitoring device CPU is after receiving pps pulse per second signal, according to pps pulse per second signal revise the millisecond of self cpu clock, all industrial monitoring device cpu clocks are consistent on the millisecond position, and guarantee that millisecond is all the time between 100 milliseconds to 900 milliseconds, thereby avoid the carry problem that millisecond arrives second, so that solve the clocking error that brings because of carry algorithm complexity.
On the basis of above-mentioned design concept, two kinds of situations that relate in conjunction with present technique, in the industrial monitoring device with GPS not, pps pulse per second signal is sent by main industrial monitoring device CPU; In the industrial monitoring device of band GPS, pps pulse per second signal is sent by gps receiver by gps antenna.
The utility model design is ingenious, simple in structure, and accurate during the school, target logical consistency in the time of can guaranteeing each industrial monitoring device information effectively is for systematic analysis is provided convenience.The utility model is mainly used in the industrial monitoring system, has very high practical value.
Description of drawings
Fig. 1 is the system chart during not with GPS in the utility model.
Fig. 2 is the system chart when being with GPS in the utility model.
Embodiment
The utility model is described in further detail below by coming for example.
Embodiment one
As shown in Figure 1, the distributed industrial monitoring device timing system of no GPS, comprise a main industrial monitoring device CPU, pulse per second (PPS) transmitter, and at least one from industrial monitoring device CPU, at least one light spacer assembly and at least one from industrial monitoring device pulse per second (PPS) receiver, each all is connected from industrial monitoring device pulse per second (PPS) receiver with one by a light spacer assembly from industrial monitoring device CPU.Main industrial monitoring device CPU and being connected: one from industrial monitoring device CPU by following two lines realization. main industrial monitoring device CPU directly is communicated with from industrial monitoring device CPU with each by the system for field bus, thereby the communication message that main industrial monitoring device CPU sends is arrived from industrial monitoring device CPU through the system for field bus, realize that all industrial monitoring device CPU are year, month, day, hour, min, synchronous on second; Two. main industrial monitoring device CPU is with after the pulse per second (PPS) transmitter is connected, be communicated with from industrial monitoring device pulse per second (PPS) receiver with each by the pulse per second (PPS) bus, at this on the way, main industrial monitoring device CPU utilizes the pulse per second (PPS) transmitter to send pps pulse per second signal, and by arriving all from industrial monitoring device CPU from industrial monitoring device pulse per second (PPS) receiver, light spacer assembly, realize all industrial monitoring device CPU on millisecond synchronously.In total system, utilize the pulse per second (PPS) bus of the look-at-me pin of each industrial monitoring device CPU as system, when main industrial monitoring device cpu clock millisecond is positioned at 100-900ms, send pps pulse per second signal by main industrial monitoring device CPU by the pulse per second (PPS) transmitter, respectively after receiving the pulse per second (PPS) look-at-me, revise the millisecond of own clock, make each millisecond consistent with the millisecond of main industrial monitoring device cpu clock from industrial monitoring device cpu clock from industrial monitoring device CPU.
When going between the 100-900ms, the time millisecond that the master of system industrial monitoring device cpu clock sends sends communication message when being used for the school by communication port, respectively after receiving communication message, revise year, month, day, hour, min, the second of own clock from industrial monitoring device CPU, but do not revise millisecond, the modification of millisecond is by the pps pulse per second signal decision of system.
Embodiment two
As shown in Figure 2, the distributed industrial monitoring device timing system of band GPS, comprise gps antenna, gps receiver, pulse per second (PPS) transmitter, main industrial monitoring device CPU, main industrial monitoring device pulse per second (PPS) receiver, the first smooth spacer assembly, the second smooth spacer assembly, and at least one is from industrial monitoring device CPU, at least one the 3rd smooth spacer assembly with at least one is from industrial monitoring device pulse per second (PPS) receiver.Gps antenna, gps receiver, the first smooth spacer assembly, the pulse per second (PPS) transmitter connects successively, the pulse per second (PPS) transmitter by the pulse per second (PPS) bus respectively with main industrial monitoring device pulse per second (PPS) receiver, each links to each other from industrial monitoring device pulse per second (PPS) receiver, main industrial monitoring device pulse per second (PPS) receiver then is connected with main industrial monitoring device CPU by the second smooth spacer assembly, each is connected from industrial monitoring device CPU with one by one the 3rd smooth spacer assembly respectively from industrial monitoring device pulse per second (PPS) receiver, and main industrial monitoring device CPU also links to each other from industrial monitoring device CPU with each by the system for field bus.
In total system, utilize the pulse per second (PPS) bus of the look-at-me pin of each industrial monitoring device CPU as system, when main industrial monitoring device cpu clock millisecond is positioned at 100~900ms, system sends pps pulse per second signal by gps antenna by the pulse per second (PPS) transmitter, and pps pulse per second signal transferred to main industrial monitoring device CPU and all respectively from industrial monitoring device CPU by the pulse per second (PPS) bus, main industrial monitoring device pulse per second (PPS) receiver and from industrial monitoring device pulse per second (PPS) receiver after receiving pps pulse per second signal, refill through the light spacer assembly and to change Transistor-Transistor Logic level into and to send main industrial monitoring device CPU respectively to and from industrial monitoring device CPU, all industrial monitoring device CPU revise the millisecond of own clock after receiving the pulse per second (PPS) look-at-me, the millisecond of each industrial monitoring device cpu clock is realized synchronously.Because all industrial monitoring device CPU remain on millisecond position, therefore avoid millisecond carry problem to second, thereby solved because of the complicated problem that causes clocking error of carry algorithm.
In the millisecond position of the master of system industrial monitoring device cpu clock between 100-900ms the time, main industrial monitoring device CPU sends communication message when being used for the school by communication port, respectively after receiving communication message, revise year, month, day, hour, min, the second of own clock from industrial monitoring device CPU, but do not revise millisecond, the modification of millisecond is by the pps pulse per second signal decision of system.