Method for adding simulation function to DCS analog quantity template
By adding simulation functionality to the DCS analog quantity template, the problem of downtime caused by faulty field instruments in the DCS analog quantity module was solved, achieving the effect of reducing downtime and stabilizing production, thus meeting the continuous production requirements of the paper machine.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- DONGGUAN JINZHOU PAPER IND
- Filing Date
- 2024-12-05
- Publication Date
- 2026-06-12
AI Technical Summary
When DCS analog modules handle field instrument equipment failures in papermaking machines, they cause long downtimes, and maintenance or disassembly of measurement points interrupts signals, resulting in cascading shutdowns and failing to meet the requirements of continuous production.
Add simulation functionality to the DCS analog quantity template. By manually inputting simulation values, the system can be optimized, and downtime and equipment maintenance impacts can be reduced. This includes steps such as selecting simulation value variables, limiting ranges, numerical conversion, and setting permissions.
By adding simulation functions and optimizing the system, downtime can be reduced, production can be stabilized, and cascading shutdowns caused by on-site signal failures or equipment maintenance can be avoided, thus meeting the requirements for continuous production.
Smart Images

Figure CN122197246A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a method for adding simulation functionality to a DCS analog quantity template, and particularly to a method for adding simulation functionality to a DCS analog quantity template, belonging to the field of papermaking technology. Background Technology
[0002] In papermaking machines, the application of DCS (Distributed Control System) plays a crucial role. DCS is a new type of control technology that uses computer technology to centrally monitor, operate, manage, and distribute the production process. It has evolved from the mutual penetration of computer technology, signal processing technology, measurement technology, communication network technology, CRT display technology, and human-machine interface technology. It has significant characteristics such as versatility, flexible system configuration, complete control functions, centralized display and operation, user-friendly human-machine interface, and safe and reliable operation.
[0003] The DCS is responsible for the continuous process control of the entire workshop, handling a large number of analog input signals. Failures in field instruments and equipment or signal transmission can cause downtime, and recovery takes a long time. In addition, checking whether the measured values are consistent with the actual values during production, disconnecting the line or removing the measurement point will inevitably interrupt the signal. The interruption of the signal may cause a series of interlocking shutdowns. Originally, the DCS analog module simply converted the field signals into engineering values and applied them directly to each control logic. Therefore, DCS control is constantly developing towards stronger functionality and modularity to meet the requirements of continuous production.
[0004] Therefore, there is an urgent need for a method to add simulation functionality to DCS analog quantity templates in order to solve the above-mentioned problems. Summary of the Invention
[0005] The purpose of this invention is to provide a method for adding simulation functionality to a DCS analog quantity module. This method enhances the simulation function, optimizes the system, facilitates equipment debugging and maintenance, meets continuous production requirements, ensures stable production, and avoids cascading shutdowns caused by field signal failures or equipment maintenance. This method adds simulation functionality to the original analog quantity control module, allowing manual input of simulation values through the DCS, thereby reducing downtime or the impact of instrument maintenance.
[0006] To achieve the above objectives, the main technical solution adopted by the present invention includes: a method for adding simulation functions to a DCS analog quantity template, comprising the following steps:
[0007] S1: Selection of simulation value variables and physical address value variables;
[0008] S2: The range of simulation value variables is limited; manually input values must be within the range of the corresponding field equipment.
[0009] S3: The simulation value variable is converted into a value in the range of 0-10000 according to the engineering range through CIP arithmetic operation instructions, and then transmitted to the original program physical address after the value variable in the range of 0-10000.
[0010] S4: Screen settings: Simulation enable, simulation mode, and simulation value input;
[0011] S5: User permission settings for simulation mode.
[0012] Preferably, in step S1, the simulation value and the actual value selection bit are set to "1" or "0" to activate or stop the simulation;
[0013] Through the above technical solution, PIC_AI_Test_En[1] is the simulation enable bit. If it is “0”, the value read through the physical address is executed. The input module is an analog quantity of 4-20MA. The AD is converted to a value of 0-30840. The DIV division instruction is used to obtain a value of 0-10000 by ZZ_1K01_1:2:I.Ch3Data(physical address) / 3.084 and then the value is sent to the intermediate variable PIC_AI[1]. If it is “1”, the simulation mode calculation is executed.
[0014] Preferably, in step S2, the LIM limit instruction is used. The lower limit of the LIM limit instruction uses the lower limit value of the original module's range, and the upper limit value of the LIM limit instruction uses the upper limit value of the original module's range, so as to achieve the purpose of limiting the value. If the input value is not within this range, the CIP instruction in step three above will not be executed.
[0015] Preferably, in step S3, the input simulation value is converted into a value in the range of 0-10000 according to the engineering range by CIP arithmetic operation instructions and transmitted to the original program physical address after the value variable in the range of 0-10000. The formula is as follows: 10000*, and the specific calculation method of the formula is: (simulation value - lower limit of range) / (upper limit of range - lower limit of range).
[0016] Preferably, in step S3, the input simulation value PIC_AI_Test_Set[1] is converted into an intermediate variable PIC_AI[1] in the range of 0-10000 using CIP arithmetic operation instructions, as follows:
[0017] 10000*(PIC_AI_Test_Set[1]-PIC_AI_RL[1]) / (PIC_AI_RH[1]-PIC_AI_RL[1];
[0018] Simulation value: PIC_AI_Test_Set[1];
[0019] Lower limit of the range: PIC_AI_RL[1];
[0020] Upper limit of the range: PIC_AI_RH[1];
[0021] Intermediate variable PIC_AI[1];
[0022] The purpose of converting to a value in the range of 0-10000 is to calculate it using the program's CIP instruction.
[0023] Preferably, in S4 and S5, the screen design simulation enable, simulation mode display, simulation value input, and simulation mode permission user setting are performed by selecting YB as the user and 123456 as the password. Only the "YB" user can perform simulation mode activation, input simulation value, and simulation activation operation. The simulation mode is indicated by a red and yellow flashing indicator.
[0024] Through the above technical solution, the control indicated by the box is added to the modular screen of DCS. The simulation test is connected to PIC_AI_Test_En[1] in the above step one. When PIC_AI_Test_En[1] is "1", it flashes red and yellow. Otherwise, it is gray, as shown in the figure. "YES" activates "Simulation Test" and connects it to PIC_AI_Test_En[1]. Pressing it triggers PIC_AI_Test_En[1] to "1". "NO" stops "Simulation Test" and connects it to PIC_AI_Test_En[1]. Pressing it triggers PIC_AI_Test_En[1] to "2". The simulation value is connected to PIC_AI_Test_Set[1], and the simulation value is input. The actual value is the calculated output value, as shown in Figure 5. Add a user named "YB" (instrument) with the password: 123456. Only switch to "YB" login. "YES" and "NO" in the above step four are possible operations.
[0025] Preferably, the CIP arithmetic operation instructions include: basic arithmetic operation instructions, advanced arithmetic operation instructions, and shift instructions.
[0026] Preferably, the basic arithmetic operation instructions include:
[0027] Addition (ADD): Adds two operands and stores the result in a specified location;
[0028] Subtraction (SUB): Subtracts the second operand from the first operand and stores the result in the specified location;
[0029] Multiplication (MUL): Multiplies two operands and stores the result in a specified location (may require multiple registers to store a large result);
[0030] Division (DIV): Divides the first operand by the second operand and stores the quotient and (optionally) remainder in the specified location.
[0031] Preferably, the advanced arithmetic operation instructions include:
[0032] Floating-point arithmetic: Supports addition, subtraction, multiplication, and division of floating-point numbers, suitable for applications requiring high precision or large-scale numerical calculations;
[0033] Decimal arithmetic: Some systems may provide arithmetic operation instructions that directly support decimal numbers to reduce the overhead of converting between binary and decimal numbers;
[0034] Vector and matrix operations: Some high-performance computing or scientific computing systems may include instruction sets that support vector and matrix operations, such as summation and multiplication.
[0035] Preferably, the shift instruction is used to perform left or right shift operations on operands, as well as fast multiplication, division, or bit-level operations on numerical values.
[0036] This invention has at least the following beneficial effects:
[0037] 1. By adding simulation functions, the system is optimized, making it easier to debug and maintain equipment, meeting the requirements of continuous production and stable production, and avoiding cascading shutdowns due to field signal failures or equipment maintenance. This method adds simulation functions to the original analog control module, allowing manual input of simulation values through the DCS, reducing downtime or the impact of instrument maintenance. Attached Figure Description
[0038] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0039] Figure 1 This is a schematic diagram of the analog quantity module of the present invention;
[0040] Figure 2 This is a schematic diagram of the analog quantity display control of the present invention;
[0041] Figure 3 This is a schematic diagram illustrating user selection permissions according to the present invention;
[0042] Figure 4 This is a schematic diagram of the steps of the present invention. Detailed Implementation
[0043] The following will describe in detail the implementation of this application with reference to the accompanying drawings and embodiments, so that the implementation process of how this application uses technical means to solve technical problems and achieve technical effects can be fully understood and implemented accordingly.
[0044] like Figures 1-4 As shown, the method for adding simulation function to the DCS analog quantity template provided in this embodiment includes the following steps: S1: Selection of simulation value variables and physical address value variables; wherein the simulation value and actual value selection bits are "1" or "0" to activate or stop the simulation;
[0045] like Figure 1 As shown: PIC_AI_Test_En[1] is the simulation enable bit. If it is “0”, the value read through the physical address is executed. The input module is an analog quantity of 4-20MA. The AD is converted to a value of 0-30840. The DIV division instruction is used to obtain a value of 0-10000 by ZZ_1K01_1:2:I.Ch3Data(physical address) / 3.084 and then the value is sent to the intermediate variable PIC_AI[1]. If it is “1”, the simulation mode calculation is executed.
[0046] S2: The range of the simulation value variable is limited. The manually input value is within the range of the corresponding field device. The LIM limit instruction is used. The lower limit of the LIM limit instruction uses the lower limit of the original module's range, and the upper limit of the LIM limit instruction uses the upper limit of the original module's range, so as to achieve the purpose of limiting the value. If the input value is not within this range, the CIP instruction in step three above will not be executed. In the above S1, PIC_AI_Test_En[1] is the simulation enable bit. When it is "1", and if Figure 1 The 2 referred to is set to PIC_AI_RL[1] (the lower limit of the original module's range) by the LIM limit instruction, and the upper limit of the LIM limit instruction is set to PIC_AI_RH[1] (the upper limit of the original module's range). If the input value is within this range, the subsequent CIP arithmetic operation instruction will be executed.
[0047] S3: The simulation value variable is converted into a value in the range of 0-10000 according to the engineering range by the CIP arithmetic operation instruction, and then transmitted to the original program physical address after the 0-10000 range value variable; The input simulation value is converted into a value in the range of 0-10000 according to the engineering range by the CIP arithmetic operation instruction and transmitted to the original program physical address after the 0-10000 range value variable, the formula is as follows: 10000*, the specific calculation method of the formula is: (simulation value - lower limit of range) / (upper limit of range - lower limit of range); Among them, the input simulation value PIC_AI_Test_Set[1] is converted into the intermediate variable PIC_AI[1] in the range of 0-10000 according to the engineering range by the CIP arithmetic operation instruction, the formula is as follows: 10000*(PIC_AI_Test_Set[1]-PIC_AI_RL[1]) / (PIC_AI_RH[1]-PIC_AI_RL[1]);
[0048] Simulation value: PIC_AI_Test_Set[1];
[0049] Lower limit of the range: PIC_AI_RL[1];
[0050] Upper limit of the range: PIC_AI_RH[1];
[0051] Intermediate variable PIC_AI[1];
[0052] The purpose of converting to a value in the range of 0-10000 is to calculate using the program's CIP instruction; for example... Figure 1 Indicates the intermediate variable PIC_AI[1];
[0053] Furthermore, CIP arithmetic instructions include: basic arithmetic instructions, advanced arithmetic instructions, and shift instructions. The basic arithmetic instructions include: addition (ADD): adds two operands and stores the result in a specified location; subtraction (SUB): subtracts the second operand from the first operand and stores the result in a specified location; multiplication (MUL): multiplies two operands and stores the result in a specified location (may require multiple registers to store a large result); division (DIV): divides the first operand by the second operand and stores the quotient and (optionally) remainder in a specified location.
[0054] Advanced arithmetic instructions include: Floating-point arithmetic: supports addition, subtraction, multiplication, and division of floating-point numbers, suitable for applications requiring high precision or large-scale numerical calculations; Decimal arithmetic: some systems may provide arithmetic instructions that directly support decimal numbers to reduce the overhead of converting between binary and decimal numbers; Vector and matrix operations: some high-performance computing or scientific computing systems may include instruction sets that support vector and matrix operations, such as summation and multiplication.
[0055] Shift instructions are used to perform left or right shift operations on operands, as well as fast multiplication, division, or bit-level operations.
[0056] S4: Screen settings: Simulation enable, simulation mode, and simulation value input; S5: Simulation mode permission user settings, where the screen settings in S4 and S5 enable simulation, display simulation mode, input simulation value, and set simulation mode permission user settings. The user is selected as YB, and the password is 123456. Only the "YB" user can perform simulation mode activation, input simulation value, activate simulation operation, and the simulation mode is indicated by flashing red and yellow indicators.
[0057] In S4 above, such as Figure 2 As shown, the control indicated by the box is added to the module quantity screen of DCS. The simulation test is connected to PIC_AI_Test_En[1] in the above step one. When PIC_AI_Test_En[1] is "1", it flashes red and yellow. Otherwise, it is gray, as shown in the figure. "YES" activates "Simulation Test" and connects it to PIC_AI_Test_En[1]. Pressing it triggers PIC_AI_Test_En[1] to "1". "NO" stops "Simulation Test" and connects it to PIC_AI_Test_En[1]. Pressing it triggers PIC_AI_Test_En[1] to "2". The simulation value is connected to PIC_AI_Test_Set[1], which is the input of the simulation value. The actual value is the calculated output value, as shown in Figure 5, PIC_AI_REAL[1].
[0058] In S5 above, such as Figure 3 As shown, add a user named "YB" (Instrument) with the password 123456. Only switch to "YB" login. The "YES" and "NO" options in step four above are possible.
[0059] If certain terms are used in the specification and claims to refer to specific components, those skilled in the art will understand that hardware manufacturers may use different names to refer to the same component. This specification and claims do not distinguish components based on differences in name, but rather on differences in function. The term "comprising" as used throughout the specification and claims is an open-ended term and should be interpreted as "comprising but not limited to." "Approximately" means that within an acceptable margin of error, those skilled in the art can solve the technical problem and substantially achieve the technical effect within a certain margin of error.
[0060] It should be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a product or system comprising a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a product or system. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the product or system that includes that element.
[0061] The foregoing description illustrates and describes several preferred embodiments of the present invention. However, as previously stated, it should be understood that the present invention is not limited to the forms disclosed herein and should not be construed as excluding other embodiments. It can be used in various other combinations, modifications, and environments, and can be altered within the scope of the inventive concept described herein through the foregoing teachings or techniques or knowledge in related fields. Any modifications and variations made by those skilled in the art that do not depart from the spirit and scope of the present invention should be within the protection scope of the appended claims.
Claims
1. A method for adding simulation functionality to a DCS analog quantity template, characterized in that: Includes the following steps: S1: Selection of simulation value variables and physical address value variables; S2: The range of simulation value variables is limited; manually input values must be within the range of the corresponding field equipment. S3: The simulation value variable is converted into a value in the range of 0-10000 according to the engineering range through CIP arithmetic operation instructions, and then transmitted to the original program physical address after the value variable in the range of 0-10000. S4: Screen settings: Simulation enable, simulation mode, and simulation value input; S5: User permission settings for simulation mode.
2. The method for adding simulation functionality to a DCS analog quantity template according to claim 1, characterized in that: In S1, the simulation value and the actual value selection bit are set to "1" or "0" to activate or stop the simulation.
3. The method for adding simulation functionality to a DCS analog quantity template according to claim 1, characterized in that: In step S2, the LIM limit instruction is used. The lower limit of the LIM limit instruction uses the lower limit value of the original module's range, and the upper limit value of the LIM limit instruction uses the upper limit value of the original module's range, thus achieving the purpose of setting limits. If the input value is not within this range, the CIP instruction in step three above will not be executed.
4. The method for adding simulation functionality to a DCS analog quantity template according to claim 1, characterized in that: In S3, the input simulation value is converted into a value in the range of 0-10000 according to the engineering range through CIP arithmetic operation instructions and transmitted to the original program physical address after the value variable in the range of 0-10000. The formula is as follows: 10000*, and the specific calculation method of the formula is: (simulation value - lower limit of range) / (upper limit of range - lower limit of range).
5. The method for adding simulation functionality to a DCS analog quantity template according to claim 4, characterized in that: In S3, the input simulation value PIC_AI_Test_Set[1] is converted into an intermediate variable PIC_AI[1] in the range of 0-10000 using CIP arithmetic operation instructions, as follows: 10000*(PIC_AI_Test_Set[1]-PIC_AI_RL[1]) / (PIC_AI_RH[1]-PIC_AI_RL[1]; Simulation value: PIC_AI_Test_Set[1]; Lower limit of the range: PIC_AI_RL[1]; Upper limit of the range: PIC_AI_RH[1]; Intermediate variable PIC_AI[1]; The purpose of converting to a value in the range of 0-10000 is to calculate it using the program's CIP instruction.
6. The method for adding simulation functionality to a DCS analog quantity template according to claim 1, characterized in that: The screen design simulation enable, simulation mode display, simulation value input, and simulation mode permission user setting in S4 and S5 are enabled by the user selecting YB and the password 123456. Only the "YB" user can perform simulation mode activation, input simulation value, and simulation activation operation. The simulation mode is indicated by a red and yellow flashing indicator.
7. The method for adding simulation functionality to a DCS analog quantity template according to claim 1, characterized in that: The CIP arithmetic operation instructions include: basic arithmetic operation instructions, advanced arithmetic operation instructions, and shift instructions.
8. The method for adding simulation functionality to a DCS analog quantity template according to claim 7, characterized in that: The basic arithmetic operation instructions include: Addition (ADD): Adds two operands and stores the result in a specified location; Subtraction (SUB): Subtracts the second operand from the first operand and stores the result in the specified location; Multiplication (MUL): Multiplies two operands and stores the result in a specified location (may require multiple registers to store a large result); Division (DIV): Divides the first operand by the second operand and stores the quotient and (optionally) remainder in the specified location.
9. A method for adding simulation functionality to a DCS analog quantity template according to claim 8, characterized in that: The advanced arithmetic operation instructions include: Floating-point arithmetic: Supports addition, subtraction, multiplication, and division of floating-point numbers, suitable for applications requiring high precision or large-scale numerical calculations; Decimal arithmetic: Some systems may provide arithmetic operation instructions that directly support decimal numbers to reduce the overhead of converting between binary and decimal numbers; Vector and matrix operations: Some high-performance computing or scientific computing systems may include instruction sets that support vector and matrix operations, such as summation and multiplication.
10. A method for adding simulation functionality to a DCS analog quantity template according to claim 9, characterized in that: The shift instructions are used to perform left or right shift operations on operands, as well as fast multiplication, division, or bit-level operations on numerical values.