A triple DO channel system, diagnostic method and device
By combining a triple DO channel system with a current detection module, accurate positioning and fault diagnosis of the switch status within the DO channel are achieved, solving the problem of inaccurate positioning of faulty switches in existing technologies and ensuring reliable operation of the DO channel when needed.
Patent Information
- Application Number
- CN202211489225.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-25
- Publication Date
- 2025-12-02
- Estimated Expiration
- 2042-11-25
AI Technical Summary
Existing technologies cannot pinpoint faults within the DO channel to specific switches, resulting in unreliable operation when required, and conventional diagnostic methods cannot accurately locate faulty switches.
A triple DO channel system is adopted. Synchronous diagnostic pulses are issued by a common CPU, and the CPUs of each channel control the circuit to turn on and off. The other CPUs obtain the switch diagnostic results and combine them with the current detection module to detect the status of the external load, so as to realize the status diagnosis of each switch.
It can accurately locate fault switches within the DO channel, ensuring reliable operation when required, avoiding false alarms and missed faults, and protecting the load status.
Smart Images

Figure CN115877272B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of industrial safety, and in particular to a triple DO channel system, diagnostic method and apparatus. Background Technology
[0002] With the rapid development of industry, safety instrumented systems (SIS) are widely used in industrial control. In SIS applications, digital output (DO) modules often remain in a closed or open state for extended periods, only responding when a device malfunctions. Because some modules remain in a certain state for extended periods, it cannot be guaranteed that they will respond appropriately when needed. Therefore, it is necessary to periodically diagnose the channel circuits using diagnostic circuits.
[0003] In industrial control SIS products, the DO channels are mostly designed with a 2outof3 (2oo3) safety architecture. Currently, for this design architecture, a common diagnostic method is to add a set of diagnostic circuits to each circuit, such as... Figure 1 As shown, the added diagnostic circuit is used to diagnose whether there is a fault in the corresponding circuit. However, according to this diagnostic method, the fault can only be located at the channel level, but not at the specific switch within the channel.
[0004] In view of the above-mentioned technology, finding a diagnostic method that can diagnose the switching states of all switches within a channel is a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0005] The purpose of this application is to provide a triple DO channel system, diagnostic method and device, which can diagnose the state of switches in the triple DO channel and locate the fault to the specific switch in the channel.
[0006] To solve the above-mentioned technical problems, this application provides a triple DO channel system, including a triple DO channel. Each channel of the triple DO channel includes two switches. The circuit of each switch in each channel is connected to the CPU of the other channels respectively, and each switch corresponds to the CPU of one channel. The CPU of this channel and the CPU of the other channels communicate with a common CPU respectively.
[0007] The common CPU is used to issue synchronous diagnostic pulses;
[0008] The CPU of this channel is used to control the opening and closing of the control loop of this channel after receiving the synchronous diagnostic pulse;
[0009] The CPUs in the remaining channels are used to obtain the diagnostic results of the corresponding switches in the control loop.
[0010] Preferably, the control terminal of each switch in each channel is connected to one end of a CPU, the circuit containing each switch in each channel is connected to one end of another CPU, and two switches in the same channel are connected to different CPUs.
[0011] Preferably, it further includes: a current detection module;
[0012] The current detection module is set after the tripled DO channel to detect the status of the external load.
[0013] To address the aforementioned technical problems, this application also provides a diagnostic method for a tripled DO channel system, applied to tripled DO channels. In this method, the circuit containing each switch in each channel is connected to the CPU of the other channels, and each switch corresponds to the CPU of one channel. The CPU of this channel and the CPUs of the other channels communicate with a common CPU. The method includes:
[0014] Control the common CPU to send synchronous diagnostic pulses;
[0015] The CPU corresponding to the switch in the control loop is determined based on the synchronous diagnostic pulse;
[0016] The CPU controls the on / off state of the control loop by controlling the switches in the control loop.
[0017] Obtain the switch diagnostic results for each CPU.
[0018] Preferably, after obtaining the switching diagnostic results of each CPU, the method further includes:
[0019] Obtain the current diagnostic results for each CPU.
[0020] Preferably, after the common CPU sends out a synchronous diagnostic pulse, the method further includes:
[0021] Control the number of diagnostic steps issued by the shared CPU;
[0022] The action of each CPU is determined based on the number of diagnostic steps;
[0023] Obtain the number of diagnostic steps for each CPU;
[0024] The actions of each CPU include: controlling the on and off of the control loop where each CPU is located, obtaining the switching diagnostic results of each CPU, and obtaining the current diagnostic results of each CPU.
[0025] Preferably, after obtaining the diagnostic steps for each CPU, the method further includes:
[0026] Determine whether the number of diagnostic steps for each CPU is the same as the number of diagnostic steps issued by the common CPU;
[0027] If not, then a synchronous diagnostic fault is identified. After completing this round of synchronous diagnostics, return to the control common CPU to issue diagnostic steps.
[0028] Preferably, if the duration of the switch opening or closing in the control loop is t, and the action time of the external load connected to the DO channel is T, then t is less than T / 3.
[0029] Preferably, the readback delay time of the switch state in the control loop is t1, the diagnostic delay time of the current in the control loop is t2, and the switch action time of the control loop is N, then t1>2N and t2>4N.
[0030] To address the aforementioned technical problems, this application also provides a diagnostic device for a triple DO channel system, applied to the diagnosis of triple DO channels. The circuit containing each switch in each channel is connected to the CPU of the remaining channels, and each switch corresponds to the CPU of one channel. The CPU of this channel and the CPUs of the remaining channels communicate with a common CPU. The device includes:
[0031] The first control module is used to control the common CPU to send synchronous diagnostic pulses;
[0032] The determination module is used to determine the CPU corresponding to the switch in the control loop based on the synchronous diagnostic pulse;
[0033] The second control module is used to control the on and off of the control loop through the CPU corresponding to the switch in the control loop;
[0034] The acquisition module is used to obtain the switch diagnostic results of each CPU.
[0035] This application provides a tripled DO channel system, comprising tripled DO channels. Each channel of the tripled DO channel includes two switches. The output terminal of each switch in each channel is connected to a CPU other than the CPU of the channel itself, and each switch corresponds to one CPU. The CPU of the channel and the CPUs of the other channels communicate with a common CPU. The common CPU sends a synchronous diagnostic pulse. After receiving the synchronous diagnostic pulse sent by the common CPU, the CPU of the channel controls the conduction and cutoff of the control loop of the channel. The CPUs of the other channels obtain the diagnostic results of the corresponding switches in the control loop, thereby specifically measuring the on / off state of each switch. This system can diagnose not only whether there is a fault in the circuit of each channel, but also whether there is a fault in each switch in the circuit of each channel.
[0036] This application also provides a diagnostic method for a tripled DO channel system. Each switch in each channel has its own circuit connected to the CPUs of the other channels, and each switch corresponds to a CPU in one channel. The CPU of this channel and the CPUs of the other channels communicate with a common CPU. First, the common CPU sends a synchronous diagnostic pulse. Then, based on the synchronous diagnostic pulse, the CPU corresponding to the switch in the control circuit is determined. The CPU corresponding to the switch in the control circuit controls the on / off state of the control circuit, and then the diagnostic results of the switches in each CPU are obtained. This method can diagnose not only whether there are faults in the circuits of each channel, but also whether there are faults in the individual switches within each channel circuit.
[0037] This application also provides a diagnostic device for a triple DO channel system, which corresponds to the above-mentioned diagnostic method and therefore has the same beneficial effects. Attached Figure Description
[0038] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0039] Figure 1 This is a diagram of the DO channel diagnostic circuit architecture provided in an embodiment of this application;
[0040] Figure 2 This is an architecture diagram of the tripled DO channel system provided in the embodiments of this application;
[0041] Figure 3 This is a timing diagram of the diagnostic logic for a tripleted DO channel with a required state of 1, provided in an embodiment of this application.
[0042] Figure 4 This is a timing diagram of the diagnostic logic for a tripleted DO channel with a demand state of 0, provided in an embodiment of this application.
[0043] Figure 5 A flowchart of a diagnostic method for a triple DO channel system provided in another embodiment of this application;
[0044] Figure 6 This is a structural diagram of a diagnostic device for a triple DO channel system provided in another embodiment of this application. Detailed Implementation
[0045] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of this application.
[0046] In safety instrumented systems, digital output channels (DO channels) convert weak digital signals from a computer into digital drive signals that can control the production process. In practical applications, depending on the field load, different power amplifying devices can be selected to construct different switching drive output channels, such as transistor output drive circuits and solid-state relay output drive circuits. DO modules remain in a closed or open state for extended periods, only activating when equipment malfunctions. To ensure reliable operation when needed even when the DO channel is in a specific state, diagnostic circuitry is required to periodically diagnose the channel circuitry.
[0047] Currently, the DO channel in SIS products in the industrial control industry typically adopts a 2oo3 architecture. Figure 1 This is a diagram of the DO channel diagnostic circuit architecture provided in an embodiment of this application; as shown below. Figure 1 As shown, there are three-channel output circuits (A, B, and C) and corresponding three-channel functional diagnostic circuits, used to diagnose whether there is a fault in this circuit. However, adding a set of diagnostic circuits to each circuit can diagnose a fault in a certain channel, but it cannot pinpoint the fault to a specific switch within that channel.
[0048] The core of this application is to provide a triple DO channel system, diagnostic method and device. By adding diagnostic signals to the CPU for each switch in the triple DO channel, and with the cooperation of the diagnostic control program, TestPattern diagnosis is realized, so that each switch in the channel can be diagnosed and the fault can be located to the specific switch.
[0049] To enable those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0050] Figure 2 This is an architectural diagram of the triplet DO channel system provided in the embodiments of this application; as follows: Figure 2As shown, this application provides a tripled DO channel system, including tripled DO channels. Each channel of the tripled DO channel contains two switches. The circuit of each switch in each channel is connected to the CPU of the other channels, and each switch corresponds to a CPU of one channel. The CPU of this channel and the CPUs of the other channels communicate with a common CPU. The common CPU is used to send synchronous diagnostic pulses; the CPU of this channel is used to control the on / off state of the control circuit of this channel after receiving the synchronous diagnostic pulses; the CPUs of the other channels are used to obtain the diagnostic results of the corresponding switches in the control circuit.
[0051] In practice, SW_A1, SW_B1, and SW_C1 are all connected to a 24V positive voltage, and the control terminals of the three switches are connected to the three CPUs respectively. The circuit of each switch is connected to another CPU. In addition, the triplet DO channel system also includes a common CPU. The common CPU communicates with other CPUs. The common CPU is used to send synchronous diagnostic pulses. The other CPUs, such as CPU_A, CPU_B, and CPU_C, start diagnosis after receiving the synchronous diagnostic pulses sent by the common CPU. Figure 3 This is a timing diagram of the diagnostic logic for a tripleted DO channel with a required state of 1, provided in an embodiment of this application; as follows: Figure 3 As shown, when the demand state of the triple DO channel is 1, that is, the normal output of the module channel is 0, and the output is 1 when there is demand. The three circuits cooperate with each other for time-division diagnosis, and the circuits of each system perform cross-diagnosis. That is, the A system circuit reads back from the B system and judges the diagnosis result, the B system circuit reads back from the C system and judges the diagnosis result, and the C system circuit reads back from the A system and judges the diagnosis result. Each channel takes turns to diagnose step by step.
[0052] like Figure 3 As shown, if only the A-system control loop needs to be diagnosed at this time, when the common CPU (CPU_COM in the diagram) sends a synchronous diagnostic pulse, CPU_A and CPU_C control the on / off state of the switch in their respective loops for a duration of t. CPU_B reads the switch diagnostic results and the connection status diagnostic results at t1 and t2 respectively. The specific switch's condition is determined by the switch diagnostic results read by CPU_B, allowing the fault in the triplet DO channel to be located at the specific switch. Similarly, the diagnosis of the other switch states in the triplet DO channel is performed in the same way, with the CPUs corresponding to the other two channels controlling the on / off state of their respective loops, and another CPU reading back the switch diagnostic results, thus performing cross-diagnosis.
[0053] Figure 4 This is a timing diagram of the diagnostic logic for a tripleted DO channel with a demand state of 0, provided in an embodiment of this application; as follows: Figure 4As shown, the demand state is 0, meaning the DO module channel normally outputs 1, and outputs 0 when there is demand. The diagnostic process is the same as when the demand state is 1, except for the operation of controlling the channel's on / off state during the diagnostic process. In specific implementation, when the common CPU... Figure 4 When the CPU_COM sends a synchronous diagnostic pulse, taking the A-system control loop diagnosis as an example, at this time, the switches of the loops controlled by CPU_A and CPU_C are turned off for a duration of t. Similarly, the corresponding switch diagnosis results and connection status diagnosis results are read back by CPU_B.
[0054] This application provides a tripled DO channel system, comprising tripled DO channels. Each channel of the tripled DO channel includes two switches. The output terminal of each switch in each channel is connected to a CPU other than the CPU of the channel itself, and each switch corresponds to one CPU. The CPU of the channel and the CPUs of the other channels communicate with a common CPU. The common CPU sends a synchronous diagnostic pulse. After receiving the synchronous diagnostic pulse sent by the common CPU, the CPU of the channel controls the conduction and cutoff of the control loop of the channel. The CPUs of the other channels obtain the diagnostic results of the corresponding switches in the control loop, thereby specifically measuring the on / off state of each switch. This system can diagnose not only whether there is a fault in the circuit of each channel, but also whether there is a fault in each switch in the circuit of each channel.
[0055] The above embodiments describe the detection of switches in the triple DO channel system. Based on the above embodiments, as a preferred embodiment, the triple DO channel system provided in this embodiment has the control terminal of each switch in each channel connected to one end of a CPU, the circuit where each switch in each channel is located connected to one end of another CPU, and the two switches in the same channel are connected to different CPUs.
[0056] like Figure 2As shown, each switch in each channel can be a Metal-Oxide-Semiconductor Field-Effect Transistor (MOS). MOS transistors are generally used as electronic switches in circuits, possessing switching characteristics. MOS transistors are voltage-controlled devices; when used as switches, they only need to meet the Vgs conduction condition. The connections between switches and CPUs in the triplet DO channels are limited. The control terminal of each switch in each channel is connected to one end of a CPU, and the circuit containing each switch in each channel is connected to one end of another CPU. Furthermore, two switches within the same channel are connected to different CPUs. For example, the gate of SW_A1 is connected to CPU_A, the drain of SW_A1 is connected to a 24V positive voltage, and the source of SW_A1 is connected to CPU_B. CPU_B is used to obtain the diagnostic results of the switches. SW_B2, which is in the same channel as SW_A1, has its drain connected to the source of SW_A1, its gate connected to CPU_B, and its source connected to CPU_C. The triple DO channel has three control loops: A, B, and C. These three control loops cooperate with each other for time-division diagnostics, and cross-diagnoses are performed between the circuits of each system, as shown in the connection of SW_A1 and SW_B2. SW_A1 and SW_B2 together constitute the A-system channel loop, and the status of SW_A1 and SW_B2 is diagnosed by CPU_B and CPU_C respectively.
[0057] This embodiment defines the connection method between each switch and the CPU in each channel. The control terminal of each switch in each channel is connected to one end of a CPU, and the circuit where each switch in each channel is located is connected to one end of another CPU. Furthermore, two switches in the same channel are connected to different CPUs. This enables cross-diagnosis between different circuit systems and allows the detection of the status of each switch in the channel to locate the fault to the specific switch.
[0058] The above embodiments define the switch connection method for each channel within the triplet DO channel. The control terminal of each switch in each channel is connected to one end of a CPU, and the circuit containing each switch in each channel is connected to one end of another CPU. Furthermore, two switches within the same channel are connected to different CPUs, enabling diagnosis of the state of each switch and cross-diagnosis of different circuit systems. Based on the above embodiments, as a preferred embodiment, the triplet DO channel system provided in this embodiment further includes a current detection module. This current detection module is installed after the triplet DO channel and is used to detect the state of the external load.
[0059] The current conventional diagnostic method for DO channels is to add a set of diagnostic circuits to each circuit layer, such as... Figure 1As shown, the added diagnostic circuit is used to diagnose whether there is a fault in this circuit. However, it cannot pinpoint the fault to a specific switch, and because the channel diagnosis relies on the external resistor R2, a faulty or loose connection in R2 will result in false alarms for all three systems. Furthermore, because... Figure 1 The presence of a diagnostic resistor R1 ensures that even when the channel switch is open, a 24V voltage and mA-level leakage current will still exist on the channel. Based on this, the triple-channel DO system also incorporates current detection.
[0060] like Figure 2 As shown, the current detection module in the diagram is the Current Detection module. Located after the tripled DO channel, it can detect the status of external connections and the status of external loads. Current is the most fundamental physical quantity in electricity; current detection can directly reflect the operating status of the load and the circuit. By detecting the magnitude of the current, the current detection module can prevent device malfunctions.
[0061] The triple DO channel system provided in this embodiment also includes a current detection module. By detecting the magnitude of the current, the current detection module can reflect the working status of the load and the line, and avoid damage to the device caused by the external load being unloaded or the current in the line being too large.
[0062] This application also provides a diagnostic method for a triplet DO channel system. Each switch in each channel is connected to a diagnostic CPU. First, a common CPU is controlled to send a synchronous diagnostic pulse. Then, based on the synchronous diagnostic pulse, the CPU corresponding to the switch in the control loop is determined. The CPU corresponding to the switch in the control loop controls the on / off state of the control loop. Finally, the diagnostic results of the switches in each CPU are obtained. This method can diagnose not only whether there are faults in each channel circuit, but also whether there are faults in each switch in each channel circuit.
[0063] It should be noted that the triple DO channel mentioned in this application is a DO channel designed based on the 2oo3 architecture. It is understood that the diagnostic methods for the triple DO channel system mentioned in this application can be implemented by a microcontroller unit (MCU) or other types of controllers, without affecting the implementation of the technical method.
[0064] This application provides a diagnostic method for a triple DO channel system. Figure 5 A flowchart of a diagnostic method for a triple DO channel system provided in another embodiment of this application; as shown Figure 5As shown, this method is applied to a triplet DO channel, where the circuit containing each switch in each channel is connected to the CPU of the other channels, and each switch corresponds to the CPU of one channel. The CPU of this channel and the CPUs of the other channels communicate with a common CPU. The method includes:
[0065] S10: Controls the common CPU to send out synchronous diagnostic pulses.
[0066] Each switch within each channel is connected to a CPU that controls its on / off state. Furthermore, the circuit containing each switch within each channel is connected to another CPU for diagnosing the switch's status. Each switch is connected to two different CPUs, and each CPU communicates with a common CPU. In practice, the common CPU initiates the current round of synchronous diagnostics after sending a synchronization diagnostic pulse.
[0067] S11: Determine the CPU corresponding to the switch in the control loop based on the synchronous diagnostic pulse.
[0068] In step S10, the MCU or other type of controller controls the common CPU to send a synchronization diagnostic pulse, initiating a round of synchronization diagnostics. This step, after the common CPU sends the synchronization diagnostic pulse, determines the CPU corresponding to the switch in the control loop based on the sent pulse. For example, for... Figure 2 The status diagnosis of switch SW_A1 in the A-series control loop is performed. After the common CPU issues a synchronous diagnostic pulse, it can be determined that the CPU corresponding to the switch in the A-series control loop is CPU_A.
[0069] S12: The CPU controls the on / off state of the control circuit by controlling the switches in the control circuit.
[0070] In this step, after selecting the CPU corresponding to the switch in the control loop, the CPU corresponding to the switch controls the on / off state of its corresponding control loop. For example, when diagnosing the A-system control loop, after the common CPU issues a synchronous diagnostic pulse, CPU_A and CPU_C control the on / off state of the switch in that loop; while when diagnosing the B-system control loop, CPU_A and CPU_B control the on / off state of the switches in its control loop. Through this diagnostic logic, time-sharing diagnosis of the three circuit systems is achieved, and cross-diagnosis is performed between the circuit systems.
[0071] In this embodiment, the CPU controls the on / off state of its control loop by determining the demand state of the triplet DO channel, such as... Figure 3 , Figure 4As shown, when the demand state of the triplet DO channel is 1, the CPU corresponding to the switch controls the switch to turn on when the common CPU sends a synchronous diagnostic pulse; while when the demand state of the triplet channel is 0, the CPU corresponding to the switch controls the switch to turn off when the common CPU sends a synchronous diagnostic pulse.
[0072] S13: Obtain the switch diagnostic results for each CPU.
[0073] In practical implementation, to achieve time-sharing diagnosis of the three circuit systems, cross-diagnosis is performed between the circuit systems. Specifically, circuit system A receives diagnostic results from circuit system B, circuit system B receives diagnostic results from circuit system C, and circuit system C receives diagnostic results from circuit system A. This requires reading the switch diagnostic results from each CPU. For example, when diagnosing the control loop of system B, when the common CPU issues a synchronous diagnostic pulse, CPU_A and CPU_B respectively control the on / off state of the switches in their respective control loops, and the switch diagnostic results are read by CPU_C.
[0074] It is understood that the acquisition action in this embodiment can be completed by the MCU or by other types of controllers. The switch diagnostic results of each CPU are acquired in real time, that is, the MCU or other types of controllers continuously acquire the switch diagnostic results of each CPU.
[0075] This application also provides a diagnostic method for a tripled DO channel system. Each switch in each channel has its own circuit connected to the CPUs of the other channels, and each switch corresponds to a CPU in one channel. The CPU of this channel and the CPUs of the other channels communicate with a common CPU. First, the common CPU sends a synchronous diagnostic pulse. Then, based on the synchronous diagnostic pulse, the CPU corresponding to the switch in the control circuit is determined. The CPU corresponding to the switch in the control circuit controls the on / off state of the control circuit, and then the diagnostic results of the switches in each CPU are obtained. This method can diagnose not only whether there are faults in the circuits of each channel, but also whether there are faults in the individual switches within each channel circuit.
[0076] The above embodiments provide a detailed description of the diagnostic method for a triplet DO channel system. Based on the above embodiments, as a preferred embodiment, after obtaining the switching diagnostic results of each CPU, the method further includes obtaining the current diagnostic results of each CPU.
[0077] like Figure 1 As shown, the current triple DO channel adds a corresponding diagnostic circuit to each channel circuit. This added diagnostic circuit is used to diagnose whether there is a fault in the circuit itself. However, this diagnostic method not only fails to pinpoint the fault to a specific switch, but also, because the channel diagnosis relies on the external resistor R2, a faulty or loose connection in R2 will result in false alarms for all three systems. Furthermore, because... Figure 1 The presence of a diagnostic resistor R1 ensures that even when the channel switch is open, a 24V voltage and mA-level DE leakage current will still exist on the channel. Therefore, the diagnostic method for the triplet DO channel system also includes current detection.
[0078] In practice, the MCU or other types of controllers also need to obtain the current diagnostic results from each CPU. These current diagnostic results are... Figure 3 and Figure 4 The diagnostic results for the wiring status include not only the diagnosis of each switch status but also the diagnosis of the channel output status. Current diagnostic results from each CPU are acquired, and analysis of these results allows for the detection of external connection status and the status of external loads. Current is the most fundamental physical quantity in electricity, and analyzing the current diagnostic results provides a direct reflection of the operating status of the load and the circuit.
[0079] This embodiment can not only read the switch diagnostic results through the CPU, but also read the current diagnostic results through the CPU, reflecting the status of the external load and circuit connection, thus avoiding damage to the components in the circuit due to no-load.
[0080] The above embodiments describe in detail the diagnosis of each switch and the connection status in the DO channel of the triplet DO channel system. Based on the above embodiments, as a preferred embodiment, this embodiment adds the determination of whether the CPU has a fault.
[0081] In practice, after the common CPU sends a synchronization diagnostic pulse, it also sends a diagnostic step count. The actions of each CPU are determined based on this count, and the diagnostic step count for each CPU is obtained. The actions of each CPU include: controlling the on / off state of its control loop, obtaining the switch diagnostic results for each CPU, and obtaining the current diagnostic results for each CPU. For example, if the common CPU sends one diagnostic step, CPU_A and CPU_C correspondingly control the on / off state of the switches in their respective control loops. CPU_B reads back the switch diagnostic results and the connection status diagnostic results. The connection status diagnostic results are the current diagnostic results. At this point, each CPU records a step count. After obtaining the diagnostic step count recorded by each CPU, a check is performed to determine whether the diagnostic step count recorded by each CPU is consistent with the diagnostic step count sent by the common CPU.
[0082] After obtaining the diagnostic steps for each CPU, the process further includes: determining whether the diagnostic steps for each CPU are the same as the diagnostic steps issued by the common CPU. If not, a synchronous diagnostic fault is identified. After completing this round of synchronous diagnosis, the process returns to the step of controlling the common CPU to issue diagnostic steps. In this embodiment, the common CPU issues a synchronous diagnostic pulse and a diagnostic step count. When each CPU receives the synchronous diagnostic pulse, it begins to synchronously execute a predetermined diagnostic program. The synchronous diagnostic step count is used to determine whether the current diagnostic step count of each system is consistent with the required diagnostic step count, in order to determine whether a diagnostic misalignment error has occurred. When the diagnostic step count recorded locally by each CPU is inconsistent with the diagnostic step count issued by the common CPU, a synchronous diagnostic fault is reported, and the diagnostic step count needs to be resynchronized after the completion of this round of synchronous diagnosis and the start of a new round of synchronous diagnosis.
[0083] This embodiment adds a judgment on whether a fault occurs during the diagnostic process. By judging whether the number of steps recorded by each CPU is consistent with the number of diagnostic steps issued by the common CPU, it is determined whether a fault has occurred in the diagnosis or whether there is a diagnostic misalignment error, so as to take timely action when a fault occurs in the diagnosis.
[0084] The above embodiments add the judgment of whether a fault occurs in the diagnostic process and provide a detailed description of the diagnostic method. Based on the above embodiments, as a preferred embodiment, the diagnostic method of the triple DO channel system provided in this embodiment further includes: controlling the duration of the channel switch opening or closing, the channel switch status readback delay time, and the channel connection status diagnosis delay time during the diagnostic process to achieve the function that the channel output will not affect the external responsible status, will not cause malfunctions, and will not make misjudgments during the channel diagnosis process.
[0085] In specific implementation, the duration for which the channel switch is open or closed is t, which is the duration for which the switch in the control loop is open or closed. When the demand state is 1, the switch closes during channel diagnosis and remains open for a duration of t; when the demand state is 0, the switch opens during channel diagnosis and remains open for a duration of t before closing. The time t can be configured based on load characteristics and diagnostic hardware circuitry. If the action time of the external load connected to the DO channel is T, then t must be less than T / 3 to avoid affecting the load state and causing control malfunctions during diagnosis.
[0086] The channel switch status readback delay time is t1, which is the readback delay time of the switch status in the control loop. t1 must be approximately twice the channel switch action time. If the channel switch action time is set to N, then t1 > 2N. When software filtering is used, time t1 needs to be further extended by the software filtering time to ensure accurate determination of the switch status. The channel connection status diagnosis delay time is t2, which is the diagnosis delay time of the current in the control loop. t2 must be approximately four times the channel switch action time, then t2 > 4N. When software filtering is used, time t2 needs to be further extended by the software filtering time to ensure accurate determination of the channel connection status.
[0087] This embodiment controls the duration of the channel switch opening or closing, the channel switch status readback delay, and the channel connection status diagnosis delay during the diagnostic process. This enables the diagnosis of external connection status without the need for additional external devices, without affecting the load status or causing load malfunctions.
[0088] The diagnostic method for the triple DO channel system has been described in detail in the above embodiments. This application also provides embodiments corresponding to the diagnostic device for the triple DO channel system. It should be noted that this application describes the embodiments of the device part from the perspective of functional modules.
[0089] From the perspective of functional modules Figure 6 This is a structural diagram of a diagnostic device for a triple DO channel system provided in another embodiment of this application; as shown. Figure 6 As shown, this device is used for triple DO channel diagnostics. The circuit containing each switch in each channel is connected to the CPU of the other channels, and each switch corresponds to the CPU of one channel. The CPU of this channel and the CPUs of the other channels communicate with a common CPU. The device includes:
[0090] The first control module 10 is used to control the common CPU to send out synchronous diagnostic pulses.
[0091] The determination module 11 is used to determine the CPU corresponding to the switch in the control loop based on the synchronous diagnostic pulse.
[0092] The second control module 12 is used to control the on and off of the control loop through the CPU corresponding to the switch in the control loop.
[0093] Module 13 is used to obtain the switch diagnostic results of each CPU.
[0094] Since the embodiments of the apparatus and the embodiments of the method correspond to each other, please refer to the description of the embodiments of the method for the embodiments of the apparatus, which will not be repeated here.
[0095] This application also provides a diagnostic device for a tripled DO channel system. Each switch in each channel has its own circuit connected to the CPU of the other channels, and each switch corresponds to a CPU of one channel. The CPU of this channel and the CPUs of the other channels communicate with a common CPU. First, a first control module 10 controls the common CPU to send a synchronous diagnostic pulse. Then, a determination module 11 determines the CPU corresponding to the switch in the control circuit based on the synchronous diagnostic pulse. A second control module 12 controls the CPU corresponding to the switch in the control circuit to control the on / off state of the control circuit. Finally, an acquisition module 13 acquires the diagnostic results of the switches in each CPU. This device can diagnose not only whether there are faults in the circuits of each channel, but also whether there are faults in the individual switches within each channel circuit.
[0096] The foregoing provides a detailed description of a triple DO channel system, diagnostic method, and apparatus provided in this application. The various embodiments in the specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section. It should be noted that those skilled in the art can make several improvements and modifications to this application without departing from the principles of this application, and these improvements and modifications also fall within the protection scope of the claims of this application.
[0097] It should also be noted that, in this specification, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.
Claims
1. A triple DO channel system, comprising triple DO channels, each channel of the triple DO channel including two switches, characterized in that, Each switch in each channel is connected to the CPU of the other channels, and each switch corresponds to the CPU of one channel. The CPU of this channel and the CPU of the other channels communicate with the common CPU. The common CPU is used to issue synchronous diagnostic pulses; The CPU of this channel is used to control the opening and closing of the control loop of this channel after receiving the synchronous diagnostic pulse; The CPUs of the remaining channels are used to obtain the diagnostic results of the corresponding switches in the control loop; The control terminal of each switch in each channel is connected to one end of a CPU, and the circuit in which each switch in each channel is located is connected to one end of another CPU. Furthermore, two switches in the same channel are connected to different CPUs.
2. The triple DO channel system according to claim 1, characterized in that, Also includes: Current detection module; The current detection module is located after the triplet DO channel and is used to detect the status of the external load.
3. A diagnostic method for a triple DO channel system, characterized in that, This method is applied to a tripled DO channel, where the circuit containing each switch in each channel is connected to the CPU of the other channels, and each switch corresponds to a CPU of one channel. The CPU of this channel and the CPUs of the other channels communicate with a common CPU. The control terminal of each switch in each channel is connected to one end of a CPU, and the circuit containing each switch in each channel is connected to one end of another CPU. Furthermore, two switches within the same channel are connected to different CPUs. The common CPU is controlled to issue synchronous diagnostic pulses; The CPU corresponding to the switch in the control loop is determined based on the synchronous diagnostic pulse; The CPU corresponding to the switch in the control loop controls the opening and closing of the control loop; Obtain the switch diagnostic results for each CPU.
4. The diagnostic method for the triple DO channel system according to claim 3, characterized in that, After obtaining the switch diagnostic results for each CPU, the process also includes: Obtain the current diagnostic results for each CPU.
5. The diagnostic method for the triple DO channel system according to claim 4, characterized in that, After the common CPU issues a synchronization diagnostic pulse, the process also includes: Control the number of diagnostic steps issued by the common CPU; The action of each CPU is determined based on the number of diagnostic steps; Obtain the number of diagnostic steps for each CPU; The actions of each CPU include: controlling the on and off of the control loop where each CPU is located, obtaining the switch diagnosis results of each CPU, and obtaining the current diagnosis results of each CPU.
6. The diagnostic method for the triple DO channel system according to claim 5, characterized in that, After obtaining the diagnostic steps for each CPU, the method further includes: Determine whether the number of diagnostic steps for each CPU is the same as the number of diagnostic steps issued by the common CPU; If not, then a synchronous diagnostic fault is identified. After completing the synchronous diagnostic in this round, the process returns to the step of issuing diagnostic steps by controlling the common CPU.
7. The diagnostic method for the triple DO channel system according to any one of claims 3 to 6, characterized in that, The duration of the switch opening or closing in the control loop is t, and the action time of the external load connected to the DO channel is T. Then t is less than T / 3.
8. The diagnostic method for the triple DO channel system according to claim 7, characterized in that, The readback delay time of the switch state in the control loop is t1, the diagnostic delay time of the current in the control loop is t2, and the switch action time of the control loop is N. Then t1>2N and t2>4N.
9. A diagnostic device for a triple DO channel system, characterized in that, This device is applied to the diagnostics of triple-channel DO (Distributed Oscillator) systems. The circuit containing each switch in each channel is connected to the CPU of the other channels, and each switch corresponds to a CPU of one channel. The CPU of this channel and the CPUs of the other channels communicate with a common CPU. The control terminal of each switch in each channel is connected to one end of a CPU, and the circuit containing each switch in each channel is connected to one end of another CPU. Furthermore, two switches within the same channel are connected to different CPUs. The device includes: The first control module is used to control the common CPU to issue synchronous diagnostic pulses; The determination module is used to determine the CPU corresponding to the switch in the control loop based on the synchronous diagnostic pulse; The second control module is used to control the on and off of the control loop through the CPU corresponding to the switch in the control loop; The acquisition module is used to obtain the switch diagnostic results of each CPU.
Citation Information
Patent Citations
DO (Digital out) module of triple modular redundancy system and output voting circuit thereof
CN108494395A
Dynamic diagnosis system and method of switching value output of nuclear safety class data communication system (DCS)
CN110007663A