CN116962425A - Controller virtualization control system, method and storage medium - Google Patents

Controller virtualization control system, method and storage medium Download PDF

Info

Publication number
CN116962425A
CN116962425A CN202310964768.XA CN202310964768A CN116962425A CN 116962425 A CN116962425 A CN 116962425A CN 202310964768 A CN202310964768 A CN 202310964768A CN 116962425 A CN116962425 A CN 116962425A
Authority
CN
China
Prior art keywords
virtual controller
controller
configuration
input
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310964768.XA
Other languages
Chinese (zh)
Inventor
朱珂
费盼峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hollysys Automation Co Ltd
Original Assignee
Hangzhou Hollysys Automation Co Ltd
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 Hangzhou Hollysys Automation Co Ltd filed Critical Hangzhou Hollysys Automation Co Ltd
Priority to CN202310964768.XA priority Critical patent/CN116962425A/en
Publication of CN116962425A publication Critical patent/CN116962425A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session
    • H04L67/145Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
    • 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]

Abstract

The application discloses a controller virtualization control system, a method and a storage medium, which relate to the technical field of communication and comprise the following steps: a master virtual controller for invoking resources of the universal server to perform point-to-point network communication with the input/output devices located in the first independent network segment; a standby virtual controller for invoking resources of the universal server to perform point-to-point network communication with the input/output devices located in the second independent network segment; the system comprises a main virtual controller and a standby virtual controller which are connected through a cross heartbeat line, wherein the main virtual controller and the standby virtual controller are used for realizing state mutual detection and information synchronization of the main virtual controller and the standby virtual controller; and the service arrangement and file management module is used for establishing data connection among the main virtual controller, the standby virtual controller and the input/output equipment based on the control logic and through configuration setting, and carrying out data transmission among the equipment. The deployment of the virtual controller of the general-purpose computer is realized and the conventional simple logic and intelligent algorithm blocks can be run simultaneously.

Description

Controller virtualization control system, method and storage medium
Technical Field
The present application relates to the field of industrial automation, and in particular, to a controller virtualization control system, method, and storage medium.
Background
Currently, in the art of virtual controller technology with features that support "virtualized" deployments, have "programmable" capabilities, provide intelligent algorithmic parallel computing environments, etc., and are used in industrial process control scenarios. Most of the method only realizes single virtualization or software of a conventional entity controller, and does not provide a detailed method for complex intelligent algorithm configuration, efficient operation and deployment. In the prior art, an industrial App resource open sharing method based on a containerization technology is provided, container arrangement management is performed based on a container cluster management system Kubernetes, industrial App packaging and mirror image publishing are performed based on an application container engine Docker, an industrial App is deployed, management calling service of the whole life cycle of the industrial App resource is provided, and the state of the industrial App is monitored. The system also provides an X86 architecture, has high performance and high reliability, and can meet the requirements of an industrial control system on instantaneity and stability. The system is characterized in that a software programming mode is adopted, and the PLC function is realized through software, so that the problems of high hardware development cost, difficult maintenance and the like are avoided. Multiple programming languages are supported, including Ladder language, SFC language, ST language, etc., so that the user can conveniently program. Can communicate with various external devices, including sensors, actuators, touch screens, etc., and has good expansibility. Remote monitoring and control are supported, and a user can conveniently perform remote operation and management. But only the programmable control function of the traditional PLC is realized by adopting a software definition method, the coding and parallel operation of the current complex intelligent control algorithm are not well supported, and the application of the virtualization technology is not mentioned.
In summary, how to implement the deployment of virtual controllers in a general purpose computer and to be able to run conventional simple logic and intelligent algorithm blocks simultaneously is a technical problem to be solved in the art.
Disclosure of Invention
In view of the above, it is an object of the present application to provide a controller virtualization control system, method, device, and storage medium that enable deployment of virtual controllers in a general purpose computer and enable simultaneous execution of conventional simple logic and intelligent algorithm blocks. The specific scheme is as follows:
in a first aspect, the present application discloses a controller virtualization control system, the controller virtualization control system comprising: comprises a main virtual controller arranged on a first independent network segment, a virtual controller arranged on a standby virtual controller of a second independent network segment, input/output equipment respectively connected with the first independent network segment and the second independent network segment through a first network port and a second network, and a service arrangement and file management module positioned on a general PC (personal computer),
the main virtual controller is used for calling the resources of the universal server and the input/output equipment in the first independent network segment to perform point-to-point network communication;
the standby virtual controller is used for calling the resources of the universal server and the input/output equipment in the second independent network segment to perform point-to-point network communication;
The main virtual controller and the standby virtual controller are connected through a cross heartbeat line and are used for realizing state mutual detection and information synchronization of the main virtual controller and the standby virtual controller;
the service arrangement and file management module is used for establishing data connection among the main virtual controller, the standby virtual controller and the input/output equipment based on control logic and through configuration setting so as to carry out data transmission among the main virtual controller, the standby virtual controller and the input/output equipment.
Optionally, the virtual controller includes:
the controller algorithm application library encapsulates a preset intelligent algorithm block for calling by a script instruction parser;
the script instruction analyzer is used for analyzing the instruction line of the custom controller and performing direct machine execution or calling the corresponding preset intelligent algorithm block and executing;
the communication unit is used for processing the data communication between the real-time data unit and the external node and dynamically generating subscription and release tasks according to the configuration;
the real-time database unit is used for performing memory storage and hard disk persistence on the input/output equipment and the internal data of the virtual controller;
The task scheduling unit is used for scheduling the computing tasks in the configuration according to the priority order and the time requirement, and calling a scheduler of the operating system to perform task scheduling;
the configuration file analysis sub-module is used for analyzing the configuration file sent by the engineer station and forming an internal instruction of the virtual controller;
and the timing unit and the management unit are used for calibrating an internal clock through GPS time signals, monitoring and diagnosing the state of the virtual controller and forming a log.
Optionally, the virtual controller includes:
and the data connection configuration unit is used for inquiring all data resources of the virtual controller and configuring corresponding data connection so as to refer or send data of the data cache area of the virtual controller to the corresponding input/output equipment and the controller data area.
Optionally, the service orchestration and file management module includes:
and the service arrangement sub-module is used for visually editing to generate engineering configuration files for flexibly configuring software and hardware of the controller virtualization control system.
Optionally, the service orchestration sub-module includes:
the parameter configuration unit is used for carrying out parameter configuration on hardware configuration, communication configuration, equipment connection and system parameters;
An algorithm configuration unit for realizing the representation of the control algorithm file through the algorithm block representation and the algorithm script form representation;
the database file configuration unit is used for configuring the database files of the real-time database, the historical database and the configuration data;
the graphical interface configuration unit is used for configuring an operation interface, a monitoring interface and an alarm interface in a graphical interface mode;
and the information recording unit is used for recording data information comprising the operation log, the time record and the performance index.
Optionally, the algorithm configuration unit includes:
an interface design unit for providing a visual layout and analysis tool based on the tool component of the graphical interface;
the language design unit is used for defining the attribute and the method of the preset intelligent algorithm block;
the directed graph design unit is used for representing the dependency relationship among the preset intelligent algorithm blocks based on the data structure of the directed graph.
Optionally, the controller virtualizes a control system, and further includes:
the arranging unit is used for dragging the preset intelligent algorithm blocks to the canvas area through input equipment utilized by a user side, carrying out partition representation based on multithreading, acquiring a plurality of target partitions, connecting each target partition through a connecting line, and carrying out attribute setting on the preset intelligent algorithm blocks in the target partitions;
The file analysis unit is used for creating parallel multithreading according to the configuration file and injecting an input data stream into a preset intelligent algorithm block; and sequentially executing preset intelligent algorithm blocks according to the dependency relationship and the topological order, and outputting an execution result to the corresponding virtual controller.
In a second aspect, the present application discloses a controller virtualization control method, including:
invoking resources of a universal server through a master virtual controller to perform point-to-point network communication with input/output equipment located in a first independent network segment;
invoking resources of the universal server through the standby virtual controller to perform point-to-point network communication with the input/output devices located in the second independent network segment;
the main virtual controller and the standby virtual controller are connected through the cross heartbeat line to realize state mutual detection and information synchronization of the main virtual controller and the standby virtual controller;
and establishing data connection among the main virtual controller, the standby virtual controller and the input/output equipment based on control logic and through configuration setting so as to carry out data transmission among the main virtual controller, the standby virtual controller and the input/output equipment.
In a third aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein the computer program when executed by a processor implements the steps of the previously disclosed virtualized controller communications method.
It can be seen that the present application discloses a controller virtualization control system, comprising: the system comprises a main virtual controller arranged in a first independent network segment, a virtual controller arranged in a standby virtual controller of a second independent network segment, input/output equipment respectively connected with the first independent network segment and the second independent network segment through a first network port and a second network, and a service arrangement and file management module positioned in a general PC (personal computer), wherein the main virtual controller is used for calling resources of the general server and the input/output equipment positioned in the first independent network segment to perform point-to-point network communication; the standby virtual controller is used for calling the resources of the universal server and the input/output equipment in the second independent network segment to perform point-to-point network communication; the main virtual controller and the standby virtual controller are connected through a cross heartbeat line and are used for realizing state mutual detection and information synchronization of the main virtual controller and the standby virtual controller; the service arrangement and file management module is used for establishing data connection among the main virtual controller, the standby virtual controller and the input/output equipment based on control logic and through configuration setting so as to carry out data transmission among the main virtual controller, the standby virtual controller and the input/output equipment. Therefore, by carrying out system design on the controller virtualization control system, the method for designing the virtualized controller structure capable of running on the general computer resource is provided, not only is all functions of the entity controller provided, but also supports programmable and complex intelligent algorithm parallel computing to run on the general server, and configuration and file management can be carried out on system hardware and algorithm logic configuration and file management of the controller through the service configuration and file management module, so that deployment of the virtual controller in the general computer can be further realized, and conventional simple logic and intelligent algorithm blocks can be simultaneously run.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a block diagram of a controller virtualization control system according to the present disclosure;
FIG. 2 is a schematic diagram of a programmable virtual controller system in accordance with one embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a specific messaging distributed communication design in accordance with the present disclosure;
FIG. 4 is a block diagram of a particular controller virtualization control system according to the present disclosure;
FIG. 5 is a schematic diagram of a virtual controller according to one embodiment of the present disclosure;
FIG. 6 is a schematic diagram of a configuration file structure according to the present application;
FIG. 7 is a schematic diagram of a hybrid configuration of intelligent algorithms and logic algorithms according to the present disclosure;
fig. 8 is a flowchart of a controller virtualization control method disclosed in the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Currently, in the art of virtual controller technology with features that support "virtualized" deployments, have "programmable" capabilities, provide intelligent algorithmic parallel computing environments, etc., and are used in industrial process control scenarios. Most of the method only realizes single virtualization or software of a conventional entity controller, and does not provide a detailed method for complex intelligent algorithm configuration, efficient operation and deployment. In the prior art, an industrial App resource open sharing method based on a containerization technology is provided, container arrangement management is performed based on a container cluster management system Kubernetes, industrial App packaging and mirror image publishing are performed based on an application container engine Docker, an industrial App is deployed, management calling service of the whole life cycle of the industrial App resource is provided, and the state of the industrial App is monitored. The system also provides an X86 architecture, has high performance and high reliability, and can meet the requirements of an industrial control system on instantaneity and stability. The system is characterized in that a software programming mode is adopted, and the PLC function is realized through software, so that the problems of high hardware development cost, difficult maintenance and the like are avoided. Multiple programming languages are supported, including Ladder language, SFC language, ST language, etc., so that the user can conveniently program. Can communicate with various external devices, including sensors, actuators, touch screens, etc., and has good expansibility. Remote monitoring and control are supported, and a user can conveniently perform remote operation and management. But only the programmable control function of the traditional PLC is realized by adopting a software definition method, the coding and parallel operation of the current complex intelligent control algorithm are not well supported, and the application of the virtualization technology is not mentioned.
Therefore, the application discloses a communication scheme of a virtualized controller, which can realize the deployment of the virtualized controller in a general computer and can simultaneously run conventional simple logic and intelligent algorithm blocks.
Referring to fig. 1, an embodiment of the present application discloses a controller virtualization control system, including: comprises a main virtual controller 111 arranged on a first independent network segment, a virtual controller 11 arranged on a standby virtual controller 112 of a second independent network segment, an input/output device 12 respectively connected with the first independent network segment and the second independent network segment through a first network port and a second network, and a service arrangement and file management module 13 positioned on a general PC, wherein,
the master virtual controller 111 is configured to invoke the resource of the generic server to perform peer-to-peer network communication with the input/output device 13 located in the first independent network segment;
the standby virtual controller 112 is configured to invoke the resource of the universal server to perform peer-to-peer network communication with the input/output device 12 located in the second independent network segment;
the main virtual controller 111 and the standby virtual controller 112 connected by a cross heartbeat line are used for implementing state mutual detection and information synchronization of the main virtual controller 111 and the standby virtual controller 112;
The service orchestration and file management module 13 is configured to establish data connections between the primary virtual controller 111, the backup virtual controller 112, and the input/output devices 12 based on control logic and through configuration settings, so as to perform data transmission among the primary virtual controller 111, the backup virtual controller 112, and the input/output devices 12.
It will be appreciated that referring to fig. 2, a controller virtualization control system is constructed, where the virtualized controller system includes system software and system hardware, the virtual controller is a set of software running on a virtual machine, specifically 111 indicates all primary virtual controllers in the controller virtualization control system, 112 indicates all standby virtual controllers in the controller virtualization control system, and specifically includes multiple primary virtual controllers and standby virtual controllers corresponding to the primary virtual controllers in the controller virtualization control system, so that the controller virtualization control system can implement automatic switching between the primary and the standby virtual controllers according to a fault condition. And 3 represents a general server, which is used as a hardware infrastructure and a computing resource virtualization operation carrier for operating the virtual controller, 4 represents an engineer and an operator station for controlling the virtual controller to virtualize a control system, and 5 represents system configuration software which is operated on the engineer and the operator station and comprises a service arrangement and file management module for configuring system hardware and the virtual controller, and the system configuration software is specifically used for configuring parameters of the system hardware and configuring and managing the algorithm logic arrangement configuration and file of the virtual controller. The monitoring software of the controller virtualization control system is shown as 6, which can monitor the states of all modules in the controller virtualization control system and the process of the controlled object, the equipment related to the Ethernet is shown as 7, the reliability of the bottom communication of the system is improved for the independent double-network structure, the system is mainly composed of a switch, an optical fiber and the like, and the 8 is matched IO equipment, and the system comprises: and the IO module is used for connecting the gateway of the IO equipment with monitoring objects such as an instrument and the like. The data transmission of the virtualized controller is realized by designing a data communication system which is efficient, reliable, real-time, flexible, extensible and safe and a virtualized controller carrier which supports programming, complex intelligent algorithm parallel computation and can run on general computing hardware.
Referring to fig. 3, a message passing mechanism oriented to data distribution is provided to implement data interaction between each control unit and the input/output device 8 in the virtualized communication system. Specifically, the first independent network segment 9 and the second independent network segment 10 are set as dual-network redundancy guarantee reliability, wherein the first independent network segment 9 can be 192 network segments, the second independent network segment 10 can be 172 network segments, then a main virtual controller and a corresponding standby virtual controller are used as controller nodes and standby controller nodes, a master-slave mechanism is constructed between the main controller nodes and the standby controller nodes, then the main controller nodes and the standby controller nodes are respectively set in the first independent network segment 9 and the second independent network segment 10, meanwhile, input/output equipment is used as gateway nodes and is set in the first independent network segment 9 and the second independent network segment 10, then point-to-point network communication is carried out aiming at the input/output gateway nodes and the controller nodes of the same network segment, an IP protocol is adopted by a network layer, a UDP protocol is adopted by a transmission layer, and distributed communication is carried out by an RTPS protocol by an upper layer. The virtual controllers are arranged in pairs to realize mutual standby, and the two virtual controllers realize state mutual detection and synchronization through a cross heartbeat connection line. The system IO equipment is provided with a gateway node connected to a system network, and two independent network ports are respectively connected to a first independent network segment 9 and a second independent network segment 10. The system is provided with a global management node which is respectively connected with two network segments, and carries out heartbeat connection on each node to acquire data of each node at regular time. All nodes on the network adopt RTPS protocol, data connection can be established between each point through configuration setting according to control logic requirement, a publisher and a subscriber are formed, and the publisher can send data to the subscriber. To ensure connection reliability, inter-node communication has heartbeat detection to monitor the state of the connection, and when a publisher or subscriber does not send data for a long time, the peer sends heartbeat packets to detect whether the connection is still alive. If the opposite terminal does not respond, the connection is considered to be disconnected, and a mechanism for retransmitting data is provided, and the connection can be opened or closed specifically according to the project requirement: during data transmission, if a data packet is lost or damaged, the transmission automatically triggers a data retransmission mechanism, and a publisher resends the lost data packet to a subscriber so as to ensure reliable transmission of the data. The decoupling between the controller node and the IO node is realized, the flexibility of system configuration is improved, the engineering implementation time can be saved, and the requirements of different industrial control scenes are met.
It can be seen that the present application discloses a controller virtualization control system, comprising: the system comprises a main virtual controller arranged in a first independent network segment, a virtual controller arranged in a standby virtual controller of a second independent network segment, input/output equipment respectively connected with the first independent network segment and the second independent network segment through a first network port and a second network, and a service arrangement and file management module positioned in a general PC (personal computer), wherein the main virtual controller is used for calling resources of the general server and the input/output equipment positioned in the first independent network segment to perform point-to-point network communication; the standby virtual controller is used for calling the resources of the universal server and the input/output equipment in the second independent network segment to perform point-to-point network communication; the main virtual controller and the standby virtual controller are connected through a cross heartbeat line and are used for realizing state mutual detection and information synchronization of the main virtual controller and the standby virtual controller; the service arrangement and file management module is used for establishing data connection among the main virtual controller, the standby virtual controller and the input/output equipment based on control logic and through configuration setting so as to carry out data transmission among the main virtual controller, the standby virtual controller and the input/output equipment. Therefore, by carrying out system design on the controller virtualization control system, the method for designing the virtualized controller structure capable of running on the general computer resource is provided, not only is all functions of the entity controller provided, but also supports programmable and complex intelligent algorithm parallel computing to run on the general server, and configuration and file management can be carried out on system hardware and algorithm logic configuration and file management of the controller through the service configuration and file management module, so that deployment of the virtual controller in the general computer can be further realized, and conventional simple logic and intelligent algorithm blocks can be simultaneously run.
Referring to fig. 4, an embodiment of the present invention discloses a specific controller virtualization control system, and compared with the previous embodiment, the present embodiment further describes and optimizes a technical solution. Specific:
the virtual controller 11 includes:
the controller algorithm application library 113 encapsulates the preset intelligent algorithm blocks for the script command parser to call;
the script command parser 114 is configured to parse the command line of the custom controller and perform direct machine execution or call and execute the corresponding preset intelligent algorithm block;
a communication unit 115, configured to process data communication between the real-time data unit and an external node, and dynamically generate subscription and publishing tasks according to a configuration;
a real-time database unit 116, configured to perform memory storage and hard disk persistence on the input/output device and internal data of the virtual controller;
a task scheduling unit 117, configured to schedule the computing tasks in the configuration according to the priority order and the time requirement, and call a scheduler of the operating system to perform task scheduling;
the configuration file analysis sub-module 118 is configured to analyze the configuration file sent by the engineer station and form an internal instruction of the virtual controller;
The timing unit and management unit 119 is configured to calibrate an internal clock through a GPS time signal, monitor and diagnose a state of the virtual controller, and form a log.
The virtual controller 11 includes:
and the data connection configuration unit 110 is configured to query all data resources of the virtual controller and configure corresponding data connections so as to reference or send data of the data cache area of the virtual controller to the corresponding input/output device and controller data area.
It will be appreciated that, in the virtual controller 11, a script command parser 113 is included that parses a received or custom controller command, and directly machine-executes after command parsing or invokes corresponding resource execution after command parsing, when command parsing is performed by the script command parser 113,
it can be understood that the controller algorithm application library 113 mainly encapsulates commonly used intelligent algorithm blocks for the script command parser 114 to call, and the script command parser 114 adopts a parser design of a shell-like structure for parsing a custom controller command line and performing direct machine execution or calling corresponding resources and executing. The communication unit 115 is mainly used for processing data communication between the real-time database unit 116 and external nodes, and dynamically generating subscription and publishing tasks according to configuration. The task scheduling unit 117 is mainly responsible for scheduling each calculation task in the configuration according to the priority and time requirements, and invoking a scheduler of the operating system to perform task scheduling. The configuration file parsing sub-module 118 is configured to parse the configuration file sent by the engineer station and form the internal command of the controller. The real-time database unit 116 is used for performing memory storage and hard disk persistence on the data in the IO and virtual controllers. The timing unit is used for calibrating an internal clock through the GPS time signal. The management unit monitors and diagnoses the states of all the modules of the controller and forms a log. The virtual controllers are designed by separating data from computation, the data connection configuration unit 110 is used for performing data connection configuration on the data areas of the virtual controllers by querying data resources in the global nodes, variables of the data cache areas in each virtual controller can be referenced or sent to corresponding IO modules and the data areas of the controllers, distributed interconnection of data is realized, and the data transmission relationship is analyzed by the designed communication unit 115. Referring to fig. 5, a modular design of a virtual controller architecture is provided, specifically, a bottom layer of the virtual controller is a virtual machine, and virtualization technologies such as Xen, KVM, VMware and the like are adopted to realize virtualization of general it server resources. Wherein the general it server resource may include, but is not limited to: CPU, memory, hard disk, network, etc. And running RTOS (real-time operating system) software on the virtual machine, and installing a bottom layer driver and an API (application program interface) environment required by upper layer software, wherein the components comprise a script instruction analyzer, a real-time data module, a communication unit, a task scheduling unit, a configuration file analysis, a controller algorithm application library, a timing unit, a management unit and the like.
The service orchestration and file management module 13 comprises:
the service orchestration sub-module 131 is configured to visually edit the configuration file to generate an engineering configuration file for flexibly configuring software and hardware of the controller virtualized control system.
The service orchestration sub-module 131 includes:
a parameter configuration unit 1311, configured to perform parameter configuration on hardware configuration, communication configuration, device connection, and system parameters;
an algorithm configuration unit 1312 for implementing the representation of the control algorithm file by means of an algorithm block representation and an algorithm script form representation;
a database file configuration unit 1313, configured to perform a database file configuration on the real-time database, the history database, and the configuration data;
a graphical interface configuration unit 1314, configured to configure the operation interface, the monitoring interface, and the alarm interface in a graphical interface form;
an information recording unit 1315 for recording data information including a running log, a time record, and a performance index.
The algorithm configuration unit 1312 includes:
an interface design unit 13121 for providing a visual layout and parsing tool based on the tool components of the graphical interface;
a language design unit 13122 for defining the attribute and method of the preset intelligent algorithm block;
The directed graph design unit 13123 is configured to represent the dependency relationship between the preset intelligent algorithm blocks based on the data structure of the directed graph.
The controller virtualization control system further comprises:
the arranging unit 13124 is configured to drag the preset intelligent algorithm block to the canvas area through an input device utilized by the user side, perform partition representation based on multithreading, obtain a plurality of target partitions, connect each target partition through a connection line, and perform attribute setting on the preset intelligent algorithm block in the target partition;
the file parsing unit 13125 is configured to create parallel multithreading according to the configuration file, and inject an input data stream into a preset intelligent algorithm block; and sequentially executing preset intelligent algorithm blocks according to the dependency relationship and the topological order, and outputting an execution result to the corresponding virtual controller.
It can be understood that in the service orchestration and file management module 13, the algorithm logic orchestration configuration and file management of the virtual controller are mainly performed, where, for the algorithm logic orchestration configuration, the project configuration file of flexible configuration of the system software and hardware is mainly visualized through the service orchestration sub-module 131, specifically, in the service orchestration sub-module 131, the corresponding parameter configuration is performed on the system software and hardware through the parameter configuration unit 1311, and the algorithm configuration unit 1312 realizes the representation of the control algorithm file through the algorithm block representation and the algorithm script form representation; database file configuration section 1313 performs a database file configuration for a real-time database, a history database, and configuration data; a graphical interface configuration unit 1314 configured in a graphical interface form for the operation interface, the monitoring interface, and the alarm interface; the information recording unit 1315 records data information including a running log, a time record, and a performance index. Specifically, referring to fig. 6, the controller virtualization control system may perform file editing to form an engineering configuration file, so as to implement flexible and configurable software and hardware of the system, and the configuration file may be opened and visually edited by an engineer station configuration software module. The design of the configuration file system mainly comprises the following steps: the system configuration file specifically comprises hardware configuration, communication configuration, equipment connection and system parameters; a control algorithm file including a function block representation and a script form representation; the database file comprises a real-time database, a historical database and configuration data; the graphical interface file comprises an operation interface, a monitoring interface, an alarm interface and the like, and is displayed in the form of a graphical interface, and various reports, logs and other information such as operation logs, event records, performance indexes and the like.
It can be appreciated that in the algorithm configuration unit 1311, the control algorithm file provides a tool for arranging and analyzing intelligent algorithm functional blocks based on directed graphs, besides supporting the conventional functional block graphs, and the design method is as follows: (1) interface design: a graphical interface is adopted to provide visual arrangement and analysis tools for users. Including toolbar, canvas area, property panel, console, etc. (2) language design: in a manner similar to object-oriented programming, the algorithm function blocks are abstracted into classes or objects, and their properties and methods are defined. For example, a class named "algorithm block" may be defined that includes the input/output ports, attributes, methods of operation, etc. of the algorithm block. (3) directed graph design: the data structure of the directed graph is used to represent the dependency between the functional blocks of the algorithm. (4) programming function implementation: referring to fig. 7, a user can drag an algorithm function block to a canvas area by means of a mouse drag, the canvas area implements a partitioned representation according to multithreading, and connects them by a wire. The links may represent dependencies between data flows or control flows. The user can also set the attribute of the algorithm function block, such as name, input/output port, parameter, etc., specifically, in the thread 1-1, add the input variable 1-11 and the input variable 1-12, then input the addition result of the input variable to the intelligent algorithm block 1-14, obtain the first process result; the input variables 1-13 are directly input into the intelligent algorithm blocks 1-15 to obtain a second process result, and the first process result and the second process result are subjected to size judgment to obtain a final judgment result which is used as output variables 1-16 to be output. And corresponding logic and intelligent algorithm block processing is carried out on the input variable 2-11, the input variable 2-12 and the input variable 2-13 through the thread 2-1, so that the output variable 2-15 is obtained. And (5) realizing an analysis function: the system provides a configuration file analysis module to analyze the algorithm configuration file, creates parallel multithreading according to the content of the configuration file, and injects the input data stream into the algorithm function block. The analysis function sequentially executes the algorithm function blocks according to the dependency relationship in the directed graph and the topological order, and outputs the result to the corresponding controller internal mapping. (6) error handling: many error handling situations are involved in the orchestration and parsing process, such as node absence, input-output port mismatch, cyclic dependencies, etc. Therefore, it is necessary to consider these anomalies in the design and provide corresponding error cues and handling mechanisms. (7) file format: in order to facilitate the storage and loading of the arrangement of the algorithm function blocks, a file format can be defined to store the data structure of the directed graph and the attributes of the algorithm function blocks, and the system adopts an XML format to store the data.
The configuration function of the existing virtual controller mainly follows the international standard programming language of IEC61131-3, the language structure is relatively simple, only a few simple algorithm logics can be realized, and for complex algorithm realization, such as deep learning, reinforcement learning and the like, the language is difficult to express, so that the controller mainly supports the conventional simple logics, and the development of an intelligent algorithm is difficult to realize. For intelligent algorithm operation with strong calculation power, the virtual controller does not design corresponding parallel processing and acceleration mechanism, so that the virtual controller is still suitable for running logic operation with lower calculation complexity. The main reason for this problem is that the existing virtual controller technology mainly makes software for an entity controller such as a PLC, and does not change the original single-thread, sequential serial computing framework. By adopting the virtualization technology, the application can virtualize a plurality of controllers to one physical device, thereby realizing unified management and control of different controllers and improving the reliability, stability, safety and management efficiency of the system. Through the systematic design of the virtual controller, the intelligent application algorithm block not only has all functions of the physical controller, but also has the capability of providing an operation environment for the intelligent application algorithm block based on the technologies of neural network, big data mining, advanced control and the like, and the problem that the conventional controller can only operate a simple logic algorithm at present is solved.
Therefore, by designing a low-code system development scheme comprising conventional simple logic and intelligent algorithm configuration, the current situation that the conventional intelligent algorithm and the conventional simple logic cannot coexist in the same controller is solved, the engineering application range of the virtual controller is increased, and an efficient and convenient tool is provided for engineering developers.
Referring to fig. 8, the embodiment of the invention also correspondingly discloses a controller virtualization control method, which includes:
step S11: the resource of the universal server is invoked by the master virtual controller to perform point-to-point network communication with the input/output devices located in the first independent network segment.
In this embodiment, a first independent network segment and a second independent network segment are set as dual-network redundancy guarantee reliability, where the first independent network segment may be 192 network segments, the second independent network segment may be 172 network segments, then a master virtual controller is used as a controller node, then the master controller node is set in the first independent network segment, and meanwhile, an input/output device is set in the first independent network segment as a gateway node, so that peer-to-peer network communication is performed with the master virtual controller in the first independent network segment 192 and the input/output device by calling a universal server resource.
Step S12: the resource of the universal server is invoked by the standby virtual controller to perform point-to-point network communication with the input/output devices located in the second independent network segment.
In this embodiment, the standby virtual controller is used as a standby controller node, and then the standby controller node is disposed in the second independent network segment 172, and then the standby virtual controller in the second independent network segment 192 and the standby virtual controller are in peer-to-peer network communication with the input/output device by calling the universal server resource.
Step S13: the main virtual controller and the standby virtual controller are connected through the cross heartbeat line to realize state mutual detection and information synchronization of the main virtual controller and the standby virtual controller.
In this embodiment, a master-slave mechanism is constructed between the master controller node and the standby controller node, and the master controller node and the standby controller node are connected through a cross heartbeat line, so as to realize state mutual detection and synchronization. Meanwhile, global management nodes are further arranged and connected to the first independent network segment and the second independent network segment respectively, heartbeat connection is carried out on each node, and the nodes are used for acquiring node data generated by each node at fixed time, so that global monitoring is achieved.
Step S14: and establishing data connection among the main virtual controller, the standby virtual controller and the input/output equipment based on control logic and through configuration setting so as to carry out data transmission among the main virtual controller, the standby virtual controller and the input/output equipment.
In this embodiment, all nodes on the network adopt RTPS protocol, and data connection can be established between each two points through configuration setting according to control logic requirements to form a publisher and a subscriber, and the publisher can send data to the subscriber.
It can be seen that the present application discloses invoking resources of the generic server for peer-to-peer network communication with an input/output device located in the first independent network segment; invoking resources of the universal server to perform point-to-point network communication with input/output devices located in the second independent network segment; the main virtual controller and the standby virtual controller are connected through a cross heartbeat line, so that the state mutual detection and the information synchronization of the main virtual controller and the standby virtual controller are realized; and establishing data connection among the main virtual controller, the standby virtual controller and the input/output equipment based on control logic and through configuration setting so as to carry out data transmission among the main virtual controller, the standby virtual controller and the input/output equipment. Therefore, by carrying out system design on the controller virtualization control system, the method for designing the virtualized controller structure capable of running on the general computer resource is provided, not only is all functions of the entity controller provided, but also supports programmable and complex intelligent algorithm parallel computing to run on the general server, and configuration and file management can be carried out on system hardware and algorithm logic configuration and file management of the controller through the service configuration and file management module, so that deployment of the virtual controller in the general computer can be further realized, and conventional simple logic and intelligent algorithm blocks can be simultaneously run.
Further, the application also discloses a computer readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the previously disclosed virtualized controller communications method. For specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and no further description is given here.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application. The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description of the controller virtualization control system, the method and the storage medium provided by the present invention applies specific examples to illustrate the principles and the implementation of the present invention, and the above description of the examples is only used to help understand the method and the core idea of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (9)

1. A controller virtualization control system, the controller virtualization control system comprising: comprises a main virtual controller arranged on a first independent network segment, a virtual controller arranged on a standby virtual controller of a second independent network segment, input/output equipment respectively connected with the first independent network segment and the second independent network segment through a first network port and a second network, and a service arrangement and file management module positioned on a general PC (personal computer),
the main virtual controller is used for calling the resources of the universal server and the input/output equipment in the first independent network segment to perform point-to-point network communication;
the standby virtual controller is used for calling the resources of the universal server and the input/output equipment in the second independent network segment to perform point-to-point network communication;
the main virtual controller and the standby virtual controller are connected through a cross heartbeat line and are used for realizing state mutual detection and information synchronization of the main virtual controller and the standby virtual controller;
the service arrangement and file management module is used for establishing data connection among the main virtual controller, the standby virtual controller and the input/output equipment based on control logic and through configuration setting so as to carry out data transmission among the main virtual controller, the standby virtual controller and the input/output equipment.
2. The controller virtualization control system of claim 1, wherein the virtual controller comprises:
the controller algorithm application library encapsulates a preset intelligent algorithm block for calling by a script instruction parser;
the script instruction analyzer is used for analyzing the instruction line of the custom controller and performing direct machine execution or calling the corresponding preset intelligent algorithm block and executing;
the communication unit is used for processing the data communication between the real-time data unit and the external node and dynamically generating subscription and release tasks according to the configuration;
the real-time database unit is used for performing memory storage and hard disk persistence on the input/output equipment and the internal data of the virtual controller;
the task scheduling unit is used for scheduling the computing tasks in the configuration according to the priority order and the time requirement, and calling a scheduler of the operating system to perform task scheduling;
the configuration file analysis sub-module is used for analyzing the configuration file sent by the engineer station and forming an internal instruction of the virtual controller;
and the timing unit and the management unit are used for calibrating an internal clock through GPS time signals, monitoring and diagnosing the state of the virtual controller and forming a log.
3. The controller virtualization control system of claim 2, wherein the virtual controller comprises:
and the data connection configuration unit is used for inquiring all data resources of the virtual controller and configuring corresponding data connection so as to refer or send data of the data cache area of the virtual controller to the corresponding input/output equipment and the controller data area.
4. The controller virtualization control system of claim 2, wherein the service orchestration and file management module comprises:
and the service arrangement sub-module is used for visually editing to generate engineering configuration files for flexibly configuring software and hardware of the controller virtualization control system.
5. The controller virtualization control system of claim 4, wherein the service orchestration sub-module comprises:
the parameter configuration unit is used for carrying out parameter configuration on hardware configuration, communication configuration, equipment connection and system parameters;
an algorithm configuration unit for realizing the representation of the control algorithm file through the algorithm block representation and the algorithm script form representation;
the database file configuration unit is used for configuring the database files of the real-time database, the historical database and the configuration data;
The graphical interface configuration unit is used for configuring an operation interface, a monitoring interface and an alarm interface in a graphical interface mode;
and the information recording unit is used for recording data information comprising the operation log, the time record and the performance index.
6. The controller virtualization control system of claim 4, wherein the algorithm configuration unit comprises:
an interface design unit for providing a visual layout and analysis tool based on the tool component of the graphical interface;
the language design unit is used for defining the attribute and the method of the preset intelligent algorithm block;
the directed graph design unit is used for representing the dependency relationship among the preset intelligent algorithm blocks based on the data structure of the directed graph.
7. The controller virtualization control system of claim 6, further comprising:
the arranging unit is used for dragging the preset intelligent algorithm blocks to the canvas area through input equipment utilized by a user side, carrying out partition representation based on multithreading, acquiring a plurality of target partitions, connecting each target partition through a connecting line, and carrying out attribute setting on the preset intelligent algorithm blocks in the target partitions;
the file analysis unit is used for creating parallel multithreading according to the configuration file and injecting an input data stream into a preset intelligent algorithm block; and sequentially executing preset intelligent algorithm blocks according to the dependency relationship and the topological order, and outputting an execution result to the corresponding virtual controller.
8. A controller virtualization control method, comprising:
invoking resources of a universal server through a master virtual controller to perform point-to-point network communication with input/output equipment located in a first independent network segment;
invoking resources of the universal server through the standby virtual controller to perform point-to-point network communication with the input/output devices located in the second independent network segment;
the main virtual controller and the standby virtual controller are connected through the cross heartbeat line to realize state mutual detection and information synchronization of the main virtual controller and the standby virtual controller;
and establishing data connection among the main virtual controller, the standby virtual controller and the input/output equipment based on control logic and through configuration setting so as to carry out data transmission among the main virtual controller, the standby virtual controller and the input/output equipment.
9. A computer-readable storage medium storing a computer program; wherein the computer program when executed by a processor implements the steps of the virtualized controller communication method of claim 8.
CN202310964768.XA 2023-08-02 2023-08-02 Controller virtualization control system, method and storage medium Pending CN116962425A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310964768.XA CN116962425A (en) 2023-08-02 2023-08-02 Controller virtualization control system, method and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310964768.XA CN116962425A (en) 2023-08-02 2023-08-02 Controller virtualization control system, method and storage medium

Publications (1)

Publication Number Publication Date
CN116962425A true CN116962425A (en) 2023-10-27

Family

ID=88458163

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310964768.XA Pending CN116962425A (en) 2023-08-02 2023-08-02 Controller virtualization control system, method and storage medium

Country Status (1)

Country Link
CN (1) CN116962425A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180006878A1 (en) * 2016-06-29 2018-01-04 Nicira, Inc. Centralized Troubleshooting Tool for Distributed Virtual Network
CN108365979A (en) * 2018-01-31 2018-08-03 深信服科技股份有限公司 Across the controller management method of cluster, SDN controllers and storage medium
CN109428768A (en) * 2017-10-27 2019-03-05 上海乾廷网络科技有限公司 A kind of operational approach and autonomous networks of autonomous networks
WO2020047780A1 (en) * 2018-09-05 2020-03-12 西门子股份公司 Redundant hot standby control system and control device, redundant hot standby method and computer-readable storage medium
CN116193481A (en) * 2023-02-07 2023-05-30 京信网络系统股份有限公司 5G core network processing method, device, equipment and medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180006878A1 (en) * 2016-06-29 2018-01-04 Nicira, Inc. Centralized Troubleshooting Tool for Distributed Virtual Network
CN109428768A (en) * 2017-10-27 2019-03-05 上海乾廷网络科技有限公司 A kind of operational approach and autonomous networks of autonomous networks
CN108365979A (en) * 2018-01-31 2018-08-03 深信服科技股份有限公司 Across the controller management method of cluster, SDN controllers and storage medium
WO2020047780A1 (en) * 2018-09-05 2020-03-12 西门子股份公司 Redundant hot standby control system and control device, redundant hot standby method and computer-readable storage medium
US20210311453A1 (en) * 2018-09-05 2021-10-07 Siemens Aktiengesellschaft Redundant hot standby control system and control device, redundant hot standby method and computer-readable storage medium
CN116193481A (en) * 2023-02-07 2023-05-30 京信网络系统股份有限公司 5G core network processing method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN110582732B (en) Open architecture industrial control system
EP3285127B1 (en) Remote industrial automation site operation in a cloud platform
US11461114B2 (en) Disaggregated cloud-native network architecture
El Kaed et al. SRE: Semantic rules engine for the industrial Internet-of-Things gateways
Houyou et al. Agile manufacturing: General challenges and an IoT@ Work perspective
Thramboulidis Development of distributed industrial control applications: The CORFU framework
US9785412B1 (en) Methods and systems for object-oriented modeling of networks
Pereira et al. DINASORE: A Dynamic Intelligent Reconfiguration Tool for Cyber-Physical Production Systems.
Vieira et al. Low-cost industrial controller based on the raspberry pi platform
Lam et al. Dynamical orchestration and configuration services in industrial iot systems: An autonomic approach
TWI651667B (en) Interface system of virtual and physical integrated network with resources topology
Rabah et al. An interactive graph-based automation assistant: A case study to manage the GIPSY's distributed multi-tier run-time system
CN116962425A (en) Controller virtualization control system, method and storage medium
Ledeczi et al. Model-integrated embedded systems
CN110933952B (en) Method for semantic search and rules for distributed data systems
Dai et al. Automatic information model generation for industrial edge applications based on IEC 61499 and OPC UA
Paronen A web-based monitoring system for the Industrial Internet
Theorin A sequential control language for industrial automation
Lepuschitz et al. Ontology-driven automated software configuration for manufacturing system components
Sakurada et al. Engineering a multi-agent systems approach for realizing collaborative asset administration shells
Pfrommer et al. Deploying software functionality to manufacturing resources safely at runtime
ElHakim et al. Let's DO-Automotive Platform for Interoperability
Thramboulidis et al. Field device specification for the development of function block oriented engineering support systems
Konttinen Architecture of Industrial Device Interfaces
Grüner et al. An approach for interconnection and unification of state models in discrete manufacturing

Legal Events

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