A control object simulation method and system for a process industry control system
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHANGHAI UNIVERSITY OF ELECTRIC POWER
- Filing Date
- 2023-06-14
- Publication Date
- 2026-06-23
AI Technical Summary
In existing simulation methods for control objects in process industry control systems, the simplified real control objects are difficult to reflect their characteristics, while digital simulation objects cannot reflect the characteristics of control system equipment, resulting in poor teaching and experimental effects.
By acquiring the actual composition parameters and component information of the control system to be simulated, an initial simulation model of the controlled object is established. Error correction and improvement are carried out in conjunction with the configuration function to realize logical connection. Signal processing and control command calculation are performed using the controlled object configuration unit, network switch unit, signal conversion unit and controller unit to construct a control object simulation system for process industry control systems.
It realizes closed-loop control simulation of control systems, has a wide range of applications, rich simulation function algorithm modules, supports control system strategy optimization and controller parameter tuning, and improves teaching and experimental effects.
Smart Images

Figure CN116880373B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of control object simulation technology for process industry control systems, and particularly to a control object simulation method and system for process industry control systems. Background Technology
[0002] In process industries such as power generation, chemical engineering, and metallurgy, distributed control systems (DCS) and programmable logic controllers (PLCs) detect process parameters through sensors, calculate output commands through controllers, and then control the parameters of working fluids such as water and steam through actuators such as pumps, valves, and heaters. In the teaching and experimentation of control systems (DCS, PLC, etc.), it is necessary to construct virtual control loops to complete the testing of control strategies and the tuning of controller parameters.
[0003] In this process, virtual control objects are indispensable. Currently, there are two main forms in control system teaching and experimentation: the first is the interface between a real control system and a simple physical control object; the second is the interface between a digital controller and a digital simulation object. In the first form, due to the complexity limitations of real-world control objects, the simulated control objects used for teaching or experimentation must be significantly simplified, making it difficult to reflect the characteristics of the actual control object. In the second form, the control object can be represented through mathematical models and software methods, and its characteristics are close to those of the real control object. However, devices such as the I / O channels of DCS and PLC are not involved, and their characteristics cannot be reflected in teaching and experimentation. Summary of the Invention
[0004] The purpose of this section is to outline some aspects of embodiments of the present invention and to briefly describe some preferred embodiments. Simplifications or omissions may be made in this section, as well as in the abstract and title of this application, to avoid obscuring the purpose of these documents; however, such simplifications or omissions should not be construed as limiting the scope of the invention.
[0005] In view of the aforementioned existing problems, the present invention is proposed.
[0006] Therefore, the present invention provides a simulation method and system for control objects in process industry control systems, which can solve the problems mentioned in the background art.
[0007] To address the aforementioned technical problems, this invention provides the following technical solution: a simulation method for controlled objects in process industry control systems, comprising:
[0008] Obtain the actual composition parameters and component information of the control system to be simulated, and establish an initial simulation model of the controlled object by combining the configuration function;
[0009] Based on the logical relationships and information transmission methods between the components of the control system to be simulated, the initial control object simulation model is corrected and improved.
[0010] The corrected and improved simulation model of the controlled object is logically connected to the control system to realize the simulation of the controlled object.
[0011] A simulation system for controlled objects in process industry control systems is characterized by comprising a controlled object configuration unit, a network switch unit, a signal conversion unit, and a controller unit.
[0012] The controlled object configuration unit is used to establish a simulation model of the controlled object based on the actual composition parameters and component information of the control system to be simulated.
[0013] The network switch unit is used to connect the controlled object configuration unit and the signal conversion unit.
[0014] The signal conversion unit is used to convert signals transmitted from the network switch unit and / or the controller unit, and to realize signal transmission.
[0015] The controller unit is used to calculate the digital signal transmitted by the signal conversion unit and obtain the corresponding control command.
[0016] As a preferred embodiment of the control object simulation system for process industry control systems described in this invention, the controlled object configuration unit includes a configuration function module, a compilation and linking function module, a simulation logic target file module, a debugging and running function module, and a touch screen module.
[0017] The user obtains the actual composition parameters and component information of the control system to be simulated from the configuration unit of the controlled object, calls the corresponding function module of the configuration function module through the touch screen module, and names the function module accordingly. The name includes the name of the function module in the actual control system to be simulated.
[0018] The configuration function module includes automatic connection and manual connection. The automatic connection includes the basic connection of the function module carried in the configuration function module and the self-updating part of the connection after manual connection. The manual connection includes user deletion of connections and / or addition of connections.
[0019] When a user performs a manual connection operation, the configuration function module automatically records this manual connection operation and updates it to the automatic connection operation. When the user calls it again, the automatic module uses the updated connection operation.
[0020] When a user performs a call operation through the touch screen module, it is determined that the called function module in the configuration function module uses automatic connection;
[0021] If the user ends the touchscreen module call operation, the compilation and linking function module directly sorts and detects errors in the simulation control system that the user has built.
[0022] When a user performs operations to delete or / and add connections through the touch screen module, it is determined that the called function module in the configuration function module uses manual connection.
[0023] If the user ends the touchscreen module call operation, the compilation and linking function module waits for a manual connection termination instruction. If a manual connection termination instruction is received, the simulation control system to be built by the user is sorted and error detected.
[0024] As a preferred embodiment of the control object simulation system for process industry control systems described in this invention, the controlled object configuration unit further includes:
[0025] The compilation and linking function module sorts and detects errors in the user-created control system to be simulated, and compiles the sorting and error detection results into a target binary file, which is then stored in the simulation logic target file module.
[0026] The sorting includes obtaining the connection weights and module weight values between calling modules in different configuration function modules based on the actual composition parameters and component information of different control systems to be simulated;
[0027] If a module's weight value is greater than 0.2, it is classified as a first-class module. If a module's weight value is less than 0.2 but greater than 0.05, it is classified as a second-class module. If a module's weight value is less than 0.05, it is classified as a third-class module. All connections between first-class modules are first-level connections. The connection between a first-class module and a second-class module is a second-level connection. The connection between a first-class module and a third-class module is a third-level connection. The connection between second-class modules is a second-level connection. The connection between a second-class module and a third-class module is a third-level connection.
[0028] The error detection includes circuit detection and module detection of the established control system to be simulated. By sending a detection signal to any module and monitoring the transmission of the detection signal, the real-time status of different modules and different connections can be determined.
[0029] As a preferred embodiment of the control object simulation system for process industry control systems described in this invention, the network switch unit includes:
[0030] When the user inputs parameters of the simulation control system through the touch screen module and the configuration function module, the debugging and running function module calls the target binary file in the simulation logic target file module, performs simulation calculations on the parameters configured in the target binary file, obtains the corresponding simulation parameter output, and configures the IP address and channel number of the simulation parameter output.
[0031] Once configured, the debug and run function module encapsulates the simulation parameter output via the Modbus-TCP protocol and sends the encapsulated simulation parameter output to the network switch unit using the configured IP address and channel number of the simulation parameter output.
[0032] As a preferred embodiment of the control object simulation system for process industry control systems described in this invention, the signal conversion unit includes:
[0033] At least one signal conversion module AI type and at least one signal conversion module AO type, wherein the signal conversion module AI type sends parameter data to the network switch unit, and the signal conversion module AO type receives parameter data transmitted from the network switch unit;
[0034] When the parameter data transmitted from the network switch unit is received, the signal conversion module AO converts the parameter data transmitted from the network switch unit into DC current and outputs the current through the configured channel;
[0035] The current magnitude is between 4 and 20 mA, and the current magnitude is linearly controlled with respect to the parameter data to be output, and the current magnitude remains constant until the next parameter data arrives.
[0036] As a preferred embodiment of the control object simulation system for process industry control systems described in this invention, the controller unit includes:
[0037] The system includes at least one I / O module AO type, at least one I / O module AI type, an internal digital network, a current-to-voltage conversion circuit, an analog-to-digital converter, and a controller module. The I / O modules AO type and AI type are connected and have the same number.
[0038] When the I / O module AI receives current information from the signal conversion module AO, the I / O module AI converts the received current information into a voltage quantity through a current-to-voltage conversion circuit, and the voltage quantity is in the range of 1 to 5V. Then, the voltage is converted into a digital quantity through an analog-to-digital converter and transmitted to the controller module through the internal network of the controller unit.
[0039] When a digital quantity is input to the controller module, the controller module obtains the output control quantity according to a preset control algorithm. If the output control quantity is obtained, the controller unit activates the internal digital network and converts the output control quantity into a current of 4 to 20 mA.
[0040] As a preferred embodiment of the control object simulation system for process industry control systems described in this invention, the controller unit further includes:
[0041] The I / O module AO converts the output control quantity into a 4-20mA current and transmits it to the corresponding signal conversion module AI according to the channel number, and sends the output control quantity through the 4-20mA current.
[0042] The AI-type signal conversion module converts the 4-20mA current into a 1-5V voltage through a current-to-voltage conversion circuit, then converts it into a digital quantity through an analog-to-digital converter, and transmits it to the network switch unit. The network switch unit then transmits the digital quantity to the debugging and operation function module of the controlled object configuration unit. The debugging and operation function module uses the output control quantity as the input of the control system to be simulated and performs cyclic calculations.
[0043] A computer device includes a memory and a processor, the memory storing a computer program, characterized in that the processor executes the computer program to implement the steps of the method described above.
[0044] A computer-readable storage medium having a computer program stored thereon, characterized in that the computer program, when executed by a processor, implements the steps of the method described above.
[0045] The beneficial effects of this invention are as follows: This invention proposes a simulation method and system for control objects in process industry control systems, including the configuration and simulator of the control object, a simulation system network, and a signal conversion unit. The object simulation system is interconnected with the control system through analog current to achieve control closed loop. This invention has the characteristics of wide applicability and rich simulation function algorithm modules, enabling closed-loop control simulation teaching and experimentation of control systems, and serving control system strategy optimization and controller parameter tuning. Attached Figure Description
[0046] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. Wherein:
[0047] Figure 1 A flowchart illustrating a method for simulating control objects in a process industry control system, as provided in one embodiment of the present invention;
[0048] Figure 2 A system schematic diagram of a control object simulation method and system for process industry control systems provided in one embodiment of the present invention. Figure 1 ;
[0049] Figure 3 A system schematic diagram of a control object simulation method and system for process industry control systems provided in one embodiment of the present invention. Figure 2 ;
[0050] Figure 4 A schematic diagram of a dual-tank simulation system structure for a control object simulation method and system for process industry control systems, provided as an embodiment of the present invention;
[0051] Figure 5 This invention provides a simulation method for control objects in a process industry control system and a schematic diagram of the system's regulating valve parameter configuration window, as an embodiment of the present invention.
[0052] Figure 6 This is a schematic diagram illustrating a simulation method for control objects in a process industry control system and the configuration of the analog input module of the system, as provided in one embodiment of the present invention.
[0053] Figure 7 This is a schematic diagram illustrating a simulation method for control objects in a process industry control system and the configuration of the analog output module of the system, as provided in one embodiment of the present invention.
[0054] Figure 8 This invention provides a simulation method for the control object of a process industry control system and an internal structure diagram of the computer equipment of the system. Detailed Implementation
[0055] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the protection scope of the present invention.
[0056] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the invention is not limited to the specific embodiments disclosed below.
[0057] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The phrase "in one embodiment" appearing in different places in this specification does not necessarily refer to the same embodiment, nor is it a single or selective embodiment that is mutually exclusive with other embodiments.
[0058] This invention is described in detail with reference to the schematic diagrams. When detailing the embodiments of this invention, for ease of explanation, the cross-sectional views illustrating the device structure may be partially enlarged, not adhering to the usual scale. Furthermore, the schematic diagrams are merely examples and should not be construed as limiting the scope of protection of this invention. In actual fabrication, the three-dimensional spatial dimensions of length, width, and depth should be included.
[0059] Furthermore, in the description of this invention, it should be noted that the terms "upper," "lower," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. These terms are used solely for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. In addition, the terms "first," "second," or "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0060] Unless otherwise explicitly specified and limited, the terms "installation," "connection," and "joining" in this invention should be interpreted broadly. For example, they can refer to fixed connections, detachable connections, or integral connections; similarly, they can refer to mechanical connections, electrical connections, or direct connections, or indirect connections through an intermediate medium, or internal connections between two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.
[0061] Example 1
[0062] Reference Figure 1-8 This is the first embodiment of the present invention, which provides a simulation method and system for control objects in process industry control systems, including:
[0063] Obtain the actual composition parameters and component information of the control system to be simulated, and establish an initial simulation model of the controlled object by combining the configuration function;
[0064] Furthermore, based on the logical relationships and information transmission methods between the components of the control system to be simulated, the initial simulation model of the controlled object is corrected and improved.
[0065] Furthermore, the improved and corrected simulation model of the controlled object is logically connected to the control system to achieve simulation of the controlled object.
[0066] In a preferred embodiment, a control object simulation system for process industry control systems includes a controlled object configuration unit 100, a network switch unit 200, a signal conversion unit 300, and a controller unit 400.
[0067] The controlled object configuration unit 100 is used to establish a simulation model of the controlled object based on the actual composition parameters and component information of the control system to be simulated;
[0068] The network switch unit 200 is used to connect the controlled object configuration unit 100 and the signal conversion unit 300.
[0069] The signal conversion unit 300 is used to convert the signals transmitted from the network switch unit 200 and / or the signals transmitted from the controller unit 400, and to realize the transmission of the signals.
[0070] The controller unit 400 is used to calculate the digital signal transmitted by the signal conversion unit 300 and obtain the corresponding control command.
[0071] The controlled object configuration unit 100 includes a configuration function module 101, a compilation and linking function module 102, a simulation logic object file module 103, a debugging and running function module 104, and a touch screen module 105.
[0072] In this process, the user obtains the actual composition parameters and component information of the control system to be simulated from the configuration unit 100 of the controlled object, calls the corresponding function module of the configuration function module 101 through the touch screen module 105, and names the function module accordingly. The name includes the name in the actual control system to be simulated corresponding to the function module.
[0073] Specifically, the configuration function module 101 includes automatic connection and manual connection. Automatic connection includes the basic connection of the function module carried in the configuration function module 101 and the self-updating part of the connection after manual connection. Manual connection includes user deletion of connections and / or addition of connections.
[0074] Furthermore, when a user performs a manual connection operation, the configuration function module 101 automatically records this manual connection operation and updates it to the automatic connection operation. When the user calls it again, the automatic module uses the updated connection operation.
[0075] Furthermore, when a user performs a call operation through the touch screen module 105, it is determined that the called function module in the configuration function module 101 uses automatic connection.
[0076] Furthermore, if the user ends the operation of calling the touch screen module 105, the compilation and linking function module 102 directly sorts and detects errors in the simulation control system that the user has built.
[0077] Furthermore, when a user performs operations to delete or add connections through the touch screen module 105, it is determined that the called function module in the configuration function module 101 uses manual connection.
[0078] Furthermore, if the user ends the operation of the touch screen module 105, the compilation and linking function module 102 waits for the manual connection termination instruction. If the manual connection termination instruction is obtained, the simulation control system to be built by the user is sorted and error detected.
[0079] It should be noted that the controlled object configuration unit 100 also includes a compilation and linking function module 102, which sorts and detects errors in the user-created control system to be simulated, and compiles the sorting and error detection results into a target binary file and stores it in the simulation logic target file module 103.
[0080] Furthermore, the sorting includes obtaining the connection weights and module weight values between the calling modules in different configuration function modules 101 based on the actual composition parameters and component information of different control systems to be simulated;
[0081] It should be noted that when a module's weight value is greater than 0.2, this module is a first-class module; when a module's weight value is less than 0.2 but greater than 0.05, this module is a second-class module; when a module's weight value is less than 0.05, this module is a third-class module. All connections between first-class modules are first-level connections; the connection between a first-class module and a second-class module is a second-level connection; the connection between a first-class module and a third-class module is a third-level connection; the connection between second-class modules is a second-level connection; and the connection between a second-class module and a third-class module is a third-level connection.
[0082] It should be noted that error detection includes circuit detection and module detection of the established control system to be simulated. By sending a detection signal to any module and monitoring the transmission of the detection signal, the real-time status of different modules and different connections can be determined.
[0083] It should be noted that when a first-level module or / and first-level connection detection error occurs, the compilation and linking function module 102 sends a first-level error warning to the touch screen module 105 and displays the name of the module or connection that has the error on the screen of the touch screen module 105, waiting for the user to repair the corresponding module compilation code or / and basic connection method in the background of the configuration function module 101.
[0084] It should be noted that when a second-level module or / and a second-level connection error is detected, the compilation and linking function module 102 sends a second-level error warning to the touch screen module 105 and displays the name of the module or connection that has the error on the screen of the touch screen module 105, waiting for the user to call the new configuration function module 101 to back up the corresponding module and repair the basic connection method.
[0085] It should be noted that when a third-level module or / and a third-level connection error is detected, the compilation and linking function module 102 sends a third-level error warning to the touch screen module 105 and displays the name of the module or connection that has the error on the screen of the touch screen module 105, waiting for the user to call the new configuration function module 101 to back up the corresponding module or / and repair the basic connection method.
[0086] It should be noted that the network switch unit 200 includes the following: when the user inputs parameters of the simulation control system through the touch screen module 105 and the configuration function module 101, the debug run function module 104 calls the target binary file in the simulation logic target file module 103, performs simulation calculations on the parameters configured in the target binary file, obtains the corresponding simulation parameter output, and configures the IP address and channel number of the simulation parameter output.
[0087] Furthermore, once the configuration is complete, the debug run function module 104 encapsulates the simulation parameter output via the Modbus-TCP protocol and sends the encapsulated simulation parameter output to the network switch unit 200 via the configured simulation parameter output IP address and channel number.
[0088] Furthermore, the signal conversion unit 300 includes at least one signal conversion module AI type and at least one signal conversion module AO type, wherein the signal conversion module AI type sends parameter data to the network switch unit 200, and the signal conversion module AO type receives parameter data transmitted from the network switch unit 200.
[0089] Furthermore, when receiving parameter data transmitted from the network switch unit 200, the signal conversion module AO converts the parameter data transmitted from the network switch unit 200 into DC current and outputs the current through the configured channel.
[0090] It should be noted that the current is between 4 and 20 mA, and the current is linearly controlled with respect to the output parameter data, and the current remains constant until the next parameter data arrives.
[0091] It should be noted that the controller unit 400 includes at least one I / O module AO type, at least one I / O module AI type, an internal digital network, a current to voltage conversion circuit, an analog to digital converter, and a controller module. The I / O module AO type is connected to the signal conversion module AI type and the number of I / O modules is the same.
[0092] Furthermore, when the I / O module AI receives current information from the signal conversion module AO, the I / O module AI converts the received current information into a voltage quantity through a current-to-voltage conversion circuit, and the voltage quantity is between 1 and 5V. Then, the voltage is converted into a digital quantity through an analog-to-digital converter and transmitted to the controller module through the internal network of the controller unit 400.
[0093] Furthermore, when a digital quantity is input to the controller module, the controller module obtains the output control quantity according to a preset control algorithm. If the output control quantity is obtained, the controller unit 400 activates the internal digital network and converts the output control quantity into a current of 4 to 20 mA.
[0094] It should be noted that the controller unit 400 also includes an I / O module AO type that transmits the 4-20mA current converted from the output control quantity to the corresponding signal conversion module AI type according to the channel number, and sends the output control quantity through the 4-20mA current.
[0095] Furthermore, the AI-type signal conversion module converts the 4-20mA current into a 1-5V voltage through a current-to-voltage conversion circuit, then converts it into a digital quantity through an analog-to-digital converter, and transmits it to the network switch unit 200. The network switch unit 200 then transmits the digital quantity to the debugging and running function module 104 of the controlled object configuration unit 100. The debugging and running function module 104 uses the output control quantity as the input of the control system to be simulated and performs cyclic calculations.
[0096] The above-mentioned unit modules can be embedded in the processor of the computer device in hardware form or independent of it, or they can be stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of the above modules.
[0097] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 8As shown, the computer device includes a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, carrier networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a simulation method for controlled objects in process industry control systems. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad on the computer device's casing, or an external keyboard, touchpad, or mouse.
[0098] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:
[0099] Obtain the actual composition parameters and component information of the control system to be simulated, and establish an initial simulation model of the controlled object by combining the configuration function;
[0100] Based on the logical relationships and information transmission methods between the components of the control system to be simulated, the initial simulation model of the controlled object is corrected and improved.
[0101] The corrected and improved simulation model of the controlled object is logically connected to the control system to realize the simulation of the controlled object.
[0102] Example 2
[0103] Reference Figure 1-8 As an embodiment of the present invention, a simulation method and system for control objects in process industry control systems are provided. To verify the beneficial effects of the present invention, comparative experiments are conducted for scientific demonstration.
[0104] Taking the level control of a dual-tank water system as an example, the human-machine interface of the controlled object configuration / simulator is as follows: Figure 4 As shown.
[0105] Figure 4 It is a simulation system structure with a dual-tank water tank as the controlled object. Each module has a number above it, and each module is connected by arrow lines to indicate logical relationships, output of operations, and output transmission relationships.
[0106] Module 1 is a virtual control valve. The input parameter KD is the valve opening degree, and the signal comes from the AO channel of the control system's opening command. It is connected to AI module 10 in this system. The input parameter IN is the relative flow rate value, determined by the output of the preceding module. The parameters of the virtual control valve can be adjusted through the parameter adjustment window. Figure 5 As shown, the relationship between valve opening and relative flow rate can be edited by dragging points on the curve.
[0107] Module 2 is a virtual pump used to set the head, and the output includes the maximum flow rate.
[0108] Modules 3 and 4 are virtual water tanks. The input is the inflow rate, and their parameters include the cylindrical base area, height, and outlet cross-sectional area. The water level in the tank is calculated by accumulating the difference between the inflow and outflow rates per unit time. The calculation result is sent to the AI channel of the control system via AO module 11.
[0109] Module 10 is an analog input module, corresponding to an AI-type hardware signal conversion module. Its connection to the hardware is established by configuring its IP address and port number, such as... Figure 6 As shown.
[0110] Module 11, the analog output module, corresponds to the AO type hardware signal conversion module. Its connection to the hardware is established by configuring its IP address and port number, such as... Figure 7 As shown.
[0111] Module 9 is a virtual heater that heats water with a fixed or variable electrical power.
[0112] Communication between the control object configuration / emulator and the signal converter
[0113] The communication between the control object configuration / emulator and the signal converter is achieved via Ethernet interconnection, realizing a one-to-many connection. The transmission protocol adopted is Modbus TCP. The analog input data packet format is shown in Table 1, and the analog output data packet format is shown in Table 2.
[0114] Table 1. Modbus TCP Protocol Read Analog Input Data Packet Format
[0115]
[0116]
[0117] Table 2 Modbus TCP Protocol Analog Output Data Packet Format
[0118]
[0119] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.
[0120] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The solutions in the embodiments of this application can be implemented in various computer languages, such as the object-oriented programming language Java and the interpreted scripting language JavaScript.
[0121] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0122] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0123] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1The steps of the function specified in one or more boxes.
[0124] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.
[0125] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A simulation method for controlled objects in process industry control systems, applied to a simulation system for controlled objects in process industry control systems, characterized in that: The method includes, Obtain the actual composition parameters and component information of the control system to be simulated, and establish an initial simulation model of the controlled object by combining the configuration function; Based on the logical relationships and information transmission methods between the components of the control system to be simulated, the initial control object simulation model is corrected and improved. The corrected and improved simulation model of the control object is logically connected to the control system to realize the simulation of the control object; The system includes: a controlled object configuration unit (100), a network switch unit (200), a signal conversion unit (300), and a controller unit (400). The controlled object configuration unit (100) is used to establish a simulation model of the controlled object based on the actual composition parameters and component information of the control system to be simulated; A network switch unit (200) is used to connect the controlled object configuration unit (100) and the signal conversion unit (300). The signal conversion unit (300) is used to convert the signal transmitted from the network switch unit (200) and / or the signal transmitted from the controller unit (400) and realize the signal transmission; The controller unit (400) is used to calculate the digital signal transmitted by the signal conversion unit (300) and obtain the corresponding control command; The controlled object configuration unit (100) includes a configuration function module (101), a compilation and linking function module (102), a simulation logic target file module (103), a debugging and running function module (104), and a touch screen module (105). The user obtains the actual composition parameters and component information of the control system to be simulated from the configuration unit (100) of the controlled object, and then calls the corresponding function module of the configuration function module (101) through the touch screen module (105), and names the function module accordingly. The name includes the name in the actual control system to be simulated corresponding to the function module. The configuration function module (101) includes automatic connection and manual connection. The automatic connection includes the basic connection of the function module carried in the configuration function module (101) and the self-updating part of the connection after manual connection. The manual connection includes user deletion of connections and / or addition of connections. When a user performs a manual connection operation, the configuration function module (101) automatically records the manual connection operation and updates it to the automatic connection operation. When the user calls it again, the automatic module uses the updated connection operation. When a user performs a call operation through the touch screen module (105), it is determined that the called function module in the configuration function module (101) uses automatic connection; If the user ends the operation of calling the touch screen module (105), the compilation and linking function module (102) directly sorts and detects errors in the simulation control system that the user has built. When a user performs operations to delete or / and add connections through the touch screen module (105), it is determined that the called function module in the configuration function module (101) uses manual connection. If the user ends the operation of calling the touch screen module (105), the compilation and linking function module (102) waits for the manual connection end instruction. If the manual connection end instruction is obtained, the simulation control system to be built by the user is sorted and error detected. The controlled object configuration unit (100) also includes, The compilation and linking function module (102) sorts and detects errors in the user-created control system to be simulated, and compiles the sorting and error detection results into a target binary file and stores it in the simulation logic target file module (103). The sorting includes obtaining the connection weights and module weight values between calling modules in different configuration function modules (101) based on the actual composition parameters and component information of different control systems to be simulated; If a module's weight value is greater than 0.2, it is classified as a first-class module. If a module's weight value is less than 0.2 but greater than 0.05, it is classified as a second-class module. If a module's weight value is less than 0.05, it is classified as a third-class module. All connections between first-class modules are first-level connections. The connection between a first-class module and a second-class module is a second-level connection. The connection between a first-class module and a third-class module is a third-level connection. The connection between second-class modules is a second-level connection. The connection between a second-class module and a third-class module is a third-level connection. The error detection includes circuit detection and module detection of the established control system to be simulated. By sending a detection signal to any module and monitoring the transmission of the detection signal, the real-time status of different modules and different connections can be determined.
2. The simulation method for controlled objects in process industry control systems as described in claim 1, characterized in that: The network switch unit (200) includes, When the user inputs parameters of the simulation control system through the touch screen module (105) and the configuration function module (101), the debugging and running function module (104) calls the target binary file in the simulation logic target file module (103), performs simulation calculations on the parameters configured in the target binary file, obtains the corresponding simulation parameter output, and configures the IP address and channel number of the simulation parameter output. Once the configuration is complete, the debug run function module (104) encapsulates the simulation parameter output through the modbus-TCP protocol, and sends the encapsulated simulation parameter output to the network switch unit (200) through the configured simulation parameter output IP address and channel number.
3. The simulation method for controlled objects in process industry control systems as described in claim 2, characterized in that: The signal conversion unit (300) includes, At least one signal conversion module AI type and at least one signal conversion module AO type, the signal conversion module AI type sends parameter data to the network switch unit (200), and the signal conversion module AO type receives parameter data transmitted from the network switch unit (200); When the parameter data transmitted from the network switch unit (200) is received, the signal conversion module AO converts the parameter data transmitted from the network switch unit (200) into DC current and outputs the current through the configured channel; The current magnitude is between 4 and 20 mA, and the current magnitude is linearly controlled with respect to the parameter data to be output, and the current magnitude remains constant until the next parameter data arrives.
4. The simulation method for control objects in process industry control systems as described in claim 3, characterized in that: The controller unit (400) includes, The system includes at least one I / O module AO type, at least one I / O module AI type, an internal digital network, a current-to-voltage conversion circuit, an analog-to-digital converter, and a controller module. The I / O modules AO type and AI type are connected and have the same number. When the I / O module AI receives current information from the signal conversion module AO, the I / O module AI converts the received current information into a voltage quantity through a current-to-voltage conversion circuit, and the voltage quantity is in the range of 1~5V. Then, the voltage is converted into a digital quantity through an analog-to-digital converter and transmitted to the controller module through the internal network of the controller unit (400). When a digital quantity is input to the controller module, the controller module obtains the output control quantity according to a preset control algorithm. If the output control quantity is obtained, the controller unit (400) starts the internal digital network and converts the output control quantity into a current of 4~20mA.
5. The simulation method for control objects in process industry control systems as described in claim 4, characterized in that: The controller unit (400) also includes, The I / O module AO converts the output control quantity into a 4~20mA current and transmits it to the corresponding signal conversion module AI according to the channel number, and sends the output control quantity through the 4~20mA current. The signal conversion module AI converts the 4~20mA current into a 1~5V voltage through a current-to-voltage conversion circuit, then converts it into a digital quantity through an analog-to-digital converter, and transmits it to the network switch unit (200). The network switch unit (200) then transmits the digital quantity to the debugging and operation function module (104) of the controlled object configuration unit (100). The debugging and operation function module (104) uses the output control quantity as the input of the control system to be simulated and performs cyclic calculations.
6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method of claim 1.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the method of claim 1.