CN116880373A - Control object simulation method and system for process industrial control system - Google Patents

Control object simulation method and system for process industrial control system Download PDF

Info

Publication number
CN116880373A
CN116880373A CN202310707893.2A CN202310707893A CN116880373A CN 116880373 A CN116880373 A CN 116880373A CN 202310707893 A CN202310707893 A CN 202310707893A CN 116880373 A CN116880373 A CN 116880373A
Authority
CN
China
Prior art keywords
module
control system
connection
simulation
control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310707893.2A
Other languages
Chinese (zh)
Inventor
张栋良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Electric Power University
Original Assignee
Shanghai Electric Power University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Electric Power University filed Critical Shanghai Electric Power University
Priority to CN202310707893.2A priority Critical patent/CN116880373A/en
Publication of CN116880373A publication Critical patent/CN116880373A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • G05B19/41885Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM] characterised by modeling, simulation of the manufacturing system
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/32Operator till task planning
    • G05B2219/32339Object oriented modeling, design, analysis, implementation, simulation language
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a control object simulation method and a control object simulation system for a flow industrial control system, wherein the control object simulation method and the control object simulation system comprise the steps of obtaining actual composition parameters and component information of a control system to be simulated, and establishing an initial control object simulation model by combining a configuration function; correcting and perfecting the initial control object simulation model according to the logic relation and the information transmission mode among the components of the control system to be simulated; and logically connecting the control object simulation model after error correction and completion with a control system to realize the simulation of the control object. The application has the characteristics of wide application range, abundant simulation function algorithm modules and the like, can realize closed-loop control simulation teaching and test of a control system, and can serve policy optimization and controller parameter setting of the control system.

Description

Control object simulation method and system for process industrial control system
Technical Field
The application relates to the technical field of control object simulation for a flow industrial control system, in particular to a control object simulation method and a control object simulation system for the flow industrial control system.
Background
In the process industrial production of electric power, chemical industry, smelting and the like, a Distributed Control System (DCS), a Programmable Logic Controller (PLC) and other control systems detect on-site process parameters through sensors, output instructions are obtained through calculation of the controllers, and then the parameters of working media such as water, steam and the like are controlled through executing mechanisms such as pumps, valves and heaters. In the teaching and test process of the control system (DCS, PLC, etc.), a virtual control loop is required to be formed, so that the test of the control strategy and the setting of the controller parameters are completed.
In this process, a virtual control object is indispensable. In the teaching and testing of the present control system, there are two main forms: firstly, a real control system is connected with a simple entity control object; the other is that the digital controller is in butt joint with the digital simulation object. In the first form, simulation control objects for teaching or experiment must be greatly simplified due to the complexity limitation of control objects in reality, and it is difficult to reflect the characteristics of real control objects. For the second form, the control object can be represented by a mathematical model and a software method, and the characteristics of the control object are close to those of the real control object, but devices such as I/O channels of DCS and PLC are not participated in the control object, and the characteristics of the devices cannot be reflected in teaching and experiments.
Disclosure of Invention
This section is intended to outline some aspects of embodiments of the application and to briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section as well as in the description of the application and in the title of the application, which may not be used to limit the scope of the application.
The present application has been made in view of the above-described problems occurring in the prior art.
Therefore, the application provides a control object simulation method and a control object simulation system for a flow industrial control system, which can solve the problems in the background technology.
In order to solve the technical problems, the application provides a control object simulation method for a process industrial control system, which comprises the following steps:
acquiring actual composition parameters and component information of a control system to be simulated, and establishing an initial control object simulation model by combining a configuration function;
correcting and perfecting the initial control object simulation model according to the logic relation and the information transmission mode among the components of the control system to be simulated;
and logically connecting the control object simulation model after error correction and completion with a control system to realize the simulation of the control object.
A control object simulation system for a process industrial control system is characterized in that: comprises a controlled object configuration unit, a network switch unit, a signal conversion unit and a controller unit,
the controlled object configuration unit is used for establishing a controlled object simulation model according to actual composition parameters and component information of the to-be-simulated control system;
the network switch unit is used for connecting the controlled object configuration unit and the signal conversion unit;
the signal conversion unit is used for converting the signals transmitted by the network switch unit or/and the signals transmitted by the controller unit and realizing the transmission of the signals;
and the controller unit is used for calculating the digital quantity signal transmitted by the signal conversion unit and acquiring a corresponding control instruction.
As a preferable scheme of the control object simulation system facing the flow industrial control system, the application comprises the following steps: the controlled object configuration unit comprises a configuration function module, a compiling and linking function module, a simulation logic target file module, a debugging and running function module and a touch screen module,
the user calls the function module corresponding to the configuration function module through the touch screen module according to the actual composition parameters and the component information of the to-be-simulated control system acquired by the controlled object configuration unit, and names the function module pertinently, wherein the names comprise names in the actual to-be-simulated control system corresponding to the function module;
the configuration function module comprises automatic connection and manual connection, wherein the automatic connection comprises basic connection of the function module carried in the configuration function module and self-updating part connection after the manual connection, and the manual connection comprises user deletion connection or/and addition connection;
when the user performs manual connection operation, the configuration function module automatically records the manual connection operation and updates the manual connection operation to the automatic connection operation, and when the user calls next time, the automatic module uses the updated connection operation;
when the user only performs calling operation through the touch screen module, the called function module in the configuration function module is determined to be automatically connected;
if the user finishes the touch screen module calling operation, the compiling and linking function module directly sorts and detects errors of the control system to be simulated after the user establishes the control system to be simulated;
when the user performs deleting connection or/and adding connection operation through the touch screen module, the called function module in the configuration function module is determined to use manual connection;
and if the user finishes the touch screen module calling operation, the compiling and linking function module waits for a manual connection ending instruction, and if the manual connection ending instruction is acquired, sequencing and error detection are carried out on the to-be-simulated control system after the user is established.
As a preferable scheme of the control object simulation system facing the flow industrial control system, the application comprises the following steps: the controlled object configuration unit further comprises,
the compiling and linking function module is used for realizing sequencing and error detection on a control system to be simulated established by a user, compiling a result after sequencing and error detection to form a target binary file, and storing the target binary file into the simulation logic target file module;
the sequencing comprises the steps of obtaining connection weights and module weight values among calling modules in different groups of functional modules according to actual composition parameters and component information of different to-be-simulated control systems;
when the weight value of a certain module is greater than 0.2, the module is an equal-level module, when the weight value of the certain module is less than 0.2 and greater than 0.05, the module is a second-level module, when the weight value of the certain module is less than 0.05, the module is a third-level module, the connection between the equal-level module and the second-level module is a first-level connection, the connection between the equal-level module and the third-level module is a third-level connection, the connection between the second-level module and the second-level module is a second-level connection, and the connection between the second-level module and the third-level module is a third-level connection;
the error detection comprises line detection and module detection of the established control system to be simulated, and the real-time states of different modules and different connections are determined by sending detection signals to any module and monitoring the transmission condition of the detection signals.
As a preferable scheme of the control object simulation system facing the flow industrial control system, the application comprises the following steps: the network switch unit comprises a network switch unit,
when a user inputs parameters of a control system to be simulated through the touch screen module and the configuration function module, the debugging operation function module calls a target binary file in the simulation logic target file module, and obtains corresponding simulation parameter output by performing simulation operation on the parameters configured in the target binary file, and configures an IP address and a channel number of the simulation parameter output;
and after the configuration is completed, the debugging operation functional module encapsulates the simulation parameter output through a modbus-TCP protocol, and sends the encapsulated simulation parameter output to the network switch unit through the IP address and the channel number of the configured simulation parameter output.
As a preferable scheme of the control object simulation system facing the flow industrial control system, the application comprises the following steps: the signal conversion unit comprises a signal conversion unit which comprises,
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 the parameter data transmitted by the network switch unit;
when receiving the parameter data transmitted from the network switch unit, the signal conversion module AO converts the parameter data transmitted from the network switch unit into direct current, and outputs the current through the configured channel;
the current is controlled to be linear with the parameter data to be output, and the current is kept unchanged until the next parameter data arrives.
As a preferable scheme of the control object simulation system facing the flow industrial control system, the application comprises the following steps: the controller unit may comprise a controller unit configured to control the controller unit,
the system comprises 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, wherein the I/O module AO type is connected with the signal conversion module AI type and is consistent in quantity, and the I/O module AI type is connected with the signal conversion module AO type and is consistent in quantity;
when the I/O module AI type receives the current information transmitted by the signal conversion module AO type, the I/O module AI type converts the received current information into voltage quantity through a current-to-voltage conversion circuit, the voltage quantity ranges from 1 v to 5v, and the voltage is converted into digital quantity through an analog quantity-to-digital quantity converter and then is transmitted to a controller module through a controller unit internal network;
when the digital quantity is used as an input value to be input into the controller module, the controller module obtains an output control quantity according to a preset control algorithm, and if the output control quantity is obtained, the controller unit starts an internal digital network and converts the output control quantity into current with the size of 4-20 mA.
As a preferable scheme of the control object simulation system facing the flow industrial control system, the application comprises the following steps: the controller unit may further comprise a controller unit configured to control the controller unit,
the I/O module AO transmits the 4-20 mA current converted by the output control quantity to the corresponding signal conversion module AI according to the channel number, and the output control quantity is sent through the 4-20 mA current;
the signal conversion module AI converts the current of 4-20 mA into voltage of 1-5V through a current-to-voltage conversion circuit, then converts the voltage into digital quantity through an analog quantity-to-digital quantity converter, transmits the digital quantity to the network switch unit, and transmits the digital quantity to a debugging operation functional module of a controlled object configuration unit through the network switch unit, and the debugging operation functional module takes the output control quantity as the input of a to-be-simulated control system again and carries out cyclic calculation.
A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method as described above when executing the computer program.
A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method as described above.
The application has the beneficial effects that: the application provides a control object simulation method and system for a process industrial control system, comprising a configuration and simulator of a 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 realize control closed loop. The application has the characteristics of wide application range, abundant simulation function algorithm modules and the like, can realize closed-loop control simulation teaching and test of a control system, and can serve policy optimization and controller parameter setting of the control system.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. Wherein:
FIG. 1 is a flow chart of a method and system for simulating control objects of a process-oriented industrial control system according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a control object simulation method and system for a process industrial control system according to an embodiment of the present application;
FIG. 3 is a second system schematic diagram of a control object simulation method and system for a process industrial control system according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a dual-tank simulation system for a control object simulation method and system for a process industrial control system according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a control object simulation method and system for a process industrial control system according to an embodiment of the present application;
FIG. 6 is a schematic configuration diagram of an analog input module of a control object simulation method and system for a process industrial control system according to an embodiment of the present application;
FIG. 7 is a schematic configuration diagram of an analog output module of a control object simulation method and system for a process industrial control system according to an embodiment of the present application;
fig. 8 is an internal structure diagram of a computer device of a control object simulation method and system for a process industrial control system according to an embodiment of the present application.
Detailed Description
So that the manner in which the above recited objects, features and advantages of the present application can be understood in detail, a more particular description of the application, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application, but the present application may be practiced in other ways other than those described herein, and persons skilled in the art will readily appreciate that the present application is not limited to the specific embodiments disclosed below.
Further, reference herein to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic can be included in at least one implementation of the application. The appearances of the phrase "in one embodiment" in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments.
While the embodiments of the present application have been illustrated and described in detail in the drawings, the cross-sectional view of the device structure is not to scale in the general sense for ease of illustration, and the drawings are merely exemplary and should not be construed as limiting the scope of the application. In addition, the three-dimensional dimensions of length, width and depth should be included in actual fabrication.
Also in the description of the present application, it should be noted that the orientation or positional relationship indicated by the terms "upper, lower, inner and outer", etc. are based on the orientation or positional relationship shown in the drawings, are merely for convenience of describing the present application and simplifying the description, and do not indicate or imply that the apparatus or elements referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present application. Furthermore, the terms "first, second, or third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
The terms "mounted, connected, and coupled" should be construed broadly in this disclosure unless otherwise specifically indicated and defined, such as: can be fixed connection, detachable connection or integral connection; it may also be a mechanical connection, an electrical connection, or a direct connection, or may be indirectly connected through an intermediate medium, or may be a communication between two elements. The specific meaning of the above terms in the present application will be understood in specific cases by those of ordinary skill in the art.
Example 1
Referring to fig. 1-8, a first embodiment of the present application provides a control object simulation method and system for a process industry control system, including:
acquiring actual composition parameters and component information of a control system to be simulated, and establishing an initial control object simulation model by combining a configuration function;
furthermore, according to the logic relation and information transmission mode between the components of the control system to be simulated, the initial control object simulation model is corrected and perfected;
furthermore, the control object simulation model after error correction and completion is logically connected with the control system, so that the control object simulation is realized.
In a preferred embodiment, a control object simulation system for a process industry control 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 configured to implement establishment of a controlled object simulation model according to actual composition parameters and component information of a control system to be simulated;
the network switch unit 200 is configured to connect the controlled object configuration unit 100 and the signal conversion unit 300;
a signal conversion unit 300, configured to convert a signal transmitted from the network switch unit 200 or/and a signal transmitted from the controller unit 400, and implement signal transmission;
the controller unit 400 is configured to calculate the digital quantity signal transmitted by the signal conversion unit 300, and obtain a corresponding control instruction.
The controlled object configuration unit 100 includes a configuration function module 101, a compiling link function module 102, a simulation logic object file module 103, a debugging running function module 104 and a touch screen module 105,
the user calls the function module corresponding to the configuration function module 101 through the touch screen module 105 according to the actual composition parameters and the component information of the to-be-simulated control system acquired by the controlled object configuration unit 100, and names the function module pertinently, wherein the names comprise names in the to-be-simulated control system corresponding to the function module;
specifically, the configuration function module 101 includes an automatic connection and a manual connection, the automatic connection includes a basic connection of the function module carried in the configuration function module 101 and a self-updating part connection after the manual connection, and the manual connection includes a user deletion connection or/and an addition connection;
further, after the user performs the manual connection operation, the configuration function module 101 automatically records the manual connection operation and updates the manual connection operation to the automatic connection operation, and when the user calls the automatic module next time, the automatic module uses the updated connection operation;
further, when the user only performs the calling operation through the touch screen module 105, it is determined that the called function module in the configuration function module 101 uses the automatic connection;
further, if the user finishes the operation of the touch screen module 105, the compiling link function module 102 directly sorts and detects errors of the control system to be simulated after the user establishes the control system;
further, when the user performs the operations of deleting the connection and/or adding the connection through the touch screen module 105, it is determined that the called function module in the configuration function module 101 uses the manual connection;
further, if the user ends the operation of the touch screen module 105, the compiling link function module 102 waits for a manual connection end instruction, and if the manual connection end instruction is obtained, the user orders and detects errors of the to-be-simulated control system after the user is established.
It should be noted that, the controlled object configuration unit 100 further includes a compiling link function module 102 for implementing sequencing and error detection on the to-be-simulated control system established by the user, and compiling the results after sequencing and error detection to form a target binary file, and storing the target binary file in the simulation logic target file module 103;
further, the sorting includes obtaining connection weights and module weight values among calling modules in the different groups of functional modules 101 according to actual composition parameters and component information of different control systems to be simulated;
it should be noted that when the weight value of a certain module is greater than 0.2, the module is an first-class module, when the weight value of a certain module is less than 0.2 and greater than 0.05, the module is a second-class module, when the weight value of a certain module is less than 0.05, the module is a third-class module, the connection between the first-class module and the second-class module is a first-class connection, the connection between the first-class module and the third-class module is a third-class connection, the connection between the second-class module and the second-class module is a second-class connection, and the connection between the second-class module and the third-class module is a third-class connection;
it should be noted that the error detection includes line detection and module detection of the established control system to be simulated, and by sending detection signals to any module, the transmission condition of the detection signals is monitored at the same time, and the real-time states of different modules and different connections are determined.
It should be noted that, when the first module or/and the first-level connection detects an error, the compiling link function module 102 sends a first-level error warning to the touch screen module 105, and displays the module or the connection name with the error in the screen of the touch screen module 105, and waits for the user to repair the corresponding module compiling code or/and the basic connection mode of the configuration function module 101;
it should be noted that, when the second module or/and the second-level connection detects an error, the compiling link function module 102 sends a second-level error warning to the touch screen module 105, and displays the module or the connection name with the error in the screen of the touch screen module 105, waits for the user to call the corresponding module of the new configuration function module 101 in the background, and repairs the basic connection mode;
it should be noted that, when the third module or/and the third connection detects an error, the compiling link function module 102 sends a third error warning to the touch screen module 105, and displays the module or the connection name with the error in the screen of the touch screen module 105, and waits for the user to call a new configuration function module 101 and the corresponding module or/and repair the basic connection mode;
it should be noted that, when the user inputs parameters of the control system to be simulated through the touch screen module 105 and the configuration function module 101, the network switch unit 200 includes that the debug operation function module 104 invokes the target binary file in the simulation logic target file module 103, obtains the corresponding simulation parameter output by performing the simulation operation on the parameters configured in the target binary file, and configures the IP address and the channel number of the simulation parameter output;
further, when the configuration is completed, the debug operation 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 IP address and the channel number of the configured simulation parameter output.
Further, the signal conversion unit 300 includes at least one signal conversion module AI type and at least one signal conversion module AO type, where the signal conversion module AI type sends parameter data to the network switch unit 200, and the signal conversion module AO type receives the parameter data transmitted from the network switch unit 200;
further, when receiving the parameter data transmitted from the network switch unit 200, the signal conversion module AO type converts the parameter data transmitted from the network switch unit 200 into direct current, and outputs the current through the configured channel;
it should be noted that the current magnitude is between 4 and 20mA, and the current magnitude is controlled to be linear with the parameter data to be output, and the current magnitude is kept unchanged until the next parameter data arrives.
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, where the I/O module AO type is connected to the signal conversion module AI type and the number is identical, and the I/O module AI type is connected to the signal conversion module AO type and the number is identical;
further, when the AI type of the I/O module receives the current information transmitted from the AO type of the signal conversion module, the AI type of the I/O module converts the received current information into a voltage quantity through the current-to-voltage conversion circuit, and the voltage quantity ranges from 1 v to 5v, and then converts the voltage into a digital quantity through the analog quantity-to-digital quantity converter, and then the digital quantity is transmitted to the controller module through the internal network of the controller unit 400;
further, when the digital quantity is input as an input value to the controller module, the controller module obtains an output control quantity according to a preset control algorithm, and 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-20 mA.
It should be noted that, the controller unit 400 further includes that the I/O module AO type transmits the 4-20 mA current converted from the output control amount to the corresponding signal conversion module AI type according to the channel number, and sends the output control amount through the 4-20 mA current;
further, the signal conversion module AI converts the current of 4-20 mA into the voltage of 1-5V through the current-to-voltage conversion circuit, then converts the voltage into the digital value through the analog-to-digital converter, and transmits the digital value to the network switch unit 200, and transmits the digital value to the debugging operation function module 104 of the controlled object configuration unit 100 through the network switch unit 200, and the debugging operation function module 104 re-uses the output control value as the input of the to-be-simulated control system and performs the cyclic calculation.
The above unit modules may be embedded in hardware or independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above units.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure thereof may be as shown in fig. 8. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program, when executed by the processor, implements a control object simulation method for a process-oriented industrial control system. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring actual composition parameters and component information of a control system to be simulated, and establishing an initial control object simulation model by combining a configuration function;
correcting and perfecting the initial control object simulation model according to the logic relation and the information transmission mode among the components of the control system to be simulated;
and logically connecting the control object simulation model after error correction and completion with a control system to realize the simulation of the control object.
Example 2
Referring to fig. 1-8, for one embodiment of the present application, a control object simulation method and system for a process industrial control system are provided, and in order to verify the beneficial effects of the present application, scientific demonstration is performed through a comparison experiment.
Taking the liquid level control of the double-capacity water tank as an example, the human-computer interface of the controlled object configuration/simulator is shown in fig. 4.
Fig. 4 shows a simulation system structure with double water tanks as control objects, numbers of each module are arranged above each module, each module is connected by an arrow connection line, and the logical relationship and the output and output transfer relationship of operation are represented.
The No. 1 module is a virtual regulating valve, the input parameter KD is the valve opening, the signal comes from an AO channel of an opening instruction of the control system, and the signal is connected to the No. 10 AI module of the control system, and the input parameter IN is an input relative flow value and is determined by the output of the precursor module. The parameters of the virtual regulator valve may be adjusted through a parameter adjustment window. As shown in fig. 5, the relationship between the valve opening and the relative flow rate can be edited by dragging a point on the curve.
The No. 2 module is a virtual water pump and is used for setting a lift, and the output quantity comprises the maximum flow.
3. The No. 4 module is a virtual water tank, the input is water inflow, and the self parameters comprise the area of the cylindrical bottom, the height, the sectional area of the water outlet and the like. The water level in the water tank is calculated by accumulating the difference between the inflow amount and the outflow amount per unit time. The calculation result is sent to the AI channel of the control system through the system 11 # AO module.
The number 10 module is an analog input module, corresponds to an AI-type hardware signal conversion module, and realizes a connection relationship with hardware by configuring an IP address and a port number, as shown in fig. 6.
And the No. 11 module analog quantity output module corresponds to the AO type hardware signal conversion module, and realizes the connection relation with hardware by configuring an IP address and a port number, as shown in FIG. 7.
The No. 9 module is a virtual heater, and the water is heated by fixed or variable electric power.
Communication between control object configuration/simulator and signal converter
The communication Ethernet interconnection between the control object configuration/simulator and the signal converter realizes one-to-many connection. The transmission protocol takes Modbus TCP. The analog input packet format is shown in table 1 and the analog output packet format is shown in table 2.
Table 1Modbus TCP protocol read analog input data packet format
Table 2Modbus TCP protocol analog output data packet format
It should be noted that the above embodiments are only for illustrating the technical solution of the present application and not for limiting the same, and although the present application has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that the technical solution of the present application may be modified or substituted without departing from the spirit and scope of the technical solution of the present application, which is intended to be covered in the scope of the claims of the present application.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein. The scheme in the embodiment of the application can be realized by adopting various computer languages, such as object-oriented programming language Java, an transliteration script language JavaScript and the like.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may 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, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (10)

1. A control object simulation method for a process industrial control system is characterized in that: comprising the steps of (a) a step of,
acquiring actual composition parameters and component information of a control system to be simulated, and establishing an initial control object simulation model by combining a configuration function;
correcting and perfecting the initial control object simulation model according to the logic relation and the information transmission mode among the components of the control system to be simulated;
and logically connecting the control object simulation model after error correction and completion with a control system to realize the simulation of the control object.
2. A control object simulation system for a process industrial control system is characterized in that: comprises 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 for establishing a controlled object simulation model according to actual composition parameters and component information of the control system to be simulated;
a network switch unit (200) for connecting the controlled object configuration unit (100) and the signal conversion unit (300);
the signal conversion unit (300) is used for converting the signals transmitted by the network switch unit (200) or/and the signals transmitted by the controller unit (400) and realizing the transmission of the signals;
and the controller unit (400) is used for calculating the digital quantity signal transmitted by the signal conversion unit (300) and acquiring a corresponding control instruction.
3. The control object simulation system for a process-oriented industrial control system according to claim 2, wherein: the controlled object configuration unit (100) comprises a configuration function module (101), a compiling 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 calls the function module corresponding to the configuration function module (101) through the touch screen module (105) according to the actual composition parameters and the component information of the to-be-simulated control system acquired by the controlled object configuration unit (100), and names the function module in a targeted manner, wherein the names comprise names in the actual to-be-simulated control system corresponding to the function module;
the configuration function module (101) comprises automatic connection and manual connection, wherein the automatic connection comprises basic connection of the function module carried in the configuration function module (101) and self-updating part connection after the manual connection, and the manual connection comprises user deletion connection or/and addition connection;
after the user performs the manual connection operation, the configuration function module (101) automatically records the manual connection operation and updates the manual connection operation to the automatic connection operation, and the automatic module uses the updated connection operation when the user calls next time;
when the user only performs calling operation through the touch screen module (105), the called function module in the configuration function module (101) is determined to be connected automatically;
if the user finishes the calling operation of the touch screen module (105), the compiling and linking function module (102) directly sorts and detects errors of the control system to be simulated after the user establishes the control system to be simulated;
when the user performs deleting connection or/and adding connection operation through the touch screen module (105), the called function module in the configuration function module (101) is determined to use manual connection;
and if the user finishes the calling operation of the touch screen module (105), the compiling and linking function module (102) waits for a manual connection ending instruction, and if the manual connection ending instruction is acquired, sequencing and error detection are carried out on the to-be-simulated control system after the user is established.
4. The control object simulation system for a process-oriented industrial control system according to claim 3, wherein: the controlled object configuration unit (100) further comprises,
the compiling and linking function module (102) is used for realizing sequencing and error detection on a to-be-simulated control system established by a user, compiling a result after sequencing and error detection to form a target binary file, and storing the target binary file into the simulation logic target file module (103);
the sequencing comprises the steps of obtaining connection weights and module weight values among calling modules in different groups of functional modules (101) according to actual composition parameters and component information of different to-be-simulated control systems;
when the weight value of a certain module is greater than 0.2, the module is an equal-level module, when the weight value of the certain module is less than 0.2 and greater than 0.05, the module is a second-level module, when the weight value of the certain module is less than 0.05, the module is a third-level module, the connection between the equal-level module and the second-level module is a first-level connection, the connection between the equal-level module and the third-level module is a third-level connection, the connection between the second-level module and the second-level module is a second-level connection, and the connection between the second-level module and the third-level module is a third-level connection;
the error detection comprises line detection and module detection of the established control system to be simulated, and the real-time states of different modules and different connections are determined by sending detection signals to any module and monitoring the transmission condition of the detection signals.
5. The control object simulation system for a process-oriented industrial control system according to claim 4, wherein: the network switch unit (200) comprises,
when a user inputs parameters of a control system to be simulated through the touch screen module (105) and the configuration function module (101), the debugging operation function module (104) calls a target binary file in the simulation logic target file module (103), and obtains corresponding simulation parameter output by performing simulation operation on the parameters configured in the target binary file, and configures an IP address and a channel number of the simulation parameter output;
when the configuration is completed, the debug operation function module (104) encapsulates the simulation parameter output through a modbus-TCP protocol, and sends the encapsulated simulation parameter output to the network switch unit (200) through the IP address and channel number of the configured simulation parameter output.
6. The control object simulation system for a process-oriented industrial control system according to claim 5, wherein: the signal conversion unit (300) includes,
at least one signal conversion module AI type transmitting parameter data to the network switch unit (200), and at least one signal conversion module AO type receiving parameter data transmitted from the network switch unit (200);
when receiving the 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 direct current, and outputs the current through the configured channel;
the current is controlled to be linear with the parameter data to be output, and the current is kept unchanged until the next parameter data arrives.
7. The control object simulation system for a process-oriented industrial control system according to claim 6, wherein: the controller unit (400) comprises,
the system comprises 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, wherein the I/O module AO type is connected with the signal conversion module AI type and is consistent in quantity, and the I/O module AI type is connected with the signal conversion module AO type and is consistent in quantity;
when the I/O module AI type receives the current information transmitted by the signal conversion module AO type, the I/O module AI type converts the received current information into voltage quantity through a current-to-voltage conversion circuit, the voltage quantity ranges from 1 v to 5v, and the voltage is converted into digital quantity through an analog quantity-to-digital quantity converter and then is transmitted to a controller module through an internal network of a controller unit (400);
when the digital quantity is input into the controller module as an input value, the controller module acquires an output control quantity according to a preset control algorithm, and if the output control quantity is acquired, the controller unit (400) starts an internal digital network and converts the output control quantity into a current with the size of 4-20 mA.
8. The control object simulation system for a process-oriented industrial control system according to claim 7, wherein: the controller unit (400) further comprises,
the I/O module AO transmits the 4-20 mA current converted by the output control quantity to the corresponding signal conversion module AI according to the channel number, and the output control quantity is sent through the 4-20 mA current;
the signal conversion module AI type converts the current of 4-20 mA into voltage of 1-5V through a current-to-voltage conversion circuit, then converts the voltage into digital quantity through an analog quantity-to-digital quantity converter, transmits the digital quantity into the network switch unit (200), and transmits the digital quantity into the debugging operation functional module (104) of the controlled object configuration unit (100) through the network switch unit (200), and the debugging operation functional module (104) takes the output control quantity as the input of a to-be-simulated control system again and carries out cyclic calculation.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of claim 1 when executing the computer program.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of claim 1.
CN202310707893.2A 2023-06-14 2023-06-14 Control object simulation method and system for process industrial control system Pending CN116880373A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310707893.2A CN116880373A (en) 2023-06-14 2023-06-14 Control object simulation method and system for process industrial control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310707893.2A CN116880373A (en) 2023-06-14 2023-06-14 Control object simulation method and system for process industrial control system

Publications (1)

Publication Number Publication Date
CN116880373A true CN116880373A (en) 2023-10-13

Family

ID=88255787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310707893.2A Pending CN116880373A (en) 2023-06-14 2023-06-14 Control object simulation method and system for process industrial control system

Country Status (1)

Country Link
CN (1) CN116880373A (en)

Similar Documents

Publication Publication Date Title
US10379527B2 (en) Automatic loop testing for a process control loop
US7024665B2 (en) Control systems and methods for translating code from one format into another format
Barth et al. Automated generation of simulation models for control code tests
CN102478797B (en) Monitoring system with configurable communication protocol
CN204790550U (en) Nuclear power DCS platform testing arrangement based on simulation system
CN102890453B (en) System and method for functional block instantiation
US20040193287A1 (en) Method for offline-parametering of a field device of the process automation technology
US11644827B2 (en) Method for improving the measuring performance of automation field devices
US20160246294A1 (en) System for Flexible Operation of an Automated Plant
CN104155972A (en) Mechanical engineering electronic controller parameter debugging method
CN105652841A (en) Intelligent programmable logic controller
WO2015149595A1 (en) Iec61850-based communication simulation method for insulation on-line monitoring device
CN108139725A (en) For verifying the system and method for the security logic of causality matrix
CN110703741A (en) Multifunctional communication debugging equipment
CN102033540B (en) System for testing automobile instrument with a controller area network (CAN) bus and testing method thereof
CN114460925B (en) Automatic test method for CAN interface HIL of electric automobile controller
CN108363368A (en) Run method and automated system, the field device and controller of automated system
CN104834285B (en) Implementation method of the Diagonal Recurrent Neural Networks Controller in multi-platform
CN116880373A (en) Control object simulation method and system for process industrial control system
EP3729217A1 (en) Method for facilitating control system testing and simulation
CN105955234B (en) Tuning for Controllable Pitch Propeller controller test platform based on enhancing virtual reality technology
CN116295587A (en) Sensor simulation semi-automatic test system and method
CN114023477B (en) Computerized regulation system and control system for nuclear power plant
CN109949956A (en) A kind of control systems of nuclear power plant high load capacity working condition simulation method and system
CN104571081A (en) Nuclear power diversified driving system verifying device and verifying method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination