Logical function customization method, device and computer-readable storage medium
Through the customization method of logic functions, users can select and allocate the logical functions that need to be executed in the industrial control system, solving the problem of waste of computing resources and improving the ease of use and execution efficiency of the system.
Patent Information
- Application Number
- CN202210515996.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-12
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2042-05-12
AI Technical Summary
In industrial control, the prior art leads to waste of computing resources, because most logical processing methods are to perform all preset logic functions by default.
By providing a custom method of logic functions, the output function check interface allows the user to select the target logic function and divide it into the first target logic function executed by the controller and the second target logic function executed by the background, for packaging and independent processing .
This method dynamically reduces the use of core resources, improves the ease of use and execution efficiency of control software, and reduces the waste of computing resources.
Smart Images

Figure CN115047829B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a method and device for customizing a logic function, and a computer-readable storage medium. Background Art
[0002] In the industrial control process, the control system contains hardware modules that interact with field data. The hardware modules are mainly used for data collection and output. Depending on the field process and requirements, the interactive field data needs to be processed by a variety of different logical functions, and most of the logical processing methods are to execute all preset logical functions by default, resulting in a waste of computing resources. Summary of the invention
[0003] The embodiments of the present invention provide a method, device and computer-readable storage medium for customizing logic functions, aiming to solve the technical problem of how to improve and reduce the waste of computing resources.
[0004] An embodiment of the present invention provides a method for customizing a logic function, the method comprising:
[0005] Output function check interface, to request to check the target logic function in the preset logic function;
[0006] When a check operation of the target logic function is detected, determining a first target logic function executed by a controller in the target logic function, and determining a second target logic function executed in the background in the target logic function;
[0007] The first target logic function and the second target logic function are encapsulated to obtain a first functional block and a second functional block.
[0008] In one embodiment, when the signal to be processed is obtained, the step of encapsulating the first target logic function and the second target logic function to obtain the first function block and the second function block includes:
[0009] Automatic configuration is performed according to the configuration priority of the first target logic function to obtain the first function block, and the second target logic function is configured to obtain the second function block, wherein the automatic configuration includes setting a preset range conversion function as the first function to be configured.
[0010] In one embodiment, after the step of encapsulating the first target logic function and the second target logic function to obtain a first function block and a second function block, the method further includes:
[0011] When a signal to be processed is received, logic processing is performed on the signal to be processed according to the first functional block and the second target logic function.
[0012] In one embodiment, when receiving a signal to be processed, the step of performing logical processing on the signal to be processed according to the first functional block and the second target logical function includes:
[0013] The controller performs logic processing on the digital quantity signal according to the first functional block, wherein the signal to be processed is range-converted according to the range conversion function in the first functional block to obtain a digital quantity signal, and when the digital quantity signal is obtained, logic processing is performed according to other functions in the first functional block;
[0014] The second functional block and the digital quantity signal are sent to a background server, wherein the background server performs logic processing on the digital quantity signal according to the second target logic function.
[0015] In one embodiment, the first target logic function includes at least one of a numerical filtering function, a range inversion function, and a signal abnormality logic processing function.
[0016] In one embodiment, the second target logic function alarm includes at least one of a numerical limit alarm function, an over-rate alarm function, and a numerical deviation alarm function.
[0017] In one embodiment, after the step of sending the second functional block and the digital quantity signal to a background server, the method further includes:
[0018] Receiving the logic processing result sent by the backend server;
[0019] Output warning prompt information according to the logical processing result.
[0020] In one embodiment, the step of automatically configuring according to the configuration priority of the first target logic function to obtain the first function block, and configuring the second target logic function to obtain the second function block includes:
[0021] Setting the preset configuration priority of the range conversion function to the highest;
[0022] The automatic configuration is performed according to the configuration priority of the first target logic function and the configuration priority of the range conversion function to obtain the first function block, and the second target logic function is configured to obtain the second function block.
[0023] An embodiment of the present invention also provides a device for customizing a logical function, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the various steps of the method for customizing the logical function as described above when executing the computer program.
[0024] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the customization method of the logical function described above are implemented.
[0025] In the technical solution of this embodiment, the logic function customization device outputs a function check interface to request to check the target logic function in the preset logic function; when the check operation of the target logic function is detected, the first target logic function executed by the controller is determined in the target logic function, and the second target logic function executed in the background is determined in the target logic function; the first target logic function and the second target logic function are packaged to obtain a first function block and a second function block. Since the logic function customization device can output a function check interface in advance for the user to select, after the user checks the target logic function, the target logic function can be used as the user-customized logic function. When a new signal to be processed is obtained, the logic functions of different execution types are independently packaged according to the signal collected by the hardware. Through the interface open configuration selection, the control software automatically calls and processes, which improves the ease of use of the control software, dynamically reduces the core resource occupation, and splits some independent process processing functions, effectively reduces the burden on the core control device, and improves the execution efficiency. Compared with the packaging method that includes multiple function processing as much as possible, the logic functions of different execution types are separately packaged, which can reduce the logic processing items that the controller needs to execute, and there is no need to package the redundant functions not selected by the user, which reduces the waste of computing resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0027] Figure 1 A schematic diagram of the hardware architecture of a customization device for logic functions involved in an embodiment of the present invention;
[0028] Figure 2 A schematic diagram of a flow chart of a first embodiment of a method for customizing a logic function of the present invention;
[0029] Figure 3 A reference diagram for a first embodiment of a method for customizing logic functions of the present invention;
[0030] Figure 4 A schematic flow chart of a second embodiment of a method for customizing a logic function of the present invention;
[0031] Figure 5 This is a detailed flowchart of step S40 of the third embodiment of the method for customizing logic functions of the present invention. DETAILED DESCRIPTION
[0032] In order to better understand the above technical solution, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0033] The main solution of the present invention is: the customization device of the logic function outputs a function check interface to request to check the target logic function in the preset logic function; when the check operation of the target logic function is detected, the first target logic function executed by the controller is determined in the target logic function, and the second target logic function executed in the background is determined in the target logic function; the first target logic function and the second target logic function are encapsulated to obtain a first function block and a second function block.
[0034] Since the customization device of the logic function can output the function check interface in advance for the user to choose, after the user checks the target logic function, the target logic function can be used as the user-customized logic function. When a new signal to be processed is obtained, the logic functions of different execution types are independently packaged according to the signal collected by the hardware. Through the open configuration selection of the interface, the control software automatically calls and processes it, which improves the usability of the control software and dynamically reduces the core resource occupation. At the same time, some independent process processing functions are split, which effectively reduces the burden on the core control equipment and improves the execution efficiency. Compared with the packaging method that includes as many function processing as possible, packaging logic functions of different execution types separately can reduce the logic processing items that the controller needs to execute, and there is no need to package redundant functions not selected by the user, thereby reducing the waste of computing resources.
[0035] As an implementation, a custom device for logic functions can be Figure 1 .
[0036] The embodiment of the present invention relates to a customized device for logic functions, which includes: a processor 101, such as a CPU, a memory 102, and a communication bus 103. The communication bus 103 is used to realize connection and communication between these components.
[0037] The memory 102 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. Figure 1 , the memory 103 as a computer-readable storage medium may include a detection program; and the processor 101 may be used to call the detection program stored in the memory 102 and perform the following operations:
[0038] Output function check interface, to request to check the target logic function in the preset logic function;
[0039] When a check operation of the target logic function is detected, determining a first target logic function executed by a controller in the target logic function, and determining a second target logic function executed in the background in the target logic function;
[0040] The first target logic function and the second target logic function are encapsulated to obtain a first functional block and a second functional block.
[0041] In one embodiment, the processor 101 may be used to call the detection program stored in the memory 102 and perform the following operations:
[0042] Automatic configuration is performed according to the configuration priority of the first target logic function to obtain the first function block, and the second target logic function is configured to obtain the second function block, wherein the automatic configuration includes setting a preset range conversion function as the first function to be configured.
[0043] In one embodiment, the processor 101 may be used to call the detection program stored in the memory 102 and perform the following operations:
[0044] When a signal to be processed is received, logic processing is performed on the signal to be processed according to the first functional block and the second target logic function.
[0045] In one embodiment, the processor 101 may be used to call the detection program stored in the memory 102 and perform the following operations:
[0046] The controller performs logic processing on the digital quantity signal according to the first functional block, wherein the signal to be processed is range-converted according to the range conversion function in the first functional block to obtain a digital quantity signal, and when the digital quantity signal is obtained, logic processing is performed according to other functions in the first functional block;
[0047] The second functional block and the digital quantity signal are sent to a background server, wherein the background server performs logic processing on the digital quantity signal according to the second target logic function.
[0048] In one embodiment, the processor 101 may be used to call the detection program stored in the memory 102 and perform the following operations:
[0049] Receiving the logic processing result sent by the backend server;
[0050] Output warning prompt information according to the logical processing result.
[0051] In one embodiment, the processor 101 may be used to call the detection program stored in the memory 102 and perform the following operations:
[0052] Setting the preset configuration priority of the range conversion function to the highest;
[0053] The automatic configuration is performed according to the configuration priority of the first target logic function and the configuration priority of the range conversion function to obtain the first function block, and the second target logic function is configured to obtain the second function block.
[0054] In the technical solution of this embodiment, the logic function customization device outputs a function check interface to request to check the target logic function in the preset logic function; when the check operation of the target logic function is detected, the first target logic function executed by the controller is determined in the target logic function, and the second target logic function executed in the background is determined in the target logic function; the first target logic function and the second target logic function are packaged to obtain a first function block and a second function block. Since the logic function customization device can output a function check interface in advance for the user to select, after the user checks the target logic function, the target logic function can be used as the user-customized logic function. When a new signal to be processed is obtained, the logic functions of different execution types are independently packaged according to the signal collected by the hardware. Through the interface open configuration selection, the control software automatically calls and processes, which improves the ease of use of the control software, dynamically reduces the core resource occupation, and splits some independent process processing functions, effectively reduces the burden on the core control device, and improves the execution efficiency. Compared with the packaging method that includes multiple function processing as much as possible, the logic functions of different execution types are separately packaged, which can reduce the logic processing items that the controller needs to execute, and there is no need to package the redundant functions not selected by the user, which reduces the waste of computing resources.
[0055] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0056] Reference Figure 2 , Figure 2 The first embodiment of the method for customizing the logic function of the present invention comprises the following steps:
[0057] Step S10: outputting a function selection interface to request to select a target logic function from among preset logic functions.
[0058] In this embodiment, the logic function customization device outputs a function check interface, and the user can check the required target logic function in the function check interface, for example: Figure 3 , the user-selected signal abnormal interference, super four-phase alarm, range inversion, numerical rate fluctuation, super four-limit alarm and numerical programming alarm, and the unchecked online tests are judged as non-target logic functions.
[0059] Step S20, when a check operation of the target logic function is detected, determining a first target logic function executed by a controller in the target logic function, and determining a second target logic function executed in the background in the target logic function.
[0060] In this embodiment, after the target logical function is determined, the execution type of the target logical function is determined, wherein the execution type includes background execution or controller execution, that is, the above-mentioned first target logical function and human logical function, and the determined first target logical function and second target logical function are used for subsequent packaging.
[0061] Step S30: encapsulate the first target logic function and the second target logic function to obtain a first function block and a second function block.
[0062] In this embodiment, the first target logic function is encapsulated as a first function block, and the second target logic function is encapsulated as a second function block.
[0063] Optionally, the first target logic function includes at least one of a numerical filtering function, a range inversion function, and a signal abnormality logic processing function.
[0064] The second target logic function alarm includes at least one of a numerical limit alarm function, an over-rate alarm function, and a numerical deviation alarm function. The second target logic function of the warning type is distinguished from the second target logic function and packaged independently. When the second function is needed later, it is dispatched to the background server to perform the use operation.
[0065] Optionally, automatic configuration is performed according to the configuration priority of the first target logic function to obtain the first function block, and the second target logic function is configured to obtain the second function block, wherein the automatic configuration includes setting the preset range conversion function as the first function to be configured. In this embodiment, the first target logic function and the second target logic function of different execution types are packaged separately, and when performing logic processing according to the obtained first function block or second function block, the first function block or the second function block can be used as an allocation unit to flexibly allocate the corresponding logic processing matters to different logic processing terminals, and the above-mentioned logic processing terminals include but are not limited to controllers or background servers.
[0066] Optionally, when a signal to be processed is received, the signal to be processed is logically processed according to the first functional block and the second target logical function. Specifically, if the signal to be processed has not undergone range conversion, the range conversion function in the first functional block can convert the range of the signal to be processed into a digital signal. The range conversion must be called for each signal to be processed. When any signal to be processed is received, the range conversion function is called first.
[0067] Optionally, for the use of customized logic functions, the execution flow is as follows:
[0068] 1. After configuring the hardware channel signal point, click the channel signal to pop up the configuration function panel of the current signal.
[0069] 2. According to the on-site process characteristics of the current signal, select the required function, check the function front-end configuration box to select it, and the parameter configuration content of this logic function will pop up below.
[0070] 3. After the function configuration is successfully confirmed and compiled, the system automatically generates the calling logic of the target logic function. Different configurations of different signals generate different calling logics. The occupancy of the memory resources of the core control device depends on the actual calling logic. The fewer secondary processing functions are called, the fewer corresponding resources, and vice versa.
[0071] In the technical solution of the present embodiment, since the customization device of the logic function can output the function check interface in advance for the user to select, after the user checks the target logic function, the user can use the target logic function as the user-customized logic function. When a new signal to be processed is obtained, the logic functions of different execution types can be independently packaged according to the signal collected by the hardware. Through the open configuration selection of the interface, the control software automatically calls and processes, which improves the usability of the control software and dynamically reduces the core resource occupation. At the same time, some independent process processing functions are split, which effectively reduces the burden on the core control equipment and improves the execution efficiency. Compared with the packaging method that includes as many function processing as possible, packaging logic functions of different execution types separately can reduce the logic processing items that the controller needs to execute, and there is no need to package redundant functions not selected by the user, thereby reducing the waste of computing resources.
[0072] Reference Figure 4 , Figure 4 The second embodiment of the method for customizing the logic function of the present invention is based on the first embodiment and after step S30, includes:
[0073] Step S40: When a signal to be processed is received, logic processing is performed on the signal to be processed according to the first functional block and the second target logic function.
[0074] In this embodiment, when a signal to be processed is received, the signal to be processed is range-converted by the range conversion function in the first functional block to obtain a digital quantity signal, and then the digital quantity signal is logically processed by other functions in the first functional block. While or before and after the digital quantity signal is logically processed by other functions in the first functional block, the digital quantity is logically processed by the function in the second functional block. Wherein, the signal to be processed is an IO signal, and the I / O input / output (Input / Output) is divided into two parts: an IO device and an IO interface. On a POSIX-compatible system, such as a Linux system, there are multiple ways of I / O operation, such as DIO (Direct I / O), AIO (Asynchronous I / O, asynchronous I / O), Memory-Mapped I / O (memory mapped I / O), etc. Different I / O methods have different implementation methods and performances, and different I / O methods can be selected according to the situation in different applications. The input and output I / O stream can be regarded as the reading of bytes or packaged bytes, that is, taking out and putting in dual-way switching; realizing the transfer and isolation between the weak current line of the linkage control system and the strong current line of the controlled equipment to prevent strong current from entering the system and ensure the safety of the system; connected with the dedicated control panel, it is used to control important fire-fighting equipment (such as fire pumps, sprinkler pumps, fans, etc.). One module can control the start and stop control of a large fire-fighting equipment; plug-in structure, the base can be installed on the wall first like installing a detector, and the switching module can be inserted into the base after wiring and before engineering commissioning. Easy to construct and maintain; through passive dynamic contact or switching AC220V voltage as the answer signal. Confirmation light action light-red, answer light-green; when in action, the action light is always on and the answer light is always on. The IO output port can be connected to a relay, and the relay contact load AC250V / 3A, DC30V / 7A is a group of normally open / normally closed contacts for start, and a group of normally open contacts for stop.
[0075] In the technical solution of this embodiment, different logical functions are independently encapsulated for the signals to be processed collected by the hardware, and the control software automatically calls and processes them through an open interface configuration selection, which improves the usability of the control software and dynamically reduces the core resource occupancy. At the same time, some independent process processing functions are split, effectively reducing the burden on the core control equipment and improving execution efficiency.
[0076] Reference Figure 5 , Figure 5 The third embodiment of the method for customizing the logic function of the present invention is based on any one of the first to second embodiments, and step S40 includes:
[0077] Step S41, the controller performs logical processing on the digital signal according to the first functional block, wherein the signal to be processed is range-converted according to the range conversion function in the first functional block to obtain a digital signal, and when the digital signal is obtained, logical processing is performed according to other functions in the first functional block.
[0078] In this embodiment, the step of processing the signal to be processed by the first functional block is put into the controller for execution, and, according to the signal to be processed, the step of processing the digital signal by the second functional block is put into the background server.
[0079] Step S42: sending the second functional block and the digital signal to a background server, wherein the background server performs logic processing on the digital signal according to the second target logic function.
[0080] Optionally, the calling logic is divided into two parts, one part needs to be calculated and executed on the core control device; the other part related to process alarm is placed on the background server for execution, and the signal to be processed is transmitted through real-time communication, thereby reducing the load of the customized device of the logic function. At the same time, the alarm information generated will be associated with the current signal instance point XXXAI_1, and the alarm information of the upper human-machine interface will be displayed. The customized device of the logic function reduces the occupancy rate of the core memory resources by sharing part of the logic processing with the background server.
[0081] Optionally, receiving the logic processing result sent by the background server; outputting the warning prompt information according to the logic processing result. After obtaining the logic processing result sent by the background server, displaying the upper layer human-machine interface to output the warning prompt information.
[0082] Optionally, when the type of the target logic function is a warning function, a warning prompt message is output according to the target processing result. Usually, the on-site to-be-processed signal collected by the hardware module needs to be converted into a physical signal to become an actual to-be-processed signal. According to different signal types and processing of different modules, the corresponding conversion logic is also different. Generally, the to-be-processed signal can be converted linearly for many times, the temperature can be obtained through different thermocouple or thermal resistor conversion formulas, and the switch quantity can be parsed and obtained according to the format defined by the module itself. At present, most modules have intelligent diagnosis functions and can diagnose their own module-level faults and channel signal-level fault information. Therefore, when sending the signal to be processed, the corresponding signal quality and the fault condition of the channel medium will be reported and fed back at the same time, so that users can understand the validity of the data while knowing the data. Then, according to the importance of different process points, the data can be further interfered with or protected according to the quality of the data. When used normally on site, this quality abnormality data interference function does not need to be processed for every signal, but only for important equipment collection points. If the quality is abnormal or the channel fails, the correctness of the data cannot be guaranteed, and it is necessary to immediately output a safe preset value to participate in the next level of calculation or interlocking protection function. Of course, the software also needs to promptly trigger the interface sound and light alarm to remind the user to repair the abnormality as soon as possible. Similar to this optional function, it is separately encapsulated as a logic block. A function configuration selection box is added to the signal association interface of the software. When the user checks it, the configuration box of the current logic block is opened, and the user can configure the relevant parameters offline. After completion, the software automatically calls the current logic block for this signal in the background program to process the signal. At the same time, the alarm information generated by the current independent logic block can be associated with the current signal instance point, and displayed on the upper-level human-machine interface to output early warning prompt information.
[0083] In the technical solution of this embodiment, the first target logic function that must be executed by the controller is assigned to the controller for processing, and then the second target logic function is placed on the background server for processing, which can effectively reduce the burden on the controller.
[0084] To achieve the above objectives, an embodiment of the present invention further provides a device for customizing logical functions, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the various steps of the method for customizing logical functions as described above when executing the computer program.
[0085] To achieve the above objectives, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the customization method of the logical function described above are implemented.
[0086] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program implemented on one or more computer-usable computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0087] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0088] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0089] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0090] It should be noted that in the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claim. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.
[0091] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0092] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method of customizing logical functions, characterized in that The method comprises: The output function check interface is used to request the target logic function to be checked in the preset logic function; When a check operation of the target logic function is detected, a first target logic function executed by a controller is determined in the target logic function, and a second target logic function executed in the background is determined in the target logic function, wherein the first target logic function and the second target logic function are different execution types, and the execution type includes background execution or controller execution, and the first target logic function includes at least one of a numerical filtering function, a range inversion function, and a signal abnormality logic processing function; The first target logic function is encapsulated as a first functional block, and the second target logic function is encapsulated as a second functional block; When receiving a signal to be processed, the controller performs logic processing on the signal to be processed according to the first functional block, wherein the signal to be processed is range-converted according to the range conversion function in the first functional block to obtain a digital signal, and when the digital signal is obtained, logic processing is performed according to other functions in the first functional block; The second functional block and the digital signal are sent to a backend server, wherein the backend server performs logical processing of the digital signal according to the second target logic function.
2. The method of customizing the logic function as claimed in claim 1, characterized in that The first target logic function and the second target logic function are encapsulated, and the steps of obtaining the first functional block and the second functional block include: Automatic configuration is performed according to the configuration priority of the first target logic function to obtain the first function block, and the second target logic function is configured to obtain the second function block, wherein the automatic configuration includes setting a preset range conversion function as the first function to be configured.
3. The method of customizing the logic function as claimed in claim 1, characterized in that The second target logic function alarm includes at least one of a numerical limit alarm function, an overspeed alarm function, and a numerical deviation alarm function.
4. The method of customizing the logic function as claimed in claim 1, characterized in that After the step of sending the second functional block and the digital signal to the background server, the method further comprises: Receive logical processing results sent by the background server; The warning prompt information is output based on the logical processing result.
5. The method of customizing the logic function as claimed in claim 2, characterized in that The step of automatically configuring according to the configuration priority of the first target logic function to obtain the first function block, and configuring the second target logic function to obtain the second function block comprises: Set the preset configuration priority of the range conversion function to the highest; The automatic configuration is performed according to the configuration priority of the first target logic function and the configuration priority of the range conversion function to obtain the first function block, and the second target logic function is configured to obtain the second function block.
6. A custom device for logical functions, characterized in that The logic function customization device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the logic function customization method as claimed in any one of claims 1 to 5 when executing the computer program.
7. A computer-readable storage medium, characterized in that: The computer readable storage medium is stored on the computer program, and the step of a custom method of implementing the logical function as claimed in any one of claims 1 to 5 when executed by the processor.
Citation Information
Patent Citations
Programmable logic controller and data processing method thereof
CN102540953A
Programmable controller-based industrial control method and industrial control equipment
CN110442078A
Method and device for managing logic blocks in industrial controller
CN113534682A