Equipment automatic control system based on edge computing gateway and edge computing gateway

Through the automatic device control system based on edge computing gateway, the problem of PLC equipment being difficult to control intelligent devices that do not provide IO port access is solved, and flexible control of various types of communication interface devices is realized, reducing construction costs.

CN119814842APending Publication Date: 2025-04-11PINGGAO GRP CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411842624.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-13
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

It is difficult for existing PLC devices to sampling and control smart devices that do not provide IO port access, resulting in the need to add other communication conversion equipment when controlling smart devices of various types of communication interfaces in integrated energy projects, which increases construction costs.

Method used

An automatic device control system based on edge computing gateway is adopted. The system includes a configuration interface, a configuration generation module, a communication management module and a control module. Through the configuration interface, the user can configure the automatic control logic process, the configuration generation module generates configuration files, the communication management module collects input data, the control module analyzes the configuration files and issues control instructions.

Benefits of technology

The sampling and control of intelligent devices that do not provide IO port access is realized, which reduces construction costs and improves the flexibility and efficiency of automatic equipment control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119814842A_ABST
    Figure CN119814842A_ABST
Patent Text Reader

Abstract

The invention relates to an automatic equipment control system based on an edge computing gateway and the edge computing gateway, and belongs to the technical field of Internet of Things communication. The equipment automatic control system comprises a configuration interface, a configuration generation module, a communication management module used for collecting input data of equipment automatic control logic accessed to the gateway, and a control module. The configuration interface is used for displaying a preset device data input end, a preset device data output end, identifiers of the preset device data input end and the preset device data output end, and configuration parameters of primitive templates corresponding to the management instructions and the logic instructions; the configuration generation module is used for reading the primitive template selected through the configuration interface and the value of the configuration parameter of the primitive template to obtain a corresponding control instruction so as to generate a configuration file corresponding to the automatic control logic process; and the control module is used for analyzing the configuration file and issuing a running operation instruction to corresponding equipment through the communication management module. The edge computing gateway of the automatic equipment control system based on the edge computing gateway can realize data sampling and control with equipment with various communication interfaces.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an edge computing gateway-based equipment automatic control system and an edge computing gateway, and belongs to the technical field of Internet of Things communications. Background Art

[0002] PLC (Programmable Logic Controller) is an electronic system that operates digital computing operations and is designed for use in industrial environments. It collects data from equipment (such as sensor readings, equipment status, etc.) and transmits this data to external systems through communication interfaces. At the same time, it controls external equipment (such as start, stop, speed regulation, etc.) based on internally stored programs.

[0003] At present, the main PLC equipment manufacturers on the market include Siemens and Schneider of Germany, Omron and Mitsubishi of Japan, etc. They generally use 16-32 bit processors, and the signal input and output are realized by the IO port to collect various sensor signals. The communication management interface with the monitoring system mostly adopts the modbus protocol. However, there are more and more sensors integrated in various modern on-site equipment, and many intelligent devices no longer provide IO port access, but use various communication interfaces such as 485, RJ45, CAN, etc. to realize data collection and equipment control. Therefore, the PLC equipment on the market that completes signal collection and equipment control by its own equipment is difficult to realize the sampling and control of the current intelligent equipment that does not provide IO port access. That is, when there is a demand for control of intelligent equipment with various types of communication interfaces in the comprehensive energy project, if PLC equipment is used to achieve it, other communication conversion equipment is often required, which will greatly increase the construction cost. Summary of the invention

[0004] The purpose of the present invention is to provide an equipment automatic control system and an edge computing gateway based on an edge computing gateway, so as to solve the problem that PLC equipment that currently completes signal acquisition and equipment control by its own equipment is difficult to implement sampling and control of current intelligent devices that do not provide IO port access.

[0005] In order to solve the above technical problems, the present invention provides an equipment automatic control system based on an edge computing gateway, the system comprising: a configuration interface, a configuration generation module, a communication management module and a control module in the edge computing gateway; the configuration interface is used to display at least one of the preset data input terminals of the equipment switch quantity and analog quantity input signals and their identifiers and at least one of the data output terminals of the equipment switch quantity and analog quantity output signals and their identifiers, so that the user can select the corresponding identifier to configure the input and output data of the automatic control logic of the equipment connected to the gateway; it is also used to display different primitive templates corresponding to different preset management instructions and logic instructions and the configuration parameters of the primitive templates corresponding to each logic instruction, so that the user can select the corresponding primitive template and set the value of the configuration parameter of the logic instruction in combination with the configured input and output data to configure the automatic control logic process; The configuration generation module is used to read the corresponding primitive template and the value of its configuration parameters selected through the configuration interface, obtain the corresponding control instructions, and generate a configuration file corresponding to the automatic control logic process; the communication management module is used to collect the input data of the automatic control logic; the control module is used to parse the configuration file, run the control instructions of the configuration file according to the input data of the automatic control logic, and send the operation instructions generated when running the control instructions of the configuration file to the corresponding device through the communication management module according to the output data of the automatic control logic; the logic instructions include: conditional instructions for conditional judgment and processing using input data and connecting arrow instructions for indicating the order of instruction execution; management instructions are used to control the execution status of tasks containing logic instructions.

[0006] Furthermore, the configuration parameters of the graphic element template corresponding to the connection arrow instruction include: the starting point position and the end point position of the connection line with the pointing arrow configured by the user according to the requirements; The configuration generation module reads the connection arrow instruction selected through the configuration interface and the value of its configuration parameters, and obtains the corresponding control instruction in the following manner: the configuration generation module reads the starting and ending positions of the selected connection arrow instruction, and obtains the control instruction for controlling the control instruction corresponding to the starting position of the connection arrow instruction to jump to the control instruction corresponding to the end point of the connection arrow instruction after execution.

[0007] Further, the conditional instruction includes at least one of a conditional branch instruction and a conditional wait instruction; The configuration parameters of the graphic element template corresponding to the conditional branch instruction include: parameters corresponding to each condition set by selecting the identifier of the data input terminal, parameter values ​​of the judgment logic corresponding to each condition set by selecting the identifier of the data input terminal or set by the user according to requirements, a set delay time after the overall judgment logic of the conditional branch instruction is not satisfied, set by the user according to requirements, a logical relationship between the parameter corresponding to each condition and the parameter value of the judgment logic corresponding to the condition, and a logical relationship between the various conditions; The configuration parameters of the primitive template corresponding to the connection arrow instruction also include: conditional jump parameters set according to different results corresponding to the overall judgment logic of the conditional branch instruction; the conditional jump parameter of the connection arrow instruction whose end point is used to connect to the next logic instruction corresponding to the overall judgment logic of the conditional branch instruction is set to the first jump value, and the conditional jump parameter of the connection arrow instruction whose end point is used to connect to the next logic instruction corresponding to the overall judgment logic of the conditional branch instruction is not satisfied is set to the second jump value; The configuration generation module reads the conditional branch instruction selected through the configuration interface, and the method of obtaining the corresponding control instruction includes: the configuration generation module determines the judgment logic of each condition by reading the parameters corresponding to each set condition, the parameter value of the judgment logic corresponding to each condition, and the logical relationship between the parameter corresponding to the condition and the parameter value of the judgment logic corresponding to the condition; and then obtains the control instruction for controlling the corresponding control instruction to be jumped to execute when the overall judgment logic of the conditional branch instruction is met and the corresponding control instruction to be jumped to execute after waiting for the set delay time when the overall judgment logic of the conditional branch instruction is met by reading the logical relationship between the conditions and the set delay time, combined with the judgment logic of each condition; The configuration generation module reads the connection arrow instruction and the value of its configuration parameter selected through the configuration interface, and the method of obtaining the corresponding control instruction also includes: the configuration generation module reads the end position and conditional jump parameter of the connection arrow instruction whose starting point position is selected at the conditional branch instruction; according to the end position of the connection arrow instruction whose conditional jump parameter is a first jump value, obtains a control instruction for controlling the jump execution of the control instruction corresponding to the end position when the result of the control instruction corresponding to the conditional branch instruction is satisfied; according to the end point of the connection arrow instruction whose conditional jump parameter is a second jump value, obtains a control instruction for controlling the jump execution of the control instruction corresponding to the end position when the result of the control instruction corresponding to the conditional branch instruction is not satisfied; The configuration parameters of the graphic element template corresponding to the conditional waiting instruction include: parameters corresponding to each condition set by selecting the identifier of the data input terminal, parameter values ​​of the judgment logic corresponding to each condition set by selecting the identifier of the data input terminal or set by the user according to requirements, a set duration after the overall judgment logic of the conditional waiting instruction is satisfied, set by the user according to requirements, a logical relationship between the parameter corresponding to each condition and the parameter value satisfying the judgment logic corresponding to the condition, and a logical relationship between the conditions; The configuration generation module reads the conditional waiting instruction selected through the configuration interface, and the method of obtaining the corresponding control instruction includes: the configuration generation module determines the judgment logic of each condition by reading the parameters corresponding to each set condition, the parameter value of the judgment logic corresponding to each condition, and the parameter corresponding to the condition and the parameter value of the judgment logic corresponding to the condition; and then obtains the control instruction for controlling the overall judgment logic of the conditional waiting instruction to jump to execute the next control instruction when the overall judgment logic of the conditional waiting instruction is met and the duration reaches the set duration by reading the logical relationship between each condition and the set duration corresponding to the overall judgment logic, combined with the judgment logic of each condition.

[0008] Further, the management instruction includes a start instruction, a normal end instruction, a return instruction and an abnormal termination instruction; the method of selecting the start instruction through the configuration interface includes creating a task through the configuration interface or automatically selecting a function block corresponding to the task; The configuration generation module reads the startup instruction selected through the configuration interface to obtain the corresponding control instruction, including: the configuration generation module reads the startup instruction selected through the configuration interface to obtain a control instruction for controlling the task corresponding to the startup instruction or the function block corresponding to the task to be in a start execution state; The configuration generation module reads the normal end instruction selected through the configuration interface to obtain the corresponding control instruction, including: the configuration generation module reads the normal end instruction selected through the configuration interface to obtain a control instruction for controlling the task corresponding to the normal end instruction or the function block corresponding to the task to be in a normal termination execution state; The configuration generation module reads the return instruction selected through the configuration interface to obtain the corresponding control instruction, including: the configuration generation module reads the return instruction selected through the configuration interface to obtain a control instruction for controlling the task corresponding to the return instruction or the function block corresponding to the task to be in an exit execution state; The configuration generation module reads the abnormal termination instruction selected through the configuration interface, and obtains the corresponding control instruction in the following manner: the configuration generation module reads the abnormal termination instruction selected through the configuration interface, and obtains the control instruction for controlling the task corresponding to the abnormal termination instruction or the function block corresponding to the task to be in a terminated execution state and output a fault code.

[0009] Furthermore, the logic instructions also include delay instructions; The configuration parameters of the graphic element template corresponding to the delay instruction include: the delay time value set by selecting the identifier of the data input terminal or the user according to the requirements; The configuration generation module reads the delay instruction and the value of its configuration parameters selected through the configuration interface to obtain the corresponding control instruction, including: the configuration generation module reads the set delay time value to obtain a control instruction for controlling the jump to execute the next control instruction after waiting for the delay time value.

[0010] Furthermore, the logic instruction also includes a node control instruction, and the node control instruction includes at least one of a remote control instruction, a remote adjustment setting instruction, and a gear adjustment instruction; the configuration parameters of the graphic element template corresponding to the remote control instruction include: a remote control object set by selecting an identifier of the data output terminal and a remote control object value configured by a user according to requirements; the remote control object value includes: a value corresponding to a continuous opening operation and a value of its duration, a value corresponding to a continuous closing operation and a value of its duration, a value corresponding to an opening operation, and a value corresponding to a closing operation; The configuration generation module reads the remote control command and the value of the configuration parameter selected through the configuration interface to obtain the corresponding control command, including: the configuration generation module reads the set remote control object and the remote control object value to obtain the control command for controlling the set remote control object to output the operation corresponding to the remote control object value; The configuration parameters of the graphic element template corresponding to the remote adjustment setting instruction include: each remote adjustment object set by selecting the identifier of the data output terminal, and the remote adjustment object parameter value of each remote adjustment object corresponding to the remote adjustment instruction set by selecting the identifier of the data output terminal or configured by the user according to the needs; The configuration generation module reads the remote adjustment setting instruction and the value of the configuration parameter thereof selected through the configuration interface to obtain the corresponding control instruction, including: the configuration generation module reads each remote adjustment object and the remote adjustment object parameter value of each remote adjustment object corresponding to the remote adjustment setting instruction, and obtains the control instruction for controlling the remote adjustment object to output the corresponding remote adjustment object parameter value; The configuration parameters of the graphic element template corresponding to the gear adjustment instruction include: each remote adjustment object set by selecting the identifier of the data output terminal and each remote adjustment object step value configured by the user according to the needs; The configuration generation module reads the gear adjustment instruction and the value of its configuration parameters selected through the configuration interface, and obtains the corresponding control instruction in the following manner: the configuration generation module reads the adjustment step of each remote adjustment object and the adjustment step value of each remote adjustment object, and obtains the control instruction for controlling each remote adjustment object to adjust according to the adjustment step value.

[0011] Furthermore, the logic instruction also includes an operation instruction for performing an operation on input data; the operation instruction includes at least one of a unary operation instruction, a binary operation instruction and a multi-element operation instruction; The configuration parameters of the primitive template corresponding to the unary operation instruction include: input parameters set by selecting the identifier of the data input terminal or set by the user according to the requirements, the unary operator configured by the user according to the requirements, and the output parameters set by selecting the identifier of the data output terminal; The configuration generation module reads the value of the unary operation instruction and its configuration parameter selected through the configuration interface to obtain the corresponding control instruction, including: the configuration generation module obtains the control instruction for controlling the assignment of the result of the unary operator operation of the input parameter to the output parameter by reading the input parameter, the unary operator and the output parameter; The configuration parameters of the primitive template corresponding to the binary operation instruction include: a first input parameter and a second input parameter set by selecting an identifier of a data input terminal or set by a user according to requirements, a binary operator between the first input parameter and the second input parameter configured by a user according to requirements, and an output parameter set by selecting an identifier of a data output terminal; The configuration generation module reads the binary operation instruction and the value of the configuration parameter thereof selected through the configuration interface to obtain the corresponding control instruction, including: the configuration generation module reads the first input parameter and the second input parameter, the binary operator and the output parameter to obtain the control instruction for controlling the assignment of the result of the binary operator operation of the first input parameter and the second input parameter to the output parameter; The configuration parameters of the primitive template corresponding to the multivariate operation instruction include: input parameters greater than or equal to 3 set by selecting the identifier of the data input terminal or set according to the requirements of the multivariate operation instruction, multivariate operators between the input parameters configured by the user according to the requirements, and output parameters set by selecting the identifier of the data output terminal; The configuration generation module reads the values ​​of the multivariate operation instructions and their configuration parameters selected through the configuration interface, and obtains the corresponding control instructions in the following manner: the configuration generation module reads each input parameter, the multivariate operator between each input parameter, and the output parameter, and obtains the control instruction for controlling the assignment of the result of each input parameter after the multivariate operator operation to the output parameter.

[0012] Furthermore, the logic instructions also include a function block calling instruction for calling a function block corresponding to another task in the current task or the function block corresponding to the current task; The configuration parameters of the graphic element template corresponding to the function block call instruction include: all configuration parameters of the graphic element template corresponding to the task containing the logic instruction; The configuration generation module reads the function block call instruction and the value of its configuration parameters selected through the configuration interface, and obtains the corresponding control instruction in the following manner: the configuration generation module reads the configuration parameters of the graphic element template corresponding to the task containing the logic instruction, and obtains the control instruction for controlling the jump execution of the control instruction corresponding to the task containing the logic instruction corresponding to the function block call instruction.

[0013] Furthermore, the logic instruction further includes a logic function element instruction; the logic function element instruction includes at least one of an over-upper limit alarm function instruction, an over-lower limit alarm function instruction and a value abnormality function instruction; The configuration parameters of the graphic element template corresponding to the upper limit alarm function instruction include: the monitoring parameter set by selecting the identifier of the data input terminal, the upper limit value and the dead zone value corresponding to the monitoring parameter configured by the user according to the requirements, and the duration of the upper limit judgment of the monitoring parameter configured by the user according to the requirements; The configuration generation module reads the value of the over-upper limit alarm function instruction and its configuration parameter selected through the configuration interface, and obtains the corresponding control instruction in a manner including: the configuration generation module obtains the control instruction for controlling the over-upper limit judgment of the monitoring parameter when the monitoring parameter is greater than the upper limit value corresponding to the monitoring parameter by reading the monitoring parameter, the upper limit value and the dead zone value corresponding to the monitoring parameter, and the set duration of the over-upper limit judgment of the monitoring parameter; The method of judging the upper limit crossing includes: if the monitoring parameter is continuously greater than the sum of the upper limit value and the dead zone value corresponding to the monitoring parameter and the duration is greater than the set duration, an upper limit crossing alarm signal is output; the configuration parameters of the primitive template corresponding to the lower limit crossing alarm function instruction include: the monitoring parameter set by selecting the identifier of the data input terminal, the lower limit value and the dead zone value corresponding to the monitoring parameter configured by the user according to the requirements, and the duration of the lower limit crossing judgment of the monitoring parameter configured by the user according to the requirements; The configuration generation module reads the value of the lower limit alarm function instruction and its configuration parameter selected through the configuration interface, and obtains the corresponding control instruction in the following manner: the configuration generation module obtains the control instruction for controlling the lower limit judgment of the monitoring parameter when the monitoring parameter is less than the lower limit value corresponding to the monitoring parameter by reading the set monitoring parameter, the lower limit value and the dead zone value corresponding to the monitoring parameter, and the set duration of the lower limit judgment of the monitoring parameter; The method of judging whether the monitoring parameter exceeds the lower limit includes: if the monitoring parameter is continuously less than the difference between the lower limit value corresponding to the monitoring parameter and the dead zone value and the duration is greater than the set duration, a lower limit alarm signal is output; The configuration parameters of the graphic element template corresponding to the value abnormality function instruction include: the monitoring parameter set by selecting the identifier of the data input terminal, the upper limit value and the corresponding dead zone value, the lower limit value and the corresponding dead zone value corresponding to the monitoring parameter configured by the user according to the requirements, and the duration of the abnormal judgment of the value of the monitoring parameter configured by the user according to the requirements; The configuration generation module reads the value abnormality function instruction and the value of the configuration parameter thereof selected through the configuration interface, and obtains the corresponding control instruction in a manner including: the configuration generation module obtains the control instruction for controlling the lower limit judgment of the monitoring parameter when the monitoring parameter is less than the lower limit value corresponding to the monitoring parameter or greater than the upper limit value corresponding to the monitoring parameter by reading the set monitoring parameter, the upper limit value corresponding to the monitoring parameter and the corresponding dead zone value, the lower limit value corresponding to the monitoring parameter and the corresponding dead zone value, and the duration of the abnormality judgment of the value of the monitoring parameter; The method for judging the abnormal value of the monitoring parameter includes: if the monitoring parameter is continuously less than the difference between the lower limit value corresponding to the monitoring parameter and the corresponding dead zone value and the duration is greater than the set duration, or the monitoring parameter is continuously greater than the sum of the upper limit value corresponding to the monitoring parameter and the corresponding dead zone value and the duration is greater than the set duration, an abnormal value alarm signal is output.

[0014] Beneficial effects: The present invention provides a new device automatic control system based on edge computing gateway, which uses the configuration interface in the system to display at least one of the preset data input terminals and their identifiers of the device switch quantity and analog quantity input signals and at least one of the data output terminals and their identifiers of the device switch quantity and analog quantity output signals, so that the user can select the corresponding identifier to configure the input and output data of the automatic control logic of the device connected to the gateway; the configuration interface can also display different preset management instructions for controlling the execution status of tasks containing logical instructions and different primitive templates corresponding to logical instructions including conditional instructions for conditional judgment and processing using input data and connecting arrow instructions for indicating the execution order of instructions, as well as the configuration parameters of the primitive templates corresponding to each logical instruction, so that the user can configure the automatic control logic flow of the device connected to the gateway by selecting the corresponding primitive template and setting the value of the configuration parameter of the logical instruction in combination with the configured input and output data; on this basis, the configuration generation module in the system is used to read the corresponding primitive template selected in the configuration interface and the value of its configuration parameters, so as to obtain the control instruction corresponding to the automatic control logic flow configured by the user through the primitive template, and also That is, the configuration in the form of graphics performed by the user is converted into a form that can be recognized when the edge computing gateway performs automatic control, so as to generate a configuration file corresponding to the automatic control logic process; the communication management module in the system is used to collect the input data of the automatic control logic, and the control module in the system is used to parse the configuration file, and the control instructions of the configuration file are run according to the input data of the automatic control logic. According to the output data of the automatic control logic, the operation instructions generated when the control instructions of the configuration file are run are sent to the corresponding device through the communication management module to guide the controlled device to make an adjustment response that meets the requirements of the logic control algorithm, that is, to achieve control of the device connected to the gateway; the device automatic control system based on the edge computing gateway enables the edge computing gateway including the device automatic control system to meet the communication with various types of intelligent devices with communication interfaces, and the control module in the device automatic control system parses the configuration file generated by the configuration generation module to perform data sampling and control on the intelligent device that establishes the communication connection, thereby solving the problem that the existing PLC device that completes signal acquisition and device control by its own device is difficult to achieve sampling and control of the current intelligent device that does not provide IO port access.

[0015] The present invention also provides an edge computing gateway, which includes the above-mentioned device automatic control system based on the edge computing gateway.

[0016] Furthermore, the edge computing gateway also includes a database module, which includes a historical database and a real-time database. The historical database is used to store the data of the switch quantity and analog input signal for a long time, and the real-time database is used to store and refresh the data of the switch quantity and analog input signal in real time.

[0017] The edge computing gateway can achieve the same beneficial effects as the above-mentioned device automatic control system based on the edge computing gateway. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a configuration architecture diagram of an edge computing gateway-based device automatic control system in an embodiment of an edge computing gateway-based device automatic control system of the present invention; Figure 2 It is an example diagram of a configuration interface for a user in an embodiment of an equipment automatic control system based on an edge computing gateway of the present invention to configure configuration parameters of a primitive template corresponding to a conditional branch instruction; Figure 3 It is an example diagram of a configuration interface for a user in an embodiment of an equipment automatic control system based on an edge computing gateway of the present invention to configure configuration parameters of a primitive template corresponding to a conditional waiting instruction; Figure 4 This is an example diagram of a configuration interface for a user in an embodiment of an equipment automatic control system based on an edge computing gateway of the present invention to configure configuration parameters of a graphic element template corresponding to a delay instruction; Figure 5 This is an example diagram of a configuration interface for a user in an embodiment of an equipment automatic control system based on an edge computing gateway of the present invention to configure configuration parameters of a graphic element template corresponding to a remote control instruction; Figure 6 This is an example diagram of a configuration interface for a user in an embodiment of an equipment automatic control system based on an edge computing gateway of the present invention to configure configuration parameters of a graphic element template corresponding to a remote adjustment instruction; Figure 7 This is an example diagram of a configuration interface for a user configuring configuration parameters of a graphic element template corresponding to a unary operation instruction in an embodiment of a device automatic control system based on an edge computing gateway of the present invention; Figure 8 This is an example diagram of a configuration interface for a user in an embodiment of an edge computing gateway-based device automatic control system of the present invention to configure configuration parameters of a graphic element template corresponding to a binary operation instruction; Fig. 9 It is an example diagram of a configuration interface for a user to configure configuration parameters of a graphic element template corresponding to a multivariate operation instruction in an embodiment of a device automatic control system based on an edge computing gateway of the present invention; Fig.10It is an example diagram of a configuration interface for a user in an embodiment of an edge computing gateway-based device automatic control system of the present invention to configure configuration parameters of a primitive template corresponding to a function block call instruction; Fig.11 It is an example diagram of a configuration interface for configuration parameters of a primitive template corresponding to an over-limit alarm function instruction by a user in an embodiment of an equipment automatic control system based on an edge computing gateway of the present invention; Fig.12 It is an example diagram of a configuration interface for configuration parameters of a graphic element template corresponding to a lower limit alarm function instruction by a user in an embodiment of an equipment automatic control system based on an edge computing gateway of the present invention; Fig.13 It is an example diagram of a configuration interface for configuration parameters of a graphic element template corresponding to a value abnormality function instruction by a user in an embodiment of an equipment automatic control system based on an edge computing gateway of the present invention; Fig.14 is a software architecture diagram of an edge computing gateway in an edge computing gateway embodiment of the present invention; Fig.15 It is a hardware architecture diagram of the edge computing gateway in the edge computing gateway embodiment of the present invention. DETAILED DESCRIPTION

[0019] The specific implementation of the present invention will be further described below in conjunction with the accompanying drawings.

[0020] Embodiment of equipment automatic control system based on edge computing gateway The present embodiment provides a device automatic control system based on an edge computing gateway. The system uses a configuration interface to display preset data input and output terminal identifiers, different primitive templates corresponding to control instructions, and configuration parameters of the primitive templates corresponding to each logic instruction in the control instruction, so that the user can configure the input and output data of the automatic control logic of the device connected to the gateway according to the identifier; and enables the user to select the corresponding primitive template and set the value of the configuration parameter of the logic instruction in combination with the configured input and output data to configure the automatic control logic process of the gateway; the system then uses a configuration generation module to read the corresponding primitive template and the value of its configuration parameter selected through the configuration interface, obtain the corresponding control instruction, and generate a configuration document corresponding to the automatic control logic process. The device automatic control system based on the edge computing gateway solves the problem that the existing PLC devices that complete signal acquisition and device control by their own devices are difficult to implement sampling and control of the current intelligent devices that do not provide IO port access, so that the edge computing gateway including the device automatic control system can meet the communication with devices of various types of communication interfaces, and performs data sampling and control on the devices that establish communication connections through the configuration file generated by the control module in the device automatic control system parsing the configuration file generated by the configuration generation module.

[0021] The device automatic control system based on the edge computing gateway specifically includes: a configuration interface, a configuration generation module, a communication management module and a control module in the edge computing gateway; the configuration interface is used to display at least one of the preset data input terminals of the device switch quantity and analog quantity input signals and their identifiers and at least one of the data output terminals of the device switch quantity and analog quantity output signals and their identifiers, so that the user can select the corresponding identifier to configure the input and output data of the automatic control logic of the device connected to the gateway; it is also used to display different primitive templates corresponding to preset different management instructions and logic instructions and the configuration parameters of the primitive templates corresponding to each logic instruction, so that the user can select the corresponding primitive template and set the value of the configuration parameter of the logic instruction in combination with the input and output data of the automatic control logic of the device of the configured gateway to configure the automatic control logic process of the device of the gateway; The configuration generation module is used to read the corresponding primitive template and the value of its configuration parameters selected through the configuration interface, obtain the corresponding control instructions, and generate the configuration file corresponding to the automatic control logic process of the device of the gateway; the communication management module is used to collect the input data of the automatic control logic; the control module is used to parse the configuration file, run the control instructions of the configuration file according to the input data of the automatic control logic, and send the operation instructions generated when the control instructions of the configuration file are run to the corresponding device through the communication management module according to the output data of the automatic control logic; Logical instructions include: conditional instructions for conditional judgment and processing using input data and connecting arrow instructions for indicating the order of instruction execution; management instructions are used to control the execution status of tasks containing logical instructions.

[0022] After analysis, it is found that the edge computing gateway can connect to various sensors and devices, collect various types of data from the devices in real time, and establish communication connections with the underlying devices to transmit these data to the upper-level system or cloud for processing and analysis; in integrated energy engineering, the edge computing gateway is often used to establish a communication connection between the underlying devices and the main station platform, and the edge computing gateway is used to perform calculations and analysis on the data collected by the underlying devices, and the data is transmitted to the upper-level system. The main station platform then sends control instructions to the underlying devices through the edge computing gateway, and the underlying devices output control signals according to the logical algorithm. It can be seen that the communication connection with the underlying devices (such as smart devices with various types of communication interfaces) is an inherent function of the edge computing gateway. Therefore, compared with PLC devices, there is no need to add other communication conversion devices to obtain information of smart devices with various types of communication interfaces through the edge computing gateway, thereby reducing the construction cost; on this basis, the device automatic control system of the edge computing gateway can replace the PLC device to realize the sampling and control of the current smart devices that do not provide IO port access, which solves the problem that the existing PLC devices that complete signal acquisition and device control by themselves are difficult to realize the sampling and control of the current smart devices that do not provide IO port access. That is, the edge computing gateway containing the device automatic control system can meet the communication with devices of various types of communication interfaces, and the control module in the device automatic control system parses the configuration generation module to generate the configuration file to perform the data sampling and control operations required for the underlying device to establish a communication connection.

[0023] The configuration architecture diagram of the equipment automatic control system based on edge computing gateway is as follows Figure 1 As shown below, combined Figure 1 The device automatic control system based on edge computing gateway is described in detail: The device automatic control system based on the edge computing gateway includes: a configuration interface, a configuration generation module, a communication management module and a control module (the control module is also called an automatic control module) in the edge computing gateway; the configuration interface is used to display at least one of the preset data input terminals of the device switch quantity and analog input signal and its identification, and at least one of the data output terminals of the device switch quantity and analog output signal and its identification, so that the user can select the corresponding identification to configure the input and output data of the automatic control logic of the device connected to the gateway; it is also used to display different primitive templates corresponding to different preset management instructions and logical instructions and the configuration parameters of the primitive templates corresponding to each logical instruction (that is, the preset logical instructions and management instructions, corresponding to Figure 1 In the content of 402 in the present embodiment, the logic instruction also includes a function block calling instruction 403. The user can select and configure the function block calling instruction 403 according to the different primitive templates corresponding to the different management instructions and logic instructions in 402. The corresponding function block can be obtained by configuring the function block calling instruction, and the function block can be called by other tasks), so that the user can select the corresponding primitive template and set the value of the configuration parameter of the logic instruction in combination with the input and output data of the configured automatic control logic to configure the automatic control logic flow of the device connected to the gateway (the automatic control logic flow corresponds to Figure 1 405 automatic control task in ); The configuration generation module is used to read the corresponding primitive template and the value of its configuration parameters selected through the configuration interface, obtain the corresponding control instructions, and generate the configuration file corresponding to the automatic control logic flow of the gateway; Figure 1 401 is a variable definition module, which provides various data (including real-time data, fixed values ​​and intermediate variables) for users to select in the configuration interface, and configures the values ​​of configuration parameters of the corresponding primitive template of the logic instruction; the function module 404 is used to manage the function block call instructions; among them, the intermediate variables are only for uploading and viewing, and cannot be modified by users, so they are not closely related to the automatic control function and will not be described here.

[0024] The communication management module is used to collect input data of the automatic control logic of the device connected to the gateway; the control module is used to parse the configuration file corresponding to the automatic control logic process of the gateway, run the control instructions of the configuration file corresponding to the automatic control logic process according to the input data of the automatic control logic, and send the operation instructions generated when the control instructions of the configuration file corresponding to the automatic control logic process are run to the corresponding device through the communication management module according to the output data of the automatic control logic, so as to guide the controlled device to make an adjustment response that meets the requirements of the logic control algorithm; Logical instructions include: conditional instructions for conditional judgment and processing using input data and connecting arrow instructions for indicating the order of instruction execution; management instructions are used to control the execution status of tasks containing logical instructions.

[0025] In this embodiment, the configuration parameters of the primitive template corresponding to the connection arrow instruction include: the starting position and the end position of the connection line with the arrow set by the user according to the requirements; wherein, when the user actually sets the configuration parameters, the user sets the starting position and the end position of the connection line with the arrow according to the requirements corresponding to the connection arrow instruction; wherein, the connection line with the arrow may include 6 inflection points, including the starting point and the end point; in other implementations, the connection line may also include any number of points greater than at least two inflection points; The configuration generation module reads the connection arrow instruction selected through the configuration interface and the value of its configuration parameters, and obtains the corresponding control instruction in the following manner: the configuration generation module reads the starting and ending positions of the selected connection arrow instruction, and obtains the control instruction for controlling the control instruction corresponding to the starting position of the connection arrow instruction to jump to the control instruction corresponding to the end point of the connection arrow instruction after execution.

[0026] In this embodiment, the conditional instruction includes at least one of a conditional branch instruction and a conditional wait instruction; The configuration parameters of the graphic element template corresponding to the conditional branch instruction are specifically: the parameters corresponding to each condition set by selecting the identifier of the data input terminal, the parameter value of the judgment logic corresponding to each condition set by selecting the identifier of the data input terminal or set by the user according to the needs, the set delay time after the overall judgment logic of the conditional branch instruction is not satisfied, the logical relationship between the parameters corresponding to each condition and the parameter value that satisfies the judgment logic corresponding to the condition, and the logical relationship between each condition; wherein, when the user actually configures the parameters, the user sets the parameters corresponding to each condition by selecting the identifier of the data input terminal corresponding to each condition; the user setting according to the needs means that the user sets according to the needs corresponding to each condition; the parameter type of the parameter value of the judgment logic corresponding to each condition set by selecting the identifier of the data input terminal is actually a variable, and the parameter type of the parameter value of the judgment logic corresponding to each condition set by the user according to the needs is actually a constant; The configuration parameters of the primitive template corresponding to the connecting arrow instruction also include: conditional jump parameters set according to different results corresponding to the overall judgment logic of the conditional branch instruction; the conditional jump parameter of the connecting arrow instruction whose end point is used to connect to the next logic instruction corresponding to the overall judgment logic of the conditional branch instruction is set to a first jump value, and the conditional jump parameter of the connecting arrow instruction whose end point is used to connect to the next logic instruction corresponding to the overall judgment logic of the conditional branch instruction is not satisfied is set to a second jump value; wherein the first jump value is equivalent to the jump value corresponding to "yes", and the second jump value is equivalent to the jump value corresponding to "no"; The configuration interface example of the configuration parameters of the element template corresponding to the conditional branch instruction is as follows: Figure 2As shown, when the user configures the parameters corresponding to each condition, the parameter value of the judgment logic corresponding to each condition, the set delay time after the overall judgment logic, the logical relationship between the parameters corresponding to each condition and the parameter value of the judgment logic corresponding to the condition, and the logical relationship between each condition, the conditional branch instruction configuration is completed; when the set condition (the overall judgment logic of the conditional branch instruction) is met, the program will follow the "yes" direction indicated by the connecting line arrow to continue to execute subsequent operations; conversely, if the condition is not met, the program will pause until the preset delay time has passed, and then proceed to the next step in the "no" direction indicated by the connecting line arrow.

[0027] The configuration generation module reads the conditional branch instruction selected through the configuration interface, and obtains the corresponding control instruction in the following manner: the configuration generation module determines the judgment logic of each condition by reading the parameters corresponding to each set condition, the parameter value satisfying the judgment logic corresponding to each condition, and the logical relationship between the parameter corresponding to the condition and the parameter value satisfying the judgment logic corresponding to the condition; then, by reading the logical relationship between each condition and the set delay time after the overall judgment logic of the conditional branch instruction is not satisfied, combined with the judgment logic of each condition, obtains a control instruction for controlling the corresponding control instruction to be jumped to execute when the overall judgment logic of the conditional branch instruction is satisfied, and the corresponding control instruction to be jumped to execute after waiting for the set delay time when the overall judgment logic of the conditional branch instruction is satisfied; The configuration generation module reads the connection arrow instruction and the value of its configuration parameter selected through the configuration interface, and the method of obtaining the corresponding control instruction also includes: the configuration generation module reads the end position and conditional jump parameter of the connection arrow instruction whose starting point position is selected at the conditional branch instruction; according to the end position of the connection arrow instruction whose conditional jump parameter is a first jump value, obtains a control instruction for controlling the jump execution of the control instruction corresponding to the end position when the result of the control instruction corresponding to the conditional branch instruction is satisfied; according to the end point of the connection arrow instruction whose conditional jump parameter is a second jump value, obtains a control instruction for controlling the jump execution of the control instruction corresponding to the end position when the result of the control instruction corresponding to the conditional branch instruction is not satisfied; The configuration parameters of the graphic element template corresponding to the conditional waiting instruction include: parameters corresponding to each condition set by selecting the identifier of the data input terminal, parameter values ​​of the judgment logic corresponding to each condition set by selecting the identifier of the data input terminal or set by the user according to requirements, a set duration after the overall judgment logic of the conditional waiting instruction is satisfied set by the user according to requirements, a logical relationship between the parameters corresponding to each condition and the parameter values ​​of the judgment logic corresponding to the condition, and a logical relationship between the conditions; wherein the parameter type of the parameter value of the judgment logic corresponding to each condition set by selecting the identifier of the data input terminal is actually a variable, and the parameter type of the parameter value of the judgment logic corresponding to each condition set by the user according to requirements is actually a constant; The configuration interface example of the configuration parameters of the element template corresponding to the configuration condition waiting instruction is shown in the figure below: Figure 3 As shown, in the configuration interface of the configuration parameters of the primitive template corresponding to the conditional waiting instruction, the user can freely set the number of conditions; after configuring the configuration parameters of the primitive template corresponding to the conditional waiting instruction, Figure 3 The logical relationship between the various conditions in is OR, that is, the program will continue to execute only when any one of the conditions is met and the duration meets the set value, otherwise the program will stay at the current step (the step corresponding to the current condition waiting instruction).

[0028] The configuration generation module reads the conditional waiting instruction selected through the configuration interface, and the method of obtaining the corresponding control instruction includes: the configuration generation module determines the judgment logic of each condition by reading the parameters corresponding to each set condition, the parameter value of the judgment logic corresponding to each condition, and the parameter corresponding to the condition and the parameter value of the judgment logic corresponding to the condition; and then obtains the control instruction for controlling the overall judgment logic of the conditional waiting instruction to jump to execute the next control instruction when the overall judgment logic of the conditional waiting instruction is met and the duration reaches the set duration by reading the logical relationship between each condition and the set duration corresponding to the overall judgment logic, combined with the judgment logic of each condition.

[0029] In this embodiment, the management instruction includes a start instruction, a normal end instruction, a return instruction and an abnormal termination instruction; the method of selecting the start instruction through the configuration interface includes creating a task through the configuration interface or automatically selecting a function block corresponding to the task; The configuration generation module reads the startup instruction selected through the configuration interface to obtain the corresponding control instruction, including: the configuration generation module reads the startup instruction selected through the configuration interface to obtain a control instruction for controlling the task corresponding to the startup instruction or the function block corresponding to the task to be in a start execution state; wherein, when the task corresponding to the startup instruction or the function block corresponding to the task is controlled to be in a start execution state, the control program corresponding to the control instruction for controlling the task corresponding to the startup instruction or the function block corresponding to the task to be in a start execution state begins to execute; The configuration generation module reads the normal end instruction selected through the configuration interface to obtain the corresponding control instruction, including: the configuration generation module reads the normal end instruction selected through the configuration interface to obtain a control instruction for controlling the task corresponding to the normal end instruction or the function block corresponding to the task to be in a normal termination execution state; wherein, when the task corresponding to the normal end instruction or the function block corresponding to the task is controlled to be in a normal termination execution state, the control program corresponding to the control instruction for controlling the task corresponding to the normal end instruction or the function block corresponding to the task to be in a normal termination execution state terminates execution; The configuration generation module reads the return instruction selected through the configuration interface to obtain the corresponding control instruction, including: the configuration generation module reads the return instruction selected through the configuration interface to obtain a control instruction for controlling the task corresponding to the return instruction or the function block corresponding to the task to be in an exit execution state; wherein, when the task corresponding to the return instruction or the function block corresponding to the task is controlled to be in an exit execution state, the control program corresponding to the control instruction for controlling the task corresponding to the return instruction or the function block corresponding to the task to be in an exit execution state exits execution; The configuration generation module reads the abnormal termination instruction selected through the configuration interface, and obtains the corresponding control instruction in the following manner: the configuration generation module reads the abnormal termination instruction selected through the configuration interface, and obtains the control instruction for controlling the task corresponding to the abnormal termination instruction or the function block corresponding to the task to be in a terminated execution state and output a fault code; wherein, when the task corresponding to the abnormal termination instruction or the function block corresponding to the task is controlled to be in a terminated execution state, the program corresponding to the control instruction for controlling the task corresponding to the abnormal termination instruction or the function block corresponding to the task to be in a terminated execution state and output a fault code also terminates execution.

[0030] In this embodiment, the logic instruction also includes a delay instruction; The configuration parameters of the graphic element template corresponding to the delay instruction include: the delay time value set by selecting the identifier of the data input terminal or the user according to the requirements; The configuration interface example of the configuration parameters of the primitive template corresponding to the delay instruction is as follows: Figure 4As shown in the figure, the delay time value of the first delay instruction on the right is set according to the system day time variable on the left; the delay time value of the second delay instruction on the right is set by the user according to the needs; when the program executes the step corresponding to the delay instruction, the step will be paused and start timing. When the time reaches the delay time value, it will jump to the step corresponding to the next control instruction; The configuration generation module reads the delay instruction and the value of its configuration parameters selected through the configuration interface, and obtains the corresponding control instruction in the following manner: the configuration generation module reads the set delay time value to obtain the control instruction for controlling the execution of the next control instruction after waiting for the delay time value.

[0031] In this embodiment, the logic instruction further includes a node control instruction, and the node control instruction includes at least one of a remote control instruction, a remote adjustment setting instruction, and a gear adjustment instruction; The configuration parameters of the graphic element template corresponding to the remote control instruction include: the remote control object set by selecting the identifier of the data output terminal and the remote control object value set by the user according to the requirements; the remote control object value corresponding to the remote control object includes: one of the value corresponding to the continuous opening operation and the value of its duration, the value corresponding to the continuous closing operation and the value of its duration, the value corresponding to the opening operation, and the value corresponding to the closing operation; The configuration interface example of the configuration parameters of the graphic element template corresponding to the remote control command is as follows: Figure 5 As shown, Figure 5 The remote control object value in only shows the continuous closing operation (i.e. Figure 5 The value corresponding to the "pulse on") in Figure 5 The value corresponding to the "point" in Figure 5 When the remote control object value is the open operation (i.e. Figure 5 When the program executes the step corresponding to the remote control instruction, the remote control object is controlled to perform the opening operation; The configuration generation module reads the remote control command and the value of the configuration parameter selected through the configuration interface to obtain the corresponding control command, including: the configuration generation module reads the set remote control object and the remote control object value to obtain the control command for controlling the set remote control object to output the operation corresponding to the remote control object value; The configuration parameters of the graphic element template corresponding to the remote adjustment setting instruction include: each remote adjustment object set by selecting the identifier of the data output terminal, and the remote adjustment object parameter value of each remote adjustment object corresponding to the remote adjustment instruction set by selecting the identifier of the data output terminal or set by the user according to the requirements; wherein the parameter type of the remote adjustment object parameter value of each remote adjustment object corresponding to the remote adjustment instruction set by selecting the identifier of the data output terminal is actually a variable, and the parameter type of the remote adjustment object parameter value of each remote adjustment object corresponding to the remote adjustment instruction set by the user according to the requirements is actually a constant; The configuration interface example of the configuration parameters of the graphic element template corresponding to the remote control instruction is as follows: Figure 6 As shown, after the user configures the remote adjustment object and the remote adjustment object parameter value of the remote adjustment object, the configuration parameters of the graphic element template corresponding to the remote adjustment instruction can be completed. When the program executes the step corresponding to the remote adjustment instruction, Figure 6 The thermostat in sets the temperature variable output remote adjustment parameter Aset1 corresponding to the value; The configuration generation module reads the remote adjustment setting instruction and the value of the configuration parameter thereof selected through the configuration interface to obtain the corresponding control instruction, including: the configuration generation module reads each remote adjustment object and the remote adjustment object parameter value of each remote adjustment object corresponding to the remote adjustment setting instruction, and obtains the control instruction for controlling the remote adjustment object to output the corresponding remote adjustment object parameter value; The configuration parameters of the graphic element template corresponding to the gear adjustment instruction include: each remote adjustment object set by selecting the identifier of the data output terminal and each remote adjustment object step value set by the user according to the needs; The configuration generation module reads the gear adjustment instruction and the value of its configuration parameters selected through the configuration interface, and obtains the corresponding control instruction in the following manner: the configuration generation module reads the adjustment step of each remote adjustment object and the adjustment step value of each remote adjustment object, and obtains the control instruction for controlling each remote adjustment object according to the adjustment step value of each remote adjustment object.

[0032] In this embodiment, the logic instruction further includes an operation instruction for performing an operation on input data; the operation instruction includes at least one of a unary operation instruction, a binary operation instruction, and a multi-element operation instruction; The configuration parameters of the primitive template corresponding to the unary operation instruction include: input parameters set by selecting the identifier of the data input terminal or set by the user according to the requirements, the unary operator set by the user according to the requirements, and the output parameters set by selecting the identifier of the data output terminal; The configuration interface example of the configuration parameters of the primitive template corresponding to the unary operation instruction is as follows: Figure 7As shown, by editing the input parameters, unary operators and output parameters, the configuration parameters of the primitive template corresponding to the unary operation instruction can be configured; for example, the input parameter is A, the operator is selected to take sine, and the output parameter is B. When the program runs to the step corresponding to the unary operation instruction, the input parameter A will be assigned to B after sine calculation; The configuration generation module reads the value of the unary operation instruction and its configuration parameter selected through the configuration interface, and obtains the corresponding control instruction in the following manner: the configuration generation module obtains the control instruction for controlling the assignment of the result of the unary operator operation of the input parameter to the output parameter by reading the input parameter, the unary operator and the output parameter corresponding to the unary operation instruction; The configuration parameters of the primitive template corresponding to the binary operation instruction include: a first input parameter and a second input parameter set by selecting an identifier of a data input terminal or set by a user according to requirements, a binary operator between the first input parameter and the second input parameter set by a user according to requirements, and an output parameter set by selecting an identifier of a data output terminal; The configuration interface example of the configuration parameters of the graphic element template corresponding to the binary operation instruction is as follows: Figure 8 As shown, by editing the first input parameter and the second input parameter, the binary operator and the output parameter, the configuration parameters of the primitive template corresponding to the binary operation instruction can be configured. Figure 8 The operator selected is greater than. If the first input parameter is A, the second input parameter is B, and the output parameter is C, when the program runs to the step corresponding to the binary operation instruction, A and B will be compared. If A is greater than B, C is 1, otherwise C is 0. The configuration generation module reads the binary operation instruction and the value of the configuration parameter thereof selected through the configuration interface to obtain the corresponding control instruction, including: the configuration generation module reads the first input parameter and the second input parameter, the binary operator and the output parameter of the binary operation instruction to obtain the control instruction for controlling the assignment of the result of the binary operator operation of the first input parameter and the second input parameter to the output parameter; The configuration parameters of the primitive template corresponding to the multivariate operation instruction include: input parameters greater than or equal to 3 set by selecting the identifier of the data input terminal or set according to the requirements of the multivariate operation instruction, multivariate operators between the input parameters set by the user according to the requirements, and output parameters set by selecting the identifier of the data output terminal; The configuration interface example of the configuration parameters of the primitive template corresponding to the multivariate operation instruction is as follows: Fig. 9 As shown, by editing the input parameters, operators and output parameters of the multivariate operation instruction, the configuration parameters of the primitive template corresponding to the multivariate operation instruction can be configured; Fig. 9 The operator selected in is logical AND, assuming Fig. 9 The input parameters 1, 2, and 3 correspond to A, B, and C respectively. When the program runs to the step corresponding to the multivariate operation instruction, A, B, and C are logically ANDed and assigned to the output parameter Dtemp0, that is, Dtemp0=AND(A,B,C); The configuration generation module reads the values ​​of the multivariate operation instructions and their configuration parameters selected through the configuration interface, and obtains the corresponding control instructions in the following manner: the configuration generation module reads each input parameter, the multivariate operators between each input parameter, and the output parameters of the multivariate operation instruction, and obtains the control instruction for controlling the assignment of the results of each input parameter after the multivariate operator operation to the output parameter.

[0033] In this embodiment, the logic instructions also include a function block calling instruction for calling a function block corresponding to another task in the current task or the function block corresponding to the current task; The configuration parameters of the graphic element template corresponding to the function block call instruction include: all configuration parameters of the graphic element template corresponding to the task containing the logic instruction; The configuration interface example of the configuration parameters of the graphic element template corresponding to the configuration function block call instruction is shown in the figure below: Fig.10 As shown, Fig.10 The function block for temperature control fan is drawn in (that is, the configuration parameters of the primitive template corresponding to the function block call instruction are configured), where the instructions in the task corresponding to the function block call instruction include: start instruction, conditional branch instruction, remote control instruction, delay instruction; the function block call instruction is ready to respond to the call of the main program at any time. Fig.10 When the temperature control fan function block is in operation, the steps corresponding to each control instruction in the task corresponding to the temperature control fan function block will be executed; The configuration generation module reads the function block call instruction and the value of its configuration parameters selected through the configuration interface, and obtains the corresponding control instruction in the following manner: the configuration generation module reads the configuration parameters of the graphic element template corresponding to the task containing the logic instruction, and obtains the control instruction for controlling the jump execution of the control instruction corresponding to the task containing the logic instruction corresponding to the function block call instruction.

[0034] In this embodiment, the logic instruction further includes a logic function element instruction; the logic function element instruction includes at least one of an over-upper limit alarm function instruction, an over-lower limit alarm function instruction and a value abnormality function instruction; The configuration parameters of the graphic element template corresponding to the upper limit alarm function instruction include: the monitoring parameter set by selecting the identifier of the data input terminal, the upper limit value and the dead zone value corresponding to the monitoring parameter configured by the user according to the requirements, and the duration of the upper limit judgment of the monitoring parameter configured by the user according to the requirements; The configuration interface example of the configuration parameters of the element template corresponding to the over-limit alarm function instruction is shown in the figure below: Fig.11 As shown in the figure, the upper limit value of the monitoring parameter (indoor temperature displayed by the thermostat) is 30, the dead zone value is 1, and the duration is 10 seconds. When the indoor temperature (monitor) displayed by the thermostat is higher than 30 degrees (upper limit threshold), the program will start the timing mechanism. If the indoor temperature continues to be higher than 31 degrees (upper limit threshold plus dead zone value) and maintains this state for more than 10 seconds, the system will issue an upper limit alarm signal 1. Otherwise, the system will output 0, indicating that the component has exited normally.

[0035] The configuration generation module reads the value of the over-upper limit alarm function instruction and its configuration parameter selected through the configuration interface, and obtains the corresponding control instruction in the following manner: the configuration generation module obtains the control instruction for controlling the over-upper limit judgment of the monitoring parameter when the monitoring parameter is greater than the upper limit value corresponding to the monitoring parameter by reading the monitoring parameter (the monitoring parameter is also called the monitoring value) of the over-upper limit alarm function instruction, the upper limit value and the dead zone value corresponding to the monitoring parameter, and the set duration of the over-upper limit judgment of the monitoring parameter; The method of judging whether the upper limit is exceeded includes: if the monitoring parameter is continuously greater than the sum of the upper limit value and the dead zone value corresponding to the monitoring parameter and the duration is greater than the set duration, an upper limit alarm signal is output; The configuration parameters of the graphic element template corresponding to the lower limit alarm function instruction include: the monitoring parameter set by selecting the identifier of the data input terminal, the lower limit value and the dead zone value corresponding to the monitoring parameter configured by the user according to the requirements, and the duration of the lower limit judgment of the monitoring parameter configured by the user according to the requirements; The following figure shows an example of the configuration interface for the configuration parameters of the element template corresponding to the lower limit alarm function instruction. Fig.12 As shown in the figure, the lower limit value corresponding to the monitoring value (indoor temperature displayed by the thermostat) of the lower limit alarm function instruction is 26, the dead zone value is 1, and the duration is 10s. When the indoor temperature (monitor) displayed by the thermostat drops below 26 degrees (lower limit threshold), the program will start the timing mechanism; if the indoor temperature continues to be lower than 25 degrees (lower limit threshold minus dead zone value) and maintains this state for more than 10 seconds, the system will issue a lower limit alarm signal 1. Otherwise, the system will output 0, indicating that the component has exited normally.

[0036] The configuration generation module reads the value of the lower limit alarm function instruction and its configuration parameter selected through the configuration interface, and obtains the corresponding control instruction in the following manner: the configuration generation module obtains the control instruction for controlling the lower limit judgment of the monitoring parameter when the monitoring parameter is less than the lower limit value corresponding to the monitoring parameter by reading the set monitoring parameter, the lower limit value and the dead zone value corresponding to the monitoring parameter, and the set duration of the lower limit judgment of the monitoring parameter; The method of judging whether the monitoring parameter exceeds the lower limit includes: if the monitoring parameter is continuously less than the difference between the lower limit value corresponding to the monitoring parameter and the dead zone value and the duration is greater than the set duration, a lower limit alarm signal is output; The configuration parameters of the graphic element template corresponding to the value abnormality function instruction include: the monitoring parameter set by selecting the identifier of the data input terminal, the upper limit value and the corresponding dead zone value, the lower limit value and the corresponding dead zone value corresponding to the monitoring parameter configured by the user according to the requirements, and the duration of the abnormal judgment of the value of the monitoring parameter configured by the user according to the requirements; The configuration interface example of the configuration parameters of the graphic element template corresponding to the abnormal value function instruction is shown in the figure below: Fig.13 As shown, the monitoring value of the abnormal value function instruction (the indoor temperature displayed by the thermostat) corresponds to a lower limit of 26, an upper limit of 30, a dead zone of 1, and a duration of 10s. When the indoor temperature (monitoring value) displayed by the thermostat is less than 26 (lower limit) or greater than 30 (upper limit), the program starts timing. If the boiler temperature is always less than 26 (lower limit) minus 1 (dead zone) or greater than 30 (upper limit) plus 1 (dead zone) for 10 seconds, the output is an over-limit alarm 1, otherwise it outputs 0 and the component exits. The configuration generation module reads the value abnormality function instruction and the value of the configuration parameter selected through the configuration interface, and obtains the corresponding control instruction in a manner including: the configuration generation module obtains the control instruction for controlling the lower limit judgment of the monitoring parameter when the monitoring parameter is less than the lower limit value corresponding to the monitoring parameter or greater than the upper limit value corresponding to the monitoring parameter by reading the set monitoring parameter, the upper limit value and the corresponding dead zone value corresponding to the monitoring parameter, the lower limit value and the corresponding dead zone value, and the duration of the abnormality judgment of the value of the monitoring parameter; The method for judging the abnormal value of the monitoring parameter includes: if the monitoring parameter is continuously less than the difference between the lower limit value corresponding to the monitoring parameter and the corresponding dead zone value and the duration is greater than the set duration, or the monitoring parameter is continuously greater than the sum of the upper limit value corresponding to the monitoring parameter and the corresponding dead zone value and the duration is greater than the set duration, an abnormal value alarm signal is output.

[0037] Edge computing gateway implementation This embodiment provides an edge computing gateway, which includes the device automatic control system based on edge computing gateway in the embodiment of the device automatic control system based on edge computing gateway.

[0038] The following is a detailed description of the edge computing gateway: The software architecture diagram of the edge computing gateway of this embodiment is as follows: Fig.14As shown, the edge computing gateway includes the device automatic control system based on edge computing gateway in the embodiment of the device automatic control system based on edge computing gateway, and the device automatic control system based on edge computing gateway includes: a configuration interface, a configuration generation module, a communication management module and a control module (the control module is also called an automatic control module); S201 includes a configuration interface and a configuration generation module in the device automatic control system based on edge computing gateway; the configuration generation module is also called a debugging module, and the configuration interface is also called a configuration debugging tool; the configuration generation module is used to read the corresponding primitive template and the value of its configuration parameters selected through the configuration interface, and obtain the corresponding control instruction to generate a configuration file corresponding to the automatic control logic flow; the automatic control module is used to parse the configuration file generated by the configuration generation module, and according to the network access The input data of the automatic control logic of the equipment connected to the gateway runs the control instructions of the configuration file corresponding to the automatic control logic process of the equipment connected to the gateway, and according to the output data of the automatic control logic, the operation instructions generated when the control instructions of the configuration file are issued to the corresponding equipment through the communication management module; the communication management module is used to collect the input data of the automatic control logic of the equipment connected to the gateway; specifically, the communication management module is embedded with the recognition and analysis plug-ins of protocols such as modbus-rtu client protocol, modbus-tcp client protocol, IEC60870-5-104 client protocol, IEC60870-5-104 server protocol, Zhejiang Regulation 104 server protocol, DLT645-2007 client protocol, and DLT645-1997 client protocol. These protocols enable the gateway to communicate with equipment of different manufacturers and different protocols to realize real-time data collection and reporting. In addition, the communication management module can also receive and process the control instructions of the master station platform and the automatic control module to realize remote control and debugging of the equipment; the communication management module will also retrieve data from the real-time database and send it to the master station platform.

[0039] In this embodiment, the edge computing gateway also includes a database module, which includes a historical database and a real-time database. The historical database is used to store the data of the switch quantity and analog input signal for a long time. The user can set the storage time as needed, such as 15 minutes, 30 minutes, 6 hours, 1 day, 3 days, 5 days, 7 days or 15 days. The real-time database is used to store and refresh the data of the switch quantity and analog input signal in real time to ensure the real-time and accuracy of the data.

[0040] The hardware architecture of the edge computing gateway of this embodiment is shown in the figure Fig.15As shown, 101 is a 24V DC regulated power supply module, which is powered by an external 24V DC regulated power supply. The 24V DC regulated power supply module 101 provides the required voltage level to each circuit module of the edge computing gateway through internal circuit conversion; 102 is a real-time clock circuit, which generates and provides an accurate and stable clock signal to ensure that each component in the electronic system of the edge computing gateway operates and communicates in accordance with the prescribed sequence to ensure the correctness of the timing; 103 is a watchdog circuit, which monitors the running status of the internal program of the edge computing gateway, and 104 is a 4G communication module, which provides edge computing The 4G wireless signal communication method of the gateway and the main station platform can also use a communication module in other embodiments, such as a 5G communication module; 105 is an RJ45-2 interface circuit, 106 is an RJ45-1 interface circuit, 107 is an RS485-1 interface circuit, 108 is an RS485-2 interface circuit, 109 is an RS485-3 interface circuit, 110 is an RS485-4 interface circuit, and the communication management module can communicate with external devices of various interfaces through 104-110, and 111 is a processor (the processor includes: SCM701 chip, memory unit, storage unit).

[0041] Since the specific implementation process and principle of the device automatic control system based on edge computing gateway in this embodiment have been described in detail in the embodiment of the device automatic control system based on edge computing gateway, no further details will be given here.

[0042] It should be understood that the above specific embodiments of the present invention are only used to illustrate or explain the principles of the present invention, but do not constitute a limitation to the present invention.

Claims

1. An equipment automatic control system based on edge computing gateway, characterized in that: include: Configuration interface, configuration generation module, communication management module and control module in the edge computing gateway; The configuration interface is used to display at least one of the preset data input terminals of the device switch quantity and analog quantity input signals and their identifiers, and at least one of the data output terminals of the device switch quantity and analog quantity output signals and their identifiers, so that the user can select the corresponding identifier to configure the input and output data of the automatic control logic of the device connected to the gateway; it is also used to display the different primitive templates corresponding to the preset different management instructions and logic instructions and the configuration parameters of the primitive templates corresponding to each logic instruction, so that the user can select the corresponding primitive template and set the value of the configuration parameter of the logic instruction in combination with the configured input and output data to configure the automatic control logic process; The configuration generation module is used to read the corresponding primitive template and the value of its configuration parameters selected through the configuration interface, obtain the corresponding control instruction, and generate the configuration file corresponding to the automatic control logic process; The communication management module is used to collect the input data of the automatic control logic; the control module is used to parse the configuration file, run the control instructions of the configuration file according to the input data of the automatic control logic, and send the operation instructions generated when running the control instructions of the configuration file to the corresponding device through the communication management module according to the output data of the automatic control logic; Logical instructions include: conditional instructions for conditional judgment and processing using input data and connecting arrow instructions for indicating the order of instruction execution; Management instructions are used to control the execution status of tasks containing logical instructions.

2. The device automatic control system based on edge computing gateway according to claim 1 is characterized in that: The configuration parameters of the graphic element template corresponding to the connection arrow instruction include: the starting point and the end point of the connection line with the arrow configured by the user according to the needs; The configuration generation module reads the connection arrow instruction selected through the configuration interface and the value of its configuration parameters, and obtains the corresponding control instruction in the following manner: the configuration generation module reads the starting and ending positions of the selected connection arrow instruction, and obtains the control instruction for controlling the control instruction corresponding to the starting position of the connection arrow instruction to jump to the control instruction corresponding to the end point of the connection arrow instruction after execution.

3. The device automatic control system based on edge computing gateway according to claim 2 is characterized in that: The conditional instruction includes at least one of a conditional branch instruction and a conditional wait instruction; The configuration parameters of the graphic element template corresponding to the conditional branch instruction include: parameters corresponding to each condition set by selecting the identifier of the data input terminal, parameter values ​​of the judgment logic corresponding to each condition set by selecting the identifier of the data input terminal or set by the user according to requirements, a set delay time after the overall judgment logic of the conditional branch instruction is not satisfied, set by the user according to requirements, a logical relationship between the parameter corresponding to each condition and the parameter value of the judgment logic corresponding to the condition, and a logical relationship between the various conditions; The configuration parameters of the primitive template corresponding to the connection arrow instruction also include: conditional jump parameters set according to different results corresponding to the overall judgment logic of the conditional branch instruction; the conditional jump parameter of the connection arrow instruction whose end point is used to connect to the next logic instruction corresponding to the overall judgment logic of the conditional branch instruction is set to the first jump value, and the conditional jump parameter of the connection arrow instruction whose end point is used to connect to the next logic instruction corresponding to the overall judgment logic of the conditional branch instruction is not satisfied is set to the second jump value; The configuration generation module reads the conditional branch instruction selected through the configuration interface, and the method of obtaining the corresponding control instruction includes: the configuration generation module determines the judgment logic of each condition by reading the parameters corresponding to each set condition, the parameter value of the judgment logic corresponding to each condition, and the logical relationship between the parameter corresponding to the condition and the parameter value of the judgment logic corresponding to the condition; and then obtains the control instruction for controlling the corresponding control instruction to be jumped to execute when the overall judgment logic of the conditional branch instruction is met and the corresponding control instruction to be jumped to execute after waiting for the set delay time when the overall judgment logic of the conditional branch instruction is met by reading the logical relationship between the conditions and the set delay time, combined with the judgment logic of each condition; The configuration generation module reads the connection arrow instruction and the value of its configuration parameter selected through the configuration interface, and the method of obtaining the corresponding control instruction also includes: the configuration generation module reads the end position and conditional jump parameter of the connection arrow instruction whose starting point position is selected at the conditional branch instruction; according to the end position of the connection arrow instruction whose conditional jump parameter is a first jump value, obtains a control instruction for controlling the jump execution of the control instruction corresponding to the end position when the result of the control instruction corresponding to the conditional branch instruction is satisfied; according to the end point of the connection arrow instruction whose conditional jump parameter is a second jump value, obtains a control instruction for controlling the jump execution of the control instruction corresponding to the end position when the result of the control instruction corresponding to the conditional branch instruction is not satisfied; The configuration parameters of the graphic element template corresponding to the conditional waiting instruction include: parameters corresponding to each condition set by selecting the identifier of the data input terminal, parameter values ​​of the judgment logic corresponding to each condition set by selecting the identifier of the data input terminal or set by the user according to requirements, a set duration after the overall judgment logic of the conditional waiting instruction is satisfied, set by the user according to requirements, a logical relationship between the parameter corresponding to each condition and the parameter value satisfying the judgment logic corresponding to the condition, and a logical relationship between the conditions; The configuration generation module reads the conditional waiting instruction selected through the configuration interface, and the method of obtaining the corresponding control instruction includes: the configuration generation module determines the judgment logic of each condition by reading the parameters corresponding to each set condition, the parameter value of the judgment logic corresponding to each condition, and the parameter corresponding to the condition and the parameter value of the judgment logic corresponding to the condition; and then obtains the control instruction for controlling the overall judgment logic of the conditional waiting instruction to jump to execute the next control instruction when the overall judgment logic of the conditional waiting instruction is met and the duration reaches the set duration by reading the logical relationship between each condition and the set duration corresponding to the overall judgment logic, combined with the judgment logic of each condition.

4. The device automatic control system based on edge computing gateway according to claim 1 is characterized in that: The management instructions include a start instruction, a normal end instruction, a return instruction, and an abnormal termination instruction; the method of selecting the start instruction through the configuration interface includes creating a task through the configuration interface or automatically selecting a function block corresponding to the task; The configuration generation module reads the startup instruction selected through the configuration interface to obtain the corresponding control instruction, including: the configuration generation module reads the startup instruction selected through the configuration interface to obtain a control instruction for controlling the task corresponding to the startup instruction or the function block corresponding to the task to be in a start execution state; The configuration generation module reads the normal end instruction selected through the configuration interface to obtain the corresponding control instruction, including: the configuration generation module reads the normal end instruction selected through the configuration interface to obtain a control instruction for controlling the task corresponding to the normal end instruction or the function block corresponding to the task to be in a normal termination execution state; The configuration generation module reads the return instruction selected through the configuration interface to obtain the corresponding control instruction, including: the configuration generation module reads the return instruction selected through the configuration interface to obtain a control instruction for controlling the task corresponding to the return instruction or the function block corresponding to the task to be in an exit execution state; The configuration generation module reads the abnormal termination instruction selected through the configuration interface, and obtains the corresponding control instruction in the following manner: the configuration generation module reads the abnormal termination instruction selected through the configuration interface, and obtains the control instruction for controlling the task corresponding to the abnormal termination instruction or the function block corresponding to the task to be in a terminated execution state and output a fault code.

5. The device automatic control system based on edge computing gateway according to claim 4 is characterized in that: Logical instructions also include delay instructions; The configuration parameters of the graphic element template corresponding to the delay instruction include: the delay time value set by selecting the identifier of the data input terminal or the user according to the requirements; The configuration generation module reads the delay instruction and the value of its configuration parameters selected through the configuration interface to obtain the corresponding control instruction, including: the configuration generation module reads the set delay time value to obtain a control instruction for controlling the jump to execute the next control instruction after waiting for the delay time value.

6. The device automatic control system based on edge computing gateway according to claim 1, characterized in that: The logic instruction also includes a node control instruction, and the node control instruction includes at least one of a remote control instruction, a remote adjustment setting instruction, and a gear adjustment instruction; the configuration parameters of the graphic element template corresponding to the remote control instruction include: a remote control object set by selecting an identifier of the data output terminal and a remote control object value configured by a user according to requirements; the remote control object value includes: a value corresponding to a continuous opening operation and a value of its duration, a value corresponding to a continuous closing operation and a value of its duration, a value corresponding to an opening operation, and a value corresponding to a closing operation; The configuration generation module reads the remote control command and the value of the configuration parameter selected through the configuration interface to obtain the corresponding control command, including: the configuration generation module reads the set remote control object and the remote control object value to obtain the control command for controlling the set remote control object to output the operation corresponding to the remote control object value; The configuration parameters of the graphic element template corresponding to the remote adjustment setting instruction include: each remote adjustment object set by selecting the identifier of the data output terminal, and the remote adjustment object parameter value of each remote adjustment object corresponding to the remote adjustment instruction set by selecting the identifier of the data output terminal or configured by the user according to the needs; The configuration generation module reads the remote adjustment setting instruction and the value of the configuration parameter thereof selected through the configuration interface to obtain the corresponding control instruction, including: the configuration generation module reads each remote adjustment object and the remote adjustment object parameter value of each remote adjustment object corresponding to the remote adjustment setting instruction, and obtains the control instruction for controlling the remote adjustment object to output the corresponding remote adjustment object parameter value; The configuration parameters of the graphic element template corresponding to the gear adjustment instruction include: each remote adjustment object set by selecting the identifier of the data output terminal and each remote adjustment object step value configured by the user according to the needs; The configuration generation module reads the gear adjustment instruction and the value of its configuration parameters selected through the configuration interface, and obtains the corresponding control instruction in the following manner: the configuration generation module reads the adjustment step of each remote adjustment object and the adjustment step value of each remote adjustment object, and obtains the control instruction for controlling each remote adjustment object to adjust according to the adjustment step value.

7. The device automatic control system based on edge computing gateway according to claim 1, characterized in that: The logic instructions also include operation instructions for performing operations on input data; the operation instructions include at least one of a unary operation instruction, a binary operation instruction, and a multi-element operation instruction; The configuration parameters of the primitive template corresponding to the unary operation instruction include: input parameters set by selecting the identifier of the data input terminal or set by the user according to the requirements, the unary operator configured by the user according to the requirements, and the output parameters set by selecting the identifier of the data output terminal; The configuration generation module reads the value of the unary operation instruction and its configuration parameter selected through the configuration interface to obtain the corresponding control instruction, including: the configuration generation module obtains the control instruction for controlling the assignment of the result of the unary operator operation of the input parameter to the output parameter by reading the input parameter, the unary operator and the output parameter; The configuration parameters of the primitive template corresponding to the binary operation instruction include: a first input parameter and a second input parameter set by selecting an identifier of a data input terminal or set by a user according to requirements, a binary operator between the first input parameter and the second input parameter configured by a user according to requirements, and an output parameter set by selecting an identifier of a data output terminal; The configuration generation module reads the binary operation instruction and the value of the configuration parameter thereof selected through the configuration interface to obtain the corresponding control instruction, including: the configuration generation module reads the first input parameter and the second input parameter, the binary operator and the output parameter to obtain the control instruction for controlling the assignment of the result of the binary operator operation of the first input parameter and the second input parameter to the output parameter; The configuration parameters of the primitive template corresponding to the multivariate operation instruction include: input parameters greater than or equal to 3 set by selecting the identifier of the data input terminal or set according to the requirements of the multivariate operation instruction, multivariate operators between the input parameters configured by the user according to the requirements, and output parameters set by selecting the identifier of the data output terminal; The configuration generation module reads the values ​​of the multivariate operation instructions and their configuration parameters selected through the configuration interface, and obtains the corresponding control instructions in the following manner: the configuration generation module reads each input parameter, the multivariate operator between each input parameter, and the output parameter, and obtains the control instruction for controlling the assignment of the result of each input parameter after the multivariate operator operation to the output parameter.

8. The device automatic control system based on edge computing gateway according to claim 1, characterized in that: The logic instructions also include function block calling instructions for calling function blocks corresponding to other tasks in the current task or the function block corresponding to the current task; The configuration parameters of the graphic element template corresponding to the function block call instruction include: all configuration parameters of the graphic element template corresponding to the task containing the logic instruction; The configuration generation module reads the function block call instruction and the value of its configuration parameters selected through the configuration interface, and obtains the corresponding control instruction in the following manner: the configuration generation module reads the configuration parameters of the graphic element template corresponding to the task containing the logic instruction, and obtains the control instruction for controlling the jump execution of the control instruction corresponding to the task containing the logic instruction corresponding to the function block call instruction.

9. The device automatic control system based on edge computing gateway according to claim 1, characterized in that: The logic instruction also includes a logic function element instruction; the logic function element instruction includes at least one of an over-upper limit alarm function instruction, an over-lower limit alarm function instruction and a value abnormality function instruction; The configuration parameters of the graphic element template corresponding to the upper limit alarm function instruction include: the monitoring parameter set by selecting the identifier of the data input terminal, the upper limit value and the dead zone value corresponding to the monitoring parameter configured by the user according to the requirements, and the duration of the upper limit judgment of the monitoring parameter configured by the user according to the requirements; The configuration generation module reads the value of the over-upper limit alarm function instruction and its configuration parameter selected through the configuration interface, and obtains the corresponding control instruction in a manner including: the configuration generation module obtains the control instruction for controlling the over-upper limit judgment of the monitoring parameter when the monitoring parameter is greater than the upper limit value corresponding to the monitoring parameter by reading the monitoring parameter, the upper limit value and the dead zone value corresponding to the monitoring parameter, and the set duration of the over-upper limit judgment of the monitoring parameter; The method of judging the upper limit crossing includes: if the monitoring parameter is continuously greater than the sum of the upper limit value and the dead zone value corresponding to the monitoring parameter and the duration is greater than the set duration, an upper limit crossing alarm signal is output; the configuration parameters of the primitive template corresponding to the lower limit crossing alarm function instruction include: the monitoring parameter set by selecting the identifier of the data input terminal, the lower limit value and the dead zone value corresponding to the monitoring parameter configured by the user according to the requirements, and the duration of the lower limit crossing judgment of the monitoring parameter configured by the user according to the requirements; The configuration generation module reads the value of the lower limit alarm function instruction and its configuration parameter selected through the configuration interface, and obtains the corresponding control instruction in the following manner: the configuration generation module obtains the control instruction for controlling the lower limit judgment of the monitoring parameter when the monitoring parameter is less than the lower limit value corresponding to the monitoring parameter by reading the set monitoring parameter, the lower limit value and the dead zone value corresponding to the monitoring parameter, and the set duration of the lower limit judgment of the monitoring parameter; The method of judging whether the monitoring parameter exceeds the lower limit includes: if the monitoring parameter is continuously less than the difference between the lower limit value corresponding to the monitoring parameter and the dead zone value and the duration is greater than the set duration, a lower limit alarm signal is output; The configuration parameters of the graphic element template corresponding to the value abnormality function instruction include: the monitoring parameter set by selecting the identifier of the data input terminal, the upper limit value and the corresponding dead zone value, the lower limit value and the corresponding dead zone value corresponding to the monitoring parameter configured by the user according to the requirements, and the duration of the abnormal judgment of the value of the monitoring parameter configured by the user according to the requirements; The configuration generation module reads the value abnormality function instruction and the value of the configuration parameter thereof selected through the configuration interface, and obtains the corresponding control instruction in a manner including: the configuration generation module obtains the control instruction for controlling the lower limit judgment of the monitoring parameter when the monitoring parameter is less than the lower limit value corresponding to the monitoring parameter or greater than the upper limit value corresponding to the monitoring parameter by reading the set monitoring parameter, the upper limit value corresponding to the monitoring parameter and the corresponding dead zone value, the lower limit value corresponding to the monitoring parameter and the corresponding dead zone value, and the duration of the abnormality judgment of the value of the monitoring parameter; The method for judging the abnormal value of the monitoring parameter includes: if the monitoring parameter is continuously less than the difference between the lower limit value corresponding to the monitoring parameter and the corresponding dead zone value and the duration is greater than the set duration, or the monitoring parameter is continuously greater than the sum of the upper limit value corresponding to the monitoring parameter and the corresponding dead zone value and the duration is greater than the set duration, an abnormal value alarm signal is output.

10. An edge computing gateway, characterized in that: The edge computing gateway includes an edge computing gateway-based device automatic control system as described in any one of claims 1-9.

11. The edge computing gateway according to claim 10, characterized in that: The edge computing gateway also includes a database module, which includes a historical database and a real-time database. The historical database is used to store the data of the switch quantity and analog input signal for a long time, and the real-time database is used to store and refresh the data of the switch quantity and analog input signal in real time.

Citation Information

Cited By

  • Multi-device management method and device based on Internet of Things

    CN120935207A