A kind of oil and gas pipes SCADA system data communication break-make method of real-time
Technical field
The present invention relates to oil and gas pipes SCADA system technical field, in particular to a kind of oil and gas pipes SCADA systems
System data communication break-make method of real-time.
Background technology
Current oil and gas pipes using data acquisition analysis system (SCADA) complete oil and gas pipes yard Centralized Monitoring,
Under the pattern of management and running, through the development and progress of technology, monitoring, control and scheduling at present to oil and gas pipes can led
Regulation and control center and standby regulation and control center complete.In this operating mode, it is desirable to oil and gas pipes SCADA system will can be easy to operation,
The information and data of the yard station control system (SCS) of management can be automatically provided to scheduling, operation, operation and the dimension at regulation and control center
Shield personnel, so that technology, administrative staff have found in time and process produced problem in pipeline production run, it is ensured that oil and gas pipes are pacified
Entirely, steadily, efficient operation.
In the past the normal SCADA system for being arranged on regulation and control center of the heart channel of Hang-Shaoyin cannot scan and update oil and gas pipes station in regulation and control
Station control system information and data phenomenon, when that happens, regulation and control center just cannot monitoring station station control system letter
Breath and data, and regulate and control center SCADA system more due to cannot Monitoring Data transmission on off operating mode, cause regulation and control center
SCADA system loses the ability of the remote monitoring, operation operation and management and running to oil and gas pipes yard station control system, makes oil
Feed channel is in state out of control.
At present, the subject matter that oil and gas pipes regulation and control center SCADA system occurs in the data transmission is as follows:
1st, in station control system programmable logic controller (PLC) (PLC) repeatedly breaks down, and causes station control system and tune
The picture on operator workstation and data in the SCADA system of control center cannot refresh, and now, regulate and control center SCADA system
Cannot acquisition station station control system data and information, cannot more assign operational order to station control system, until to station control
After PLC in system processed is overhauled and debugged and finish, recover data and update simultaneously to re-start data transfer to regulation and control center;
2nd, there is station control system to interrupt with the data communication of regulation and control center SCADA system, now, regulate and control center SCADA systems
System cannot acquisition station station control system data and information, cannot more assign operational order to station control system, meanwhile, regulation and control
Center is affected with all communication forms of yard, including the system such as industrial television, dispatching telephone, regulation and control center more without
Method notifies that in time yard carries out corresponding emergency processing, can solve after communication recovers automatically.
Therefore, oil and gas pipes regulation and control center SCADA system will affect oil in the data transmission once there are the problems referred to above
The safety of feed channel, cannot also ensure oil-gas pipeline safety, steady, Effec-tive Function, the safe operation band of the oil supply feed channel that is bound to
Carry out hidden danger, injury, the loss of property of Field Force and equipment are caused sometimes.
If oil and gas pipes SCADA system produced problem in data transmission procedure can be found early, and carry out in time
Process, then for oil and gas pipes SCADA system, can effectively prevent the safety that gas pipeline is present in operation hidden
Suffer from.Therefore, oil and gas pipes SCADA system communication break-make monitoring is very important, and can effectively improve oil and gas pipes SCADA systems
Security, reliability, the stability of system operation.
The content of the invention
To solve the above problems, it is an object of the invention to provide a kind of oil and gas pipes SCADA system data communication break-make
Method of real-time, by clock method the real-time monitoring of oil and gas pipes SCADA system data communication break-make is realized, and can be according to need
Manual detection is carried out at any time.
The invention provides a kind of oil and gas pipes SCADA system data communication break-make method of real-time, the method includes
Following steps:
Step 1, the operating personnel of test system start break-make monitoring order, and goal systems is receiving test system break-make
After monitoring signals, the clock of goal systems is sent in seconds to test system, test system receives goal systems
After clock, while starting the timer of 20 seconds;
Step 2, test system gathers the clock source signals of the 1st second and the 10th second, and compares the 1st second and the 10th second and gathered
Whether the clock source signals value for arriving is consistent:
If collect the 1st second of test system and the 10th second clock source signals value are inconsistent, represent that communication is normal, 13 seconds
Afterwards, test system proceeds step 2;
If the 1st second, the expression communication failure consistent with the 10th second clock source signals value that test system is collected, carries out step
3;
Step 3, triggers a communication failure counter, counts once, and after 20 seconds, test system proceeds step 2;
Meanwhile, whether test system judges communication failure counter more than 2, and judges the 1st second and the 10th second to be collected
Clock source signals value it is whether consistent:
After if test system is detected 1 time or 2 communication failures communicate, the clock source signals value that test system is collected
Inconsistent, then communication failure counter automatically resets;
If test system detects continuous 3 communication failures, the clock source signals value that test system is collected is consistent, then exist
Show that a communication disruption is reported to the police on test system operator workstation, while determine whether communication recovers, if communication recovery is just
Step 4 is then carried out after often, conversely, communication disruption alarm count device is counted to continue to determine whether communication recovers after Jia one;
Step 4, communication disruption alarm count device and communication failure counter automatically reset, while test system issues stopping
With the order of goal systems communication disruption.
Used as further improvement of the invention, the method includes:Regulation and control center SCADA system is in yard station control system
PLC communication break-make monitoring method;PLC in yard station control system is supervised to the communication break-make for regulating and controlling center SCADA system
Survey method;Communication break-make monitoring methods of the PLC in yard station control system to the operator workstation in station control system;
Regulation and control center SCADA system is concrete such as to the communication break-make monitoring method of the PLC in yard station control system
Under:
Step A1, the operating personnel for regulating and controlling center SCADA system start break-make monitoring order, in yard station control system
PLC after regulation and control center SCADA system break-make monitoring signals are received, by the clock of the PLC in yard station control system with the second
Send to regulation and control center SCADA system for unit, regulation and control center SCADA system receives the PLC's in yard station control system
After clock, while starting the timer of 20 seconds;
Step A2, regulation and control center SCADA system gathers the clock source signals of the 1st second and the 10th second, and compares the 1st second and the
Whether the clock source signals value for being collected for 10 seconds is consistent:
If collect the 1st second of regulation and control center SCADA system and the 10th second clock source signals value are inconsistent, expression communicates just
Often, after 13 seconds, regulation and control center SCADA system proceeds step A2;
If, the expression communication event consistent with the 10th second clock source signals value in the 1st second that regulation and control center SCADA system is collected
Barrier, carries out step A3;
Step A3, trigger a communication failure counter, count once, after 20 seconds, regulation and control center SCADA system continue into
Row step A2;
Meanwhile, whether regulation and control center SCADA system judges communication failure counter more than 2, and judges the 1st second and the 10th second
Whether the clock source signals value for being collected is consistent:
If after regulation and control center SCADA system is detected 1 time or 2 communication failures communicate, regulation and control center SCADA system is adopted
The clock source signals value for collecting is inconsistent, then communication failure counter automatically resets;
If regulation and control center SCADA system detects continuous 3 communication failures, regulate and control that center SCADA system collects when
Clock source signal value is consistent, then show that a communication disruption is reported to the police on regulation and control center SCADA system operator workstation, while really
Whether fixed communication recovers, and step A4 is carried out if after communication recovery is normal, conversely, communication disruption alarm count device is counted after Jia one
Continue to determine whether communication recovers;
Step A4, communication disruption alarm count device and communication failure counter automatically reset, while regulating and controlling center SCADA systems
System issues the order for stopping interrupting with the plc communication in yard station control system;
PLC in the yard station control system is concrete such as to the communication break-make monitoring method for regulating and controlling center SCADA system
Under:
Step B1, the PLC in yard station control system starts break-make monitoring order, and regulation and control center SCADA system is being received
After the PLC break-make monitoring signals arrived at a station in the control system of station, the clock of regulation and control center SCADA system is sent in seconds
PLC into yard station control system, the PLC in yard station control system is received after the clock of regulation and control center SCADA system,
Start the timer of 20 seconds simultaneously;
Step B2, the PLC in yard station control system gathers the clock source signals of the 1st second and the 10th second, and compares the 1st second
It is whether consistent with the clock source signals value that the 10th second is collected:
If collect the 1st second of the PLC in yard station control system and the 10th second clock source signals value are inconsistent, represent logical
Letter is normal, and after 13 seconds, test system proceeds step B2;
If, the expression communication consistent with the 10th second clock source signals value in the 1st second that the PLC in yard station control system is collected
Failure, carries out step B3;
Step B3, trigger a communication failure counter, count once, after 20 seconds, the PLC in yard station control system after
It is continuous to carry out step B2;
Meanwhile, the PLC in yard station control system judges communication failure counter whether more than 2, and judges the 1st second and the
Whether the clock source signals value for being collected for 10 seconds is consistent:
After if the PLC in yard station control system is detected 1 time or 2 communication failures communicate, yard station control system
In the clock source signals values that collect of PLC it is inconsistent, then communication failure counter automatically resets;
If the PLC in yard station control system detects continuous 3 communication failures, the PLC in yard station control system is adopted
The clock source signals value for collecting is consistent, then a communication disruption report is shown on operator workstation in yard station control system
It is alert, while determine whether communication recovers, step B4 is carried out if after communication recovery is normal, conversely, communication disruption alarm count device
Counting continues to determine whether communication recovers after Jia one;
Step B4, communication disruption alarm count device and communication failure counter automatically reset, while yard station control system
In PLC issue stop with regulation and control center SCADA system communication disruption order;
Communication break-make monitoring sides of the PLC in the yard station control system to the operator workstation in station control system
Method is specific as follows:
Step C1, the PLC in yard station control system starts break-make monitoring order, the operator's work in station control system
After the PLC break-make monitoring signals stood in yard station control system is received, by the operator workstation in station control system
Clock sends in seconds the PLC into yard station control system, and the PLC in yard station control system receives stand control system
After the clock of the operator workstation in system, while starting the timer of 20 seconds;
Step C2, the PLC in yard station control system gathers the clock source signals of the 1st second and the 10th second, and compares the 1st second
It is whether consistent with the clock source signals value that the 10th second is collected:
If collect the 1st second of the PLC in yard station control system and the 10th second clock source signals value are inconsistent, represent logical
Letter is normal, and after 13 seconds, the PLC in yard station control system proceeds step C2;
If, the expression communication consistent with the 10th second clock source signals value in the 1st second that the PLC in yard station control system is collected
Failure, carries out step C3;
Step 3, trigger a communication failure counter, count once, after 20 seconds, the PLC in yard station control system after
It is continuous to carry out step C2;
Meanwhile, the PLC in yard station control system judges communication failure counter whether more than 2, and judges the 1st second and the
Whether the clock source signals value for being collected for 10 seconds is consistent:
After if the PLC in yard station control system is detected 1 time or 2 communication failures communicate, yard station control system
In the clock source signals values that collect of PLC it is inconsistent, then communication failure counter automatically resets;
If the PLC in yard station control system detects continuous 3 communication failures, the PLC in yard station control system is adopted
The clock source signals value for collecting is consistent, then a communication disruption report is shown on the operator workstation in yard station control system
It is alert, while determine whether communication recovers, step C4 is carried out if after communication recovery is normal, conversely, communication disruption alarm count device
Counting continues to determine whether communication recovers after Jia one;
Step C4, communication disruption alarm count device and communication failure counter automatically reset, while yard station control system
In PLC issue stop with station control system in operator workstation communication disruption order.
Beneficial effects of the present invention are:
Realize that oil and gas pipes SCADA system data communication break-make is monitored by clock method, and carry out at any time as needed
Manual detection.
Description of the drawings
Fig. 1 is a kind of oil and gas pipes SCADA system data communication break-make method of real-time described in the embodiment of the present invention
Schematic flow sheet.
Specific embodiment
Below by specific embodiment and combine accompanying drawing the present invention is described in further detail.
As shown in figure 1, a kind of oil and gas pipes SCADA system data communication break-make real-time monitoring described in the embodiment of the present invention
Method, the method comprises the steps:
Step 1, the operating personnel of test system start break-make monitoring order, and goal systems is receiving test system break-make
After monitoring signals, the clock of goal systems is sent in seconds to test system, test system receives goal systems
After clock, while starting the timer of 20 seconds;
Step 2, test system gathers the clock source signals of the 1st second and the 10th second, and compares the 1st second and the 10th second and gathered
Whether the clock source signals value for arriving is consistent:
If collect the 1st second of test system and the 10th second clock source signals value are inconsistent, represent that communication is normal, 13 seconds
Afterwards, test system proceeds step 2;
If the 1st second, the expression communication failure consistent with the 10th second clock source signals value that test system is collected, carries out step
3,
Step 3, triggers a communication failure counter, counts once, and after 20 seconds, test system proceeds step 2;
Meanwhile, whether test system judges communication failure counter more than 2, and judges the 1st second and the 10th second to be collected
Clock source signals value it is whether consistent:
After if test system is detected 1 time or 2 communication failures communicate, the clock source signals value that test system is collected
Inconsistent, then communication failure counter automatically resets;
If test system detects continuous 3 communication failures, the clock source signals value that test system is collected is consistent, then exist
Show that a communication disruption is reported to the police on test system operator workstation, while determine whether communication recovers, if communication recovery is just
Step 4 is then carried out after often, conversely, communication disruption alarm count device is counted to continue to determine whether communication recovers after Jia one;
Step 4, communication disruption alarm count device and communication failure counter automatically reset, while test system issues stopping
With the order of goal systems communication disruption.
Specifically, the method includes:Communication break-make of the regulation and control center SCADA system to the PLC in yard station control system
Monitoring method;Communication break-make monitoring methods of the PLC in yard station control system to regulation and control center SCADA system;Control at yard station
Communication break-make monitoring methods of the PLC in system processed to the operator workstation in station control system.
Wherein,
Regulation and control center SCADA system is specific as follows to the communication break-make monitoring method of the PLC in yard station control system:
Step A1, the operating personnel for regulating and controlling center SCADA system start break-make monitoring order, in yard station control system
PLC after regulation and control center SCADA system break-make monitoring signals are received, by the clock of the PLC in yard station control system with the second
Send to regulation and control center SCADA system for unit, regulation and control center SCADA system receives the PLC's in yard station control system
After clock, while starting the timer of 20 seconds;
Step A2, regulation and control center SCADA system gathers the clock source signals of the 1st second and the 10th second, and compares the 1st second and the
Whether the clock source signals value for being collected for 10 seconds is consistent:
If collect the 1st second of regulation and control center SCADA system and the 10th second clock source signals value are inconsistent, expression communicates just
Often, after 13 seconds, regulation and control center SCADA system proceeds step A2;
If, the expression communication event consistent with the 10th second clock source signals value in the 1st second that regulation and control center SCADA system is collected
Barrier, carries out step A3,
Step A3, trigger a communication failure counter, count once, after 20 seconds, regulation and control center SCADA system continue into
Row step A2;
Meanwhile, whether regulation and control center SCADA system judges communication failure counter more than 2, and judges the 1st second and the 10th second
Whether the clock source signals value for being collected is consistent:
If after regulation and control center SCADA system is detected 1 time or 2 communication failures communicate, regulation and control center SCADA system is adopted
The clock source signals value for collecting is inconsistent, then communication failure counter automatically resets;
If regulation and control center SCADA system detects continuous 3 communication failures, regulate and control that center SCADA system collects when
Clock source signal value is consistent, then show that a communication disruption is reported to the police on regulation and control center SCADA system operator workstation, while really
Whether fixed communication recovers, and step A4 is carried out if after communication recovery is normal, conversely, communication disruption alarm count device is counted after Jia one
Continue to determine whether communication recovers;
Step A4, communication disruption alarm count device and communication failure counter automatically reset, while regulating and controlling center SCADA systems
System issues the order for stopping interrupting with the plc communication in yard station control system.
PLC in yard station control system is specific as follows to the communication break-make monitoring method for regulating and controlling center SCADA system:
Step B1, the PLC in yard station control system starts break-make monitoring order, and regulation and control center SCADA system is being received
After the PLC break-make monitoring signals arrived at a station in the control system of station, the clock of regulation and control center SCADA system is sent in seconds
PLC into yard station control system, the PLC in yard station control system is received after the clock of regulation and control center SCADA system,
Start the timer of 20 seconds simultaneously;
Step B2, the PLC in yard station control system gathers the clock source signals of the 1st second and the 10th second, and compares the 1st second
It is whether consistent with the clock source signals value that the 10th second is collected:
If collect the 1st second of the PLC in yard station control system and the 10th second clock source signals value are inconsistent, represent logical
Letter is normal, and after 13 seconds, test system proceeds step B2;
If, the expression communication consistent with the 10th second clock source signals value in the 1st second that the PLC in yard station control system is collected
Failure, carries out step B3,
Step B3, trigger a communication failure counter, count once, after 20 seconds, the PLC in yard station control system after
It is continuous to carry out step B2;
Meanwhile, the PLC in yard station control system judges communication failure counter whether more than 2, and judges the 1st second and the
Whether the clock source signals value for being collected for 10 seconds is consistent:
After if the PLC in yard station control system is detected 1 time or 2 communication failures communicate, yard station control system
In the clock source signals values that collect of PLC it is inconsistent, then communication failure counter automatically resets;
If the PLC in yard station control system detects continuous 3 communication failures, the PLC in yard station control system is adopted
The clock source signals value for collecting is consistent, then a communication disruption report is shown on operator workstation in yard station control system
It is alert, while determine whether communication recovers, step B4 is carried out if after communication recovery is normal, conversely, communication disruption alarm count device
Counting continues to determine whether communication recovers after Jia one;
Step B4, communication disruption alarm count device and communication failure counter automatically reset, while yard station control system
In PLC issue stop with regulation and control center SCADA system communication disruption order.
PLC in yard station control system has to the communication break-make monitoring method of the operator workstation in station control system
Body is as follows:
Step C1, the PLC in yard station control system starts break-make monitoring order, the operator's work in station control system
After the PLC break-make monitoring signals stood in yard station control system is received, by the operator workstation in station control system
Clock sends in seconds the PLC into yard station control system, and the PLC in yard station control system receives stand control system
After the clock of the operator workstation in system, while starting the timer of 20 seconds;
Step C2, the PLC in yard station control system gathers the clock source signals of the 1st second and the 10th second, and compares the 1st second
It is whether consistent with the clock source signals value that the 10th second is collected:
If collect the 1st second of the PLC in yard station control system and the 10th second clock source signals value are inconsistent, represent logical
Letter is normal, and after 13 seconds, the PLC in yard station control system proceeds step C2;
If, the expression communication consistent with the 10th second clock source signals value in the 1st second that the PLC in yard station control system is collected
Failure, carries out step C3,
Step 3, trigger a communication failure counter, count once, after 20 seconds, the PLC in yard station control system after
It is continuous to carry out step C2;
Meanwhile, the PLC in yard station control system judges communication failure counter whether more than 2, and judges the 1st second and the
Whether the clock source signals value for being collected for 10 seconds is consistent:
After if the PLC in yard station control system is detected 1 time or 2 communication failures communicate, yard station control system
In the clock source signals values that collect of PLC it is inconsistent, then communication failure counter automatically resets;
If the PLC in yard station control system detects continuous 3 communication failures, the PLC in yard station control system is adopted
The clock source signals value for collecting is consistent, then a communication disruption report is shown on the operator workstation in yard station control system
It is alert, while determine whether communication recovers, step C4 is carried out if after communication recovery is normal, conversely, communication disruption alarm count device
Counting continues to determine whether communication recovers after Jia one;
Step C4, communication disruption alarm count device and communication failure counter automatically reset, while yard station control system
In PLC issue stop with station control system in operator workstation communication disruption order.
Data communication break-make monitoring method of the present invention, makes the operation of oil and gas pipes SCADA system more they tend to standardization, module
Change, improve its security, reliability, stability, it is convenient to dispatch, run, manage and safeguard.The oil and gas pipes SCADA system number
Need not increase the hardware device and software capacity of yard scene and regulation and control center SCADA system according to break-make monitoring method, only need
Increase corresponding data break-make monitoring program.
The preferred embodiments of the present invention are the foregoing is only, the present invention is not limited to, for the skill of this area
For art personnel, the present invention can have various modifications and variations.It is all within the spirit and principles in the present invention, made any repair
Change, equivalent, improvement etc., should be included within the scope of the present invention.