Data conversion method and device for batch control
By configuring the conversion source and target data in the batch control system and converting data according to preset conversion rules, the problem of insufficient data communication flexibility between DCS sequence control and Batch software control is solved, seamless docking and data unity are achieved, and the convenience of data identification and statistical analysis is improved.
Patent Information
- Application Number
- CN202311618319.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-29
- Publication Date
- 2025-05-30
AI Technical Summary
In batch control systems, the data communication between DCS sequence control and Batch software control is insufficient to achieve seamless docking, resulting in difficulty in data identification and statistical analysis.
By configuring the form of conversion source and target data, and automatically generating mapping rules for data conversion based on preset conversion rules, including one-time function relationships, multi-stage functions, empirical formulas, and Taylor formulas, data conversion between DCS sequence control and Batch software control is realized.
It realizes seamless connection between DCS sequence control and Batch software control, improves the convenience of identification and data uniformity of batch control data, and facilitates statistical analysis of data.
Smart Images

Figure CN120065922A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of industrial control data conversion, and particularly to a data conversion method and device for batch control. Background Art
[0002] Industrial fields can be divided into continuous, intermittent, and discrete types according to production characteristics. Intermittent production combines the characteristics of continuous and discrete production, but there are also obvious differences from both, which is generally referred to as batch production, and the corresponding control requirements are called batch control. The intermittent production mode is an important production mode in the process industry and is widely distributed in industries such as fine chemicals, pharmaceuticals, and food. Its main production feature is multi-batch quantitative control, and generally, Batch (batch processing) software is used for management and control. Especially in the case of intermittent production with multiple formulations and multiple production equipment combinations, Batch software is an essential configuration item. With the popularization of DCS (Distributed Control System, which is a new generation of instrument control system based on microprocessors and adopting the design principle of decentralized control functions, centralized display and operation, and taking into account decentralized autonomy and comprehensive coordination) applications and the popularization of the concept of batch control standards (ISA88), batch software applications have achieved great development in the past decade and have been accepted by more and more enterprises in intermittent production devices. At the same time, with the gradual implementation of the concept of intelligent manufacturing, Batch software, as a key link connecting the upper and lower levels of control in intermittent devices, has become increasingly important, and the market space has expanded rapidly. In a batch control system, Batch is a high-level control, and its control object is DCS sequence control. Therefore, data communication is required between DCS sequence control and Batch software control. However, due to belonging to different fields, their data types or forms and focuses are different. When the input file or process changes, relevant programs need to be modified, resulting in a lack of flexibility and difficulty in integrating communication devices into application programs. Summary of the Invention
[0003] The purpose of the present invention is to provide a data conversion method and device for batch control, which convert the communication data between DCS sequence control and Batch software control, realize seamless docking between DCS sequence control and Batch software control, and improve the convenience of identifying batch control data.
[0004] To achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
[0005] A data conversion method for batch control, characterized by comprising the following steps:
[0006] Configure a conversion source data form including at least one parameter and a target data form according to the preset requirements of the on-site scenario;
[0007] Convert the source data for conversion into target data according to the conversion rules;
[0008] Obtain the target data.
[0009] Specifically, the conversion rules are recipe expressions preset according to the on-site scenarios of batch control, including linear function relationships, piecewise functions, empirical formulas, and Taylor formulas.
[0010] Specifically, configure the form of the source data for conversion that contains at least one parameter, and this parameter can be set as a set value, an initial value, an increment value, a current value, or a target value.
[0011] Specifically, converting the input source data into target data according to the conversion rules further includes: multiple mapping rules for data conversion can be automatically generated according to the relevance between the source data for conversion and the target data for the user to select.
[0012] Specifically, automatically generating multiple mapping rules for data conversion includes: setting multiple optional recipe expressions according to the relevance between the source data for conversion and the target data for conversion.
[0013] A data conversion device for batch control includes:
[0014] A batch control module for transmitting a start message and performing scheduling after receiving a completion message;
[0015] A source data input module for conversion, which is used to receive the source data for conversion and transmit the completion message to the batch control module after completing the input processing;
[0016] A data conversion module for converting the source data for conversion into target data according to the conversion rules and transmitting the completion message to the batch control module;
[0017] A data output module for outputting the target data when receiving the scheduling of the batch control module.
[0018] Specifically, the data conversion module includes at least: a conversion rule storage unit, an automatic rule generation unit, and a conversion unit;
[0019] The conversion rule storage unit is used to store the recipe expressions preset according to the on-site scenarios of batch control;
[0020] The automatic rule generation unit is used to identify the relevance between the source data for conversion and the target data and automatically generate mapping rules indicating the corresponding relationship;
[0021] The conversion unit is used to convert the form of the source data for conversion into the form of the target data and perform the conversion from the source data for conversion to the target data.
[0022] A computer system includes a memory, a processor, and a computer program stored on the memory and executable on the processor. The processor is configured to perform the steps of any one of the above data conversion methods for batch control when executing the computer program.
[0023] A computer-readable storage medium stores a computer program thereon. The program, when executed by a processor, implements the steps of any one of the above data conversion methods for batch control.
[0024] Due to the above technical solutions, the present invention converts the communication data between DCS sequential control and Batch software control, enabling it to achieve unity with the data form of field devices when applied to different batch control scenarios, facilitating data statistical analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on the provided drawings.
[0026] Figure 1 It is a schematic flowchart of a data conversion method for batch control provided by an embodiment of the present invention.
[0027] Figure 2 It is a schematic block diagram of a data conversion device for batch control provided by an embodiment of the present invention.
[0028] Figure 3 It is a schematic diagram of a recipe expression configuration interface of a batch management software client provided by an embodiment of the present invention.
[0029] Figure 4 It is a schematic diagram of an actual feeding value interface of a batch management software client provided by an embodiment of the present invention.
[0030] Figure 5 It is a schematic diagram of an interface of a DCS function block panel provided by an embodiment of the present invention.
[0031] Figure 6 It is a schematic process diagram of a batch control unit provided by an embodiment of the present invention.
[0032] Figure 7 It is a schematic diagram of a batch report provided by an embodiment of the present invention.
[0033] Figure 8 It is a schematic process diagram of a batch control unit provided by another embodiment of the present invention. Detailed implementation manners
[0034] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided so that the present disclosure can be more thoroughly understood and the scope of the present disclosure can be completely conveyed to those skilled in the art.
[0035] Embodiment 1
[0036] Refer to Figure 1 , Figure 1 , which is a schematic flowchart of a data conversion method for batch control provided by an embodiment of the present invention. In the embodiments of the present application, the method includes:
[0037] S110, configure the source data for conversion and the target data. Configuring the source data for conversion includes inputting at least one parameter according to the wizard prompt, and the parameter can be set as an initial value, an increment value, a current value, a set value, etc. Configuring the target data includes selecting and configuring the form of the target data according to the preset requirements of the on-site scenario of batch control.
[0038] S120, convert the source data for conversion into the target data according to the conversion rules. The conversion rules are formula expressions preset according to the on-site scenario of batch control, including a linear function relationship, a multi-segment function, an empirical formula, a Taylor formula, etc. This step further includes: multiple optional formula expressions can be set according to the correlation between the source data for conversion and the target data, and multiple mapping rules for data conversion are automatically generated for the user to select.
[0039] S130, obtain the target data. Use the obtained target data as the judgment basis for batch control or for big data analysis.
[0040] Embodiment 2
[0041] Taking the feeding process of material A in a certain batch control as an example, refer to Figures 3 to 7 . The control object is a reaction kettle, and there are various metering forms, such as weighing, liquid level gauge, flow meter, etc., and the units are correspondingly KG, mm, m^3 (accumulated flow), etc. On the Batch interface, in order to take into account functions such as raw material statistics and batch statistics, the unit set is t. For example, in Figure 3In the formula expression configuration interface of the batch management software client shown, the conversion relationship between Material A in Batch and DCS is set, that is, the expression is shown as PARAM(“[], Material A, ST”). Thus, the data transfer between the two is as follows: In the Batch batch configuration information, the feeding setting parameter 0.05000 (t) is configured for the feeding Phase (Phase is the smallest constituent unit of Batch, and the interaction between Batch and DCS is through the parameters of Phase), the conversion coefficient is set to 1000, and the corresponding parameter finally written into the DCS sequence control is 50.0 (kg), that is, the set value is 50.0 (kg). When DCS is in control (judged by the OWNER parameter), the setting is directly made through the set value of 50.0 (kg). As Figure 5 shown, after the feeding of Material A is completed, the indicator shows that the set value received by DCS is 50 (kg), the current value is 50 (kg), and the initial value is 0 kg. And, as Figure 6 shown, the actual amount of the high-level tank (V1001A) is finally 50.0 (kg). And, as Figure 7 shown, the batch report shows that Material A is finally 50.0 (kg). 50.0 kg is unified with the on-site equipment measurement unit and the record form unit. Suppose that if the actual feedback at the end is 49.99 (kg), then the corresponding Batch feedback parameter is 0.04999 (t). At that time, when conducting raw material statistics and batch statistics, if 0.05000 (t) and 0.40999 (t) are used for statistics, then the estimated consumption and actual consumption for a certain month or several batches may be 36.71350 (t) and 36.71323 (t) respectively. Using t as the data unit is consistent with the units of actual canned transport vehicles, etc., which is convenient for big data analysis. In this embodiment, the conversion rule is a linear function Y = KX + B for kg and t, where the coefficient K of the linear term takes the value of 1000 and B is 0. If it is a standard cylinder, there is also a linear function relationship between mm, m^3 and t. For example, assume that another reactor is in mm units, then the parameter shown in the DCS sequence control may be 100 mm. If the actual site is composed of two hemispheres plus a middle section of a cylinder, etc., then piecewise functions, empirical formulas, Taylor formulas, etc. are used. Based on this, multiple optional formula expressions can be set according to the relevance between the conversion source data and the target data, and multiple mapping rules for data conversion can be automatically generated for users to choose from.
[0042] In addition, it should be noted that the feeding can also be divided into setting-type feeding and target-type feeding (such as supplementing 500 mL and supplementing to 500 mL). At this time, the set value or the initial value and the target value can be configured separately according to the on-site situation. The feeding is also divided into the positive direction of the input value rising (entering the measuring device) and the positive direction of the input value falling (outputting from the measuring device).
[0043] Example 3
[0044] Taking the automatic selection of a certain batch control as an example. Refer to Figure 8 , Figure 8 , which is a process schematic diagram of a batch control unit provided by another embodiment of the present invention. During DCS sequence control, the control process is automatic. Which sequence control to start and which specific instruction of the sequence control are selected by the operator according to the actual situation. When controlled by the Batch software, in order to simplify the operation and avoid misoperations and other reasons, except for some initially configured parameters, other parameters are often calculated through expressions, and this process requires data conversion. As Figure 3 shown, one of the reactors R1002A and R2002A is selected, and one of the dilution tanks R1003A and R2003A is selected, then the flow direction of the material is determined. The discharge sequence control has two instructions, one is direct flow and the other is bypass. The discharge sequence control is used as a phase and is bound to the reactor equipment type. When it is R1002A - R1003A, it is direct flow; when it is R2002A - R2003A, it is direct flow; when it is R1002A - R2003A, it is bypass; when it is R2002A - R1003A, it is bypass. Further, set A as the reactor selection, 1 as R1002A, 2 as R2002A; set B as the dilution tank selection, 1 as R1003A, 2 as R2003A; set C as the control instruction selection, 0 as direct flow, 1 as bypass. Then, the conversion rule is C = f(A,B); that is, C is a function of A and B. It can be seen that the expression of C is: (A - B) <> 0; when A and B are the same, it is on the same side and goes direct flow. At this time, 0 <> 0, and the result is false, that is, 0, and 0 means direct flow; when A and B are different, it is on different sides and goes bypass. At this time, 1 <> 0 or -1 <> 0, and the result is true, that is, 1, and 1 means bypass. Through data conversion, target data can be conveniently extracted, identified, displayed, and utilized.
[0045] Example 4
[0046] Correspondingly, an embodiment of the present invention also provides a data conversion device for batch control. Specifically refer to Figure 2 , and the device includes:
[0047] A batch control module for transmitting a start message and scheduling after receiving a completion message;
[0048] A conversion source data input module for receiving conversion source data and transmitting a completion message to the batch control module after completing input processing;
[0049] A data conversion module, configured to convert source data for conversion into target data according to conversion rules and transmit a completion message to a batch control module;
[0050] A data output module, configured to output target data when receiving scheduling from the batch control module;
[0051] A conversion rule storage unit, configured to store recipe expressions preset according to on-site scenarios of batch control;
[0052] An automatic rule generation unit, configured to identify the relevance between source data for conversion and target data and automatically generate a mapping rule indicating the corresponding relationship;
[0053] A conversion unit, configured to convert the form of source data for conversion into the form of target data and perform the conversion from source data for conversion to target data.
[0054] In addition, an embodiment of the present invention further provides a computer system, including a memory, a processor, and computer instructions stored on the memory and executable on the processor. The processor is configured to call the computer instructions in the memory to execute the data conversion method for batch control as described above.
[0055] Moreover, an embodiment of the present invention further provides a computer-readable storage medium, where the storage medium is configured to store computer instructions. When the computer instructions run, the device where the storage medium is located is controlled to execute the data conversion method for batch control as described above.
[0056] The embodiments of the present invention have been described in detail above in conjunction with the accompanying drawings. However, the present invention is not limited to the above embodiments. Even if various changes are made to the present invention, provided that these changes fall within the scope of the claims of the present invention and equivalent technologies, they still fall within the protection scope of the present invention.
Claims
1. A data conversion method for batch control, characterized in that, it includes the following steps: Configure the conversion source data form containing at least one parameter and the target data form according to the preset requirements of the on-site scenario; Convert the conversion source data into target data according to the conversion rule; Obtain the target data.
2. The data conversion method for batch control according to claim 1, characterized in that, the conversion rule is a formula expression preset according to the on-site scenario of batch control, including a linear function relationship, a piecewise function, an empirical formula, and a Taylor formula.
3. The data conversion method for batch control according to claim 1, characterized in that, the configuration of the conversion source data form containing at least one parameter, and the parameter can be set as a set value, an initial value, an increment value, a current value, and a target value.
4. The data conversion method for batch control according to claim 1, characterized in that, the conversion of the input source data into target data according to the conversion rule further includes: multiple mapping rules for data conversion can be automatically generated according to the relevance between the conversion source data and the target data for the user to select.
5. The data conversion method for batch control according to claim 4, characterized in that, the automatic generation of multiple mapping rules for data conversion includes: setting multiple optional formula expressions according to the relevance between the conversion source data and the target data.
6. A data conversion device for batch control, used to implement the method described in any one of claims 1-5, characterized in that, the device includes: A batch control module, used to transmit a start message and perform scheduling after receiving a completion message; A conversion source data input module, used to receive the conversion source data and transmit the completion message to the batch control module after completing the input processing; A data conversion module, used to convert the conversion source data into target data according to the conversion rule and transmit the completion message to the batch control module; A data output module, used to output the target data when receiving the scheduling of the batch control module.
7. The data conversion device for batch control according to claim 6, characterized in that, the data conversion module at least includes: a conversion rule storage unit, an automatic rule generation unit, and a conversion unit; The conversion rule storage unit is used to store the formula expressions preset according to the on-site scenario of batch control; The automatic rule generation unit is used to identify the relevance between the conversion source data and the target data and automatically generate mapping rules indicating the corresponding relationship; The conversion unit is used to convert the form of the conversion source data into the form of the target data and perform the conversion from the conversion source data to the target data.
8. A computer system, including a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, when the processor executes the computer program, it implements the steps of the method described in any one of claims 1 to 5 above.
9. A computer-readable storage medium, on which a computer program is stored, characterized in that, When the described program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5 above.