WO2023160082A1 - Method and apparatus for displaying running logic of distributed control system, device, and storage medium - Google Patents

Method and apparatus for displaying running logic of distributed control system, device, and storage medium Download PDF

Info

Publication number
WO2023160082A1
WO2023160082A1 PCT/CN2022/135199 CN2022135199W WO2023160082A1 WO 2023160082 A1 WO2023160082 A1 WO 2023160082A1 CN 2022135199 W CN2022135199 W CN 2022135199W WO 2023160082 A1 WO2023160082 A1 WO 2023160082A1
Authority
WO
WIPO (PCT)
Prior art keywords
logic diagram
target
logic
information
file
Prior art date
Application number
PCT/CN2022/135199
Other languages
French (fr)
Chinese (zh)
Other versions
WO2023160082A9 (en
Inventor
罗幸明
王博
李德华
戴晓华
Original Assignee
浙江中控技术股份有限公司
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 浙江中控技术股份有限公司 filed Critical 浙江中控技术股份有限公司
Publication of WO2023160082A1 publication Critical patent/WO2023160082A1/en
Publication of WO2023160082A9 publication Critical patent/WO2023160082A9/en

Links

Images

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/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • 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/33Director till display
    • G05B2219/33273DCS distributed, decentralised controlsystem, multiprocessor
    • 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]

Definitions

  • the present application relates to the technical field of industrial control, in particular, to a distributed control system operation logic display method, device, equipment and storage medium.
  • DCS Distributed Control System
  • control logic program when the control logic program is downloaded to the controller in the DCS system, the controller provides calculation functions according to the control logic program, and there is a problem that the control logic and calculation data of the DCS system cannot be displayed when the DCS system is running. It is difficult to intuitively monitor the changes in the operating status of field instruments or sensors in the DCS system.
  • the object of the present invention is to provide a method, device, equipment and storage medium for displaying the operation logic of a distributed control system in order to solve the problem in the prior art that the control logic of the DCS system cannot be displayed during operation. , and calculation data and other information issues, so that users can intuitively monitor the changes in the operating status of field instruments or sensors in the DCS system.
  • the embodiment of the present application provides a distributed control system operating logic display method, which is characterized in that it is applied to the monitoring equipment in the distributed control system, and the distributed control system includes: a controller and the monitoring equipment, the A display interface is provided on the monitoring device, and the method includes:
  • the logic diagram file associated with the target control is obtained;
  • the logic diagram file includes: identification information of each element in the target logic diagram corresponding to the target control And the association information between each element, and the attribute information of the target logic diagram, the target logic diagram is used to characterize the control logic operated by the distributed control system and the real-time value during the calculation process of the control logic, the control logic running on said controller;
  • the method further includes:
  • the target logic diagram is determined, and the target logic diagram includes: the identification information of each element and the association information between each element, and the target logic diagram. Attribute information of the logic diagram, each element is used to provide calculation logic or identify each device in the distributed control system;
  • determining the target logic diagram in response to the user's frame selection operation on the function block diagram in the configuration interface includes:
  • the identification information of each element in the function block diagram selected by the frame selection operation and the association relationship between each element determine the identification information of each element in the target logic diagram and the association information between each element.
  • performing serialization processing on the identification information of each element in the target logic diagram, the association information between elements, and the attribute information of the target logic diagram, and generating the logic diagram file includes:
  • the logic diagram file is generated according to the first byte stream sequence and the second byte stream sequence.
  • the deserializing the logic diagram file to generate the target logic diagram includes:
  • the target logic diagram is generated according to the type information of the elements, the association information between the elements, and the attribute information of the target logic diagram.
  • the acquiring the logic diagram file associated with the target control identifier includes:
  • the logic diagram file is read from the storage path corresponding to the target control.
  • the method before reading the logic diagram file from the storage path corresponding to the target control according to the identification of the target control, the method further includes:
  • the embodiment of the present application also provides a distributed control system operating logic display device, which is applied to the monitoring equipment in the distributed control system.
  • the distributed control system includes: a controller and the monitoring equipment.
  • the monitoring equipment The display interface is provided on the device, and the device includes:
  • An acquisition module configured to respond to a user's trigger operation on the target control on the display interface, and acquire a logic diagram file associated with the target control;
  • the logic diagram file includes: a target logic diagram corresponding to the target control
  • the identification information of each element, the association information between each element, and the attribute information of the target logic diagram, and the target logic diagram is used to represent the control logic of the distributed control system and the calculation process of the control logic real-time values, the control logic running on the controller;
  • a generating module configured to deserialize the logic diagram file to generate the target logic diagram
  • An output module configured to output the target logic diagram to the display interface.
  • the acquisition module is also used for:
  • the target logic diagram is determined, and the target logic diagram includes: the identification information of each element and the association information between each element, and the target logic diagram. Attribute information of the logic diagram, each element is used to provide calculation logic or identify each device in the distributed control system;
  • the acquisition module is also used for:
  • the generating module is also used for:
  • the logic diagram file is generated according to the first byte stream sequence and the second byte stream sequence.
  • the generating module is also used for:
  • the target logic diagram is generated according to the type information of the elements, the association information between the elements, and the attribute information of the target logic diagram.
  • the acquisition module is also used for:
  • the logic diagram file is read from the storage path corresponding to the target control.
  • the device also includes:
  • the establishment module is used to respond to the user's operation of selecting the target control and the logic diagram file, and establish the corresponding relationship between the target control and the logic diagram file.
  • the embodiment of the present application also provides an electronic device, including: a processor, a storage medium, and a bus.
  • the storage medium stores machine-readable instructions executable by the processor.
  • the processor communicates with the storage medium through a bus, and the processor executes the machine-readable instructions to perform the steps of the method provided in the first aspect.
  • the embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method provided in the first aspect are executed. .
  • the embodiment of the present application provides a distributed control system operating logic display method, device, equipment and storage medium, which are applied to the monitoring equipment in the distributed control system.
  • the decentralized control system includes: a controller and monitoring equipment, and a display interface is provided on the monitoring equipment.
  • the method includes: responding to the trigger operation of the target control on the display interface by the user, and obtaining a logic diagram file associated with the target control; the logic diagram file includes: the identification information of each element in the target logic diagram corresponding to the target control and the relationship between each element The correlation information between and the attribute information of the target logic diagram.
  • the target logic diagram is used to represent the control logic of the distributed control system and the real-time value in the calculation process of the control logic.
  • the control logic runs on the controller; reverse the sequence of the logic diagram file process to generate the target logic diagram; output the target logic diagram to the display interface.
  • This scheme proposes a method for displaying the operation logic of the distributed control system, mainly by providing a display interface for visually displaying the function block diagram, responding to the user's trigger operation on the target control in the display interface, to obtain the information related to the target control Associated pre-generated logic diagram file, which is generated based on the frame selection operation of all (or part) of the user's pre-configured function block diagram; and deserializes the obtained logic diagram file Process, generate the target logic diagram, and output the target logic diagram to the display interface at the same time, so that the user can view all (or some) of the function blocks that have been pre-configured according to each device in the DCS system from the target logic diagram Data references in the diagram, function block connection logic, and real-time data references, real-time values of function blocks and other information can also be viewed.
  • FIG. 1 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a method for displaying the operation logic of a distributed control system provided by an embodiment of the present application;
  • Fig. 3 is a schematic diagram 1 of the display interface provided by the embodiment of the present application.
  • FIG. 4 is a second schematic diagram of the display interface provided by the embodiment of the present application.
  • Fig. 5 is a schematic flow diagram of another distributed control system operation logic display method provided by the embodiment of the present application.
  • FIG. 6 is a schematic diagram of a configuration interface provided by an embodiment of the present application.
  • Fig. 7 is a schematic flowchart of another method for displaying the operation logic of the distributed control system provided by the embodiment of the present application.
  • Fig. 8 is a schematic flowchart of another method for displaying the operation logic of the distributed control system provided by the embodiment of the present application.
  • FIG. 9 is a schematic flow diagram of another distributed control system operation logic display method provided by the embodiment of the present application.
  • Fig. 10 is a schematic structural diagram of a distributed control system operation logic display device provided by the embodiment of the present application.
  • FBD Function Block Diagram
  • control logic program when the control logic program is downloaded to the controller in the DCS system, the controller provides calculation functions according to the control logic program, and there is a problem that the control logic and calculation data of the DCS system cannot be displayed when the DCS system is running. It is difficult to intuitively monitor the changes in the operating status of field instruments or sensors in the DCS system.
  • this application proposes a method for displaying the operation logic of the distributed control system, mainly by providing a display interface for visually displaying the function block diagram, and responding to the user's response to the display interface.
  • the target control performs a trigger operation to obtain a pre-generated logic diagram file associated with the target control, and the logic diagram file is generated based on a frame selection operation on all (or part) of the function block diagram configured in advance by the user; And deserialize the obtained logic diagram file to generate the target logic diagram, and output the target logic diagram to the display interface at the same time, so that the user can view from the target logic diagram according to each device in the DCS system.
  • Data references and function block connection logic in all (or part of) function block diagrams after configuration, and information such as real-time data references and real-time values of function blocks can also be viewed.
  • on-site industrial control personnel to view the target logic diagram of each device in the distributed control system in real time in the display interface, and understand the control logic, control logic calculation process and data calculation intermediate value of each device from the target logic diagram And other information, so as to assist the on-site industrial control personnel to accurately judge the current operating status of the DCS system, and achieve the effect of improving the safety of the decentralized control system operation.
  • Fig. 1 is a schematic structural diagram of an electronic device provided in the embodiment of the present application; the monitoring device in the DCS system provided in the present embodiment may be the electronic device shown in Fig. 1, as shown in Fig. 1, the electronic device may be A processing device such as a computer or a server is used to implement the distributed control system operation logic presentation method provided in this application.
  • the electronic device includes: a memory 101 and a processor 102 .
  • the memory 101 and the processor 102 are electrically connected to each other directly or indirectly to realize data transmission or interaction.
  • these components can be electrically connected to each other through one or more communication buses or signal lines.
  • Stored in the memory 101 are software function modules stored in the memory 101 in the form of software or firmware (firmware), and the processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 101, That is, the method for displaying the operation logic of the distributed control system in the embodiment of the present application is implemented.
  • memory 101 can be, but not limited to, random access memory (Random Access Memory, RAM), read-only memory (Read Only Memory, ROM), programmable read-only memory (Programmable Read-OnlyMemory, PROM), erasable In addition to read-only memory (Erasable Programmable Read-Only Memory, EPROM) and so on.
  • RAM Random Access Memory
  • ROM Read Only Memory
  • PROM Programmable Read-OnlyMemory
  • EPROM Erasable Programmable Read-Only Memory
  • the processor 102 may be an integrated circuit chip with signal processing capability.
  • the above-mentioned processor 102 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP) and the like.
  • CPU Central Processing Unit
  • NP Network Processor
  • FIG. 1 is only for illustration, and the electronic device may also include more or less components than those shown in FIG. 1 , or have a configuration different from that shown in FIG. 1 .
  • Each component shown in Fig. 1 may be implemented by hardware, software or a combination thereof.
  • the distributed control system operation logic display method provided by this application is applied to the monitoring equipment deployed on the electronic equipment provided in the above embodiment.
  • the distributed control system includes: a controller and monitoring equipment, and a display interface is provided on the monitoring equipment. .
  • the order of some steps in the distributed control system operation logic presentation method may be exchanged according to actual needs, or some steps may also be omitted or deleted.
  • the method includes:
  • the logic diagram file includes: the identification information of each element in the target logic diagram corresponding to the target control, the association information between each element, and the attribute information of the target logic diagram.
  • the target logic diagram is used to represent the control of the operation of the distributed control system
  • the logic and control logic calculate the real-time values in the process, and the control logic runs on the controller.
  • the logic diagram is a pre-configured all (or part) function block diagram according to each device in the DCS system, and each element in the logic diagram is all (or part) function block diagrams after configuration Data references, function blocks.
  • the identification information between each element is the data reference or the attribute information of the function block, such as the tag number of the function block and the tag name bound to the data reference;
  • the association information between the elements is all after configuration (or Part) in the function block diagram of the connection relationship between function blocks and function blocks, function blocks and data references.
  • data references can be bound to tag numbers (that is, on-site process variables in the DCS system, such as temperature, air pressure, etc.), and the connection relationship between function blocks and between function blocks and data references can be referenced through input and output. Foot connection.
  • connection relationship between function blocks and between function blocks and data references can represent the transfer relationship between the input and output values of each device in the DCS system.
  • the attribute information of the target logic diagram may include: the size, name, and coordinate points of the logic diagram.
  • the logic diagram file may be a file in .pic format. That is, structured data such as the identification information of each element in the logic diagram, the relationship information between elements, and the attribute information of the logic diagram can be converted into the .pic format according to a certain coding standard.
  • At least one control such as opening logic diagram 1 and opening logic diagram 2 is displayed on the display interface.
  • the logic diagram 1 is used to represent the control logic of the field instrument 1 in the DCS system when it is running
  • the logic diagram 2 is used to represent the control logic of the sensor 1 in the DCS system when it is running.
  • the monitoring device responds to the user’s trigger operation to open the logic diagram 1 in the display interface, and obtains the target control corresponding to the "open logic diagram 1".
  • Associated logic diagram files When the user needs to view the control logic of the field instrument 1, the monitoring device responds to the user’s trigger operation to open the logic diagram 1 in the display interface, and obtains the target control corresponding to the "open logic diagram 1". Associated logic diagram files.
  • deserialize the data in the specified format in the logic diagram file convert the data in the specified format in the logic diagram file into structured data, and generate the target logic diagram according to the converted structured data.
  • Figure 4 which is the target logic diagram generated after deserialization.
  • the target logic diagram generated above can be output to the display interface, so that the on-site industrial control personnel can view all the pre-configured ( or part of) the data references and function block connection logic in the FBD function block diagram, and you can also view real-time data references, real-time values of function blocks and other information, so as to assist on-site industrial control personnel to accurately judge the current operating status of the DCS system and achieve It has the effect of improving the security of the operation of the distributed control system.
  • the data reference bound to the first input pin of the ADD function block is AI00020000.PV, for example, AI00020000.PV is used for identification
  • AI00020000.PV is used for identification
  • the value generated when the field instrument 1 is running in the DCS system, that is, the real-time value of the current field instrument 1 running is 1.0000.
  • the embodiment of the present application provides a method for displaying the operation logic of the distributed control system, which is applied to the monitoring equipment in the distributed control system.
  • the decentralized control system includes: a controller and monitoring equipment, and a display interface is provided on the monitoring equipment.
  • the method Including: responding to the trigger operation of the target control on the display interface by the user, and obtaining the logic diagram file associated with the target control; the logic diagram file includes: the identification information of each element in the target logic diagram corresponding to the target control and the relationship between each element Correlation information and attribute information of the target logic diagram.
  • the target logic diagram is used to represent the control logic of the distributed control system and the real-time value in the calculation process of the control logic.
  • the control logic runs on the controller; the logic diagram file is deserialized , generate the target logic diagram; output the target logic diagram to the display interface.
  • This scheme proposes a method for displaying the operation logic of the distributed control system, mainly by providing a display interface for visually displaying the function block diagram, responding to the user's trigger operation on the target control in the display interface, to obtain the information related to the target control
  • the associated pre-generated logic diagram file which is generated based on the selection operation of all (or part) of the user's pre-configured function block diagram; and deserializes the acquired logic diagram file Process, generate the target logic diagram, and output the target logic diagram to the display interface at the same time, so that the user can view all (or some) of the function blocks that have been pre-configured according to each device in the DCS system from the target logic diagram Data references in the diagram, function block connection logic, and real-time data references, real-time values of function blocks and other information can also be viewed.
  • each logic diagram file is the same electronic device as the monitoring device in the above-mentioned DCS system, or it may be a different electronic device.
  • the device that generates each logic diagram file is electronic device A
  • each logic diagram file generated by electronic device A can be sent to the monitoring device, or sent to a specified buffer area, and then the monitoring device can retrieve the files from the monitoring device according to the acquisition instruction.
  • Each logic diagram file is obtained from the cache area.
  • trigger operation on the target control on the display interface further include:
  • the user can call out the required function blocks or data references from the function block library displayed in the configuration interface according to the connection relationship of each device in the distributed control system and the design requirements.
  • the user configuration is completed after the block is connected with the data reference, and the function block diagram for the operation of the distributed control system is generated.
  • information such as layout coordinates, types, attributes, and operating parameters of function blocks, and information such as coordinates, types, and binding bit numbers of data references are recorded.
  • function block supports the setting of input and output pin properties, activation status, parameter information, execution sequence, etc.
  • data references can be bound to tags (on-site process variables, such as temperature of thermometers, pressure values of pressure gauges, etc.)
  • Function blocks and function blocks, and function blocks and data references can be connected through input and output pins to indicate the transfer of input and output values between the two.
  • the target logic diagram includes: the identification information of each element, the association information between each element, and the attribute information of the target logic diagram, and each element is used to provide calculation logic or identify each device in the distributed control system.
  • the function block diagram after the above configuration can also be framed to divide the function block diagram into multiple Part, that is, each sub-function block diagram obtained after division is called a logic diagram.
  • the coordinates and size of the target logic diagram can be obtained after the frame selection operation is completed, through the coordinates, each function block coordinates, the coordinates of each data reference, and the coordinates of each connection line, which function blocks, data references, and connection lines are framed can be calculated, and the positions of these elements relative to the target logic frame can be calculated.
  • the user frame can be determined Selected target logic diagram.
  • a serialization method can be used to record the identification information of each element in the target logic diagram, the association information between elements, and the target
  • the structured data such as the attribute information of the logic diagram is serialized to obtain a series of binary byte streams after processing, and the binary byte stream is stored in a document to generate the logic corresponding to the target logic diagram Diagram files, so that the generated logic diagram files can be saved in storage devices or exchange data with other systems.
  • the target logic diagram is determined, including:
  • S701. Determine the attribute information of the target logic diagram according to the position and size of the area selected by the frame selection operation.
  • the attribute information of the target logic graph may include: height, width, and coordinates of each vertex.
  • the framed area selected by the frame selection operation is a rectangle, and the position and size of the framed area can be determined according to the frame selection operation.
  • the position of the selected area is the coordinates of each vertex corresponding to the area
  • the size of the area is the length and width corresponding to the area. That is, the position of the selected area can be used as the coordinates of each vertex in the target logic diagram, and the area size of the selected area can be used as the height and width of the target logic diagram.
  • S702. Determine the identification information of each element and the association information between elements in the target logic diagram according to the identification information of each element in the function block diagram selected by the frame selection operation and the association relationship between each element.
  • part (or all) of the functional block diagrams falling within the above-mentioned framed area are determined, and the identification information of each element in the framed functional block diagram and the as the identification information of each element in the target logic diagram and the association information between each element; then, according to the identification information of each element in the target logic diagram, the association information between each element, and the target logic diagram attribute information to get the selected target logic diagram.
  • the user can perform multiple frame selection operations in the configuration interface according to actual business monitoring requirements, so as to obtain multiple logic diagrams by frame selection.
  • the selected logic diagram includes a certain data reference, and the data reference is bound to a reference tag (field process variable), another logic diagram associated with it can also be opened through the reference tag to improve The viewing efficiency of each logic diagram.
  • the identification information of each element in the target logic diagram, the association information between elements, and the attribute information of the target logic diagram are serialized to generate a logic diagram file, include:
  • S801. Determine the type information of each element according to the identification information of each element in the target logic diagram and the mapping relationship between the identification information of each element and the type information.
  • the serialization process converts different types of object data into binary byte stream serialization for transmission.
  • the type of each element can be determined according to the identification information of each element in the target logic diagram and the mapping relationship between the identification information of each element and the type information; then, the type information of each element (such as Function block type, data reference type, etc.) corresponding to the first serialization rule, serialize the associated information between each element, obtain the first byte stream sequence after serialization of each element, and generate the first
  • the byte stream sequence can reflect the associated information of each element (that is, the pixel coordinates of the lines between interrelated elements) and/or information such as the position of each element in the serialized data.
  • the second serialization rule and the above-mentioned first serialization rule are two different serialization rules.
  • the association information between the elements can be serialized to obtain the second byte stream sequence after the serialization of each element.
  • the generated second byte stream sequence may be added to the first byte stream sequence to obtain a binary byte stream sequence, and the binary byte stream sequence may be used as a logic diagram file.
  • the logic diagram file is deserialized to generate a target logic diagram, including:
  • the deserialization process is to deserialize the binary byte stream sequence generated above to generate structured data.
  • the first deserialization rule is an inverse processing process of the first serialization rule.
  • the first byte stream sequence and the second byte stream sequence are deserialized according to different deserialization rules, so as to obtain the identification information of each element in the target logic diagram, and the relationship between each element.
  • the second deserialization rule and the above-mentioned first serialization rule are two different deserialization rules, and the second deserialization rule is an inverse processing process of the second serialization rule.
  • the target region where the target logic diagram is located can be drawn first according to the attribute information of the target logic diagram; then, according to the type information of each element, and the mapping relationship between the identification information and the type information of each element, Find the identification information of each element in the target logic diagram; finally, combine the identification information of each element in the target logic diagram and the association information between each element, connect the associated elements in the target area, To restore the same layout state and connection logic of the function block diagram as the configured function block diagram, that is, generate the target logic diagram.
  • the identification information of each element obtained after deserialization includes: the attribute information of the function block or data reference, which includes the tag name of the function block tag and the data reference binding, through the function block tag can be
  • the real-time value of each pin of the function block can be queried, and the data reference bit number can be queried for the real-time value of the bit number, and these real-time values are displayed on the positions of the respective pins according to the coordinates to realize the real-time value of the logic diagram show.
  • function blocks and data reference pins can be displayed in the logic diagram to set the alarm limit.
  • the pin or function block can flash according to the color level, providing color alarm function, and assisting in judging the operation of the DCS system state.
  • obtain the logic diagram file associated with the identification of the target control including:
  • the logic diagram file is read from the storage path corresponding to the target control.
  • the display interface provided by the monitoring device can display multiple controls, and the logic diagram file associated with the identification of each control can be stored in a designated buffer area, so that the target control can be selected according to the identification information of each control. Read the logic diagram file in the corresponding storage path to ensure the accuracy of the obtained logic diagram file.
  • the identification of the target control before reading the logic diagram file from the storage path corresponding to the target control, further include:
  • the device includes:
  • the obtaining module 1001 is used to respond to the trigger operation of the target control on the display interface by the user, and obtain the logic diagram file associated with the target control; the logic diagram file includes: the identification information of each element in the target logic diagram corresponding to the target control and each The correlation information between elements and the attribute information of the target logic diagram.
  • the target logic diagram is used to represent the control logic of the distributed control system and the real-time value in the calculation process of the control logic.
  • the control logic runs on the controller.
  • the generation module 1002 is configured to deserialize the logic diagram file to generate a target logic diagram.
  • the output module 1003 is used to output the target logic diagram to the display interface.
  • the acquisition module 1001 is also used for:
  • the target logic diagram includes: the identification information of each element and the association information between each element, and the attribute information of the target logic diagram, each element Used to provide calculation logic or to identify individual devices in a distributed control system.
  • the acquisition module 1001 is also used for:
  • the attribute information of the target logic diagram is determined.
  • the identification information of each element in the function block diagram selected by the frame selection operation and the association relationship between each element are determined.
  • the generating module 1002 is also used for:
  • the type information of each element is determined according to the identification information of each element in the target logic diagram and the mapping relationship between the identification information of each element and the type information.
  • the serialized first byte stream sequence is obtained.
  • a logic diagram file is generated according to the first byte stream sequence and the second byte stream sequence.
  • the generating module 1002 is also used for:
  • the first byte stream sequence in the logic diagram file is decoded to obtain the type information of each element and the association information between each element.
  • the second byte stream sequence in the logic diagram file is decoded to obtain the attribute information of the target logic diagram.
  • the target logic diagram is generated according to the type information of each element, the association information between each element, and the attribute information of the target logic diagram.
  • the acquisition module 1001 is also used for:
  • the device also includes:
  • the establishment module is used to respond to the user's operation of selecting the target control and the logic diagram file, and establish the corresponding relationship between the target control and the logic diagram file.
  • the above modules may be one or more integrated circuits configured to implement the above method, for example: one or more specific integrated circuits (Application Specific Integrated Circuit, referred to as ASIC), or, one or more microprocessors (digital signal processor, DSP for short), or, one or more Field Programmable Gate Arrays (Field Programmable Gate Array, FPGA for short), etc.
  • ASIC Application Specific Integrated Circuit
  • DSP digital signal processor
  • FPGA Field Programmable Gate Array
  • the processing element may be a general-purpose processor, such as a central processing unit (Central Processing Unit, CPU for short) or other processors that can call program codes.
  • these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC for short).
  • the present invention further provides a program product, such as a computer-readable storage medium, including a program, and the program is used to execute the foregoing method embodiments when executed by a processor.
  • a program product such as a computer-readable storage medium, including a program
  • the disclosed devices and methods can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to realize the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware, or in the form of hardware plus software functional units.
  • the above-mentioned integrated units implemented in the form of software functional units may be stored in a computer-readable storage medium.
  • the above-mentioned software functional units are stored in a storage medium, and include several instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to execute the program described in each embodiment of the present invention. part of the method.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), magnetic disk or optical disc, etc.

Abstract

The present invention relates to the technical field of industrial control, and provides a method and apparatus for displaying a running logic of a distributed control system, a device, and a storage medium. The method comprises: in response to a trigger operation of a user on a target control in a display interface, acquiring a logic diagram file associated with the target control (S201); deserializing the logic diagram file to generate a target logic diagram (S202); and outputting the target logic diagram to the display interface (S203). A display interface for visually displaying a function block diagram is provided, so that the user can view, from the target logic diagram, data references and function block connection logics in all (or some) function block diagrams which are pre-configured according to each device in the distributed control system, and can also view information such as a real-time data reference and a real-time value of a function block, thereby assisting the on-site industrial control personnel to accurately determine the current running state of the distributed control system, and achieving the effect of improving the running security of the distributed control system.

Description

分散控制系统运行逻辑展示方法、装置、设备及存储介质Distributed control system operating logic display method, device, equipment and storage medium 技术领域technical field
本申请涉及工业控制技术领域,具体而言,涉及一种分散控制系统运行逻辑展示方法、装置、设备及存储介质。The present application relates to the technical field of industrial control, in particular, to a distributed control system operation logic display method, device, equipment and storage medium.
背景技术Background technique
分散控制系统(Distributed Control System,简称DCS),是以微处理器为基础,采用控制功能分散、显示操作集中、兼顾分而自治和综合协调的设计原则的新一代仪表控制系统。Distributed Control System (DCS for short) is a new generation of instrument control system based on microprocessors, adopting the design principles of decentralized control functions, centralized display operations, and both division and autonomy and comprehensive coordination.
目前,主要是由用户根据DCS系统中的现场仪表或传感器等设计要求,将需要功能块或数据引用从功能块图(Function Block Diagram,简称FBD)的功能块库中调出,以生成DCS系统运行的功能块图,并对功能块图进行编译,编译通过后可以得到功能块图对应的控制逻辑程序;然后,再将控制逻辑程序下载到DCS系统的控制器中,在DCS控制器中运行该控制逻辑程序,以实现对DCS系统中各设备的控制。At present, it is mainly based on the design requirements of field instruments or sensors in the DCS system, and the required function blocks or data references are called out from the function block library of the Function Block Diagram (FBD) to generate the DCS system. Run the function block diagram, and compile the function block diagram. After the compilation is passed, the control logic program corresponding to the function block diagram can be obtained; then, the control logic program is downloaded to the controller of the DCS system and run in the DCS controller The control logic program is used to realize the control of each equipment in the DCS system.
但是,当控制逻辑程序被下载到DCS系统中的控制器后,控制器按照控制逻辑程序来提供运算功能,存在无法展示DCS系统运行时的控制逻辑、以及计算数据等信息的问题,导致用户很难直观地监控DCS系统中现场仪表或传感器等运行状态的变化情况。However, when the control logic program is downloaded to the controller in the DCS system, the controller provides calculation functions according to the control logic program, and there is a problem that the control logic and calculation data of the DCS system cannot be displayed when the DCS system is running. It is difficult to intuitively monitor the changes in the operating status of field instruments or sensors in the DCS system.
发明内容Contents of the invention
本发明的目的在于,针对上述现有技术中的不足,提供一种分散控制系统运行逻辑展示方法、装置、设备及存储介质,以便解决现有技术中存在的无法展示DCS系统运行时的控制逻辑、以及计算数据等信息的问题,使得用户能够直观地监控DCS系统中现场仪表或传感器等运行状态的变化情况。The object of the present invention is to provide a method, device, equipment and storage medium for displaying the operation logic of a distributed control system in order to solve the problem in the prior art that the control logic of the DCS system cannot be displayed during operation. , and calculation data and other information issues, so that users can intuitively monitor the changes in the operating status of field instruments or sensors in the DCS system.
为实现上述目的,本申请实施例采用的技术方案如下:In order to achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
第一方面,本申请实施例提供了一种分散控制系统运行逻辑展示方 法,其特征在于,应用于分散控制系统中的监控设备,所述分散控制系统包括:控制器以及所述监控设备,所述监控设备上提供展示界面,所述方法包括:In the first aspect, the embodiment of the present application provides a distributed control system operating logic display method, which is characterized in that it is applied to the monitoring equipment in the distributed control system, and the distributed control system includes: a controller and the monitoring equipment, the A display interface is provided on the monitoring device, and the method includes:
响应用户对所述展示界面上目标控件的触发操作,获取与所述目标控件所关联的逻辑图文件;所述逻辑图文件包括:与所述目标控件对应的目标逻辑图中各元素的标识信息以及各元素之间的关联信息、及所述目标逻辑图的属性信息,所述目标逻辑图用于表征所述分散控制系统运行的控制逻辑及所述控制逻辑计算过程中的实时值,所述控制逻辑运行于所述控制器;Responding to the trigger operation of the target control on the display interface by the user, the logic diagram file associated with the target control is obtained; the logic diagram file includes: identification information of each element in the target logic diagram corresponding to the target control And the association information between each element, and the attribute information of the target logic diagram, the target logic diagram is used to characterize the control logic operated by the distributed control system and the real-time value during the calculation process of the control logic, the control logic running on said controller;
对所述逻辑图文件进行反序列化处理,生成所述目标逻辑图;Deserializing the logic diagram file to generate the target logic diagram;
将所述目标逻辑图输出至所述展示界面上。Outputting the target logic diagram to the display interface.
可选地,所述响应用户对所述展示界面上目标控件的触发操作,获取与所述目标控件所关联的逻辑图文件之前,还包括:Optionally, before obtaining the logic diagram file associated with the target control in response to the trigger operation of the target control on the display interface by the user, the method further includes:
根据所述分散控制系统中各设备的连接关系,生成所述分散控制系统运行的功能块图;Generate a function block diagram of the operation of the distributed control system according to the connection relationship of each device in the distributed control system;
响应用户对组态界面中所述功能块图的框选操作,确定所述目标逻辑图,所述目标逻辑图中包括:各元素的标识信息以及各元素之间的关联信息、及所述目标逻辑图的属性信息,各元素用于提供计算逻辑或标识所述分散控制系统中的各设备;In response to the user's frame selection operation on the function block diagram in the configuration interface, the target logic diagram is determined, and the target logic diagram includes: the identification information of each element and the association information between each element, and the target logic diagram. Attribute information of the logic diagram, each element is used to provide calculation logic or identify each device in the distributed control system;
对所述目标逻辑图中各元素的标识信息以及各元素之间的关联信息、及所述目标逻辑图的属性信息进行序列化处理,生成所述逻辑图文件。Perform serialization processing on the identification information of each element in the target logic diagram, the association information between each element, and the attribute information of the target logic diagram, and generate the logic diagram file.
可选地,所述响应用户对组态界面中所述功能块图的框选操作,确定所述目标逻辑图,包括:Optionally, determining the target logic diagram in response to the user's frame selection operation on the function block diagram in the configuration interface includes:
根据所述框选操作所框选的区域位置以及区域大小,确定所述目标逻辑图的属性信息;Determine the attribute information of the target logic diagram according to the position and size of the region selected by the frame selection operation;
根据所述框选操作所框选的功能块图中各元素的标识信息以及各元 素之间的关联关系,确定所述目标逻辑图中各元素的标识信息以及各元素之间的关联信息。According to the identification information of each element in the function block diagram selected by the frame selection operation and the association relationship between each element, determine the identification information of each element in the target logic diagram and the association information between each element.
可选地,所述对所述目标逻辑图中各元素的标识信息以及各元素之间的关联信息、及所述目标逻辑图的属性信息进行序列化处理,生成所述逻辑图文件,包括:Optionally, performing serialization processing on the identification information of each element in the target logic diagram, the association information between elements, and the attribute information of the target logic diagram, and generating the logic diagram file includes:
根据所述目标逻辑图中各元素的标识信息、以及所述各元素的标识信息与类型信息的映射关系,确定所述各元素的类型信息;Determine the type information of each element according to the identification information of each element in the target logic diagram and the mapping relationship between the identification information of each element and type information;
根据与所述各元素的类型信息对应的第一序列化规则、以及所述各元素之间的关联信息,得到序列化后的第一字节流序列;Obtaining a serialized first byte stream sequence according to the first serialization rule corresponding to the type information of the elements and the association information between the elements;
根据与所述目标逻辑图的属性信息对应的第二序列化规则、以及所述目标逻辑图的属性信息,得到序列化后的第二字节流序列;Obtaining a serialized second byte stream sequence according to the second serialization rule corresponding to the attribute information of the target logic diagram and the attribute information of the target logic diagram;
根据所述第一字节流序列、以及所述第二字节流序列,生成所述逻辑图文件。The logic diagram file is generated according to the first byte stream sequence and the second byte stream sequence.
可选地,所述对所述逻辑图文件进行反序列化处理,生成所述目标逻辑图,包括:Optionally, the deserializing the logic diagram file to generate the target logic diagram includes:
采用与所述第一字节流序列对应的第一反序列化规则,对所述逻辑图文件中所述第一字节流序列进行解码,得到所述各元素的类型信息、以及所述各元素之间的关联信息;Using the first deserialization rule corresponding to the first byte stream sequence to decode the first byte stream sequence in the logic diagram file to obtain the type information of each element and the Association information between elements;
采用与所述第二字节流序列对应的第二反序列化规则,对所述逻辑图文件中所述第二字节流序列进行解码,得到所述目标逻辑图的属性信息;decoding the second byte stream sequence in the logical graph file by using a second deserialization rule corresponding to the second byte stream sequence, to obtain attribute information of the target logical graph;
根据所述各元素的类型信息、所述各元素之间的关联信息、以及所述目标逻辑图的属性信息,生成所述目标逻辑图。The target logic diagram is generated according to the type information of the elements, the association information between the elements, and the attribute information of the target logic diagram.
可选地,所述获取与所述目标控件的标识所关联的逻辑图文件,包括:Optionally, the acquiring the logic diagram file associated with the target control identifier includes:
根据所述目标控件的标识,从与所述目标控件对应的存储路径读取所述逻辑图文件。According to the identification of the target control, the logic diagram file is read from the storage path corresponding to the target control.
可选地,所述根据所述目标控件的标识,从与所述目标控件对应的存储路径读取所述逻辑图文件之前,还包括:Optionally, before reading the logic diagram file from the storage path corresponding to the target control according to the identification of the target control, the method further includes:
响应用户选择目标控件以及逻辑图文件的操作,建立所述目标控件与所述逻辑图文件的对应关系。In response to the user's operation of selecting the target control and the logic diagram file, a corresponding relationship between the target control and the logic diagram file is established.
第二方面,本申请实施例还提供了一种分散控制系统运行逻辑展示装置,应用于分散控制系统中的监控设备,所述分散控制系统包括:控制器以及所述监控设备,所述监控设备上提供展示界面,所述装置包括:In the second aspect, the embodiment of the present application also provides a distributed control system operating logic display device, which is applied to the monitoring equipment in the distributed control system. The distributed control system includes: a controller and the monitoring equipment. The monitoring equipment The display interface is provided on the device, and the device includes:
获取模块,用于响应用户对所述展示界面上目标控件的触发操作,获取与所述目标控件所关联的逻辑图文件;所述逻辑图文件包括:与所述目标控件对应的目标逻辑图中各元素的标识信息以及各元素之间的关联信息、及所述目标逻辑图的属性信息,所述目标逻辑图用于表征所述分散控制系统运行的控制逻辑及所述控制逻辑计算过程中的实时值,所述控制逻辑运行于所述控制器;An acquisition module, configured to respond to a user's trigger operation on the target control on the display interface, and acquire a logic diagram file associated with the target control; the logic diagram file includes: a target logic diagram corresponding to the target control The identification information of each element, the association information between each element, and the attribute information of the target logic diagram, and the target logic diagram is used to represent the control logic of the distributed control system and the calculation process of the control logic real-time values, the control logic running on the controller;
生成模块,用于对所述逻辑图文件进行反序列化处理,生成所述目标逻辑图;A generating module, configured to deserialize the logic diagram file to generate the target logic diagram;
输出模块,用于将所述目标逻辑图输出至所述展示界面上。An output module, configured to output the target logic diagram to the display interface.
可选地,所述获取模块,还用于:Optionally, the acquisition module is also used for:
根据所述分散控制系统中各设备的连接关系,生成所述分散控制系统运行的功能块图;Generate a function block diagram of the operation of the distributed control system according to the connection relationship of each device in the distributed control system;
响应用户对组态界面中所述功能块图的框选操作,确定所述目标逻辑图,所述目标逻辑图中包括:各元素的标识信息以及各元素之间的关联信息、及所述目标逻辑图的属性信息,各元素用于提供计算逻辑或标识所述分散控制系统中的各设备;In response to the user's frame selection operation on the function block diagram in the configuration interface, the target logic diagram is determined, and the target logic diagram includes: the identification information of each element and the association information between each element, and the target logic diagram. Attribute information of the logic diagram, each element is used to provide calculation logic or identify each device in the distributed control system;
对所述目标逻辑图中各元素的标识信息以及各元素之间的关联信息、及所述目标逻辑图的属性信息进行序列化处理,生成所述逻辑图文件。Perform serialization processing on the identification information of each element in the target logic diagram, the association information between each element, and the attribute information of the target logic diagram, and generate the logic diagram file.
可选地,所述获取模块,还用于:Optionally, the acquisition module is also used for:
根据所述框选操作所框选的区域位置以及区域大小,确定所述目标逻辑图的属性信息;Determine the attribute information of the target logic diagram according to the position and size of the region selected by the frame selection operation;
根据所述框选操作所框选的功能块图中各元素的标识信息以及各元素之间的关联关系,确定所述目标逻辑图中各元素的标识信息以及各元素之间的关联信息。Determine the identification information of each element in the target logic diagram and the association information between each element according to the identification information of each element in the function block diagram selected by the frame selection operation and the association relationship between each element.
可选地,所述生成模块,还用于:Optionally, the generating module is also used for:
根据所述目标逻辑图中各元素的标识信息、以及所述各元素的标识信息与类型信息的映射关系,确定所述各元素的类型信息;Determine the type information of each element according to the identification information of each element in the target logic diagram and the mapping relationship between the identification information of each element and type information;
根据与所述各元素的类型信息对应的第一序列化规则、以及所述各元素之间的关联信息,得到序列化后的第一字节流序列;Obtaining a serialized first byte stream sequence according to the first serialization rule corresponding to the type information of the elements and the association information between the elements;
根据与所述目标逻辑图的属性信息对应的第二序列化规则、以及所述目标逻辑图的属性信息,得到序列化后的第二字节流序列;Obtaining a serialized second byte stream sequence according to the second serialization rule corresponding to the attribute information of the target logic diagram and the attribute information of the target logic diagram;
根据所述第一字节流序列、以及所述第二字节流序列,生成所述逻辑图文件。The logic diagram file is generated according to the first byte stream sequence and the second byte stream sequence.
可选地,所述生成模块,还用于:Optionally, the generating module is also used for:
采用与所述第一字节流序列对应的第一反序列化规则,对所述逻辑图文件中所述第一字节流序列进行解码,得到所述各元素的类型信息、以及所述各元素之间的关联信息;Using the first deserialization rule corresponding to the first byte stream sequence to decode the first byte stream sequence in the logic diagram file to obtain the type information of each element and the Association information between elements;
采用与所述第二字节流序列对应的第二反序列化规则,对所述逻辑图文件中所述第二字节流序列进行解码,得到所述目标逻辑图的属性信息;decoding the second byte stream sequence in the logical graph file by using a second deserialization rule corresponding to the second byte stream sequence, to obtain attribute information of the target logical graph;
根据所述各元素的类型信息、所述各元素之间的关联信息、以及所述目标逻辑图的属性信息,生成所述目标逻辑图。The target logic diagram is generated according to the type information of the elements, the association information between the elements, and the attribute information of the target logic diagram.
可选地,所述获取模块,还用于:Optionally, the acquisition module is also used for:
根据所述目标控件的标识,从与所述目标控件对应的存储路径读取所述逻辑图文件。According to the identification of the target control, the logic diagram file is read from the storage path corresponding to the target control.
可选地,所述装置,还包括:Optionally, the device also includes:
建立模块,用于响应用户选择目标控件以及逻辑图文件的操作,建立所述目标控件与所述逻辑图文件的对应关系。The establishment module is used to respond to the user's operation of selecting the target control and the logic diagram file, and establish the corresponding relationship between the target control and the logic diagram file.
第三方面,本申请实施例还提供了一种电子设备,包括:处理器、存储介质和总线,所述存储介质存储有所述处理器可执行的机器可读指令,当电子设备运行时,所述处理器与所述存储介质之间通过总线通信,所述处理器执行所述机器可读指令,以执行如第一方面提供的所述方法的步骤。In the third aspect, the embodiment of the present application also provides an electronic device, including: a processor, a storage medium, and a bus. The storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, The processor communicates with the storage medium through a bus, and the processor executes the machine-readable instructions to perform the steps of the method provided in the first aspect.
第四方面,本申请实施例还提供了一种计算机可读存储介质,所述存储介质上存储有计算机程序,所述计算机程序被处理器运行时执行如第一方面提供的所述方法的步骤。In the fourth aspect, the embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method provided in the first aspect are executed. .
本申请的有益效果是:The beneficial effect of this application is:
本申请实施例提供一种分散控制系统运行逻辑展示方法、装置、设备及存储介质,应用于分散控制系统中的监控设备,分散控制系统包括:控制器以及监控设备,监控设备上提供展示界面,该方法包括:响应用户对展示界面上目标控件的触发操作,获取与目标控件所关联的逻辑图文件;逻辑图文件包括:与目标控件对应的目标逻辑图中各元素的标识信息以及各元素之间的关联信息、及目标逻辑图的属性信息,目标逻辑图用于表征分散控制系统运行的控制逻辑及控制逻辑计算过程中的实时值,控制逻辑运行于控制器;对逻辑图文件进行反序列化处理,生成目标逻辑图;将目标逻辑图输出至展示界面上。本方案提出一种分散控制系统运行逻辑展示方法,主要是通过提供了一种对功能块图进行可视化显示的展示界面,响应用户对展示界面中的目标控件进行触发操作,来获取与目标控件所关联的预先生成的逻辑图文件,该逻辑图文件是基于对用户预先组态后的功能块图的全部(或者部分)的框选操作后生成;并对获取到的逻辑图文件进行反序列化处理,生成目标逻辑图,同时将目标逻辑图输出至展示界面上,以便于用户能够从该目标逻辑图中查看到根据DCS系统中各设备进行预先组态后的全部(或者部分)的功能块 图中的数据引用、功能块连接逻辑,以及也可以查看实时数据引用、功能块的实时值等信息。这样,可以方便现场工控人员能够在展示界面中实时查看分散控制系统中各设备运行时的目标逻辑图,并从目标逻辑图中了解到各设备的控制逻辑、控制逻辑计算过程及数据计算中间值等信息,从而辅助现场工控人员准确地判断DCS系统当前的运行状态,达到了提高分散控制系统运行的安全性的效果。The embodiment of the present application provides a distributed control system operating logic display method, device, equipment and storage medium, which are applied to the monitoring equipment in the distributed control system. The decentralized control system includes: a controller and monitoring equipment, and a display interface is provided on the monitoring equipment. The method includes: responding to the trigger operation of the target control on the display interface by the user, and obtaining a logic diagram file associated with the target control; the logic diagram file includes: the identification information of each element in the target logic diagram corresponding to the target control and the relationship between each element The correlation information between and the attribute information of the target logic diagram. The target logic diagram is used to represent the control logic of the distributed control system and the real-time value in the calculation process of the control logic. The control logic runs on the controller; reverse the sequence of the logic diagram file process to generate the target logic diagram; output the target logic diagram to the display interface. This scheme proposes a method for displaying the operation logic of the distributed control system, mainly by providing a display interface for visually displaying the function block diagram, responding to the user's trigger operation on the target control in the display interface, to obtain the information related to the target control Associated pre-generated logic diagram file, which is generated based on the frame selection operation of all (or part) of the user's pre-configured function block diagram; and deserializes the obtained logic diagram file Process, generate the target logic diagram, and output the target logic diagram to the display interface at the same time, so that the user can view all (or some) of the function blocks that have been pre-configured according to each device in the DCS system from the target logic diagram Data references in the diagram, function block connection logic, and real-time data references, real-time values of function blocks and other information can also be viewed. In this way, it is convenient for on-site industrial control personnel to view the target logic diagram of each device in the distributed control system in real time in the display interface, and understand the control logic, control logic calculation process and data calculation intermediate value of each device from the target logic diagram And other information, so as to assist the on-site industrial control personnel to accurately judge the current operating status of the DCS system, and achieve the effect of improving the safety of the decentralized control system operation.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention, and thus It should be regarded as a limitation on the scope, and those skilled in the art can also obtain other related drawings based on these drawings without creative work.
图1为本申请实施例提供的一种电子设备的结构示意图;FIG. 1 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
图2为本申请实施例提供的一种分散控制系统运行逻辑展示方法的流程示意图;FIG. 2 is a schematic flowchart of a method for displaying the operation logic of a distributed control system provided by an embodiment of the present application;
图3为本申请实施例提供的展示界面的示意图一;Fig. 3 is a schematic diagram 1 of the display interface provided by the embodiment of the present application;
图4为本申请实施例提供的展示界面的示意图二;FIG. 4 is a second schematic diagram of the display interface provided by the embodiment of the present application;
图5为本申请实施例提供的另一种分散控制系统运行逻辑展示方法的流程示意图;Fig. 5 is a schematic flow diagram of another distributed control system operation logic display method provided by the embodiment of the present application;
图6为本申请实施例提供的组态界面的示意图;FIG. 6 is a schematic diagram of a configuration interface provided by an embodiment of the present application;
图7为本申请实施例提供的另一种分散控制系统运行逻辑展示方法的流程示意图;Fig. 7 is a schematic flowchart of another method for displaying the operation logic of the distributed control system provided by the embodiment of the present application;
图8为本申请实施例提供的又一种分散控制系统运行逻辑展示方法的流程示意图;Fig. 8 is a schematic flowchart of another method for displaying the operation logic of the distributed control system provided by the embodiment of the present application;
图9为本申请实施例提供的另一种分散控制系统运行逻辑展示方法的流程示意图;FIG. 9 is a schematic flow diagram of another distributed control system operation logic display method provided by the embodiment of the present application;
图10为本申请实施例提供的一种分散控制系统运行逻辑展示装置的 结构示意图。Fig. 10 is a schematic structural diagram of a distributed control system operation logic display device provided by the embodiment of the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,应当理解,本申请中附图仅起到说明和描述的目的,并不用于限定本申请的保护范围。另外,应当理解,示意性的附图并未按实物比例绘制。本申请中使用的流程图示出了根据本申请的一些实施例实现的操作。应该理解,流程图的操作可以不按顺序实现,没有逻辑的上下文关系的步骤可以反转顺序或者同时实施。此外,本领域技术人员在本申请内容的指引下,可以向流程图添加一个或多个其他操作,也可以从流程图中移除一个或多个操作。In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the appended The figures are only for the purpose of illustration and description, and are not used to limit the protection scope of the present application. Additionally, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate operations implemented in accordance with some embodiments of the application. It should be understood that the operations of the flowcharts may be performed out of order, and steps that have no logical context may be performed in reverse order or concurrently. In addition, those skilled in the art may add one or more other operations to the flowchart or remove one or more operations from the flowchart under the guidance of the content of the present application.
另外,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的选定实施例。基于本申请的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。In addition, the described embodiments are only some of the embodiments of the application, not all of the embodiments. The components of the embodiments of the application generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations. Accordingly, the following detailed description of the embodiments of the application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of the application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative efforts belong to the scope of protection of the present application.
需要说明的是,本申请实施例中将会用到术语“包括”,用于指出其后所声明的特征的存在,但并不排除增加其它的特征。It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features stated later, but does not exclude the addition of other features.
首先,在对本申请所提供的技术方案展开具体说明之前,先对本申请所涉及的相关背景进行简单说明。First of all, before the technical solution provided by the application is described in detail, the relevant background involved in the application will be briefly described.
在提出本申请方案之前,目前,主要是由用户根据DCS系统中的现场仪表或传感器等设计要求,将需要功能块或数据引用从功能块图(Function Block Diagram,简称FBD)功能块库中调出,并参照设计要求与系统规范填写参数表,将各功能块与现场过程变量连接后即完成用户组态,以生成DCS系统运行的功能块图;功能块图编译通过后得到功 能块图对应的控制逻辑程序;然后,再将控制逻辑程序下载到DCS系统的控制器中,在DCS控制器中运行该控制逻辑程序,以实现对DCS系统中各设备的控制,从而对DCS系统中各设备运行时状态进行辅助判断。Before the proposal of this application, at present, it is mainly based on the design requirements of field instruments or sensors in the DCS system that the user will call the required function blocks or data references from the Function Block Diagram (Function Block Diagram, referred to as FBD) function block library. out, and fill in the parameter table with reference to the design requirements and system specifications, and complete the user configuration after connecting each function block with the on-site process variable to generate the function block diagram of the DCS system operation; after the function block diagram is compiled, the corresponding function block diagram is obtained The control logic program; then, download the control logic program to the controller of the DCS system, and run the control logic program in the DCS controller to realize the control of each device in the DCS system, so as to control each device in the DCS system Runtime status for auxiliary judgment.
但是,当控制逻辑程序被下载到DCS系统中的控制器后,控制器按照控制逻辑程序来提供运算功能,存在无法展示DCS系统运行时的控制逻辑、以及计算数据等信息的问题,导致用户很难直观地监控DCS系统中现场仪表或传感器等运行状态的变化情况。However, when the control logic program is downloaded to the controller in the DCS system, the controller provides calculation functions according to the control logic program, and there is a problem that the control logic and calculation data of the DCS system cannot be displayed when the DCS system is running. It is difficult to intuitively monitor the changes in the operating status of field instruments or sensors in the DCS system.
为了解决上述现有技术中存在的技术问题,本申请提出一种分散控制系统运行逻辑展示方法,主要是通过提供了一种对功能块图进行可视化显示的展示界面,响应用户对展示界面中的目标控件进行触发操作,来获取与目标控件所关联的预先生成的逻辑图文件,该逻辑图文件是基于对用户预先组态后的功能块图的全部(或者部分)的框选操作后生成;并对获取到的逻辑图文件进行反序列化处理,生成目标逻辑图,同时将目标逻辑图输出至展示界面上,以便于用户能够从该目标逻辑图中查看到根据DCS系统中各设备进行预先组态后的全部(或者部分)的功能块图中的数据引用、功能块连接逻辑,以及也可以查看实时数据引用、功能块的实时值等信息。这样,可以方便现场工控人员能够在展示界面中实时查看分散控制系统中各设备运行时的目标逻辑图,并从目标逻辑图中了解到各设备的控制逻辑、控制逻辑计算过程及数据计算中间值等信息,从而辅助现场工控人员准确地判断DCS系统当前的运行状态,达到了提高分散控制系统运行的安全性的效果。In order to solve the technical problems in the above-mentioned prior art, this application proposes a method for displaying the operation logic of the distributed control system, mainly by providing a display interface for visually displaying the function block diagram, and responding to the user's response to the display interface. The target control performs a trigger operation to obtain a pre-generated logic diagram file associated with the target control, and the logic diagram file is generated based on a frame selection operation on all (or part) of the function block diagram configured in advance by the user; And deserialize the obtained logic diagram file to generate the target logic diagram, and output the target logic diagram to the display interface at the same time, so that the user can view from the target logic diagram according to each device in the DCS system. Data references and function block connection logic in all (or part of) function block diagrams after configuration, and information such as real-time data references and real-time values of function blocks can also be viewed. In this way, it is convenient for on-site industrial control personnel to view the target logic diagram of each device in the distributed control system in real time in the display interface, and understand the control logic, control logic calculation process and data calculation intermediate value of each device from the target logic diagram And other information, so as to assist the on-site industrial control personnel to accurately judge the current operating status of the DCS system, and achieve the effect of improving the safety of the decentralized control system operation.
图1为本申请实施例提供的一种电子设备的结构示意图;本实施例提供的DCS系统中的监控设备可以为图1所示的电子设备,如图1所示,该电子设备如可以是计算机或者服务器等处理设备,以用于实现本申请提供的分散控制系统运行逻辑展示方法。Fig. 1 is a schematic structural diagram of an electronic device provided in the embodiment of the present application; the monitoring device in the DCS system provided in the present embodiment may be the electronic device shown in Fig. 1, as shown in Fig. 1, the electronic device may be A processing device such as a computer or a server is used to implement the distributed control system operation logic presentation method provided in this application.
如图1所示,电子设备包括:存储器101、处理器102。存储器101、处理器102相互之间直接或间接地电性连接,以实现数据的传输或交互。 例如,这些元件相互之间可通过一条或多条通讯总线或信号线实现电性连接。As shown in FIG. 1 , the electronic device includes: a memory 101 and a processor 102 . The memory 101 and the processor 102 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines.
存储器101中存储有以软件或固件(firmware)的形式存储于存储器101中的软件功能模块,处理器102通过运行存储在存储器101内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现本申请实施例中的分散控制系统运行逻辑展示方法。Stored in the memory 101 are software function modules stored in the memory 101 in the form of software or firmware (firmware), and the processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 101, That is, the method for displaying the operation logic of the distributed control system in the embodiment of the present application is implemented.
其中,存储器101可以是,但不限于,随机存取存储器(Random Access Memory,RAM)、只读存储器(Read Only Memory,ROM)、可编程只读存储器(Programmable Read-OnlyMemory,PROM)、可擦除只读存储器(Erasable Programmable Read-Only Memory,EPROM)等。其中,存储器101用于存储程序,处理器102在接收到执行指令后,执行程序。Wherein, memory 101 can be, but not limited to, random access memory (Random Access Memory, RAM), read-only memory (Read Only Memory, ROM), programmable read-only memory (Programmable Read-OnlyMemory, PROM), erasable In addition to read-only memory (Erasable Programmable Read-Only Memory, EPROM) and so on. Wherein, the memory 101 is used to store programs, and the processor 102 executes the programs after receiving execution instructions.
处理器102可能是一种集成电路芯片,具有信号的处理能力。上述的处理器102可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(NetworkProcessor,NP)等。The processor 102 may be an integrated circuit chip with signal processing capability. The above-mentioned processor 102 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP) and the like.
可以理解,图1示出的结构仅为示意,电子设备还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。图1中所示的各组件可以采用硬件、软件或其组合实现。It can be understood that the structure shown in FIG. 1 is only for illustration, and the electronic device may also include more or less components than those shown in FIG. 1 , or have a configuration different from that shown in FIG. 1 . Each component shown in Fig. 1 may be implemented by hardware, software or a combination thereof.
如下将通过多个具体的实施例对本申请所提供的分散控制系统运行逻辑展示方法和对应产生的有益效果进行说明。The method for displaying the operation logic of the distributed control system provided by the present application and the corresponding beneficial effects will be described through multiple specific embodiments as follows.
参考图2所示为本申请提供的分散控制系统运行逻辑展示方法,应用于上述实施例提供的电子设备上部署的监控设备,分散控制系统包括:控制器以及监控设备,监控设备上提供展示界面。Referring to Figure 2, the distributed control system operation logic display method provided by this application is applied to the monitoring equipment deployed on the electronic equipment provided in the above embodiment. The distributed control system includes: a controller and monitoring equipment, and a display interface is provided on the monitoring equipment. .
应当理解,在其它实施例中分散控制系统运行逻辑展示方法其中部分步骤的顺序可以根据实际需要相互交换,或者其中的部分步骤也可以省略或删除。如图2所示,该方法包括:It should be understood that in other embodiments, the order of some steps in the distributed control system operation logic presentation method may be exchanged according to actual needs, or some steps may also be omitted or deleted. As shown in Figure 2, the method includes:
S201、响应用户对展示界面上目标控件的触发操作,获取与目标控件所关联的逻辑图文件。S201. Obtain a logic diagram file associated with the target control in response to a user's trigger operation on the target control on the display interface.
其中,逻辑图文件包括:与目标控件对应的目标逻辑图中各元素的标识信息以及各元素之间的关联信息、及目标逻辑图的属性信息,目标逻辑图用于表征分散控制系统运行的控制逻辑及控制逻辑计算过程中的实时值,控制逻辑运行于控制器。Among them, the logic diagram file includes: the identification information of each element in the target logic diagram corresponding to the target control, the association information between each element, and the attribute information of the target logic diagram. The target logic diagram is used to represent the control of the operation of the distributed control system The logic and control logic calculate the real-time values in the process, and the control logic runs on the controller.
可选地,逻辑图为根据DCS系统中各设备进行预先组态后的全部(或者部分)的功能块图,逻辑图中各元素为组态后的全部(或者部分)的功能块图中的数据引用、功能块。相应的,各元素之间的标识信息为数据引用或功能块的属性信息,如功能块位号及数据引用绑定的位号名称;各元素之间的关联信息为组态后的全部(或者部分)的功能块图中功能块与功能块之间、功能块与数据引用之间的连接关系。其中,数据引用可绑定位号(即,DCS系统中的现场过程变量,如温度、气压等),功能块与功能块之间、功能块与数据引用之间的连接关系可通过输入输出引脚连线连接。Optionally, the logic diagram is a pre-configured all (or part) function block diagram according to each device in the DCS system, and each element in the logic diagram is all (or part) function block diagrams after configuration Data references, function blocks. Correspondingly, the identification information between each element is the data reference or the attribute information of the function block, such as the tag number of the function block and the tag name bound to the data reference; the association information between the elements is all after configuration (or Part) in the function block diagram of the connection relationship between function blocks and function blocks, function blocks and data references. Among them, data references can be bound to tag numbers (that is, on-site process variables in the DCS system, such as temperature, air pressure, etc.), and the connection relationship between function blocks and between function blocks and data references can be referenced through input and output. Foot connection.
应理解,功能块与功能块之间、功能块与数据引用之间的连接关系,可以表征DCS系统中各设备的输入输出值在两者之间的传递关系。It should be understood that the connection relationship between function blocks and between function blocks and data references can represent the transfer relationship between the input and output values of each device in the DCS system.
可选地,目标逻辑图的属性信息可以包括:逻辑图的尺寸、名称及坐标点等。Optionally, the attribute information of the target logic diagram may include: the size, name, and coordinate points of the logic diagram.
示例性地,例如,逻辑图文件可以为.pic格式的文件。也即,可以将逻辑图中各元素的标识信息以及各元素之间的关联信息、及逻辑图的属性信息等这种结构化的数据按一定的编码规范转换成.pic格式。Exemplarily, for example, the logic diagram file may be a file in .pic format. That is, structured data such as the identification information of each element in the logic diagram, the relationship information between elements, and the attribute information of the logic diagram can be converted into the .pic format according to a certain coding standard.
如参考图3所示,展示界面上显示有打开逻辑图1、打开逻辑图2等至少一个控件。其中,逻辑图1用于表征DCS系统中现场仪表1运行时的控制逻辑,逻辑图2用于表征DCS系统中传感器1运行时的控制逻辑。As shown in FIG. 3 , at least one control such as opening logic diagram 1 and opening logic diagram 2 is displayed on the display interface. Among them, the logic diagram 1 is used to represent the control logic of the field instrument 1 in the DCS system when it is running, and the logic diagram 2 is used to represent the control logic of the sensor 1 in the DCS system when it is running.
在DCS系统的整个运行过程中,当用户需要查看现场仪表1的控制逻辑时,监控设备响应用户对展示界面中打开逻辑图1的触发操作,获取与“打开逻辑图1”这一目标控件所关联的逻辑图文件。During the entire operation of the DCS system, when the user needs to view the control logic of the field instrument 1, the monitoring device responds to the user’s trigger operation to open the logic diagram 1 in the display interface, and obtains the target control corresponding to the "open logic diagram 1". Associated logic diagram files.
S202、对逻辑图文件进行反序列化处理,生成目标逻辑图。S202. Perform deserialization processing on the logic diagram file to generate a target logic diagram.
可选地,可以对逻辑图文件中指定格式的数据进行反序列化处理,将对逻辑图文件中指定格式的数据转化为结构化数据,并根据转化后的结构化数据生成目标逻辑图。例如,参考图4所示,是反序列化后生成的目标逻辑图。Optionally, deserialize the data in the specified format in the logic diagram file, convert the data in the specified format in the logic diagram file into structured data, and generate the target logic diagram according to the converted structured data. For example, refer to Figure 4, which is the target logic diagram generated after deserialization.
S203、将目标逻辑图输出至展示界面上。S203. Output the target logic diagram to the display interface.
在上述实施例的基础上,可以将上述生成的目标逻辑图输出至展示界面上,以便于现场工控人员能够从该目标逻辑图中查看到根据DCS系统中各设备进行预先组态后的全部(或者部分)的FBD功能块图中的数据引用、功能块连接逻辑,以及也可以查看实时数据引用、功能块的实时值等信息,从而辅助现场工控人员准确地判断DCS系统当前的运行状态,达到了提高分散控制系统运行的安全性的效果。On the basis of the above embodiments, the target logic diagram generated above can be output to the display interface, so that the on-site industrial control personnel can view all the pre-configured ( or part of) the data references and function block connection logic in the FBD function block diagram, and you can also view real-time data references, real-time values of function blocks and other information, so as to assist on-site industrial control personnel to accurately judge the current operating status of the DCS system and achieve It has the effect of improving the security of the operation of the distributed control system.
例如,继续参考图4,现场工控人员能够从图4中显示的逻辑图中查看到ADD功能块的第一个输入引脚绑定的数据引用为AI00020000.PV,比如,AI00020000.PV用于标识DCS系统中现场仪表1运行时产生的数值,即,当前现场仪表1运行时的实时值为1.0000。For example, continuing to refer to Figure 4, on-site industrial control personnel can see from the logic diagram shown in Figure 4 that the data reference bound to the first input pin of the ADD function block is AI00020000.PV, for example, AI00020000.PV is used for identification The value generated when the field instrument 1 is running in the DCS system, that is, the real-time value of the current field instrument 1 running is 1.0000.
综上所述,本申请实施例提供一种分散控制系统运行逻辑展示方法,应用于分散控制系统中的监控设备,分散控制系统包括:控制器以及监控设备,监控设备上提供展示界面,该方法包括:响应用户对展示界面上目标控件的触发操作,获取与目标控件所关联的逻辑图文件;逻辑图文件包括:与目标控件对应的目标逻辑图中各元素的标识信息以及各元素之间的关联信息、及目标逻辑图的属性信息,目标逻辑图用于表征分散控制系统运行的控制逻辑及控制逻辑计算过程中的实时值,控制逻辑运行于控制器;对逻辑图文件进行反序列化处理,生成目标逻辑图;将目标逻辑图输出至展示界面上。本方案提出一种分散控制系统运行逻辑展示方法,主要是通过提供了一种对功能块图进行可视化显示的展示界面,响应用户对展示界面中的目标控件进行触发操作,来获取与目标控件所关联的预先生成的逻辑图文件,该逻辑图文件是基于对用户预先组 态后的功能块图的全部(或者部分)的框选操作后生成;并对获取到的逻辑图文件进行反序列化处理,生成目标逻辑图,同时将目标逻辑图输出至展示界面上,以便于用户能够从该目标逻辑图中查看到根据DCS系统中各设备进行预先组态后的全部(或者部分)的功能块图中的数据引用、功能块连接逻辑,以及也可以查看实时数据引用、功能块的实时值等信息。这样,可以方便现场工控人员能够在展示界面中实时查看分散控制系统中各设备运行时的目标逻辑图,并从目标逻辑图中了解到各设备的控制逻辑、控制逻辑计算过程及数据计算中间值等信息,从而辅助现场工控人员准确地判断DCS系统当前的运行状态,达到了提高分散控制系统运行的安全性的效果。To sum up, the embodiment of the present application provides a method for displaying the operation logic of the distributed control system, which is applied to the monitoring equipment in the distributed control system. The decentralized control system includes: a controller and monitoring equipment, and a display interface is provided on the monitoring equipment. The method Including: responding to the trigger operation of the target control on the display interface by the user, and obtaining the logic diagram file associated with the target control; the logic diagram file includes: the identification information of each element in the target logic diagram corresponding to the target control and the relationship between each element Correlation information and attribute information of the target logic diagram. The target logic diagram is used to represent the control logic of the distributed control system and the real-time value in the calculation process of the control logic. The control logic runs on the controller; the logic diagram file is deserialized , generate the target logic diagram; output the target logic diagram to the display interface. This scheme proposes a method for displaying the operation logic of the distributed control system, mainly by providing a display interface for visually displaying the function block diagram, responding to the user's trigger operation on the target control in the display interface, to obtain the information related to the target control The associated pre-generated logic diagram file, which is generated based on the selection operation of all (or part) of the user's pre-configured function block diagram; and deserializes the acquired logic diagram file Process, generate the target logic diagram, and output the target logic diagram to the display interface at the same time, so that the user can view all (or some) of the function blocks that have been pre-configured according to each device in the DCS system from the target logic diagram Data references in the diagram, function block connection logic, and real-time data references, real-time values of function blocks and other information can also be viewed. In this way, it is convenient for on-site industrial control personnel to view the target logic diagram of each device in the distributed control system in real time in the display interface, and understand the control logic, control logic calculation process and data calculation intermediate value of each device from the target logic diagram And other information, so as to assist the on-site industrial control personnel to accurately judge the current operating status of the DCS system, and achieve the effect of improving the safety of the decentralized control system operation.
将通过如下实施例,具体讲解在上述步骤S201之前,如何生成各逻辑图文件。How to generate each logic diagram file before the above step S201 will be specifically explained through the following embodiments.
值得注意的是,生成各逻辑图文件的设备与上述DCS系统中的监控设备为同一个电子设备,也可以为不同的电子设备。例如,生成各逻辑图文件的设备为电子设备A,则可以将由电子设备A生成的各逻辑图文件发送至监控设备,或者是发送指定的某一个缓存区,再由监控设备根据获取指令从该缓存区中获取各逻辑图文件。It should be noted that the device for generating each logic diagram file is the same electronic device as the monitoring device in the above-mentioned DCS system, or it may be a different electronic device. For example, if the device that generates each logic diagram file is electronic device A, then each logic diagram file generated by electronic device A can be sent to the monitoring device, or sent to a specified buffer area, and then the monitoring device can retrieve the files from the monitoring device according to the acquisition instruction. Each logic diagram file is obtained from the cache area.
可选地,参照图5所示,响应用户对展示界面上目标控件的触发操作,获取与目标控件所关联的逻辑图文件之前,还包括:Optionally, as shown in FIG. 5 , before obtaining the logic diagram file associated with the target control in response to the user’s trigger operation on the target control on the display interface, further include:
S501、根据分散控制系统中各设备的连接关系,生成分散控制系统运行的功能块图。S501. Generate a function block diagram of the operation of the distributed control system according to the connection relationship of each device in the distributed control system.
例如,参考图6所示,用户可以根据分散控制系统中各设备的连接关系、以及设计要求,将需要的功能块或数据引用从组态界面中显示的功能块库中调出,将各功能块与数据引用连接后即完成用户组态,生成分散控制系统运行的功能块图。For example, as shown in Figure 6, the user can call out the required function blocks or data references from the function block library displayed in the configuration interface according to the connection relationship of each device in the distributed control system and the design requirements. The user configuration is completed after the block is connected with the data reference, and the function block diagram for the operation of the distributed control system is generated.
可选地,在操作上述步骤的同时,功能块的布局坐标、类型、属性、操作参数等信息,数据引用的坐标、类型、绑定位号等信息被记录。Optionally, while performing the above steps, information such as layout coordinates, types, attributes, and operating parameters of function blocks, and information such as coordinates, types, and binding bit numbers of data references are recorded.
值得说明的是,功能块支持设置输入输出引脚属性、激活状态、参数信息、执行顺序等,数据引用可绑定位号(现场过程变量,如温度计的温度、压力表的压力值等),功能块与功能块之间、功能块与数据引用之间可通过输入输出引脚连线连接,用于表示输入输出值在两者之间的传递。It is worth noting that the function block supports the setting of input and output pin properties, activation status, parameter information, execution sequence, etc., and data references can be bound to tags (on-site process variables, such as temperature of thermometers, pressure values of pressure gauges, etc.), Function blocks and function blocks, and function blocks and data references can be connected through input and output pins to indicate the transfer of input and output values between the two.
S502、响应用户对组态界面中功能块图的框选操作,确定目标逻辑图。S502. Determine the target logic diagram in response to the user's frame selection operation on the function block diagram in the configuration interface.
其中,目标逻辑图中包括:各元素的标识信息以及各元素之间的关联信息、及目标逻辑图的属性信息,各元素用于提供计算逻辑或标识分散控制系统中的各设备。Wherein, the target logic diagram includes: the identification information of each element, the association information between each element, and the attribute information of the target logic diagram, and each element is used to provide calculation logic or identify each device in the distributed control system.
在本实施例中,为了提高对分散控制系统中各设备运行时控制逻辑的查看效率,提出还可以对上述组态后的功能块图进行框选操作,以便于将功能块图划分为多个部分,即划分后得到的各子功能块图均称为逻辑图。In this embodiment, in order to improve the viewing efficiency of the control logic of each device in the distributed control system during operation, it is proposed that the function block diagram after the above configuration can also be framed to divide the function block diagram into multiple Part, that is, each sub-function block diagram obtained after division is called a logic diagram.
可选地,继续参考图6所示,响应用户对组态界面中功能块图的框选操作,框选操作完成后即可获得目标逻辑图的坐标及大小,通过该坐标、各功能块的坐标、各数据引用的坐标、各连接线的坐标,可以计算得到哪些功能块、数据引用、连接线被框选,并可计算出这些元素相对于目标逻辑图框的位置,至此则确定用户框选中的目标逻辑图。Optionally, continuing to refer to Figure 6, in response to the user's frame selection operation on the function block diagram in the configuration interface, the coordinates and size of the target logic diagram can be obtained after the frame selection operation is completed, through the coordinates, each function block coordinates, the coordinates of each data reference, and the coordinates of each connection line, which function blocks, data references, and connection lines are framed can be calculated, and the positions of these elements relative to the target logic frame can be calculated. At this point, the user frame can be determined Selected target logic diagram.
S503、对目标逻辑图中各元素的标识信息以及各元素之间的关联信息、及目标逻辑图的属性信息进行序列化处理,生成逻辑图文件。S503. Perform serialization processing on the identification information of each element in the target logic diagram, the association information between each element, and the attribute information of the target logic diagram, and generate a logic diagram file.
在本实施例中,为了便于对目标逻辑图中所包含的各种信息进行传输,提出可以采用序列化方式,对目标逻辑图中各元素的标识信息以及各元素之间的关联信息、及目标逻辑图的属性信息等这类结构化数据进行序列化处理,以得到处理后的一串二进制的字节流,并将二进制的字节流存储到一个文档中,以生成目标逻辑图对应的逻辑图文件,进而使得生成的逻辑图文件能够保存在存储设备或和其他系统交换数据。In this embodiment, in order to facilitate the transmission of various information contained in the target logic diagram, it is proposed that a serialization method can be used to record the identification information of each element in the target logic diagram, the association information between elements, and the target The structured data such as the attribute information of the logic diagram is serialized to obtain a series of binary byte streams after processing, and the binary byte stream is stored in a document to generate the logic corresponding to the target logic diagram Diagram files, so that the generated logic diagram files can be saved in storage devices or exchange data with other systems.
将结合如下实施例,具体讲解如何响应用户对组态界面中功能块图的框选操作,确定目标逻辑图。In combination with the following embodiments, how to determine the target logic diagram in response to the user's frame selection operation on the function block diagram in the configuration interface will be explained in detail.
可选地,参考图7所示,上述步骤S502中响应用户对组态界面中功能块图的框选操作,确定目标逻辑图,包括:Optionally, as shown in FIG. 7, in the above step S502, in response to the user's frame selection operation on the function block diagram in the configuration interface, the target logic diagram is determined, including:
S701、根据框选操作所框选的区域位置以及区域大小,确定目标逻辑图的属性信息。S701. Determine the attribute information of the target logic diagram according to the position and size of the area selected by the frame selection operation.
可选地,例如,目标逻辑图的属性信息可以包括:高宽、及各顶点的坐标。Optionally, for example, the attribute information of the target logic graph may include: height, width, and coordinates of each vertex.
在本实施例中,例如,框选操作所框选的区域为一个矩形,则可以根据该框选操作,确定所框选的区域位置以及区域大小。其中,所框选的区域位置为该区域对应的各顶点的坐标,区域大小为该区域对应的长宽等。即可以将所框选的区域位置作为目标逻辑图中各顶点的坐标,将所框选的区域位置的区域大小作为目标逻辑图的高宽。In this embodiment, for example, the framed area selected by the frame selection operation is a rectangle, and the position and size of the framed area can be determined according to the frame selection operation. Wherein, the position of the selected area is the coordinates of each vertex corresponding to the area, and the size of the area is the length and width corresponding to the area. That is, the position of the selected area can be used as the coordinates of each vertex in the target logic diagram, and the area size of the selected area can be used as the height and width of the target logic diagram.
S702、根据框选操作所框选的功能块图中各元素的标识信息以及各元素之间的关联关系,确定目标逻辑图中各元素的标识信息以及各元素之间的关联信息。S702. Determine the identification information of each element and the association information between elements in the target logic diagram according to the identification information of each element in the function block diagram selected by the frame selection operation and the association relationship between each element.
可选地,在本实施例中,确定落入上述所框选的区域内的部分(或全部)功能块图,并将所框选的功能块图中各元素的标识信息以及各元素之间的关联关系,分别作为目标逻辑图中各元素的标识信息以及各元素之间的关联信息;然后,再根据目标逻辑图中各元素的标识信息以及各元素之间的关联信息、以及目标逻辑图的属性信息,得到所框选的目标逻辑图。Optionally, in this embodiment, part (or all) of the functional block diagrams falling within the above-mentioned framed area are determined, and the identification information of each element in the framed functional block diagram and the as the identification information of each element in the target logic diagram and the association information between each element; then, according to the identification information of each element in the target logic diagram, the association information between each element, and the target logic diagram attribute information to get the selected target logic diagram.
可选地,用户可以根据实际业务监控需求,在组态界面中执行多次框选操作,以框选得到多个逻辑图。Optionally, the user can perform multiple frame selection operations in the configuration interface according to actual business monitoring requirements, so as to obtain multiple logic diagrams by frame selection.
此外,当框选得到的逻辑图中包括某一个数据引用,且该数据引用绑定了引用位号(现场过程变量),也可通过该引用位号打开与其相关联的另一个逻辑图,提高对各逻辑图的查看效率。In addition, when the selected logic diagram includes a certain data reference, and the data reference is bound to a reference tag (field process variable), another logic diagram associated with it can also be opened through the reference tag to improve The viewing efficiency of each logic diagram.
将通过如下实施例,具体讲解如何对目标逻辑图中各元素的标识信息、以及各元素之间的关联信息、及目标逻辑图的属性信息进行序列化处理,生成逻辑图文件。Through the following embodiments, how to serialize the identification information of each element in the target logic diagram, the association information between elements, and the attribute information of the target logic diagram to generate a logic diagram file.
可选地,参考图8所示,上述步骤S503中对目标逻辑图中各元素的标识信息以及各元素之间的关联信息、及目标逻辑图的属性信息进行序列化处理,生成逻辑图文件,包括:Optionally, as shown in FIG. 8 , in step S503 above, the identification information of each element in the target logic diagram, the association information between elements, and the attribute information of the target logic diagram are serialized to generate a logic diagram file, include:
S801、根据目标逻辑图中各元素的标识信息、以及各元素的标识信息与类型信息的映射关系,确定各元素的类型信息。S801. Determine the type information of each element according to the identification information of each element in the target logic diagram and the mapping relationship between the identification information of each element and the type information.
S802、根据与各元素的类型信息对应的第一序列化规则、以及各元素之间的关联信息,得到序列化后的第一字节流序列。S802. Obtain a serialized first byte stream sequence according to the first serialization rule corresponding to the type information of each element and the association information between each element.
其中,序列化处理为了将不同类型的对象数据转化为二进制字节流序列化进行传输。Among them, the serialization process converts different types of object data into binary byte stream serialization for transmission.
在本实施例中,为了提高序列化处理效率,主要是根据对象数据的类型不同,采用不同的序列化规则,来实现序列化处理过程。In this embodiment, in order to improve the serialization processing efficiency, mainly different serialization rules are adopted according to different types of object data to realize the serialization processing process.
可选地,可以先根据目标逻辑图中各元素的标识信息、以及各元素的标识信息与类型信息的映射关系,来确定各元素所属的类型;然后,再采用与各元素的类型信息(比如功能块的类型、数据引用的类型等)对应的第一序列化规则,对各元素之间的关联信息进行序列化处理,得到各元素序列化后的第一字节流序列,生成的第一字节流序列能够反映各元素的关联信息(即,相互关联的元素之间连线的像素坐标)和/或各元素在该序列化数据中的位置等信息。Optionally, the type of each element can be determined according to the identification information of each element in the target logic diagram and the mapping relationship between the identification information of each element and the type information; then, the type information of each element (such as Function block type, data reference type, etc.) corresponding to the first serialization rule, serialize the associated information between each element, obtain the first byte stream sequence after serialization of each element, and generate the first The byte stream sequence can reflect the associated information of each element (that is, the pixel coordinates of the lines between interrelated elements) and/or information such as the position of each element in the serialized data.
S803、根据与目标逻辑图的属性信息对应的第二序列化规则、以及目标逻辑图的属性信息,得到序列化后的第二字节流序列。S803. Obtain a serialized second byte stream sequence according to the second serialization rule corresponding to the attribute information of the target logic diagram and the attribute information of the target logic diagram.
其中,第二序列化规则与上述第一序列化规则为两个不同的序列化规则。Wherein, the second serialization rule and the above-mentioned first serialization rule are two different serialization rules.
可选地,可以根据与目标逻辑图的属性信息对应的第二序列化规则,对各元素之间的关联信息进行序列化处理,得到各元素序列化后的第二 字节流序列。Optionally, according to the second serialization rule corresponding to the attribute information of the target logic diagram, the association information between the elements can be serialized to obtain the second byte stream sequence after the serialization of each element.
S804、根据第一字节流序列、以及第二字节流序列,生成逻辑图文件。S804. Generate a logic diagram file according to the first byte stream sequence and the second byte stream sequence.
在上述实施例的基础上,可以将生成的第二字节流序列添加至第一字节流序列之后,得到一个二进制的字节流序列,将该二进制的字节流序列作为逻辑图文件。On the basis of the foregoing embodiments, the generated second byte stream sequence may be added to the first byte stream sequence to obtain a binary byte stream sequence, and the binary byte stream sequence may be used as a logic diagram file.
将通过如下实施例,具体讲解如何对逻辑图文件进行反序列化处理,生成目标逻辑图。Through the following examples, how to deserialize the logic diagram file to generate the target logic diagram will be explained in detail.
可选地,参考图9所示,对逻辑图文件进行反序列化处理,生成目标逻辑图,包括:Optionally, as shown in Figure 9, the logic diagram file is deserialized to generate a target logic diagram, including:
S901、采用与第一字节流序列对应的第一反序列化规则,对逻辑图文件中第一字节流序列进行解码,得到各元素的类型信息、以及各元素之间的关联信息。S901. Using a first deserialization rule corresponding to the first byte stream sequence, decode the first byte stream sequence in the logic diagram file to obtain type information of each element and association information between elements.
其中,反序列化处理是对上述生成的二进制的字节流序列进行反序列化,生成结构化数据。Wherein, the deserialization process is to deserialize the binary byte stream sequence generated above to generate structured data.
可选地,第一反序列化规则为第一序列化规则的逆处理过程。Optionally, the first deserialization rule is an inverse processing process of the first serialization rule.
在本实施例中,还是按照不同的反序列化规则,对第一字节流序列、第二字节流序列进行反序列化,以得到目标逻辑图中的各元素的标识信息、各元素之间的关联信息、以及目标逻辑图的属性信息。In this embodiment, the first byte stream sequence and the second byte stream sequence are deserialized according to different deserialization rules, so as to obtain the identification information of each element in the target logic diagram, and the relationship between each element. The association information between and the attribute information of the target logic diagram.
具体的,先是使用与第一字节流序列对应的第一反序列化规则,对逻辑图文件中第一字节流序列进行解码,得到目标逻辑图中的各元素的类型信息、以及各元素之间的关联信息。Specifically, first use the first deserialization rule corresponding to the first byte stream sequence to decode the first byte stream sequence in the logic diagram file to obtain the type information of each element in the target logic diagram, and each element relational information between them.
S902、采用与第二字节流序列对应的第二反序列化规则,对逻辑图文件中第二字节流序列进行解码,得到目标逻辑图的属性信息。S902. Using a second deserialization rule corresponding to the second byte stream sequence, decode the second byte stream sequence in the logic graph file to obtain attribute information of the target logic graph.
其中,第二反序列化规则与上述第一序列化规则为两个不同的反序列化规则,第二反序列化规则为第二序列化规则的逆处理过程。Wherein, the second deserialization rule and the above-mentioned first serialization rule are two different deserialization rules, and the second deserialization rule is an inverse processing process of the second serialization rule.
可选地,使用与第二字节流序列对应的第二反序列化规则,对逻辑 图文件中第二字节流序列进行解码,得到目标逻辑图中的属性信息。Optionally, use the second deserialization rule corresponding to the second byte stream sequence to decode the second byte stream sequence in the logic diagram file to obtain attribute information in the target logic diagram.
S903、根据各元素的类型信息、各元素之间的关联信息、以及目标逻辑图的属性信息,生成目标逻辑图。S903. Generate the target logic diagram according to the type information of each element, the association information between each element, and the attribute information of the target logic diagram.
在本实施例中,可以先根据目标逻辑图的属性信息,绘制得到目标逻辑图所处的目标区域;然后,再根据各元素的类型信息、以及各元素的标识信息与类型信息的映射关系,查找得到目标逻辑图中的各元素的标识信息;最后,结合目标逻辑图中的各元素的标识信息、以及各元素之间的关联信息,在目标区域内将关联的各元素之间进行连接,以还原出与组态后的功能块图完全相同的功能块图布局状态、以及连接逻辑,即生成目标逻辑图。In this embodiment, the target region where the target logic diagram is located can be drawn first according to the attribute information of the target logic diagram; then, according to the type information of each element, and the mapping relationship between the identification information and the type information of each element, Find the identification information of each element in the target logic diagram; finally, combine the identification information of each element in the target logic diagram and the association information between each element, connect the associated elements in the target area, To restore the same layout state and connection logic of the function block diagram as the configured function block diagram, that is, generate the target logic diagram.
值得说明的是,反序列化后得到的各元素的标识信息包括:功能块或数据引用的属性信息,即包含了功能块位号及数据引用绑定的位号名称,通过功能块位号可在数据管理模块中查询到功能块各引脚的实时值,数据引用位号可查询到该位号实时值,将这些实时值按坐标显示在各自引脚的位置即实现了逻辑图实时值的显示。It is worth noting that the identification information of each element obtained after deserialization includes: the attribute information of the function block or data reference, which includes the tag name of the function block tag and the data reference binding, through the function block tag can be In the data management module, the real-time value of each pin of the function block can be queried, and the data reference bit number can be queried for the real-time value of the bit number, and these real-time values are displayed on the positions of the respective pins according to the coordinates to realize the real-time value of the logic diagram show.
此外,逻辑图中还可显示有功能块、数据引用引脚可设置报警限值,当实时值超过报警限时引脚或功能块可按颜色等级闪烁,提供颜色报警功能,辅助判断DCS系统的运行状态。In addition, function blocks and data reference pins can be displayed in the logic diagram to set the alarm limit. When the real-time value exceeds the alarm limit, the pin or function block can flash according to the color level, providing color alarm function, and assisting in judging the operation of the DCS system state.
将通过如下实施例,具体讲解如何获取与目标控件的标识所关联的逻辑图文件。Through the following embodiments, how to obtain the logic diagram file associated with the identification of the target control will be explained in detail.
可选地,获取与目标控件的标识所关联的逻辑图文件,包括:Optionally, obtain the logic diagram file associated with the identification of the target control, including:
根据目标控件的标识,从与目标控件对应的存储路径读取逻辑图文件。According to the identifier of the target control, the logic diagram file is read from the storage path corresponding to the target control.
其中,监控设备提供的展示界面上可以显示有多个控件,则可以将与各控件的标识所关联的逻辑图文件存储至指定的缓存区,使得能够根据各控件的标识信息,从与目标控件对应的存储路径中读取逻辑图文件,以确保获取到的逻辑图文件的准确性。Among them, the display interface provided by the monitoring device can display multiple controls, and the logic diagram file associated with the identification of each control can be stored in a designated buffer area, so that the target control can be selected according to the identification information of each control. Read the logic diagram file in the corresponding storage path to ensure the accuracy of the obtained logic diagram file.
可选地,根据目标控件的标识,从与目标控件对应的存储路径读取逻辑图文件之前,还包括:Optionally, according to the identification of the target control, before reading the logic diagram file from the storage path corresponding to the target control, further include:
响应用户选择目标控件以及逻辑图文件的操作,建立目标控件与逻辑图文件的对应关系。In response to the user's operation of selecting the target control and the logic diagram file, a corresponding relationship between the target control and the logic diagram file is established.
在本实施例中,还需要建立各控件与其所关联的逻辑文件的对应关系,以便于根据各控件的标识、以及各控件与其所关联的逻辑文件的对应关系,快速查找到与各控件所关联的逻辑图文件。In this embodiment, it is also necessary to establish the corresponding relationship between each control and its associated logical file, so as to quickly find the corresponding relationship between each control and its associated logical file according to the identification of each control and the corresponding relationship between each control and its associated logical file logic diagram file.
在一种可实现的方式中,响应用户选择目标控件以及逻辑图文件的关联操作,以建立目标控件与逻辑图文件的对应关系。In a practicable manner, in response to the user's selection of the target control and the association operation of the logic diagram file, a corresponding relationship between the target control and the logic diagram file is established.
下述对用以执行本申请所提供的分散控制系统运行逻辑展示方法对应的装置及存储介质等进行说明,其具体的实现过程以及技术效果参见上述,下述不再赘述。The following describes the corresponding devices and storage media for implementing the distributed control system operation logic display method provided by this application. The specific implementation process and technical effects refer to the above, and will not be repeated below.
可选地,如图10所示,该装置包括:Optionally, as shown in Figure 10, the device includes:
获取模块1001,用于响应用户对展示界面上目标控件的触发操作,获取与目标控件所关联的逻辑图文件;逻辑图文件包括:与目标控件对应的目标逻辑图中各元素的标识信息以及各元素之间的关联信息、及目标逻辑图的属性信息,目标逻辑图用于表征分散控制系统运行的控制逻辑及控制逻辑计算过程中的实时值,控制逻辑运行于控制器。The obtaining module 1001 is used to respond to the trigger operation of the target control on the display interface by the user, and obtain the logic diagram file associated with the target control; the logic diagram file includes: the identification information of each element in the target logic diagram corresponding to the target control and each The correlation information between elements and the attribute information of the target logic diagram. The target logic diagram is used to represent the control logic of the distributed control system and the real-time value in the calculation process of the control logic. The control logic runs on the controller.
生成模块1002,用于对逻辑图文件进行反序列化处理,生成目标逻辑图。The generation module 1002 is configured to deserialize the logic diagram file to generate a target logic diagram.
输出模块1003,用于将目标逻辑图输出至展示界面上。The output module 1003 is used to output the target logic diagram to the display interface.
可选地,获取模块1001,还用于:Optionally, the acquisition module 1001 is also used for:
根据分散控制系统中各设备的连接关系,生成分散控制系统运行的功能块图。According to the connection relationship of each device in the distributed control system, a function block diagram of the operation of the distributed control system is generated.
响应用户对组态界面中功能块图的框选操作,确定目标逻辑图,目标逻辑图中包括:各元素的标识信息以及各元素之间的关联信息、及目标逻辑图的属性信息,各元素用于提供计算逻辑或标识分散控制系统中 的各设备。In response to the user's frame selection operation on the function block diagram in the configuration interface, determine the target logic diagram. The target logic diagram includes: the identification information of each element and the association information between each element, and the attribute information of the target logic diagram, each element Used to provide calculation logic or to identify individual devices in a distributed control system.
对目标逻辑图中各元素的标识信息以及各元素之间的关联信息、及目标逻辑图的属性信息进行序列化处理,生成逻辑图文件。Serialize the identification information of each element in the target logic diagram, the association information between elements, and the attribute information of the target logic diagram to generate a logic diagram file.
可选地,获取模块1001,还用于:Optionally, the acquisition module 1001 is also used for:
根据框选操作所框选的区域位置以及区域大小,确定目标逻辑图的属性信息。According to the position and size of the area selected by the frame selection operation, the attribute information of the target logic diagram is determined.
根据框选操作所框选的功能块图中各元素的标识信息以及各元素之间的关联关系,确定目标逻辑图中各元素的标识信息以及各元素之间的关联信息。According to the identification information of each element in the function block diagram selected by the frame selection operation and the association relationship between each element, the identification information of each element in the target logic diagram and the association information between each element are determined.
可选地,生成模块1002,还用于:Optionally, the generating module 1002 is also used for:
根据目标逻辑图中各元素的标识信息、以及各元素的标识信息与类型信息的映射关系,确定各元素的类型信息。The type information of each element is determined according to the identification information of each element in the target logic diagram and the mapping relationship between the identification information of each element and the type information.
根据与各元素的类型信息对应的第一序列化规则、以及各元素之间的关联信息,得到序列化后的第一字节流序列。According to the first serialization rule corresponding to the type information of each element and the association information between each element, the serialized first byte stream sequence is obtained.
根据与目标逻辑图的属性信息对应的第二序列化规则、以及目标逻辑图的属性信息,得到序列化后的第二字节流序列。According to the second serialization rule corresponding to the attribute information of the target logic diagram and the attribute information of the target logic diagram, a serialized second byte stream sequence is obtained.
根据第一字节流序列、以及第二字节流序列,生成逻辑图文件。A logic diagram file is generated according to the first byte stream sequence and the second byte stream sequence.
可选地,生成模块1002,还用于:Optionally, the generating module 1002 is also used for:
采用与第一字节流序列对应的第一反序列化规则,对逻辑图文件中第一字节流序列进行解码,得到各元素的类型信息、以及各元素之间的关联信息。Using the first deserialization rule corresponding to the first byte stream sequence, the first byte stream sequence in the logic diagram file is decoded to obtain the type information of each element and the association information between each element.
采用与第二字节流序列对应的第二反序列化规则,对逻辑图文件中第二字节流序列进行解码,得到目标逻辑图的属性信息。Using the second deserialization rule corresponding to the second byte stream sequence, the second byte stream sequence in the logic diagram file is decoded to obtain the attribute information of the target logic diagram.
根据各元素的类型信息、各元素之间的关联信息、以及目标逻辑图的属性信息,生成目标逻辑图。The target logic diagram is generated according to the type information of each element, the association information between each element, and the attribute information of the target logic diagram.
可选地,获取模块1001,还用于:Optionally, the acquisition module 1001 is also used for:
根据目标控件的标识,从与目标控件对应的存储路径读取逻辑图文 件。According to the identification of the target control, read the logic diagram file from the storage path corresponding to the target control.
可选地,该装置,还包括:Optionally, the device also includes:
建立模块,用于响应用户选择目标控件以及逻辑图文件的操作,建立目标控件与逻辑图文件的对应关系。The establishment module is used to respond to the user's operation of selecting the target control and the logic diagram file, and establish the corresponding relationship between the target control and the logic diagram file.
上述装置用于执行前述实施例提供的方法,其实现原理和技术效果类似,在此不再赘述。The above-mentioned device is used to execute the methods provided in the foregoing embodiments, and its implementation principles and technical effects are similar, and details are not repeated here.
以上这些模块可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(Application Specific Integrated Circuit,简称ASIC),或,一个或多个微处理器(digital signal processor,简称DSP),或,一个或者多个现场可编程门阵列(Field Programmable Gate Array,简称FPGA)等。再如,当以上某个模块通过处理元件调度程序代码的形式实现时,该处理元件可以是通用处理器,例如中央处理器(CentralProcessing Unit,简称CPU)或其它可以调用程序代码的处理器。再如,这些模块可以集成在一起,以片上系统(system-on-a-chip,简称SOC)的形式实现。The above modules may be one or more integrated circuits configured to implement the above method, for example: one or more specific integrated circuits (Application Specific Integrated Circuit, referred to as ASIC), or, one or more microprocessors (digital signal processor, DSP for short), or, one or more Field Programmable Gate Arrays (Field Programmable Gate Array, FPGA for short), etc. For another example, when one of the above modules is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (Central Processing Unit, CPU for short) or other processors that can call program codes. For another example, these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC for short).
可选地,本发明还提供一种程序产品,例如计算机可读存储介质,包括程序,该程序在被处理器执行时用于执行上述方法实施例。Optionally, the present invention further provides a program product, such as a computer-readable storage medium, including a program, and the program is used to execute the foregoing method embodiments when executed by a processor.
在本发明所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选 择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to realize the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(英文:processor)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取存储器(英文:Random Access Memory,简称:RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated units implemented in the form of software functional units may be stored in a computer-readable storage medium. The above-mentioned software functional units are stored in a storage medium, and include several instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to execute the program described in each embodiment of the present invention. part of the method. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), magnetic disk or optical disc, etc. Various media that can store program code.

Claims (10)

  1. 一种分散控制系统运行逻辑展示方法,其特征在于,应用于分散控制系统中的监控设备,所述分散控制系统包括:控制器以及所述监控设备,所述监控设备上提供展示界面,所述方法包括:A distributed control system operation logic display method, characterized in that it is applied to monitoring equipment in the distributed control system, the distributed control system includes: a controller and the monitoring equipment, a display interface is provided on the monitoring equipment, the Methods include:
    响应用户对所述展示界面上目标控件的触发操作,获取与所述目标控件所关联的逻辑图文件;所述逻辑图文件包括:与所述目标控件对应的目标逻辑图中各元素的标识信息以及各元素之间的关联信息、及所述目标逻辑图的属性信息,所述目标逻辑图用于表征所述分散控制系统运行的控制逻辑及所述控制逻辑计算过程中的实时值,所述控制逻辑运行于所述控制器;Responding to the trigger operation of the target control on the display interface by the user, the logic diagram file associated with the target control is obtained; the logic diagram file includes: identification information of each element in the target logic diagram corresponding to the target control And the association information between each element, and the attribute information of the target logic diagram, the target logic diagram is used to characterize the control logic operated by the distributed control system and the real-time value during the calculation process of the control logic, the control logic running on said controller;
    对所述逻辑图文件进行反序列化处理,生成所述目标逻辑图;Deserializing the logic diagram file to generate the target logic diagram;
    将所述目标逻辑图输出至所述展示界面上。Outputting the target logic diagram to the display interface.
  2. 根据权利要求1所述的方法,其特征在于,所述响应用户对所述展示界面上目标控件的触发操作,获取与所述目标控件所关联的逻辑图文件之前,还包括:The method according to claim 1, wherein, before obtaining the logic diagram file associated with the target control in response to the trigger operation of the user on the target control on the display interface, further comprising:
    根据所述分散控制系统中各设备的连接关系,生成所述分散控制系统运行的功能块图;Generate a function block diagram of the operation of the distributed control system according to the connection relationship of each device in the distributed control system;
    响应用户对组态界面中所述功能块图的框选操作,确定所述目标逻辑图,所述目标逻辑图中包括:各元素的标识信息以及各元素之间的关联信息、及所述目标逻辑图的属性信息,各元素用于提供计算逻辑或标识所述分散控制系统中的各设备;In response to the user's frame selection operation on the function block diagram in the configuration interface, the target logic diagram is determined, and the target logic diagram includes: the identification information of each element and the association information between each element, and the target logic diagram. Attribute information of the logic diagram, each element is used to provide calculation logic or identify each device in the distributed control system;
    对所述目标逻辑图中各元素的标识信息以及各元素之间的关联信息、及所述目标逻辑图的属性信息进行序列化处理,生成所述逻辑图文件。Perform serialization processing on the identification information of each element in the target logic diagram, the association information between each element, and the attribute information of the target logic diagram, and generate the logic diagram file.
  3. 根据权利要求2所述的方法,其特征在于,所述响应用户对组态界面中所述功能块图的框选操作,确定所述目标逻辑图,包括:The method according to claim 2, wherein the response to the user's frame selection operation on the function block diagram in the configuration interface to determine the target logic diagram includes:
    根据所述框选操作所框选的区域位置以及区域大小,确定所述目标逻辑图的属性信息;Determine the attribute information of the target logic diagram according to the position and size of the region selected by the frame selection operation;
    根据所述框选操作所框选的功能块图中各元素的标识信息以及各元素之间的关联关系,确定所述目标逻辑图中各元素的标识信息以及各元素之间的关联信息。Determine the identification information of each element in the target logic diagram and the association information between each element according to the identification information of each element in the function block diagram selected by the frame selection operation and the association relationship between each element.
  4. 根据权利要求2所述的方法,其特征在于,所述对所述目标逻辑图中各元素的标识信息以及各元素之间的关联信息、及所述目标逻辑图的属性信息进行序列化处理,生成所述逻辑图文件,包括:The method according to claim 2, characterized in that, performing serialization processing on the identification information of each element in the target logic diagram, the association information between each element, and the attribute information of the target logic diagram, Generate the logic diagram file, including:
    根据所述目标逻辑图中各元素的标识信息、以及所述各元素的标识信息与类型信息的映射关系,确定所述各元素的类型信息;Determine the type information of each element according to the identification information of each element in the target logic diagram and the mapping relationship between the identification information of each element and type information;
    根据与所述各元素的类型信息对应的第一序列化规则、以及所述各元素之间的关联信息,得到序列化后的第一字节流序列;Obtaining a serialized first byte stream sequence according to the first serialization rule corresponding to the type information of the elements and the association information between the elements;
    根据与所述目标逻辑图的属性信息对应的第二序列化规则、以及所述目标逻辑图的属性信息,得到序列化后的第二字节流序列;Obtaining a serialized second byte stream sequence according to the second serialization rule corresponding to the attribute information of the target logic diagram and the attribute information of the target logic diagram;
    根据所述第一字节流序列、以及所述第二字节流序列,生成所述逻辑图文件。The logic diagram file is generated according to the first byte stream sequence and the second byte stream sequence.
  5. 根据权利要求4所述的方法,其特征在于,所述对所述逻辑图文件进行反序列化处理,生成所述目标逻辑图,包括:The method according to claim 4, wherein the deserializing the logic diagram file to generate the target logic diagram comprises:
    采用与所述第一字节流序列对应的第一反序列化规则,对所述逻辑图文件中所述第一字节流序列进行解码,得到所述各元素的类型信息、以及所述各元素之间的关联信息;Using the first deserialization rule corresponding to the first byte stream sequence to decode the first byte stream sequence in the logic diagram file to obtain the type information of each element and the Association information between elements;
    采用与所述第二字节流序列对应的第二反序列化规则,对所述逻辑图文件中所述第二字节流序列进行解码,得到所述目标逻辑图的属性信息;decoding the second byte stream sequence in the logical graph file by using a second deserialization rule corresponding to the second byte stream sequence, to obtain attribute information of the target logical graph;
    根据所述各元素的类型信息、所述各元素之间的关联信息、以及所述目标逻辑图的属性信息,生成所述目标逻辑图。The target logic diagram is generated according to the type information of the elements, the association information between the elements, and the attribute information of the target logic diagram.
  6. 根据权利要求1所述的方法,其特征在于,所述获取与所述目标控件的标识所关联的逻辑图文件,包括:The method according to claim 1, wherein said obtaining the logic diagram file associated with the identification of the target control comprises:
    根据所述目标控件的标识,从与所述目标控件对应的存储路径读取 所述逻辑图文件。According to the identification of the target control, read the logic diagram file from the storage path corresponding to the target control.
  7. 根据权利要求6所述的方法,其特征在于,所述根据所述目标控件的标识,从与所述目标控件对应的存储路径读取所述逻辑图文件之前,还包括:The method according to claim 6, wherein, before reading the logic diagram file from the storage path corresponding to the target control according to the identification of the target control, further comprising:
    响应用户选择目标控件以及逻辑图文件的操作,建立所述目标控件与所述逻辑图文件的对应关系。In response to the user's operation of selecting the target control and the logic diagram file, a corresponding relationship between the target control and the logic diagram file is established.
  8. 一种分散控制系统运行逻辑展示装置,其特征在于,应用于分散控制系统中的监控设备,所述分散控制系统包括:控制器以及所述监控设备,所述监控设备上提供展示界面,所述装置包括:A distributed control system operating logic display device is characterized in that it is applied to the monitoring equipment in the distributed control system, the distributed control system includes: a controller and the monitoring equipment, the monitoring equipment provides a display interface, the Devices include:
    获取模块,用于响应用户对所述展示界面上目标控件的触发操作,获取与所述目标控件所关联的逻辑图文件;所述逻辑图文件包括:与所述目标控件对应的目标逻辑图中各元素的标识信息以及各元素之间的关联信息、及所述目标逻辑图的属性信息,所述目标逻辑图用于表征所述分散控制系统运行的控制逻辑及所述控制逻辑计算过程中的实时值,所述控制逻辑运行于所述控制器;An acquisition module, configured to respond to a user's trigger operation on the target control on the display interface, and acquire a logic diagram file associated with the target control; the logic diagram file includes: a target logic diagram corresponding to the target control The identification information of each element, the association information between each element, and the attribute information of the target logic diagram, the target logic diagram is used to represent the control logic of the operation of the distributed control system and the calculation process of the control logic real-time values, the control logic running on the controller;
    生成模块,用于对所述逻辑图文件进行反序列化处理,生成所述目标逻辑图;A generating module, configured to deserialize the logic diagram file to generate the target logic diagram;
    输出模块,用于将所述目标逻辑图输出至所述展示界面上。An output module, configured to output the target logic diagram to the display interface.
  9. 一种电子设备,其特征在于,包括:处理器、存储介质和总线,所述存储介质存储有所述处理器可执行的机器可读指令,当电子设备运行时,所述处理器与所述存储介质之间通过总线通信,所述处理器执行所述机器可读指令,以执行如权利要求1-7任一所述方法的步骤。An electronic device, characterized in that it includes: a processor, a storage medium and a bus, the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the The storage media communicate with each other through a bus, and the processor executes the machine-readable instructions to perform the steps of the method according to any one of claims 1-7.
  10. 一种计算机可读存储介质,其特征在于,所述存储介质上存储有计算机程序,所述计算机程序被处理器运行时执行如权利要求1-7任一所述方法的步骤。A computer-readable storage medium, wherein a computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1-7 are executed.
PCT/CN2022/135199 2022-02-25 2022-11-29 Method and apparatus for displaying running logic of distributed control system, device, and storage medium WO2023160082A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210179587.1 2022-02-25
CN202210179587.1A CN114545828A (en) 2022-02-25 2022-02-25 Method, device and equipment for displaying operation logic of distributed control system and storage medium

Publications (2)

Publication Number Publication Date
WO2023160082A1 true WO2023160082A1 (en) 2023-08-31
WO2023160082A9 WO2023160082A9 (en) 2023-10-05

Family

ID=81680013

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/135199 WO2023160082A1 (en) 2022-02-25 2022-11-29 Method and apparatus for displaying running logic of distributed control system, device, and storage medium

Country Status (2)

Country Link
CN (1) CN114545828A (en)
WO (1) WO2023160082A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117009187A (en) * 2023-09-27 2023-11-07 西安热工研究院有限公司 CID file incremental compiling method, system and equipment for upper computer monitoring system
CN117194501A (en) * 2023-11-01 2023-12-08 西安热工研究院有限公司 DCS trend measurement point jump logic configuration method, system, equipment and medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114545828A (en) * 2022-02-25 2022-05-27 浙江中控技术股份有限公司 Method, device and equipment for displaying operation logic of distributed control system and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090327942A1 (en) * 2008-06-26 2009-12-31 Invensys Systems, Inc. multi-mode editor for configuring process control blocks including both logical functions and arithmetic computations
CN102262402A (en) * 2010-05-27 2011-11-30 横河电机株式会社 A method and apparatus for providing industrial plant information
CN103744667A (en) * 2013-12-27 2014-04-23 高新兴科技集团股份有限公司 Silverlight-based configuration function achieving system
CN103914500A (en) * 2013-10-17 2014-07-09 国家电网公司 Configuration on-line display method based on time series data
CN108829952A (en) * 2018-05-31 2018-11-16 福州芝麻智能科技有限公司 A kind of control method and system of logical topology order of operation
CN111142478A (en) * 2018-11-02 2020-05-12 南京南瑞继保电气有限公司 Control system man-machine picture and control logic integrated configuration method
CN113534682A (en) * 2020-04-16 2021-10-22 北京国电智深控制技术有限公司 Method and device for managing logic blocks in industrial controller
CN114003318A (en) * 2021-11-03 2022-02-01 浙江中控技术股份有限公司 Equipment first-out interlocking detection method, device, equipment and storage medium
CN114545828A (en) * 2022-02-25 2022-05-27 浙江中控技术股份有限公司 Method, device and equipment for displaying operation logic of distributed control system and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090327942A1 (en) * 2008-06-26 2009-12-31 Invensys Systems, Inc. multi-mode editor for configuring process control blocks including both logical functions and arithmetic computations
CN102262402A (en) * 2010-05-27 2011-11-30 横河电机株式会社 A method and apparatus for providing industrial plant information
CN103914500A (en) * 2013-10-17 2014-07-09 国家电网公司 Configuration on-line display method based on time series data
CN103744667A (en) * 2013-12-27 2014-04-23 高新兴科技集团股份有限公司 Silverlight-based configuration function achieving system
CN108829952A (en) * 2018-05-31 2018-11-16 福州芝麻智能科技有限公司 A kind of control method and system of logical topology order of operation
CN111142478A (en) * 2018-11-02 2020-05-12 南京南瑞继保电气有限公司 Control system man-machine picture and control logic integrated configuration method
CN113534682A (en) * 2020-04-16 2021-10-22 北京国电智深控制技术有限公司 Method and device for managing logic blocks in industrial controller
CN114003318A (en) * 2021-11-03 2022-02-01 浙江中控技术股份有限公司 Equipment first-out interlocking detection method, device, equipment and storage medium
CN114545828A (en) * 2022-02-25 2022-05-27 浙江中控技术股份有限公司 Method, device and equipment for displaying operation logic of distributed control system and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117009187A (en) * 2023-09-27 2023-11-07 西安热工研究院有限公司 CID file incremental compiling method, system and equipment for upper computer monitoring system
CN117009187B (en) * 2023-09-27 2024-01-19 西安热工研究院有限公司 CID file incremental compiling method, system and equipment for upper computer monitoring system
CN117194501A (en) * 2023-11-01 2023-12-08 西安热工研究院有限公司 DCS trend measurement point jump logic configuration method, system, equipment and medium
CN117194501B (en) * 2023-11-01 2024-02-09 西安热工研究院有限公司 DCS trend measurement point jump logic configuration method, system, equipment and medium

Also Published As

Publication number Publication date
WO2023160082A9 (en) 2023-10-05
CN114545828A (en) 2022-05-27

Similar Documents

Publication Publication Date Title
WO2023160082A1 (en) Method and apparatus for displaying running logic of distributed control system, device, and storage medium
CN110442641B (en) Link topology graph display method and device, storage medium and equipment
CN108351636B (en) Engineering design tool, system and module
CN111651858A (en) Digital twin model generation method, device and computer readable storage medium
CN111813963B (en) Knowledge graph construction method and device, electronic equipment and storage medium
CN112506759B (en) Automatic test method and device for servo system control software and storage medium
CN111309734B (en) Method and system for automatically generating table data
CN107341005B (en) Chart generation method and device
CN114020256A (en) Front-end page generation method, device and equipment and readable storage medium
CN113868868A (en) Equipment data interaction method, system and platform based on object model structure
CN114270313A (en) Computer-implemented method, computer program and physical computing environment
CN110209902B (en) Method and system for visualizing feature generation process in machine learning process
CN114647409A (en) Large-screen visualization application creation platform, method, computing device and storage medium
KR101431995B1 (en) Facility management device, screen display method, and recording medium
CN115438768A (en) Model reasoning method, device, computer equipment and storage medium
CN112729868A (en) Vehicle diagnosis method, device, equipment and medium
US10816600B1 (en) Protocol analysis and visualization during simulation
CN115935909A (en) File generation method and device and electronic equipment
US20230129280A1 (en) Computer readable storage medium, program creation support apparatus, and program creation support method
US20210174485A1 (en) Systems and methods for detecting anomalies using image based modeling
CN112527278A (en) Smart form generating and issuing method, device, terminal and storage medium
CN113051171A (en) Interface test method, device, equipment and storage medium
CN113010129A (en) Virtual studio full-flow multi-terminal blackboard writing extraction method and device
KR20210012886A (en) Method, apparatus, device and computer-readable storage medium executed by computing devices
JP2020170403A (en) Simulation system, collection device, collection method, and simulation method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22928342

Country of ref document: EP

Kind code of ref document: A1