Method for implementing interface between advanced control station and distributed processing control unit
By designing an interface implementation method between advanced control station and distributed processing control unit in the DCS system, the problems of low execution efficiency of complex algorithms and operating risks in the process of algorithm switching are solved, and the algorithm switching and system without disturbance are realized Security ensures the stable operation of the system when using advanced algorithms.
Patent Information
- Application Number
- CN202110752553.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-02
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2041-07-02
AI Technical Summary
The existing DCS control system is inefficient in execution and increases load when facing complex algorithms, resulting in operational risks. In addition, advanced control algorithms and conventional algorithms have the problem of algorithm docking and switching when the system is running, so it is necessary to design a non-disturbance switching method. To ensure the safety and stability of the control system.
An interface implementation method between an advanced control station and a distributed processing control unit is designed to ensure the safe operation of the system when using advanced algorithms through communication diagnosis, algorithm switching and disturbance-free switching. Specific steps include communication diagnosis, algorithm switching and disturbance-free switching of output commands, using pulse and ramp wave type communication diagnostic signals for bidirectional communication status judgment, and providing alarms and protection measures in the event of communication failure to ensure the synchronization of system data.
It realizes the safe and effective access of advanced control algorithms to the DCS system, avoids system disturbances during algorithm switching, ensures the safe operation of the system, ensures that the DCS system is still controllable after failure, and improves the automatic control effect of the control system.
Smart Images

Figure CN113359423B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automation control technology, and in particular to a method for realizing an interface between an advanced control station and a distributed processing control unit. Background Art
[0002] Distributed Processing Control Unit: DPU is a controller used for algorithm execution in a distributed control system (DCS) with control functions such as data calculation, storage, monitoring, alarm, and communication.
[0003] Advanced Control Station: A server or workstation that runs Advanced Control (APC). The Advanced Control Station obtains operating signals through communication, calculates through advanced control algorithms, and outputs control signals.
[0004] Conventional process industries use DCS to achieve plant-wide control. The output of the advanced control station must be output to the distributed processing control unit of the DCS through communication, and the loop is adjusted through the output card of the DCS. The control loop generally uses PID control, and the control configuration mostly uses FBD (Function Block Diagram) language configuration.
[0005] As factories have higher and higher requirements for automation levels, the DCS control system algorithm is relatively simple, and the complex algorithm configuration is relatively complex to implement, with low execution efficiency, and will cause a significant increase in DPU load, resulting in operational risks. Therefore, advanced control algorithms are introduced by means of advanced control stations. There is a problem of algorithm docking and switching between advanced control algorithms and DCS conventional algorithms when the system is running. In order to ensure the safety and stability of the control system, it is necessary to design a disturbance-free method for switching. To this end, the present invention designs a set of safe and effective disturbance-free switching interface methods. Summary of the invention
[0006] The purpose of the present invention is to provide a method for implementing an interface between an advanced control station and a distributed processing control unit, so as to achieve safe and effective access of advanced control algorithms to a DCS system and ensure safe operation of the system when using advanced algorithms.
[0007] In order to achieve the above object, the present invention adopts the following technical solutions:
[0008] The method for implementing the interface between the advanced control station and the distributed processing control unit comprises the following steps:
[0009] (1) Communication diagnosis between advanced control station and distributed processing control unit
[0010] Establish data communication between the advanced control station and the distributed processing control unit, and perform two-way communication status judgment. The status of data transmission is judged by real-time monitoring of the status of the communication code; the advanced control station and the distributed processing control unit each judge the change of the received signal, and perform a delay confirmation for a period of time. If the signal delay confirmation does not change, the communication fault flag is set, and the algorithms on both sides perform corresponding processing. If the received communication signal is normal, it means that the communication is normal, and the next step of algorithm switching is performed;
[0011] (2) Algorithm switching
[0012] Free switching between DCS side loop control algorithm and advanced control station algorithm;
[0013] (3) Disturbance-free switching of output instructions
[0014] During DCS algorithm control, the output instruction of the advanced control station tracks the output value of the DCS side loop. After the advanced control station algorithm is put into use, the output channel of the DCS side selects the output value of the advanced control station, and the calculated output of the DCS tracks the value of the advanced control station, realizing disturbance-free switching of instructions.
[0015] Furthermore, the communication diagnosis between the advanced control station and the distributed processing control unit is implemented using two types of communication codes;
[0016] Judgment method 1: Communication diagnostic signal-pulse type
[0017] A 0 / 1 pulse signal is generated in the logic of the advanced control station and the distributed processing control unit and sent to each other. The advanced control station and the distributed processing control unit each judge the change of the received signal and perform a delay confirmation for a period of time. The judgment method is to take the OR relationship between the pulse signal delay opening and the pulse signal delay opening after inversion. If there is no change in the signal delay confirmation, the communication fault flag is set, and the algorithms on both sides perform corresponding processing; if the received communication signal is normal, it means that the communication is normal;
[0018] Judgment method 2: Communication diagnostic signal-slope type
[0019] A continuously changing natural number is generated in the logic of the advanced control station and the distributed processing control unit, and it is continuously cycled. The advanced control station and the distributed processing control unit each judge the change of the received signal and perform a delay confirmation for a period of time. The current value of the ramp signal is subtracted from the delayed output value. If the difference is 0, the communication is interrupted. If there is no change in the signal delay confirmation, the communication fault flag is set, and the algorithms on both sides perform corresponding processing; if the received communication signal is normal, it means that the communication is normal and the algorithm can be switched.
[0020] Furthermore, when conducting communication diagnosis between the advanced control station and the distributed processing control unit, communication status display and alarm are set on both the advanced control station and the DCS side. After a communication break or long delay occurs, the communication fault is detected, and an alarm message and an indication status change are given to remind the monitoring personnel to deal with the fault in time; at the same time, the program takes corresponding actions, and the advanced control station side exits the automatic operation in time after the communication failure, starts to track the data on the DCS side, and synchronizes the DCS data after the communication is normal, to ensure the operation safety when the control algorithm switches to the advanced control station again; after the DCS side detects the communication failure, the fault program exits the advanced control station algorithm control, switches back to the control on the DCS side, and resets the advanced control station algorithm selection button to prevent switching to the advanced control station control again without the confirmation of the monitoring personnel after the communication is restored, causing operation safety risks.
[0021] Furthermore, the algorithm switching includes four switching modes;
[0022] Switching method 1: Add an advanced control algorithm switch button on the DCS side. This button is available when the communication is normal and the control loop on the DCS side is switched to automatic. The loop control algorithm on the DCS side switches from manual to automatic, and then switches to the advanced control station algorithm. After switching to manual, both the DCS side and the advanced control station are manual and the advanced control station automatic switch button is reset. The advanced control station button can switch the advanced control station to automatic when the DCS side is automatic.
[0023] Switching method 2: Add an advanced control station algorithm selection button, which is available when the communication is normal; first, activate the advanced control station algorithm selection button, and then directly switch the manual and automatic control of the advanced control station through the manual and automatic buttons of the DCS logic loop. After the advanced control station control mode is cut off, the manual and automatic control are the manual automatic switching of the DCS side algorithm. If the advanced control algorithm mode is cut off during the automatic operation of the advanced control, the loop is switched to the manual state;
[0024] Switching method three: Add an advanced control algorithm input button, which is available when the communication is normal. It directly switches to the advanced control station automatically through the original panel, and no longer uses the DCS automatic program;
[0025] Switching method four: Added manual and automatic switching buttons for advanced control algorithms, which are available when communication is normal; redefined manual and automatic switching buttons, and directly controlled the manual and automatic switching of advanced control station algorithms through buttons.
[0026] Furthermore, two algorithm instructions are used to achieve disturbance-free switching of two modes of output instructions;
[0027] Switching method 1: The output of the advanced control station is given to the tracking port of the controller on the DCS side. When the advanced control station is automatic, the controller on the DCS side is switched to the tracking mode and the tracking value is given to the output channel;
[0028] Switching method 2: The output of the advanced control station and the output of the DCS side controller enter the command output channel through the selection method. The state of the selection switch determines which side's calculation result is used, and the selected input value channel corresponds to the DCS side calculation output and the advanced control station calculation output; when the advanced control station output value is selected, the value of the advanced control station is given to the command channel, and the output value of the DCS side tracks the command output channel.
[0029] Furthermore, the specific process of the switching mode 1 is as follows: for a DCS in which a handheld operator and a PID controller are separated, the tracking switch and the tracking value port on the handheld operator are selected; for a DCS in which a handheld operator and a PID controller are integrated, the tracking switch and the tracking value port of the PID are selected; the output of the advanced control station is connected to the tracking value port, and the tracking switch is controlled according to the state of the selected advanced control station output. When the algorithm selects the advanced control station output, the port turns on the tracking function, and the tracking value is transmitted to the output channel of the controller or the handheld operator. The corresponding module state is tracking, and the operation panel or the monitoring panel displays the output state of the advanced control station algorithm.
[0030] Furthermore, the communication diagnostic signal is sent bidirectionally between the advanced control station and the distributed processing control unit. The diagnostic signal sent by the advanced control station is used by the distributed processing control unit to detect whether the output instruction of the advanced control station is valid. When a fault occurs, the distributed processing control unit switches back to the DCS control algorithm. The diagnostic signal sent by the distributed processing control unit to the advanced control station is used by the advanced control station to detect whether the collected DCS side process data and switching instructions are current valid values. When a fault occurs, the advanced control station exits the corresponding calculation, prepares to track the DCS side data, and waits for the communication to be connected to refresh the data to keep it consistent with the DCS data.
[0031] Compared with the prior art, the present invention has the following technical effects:
[0032] The method of the algorithm switching interface of the advanced control station algorithm accessing the distributed processor unit of the present invention includes data communication judgment between the advanced control station and the distributed processing control unit. The communication process requires both parties to judge the communication status, and both parties must be able to execute corresponding protection measures when a failure occurs, and ensure system data synchronization after restoring communication. Mutual disturbance-free switching is achieved during the loop control process to avoid system disturbance during the advanced algorithm switching process; avoid system operation safety risks after communication failure; and ensure that the original program on the DCS side is still effective and controllable after the advanced control station fails.
[0033] Under normal communication conditions, during the DCS system control process, the advanced control station system tracks the process value, set value and output instruction of the DCS control loop. When the algorithm switches to the advanced control station control, the advanced control station continues to calculate and adjust the output based on the previous control instructions, while the DCS algorithm tracks the instructions of the advanced control station to achieve disturbance-free switching.
[0034] This method retains the original algorithm of the DCS system, and does not affect the safe and continuous operation of the system even after a failure of the advanced control station. The present invention is applied to the field of automatic control, and can achieve disturbance-free output switching between different algorithms. The DCS algorithm can be replaced and executed by the algorithm of the advanced control station, which is conducive to improving the automatic control effect of the control system. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 A flow chart of the interface implementation method between the advanced control station and the distributed processing control unit is given.
[0036] Figure 2a Pulse communication code waveform for communication judgment
[0037] Figure 2b The oblique wave communication code waveform for communication judgment
[0038] Figure 3a The first logical relationship diagram for the algorithm switching process
[0039] Figure 3b The second logical relationship diagram for the algorithm switching process
[0040] Figure 3c The third logical relationship diagram for the algorithm switching process
[0041] Figure 3d The fourth logical relationship diagram for the algorithm switching process
[0042] Figure 4a Schematic diagram of how to track port switching for algorithm output values
[0043] Figure 4b Schematic diagram of how to select output switching mode for algorithm output value data DETAILED DESCRIPTION
[0044] The specific contents of the present invention are further explained in detail below in conjunction with embodiments.
[0045] like Figure 1 As shown, the method for implementing the interface between the advanced control station and the distributed processing control unit of the present invention is based on the use of a DCS system platform, and the method process specifically includes three parts: communication diagnosis between the advanced control station and the DPU, algorithm conversion, and output instruction docking.
[0046] Determination of the communication status between the advanced control station and the distributed processing control unit:
[0047] The communication diagnostic signal is sent bidirectionally between the advanced control station and the DPU. The diagnostic signal sent by the advanced control station is used by the DPU to detect whether the output instructions of the advanced control station are valid. When a fault occurs, the DPU must switch back to the DCS control algorithm to ensure safe and continuous operation of the system. The diagnostic signal sent by the DPU to the advanced control station is used by the advanced control station to detect whether the collected DCS side process data and switching instructions are current valid values. When a fault occurs, the advanced control station must exit the corresponding calculation, prepare to track the DCS side data, and wait for the communication to be connected before refreshing the data to keep it consistent with the DCS data.
[0048] Reference Figure 2a and Figure 2b As shown, for this two-way communication detection and judgment, two types of communication signal judgment methods are designed: one is a communication signal judgment method of mutual pulse type; the other is a communication signal judgment method of mutual oblique wave type; when the other party receives the communication signal, the status is diagnosed, and the corresponding instructions are executed in different states.
[0049] Judgment method 1: Communication diagnostic signal-pulse type
[0050] Signal generation: Generate 0 / 1 pulse signals in the advanced control station and DPU unit logic and send them to each other. The pulse width is recommended to be set to 1s (the normal refresh cycle of the DCS screen is 1s). It can also be set according to the DPU program execution cycle.
[0051] Communication diagnosis method: The advanced control station and DPU each judge the change of the received signal and perform a delay confirmation for a period of time. The length of time is set according to the actual situation on site. If the time is set too short, it will cause false alarms due to short-term network jams and frequent cutting off of the advanced control station. If the time is too long, the system will not adjust the control in time, resulting in operational risks. It is generally recommended to set 3-5 times the pulse width time. If there is no change in the signal delay confirmation, the communication fault flag is set, and the algorithms on both sides perform corresponding processing. If the received communication signal is normal, it means that the communication is normal and the algorithm can be switched.
[0052] Implementation method: The pulse signal delayed opening and the pulse signal delayed opening after inversion are ORed.
[0053] The specific implementation is as follows:
[0054] The pulse signal can be generated directly through the existing signal generator module in the system or through a timer to generate a signal with a certain pulse width. After receiving the signal, the other party will invert it and then delay the opening and the delayed opening of the original signal to take the OR. The result of the OR is 0, indicating that the communication is normal, and the result of the OR is 1, which means that the communication is interrupted. Note that the execution cycle of the judgment program must be less than the pulse width to prevent the signal from refreshing to the flip value; the delay opening time setting must be greater than the pulse width and an odd multiple, 3-5 times is recommended.
[0055] Judgment method 2: Communication diagnostic signal-slope type
[0056] Signal generation: Generate a continuously changing natural number (customizable range depending on the situation) in the advanced control station and DPU unit logic, with a change period of 1s and continuous circulation.
[0057] Communication diagnosis: The advanced control station and DPU each judge the change of the received signal and confirm it with a delay for a period of time. The length of time is set according to the actual situation on site. If the time is set too short, it will cause false alarms due to short-term network jams and frequent removal of the advanced control station. If the time is too long, the system will not adjust the control in time, resulting in operational risks. It is generally recommended to set a delay of 3-5s. If there is no change in the signal delay confirmation, the communication fault flag is set, and the algorithms on both sides perform corresponding processing. If the received communication signal is normal, it means that the communication is normal and the algorithm can be switched.
[0058] Implementation method:
[0059] 1) Determine the rate of change of the ramp signal. If the rate is 0, the communication is interrupted.
[0060] 2) Subtract the current value of the ramp signal from the delayed output value. If the difference is 0, the communication is interrupted.
[0061] Communication status display and alarm are set on both the advanced control station and the DCS side. After the communication is disconnected or delayed for a long time, the communication judgement detects the fault, gives the alarm information and the indication status change of the human-machine interface, and reminds the monitoring personnel to deal with the fault in time. At the same time, the program must also make corresponding protection actions. After the communication failure, the advanced control station side must exit the automatic in time, start tracking the data on the DCS side, and synchronize the DCS data after the communication is normal to ensure the operation safety when the control algorithm switches to the advanced control station again. After the DCS side detects the communication failure, the fault program must exit the advanced control station algorithm control in time, switch back to the control on the DCS side, and reset the advanced control station algorithm selection button to prevent the communication from being restored and switching to the advanced control station control again without the confirmation of the monitoring personnel, causing operation safety risks.
[0062] The specific implementation is:
[0063] The ramp signal is generated by the system's own signal generator or by periodic variable self-increment reset. After receiving the signal, the other party determines its rate of change. If the rate of change is 0 within a period of time, the communication is interrupted. If the rate of change is not 0, the communication is normal; or the communication signal is delayed and output, and then the difference is made with the original signal. If the difference is 0, it means that the communication is interrupted. If the difference is not 0, the communication is normal.
[0064] When a communication failure occurs, the DCS side cuts off the advanced control station algorithm, switches to the DCS side control, and gives an alarm prompt and communication status indication change, the panel loop status mark corresponding status. The advanced control station should switch to tracking DCS data status and be ready for recalculation.
[0065] Since the advanced control station applies the algorithm to the DCS system by mounting, it is necessary to establish communication with the DPU. The advanced algorithm can only be switched when the communication is normal and the data transmission is correct. Otherwise, data transmission cannot be performed and only the conventional algorithm of the DCS system can be used. Therefore, during the operation of the system, the communication status between the advanced control station and the DPU is crucial and the communication status must be judged. When a communication failure occurs, the advanced control station will give a fault alarm and return to the state of tracking the DCS side data. The DCS side will cut off the advanced control algorithm and return to the DCS algorithm control, reset the switch button, and give an alarm message.
[0066] The present invention designs four algorithm switching modes to realize the selection interface between the advanced control station and the DPU algorithm.
[0067] Reference Figure 3a As shown, the first conversion process is: DCS manual ←→ DCS automatic ←→ advanced control station automatic. A new advanced control algorithm switch button is added on the DCS side. This button is available after the communication is normal and the DCS side control loop is switched to automatic. The DCS side loop control algorithm switches from manual to automatic, and then switches to the advanced control station algorithm. Pay attention to the DCS automatic control during the switching interval. The DCS automatic parameters need to be debugged to prevent the switching process from being out of adjustment. After switching to manual, both the DCS side and the advanced control station are manual and the advanced control station automatic switch button is reset. The advanced control station button can switch the advanced control station to automatic separately when the DCS side is automatic.
[0068] The specific process is: use the manual and automatic buttons of the original DCS and add an advanced control station selection button. This optimized selection button can only be used when the DCS is in automatic mode and the communication is normal, and it will be reset to the cut-off state after the DCS side switches to manual mode or communication fails.
[0069] Advantages and disadvantages: The advantage is that the original DCS automatic program is retained and available, and the DCS side automatic and advanced control station automatic can be directly converted without switching to manual. The disadvantage is that each time the manual is switched and then the advanced control station is switched to automatic, it needs to go through the DCS automatic.
[0070] Reference Figure 3b As shown, the second method process is: ↙↗DCS automatic DCS manual ↖↘ advanced control station automatic, a new advanced control station algorithm selection button is added, which is available when the communication is normal. First, the advanced control station algorithm selection button is activated, and then the manual and automatic control of the advanced control station are directly switched through the manual and automatic buttons of the DCS logic loop. After the advanced control station control mode is cut off, the manual and automatic control are the manual automatic switching on the DCS side. The advanced control algorithm mode is cut off during the advanced control automatic process, and the loop is switched to the manual state.
[0071] The specific process is: set the advanced control station algorithm selection switch. When the communication is normal, first use this button to select which automatic control algorithm to use. If the DCS side is selected, the manual and automatic state of the hand operator indicates the manual and automatic state of the DCS algorithm; if the advanced control station side is selected, the manual and automatic state of the hand operator indicates the manual and automatic state of the advanced control station. When a communication failure occurs, the algorithm selection button resets to the DCS side algorithm.
[0072] Advantages and disadvantages: The advantage is that the original DCS automatic program is retained and available. You only need to select the algorithm to use once, and then you can put it into advanced control station control at once. The disadvantage is that the DCS side automatic and advanced control station automatic cannot be directly converted. You need to switch to manual state first, and then re-select the algorithm before putting it into control.
[0073] Reference Figure 3c As shown, the third method process is: DCS manual ←→ advanced control station automatic, a new advanced control algorithm input button is added, which is available when the communication is normal. The advanced control station automatic is directly switched through the original panel, and the DCS automatic program is not used.
[0074] The specific process is: add an advanced control station automatic button to replace the DCS automatic button, and directly switch between manual and advanced control station algorithms when communication is normal. After communication is interrupted, the advanced control station automatic button is reset.
[0075] Advantages and disadvantages: The advantage is that it reduces the switching steps. The disadvantage is that when the advanced control station fails, it can only be controlled manually and DCS automatic control cannot be used.
[0076] Reference Figure 3dAs shown, the fourth method process is: advanced control station manual ←→ advanced control station automatic, and a new advanced control algorithm manual and automatic switching button is added, which can be used when the communication is normal. The original panel and logic, hand operator, etc. are no longer used, and the manual and automatic switching buttons are redefined. The advanced control station algorithm manual and automatic are directly controlled by buttons.
[0077] The specific process is: add the manual and automatic buttons of the advanced control station again, completely separate them from the manual and automatic buttons of the DCS, and perform manual and automatic switching operations independently. After the communication is interrupted, switch to manual control on the DCS side.
[0078] Advantages and disadvantages: The advantage is that it breaks away from the logic and interface constraints of the original DCS, redesigns the operation interface, and no longer uses the original algorithm on the DCS side; the disadvantage is that the operation interface of the loop needs to be redesigned, the workload of screen changes is very large, there are more auxiliary logics, and the operation interface and habits of the original system are changed.
[0079] When the communication is normal, the two loop control algorithms can be switched freely. When the loop control uses the DCS system control algorithm, the output command is calculated by the DCS algorithm, and the advanced control station algorithm needs to monitor and track the data on the DCS side; when the operator switches the algorithm to the advanced control station, the advanced control station algorithm must continue the DCS output command without disturbance to calculate and output, and the DCS algorithm must track the data on the advanced control station side; when the operator switches to the control algorithm on the DCS side again, the DCS can also continue the advanced control station output without disturbance, realizing the free switching of the two algorithms without disturbance.
[0080] Disturbance-free switching of output instructions:
[0081] The disturbance-free switching of output instructions is the most basic requirement for the switching between advanced control algorithms and DPU algorithms, and is the basic means to ensure safe operation. The switching idea is that the output instructions of the advanced control station track the output value of the DCS side loop when manually, and after the advanced control station algorithm is put into use, the output channel of the DCS side selects the output value of the advanced control station, and the calculated output of the DCS tracks the value of the advanced control station to achieve disturbance-free switching of instructions.
[0082] like Figure 4a As shown, the first method is to use the original tracking function of the algorithm controller on the DCS side to connect the output value of the advanced control station to the tracking value port of the algorithm block, and control the tracking switch port through the algorithm automatic and selection signal and communication status and status. When the output condition of the advanced control station is met, the tracking switch is turned on and the tracking value is output to the instruction channel of the device; when the tracking condition is not met, the controller normally outputs its own calculated value.
[0083] The output of the advanced control station can be given to the tracking port of the controller on the DCS side. When the advanced control station is automatic, the controller on the DCS side is switched to the tracking mode, and the tracking value is given to the output channel. The specific method is that for the DCS with separate handheld operator and PID controller, select the tracking switch and tracking value port on the handheld operator. For the DCS with integrated handheld operator and PID controller, select the tracking switch and tracking value port of the PID. The output of the advanced control station is connected to the tracking value port, and the tracking switch needs to be controlled according to the state of the selected advanced control station output. Only when the algorithm selects the advanced control station output, the port turns on the tracking function, and the tracking value is transmitted to the output channel of the controller or handheld operator. The corresponding module state is tracking, and the operation panel or monitoring panel displays the output state of the advanced control station algorithm. The output selection of the advanced control station must set the necessary conditions. The tracking switch can only be turned on under the premise of ensuring safety and reliability. The general conditions are that the communication is fault-free, the loop operates normally without forced manual operation, and the tracking can only be turned on after the conversion conditions of the switching mode are met.
[0084] like Figure 4b As shown, the second method is to perform a two-choice operation on the output instruction channel. If the advanced control station output conditions are met, the advanced control station output instruction is selected, and if not, the DCS algorithm instruction is output.
[0085] The output of the advanced control station and the output of the DCS side controller enter the command output channel through the selection mode. The state of the selection switch determines which side's calculation result is used. The selection switch is the same as the tracking switch of mode 1. The selected input value channel corresponds to the DCS side calculation output and the advanced control station calculation output. When the advanced control station output value is selected, the value of the advanced control station is given to the command channel, and the output value of the DCS side tracks the command output channel.
[0086] Example
[0087] The first method of communication fault judgment is implemented on the trial of Zhejiang University Central Control DCS. It is carried out by judging the pulse state. The configuration logic is to read the pulse signal and invert the pulse signal, and then use the delayed open (input is 1 and keep it for the set time, then output 1, otherwise output 0) function block to judge the communication pulse and the inverted pulse, and then take the output results of the two delayed opens to calculate the communication state. When the communication is normal, the input end of the delayed open changes between 0 and 1. The judgment time is set to be 3-5 times greater than the change cycle. Its output is always 0, and the result of the or is also 0, indicating that the communication is normal; after the communication is interrupted, the pulse signal is no longer changing, and one of the two delayed open input ends must remain at 1 and the other remains at 0. After the judgment time is up, the result of the or becomes 1, indicating a communication failure.
[0088] The second communication fault judgment method is implemented on the Hollysys DCS by judging the change rate of the ramp wave. The configuration logic is to take the change rate of the ramp wave signal for a certain period of time and judge whether the change rate is 0. When the communication is normal, the ramp wave signal keeps changing and its change rate is also changing and is not 0. If the communication fails, the ramp wave signal is no longer refreshed and the value remains unchanged, then the change rate gradually becomes 0, indicating that the communication is interrupted.
[0089] The loop algorithm selection method 1 and method 2 were implemented on a Yokogawa DCS in a power plant. The logic configuration is to set the manual state, automatic state and automatic state display of the advanced control station on the manual regulator panel. When the system algorithm is manual, the manual operator displays the red M state, the DCS displays the green A state when it is automatic, and the green I state when it is optimized. The switching of the algorithm state is also operated through the state button. The same method is used to display the state on the advanced control station (the advanced control station is an algorithm station, often used for background operation, and is not recommended to be used as an operation station). If it is also used as an operation station, set the same function as the manual panel switch on the DCS side.
[0090] The third loop algorithm selection method is implemented on the central control DCS. The logical configuration is to disconnect the PID on the DCS side from the handheld operator, and connect the advanced control station output to the input of the handheld operator. In manual mode, the handheld operator directly gives the operation value. In automatic mode, the output value of the advanced control station enters the handheld operator to give instructions. That is, the advanced control station algorithm replaces the original PID algorithm, and its panel operation and display mode remain unchanged. However, in order to reflect the use of the advanced control station calculation results in automatic mode, the automatic state of the handheld operator needs to be modified or explained to let the operating personnel know the algorithm usage status and avoid confusion.
[0091] The fourth loop algorithm selection method was implemented on Siemens PCS7 for trial use. The logic configuration was to separately establish advanced control station set value variables and output variables as well as manual-automatic switching buttons, disconnect the original logic output of the DCS, connect the advanced control station output to the command channel, and all loop algorithms use the advanced control station program.
[0092] Output value switching method 1 was implemented on a Yokogawa DCS of a power plant through the tracking port docking of the PID algorithm module. The configuration was to connect the output value of the advanced control station to the TIN port of the PID, and the tracking switch judgment result was connected to the TSI port. The algorithm state conversion method 2 was used for operation judgment. First, the communication state was normal, the optimization algorithm selection switch was turned on, and the loop was put into automatic state. At this time, PID allowed tracking, the advanced control station algorithm entered the calculation and transmitted the result to the tracking value of the PID. The PID was in the tracking state and was not calculating itself. It only gave the tracking value to the output channel. The corresponding interface displayed the advanced control station automatic and PID tracking. If a communication failure or other failure caused the loop to switch to manual, the algorithm state would switch back to DCS manual, and the optimization algorithm selection switch would be reset by communication failure reset or manual reset.
[0093] The output value switching method 2 is implemented on the Zhejiang University Central Control DCS of a power plant. The configuration is to add a selection module in the connection between PID and the handheld operator. The selection block 1 channel is connected to the PID output, and the 2nd channel is connected to the advanced control station output. The selection switch connection algorithm selection judgment, the judgment condition is that the communication is normal, the loop handheld operator is put into automatic and the advanced control station selection is put into. At this time, the advanced control station input channel is selected to the handheld operator. If the condition is not met, the PID output is selected to the handheld operator. After selecting the advanced control station algorithm, the PID state must be switched to manual, otherwise the PID is calculated, resulting in the inability to track the result and the inconsistency between the advanced control station output and the program instruction error when switching back to PID control affects the operation safety. Its display state corresponds to the switching process of the switching method 2.
Claims
1. A method for implementing an interface between an advanced control station and a distributed processing control unit, characterized in that The following steps are involved: S01, Communication diagnosis between advanced control station and distributed processing control unit Establish data communication between the advanced control station and the distributed processing control unit, and perform two-way communication status judgment. The status of data transmission is judged by real-time monitoring of the status of the communication code; the advanced control station and the distributed processing control unit each judge the change of the received signal, and perform a delay confirmation for a period of time. If the signal delay confirmation does not change, the communication fault flag is set, and the algorithms on both sides perform corresponding processing. If the received communication signal is normal, it means that the communication is normal, and the next step of algorithm switching is performed; The communication diagnosis between the advanced control station and the distributed processing control unit is implemented using two types of communication codes; Judgment method 1: Communication diagnostic signal-pulse type Generate 0 / 1 pulse signals in the logic of the advanced control station and the distributed processing control unit and send them to each other. The advanced control station and the distributed processing control unit judge the changes of the received signals and perform a delay confirmation for a period of time. The pulse signal delay opening and the pulse signal delay opening after inversion are in an OR relationship. If there is no change in the signal delay confirmation, the communication fault flag is set, and the algorithms on both sides perform corresponding processing; if the received communication signal is normal, it means that the communication is normal; Judgment method 2: Communication diagnostic signal-slope type A continuously changing natural number is generated in the logic of the advanced control station and the distributed processing control unit, and it is continuously cycled. The advanced control station and the distributed processing control unit each judge the change of the received signal and perform a delay confirmation for a period of time. The judgment method is to make a difference between the current value of the ramp signal and the delayed output value. If the difference is 0, the communication is interrupted. If the signal delay confirmation does not change, the communication fault flag is set, and the algorithms on both sides perform corresponding processing; if the received communication signal is normal, it means that the communication is normal and the algorithm can be switched; S02, algorithm switching Free switching between DCS side loop control algorithm and advanced control station algorithm; The algorithm switching includes four switching modes; Switching method 1: Add an advanced control algorithm switch button on the DCS side. This button is available when the communication is normal and the control loop on the DCS side is switched to automatic. The loop control algorithm on the DCS side switches from manual to automatic, and then switches to the advanced control station algorithm. After switching to manual, both the DCS side and the advanced control station are manual and the advanced control station automatic switch button is reset. The advanced control station button can switch the advanced control station to automatic when the DCS side is automatic. Switching method 2: Add an advanced control station algorithm selection button, which is available when the communication is normal; first, activate the advanced control station algorithm selection button, and then directly switch the manual and automatic control of the advanced control station through the manual and automatic buttons of the DCS logic loop. After the advanced control station control mode is cut off, the manual and automatic control are the manual automatic switching of the DCS side algorithm. If the advanced control algorithm mode is cut off during the automatic operation of the advanced control, the loop is switched to the manual state; Switching method three: Add an advanced control algorithm input button, which is available when the communication is normal. It directly switches to the advanced control station automatically through the original panel, and no longer uses the DCS automatic program; Switching mode 4: Added manual and automatic switching buttons for advanced control algorithms, which are available when communication is normal; redefined manual and automatic switching buttons, and directly controlled the manual and automatic switching of advanced control station algorithms through buttons; S03, disturbance-free switching of output instructions During DCS control, the output instruction of the advanced control station tracks the output value of the DCS side loop. After the advanced control station algorithm is put into operation, the output channel of the DCS side selects the output value of the advanced control station, and the calculated output of the DCS tracks the value of the advanced control station, realizing disturbance-free switching of instructions.
2. The method for implementing the interface between the advanced control station and the distributed processing control unit according to claim 1, characterized in that: When conducting communication diagnosis between the advanced control station and the distributed processing control unit, communication status display and alarm are set on both the advanced control station and the DCS side. After a communication break or long delay, the communication fault is detected, and an alarm message and indication status change are given to remind the monitoring personnel to deal with the fault in time; at the same time, the program takes corresponding actions, and the advanced control station side exits the automatic operation in time after the communication failure, starts to track the data on the DCS side, and synchronizes the DCS data after the communication is normal, to ensure the operation safety when the control algorithm switches to the advanced control station again; after the DCS side detects the communication failure, the fault program exits the advanced control station algorithm control, switches back to the control on the DCS side, and resets the advanced control station algorithm selection button to prevent switching to the advanced control station control again without the confirmation of the monitoring personnel after the communication is restored, causing operation safety risks.
3. The method for implementing the interface between the advanced control station and the distributed processing control unit according to claim 1, characterized in that: Two algorithm instructions are used to achieve disturbance-free switching of two output instructions; Switching method 1: The output of the advanced control station is given to the tracking port of the controller on the DCS side. When the advanced control station is automatic, the controller on the DCS side is switched to the tracking mode and the tracking value is given to the output channel; Switching method 2: The output of the advanced control station and the output of the DCS side controller enter the command output channel through the selection method. The state of the selection switch determines which side's calculation result is used, and the selected input value channel corresponds to the DCS side calculation output and the advanced control station calculation output; when the advanced control station output value is selected, the value of the advanced control station is given to the command channel, and the output value of the DCS side tracks the command output channel.
4. The method for implementing the interface between the advanced control station and the distributed processing control unit as claimed in claim 3, characterized in that The specific process of the switching method 1 is: for a DCS in which a handheld operator and a PID controller are separated, the tracking switch and the tracking value port on the handheld operator are selected; for a DCS in which a handheld operator and a PID controller are integrated, the tracking switch and the tracking value port of the PID are selected; the output of the advanced control station is connected to the tracking value port, and the tracking switch is controlled according to the state of the advanced control station output. When the algorithm selects the advanced control station output, the port turns on the tracking function, and the tracking value is transmitted to the output channel of the controller or the handheld operator. The corresponding module state is tracking, and the operation panel or the monitoring panel displays the advanced control station algorithm output state.
5. The method for implementing the interface between the advanced control station and the distributed processing control unit according to claim 1, characterized in that: The communication diagnostic signal is sent bidirectionally between the advanced control station and the distributed processing control unit. The diagnostic signal sent by the advanced control station is used by the distributed processing control unit to detect whether the output instruction of the advanced control station is valid. When a fault occurs, the distributed processing control unit switches back to the DCS control algorithm. The diagnostic signal sent by the distributed processing control unit to the advanced control station is used by the advanced control station to detect whether the collected DCS side process data and switching instructions are current valid values. When a fault occurs, the advanced control station exits the corresponding calculation, prepares to track the DCS side data, and waits for the communication to be connected to refresh the data to keep it consistent with the DCS data.
