Monitoring and data acquisition system testing method and acquisition system
By introducing virtual equipment to simulate physical equipment in the monitoring and data acquisition system, the inefficiency problem caused by the construction progress of physical equipment is solved, and efficient system testing is achieved.
Patent Information
- Application Number
- CN202411974281.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-04-08
AI Technical Summary
In the prior art, the testing of monitoring and data acquisition systems depends on the construction progress of physical equipment, resulting in low testing efficiency.
By introducing virtual devices into the monitoring and data acquisition system, simulating the behavior and process flow of physical devices, issuing control instructions in response to test instructions, receiving feedback information, and determining whether the system function is normal based on the feedback information.
The system test is completed without physical equipment, avoiding the reduction in testing efficiency caused by waiting for construction progress, and improving the testing efficiency of monitoring and data acquisition systems.
Smart Images

Figure CN119781356A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automation control technology, and in particular to a monitoring and data acquisition system testing method and an acquisition system. Background Art
[0002] In the current industry, SCADA (supervisory control and data acquisition system) system debugging and PLC logic verification need to rely on normal equipment, complete processes and production conditions on site. The execution process of the engineering implementation level of general conventional projects includes: project design, system configuration, FAT (engineering acceptance test), delivery to the site, SAT (site acceptance test), and project acceptance. In the project design stage, the design input data of the project will be analyzed, and then the corresponding project control plan (program logic) will be output. In the system configuration stage, the system configuration (lower computer PLC configuration and upper computer HMI configuration, as well as data communication, alarm, etc.) is output according to the project control plan. In the FAT stage, due to the lack of sensors, single equipment and pipeline fluids at the on-site process layer, the control plan and system configuration of the project cannot be fully tested and verified, and only simple and basic channel tests can be performed on the cabinet hardware. In the SAT stage, even if the single equipment is installed in place, the system debugging is often slow due to coordination problems among various professional construction units, and the debugging progress of the SCADA system is also dragged down by the on-site construction progress. In the later stage of SAT, even if the process equipment is debugged, the SCADA system control scheme cannot be verified in time because the pipeline commissioning time is uncertain and there is no actual distribution medium in the pipeline. When the pipeline is put into production, the medium begins to be transported in the pipeline. Only then can the control scheme and configuration of the SCADA system be fully tested and verified. Only then can the defects of the system control scheme be discovered. Only then can the omissions in the SCADA system configuration be discovered. Often due to these defects and omissions, engineers will repeatedly modify and download programs, release configurations, etc. during the commissioning period. In serious cases, there is a risk of accidents such as abnormal alarms, station shutdowns, and pipeline shutdowns. Summary of the invention
[0003] The embodiments of the present application provide a monitoring and data acquisition system testing method and an acquisition system to at least solve the technical problem in the related art that the testing of the monitoring and data acquisition system depends on the construction progress of the physical equipment, resulting in low testing efficiency.
[0004] According to one aspect of an embodiment of the present application, a monitoring and data acquisition system testing method is provided, comprising: in response to a test instruction, issuing a control instruction to a device in an energy distribution station controlled by the monitoring and data acquisition system, the control instruction being used to control the device to complete a preset process flow according to a preset control scheme, the device comprising a physical device and a virtual device, the virtual device being used to simulate the physical device; receiving feedback information during the device executing the preset process flow; and determining whether the monitoring and data acquisition system functions normally based on the feedback information.
[0005] Optionally, receiving feedback information when the device completes the preset process flow includes: receiving a switching instruction, and when the switching instruction is to switch to the physical device, collecting feedback information when the physical device completes the preset process flow, the feedback information includes at least one of the following: device status, process parameters in the process of completing the preset process flow, and execution feedback of the device executing the control instruction; when the switching instruction is to switch to the virtual device, the virtual device simulates the execution of the control instruction, and receives the feedback information generated after the virtual device simulates the execution of the control instruction.
[0006] Optionally, the method further includes: acquiring behavioral characteristics and control logic of a physical device controlled by a monitoring and data acquisition system; and generating a virtual device for simulating the physical device according to the behavioral characteristics and control logic of the physical device through a programmable logic controller (PLC).
[0007] Optionally, the method also includes: obtaining the preset process flow and the control logic of each physical device; constructing a simulation model through the PLC according to the preset process flow and the control logic of each physical device, the simulation model is used to simulate the changing trend of process parameters in the process of completing the preset process flow, and associating the changing trend of the process parameters with the actions of each virtual device, wherein the process parameters include at least one of the following: pressure parameters, flow parameters and temperature parameters.
[0008] Optionally, receiving the feedback information generated after the virtual device simulates the execution of the control instruction includes: issuing a control instruction to the PLC through a human-machine interface according to a preset control scheme, and the control instruction is used to trigger the virtual device to simulate the execution of an action corresponding to the control instruction; and receiving the feedback information transmitted by the virtual device through the PLC.
[0009] Optionally, determining whether the function of the monitoring and data acquisition system is normal based on the feedback information includes: extracting the process parameters from the feedback information, and comparing the change trend curve of the process parameters with the change trend curve of historical process parameters, and when the comparison result indicates that the change trend curve of the process parameters is the same as the change trend curve of historical process parameters, determining that the function of the PLC in the monitoring and data acquisition system is normal; determining whether the function of the human-machine interface in the monitoring and data acquisition system is normal based on the feedback information.
[0010] Optionally, determining whether the function of the human-machine interface is normal based on the feedback information includes: checking the log information of the human-machine interface; when the process parameters reach the triggering alarm condition, judging whether the human-machine interface outputs alarm information, the alarm information includes at least: alarm level, alarm description and alarm time; when the process parameters and equipment actions recorded in the log information are consistent with the actual ones and the alarm information is displayed normally, determining that the function of the human-machine interface is normal.
[0011] According to another aspect of an embodiment of the present application, a monitoring and data acquisition system is also provided, including: a human-machine interface system, which is used to respond to a test instruction and issue a control instruction to a device in an energy distribution station controlled by the monitoring and data acquisition system, wherein the control instruction is used to control the device to complete a preset process flow according to a preset control scheme, and is also used to receive feedback information during the device completing the preset process flow, and determine whether the function of the monitoring and data acquisition system is normal based on the feedback information; a programmable logic controller, which is used to generate the virtual device, and respond to the control instruction to control the virtual device to simulate the physical device to perform the action indicated by the control instruction, and send the feedback information to the human-machine interface system.
[0012] According to another aspect of the embodiment of the present application, a computer device is also provided, including: a memory and a processor, wherein the memory is used to store program instructions; the processor is connected to the memory and is used to execute the above-mentioned monitoring and data acquisition system testing method.
[0013] According to another aspect of the embodiments of the present application, a non-volatile storage medium is provided, which includes a stored computer program, wherein the device where the non-volatile storage medium is located executes the above-mentioned monitoring and data acquisition system testing method by running the computer program.
[0014] According to another aspect of the embodiments of the present application, a computer program product is provided, including computer instructions, which implement the above-mentioned monitoring and data acquisition system testing method when executed by a processor.
[0015] In an embodiment of the present application, by responding to a test instruction, a control instruction is issued to a device in an energy distribution station controlled by a monitoring and data acquisition system, wherein the control instruction is used to control the device to complete a preset process flow according to a preset control scheme, and the device includes a physical device and a virtual device, and the virtual device is used to simulate the physical device; feedback information during the device executing the preset process flow is received; based on the feedback information, it is determined whether the function of the monitoring and data acquisition system is normal, thereby achieving the purpose of simultaneously using physical devices and virtual devices to obtain feedback information to complete the system test, avoiding the purpose of reducing the test efficiency due to waiting for the construction progress of the physical equipment, thereby achieving the technical effect of improving the test efficiency of the monitoring and data acquisition system, and then solving the technical problem in the related technology that the test of the monitoring and data acquisition system depends on the construction progress of the physical equipment, resulting in low test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0017] Figure 1 It is a hardware structure block diagram of a computer terminal for implementing a monitoring and data acquisition system testing method according to an embodiment of the present application;
[0018] Figure 2 is a flow chart of a monitoring and data acquisition system testing method according to an embodiment of the present application;
[0019] Figure 3 It is a schematic diagram of the structure of a monitoring and data acquisition system in the related technology;
[0020] Figure 4 is a schematic diagram of the structure of a monitoring and data acquisition system according to an embodiment of the present application;
[0021] Figure 5 is a flow chart of another monitoring and data acquisition system testing method according to an embodiment of the present application;
[0022] Figure 6 is a data acquisition switching flow chart of a monitoring and data acquisition system according to an embodiment of the present application;
[0023] Figure 7 It is a structural diagram of a monitoring and data acquisition system according to an embodiment of the present application. DETAILED DESCRIPTION
[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0026] The information collected in the embodiments of the present application is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with the relevant laws, regulations and standards of the relevant regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or reject automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered.
[0027] In order to solve the problems existing in the related art, the present application embodiment provides a monitoring and data acquisition system testing method, which can be run on Figure 1 In the computer terminal shown, the computer terminal is explained below.
[0028] The monitoring and data acquisition system testing method embodiment provided in the embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 The hardware structure block diagram of a computer terminal for implementing a monitoring and data acquisition system testing method is shown in FIG. Figure 1As shown, the computer terminal 10 may include one or more (102a, 102b, ..., 102n are used to illustrate) processors (the processor may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission module 106 for communication functions connected via a wired and / or wireless network. In addition, it may also include: a display, a keyboard, a cursor control device, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, and a BUS bus. Those skilled in the art can understand that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0029] It should be noted that the one or more processors and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10. As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0030] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the monitoring and data acquisition system test method in the embodiment of the present application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the above-mentioned monitoring and data acquisition system test method is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0031] The transmission module 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission module 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission module 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0032] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 .
[0033] It should be noted that, in some optional embodiments, the above Figure 1 The computer terminal shown may include hardware elements (including circuits), software elements (including computer code stored on a computer-readable medium), or a combination of hardware elements and software elements. It should be noted that Figure 1 This is merely one example of a particular embodiment and is intended to illustrate the types of components that may be present in the computer terminal described above.
[0034] Under the above-mentioned operating environment, an embodiment of the present application provides an embodiment of a monitoring and data acquisition system testing method. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0035] Figure 2 is a flow chart of a monitoring and data acquisition system testing method according to an embodiment of the present application, such as Figure 2 As shown, the method comprises the following steps:
[0036] Step S202, in response to the test instruction, a control instruction is issued to the equipment in the energy distribution station controlled by the monitoring and data acquisition system, wherein the control instruction is used to control the equipment to complete a preset process flow according to a preset control scheme, wherein the equipment includes a physical equipment and a virtual equipment, and the virtual equipment is used to simulate the physical equipment;
[0037] In step S202, the physical device is a single device of the oil and gas energy distribution station, which is an independent device unit used to control, process, store and monitor oil and gas media during the oil and gas transportation process. The virtual device is a virtual unit that uses a PLC program to simulate the behavior of the single device of the oil and gas energy distribution station. During the test process, the PLC program is used to simulate the behavior of the single device and the trend of pipeline process changes to debug the SCADA system, verify the PLC logic, and check for logic defects and HMI (human machine interface) configuration defects to improve the quality of project delivery.
[0038] Step S204, receiving feedback information during the process of the device executing the preset process flow;
[0039] Step S206: determining whether the monitoring and data acquisition system functions normally based on the feedback information.
[0040] like Figure 3 As shown, in traditional projects, SCADA system debugging and PLC (Programmable Logic Controller) logic verification, where PLC includes BPCS basic process control system (Basic Process Control System) and SIS safety instrumented system (Safety Instrumented System), need to rely on normal on-site equipment and complete processes. Often, on-site equipment and processes cannot fully meet the requirements due to various reasons, thus affecting the debugging progress of the SCADA system, and failing to timely discover HMI configuration defects and HMI alarm configuration defects, as well as PLC program bug defects.
[0041] like Figure 4 As shown, in a monitoring and data acquisition system using virtual devices, only virtual devices can be used to simulate virtual processes (preset process flows) and generate virtual data trend curves.
[0042] Through the above steps S202 to S206, by responding to the test instructions, control instructions are issued to the equipment in the energy distribution station controlled by the monitoring and data acquisition system, and the control instructions are used to control the equipment to complete the preset process flow according to the preset control scheme, and the equipment includes physical equipment and virtual equipment, and the virtual equipment is used to simulate the physical equipment; receive feedback information during the equipment executes the preset process flow; determine whether the function of the monitoring and data acquisition system is normal based on the feedback information, thereby achieving the purpose of using physical equipment and virtual equipment to obtain feedback information to complete the system test, avoiding the purpose of reducing the test efficiency due to waiting for the construction progress of the physical equipment, thereby achieving the technical effect of improving the test efficiency of the monitoring and data acquisition system, and then solving the technical problem in the related technology that the monitoring and data acquisition system test depends on the construction progress of the physical equipment, resulting in low test efficiency. The following is a detailed description.
[0043] In some embodiments of the present application, the specific steps for receiving feedback information when the device completes the preset process flow are as follows: receiving a switching instruction, and when the switching instruction is to switch to the physical device, collecting feedback information when the physical device completes the preset process flow, the feedback information includes at least one of the following: device status, process parameters in the process of completing the preset process flow, and execution feedback of the device executing the control instruction; when the switching instruction is to switch to the virtual device, the virtual device simulates the execution of the control instruction, and receives the feedback information generated after the virtual device simulates the execution of the control instruction.
[0044] like Figure 5 As shown, the HMI issues control instructions, and the PLC responds to the control instructions to switch between different data collection modes. When executed by physical equipment, actual production condition data (feedback information) is collected, and when executed by virtual equipment simulation, virtual simulation data is collected.
[0045] Figure 6 A switching process is shown, such as Figure 6 As shown, the data collection of the physical device and the data collection of the virtual device (virtual monomer) are switched by switching the switch.
[0046] In some embodiments of the present application, a virtual device can be constructed in the following manner, including: obtaining the behavioral characteristics and control logic of a physical device controlled by a monitoring and data acquisition system; generating the virtual device for simulating the physical device according to the behavioral characteristics and control logic of the physical device through a programmable logic controller PLC.
[0047] The specific steps include: obtaining the preset process flow and the control logic of each physical device; constructing a simulation model according to the preset process flow and the control logic of each physical device through the PLC, wherein the simulation model is used to simulate the change trend of the process parameters in the process of completing the preset process flow, and associate the change trend of the process parameters with the action of each virtual device, wherein the process parameters include at least one of the following: pressure parameters, flow parameters and temperature parameters, for example: pressure parameters: including inlet pressure, outlet pressure, pressure along the pipeline, equipment inlet and outlet pressure, etc. These parameters are used to monitor the pressure level of pipelines and equipment, determine whether they are within the safe range, and control the pressure regulating valve, close the emergency shut-off valve, etc. Temperature parameters: involve medium temperature, equipment surface temperature, ambient temperature, etc. Temperature parameters are very important in processes such as oil heating and natural gas processing, and are used to control the operation of equipment such as heaters and cooling devices. Flow parameters: reflect the flow rate and total amount of the medium passing through the pipeline or equipment, and are used to monitor the transportation efficiency of the system, control the flow regulating valve, and realize flow metering and balance. Liquid level parameters: monitor the liquid level height in containers such as storage tanks, separators, and buffer tanks to prevent overflow or empty tanks and ensure safe operation. Valve status parameters: including the valve switch status, opening percentage, etc., used to control and monitor the flow direction and flow of the medium. Pump status parameters: reflect the operating status of the pump, such as start and stop, speed, current, etc., used to control the operation of the pump and ensure the stable delivery of the medium. Safety parameters: involving emergency shutdown (ESD) trigger conditions, safety instrument system (SIS) status, etc., used to ensure that the system can respond quickly under abnormal conditions to protect the safety of personnel and equipment.
[0048] Specifically, the behavioral characteristics of physical devices include, but are not limited to, starting and stopping: the behavior of the device when it starts and stops, such as preheating, precooling, and initialization at startup, and the safety shutdown procedure at stop. Action time: the time required to perform a specific operation, such as the opening or closing time of a valve, and the time required for a pump to reach full speed. Feedback signal: the signal sent to the control system when the device completes an action or is in a specific state, such as the valve is fully opened, the pump is in operation, the heater temperature is reached, etc.
[0049] The control logic of physical equipment includes but is not limited to: Single device control: the control logic of the equipment itself, such as adjusting the valve opening according to the set point and adjusting the pump speed according to the pressure change. Interlock logic: safety interlock between equipment to ensure that the state change of one equipment does not cause unsafe operation of another equipment. For example, the valve must be opened before the pump is started. Sequential control: the order of equipment startup and operation to ensure the correctness and efficiency of the process flow. For example, open the upstream valve first, then start the pump, and finally open the downstream valve. Protection logic: the protection logic of the equipment to prevent abnormal operating conditions such as overload, overtemperature, overpressure, etc., such as automatically closing the valve when the pressure is too high and starting the cooling system when the temperature is too high.
[0050] The specific process of building virtual equipment and virtual process flows (preset process flows) is as follows: State simulation: define the various states of single equipment (such as the open, closed, and fault states of valves) in the program, and implement the conversion logic between states. For example, after the valve opening command is issued, the program should simulate the valve opening process and feedback that the valve is in place within the predetermined time. Parameter simulation: write code to generate simulated process parameter trends, such as the impact of valve operation on pressure or flow. Use mathematical models or table lookup methods to dynamically adjust parameter values according to changes in control instructions. Fault simulation: implement the simulation of equipment failures, such as valve jams, sensor failures, etc. This helps test the SCADA system's ability to handle abnormal situations.
[0051] It is understandable that physical devices have sensors or signals collected by PLC and can accept PLC instructions. For example, a pressure sensor can generate a standard current signal collected by PLC, and PLC collects this current signal and converts it into a pressure value; for example, a valve monomer has status feedback such as open and closed, and can accept PLC valve opening and closing instructions. Virtual devices are programs written in PLC to simulate pressure changes, simulate valves accepting commands, and simulate valves giving status feedback within a specified time. For example: there is a pressure gauge downstream of the pipeline valve, and a PLC program can be written to simulate the pressure value of this pressure gauge increasing at a certain rate after the valve is opened, or decreasing at a certain rate after the valve is closed. For example: by writing a PLC program to simulate a valve opening at a certain rate after receiving a valve opening instruction, and giving feedback that the valve is fully opened within a set time.
[0052] In some embodiments of the present application, the monomers monitored and controlled by the SCADA system of the long-distance pipeline of oil and gas energy (crude oil, refined oil, natural gas, etc.) generally include valves (electric valves, regulating valves, emergency shut-off valves, etc.), heaters, filters, etc. The monomer generally accepts HMI instructions and then outputs feedback signals to the SCADA system. To establish a virtual monomer is to establish a monomer program in the PLC program to imitate the behavior of the monomer. For example, when the HMI sends instructions to the virtual device, the virtual device can give feedback information or simulate monomer failures in a timely manner like the actual device.
[0053] A control instruction is sent to the PLC through a human-machine interface according to a preset control scheme, and the control instruction is used to trigger the virtual device to simulate and execute an action corresponding to the control instruction; and feedback information transmitted by the virtual device is received through the PLC.
[0054] In some embodiments of the present application, the specific steps for determining whether the function of the monitoring and data acquisition system is normal based on the feedback information are as follows: extract the process parameters from the feedback information, and compare the change trend curve of the process parameters with the change trend curve of historical process parameters. When the comparison result indicates that the change trend curve of the process parameters is the same as the change trend curve of historical process parameters, determine that the function of the PLC in the monitoring and data acquisition system is normal; determine whether the function of the human-machine interface is normal based on the feedback information.
[0055] For example, virtual trends of instrument data are established in the PLC program, and these trends are associated with corresponding monomers. For example, the changing trend of inlet and outlet pressure is associated with the inlet and outlet valve switch action; the flow changing trend of the metering skid is associated with the start and stop status of the entire station (inlet and outlet valve switch status) and the opening degree of the regulating valve of the pressure regulating skid.
[0056] PLC functional testing includes: PLC logic testing. The specific testing process is as follows: For example, a PLC logic control scheme is to sequentially link pressure and multiple valves. In this case, a virtual process can be established, and a simulation program can be used to simulate pressure changes. A virtual monomer program can be used to simulate the action of the valve monomer and provide feedback on the valve switch status, thereby achieving the purpose of logic testing.
[0057] In some embodiments of the present application, whether the function of the human-machine interface is normal is determined based on the feedback information, and the specific steps include: checking the log information of the human-machine interface; when the process parameters reach the triggering alarm condition, judging whether the human-machine interface outputs alarm information, and the alarm information includes at least: alarm level, alarm description and alarm time; when the process parameters and equipment actions recorded in the log information are consistent with the actual ones and the alarm information is displayed normally, determining that the function of the human-machine interface is normal.
[0058] In actual application scenarios, you can also test whether the HMI configuration is normal, for example: HMI sends control instructions to the virtual device. After the PLC receives the HMI instruction, the virtual device executes the command and calculates the feedback signal and sends it back to the HMI. After the HMI receives the single-unit feedback, it generates alarm and event records to confirm whether the PLC control logic is correct and whether the alarm and event system configuration of the HMI host computer is correct. If there are problems with the PLC control logic and HMI system configuration, continue to modify and improve the control plan and system configuration until they are completely correct.
[0059] It should be noted that control logic refers to the logical interlocking of sensors and various devices. For example, the interlocking of the pressure gauge of the pump inlet manifold of a certain oil transfer station with the oil pump and its inlet and outlet valves will trigger the pump to stop and then close the inlet and outlet valves when the pressure exceeds the set value. Configuration refers to the HMI display screen and HMI alarms, event records, etc. that are compatible with the above control scheme. For example, on the computer display screen, that is, the HMI screen, the process of the pump inlet manifold, oil pump and its inlet and outlet valves of a certain oil transfer station is displayed, and the relevant pressure values, pump operating status, valve switch status, and the execution status of the interlocking program of the pump logic start and stop are displayed.
[0060] According to the traditional automatic control debugging mode, when the PLC system is not put into production and is not connected to real pressure gauges, pumps and valves, the correctness of the PLC logic scheme and HMI screen configuration cannot be effectively verified. However, the solution provided by this application can quickly and effectively organize system testing without physical processes.
[0061] During system debugging, when the PLC logic execution process is not completed as expected, when the HMI system does not interact with data and generate alarms or event records as expected, the test is considered to have failed, and the PLC logic solution or HMI system configuration needs to be modified to ultimately meet the design expectations.
[0062] In addition, the data of the interaction between PLC and HMI can be tested. For example, in the traditional automatic control system debugging process, because the PLC cabinet and HMI host computer are tested in the factory, there are no actual process equipment such as pressure gauges and valves of the gas / oil station, and the interactive data such as logic execution feedback and HMI command issuance cannot be efficiently verified. However, after adopting this solution, efficient simulation tests can be performed under real process conditions without production to verify the interactive data between HMI and PLC.
[0063] The present application also provides a monitoring and data acquisition system testing method, comprising:
[0064] Step 1, build a virtual device in the PLC program;
[0065] Step 2: Control logic test: Send control instructions: Through the HMI interface, send various control instructions to the PLC according to the preset test cases, such as opening the valve, adjusting the heater temperature, starting the pump, etc. Observe feedback: After the PLC receives the instruction, the virtual unit program should respond immediately and simulate the behavior of the actual unit device, such as valve opening changes, heater working status, etc. Record results: Observe and record the information fed back by the PLC to the HMI, including device status, parameter values, and whether related alarms and event records are triggered.
[0066] Step 3: Data trend verification: Virtual data trend generation: The PLC program should have a virtual process embedded in it, which can generate logical process parameter trends, such as the trend of pressure changing with valve opening. Trend test: In virtual mode, test whether the parameter trends generated by the PLC program are consistent with expectations, for example, check whether the pressure drops and the flow increases when the valve is opened, and whether these trends are correctly transmitted to the HMI. Data analysis: Analyze the parameter trends displayed on the HMI to confirm the correctness of the trends and whether the HMI displays the parameter trends accurately, including real-time display of trends, historical records, alarm threshold triggering, etc.
[0067] Step 4: HMI system configuration verification: Alarm test: By controlling the virtual process parameters, trigger the preset alarm conditions, and check whether the HMI correctly displays the alarm information, including the alarm level, alarm description, and alarm time. Event recording test: Under the virtual process state, the control logic is executed by the PLC to check whether the HMI accurately records the relevant events, including equipment actions, parameter changes, etc. Data reading and display: Verify whether the HMI can correctly read the virtual parameter data transmitted by the PLC and display it accurately on the interface.
[0068] Step 5: Iteration and revision:
[0069] Result evaluation: Compare the test results with the expected goals and evaluate the correctness of the PLC control logic and HMI system configuration. Defect record: Record all logic defects, configuration errors and display problems found in the test. Program modification: According to the recorded defects, modify the PLC program, optimize the control logic, adjust the HMI system configuration, and ensure that the alarm configuration, event recording settings, etc. meet the design requirements. Repeat the test: After the modification is completed, perform the control logic test and data trend verification again until all test cases pass and no new problems are found.
[0070] Through such a series of tests and verifications, it can be ensured that the control logic, data trends and HMI system configuration functions of the SCADA system in the virtual environment meet the design requirements, providing sufficient guarantee for subsequent applications in the physical process environment.
[0071] Figure 7 A monitoring and data acquisition system according to an embodiment of the present application includes:
[0072] The human-machine interface system 70 is used to respond to the test instruction and issue a control instruction to the equipment in the energy distribution station controlled by the monitoring and data acquisition system, wherein the control instruction is used to control the equipment to complete a preset process flow according to a preset control scheme, and is also used to receive feedback information during the process of the equipment completing the preset process flow, and determine whether the function of the monitoring and data acquisition system is normal based on the feedback information, wherein the equipment includes a physical equipment and a virtual equipment;
[0073] The programmable logic controller 72 is used to generate the virtual device, and respond to the control instruction to control the virtual device to simulate the physical device to perform the action indicated by the control instruction, and send the feedback information to the human-machine interface system.
[0074] Through the above-mentioned monitoring and data acquisition system, by responding to the test instructions, control instructions are issued to the equipment in the energy distribution station controlled by the monitoring and data acquisition system, and the control instructions are used to control the equipment to complete the preset process flow according to the preset control scheme. The equipment includes physical equipment and virtual equipment, and the virtual equipment is used to simulate the physical equipment; receive feedback information during the equipment executes the preset process flow; based on the feedback information, determine whether the function of the monitoring and data acquisition system is normal, thereby achieving the purpose of using physical equipment and virtual equipment to obtain feedback information to complete the system test, avoiding the purpose of reducing the test efficiency due to waiting for the construction progress of the physical equipment, thereby achieving the technical effect of improving the test efficiency of the monitoring and data acquisition system, and then solving the technical problem in the related technology that the test of the monitoring and data acquisition system depends on the construction progress of the physical equipment, resulting in low test efficiency.
[0075] It should be noted that Figure 6 The SCADA system shown is used to perform Figure 2 The monitoring and data acquisition system testing method shown in the figure, therefore the relevant explanations in the above monitoring and data acquisition system testing method are also applicable to this monitoring and data acquisition system, and will not be repeated here.
[0076] An embodiment of the present application also provides a computer device, including: a memory and a processor, wherein the memory is used to store program instructions; the processor is connected to the memory and is used to execute the above-mentioned monitoring and data acquisition system testing method.
[0077] An embodiment of the present application also provides a non-volatile storage medium, which includes a stored computer program, wherein the device where the non-volatile storage medium is located executes the above-mentioned monitoring and data acquisition system testing method by running the computer program.
[0078] An embodiment of the present application also provides a computer program product, including computer instructions, which, when executed by a processor, implement the steps of the monitoring and data acquisition system testing method in the present application.
[0079] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0080] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0081] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0082] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0083] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0084] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc., which can store program code.
[0085] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A monitoring and data acquisition system testing method, characterized in that: include: In response to the test instruction, a control instruction is issued to a device in an energy distribution station controlled by a monitoring and data acquisition system, wherein the control instruction is used to control the device to complete a preset process flow according to a preset control scheme, wherein the device includes a physical device and a virtual device, and the virtual device is used to simulate the physical device; Receiving feedback information during the process of the equipment executing the preset process flow; Based on the feedback information, it is determined whether the monitoring and data acquisition system functions normally.
2. The method according to claim 1, characterized in that Receiving feedback information during the process of the equipment completing the preset process flow, including: receiving a switching instruction, and in the case where the switching instruction is to switch to the physical device, collecting feedback information of the physical device during the process of completing the preset process flow, wherein the feedback information includes at least one of the following: device status, process parameters during the process of completing the preset process flow, and execution feedback of the device executing the control instruction; In the case where the switching instruction is to switch to the virtual device, the virtual device simulates the execution of the control instruction, and receives the feedback information generated after the virtual device simulates the execution of the control instruction.
3. The method according to claim 2, characterized in that The method further comprises: Obtain the behavioral characteristics and control logic of the physical devices controlled by the SCADA system; The virtual device for simulating the physical device is generated according to the behavioral characteristics and control logic of the physical device through a programmable logic controller (PLC).
4. The method according to claim 3, characterized in that: The method further comprises: Obtaining the preset process flow and the control logic of each physical device; A simulation model is constructed by the PLC according to the preset process flow and the control logic of each physical device. The simulation model is used to simulate the changing trend of process parameters in the process of completing the preset process flow, and associate the changing trend of the process parameters with the actions of each virtual device, wherein the process parameters include at least one of the following: pressure parameter, flow parameter and temperature parameter.
5. The method according to claim 2, characterized in that: Receiving the feedback information generated after the virtual device simulates and executes the control instruction, including: Sending control instructions to the PLC through the human-machine interface according to the preset control scheme, wherein the control instructions are used to trigger the virtual device to simulate and execute the action corresponding to the control instructions; The feedback information transmitted by the virtual device is received through the PLC.
6. The method according to claim 4, characterized in that Determining whether the function of the monitoring and data acquisition system is normal based on the feedback information includes: Extracting the process parameters from the feedback information, and comparing the change trend curve of the process parameters with the change trend curve of the historical process parameters, and determining that the function of the PLC in the monitoring and data acquisition system is normal when the comparison result indicates that the change trend curve of the process parameters is the same as the change trend curve of the historical process parameters; Based on the feedback information, it is determined whether the function of the human-machine interface in the monitoring and data acquisition system is normal.
7. The method according to claim 6, characterized in that Determining whether the function of the human-machine interface is normal based on the feedback information includes: Check the log information of the human-machine interface; When the process parameters reach the alarm triggering condition, determining whether the human-machine interface outputs alarm information, the alarm information at least including: alarm level, alarm description and alarm time; When the process parameters and equipment actions recorded in the log information are consistent with the actual ones and the alarm information is displayed normally, it is determined that the function of the human-machine interface is normal.
8. A monitoring and data acquisition system, characterized in that: include: A human-machine interface system, used for responding to a test instruction, issuing a control instruction to a device in an energy distribution station controlled by a monitoring and data acquisition system, wherein the control instruction is used for controlling the device to complete a preset process flow according to a preset control scheme, and is also used for receiving feedback information during the process of the device completing the preset process flow, and determining whether the function of the monitoring and data acquisition system is normal based on the feedback information, wherein the device includes a physical device and a virtual device; A programmable logic controller is used to generate the virtual device, and in response to the control instruction, control the virtual device to simulate the physical device to perform the action indicated by the control instruction, and send the feedback information to the human-machine interface system.
9. A computer device, characterized in that: include: A memory and a processor, wherein the memory is used to store program instructions; The processor is connected to the memory and is used to execute the monitoring and data acquisition system testing method described in any one of claims 1-7.
10. A computer program product comprising computer instructions, characterized in that: When the computer instructions are executed by the processor, the monitoring and data acquisition system testing method described in any one of claims 1 to 7 is implemented.