A validity detection system and method for analog output channel of power plant
By designing a validity detection system for analog output channels in the power plant control system, and using serial port connections and analog output modules to feedback real-time status, the problem of insufficient real-time status monitoring of channels in the existing technology is solved, and rapid troubleshooting and redundancy are achieved. Redundant switching improves system reliability and maintenance efficiency.
Patent Information
- Application Number
- CN201810703721.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-06-30
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2038-06-30
AI Technical Summary
Existing technology In power plant control systems, the real-time status of the analog output channel cannot be informed to the controller and DCS in real time, resulting in a long troubleshooting time, and the reliability of the hard-wiring method is insufficient, especially in situations where channel effectiveness is required. Real-time status monitoring is achieved.
A validity detection system for power plant analog output channels is designed. Through the combination of controller host computer, analog output module, analog input module and power supply, each output is realized by using RS-485 or RS-232 serial port connection. Real-time status feedback of channels and redundant channels, and the validity status information is sent to the DCS current analog input card through the analog output module to realize hot switching of redundant channels.
It realizes real-time notification of the real-time status of the analog output channel to the controller and DCS, shortens the troubleshooting time, and realizes online switching through redundant channels, improving the reliability and maintenance convenience of the system.
Smart Images

Figure CN108508878B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a system and method for detecting the effectiveness of an analog output channel of a power plant, and belongs to the technical field of power plant operation control and optimization. Background Art
[0002] As the core of most power plant control systems, the distributed control system (DCS) is essentially a multi-level computer system consisting of a process control level and a process monitoring level with a communication network as the link, integrating 4C technologies such as computers, communications, display and control. In the technical transformation project of the control and optimization system of a power plant, the newly added controller is generally connected to the DCS through hard wiring; that is, the analog output (AO) module of the newly added controller is connected to the analog input (AI) module of the DCS.
[0003] Among them, hard wiring is a traditional wiring method with wiring terminals and test points. Its advantages are: the input and output modules of all electrical quantities can be managed and arranged in a unified manner; there are fewer transfer links, the signal response speed is fast, and it is safe and reliable; the probability of failure is low after the cable is laid correctly once, which is easy to maintain. At present, most power plants and design institutes believe that hard wiring is the most reliable way to connect electrical systems to DCS. However, for control and optimization system technical transformation projects with higher reliability requirements, the reliability of ordinary hard wiring methods is still insufficient; especially in situations where high channel effectiveness requirements are required, this method cannot inform the controller and DCS of the real-time status of the channel; when a fault occurs, such as a channel disconnection, manual troubleshooting and elimination are required, which takes a long time. Summary of the invention
[0004] The object of the present invention is to provide a system and method for detecting the effectiveness of analog output channels of a power plant. By utilizing the system, the real-time status of each analog output channel can be notified to the controller and DCS, thereby shortening the troubleshooting time.
[0005] To solve the above technical problems, the present invention adopts the following technical solutions: a validity detection system for an analog output channel of a power plant, comprising: a controller host computer, a controller, an analog output module, an analog input module and a power supply, wherein the controller, the analog output module and the analog input module are respectively connected to the power supply via a power cord, the controller host computer is connected to the controller via a network cable, the analog output module and the analog input module are respectively connected to the controller via an RS-485 or RS-232 serial port, and the analog output module and the analog input module are connected via hard wiring.
[0006] In the present invention, the number of output channels of each analog output module is n, and the number of analog output modules is a; the number of output channels of each analog input module is m, and the number of analog input modules is b; the channels between the analog output module and the DCS current analog input card include: x output channels, y redundant channels and z validity channels, which meet the following requirements:
[0007] x+y+z=an=bm;
[0008] That is, the total number of channels in the system is an, and each output channel and redundant channel between the analog output module and the DCS current analog input card needs to be fed back to the analog input module, so that the validity status of each output channel and redundant channel can be known.
[0009] The above-mentioned system is used to perform the validity detection method of the analog output channel of the power plant. The analog output module is connected to the current analog input card of the DCS system through hard wiring; the controller host computer issues a control instruction, the controller converts the control instruction into RS-485 or RS-232 signal, and sends it to the analog output module, the analog output module outputs the analog quantity to the DCS current analog input card, and at the same time, the signal of each output channel and redundant channel is fed back to the controller through the analog input module. The controller compares the control instruction issued by the controller host computer with the instruction fed back by the analog input module. If the two are If the difference between the two is less than a certain threshold (such as 5% of the output signal of the analog output module), the validity status of the corresponding channel is set to normal / available, otherwise the validity status of the corresponding channel is set to abnormal / unavailable; after the controller detects the validity of all output channels and redundant channels between the analog output module and the DCS current analog input card, the validity status information of the output channels and redundant channels is sent to the DCS current analog input card through the analog output module, so that the DCS system can determine the validity status of each output channel and redundant channel, and then determine whether hot switching of redundant channels is required.
[0010] Preferably, according to different types of analog output modules and analog input modules, the connection modes between the analog output module and the DCS current analog input card and between the analog output module and the analog input module are divided into the following three types:
[0011] (i) If the analog output module is a 4-20mA current analog output module and the analog input module (4) is a 4-20mA current analog input module, then for each channel, the positive pole of the analog output module is connected to the positive pole of the analog input module, the negative pole of the analog input module is connected to the positive pole of the DCS current analog input card, and the negative pole of the DCS current analog input card is connected to the negative pole of the analog output module (i.e., for each channel, it is necessary to ensure the series connection from the analog output module to the analog input module and then to the DCS current analog input card);
[0012] (ii) If the analog output module is a 0-10V voltage analog output module, and the analog input module is a 0-10V voltage analog input module, then for each channel, the positive pole of the analog output module is connected to the positive pole of the analog input module and the positive pole of the DCS current analog input card, and the negative pole of the analog output module is connected to the negative pole of the analog input module and the negative pole of the DCS current analog input card, respectively, wherein a 500Ω resistor is also connected in series between the positive pole of the analog output module and the positive pole of the DCS current analog input card (i.e., for each channel, it is necessary to ensure the parallel connection method from the analog output module to the analog input module and then to the DCS current analog input card (pre-series 500Ω resistor));
[0013] (III) If the analog output module is a 4-20mA current analog output module and the analog input module is a 0-10V voltage analog input module, then for each channel, the positive pole of the analog output module is connected to the positive pole of the analog input module, a 500Ω resistor is connected in parallel between the positive and negative poles of the analog input module, the negative pole of the analog input module is connected to the positive pole of the DCS current analog input card, and the negative pole of the DCS current analog input card is connected to the negative pole of the analog output module (that is, for each channel, it is necessary to ensure the series connection from the analog output module to the analog input module, with a resistor connected in parallel and then to the DCS current analog input card).
[0014] The above three connection modes can realize all functions of the present invention and meet the requirements of engineering practice.
[0015] Preferably, each validity channel is responsible for transmitting the validity data of r output channels or redundant channels; the availability of the i-th channel is represented by a 0 / 1 Boolean value t i , t i =0 means the channel is abnormal / unavailable, t i =1 indicates that the channel is normal / available; then the validity detection matrix Q is a 1-dimensional Boolean vector with a length of r, that is:
[0016] Q=[t1,t2,...,t r ]
[0017] When r channels are normal, Q1=[1, 1, ..., 1] r ; When all r channels are abnormal, Q0=[0,0,...,0] r ; Q1 corresponds to the channel output upper limit of the validity channel; Q0 corresponds to the channel output lower limit of the validity channel.
[0018] More preferably, before sending the validity status information of the output channel or redundant channel to the DCS current analog input card through the analog output module, the Boolean vector Q of the validity of the output channel or redundant channel is first converted into a shaped Q′, and then converted into an analog signal q; after the DCS current analog input card receives the analog signal q, it performs an inverse operation to convert it into a Boolean vector Q, so as to determine the validity status of each output channel and redundant channel;
[0019] The transformation relationship between Q and Q' is:
[0020]
[0021] Among them, the upper limit of Q' is Q'1 = 2 r -1, corresponding to Q1 = [1, 1, ..., 1] r ; The lower limit of Q′ is Q′0=0, corresponding to Q0=[0, 0, ..., 0] r ;
[0022] The transformation relationship between Q′ and q is:
[0023]
[0024] Among them, q'1 is the output upper limit of the analog signal, q'0 is the output lower limit of the analog signal; Q'1 = 2 r -1, Q′0=0.
[0025] Through the above transformation, the range can be divided equally, and then a linear one-to-one correspondence from vector to analog quantity can be achieved. In addition, the invention does not directly send the validity detection matrix Q to the DCS current analog input card, but Q is deformed and converted into an analog signal q before sending, because the Q matrix is not an analog signal and cannot be directly sent through the AO module. After being converted into an analog signal q and then sent, the validity information can be directly sent using the existing AO module without adding other devices or modules, thereby improving the utilization rate of the device. If the Q matrix is sent directly, other physical modules are required to encode and decode the information; for example, if it is sent using a serial port or Ethernet, related modules must be added, which is not economical.
[0026] In the aforementioned validity detection method of the analog output channel of the power plant, 7z=x+y, that is, each validity channel is responsible for transmitting the validity data of 7 output channels or redundant channels (when it is greater than 7, the accuracy is poor and the resolution requirement cannot be met; when it is less than 7, the channel utilization is poor, and more validity channels should be added, that is, more AO modules should be added, and more channels should be opened on the AI board of the DCS), so that the resolution of the validity channel can be no less than 0.5% of the range of the analog output channel, that is, the resolution k≥(q′1-q′0)·0.5%. If the resolution K is less than the resolution of the AI board of the DCS (currently, the resolution of the AI board of most DCS is 0.5% of its range), the signal cannot be accurately identified, resulting in signal transmission errors and incorrect judgments on the validity of each channel.
[0027] In the present invention, each validity channel is responsible for transmitting the validity data of r output channels or redundant channels, rather than using one validity channel to transmit all output channels or redundant channels. Such allocation is mainly based on the consideration of signal resolution. After the signal of the validity channel is converted, the AO range is actually divided into 2^r-1 parts. The more channels each validity channel is responsible for, the larger r is, and the smaller the resolution is when the range is constant. However, the resolution of the AI card of the DCS is limited, and a balance needs to be found, that is, k≥(q′1-q′0)·0.5%. The balance can be found by the above method of the present invention.
[0028] The above-mentioned method for detecting the validity of the analog output channel of the power plant also includes: the controller sends a heartbeat packet that changes with time, which is used by the DCS system to detect whether the controller is working normally; the heartbeat packet is sent in each validity channel and the channel validity information is sent in a time-sharing manner (such as sending a heartbeat packet every 10 seconds, and sending channel validity information at other times).
[0029] The present invention also includes: when the DCS system determines that the output channel is abnormal, it switches to a normal redundant channel.
[0030] Compared with the prior art, by utilizing the validity detection system of the power plant analog output channel in the present invention, the real-time status of each analog output channel is notified to the controller and DCS, thereby shortening the troubleshooting time. In addition, the present invention also takes into account channel redundancy and realizes online switching when a channel fails. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 A schematic diagram of the overall connection mode of the hardware system for channel validity detection in the present invention;
[0032] Figure 2 It is a schematic diagram of the connection mode between the controller and multiple analog output modules and analog input modules in the present invention;
[0033] Figure 3 When both the analog output module and the analog input module are 4-20mA current analog output modules, the connection diagram of each channel is as follows;
[0034] Figure 4 When both the analog output module and the analog input module are 0-10V voltage analog output modules, the connection diagram of each channel is as follows;
[0035] Figure 5 This is a schematic diagram of the connection method of each channel when the analog output modules are all 4-20mA current analog output modules and the analog input modules are all 0-10V voltage analog output modules;
[0036] Figure 6 It is the overall architecture diagram of the software system in the present invention;
[0037] Figure 7 The present invention is a flow chart of a method for realizing effectiveness detection of analog output channels of a power plant using the system of the present invention.
[0038] Figure numerals: 1-controller host computer, 2-controller, 3-analog output module, 4-analog input module, 5-power supply.
[0039] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.
[0040] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention. DETAILED DESCRIPTION
[0041] Embodiment of the present invention: A system for detecting the effectiveness of an analog output channel of a power plant, such as Figure 1 As shown, it includes: a controller host computer 1, a controller 2, an analog output module 3 (i.e., an AO module), an analog input module 4 (i.e., an AI module) and a power supply 5. The controller 2, the analog output module 3, and the analog input module 4 are respectively connected to the power supply 5 through a power line, the controller host computer 1 is connected to the controller 2 through a network cable, the analog output module 3 and the analog input module 4 are respectively connected to the controller 2 through an RS-485 or RS-232 serial port, and the analog output module 3 and the analog input module 4 are connected through hard wiring.
[0042] In the above-mentioned power plant analog output channel validity detection system, if Figure 2As shown, the number of output channels of each analog output module 3 is n, and the number of analog output modules 3 is a; the number of output channels of each analog input module 4 is m, and the number of analog input modules 4 is b; the channels between the analog output module 3 and the DCS current analog input card include: x output channels, y redundant channels and z validity channels, which meet the following requirements:
[0043] x+y+z=an=bm;
[0044] That is, the total number of channels in the system is an, and each output channel and redundant channel between the analog output module 3 and the DCS current analog input card needs to be fed back to the analog input module 4.
[0045] "Output channel" refers specifically to the main channel for outputting analog signals, which will work continuously and send signals to DCS under normal circumstances; "redundant channel" is when the "output channel" fails, hot switching is achieved through the system, that is, switching without interference and interval; validity detection is not the ultimate goal, and ensuring the reliability of the system through hot switching of redundant channels is an important role of this system;
[0046] The "validity channel" is used to detect the validity of the "output channel" and "redundant channel", but the validity of the "validity channel" itself does not need to be detected, that is, there is no need to feed back the channel to the AI module. There are two reasons: 1. If this type of channel fails, the system fails. Even if the validity information of the remaining channels is detected, it cannot be transmitted and is meaningless. In this case, the heartbeat packet cannot be transmitted. According to the DCS prompt information, you can directly repair the "validity channel"; 2. There are very few channels of this type, and maintenance is also very convenient.
[0047] The above system is used to detect the effectiveness of the power plant analog output channel, such as Figure 1As shown, the analog output module 3 is connected to the current analog input card of the DCS system through hard wiring; the controller host computer 1 issues a control instruction, and the controller 2 converts the control instruction into an RS-485 or RS-232 signal and sends it to the analog output module 3. The analog output module 3 outputs the analog quantity to the DCS current analog input card, and at the same time feeds back the signal of each output channel and redundant channel to the controller 2 through the analog input module 4. The controller 2 compares the control instruction issued by the controller host computer 1 with the instruction fed back by the analog input module 4. If the difference between the two is less than a certain value, Threshold (such as 5% of the output signal of the analog output module 3), the validity status of the corresponding channel is set to normal / available, otherwise the validity status of the corresponding channel is set to abnormal / unavailable; after the controller 2 detects the validity of all output channels and redundant channels between the analog output module 3 and the DCS current analog input card, the validity status information of the output channels and redundant channels is sent to the DCS current analog input card through the analog output module 3, so that the DCS system can determine the validity status of each output channel and redundant channel, and then determine whether hot switching of redundant channels is required.
[0048] In the present invention, according to the different types of analog output modules 3 and analog input modules 4, the connection modes between the analog output module 3 and the DCS current analog input card and between the analog output module 3 and the analog input module 4 can be divided into the following three types:
[0049] (a) If Figure 3 As shown (this figure only identifies the first channel, and the connection method of the remaining channels is the same as that of the first channel), if the analog output module 3 is a 4-20mA current analog output module, and the analog input module 4 is a 4-20mA current analog input module, then for each channel, the positive pole of the analog output module 3 is connected to the positive pole of the analog input module 4, the negative pole of the analog input module 4 is connected to the positive pole of the DCS current analog input card, and the negative pole of the DCS current analog input card is connected to the negative pole of the analog output module 3 (that is, for each channel, it is necessary to ensure the series connection from the analog output module 3 to the analog input module 4 and then to the DCS current analog input card);
[0050] (ii) Figure 4As shown (this figure only identifies the first channel, and the connection method of the remaining channels is the same as that of the first channel), if the analog output module 3 is a 0-10V voltage analog output module, and the analog input module 4 is a 0-10V voltage analog input module, then for each channel, the positive pole of the analog output module 3 is connected to the positive pole of the analog input module 4 and the positive pole of the DCS current analog input card, and the negative pole of the analog output module 3 is respectively connected to the negative pole of the analog input module 4 and the negative pole of the DCS current analog input card, wherein a 500Ω resistor is also connected in series between the positive pole of the analog output module 3 and the positive pole of the DCS current analog input card (that is, for each channel, it is necessary to ensure the parallel connection method from the analog output module 3 to the analog input module 4 and then to the DCS current analog input card (pre-series 500Ω resistor));
[0051] (III) Figure 5 As shown (this figure only identifies the first channel, and the connection method of the remaining channels is the same as that of the first channel), if the analog output module 3 is a 4-20mA current analog output module, and the analog input module 4 is a 0-10V voltage analog input module, then for each channel, the positive pole of the analog output module 3 is connected to the positive pole of the analog input module 4, a 500Ω resistor is connected in parallel between the positive and negative poles of the analog input module 4, the negative pole of the analog input module 4 is connected to the positive pole of the DCS current analog input card, and the negative pole of the DCS current analog input card is connected to the negative pole of the analog output module 3 (that is, for each channel, it is necessary to ensure that the analog output module 3 is connected to the analog input module 4 in parallel with the resistor and then to the DCS current analog input card in series).
[0052] In the above method, each validity channel can be responsible for transmitting the validity data of r output channels or redundant channels; the availability of the i-th channel can be represented by a 0 / 1 Boolean value t i , t i =0 means the channel is abnormal / unavailable, t i =1 indicates that the channel is normal / available; then the validity detection matrix Q is a 1-dimensional Boolean vector with a length of r, that is:
[0053] Q=[t1,t2,...,t r ]
[0054] When r channels are normal, Q1=[1, 1, ..., 1] r ; When all r channels are abnormal, Q0=[0,0,...,0] r ; Q1 corresponds to the channel output upper limit of the validity channel; Q0 corresponds to the channel output lower limit of the validity channel.
[0055] Before the validity status information of the output channel or redundant channel is sent to the DCS current analog input card through the analog output module 3, the Boolean vector Q of the validity of the output channel or redundant channel can be first converted into a shaped Q', and then converted into an analog signal q; after the DCS current analog input card receives the analog signal q, it performs an inverse operation to convert it into a Boolean vector Q, thereby determining the validity status of each output channel and redundant channel;
[0056] The transformation relationship between Q and Q' is:
[0057]
[0058] Among them, the upper limit of Q' is Q'1 = 2 r -1, corresponding to Q1 = [1, 1, ..., 1] r ; The lower limit of Q′ is Q′0=0, corresponding to Q0=[0, 0, ..., 0] r ;
[0059] The transformation relationship between Q′ and q is:
[0060]
[0061] Among them, q'1 is the output upper limit of the analog signal, q'0 is the output lower limit of the analog signal; Q'1 = 2 r -1, Q′0=0.
[0062] In specific implementation, the Q matrix can also be sent directly, but other physical modules are required to encode and decode the information; for example, if it is sent via a serial port or Ethernet, related modules must be added, which is not economical.
[0063] In particular, 7z=x+y, that is, each validity channel is responsible for transmitting validity data of 7 output channels or redundant channels.
[0064] In order to detect whether the controller is working normally and whether the validity channel is normal (if the DCS cannot receive the heartbeat packet, it means that the validity channel is broken), the present invention may also include: the controller 2 sends a heartbeat packet that changes with time, which is used by the DCS system to detect whether the controller 2 is working normally; the heartbeat packet is sent in each validity channel and the channel validity information in a time-sharing manner (such as sending a heartbeat packet every 10 seconds, and sending channel validity information at other times).
[0065] The present invention may further include: when the DCS system determines that the output channel is abnormal, switching to a normal redundant channel.
[0066] Experimental example: In a control system optimization and transformation project of a power plant, the newly added controller is generally connected to the DCS through hard wiring; that is, the analog output (AO) module of the newly added controller is connected to the analog input (AI) card of the DCS. If only the traditional hard wiring method is used, although it has the characteristics of unified management, centralized layout, fast response, and easy maintenance, this method cannot inform the controller and DCS of the real-time status of the channel; when a fault occurs, such as a channel disconnection, manual troubleshooting and elimination are required, which takes a long time.
[0067] In order to overcome the above problems, the control system optimization and transformation project of the power plant can adopt the analog output channel validity detection system and method of the present invention to inform the controller and DCS of the real-time status of each analog output channel, thereby shortening the troubleshooting time, while taking into account channel redundancy, so as to achieve online switching when a channel fails.
[0068] When the analog output channel validity detection system of the present invention is specifically applied, Figure 7 As shown, the following steps are included:
[0069] Step 1: Install and deploy hardware system equipment;
[0070] Step 2: Complete the power wiring of each device in the hardware system;
[0071] Step 3: Complete the communication line wiring between the controller and the analog output module 3 (i.e., AO module) and the analog input module 4 (i.e., AI module);
[0072] Step 4: According to the types of AO modules and AI modules, complete the hard wiring of AO, AI modules and AI cards of DCS;
[0073] Step 5: Deploy the controller configuration software on the controller;
[0074] Step 6: Deploy the DCS channel selection logic configuration software in the DCS distributed processing unit (DPU);
[0075] Step 7: Run the controller system and DCS.
[0076] The architecture diagram of the entire system is as follows: Figure 6 shown.
[0077] Specifically, the effectiveness detection system of the power plant analog output channel is as follows: Figure 1As shown, it includes: a controller host computer 1, a controller 2, an analog output module 3 (i.e., an AO module), an analog input module 4 (i.e., an AI module) and a power supply 5. The controller 2, the analog output module 3, and the analog input module 4 are respectively connected to the power supply 5 through a power line, the controller host computer 1 is connected to the controller 2 through a network cable, the analog output module 3 and the analog input module 4 are respectively connected to the controller 2 through an RS-485 or RS-232 serial port, and the analog output module 3 and the analog input module 4 are connected through hard wiring.
[0078] Assume that there are 8 analog output modules 3 (i.e., AO modules), each with 4 output channels; 8 analog input modules 4 (i.e., AI modules), each with 4 output channels, for a total of 32 channels. Assume that there are 14 analog signal output channels, 14 redundant channels, and 4 validity channels.
[0079] Assume that the 8 AO modules are all 4-20mA current analog output modules, and the 8 AI modules are all 0-10V voltage analog input modules. Then for each channel, it is necessary to ensure the series connection from the AO module to the AI module, with a resistor in parallel, and then to the DCS analog input card. That is, for each channel, the positive pole of the AO module is connected to the positive pole of the AI module, a 500Ω resistor is connected in parallel between the positive and negative poles of the AI module, the negative pole of the AI module is connected to the positive pole of the DCS analog input card, and the negative pole of the DCS analog input card is connected to the negative pole of the AO module. All wiring is hard-wired; the connection method of each channel is as follows: Figure 5 shown.
[0080] For the validity channel, the following validity detection protocol is used: each validity channel is responsible for transmitting the validity data of 7 output channels or redundant channels; the 4 validity channels detect output channels 1 to 7, output channels 8 to 14, redundant channels 1 to 7, and redundant channels 8 to 14 in turn. 0 / 1 Boolean indicates the availability of the i-th channel t i , t i =0 means the channel is abnormal / unavailable, t i =1 indicates that the channel is normal / available; the validity detection matrix Q is a 1-dimensional Boolean vector with a length of 7. That is: Q = [t1, t2, ..., t7]. When outputting, the Boolean vector Q is first converted into an integer Q', and then converted into an analog signal q.
[0081] The transformation relationship between Q and Q' is:
[0082]
[0083] The upper limit of Q' is Q'1=2 7 -1=127, corresponding to Q1=[1,1,...,1]7 ; The lower limit of Q′ is Q′0=0, corresponding to Q0=[0, 0, ..., 0] 7 .
[0084] The transformation relationship between Q′ and q is:
[0085]
[0086] q'1 is the output upper limit of the analog signal of the AO module, 20mA, q'0 is the output lower limit of the analog signal of the AO module, 4mA; Q'1 = 127, Q'0 = 0.
[0087] The resolution of the validity channel is k = 0.126 mA.
[0088] All electronic instruments have detection limits. When two analog values are too close, the DCS AI card cannot distinguish them. For example, the DCS AI card can distinguish 4mA and 4.126mA, but cannot distinguish 4mA and 4.0126mA. At this time, the DCS must be accurately informed of the resolution q value and then Q can be restored. Only then can the DCS accurately know the effectiveness of each output channel or redundant channel.
[0089] The software system of the present invention includes controller configuration and DCS channel selection logic configuration. The overall architecture of the software system is shown in FIG. Figure 6 The controller configuration includes a control instruction issuing module, an output validity detection module and a heartbeat packet sending module; the DCS channel selection logic configuration includes a channel validity judgment module and a redundant hot switching module.
[0090] The control instruction sending module in the controller configuration sends the control instruction given by the controller host computer 1 to the AO module, for example, generally in the RS-485 communication format; the output validity detection module compares the control instruction with the feedback instruction of the AI module. If the difference between the two is less than a certain threshold, such as 5% of the control instruction output by the AO module, the t of the corresponding channel is set. i =1, otherwise t i=0; (For example, if the analog output module 3 is a 4-20mA current analog output module, the analog input module 4 is a 4-20mA current analog input module, and the instruction issued by the controller host computer 1 is 50%, the corresponding value output by the AO module (i.e., the analog output module 3) is 12mA (i.e., 12mA corresponds to 50% of the range of 4-20mA); in actual operation, the threshold range is first calculated, and the threshold range corresponding to 50% is 45%-55%; then it is determined whether the instruction corresponding to the feedback measurement value of the AI module (i.e., the analog input module 4) is within the range. For example, when the feedback measured by the AI module is 12.4mA, the corresponding instruction is 52.5% of 4-20mA. Within the threshold range, the corresponding t i =1; if the feedback measured by the AI module is 10mA, the corresponding instruction is 37.5% of 4-20mA, which is not within the threshold range, then set the corresponding t i =0; Similarly, if the types of AO module and AI module are different, the process is similar. If the AO module (i.e., analog output module 3) is a 4-20mA current analog output module, the AI module (i.e., analog input module 4) is a 0-10V voltage analog input module, and the instruction issued by the controller host computer 1 is 50%, the corresponding value of the AO module output is 12mA, (i.e., 12mA corresponds to 50% of the range of 4-20mA); in actual operation, first calculate the threshold range, and the threshold range corresponding to 50% is 45%-55%; then determine whether the instruction corresponding to the feedback measurement value of the AI module is within the range. For example, the feedback value of the AI module is 5.25V at this time, and the corresponding instruction is 52.5% of 0-10V. Within this range, the corresponding t i =1; if the feedback value of the AI module is 3.75V, the corresponding instruction is 37.5% of 0~10V, which is not within the range, then set the corresponding t i =0) The heartbeat packet sending module is responsible for sending heartbeat packets that change with time, which are used for DCS to detect whether the controller is working normally; the heartbeat packet is sent in each validity channel and the channel validity information q in a time-sharing manner, such as sending a heartbeat packet every 10s, and sending channel validity information at other times.
[0091] The channel validity judgment module in the DCS channel selection logic configuration inversely converts the four channel validity signals q into four Boolean vectors Q, and then judges the validity status of each output channel and redundant channel; the redundant hot switching module hot switches the channel according to the channel validity status, that is, when the output channel is abnormal, it switches to the normal redundant channel.
Claims
1. A method for detecting the effectiveness of an analog output channel of a power plant, characterized in that: The analog output module (3) is connected to the current analog input card of the DCS system through hard wiring; the controller host computer (1) issues a control instruction, the controller (2) converts the control instruction into an RS-485 or RS-232 signal, and sends it to the analog output module (3), the analog output module (3) outputs the analog quantity to the DCS current analog input card, and at the same time feeds back the signal of each output channel and redundant channel to the controller (2) through the analog input module (4), and the controller (2) combines the control instruction issued by the controller host computer (1) with the instruction fed back by the analog input module (4) A comparison is performed; if the difference between the two is less than a threshold value, the validity state of the corresponding channel is set to normal / available; otherwise, the validity state of the corresponding channel is set to abnormal / unavailable; after the controller (2) detects the validity of all output channels and redundant channels between the analog output module (3) and the DCS current analog input card, the validity state information of the output channels and redundant channels is sent to the DCS current analog input card through the analog output module (3), so that the DCS system can determine the validity state of each output channel and redundant channel, and then determine whether hot switching of the redundant channels is required; According to different types of analog output modules (3) and analog input modules (4), the connection modes between the analog output modules (3) and the DCS current analog input card and between the analog output modules (3) and the analog input modules (4) are divided into the following three types: (i) If the analog output module (3) is a 4-20 mA current analog output module and the analog input module (4) is a 4-20 mA current analog input module, then for each channel, the positive pole of the analog output module (3) is connected to the positive pole of the analog input module (4), the negative pole of the analog input module (4) is connected to the positive pole of the DCS current analog input card, and the negative pole of the DCS current analog input card is connected to the negative pole of the analog output module (3); (ii) If the analog output module (3) is a 0-10V voltage analog output module and the analog input module (4) is a 0-10V voltage analog input module, then for each channel, the positive pole of the analog output module (3) is connected to the positive pole of the analog input module (4) and the positive pole of the DCS current analog input card, and the negative pole of the analog output module (3) is connected to the negative pole of the analog input module (4) and the negative pole of the DCS current analog input card, respectively, wherein a 500Ω resistor is also connected in series between the positive pole of the analog output module (3) and the positive pole of the DCS current analog input card; (iii) If the analog output module (3) is a 4-20 mA current analog output module and the analog input module (4) is a 0-10 V voltage analog input module, then for each channel, the positive pole of the analog output module (3) is connected to the positive pole of the analog input module (4), a 500 Ω resistor is connected in parallel between the positive and negative poles of the analog input module (4), the negative pole of the analog input module (4) is connected to the positive pole of the DCS current analog input card, and the negative pole of the DCS current analog input card is connected to the negative pole of the analog output module (3); Each validity channel is responsible for transmitting the validity data of r output channels or redundant channels; it represents the availability of the i-th channel as a 0 / 1 Boolean value t i , t i =0 means the channel is abnormal / unavailable, t i =1 indicates that the channel is normal / available; then the validity detection matrix Q is a 1-dimensional Boolean vector with a length of r, that is: Q=[t1,t2,...,t r ] When r channels are normal, Q1=[1, 1, ..., 1] r ; When all r channels are abnormal, Q0=[0,0,...,0] r ; Q1 corresponds to the upper limit of the channel output of the validity channel; Q0 corresponds to the lower limit of the channel output of the validity channel; Before sending the validity status information of the output channel or redundant channel to the DCS current analog input card through the analog output module (3), the Boolean vector Q of the validity of the output channel or redundant channel is first converted into a shaped Q', and then converted into an analog signal q; after the DCS current analog input card receives the analog signal q, it performs an inverse operation to convert it into the Boolean vector Q, thereby determining the validity status of each output channel and redundant channel; The transformation relationship between Q and Q' is: Among them, the upper limit of Q' is Q'1 = 2 r -1, corresponding to Q1 = [1, 1, ..., 1] r ; The lower limit of Q′ is Q′0=0, corresponding to Q0=[0, 0, ..., 0] r ; The transformation relationship between Q′ and q is: Among them, q'1 is the output upper limit of the analog signal, q'0 is the output lower limit of the analog signal; Q'1 = 2 r -1, Q′0=0.
2. The method for detecting the effectiveness of the analog output channel of a power plant according to claim 1, characterized in that: 7z=x+y, where x is the number of output channels, y is the number of redundant channels, and z is the number of validity channels, that is, each validity channel is responsible for transmitting validity data of 7 output channels and redundant channels.
3. The method for detecting the effectiveness of the analog output channel of a power plant according to claim 1, characterized in that: Also includes: The controller (2) sends a heartbeat packet that changes with time, which is used by the DCS system to detect whether the controller (2) is working normally; The heartbeat packet is sent in each validity channel in a time-sharing manner with the channel validity information.
4. The method for detecting the effectiveness of the analog output channel of a power plant according to claim 1, characterized in that: Also includes: When the DCS system determines that the output channel is abnormal, it switches to the normal redundant channel.
