Device control system and method
The device control system, which uses shared data blocks and processing blocks, solves the problem of large programming workload for multiple similar devices, and achieves efficient and flexible device control, making it suitable for device control in the food and beverage industry.
Patent Information
- Application Number
- CN202310215926.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-01
- Publication Date
- 2026-11-06
- Estimated Expiration
- 2043-03-01
AI Technical Summary
In the food and beverage industry, when dealing with multiple similar devices, existing technologies require a lot of programming work and program modifications. In particular, the logical operations and device control steps for individual devices are cumbersome, resulting in a large workload and low efficiency.
The device control system employs a combination of shared data blocks and processing blocks. By cooperating with the shared data blocks and processing blocks, the logical operations and device control function blocks for multiple similar devices are reduced. Only one shared data block and one processing block are needed, and program code adjustments are concentrated in the processing block, simplifying programming work.
It greatly reduces programming workload and the number of program modifications, improves the efficiency and flexibility of equipment control, and is applicable to the control needs of multiple similar devices, meeting both general and specific requirements.
Smart Images

Figure CN116360361B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of industrial control technology, and in particular to a device control system and method. Background Technology
[0002] In the food and beverage industry, the most important thing is to find the simplest way to handle problems with similar equipment. Consider this scenario: a brewery with an annual production capacity of 2 million tons has 40 or more sake tanks. Each sake tank involves approximately 20 logical operations and equipment control steps. If each step is implemented using a function block, then 40 sake tanks would require approximately 800 function blocks. This would involve a significant amount of programming work, and even a small adjustment would require substantial program modifications. Summary of the Invention
[0003] This invention provides a device control system and method that can greatly reduce the workload of programming or modification.
[0004] According to a first aspect, the device control system provided by the embodiments of the present invention includes at least two independent data blocks, one shared data block, and one processing block, wherein the at least two independent data blocks correspond one-to-one with at least two devices of the same type; wherein:
[0005] Each individual data block is used to store the device parameters of the corresponding device;
[0006] The shared data block is used to: store device parameters passed from the independent data block corresponding to the current device;
[0007] The processing block is used to: perform logical operations on the device parameters in the shared data block, control the current device according to the logical operation result, and send the device control result to the shared data block, so that the device control result is transmitted to the independent data block corresponding to the current device through the shared data block.
[0008] According to a second aspect, the device control method provided in the embodiments of the present invention is implemented based on the device control system provided in the first aspect: the method includes:
[0009] The processing block performs logical operations on the device parameters within the shared data block, controls the current device based on the logical cloud result, and sends the device control result to the shared data block so that the device control result within the shared data block is transmitted to the corresponding independent data block; the device parameters within the shared data block are transmitted from the independent data block of the current device.
[0010] The equipment control system and method provided in the embodiments of the present invention, individually or in combination, have at least the following technical effects:
[0011] (1) The equipment control system provided in the embodiments of the present invention includes a shared data block and a processing block. The code for performing logical operations and controlling the equipment is stored in the processing block. Through the cooperation of the shared data block and the processing block, in scenarios with multiple similar equipment, it is not necessary to set up multiple processing blocks with logical processing and equipment control functions. Only one shared data block and one processing block are needed. This can greatly reduce the workload of programming. Moreover, if adjustments are needed to the program code for logical operations and equipment control, it is not necessary to make a lot of program modifications. Instead, only the program code in the processing block needs to be modified. It can be seen that the equipment control system provided in the embodiments of the present invention can greatly reduce the workload of the staff.
[0012] (2) In one embodiment, after the central processing unit completes the corresponding operation in one functional block, it triggers the next functional block so that the next functional block performs the corresponding operation on the next device. This not only reduces the CPU load but also avoids causing confusion in the data stored in the shared data block.
[0013] (3) In one embodiment, the processing block stores general code, while the function block corresponding to the device with different requirements contains differentiated code. In this way, both general and special requirements can be met, making it widely applicable. Attached Figure Description
[0014] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0015] Figure 1 This is a schematic diagram of the structure of the equipment control system in one embodiment of the present invention;
[0016] Figure 2 This is a schematic diagram of the structure of the equipment control system in one embodiment of the present invention.
[0017] Figure label:
[0018] 100 Device control system 110 Independent data block 120 Shared data block 130 Processing block 140 Function block Detailed Implementation
[0019] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.
[0020] In a first aspect, embodiments of the present invention provide a device control system, see [link to relevant documentation]. Figure 1 The device control system 100 includes at least two independent data blocks 110, one shared data block 120, and one processing block 130. The at least two independent data blocks 110 correspond one-to-one with at least two devices of the same type.
[0021] Each independent data block 110 is used to: store the device parameters of the corresponding device;
[0022] The shared data block 120 is used to store device parameters transmitted from the independent data block 110 corresponding to the current device;
[0023] The processing block 130 is used to: perform logical operations on the device parameters in the shared data block 120, control the current device according to the logical operation result, and send the device control result to the shared data block 120, so that the device control result is transmitted to the independent data block 110 corresponding to the current device through the shared data block 120.
[0024] For example, if the equipment is a sake tank and there are 40 sake tanks in a brewery, then the equipment control system needs to include 40 independent data blocks, 1 shared data block, and 1 processing block, with 1 independent data block corresponding to 1 sake tank.
[0025] The function of the independent data block is to store the device parameters of the corresponding device. For example, various instruments in the device that collect device parameters will send the actual values of the collected device parameters to the independent data block corresponding to the device for storage. The user's expected values of the device parameters set for the device can also be stored in the independent data block.
[0026] The shared data block stores the device parameters transmitted from the independent data block corresponding to the current device, which is the device that needs to be controlled. If the current device is the first sake tank, the shared data block needs to store the device parameters from the independent data block corresponding to the first sake tank. If the current device is the 40th sake tank, the shared data block needs to store the device parameters from the independent data block corresponding to the 40th sake tank.
[0027] The processing block performs logical operations on the device parameters stored in the shared data block to obtain the logical operation results. Then, it controls the current device based on the logical operation results and feeds the device control results back to the shared data block. In this way, the shared data block will store the device control results of the current device, and then the device control results will be transmitted to the independent data block corresponding to the current device.
[0028] It is evident that in the equipment control process, logical operations and equipment control are more important than data storage and data transmission. The program code for logical operations and equipment control of multiple similar devices resides in the processing block. Through the cooperation of the shared data block and the processing block, in scenarios with multiple similar devices, it is not necessary to set up multiple processing blocks with logical processing and equipment control functions. Only one shared data block and one processing block are needed. This can greatly reduce the workload of programming. Moreover, if adjustments are needed to the program code for logical operations and equipment control, it is not necessary to make extensive program modifications. Instead, only the program code in the processing block needs to be modified. It is clear that the equipment control system provided by the embodiments of the present invention can greatly reduce the workload of the staff.
[0029] In one embodiment, see Figure 2 The device control system provided in this embodiment of the invention may further include: at least two functional blocks 140, wherein the at least two functional blocks 140, the at least two independent data blocks 110, and the at least two devices of the same type correspond one-to-one; wherein: each functional block 140 is used to: read the device parameters from the corresponding independent data block 110, send the device parameters to the shared data block 120, and transmit the device control result in the shared data block 120 to the corresponding independent data block 110.
[0030] For example, for 40 sake tanks, the equipment control system can also include 40 function blocks, which can also be called sequential chain function blocks. There is a one-to-one correspondence between function blocks, independent data blocks and equipment.
[0031] The primary function of a function block is data transmission. For example, for a sake brewing tank, the function block corresponding to that tank reads the expected and current actual values of the equipment parameters from the tank's independent data block. This data is then transmitted to a shared data block. The processing block performs logical operations based on these values in the shared data block to obtain a control scheme. This control scheme adjusts the sake brewing tank's parameters from their current values to be as close as possible to the expected values, and then controls the tank accordingly. For instance, if the expected temperature is 8 degrees Celsius and the current temperature is 10 degrees Celsius, the processing block performs a logical operation, increasing the opening of a valve on the brewing tank to a certain value, and then controls that valve accordingly. Although a specific valve in the sake tank was controlled according to the logical operation result, the final equipment parameter may not be the expected value. Therefore, it is necessary to determine the actual temperature of the sake tank using the temperature sensor. For example, if the actual temperature after valve control is 8.1 degrees Celsius, then 8.1 degrees Celsius is fed back to the shared data block as the equipment control result. The function block then transmits this equipment control result to the independent data block corresponding to the sake tank.
[0032] As can be seen, the main role of the function block in the above control process is to transmit data. Therefore, the program code in the function block is very simple. Moreover, once the program code in the function block is edited and debugged successfully, the probability of subsequent modification is very low. Therefore, even if there are many function blocks, since most of the more important program code is placed in the processing block, most of the program code modifications occur in the processing block.
[0033] In one embodiment, the device control system provided by the present invention may further include:
[0034] A central processing unit (CPU) is connected to each of the functional blocks. The CPU is used to sequentially trigger the functional blocks corresponding to each device according to the device numbering order, so that the triggered functional blocks perform corresponding operations.
[0035] Correspondingly, each functional block is specifically used to: after receiving the trigger instruction sent by the central processing unit, take the device corresponding to the functional block as the current device, and read the device parameters from the independent data block corresponding to the current device.
[0036] In other words, the central processing unit (CPU) is connected to each functional block. The CPU first triggers the functional block corresponding to device number 1, then triggers the functional block corresponding to device number 2, then triggers the functional block corresponding to device number 3, and so on, until the functional block corresponding to the last device is triggered.
[0037] For example, when the function block corresponding to device number 1 is triggered by the central processing unit, device number 1 is designated as the current device. The function block corresponding to device number 1 reads the device parameters of device number 1 from the independent data block corresponding to device number 1, and then sends the read device parameters to the shared data block. The processing block then performs logical operations based on the device parameters in the shared data block, controls device number 1 based on the logical operation result, and finally returns the device control result to the shared data block. At this time, the function block corresponding to device number 1 will pass the device control result from the shared data block to the independent data block corresponding to device number 1.
[0038] Understandably, triggering one at a time reduces the load on the central processing unit compared to triggering all at once.
[0039] Furthermore, the central processing unit is specifically used to: after a functional block completes its corresponding operation, trigger the next functional block so that the next functional block performs the corresponding operation on the next device.
[0040] In other words, the central processing unit (CPU) does not only trigger each function block one by one, but also triggers the next function block only after the corresponding operation of one function block is completed. This will not cause chaos in the data stored in the shared data block and ensure that the control of each device is carried out in an orderly manner. Although it is a serial execution method, the time required for the entire control process of a device is very short, about a few milliseconds. Therefore, the sum of the time required for the entire control process of each device of the same type is also very short, which meets the real-time control requirements in actual scenarios.
[0041] In one embodiment, each device corresponds to a preset number of device parameters, each device parameter has a corresponding parameter number, and the parameter number corresponding to each device parameter is set with the number of the corresponding device as an offset.
[0042] For example, a device may have 10 device parameters. The 10 device parameters of device number 1 are numbered 1 to 10; the 10 device parameters of device number 2 are numbered 11 to 20; the 10 device parameters of device number 3 are numbered 21 to 30, and so on. This way, different devices and different device parameters can have different parameter numbers, avoiding confusion between the device parameters of different devices.
[0043] In one embodiment, the device parameters include expected values and current actual values; the device control result includes the actual values of the device parameters after control operations are performed on the current device.
[0044] For example, if equipment parameters include expected temperature and current actual temperature, expected liquid level and current actual liquid level, expected pressure and current actual pressure, then the equipment control results include the actual temperature, actual liquid level, and actual pressure after the current equipment has been controlled.
[0045] In one embodiment, the device is a sake tank, and the types of device parameters include at least one of pressure, temperature, and liquid level within the sake tank. The device control result is the actual value of the device parameters after valve control and / or interlock protection control of the sake tank.
[0046] To adjust parameters such as temperature, pressure, and liquid level in sake tanks, valves can be controlled, and interlocking protection systems can be implemented. Interlocking protection refers to automatically stopping or reversing the equipment when pressure, temperature, or liquid level exceeds specified limits, cutting off relevant hazardous sources, or issuing alarms via buzzers, audible and visual alarms, to prevent malfunctions or accidents.
[0047] As can be seen, equipment parameters can include temperature, liquid level, pressure, and of course, other types as well.
[0048] In one embodiment, the code in the processing block used for logical operations and device control is general code; the function block corresponding to the device with different requirements has different code, which is code for performing different logical operations and logical control on the device; and when the function block corresponding to the device with different requirements executes the different code, the general code in the processing block does not need to be executed.
[0049] For example, if the logic processing and equipment control of 40 sake tanks are the same, the processing block stores general code applicable to all 40 sake tanks. If one sake tank has special requirements, then the logic processing and equipment control code for this sake tank with special requirements is differentiated code. This sake tank with special requirements is considered a device with differentiated requirements, and the differentiated code is stored in the corresponding function block. In this way, the logic operations and equipment control for this sake tank with special requirements are implemented through this function block, while the general code in the processing block applies to the other 39 sake tanks.
[0050] Understandably, the 40th sake tank is a device with differentiated requirements, and it is the current device. Therefore, the 40th function block will read the device parameters from the 40th independent data block, then the 40th function block will perform logical operations and device control, and finally return the device control results to the 40th independent data block. It can be seen that in the entire control process of the 40th sake tank, no processing block or shared data block is needed.
[0051] It is evident that this method can satisfy both general and specific requirements, making it applicable to a very wide range of situations.
[0052] Understandably, based on the equipment control system provided in this embodiment of the invention, regardless of the number of devices, only a shared data block and a processing block are needed, and then a function block and an independent data block are defined for each device. Furthermore, regardless of changes or adjustments to the process, programmers only need to modify the processing block, avoiding extensive modification work. Additionally, by triggering each function block sequentially by the central processing unit (CPU), the CPU load can be reduced. Moreover, once the equipment control system has been debugged for one device, all other devices can be debugged without further debugging.
[0053] Secondly, embodiments of the present invention provide a device control method, the method being implemented based on the device control system provided in the first aspect: the method includes the following steps:
[0054] The processing block performs logical operations on the device parameters within the shared data block, controls the current device based on the logical cloud result, and sends the device control result to the shared data block so that the device control result within the shared data block is transmitted to the corresponding independent data block; the device parameters within the shared data block are transmitted from the independent data block of the current device.
[0055] In one embodiment, the device control system further includes at least two functional blocks, and the at least two functional blocks, the at least two independent data blocks, and the at least two devices of the same type correspond one-to-one; wherein: each functional block is used to: read the device parameters from the corresponding independent data block, send the device parameters to the shared data block, and transmit the device control result in the shared data block to the corresponding independent data block;
[0056] Correspondingly, before performing logical operations on the device parameters within the shared data block through the processing block, the method may further include: reading the device parameters from the corresponding independent data block through the function block and sending the device parameters to the shared data block; after sending the device control result to the shared data block, the method may further include: transmitting the device control result within the shared data block to the corresponding independent data block through the function block.
[0057] In one embodiment, the device control system may further include: a central processing unit, which is connected to each of the functional blocks, and the central processing unit is used to sequentially trigger the functional blocks corresponding to each device according to the device number order, so that the triggered functional blocks perform corresponding operations;
[0058] Correspondingly, the method also includes:
[0059] The central processing unit (CPU) sequentially triggers the function blocks corresponding to each device according to the device number order, so that after receiving the trigger instruction sent by the CPU, each function block takes the device corresponding to the function block as the current device and reads the device parameters from the independent data block corresponding to the current device.
[0060] Furthermore, the method also includes:
[0061] After the central processing unit completes the corresponding operation in one function block, it triggers the next function block so that the next function block can perform the corresponding operation on the next device.
[0062] In one embodiment, each device corresponds to a preset number of device parameters, each device parameter has a corresponding parameter number, and the parameter number corresponding to each device parameter is set with the number of the corresponding device as an offset.
[0063] In one embodiment, the device parameters include expected values and current actual values; the device control result includes the actual values of the device parameters after control operations are performed on the current device.
[0064] In one embodiment, the device is a sake tank, and the types of device parameters include at least one of pressure, temperature, and liquid level within the sake tank. The device control result is the actual value of the device parameters after valve control and / or interlock protection control of the sake tank.
[0065] In one embodiment, the code in the processing block used for logical operations and device control is general code; the function block corresponding to the device with different requirements has different code, which is code for performing different logical operations and logical control on the device; and when the function block corresponding to the device with different requirements executes the different code, the general code in the processing block does not need to be executed.
[0066] It is understood that explanations, specific implementation methods, beneficial effects, examples, etc. of the methods provided in the embodiments of the present invention can be found in the corresponding parts of the system provided in the first aspect, and will not be repeated here.
[0067] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the apparatus embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0068] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made on the basis of the technical solution of the present invention should be included within the scope of protection of the present invention.
Claims
1. A device control system, characterized in that, It includes at least two independent data blocks, at least two functional blocks, one shared data block, one processing block, and a central processing unit; the at least two functional blocks, at least two independent data blocks, and at least two devices of the same type correspond one-to-one; wherein: Independent data blocks are used to store the device parameters of the corresponding device; The function block is used to: read device parameters from the corresponding independent data block and send the device parameters to the shared data block; Shared data blocks are used to store device parameters passed from the function block corresponding to the current device; The processing block is used to: store general program code for logical operations and device control of devices of the same type; execute the general program code, perform logical operations on the device parameters in the shared data block, control the current device according to the logical operation results, and send the device control results to the shared data block; Shared data blocks are also used to: transfer device control results to the independent data blocks of the current device through the corresponding function blocks; The central processing unit is connected to each function block and is used to trigger the function blocks corresponding to each device in sequence according to the device number order, so that the triggered function blocks can perform corresponding operations: taking the device corresponding to the function block as the current device and reading the device parameters from the independent data block corresponding to the current device; The central processing unit is also used to trigger the next function block after the corresponding operation of one function block is completed, so that the next function block can perform the corresponding operation on the next device; The function block corresponding to the device with differentiated requirements contains differentiated code for the differentiated logical operations and logical control of the device, and when the function block corresponding to the device executes the differentiated code, the general code in the processing block does not need to be executed.
2. The system according to claim 1, characterized in that, Each device corresponds to a preset number of device parameters, each device parameter has a corresponding parameter number, and the parameter number corresponding to each device parameter is set with the corresponding device number as an offset.
3. The system according to claim 1, characterized in that, Equipment parameters include expected values and current actual values; equipment control results include actual values of equipment parameters after control operations have been performed on the current equipment.
4. The system according to claim 3, characterized in that, The equipment is a sake tank, and the equipment parameters include at least one of the following: pressure, temperature, and liquid level inside the sake tank. The equipment control result is the actual value of the equipment parameters after valve control and / or interlock protection control of the sake tank.
5. A device control method, characterized in that, The method is implemented based on the equipment control system according to any one of claims 1 to 4; the method includes: The processing block performs logical operations on the device parameters within the shared data block, controls the current device based on the logical cloud results, and sends the device control results back to the shared data block so that the device control results within the shared data block are transmitted to the corresponding independent data block; the device parameters within the shared data block are transmitted from the independent data block of the current device.
6. The method according to claim 5, characterized in that, Before performing logical operations on the device parameters within the shared data block through the processing block, the method further includes: reading device parameters from the corresponding independent data block through the function block and sending the device parameters to the shared data block; After sending the device control results to the shared data block, the method further includes: transferring the device control results within the shared data block to the corresponding independent data block via a function block.
Citation Information
Patent Citations
Implementation system and method for synchronous triggering of control task and input and output data
CN111176227A
Apparatuses and methods for modeling shared bus systems
US7110928B1
