[go: up one dir, main page]

CN201130309Y - Redundant switching control circuit - Google Patents

Redundant switching control circuit Download PDF

Info

Publication number
CN201130309Y
CN201130309Y CNU2007201252683U CN200720125268U CN201130309Y CN 201130309 Y CN201130309 Y CN 201130309Y CN U2007201252683 U CNU2007201252683 U CN U2007201252683U CN 200720125268 U CN200720125268 U CN 200720125268U CN 201130309 Y CN201130309 Y CN 201130309Y
Authority
CN
China
Prior art keywords
state
module
signal
redundant
control circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
CNU2007201252683U
Other languages
Chinese (zh)
Inventor
刘渝新
孙鸥
裘宏波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Chuanyi Automation Co Ltd
Original Assignee
Chongqing Chuanyi Automation Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Chuanyi Automation Co Ltd filed Critical Chongqing Chuanyi Automation Co Ltd
Priority to CNU2007201252683U priority Critical patent/CN201130309Y/en
Application granted granted Critical
Publication of CN201130309Y publication Critical patent/CN201130309Y/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Hardware Redundancy (AREA)

Abstract

本实用新型涉及自动控制领域,具体涉及一种冗余切换控制电路,包括对称的两模板,各模板包括CPU和切换控制电路,所述切换控制电路用于在主用状态下发出固定频率信号,在接收到固定频率信号后切换到从用状态;用于在从用状态下接收固定频率信号,在接收到的固定频率信号消失后切换到主用状态。本实用新型通过主用模板发出固定频率信号作为冗余设备之间的连接信号,增加了冗余切换控制信号的可靠性,不管什么原因引起主用模板的CPU故障都可立即完成冗余切换控制。此外,由于两冗余模板工作在冗余状态时,拔起主用模板时,从用模板检测不到方波信号则立即切入主用状态,因此可以实现主用、从用模板的带电插拔。

Figure 200720125268

The utility model relates to the field of automatic control, in particular to a redundant switch control circuit, which includes two symmetrical templates, each template includes a CPU and a switch control circuit, and the switch control circuit is used to send a fixed frequency signal in the main state. Switch to the slave state after receiving the fixed frequency signal; it is used to receive the fixed frequency signal in the slave state, and switch to the master state after the received fixed frequency signal disappears. The utility model sends a fixed frequency signal as a connection signal between redundant devices through the main template, which increases the reliability of the redundant switching control signal, and can immediately complete the redundant switching control no matter what causes the CPU failure of the main template . In addition, when the two redundant modules are working in the redundant state, when the master module is pulled out, the slave module will immediately switch to the master state if the square wave signal is not detected, so the live plugging and unplugging of the master and slave modules can be realized .

Figure 200720125268

Description

冗余切换控制电路 Redundant switching control circuit

技术领域 technical field

本实用新型涉及自动控制领域,特别是一种冗余切换控制电路。The utility model relates to the field of automatic control, in particular to a redundant switching control circuit.

技术背景technical background

在要求较高的工业控制系统中,往往需要对关键的控制器和I/O模板采用冗余配置技术,以便系统能够在故障状态下连续运行,同时可以在线对系统进行维修,保证控制对象的安全运行。从成本和实用性角度考虑,通常情况下冗余系统多采用双模冗余技术,一个设备处于主用状态时,另一个设备处于从用状态。In industrial control systems with high requirements, it is often necessary to adopt redundant configuration technology for key controllers and I/O modules, so that the system can continue to operate under fault conditions, and at the same time, the system can be maintained online to ensure the control of the object. safe operation. From the perspective of cost and practicability, usually the redundant system adopts dual-mode redundancy technology. When one device is in the active state, the other device is in the slave state.

在双模冗余结构中,冗余模板之间需要有一些状态信号连接。这些信号与控制逻辑电路连接,再与各自的控制CPU连接,CPU接收这些状态信号,确定该设备运行在主用状态,还是从用状态。通常冗余模板之间的各种状态信号,直接影响切换的可靠性。如何设计冗余设备之间的状态信号成为可靠切换的基础。In a dual-mode redundant structure, some status signal connections are required between redundant modules. These signals are connected to the control logic circuit, and then connected to their respective control CPUs. The CPU receives these status signals to determine whether the device is running in the master state or the slave state. Usually, various status signals between redundant modules directly affect the reliability of switching. How to design status signals between redundant devices becomes the basis for reliable switching.

以前传统的切换方法中,冗余设备之间有切换部件,该部件监视并控制互为冗余的两个设备,同时可接收上位机的切换命令。后来在公开号为CN1275000A专利中,发展了采用互为冗余的设备之间直接采用冗余状态信号连接,互为冗余的两个设备采用设备这些状态线来确定自己是应运行在主用状态还是在从用状态。这种切换方法对共有数据采用了共享数据存储器,使得针对该存储器的故障产生时可靠性大大降低。该方法冗余设备之间的状态信号也较多。In the previous traditional switching method, there is a switching component between redundant devices, which monitors and controls the two redundant devices, and can receive switching commands from the host computer at the same time. Later, in the patent with the publication number CN1275000A, the redundant state signal connection between the mutually redundant devices was developed, and the two mutually redundant devices use these state lines of the devices to determine whether they should run in the main status is still in use. This switching method uses a shared data memory for common data, so that the reliability of the memory is greatly reduced when a fault occurs for the memory. In this method, there are more status signals between redundant devices.

公开号为CN 1591348A,采用与非逻辑与CPU结合构成冗余设备之间的信号连接,切换方法上增加了用逻辑值来判断故障等级,根据等级不同来确定是否切换。同时能提供掉电、复位快速切换,还提供了手动切换方法。The publication number is CN 1591348A, which uses the combination of NAND logic and CPU to form the signal connection between redundant devices. In the switching method, the logical value is used to judge the fault level, and whether to switch is determined according to the different levels. At the same time, it can provide power-off and reset fast switching, and also provides a manual switching method.

这些切换方案中都采用了二值逻辑的原理,由于二值逻辑的安全性较差,如果状态信号接口逻辑锁死在‘1’或‘0’的情况下,特别是逻辑死锁在正常状态时,故障将难以判断。These switching schemes all adopt the principle of binary logic. Due to the poor security of binary logic, if the state signal interface logic is locked at '1' or '0', especially the logic deadlock is in the normal state. , the fault will be difficult to judge.

实用新型内容Utility model content

本实用新型为了解决上述问题,提供一种控制简单、故障率低、信号传输更加安全的冗余切换控制电路。In order to solve the above problems, the utility model provides a redundant switching control circuit with simple control, low failure rate and safer signal transmission.

本实用新型解决其技术问题所采取的技术方案是:一种冗余切换控制电路,每个模板分别包括CPU和切换控制电路,处于主用状态的所述切换控制电路的发出固定频率信号的信号端口,与处于从用状态的切换控制电路的接收状态信号的信号端口相连。The technical solution adopted by the utility model to solve the technical problem is: a redundant switching control circuit, each template includes a CPU and a switching control circuit, and the switching control circuit in the main state sends a signal with a fixed frequency signal The port is connected with the signal port receiving the state signal of the switching control circuit in the slave state.

所述切换控制电路进一步包括发送接口模块和接收接口模块,还包括The switching control circuit further includes a sending interface module and a receiving interface module, and also includes

频率信号输出控制模块,分别与所述CPU和发送接口模块相连;A frequency signal output control module is connected to the CPU and the sending interface module respectively;

状态控制模块,连接在所述频率信号输出控制模块和频率信号检测模块之间;A state control module, connected between the frequency signal output control module and the frequency signal detection module;

频率信号检测模块,还分别与所述接收接口模块和频率信号检测定时器相连;The frequency signal detection module is also connected to the receiving interface module and the frequency signal detection timer respectively;

信号切换命令模块,连接在所述CPU和所述状态控制模块之间;A signal switching command module, connected between the CPU and the state control module;

频率信号检测定时器,与所述频率信号检测模块相连。The frequency signal detection timer is connected with the frequency signal detection module.

还可包括连接在所述状态控制模块和CPU之间的状态比较模块。It may also include a state comparison module connected between the state control module and the CPU.

还可包括与所述状态控制模块相连状态转换延迟定时器。It may also include a state transition delay timer connected to the state control module.

还可包括与所述状态控制模块相连的双向接口模块。It may also include a bidirectional interface module connected with the state control module.

所述CPU可包括串行数据输出端口和串行数据输入端口,处于主用状态的CPU的串行数据输出端口与处于从用状态的CPU的串行数据输入端口相连。The CPU may include a serial data output port and a serial data input port, and the serial data output port of the CPU in the master state is connected to the serial data input port of the CPU in the slave state.

本实用新型通过主用模板发出固定频率信号作为冗余设备之间的连接信号,即通过一个时变的信号表征主用模板的主用状态,增加了冗余切换控制信号的可靠性,因此不管什么原因引起主用模板的CPU故障(例如:复位、晶振停振、掉电、程序跑飞、控制口线故障等),都可立即完成冗余切换控制。而且,在启动时可以实现模板地址的正确识别,通过主、从用模板上电竞争确定主用从用,冗余模板之间通过串行数据通道实现采样同步及诊断信息传送,还可接收上位机的切换操作命令进行切换,进一步增加了冗余切换控制的操作性。此外,由于两冗余模板工作在冗余状态时,拔起主用模板时,从用模板检测不到方波信号则立即切入主用状态,两冗余模板工作在冗余状态时,拔起从用模板时主用模板应不受影响,同样的已有模板工作在主用状态时,插入从用模板主用模板不受干扰,因此可以实现主用、从用模板的带电插拔。The utility model sends a fixed-frequency signal as a connection signal between redundant devices through the main template, that is, a time-varying signal is used to represent the active state of the active template, which increases the reliability of the redundant switching control signal, so regardless of Redundant switching control can be completed immediately if the CPU failure of the main module is caused by any reason (for example: reset, crystal oscillator stop, power failure, program runaway, control port failure, etc.). Moreover, the correct identification of the template address can be realized at startup, and the master and slave can be determined through electrical competition between the master and slave templates. The sampling synchronization and diagnosis information transmission can be realized through the serial data channel between the redundant modules, and the host can also receive The switching operation command of the computer is used to switch, which further increases the operability of the redundant switching control. In addition, when the two redundant modules are working in the redundant state, when the main module is pulled out, the slave module will immediately switch to the active state if the square wave signal is not detected. When the two redundant modules are working in the redundant state, the The main template should not be affected when the slave template is used. When the same existing template is working in the master state, the master template inserted into the slave template will not be disturbed, so the live plugging and unplugging of the master and slave templates can be realized.

附图说明 Description of drawings

图1为本实用新型的控制框图;Fig. 1 is a control block diagram of the utility model;

图2为本实用新型中信号控制电路的原理框图;Fig. 2 is the functional block diagram of signal control circuit in the utility model;

图3为本实用新型的状态控制模块的状态转换示意图;Fig. 3 is a schematic diagram of state transition of the state control module of the present invention;

图4为本实用新型控制过程的流程图。Fig. 4 is the flowchart of the utility model control process.

具体实施方式 Detailed ways

如图1所示,本实用新型的冗余切换控制电路由对称的A、B两个模板构成,每个模板的结构和工作过程相同,下面以其中一侧的A模板为例,包括CPU和信号控制电路,所述CPU具有四个信号端口A1、A5、A6、A7,其中,A1与A5与所述信号控制电路相连,所述信号控制电路还包括A2、A3、A4三个信号端口。As shown in Figure 1, the redundant switching control circuit of the present invention is composed of two symmetrical templates A and B. The structure and working process of each template are the same. The A template on one side is taken as an example below, including CPU and Signal control circuit, the CPU has four signal ports A1, A5, A6, A7, wherein A1 and A5 are connected to the signal control circuit, and the signal control circuit also includes three signal ports A2, A3, A4.

各信号端口的功能如下:The functions of each signal port are as follows:

A1信号端口:在A模板CPU的控制下输出固定频率信号(F)。A1 signal port: output fixed frequency signal (F) under the control of A template CPU.

A2信号端口:将A1信号端口发出的固定频率信号发送给B模板的B3信号端。A2 signal port: Send the fixed frequency signal from the A1 signal port to the B3 signal port of the B template.

A3信号端口:接收来自B模板B2信号端口发出的状态信号,并通过电容CA1输入到A模板的信号控制电路中。A3信号端口用于监视B模板状态。A3 signal port: Receive the status signal from the B2 signal port of the B template, and input it to the signal control circuit of the A template through the capacitor CA1. The A3 signal port is used to monitor the status of the B module.

A4信号端口:为双向信号接口。当A模板为主用时,A4接口为输入接口,接收B模板发来的状态信息;A模板为从用时,A4接口为输出端口,处于高阻态,向B模板发出A模板的状态信息,这里的状态信息也可采用固定频率信号。A4 signal port: It is a two-way signal interface. When the A module is the master, the A4 interface is the input interface to receive the status information sent by the B module; when the A module is the slave, the A4 interface is the output port, which is in a high-impedance state, and sends the status information of the A module to the B module, here The status information can also use a fixed frequency signal.

A5信号端口:信号控制电路向CPU发送的中断请求信号。当A、B模板主、从用状态信息发生变化时,向CPU发出中断请求,CPU根据中断请求改变A模板的运行状态。A5 signal port: the interrupt request signal sent by the signal control circuit to the CPU. When the master and slave state information of A and B templates change, an interrupt request is sent to the CPU, and the CPU changes the running state of the A template according to the interrupt request.

A6信号端口:是A模板的串行数据输出端口,用来向B模板的B7信号端口发出串行数据信号,与B模板进行更多的信息交换。A6 signal port: It is the serial data output port of A module, used to send serial data signal to the B7 signal port of B module, and exchange more information with B module.

A7信号端口:是A模板的串行数据输入端口,用来接收B模板的B6信号端口发出的串行数据信号。冗余模板之间的故障诊断信息通过信号A6、A7相互发送,冗余模板对诊断信息进行比较,根据故障信息确定是否进行冗余切换控制操作。同时冗余模板的状态信息通过主用模板发送给上位机。A7 signal port: It is the serial data input port of the A module, used to receive the serial data signal sent by the B6 signal port of the B module. The fault diagnosis information between redundant modules is sent to each other through signals A6 and A7, and the redundant modules compare the diagnostic information and determine whether to perform redundant switching control operation according to the fault information. At the same time, the status information of the redundant template is sent to the upper computer through the active template.

所述信号控制电路如图2中所示,包括:The signal control circuit is shown in Figure 2, including:

频率信号输出控制模块,在状态控制模块为主状态时,将接收到的CPU发出的固定频率信号通过发送接口模块(即端口A2)发送出去;当状态控制模块为从状态时,上述固定频率信号被禁止发送。The frequency signal output control module, when the state control module is in the main state, sends the fixed frequency signal sent by the received CPU through the sending interface module (i.e. port A2); when the state control module is a slave state, the above fixed frequency signal Prohibited from sending.

状态控制模块,用于发出当前模板为主用或从用状态信号。The state control module is used to send the current template as master or slave state signal.

频率信号检测模块,通过所述接收接口模块(即端口A3)接收到的另一模板发来的信号,根据频率信号检测定时器发出的检测基准信号,检测接收到信号的频率在有效的范围内,表示频率信号有效,使所述状态控制模块处于从用状态;如果超过设定范围,就认为频率信号消失,并检测结果发送给状态控制模块,使状态控制模块进入主用状态,进而由所述状态控制模块控制发出固定频率信号。The frequency signal detection module, through the signal sent by another template received by the receiving interface module (ie port A3), detects that the frequency of the received signal is within the effective range according to the detection reference signal sent by the frequency signal detection timer , indicating that the frequency signal is valid, so that the state control module is in the slave state; if it exceeds the set range, it is considered that the frequency signal disappears, and the detection result is sent to the state control module, so that the state control module enters the master state, and then all The above state control module controls to send out a fixed frequency signal.

信号切换命令模块,接收CPU发出的切换信号,向所述状态控制模块发出切换脉冲,控制所述状态控制信模块进行状态转换;The signal switch command module receives the switch signal sent by the CPU, sends a switch pulse to the state control module, and controls the state control signal module to perform state conversion;

频率信号检测定时器,用于提供频率信号的检测基准;The frequency signal detection timer is used to provide the detection reference of the frequency signal;

状态比较模块,用于将状态控制模块的当前状态和CPU的当前状态进行比较,在状态不一致时向CPU发出状态同步中断请求,如果一致则清除中断。The state comparison module is used to compare the current state of the state control module with the current state of the CPU, send a state synchronization interrupt request to the CPU when the states are inconsistent, and clear the interrupt if they are consistent.

状态转换延迟定时器,在所述状态控制模块进行状态转换过程中或发出状态同步中断请求时,提供所需的延迟时间。The state transition delay timer provides the required delay time during the state transition process of the state control module or when a state synchronization interrupt request is issued.

双向接口模块,用于在状态控制模块处于主用状态下,通过接口A4接收从用模板的状态信息,作为判断冗余模板是否处于从用状态的辅助判断。The bidirectional interface module is used to receive the status information of the slave template through the interface A4 when the status control module is in the master state, as an auxiliary judgment for judging whether the redundant template is in the slave state.

所述状态控制模块中有5种状态,如图3中所示,它们分别为状态“SA、SB、SC、SD、SE”。There are 5 states in the state control module, as shown in FIG. 3 , they are states "SA, SB, SC, SD, SE" respectively.

状态“SA”是模板启动后的状态。模板启动后完成CPU初始化工作,然后向信号控制电路发送启动完毕信号,信号控制电路进入状态“SB”。State "SA" is the state after the template has started. After the template is started, the CPU initialization work is completed, and then the start-up signal is sent to the signal control circuit, and the signal control circuit enters the state "SB".

状态“SB”是模板进入从用状态前,通过所述状态比较模块向CPU申请从用同步的状态。当CPU完成从用同步,向状态比较模块发出已完成从用同步信号后,状态控制模块转入状态“SC”,同时清除中断信号。The state "SB" is a state where the template applies to the CPU for slave synchronization through the state comparison module before the template enters the slave state. When the CPU completes the slave synchronization and sends a completed slave synchronization signal to the state comparison module, the state control module will enter the state "SC" and clear the interrupt signal at the same time.

状态“SC”是模板的从用状态。从用状态由接收到的主用模板的固定频率信号锁定。当检测到主用模板固定频率信号消失,从用状态“SC”进入状态“SD”。State "SC" is the slave state of the template. The slave state is locked by the received fixed frequency signal of the master template. When it is detected that the fixed frequency signal of the master template disappears, the slave state "SC" enters the state "SD".

状态“SD”是模板进入主用状态前,通过状态比较模块向CPU申请主用同步的状态。当CPU完成主用同步,向状态比较模块发出已完成主用同步信号后,状态控制模块转入状态“SE”,同时清除中断信号。在状态“SD”中如果检测到主用信号,状态将转移到状态“SB”。State "SD" is the state in which the template applies to the CPU for master synchronization through the status comparison module before it enters the master state. When the CPU completes the master synchronization and sends a completed master synchronization signal to the state comparison module, the state control module changes to the state "SE" and clears the interrupt signal at the same time. In state "SD" if a master signal is detected, the state will transition to state "SB".

状态“SE”是模板的主用状态。主用状态让频率信号输出控制模块通过发送接口模块输出主用频率信号。同时监测接收接口模块是否还存在主用,如果只有本机为主用状态,则锁定本机主用状态。当有其他主用频率信号被检测到时,主用状态“SE”转入状态“SB”。State "SE" is the active state of the template. The main state allows the frequency signal output control module to output the main frequency signal through the sending interface module. At the same time, monitor whether the receiving interface module is still active. If only this machine is in the active state, lock the active state of the machine. When other main frequency signals are detected, the main state "SE" changes to the state "SB".

由于方波信号的阶跃明显、易于频率的判断,因此所述固定频率信号主要采用固定频率的方波信号。这样,在A模板处于主动的状态下,从A2端口发出固定频率信号时,既可表示A模板存在,又可表示A模板工作正常。而端口A4接收到固定频率方波时也表示B模板存在,同时表示工作正常。特别是在冗余连接端口发生钳位故障时,模板间的信号停留在‘0、1’状态下,这时‘0、1’信号都不能通过电容器件,信号控制电路收不到方波信号时,所述信号控制电路由A5端口向CPU发送中断请求,对应模板将采取相应的冗余切换控制操作。A3信号接收端采用电容隔离输入,再通过内部解调电路获得信号控制电路的内部信号。进入从用状态的B模板,B2口关闭,不发送方波信号。如果从用模板正常,从B4端口发送方波信号给主用模板,表示从用模板已经安装并工作正常。如果从用模板故障,从B4发出的方波信号消失,主用模板收到信息后向上位机发送从用故障信息。运行于主状态的模板将通过A6、A7端口与从用模板交互同步信号,使从用模板输入/输出通道顺序、时间与主用模板同步,使冗余模板之间的采样值或输出值差异最小化,当产生快速切换时,大大减少了由于输入/输出值差异过大带来的干扰。Since the step of the square wave signal is obvious and the frequency is easy to judge, the fixed frequency signal mainly adopts a square wave signal of fixed frequency. In this way, when the A template is in the active state, when a fixed frequency signal is sent from the A2 port, it can indicate that the A template exists, and it can also indicate that the A template is working normally. When port A4 receives a fixed frequency square wave, it also indicates that the B template exists, and at the same time indicates that it is working normally. Especially when a clamp fault occurs at the redundant connection port, the signal between the modules stays in the state of '0, 1', at this time, the '0, 1' signal cannot pass through the capacitor device, and the signal control circuit cannot receive the square wave signal , the signal control circuit sends an interrupt request to the CPU through the A5 port, and the corresponding template will take a corresponding redundant switching control operation. The A3 signal receiving end adopts capacitive isolation input, and then obtains the internal signal of the signal control circuit through the internal demodulation circuit. When the B module enters the slave state, the B2 port is closed and no square wave signal is sent. If the slave module is normal, send a square wave signal from the B4 port to the master module, indicating that the slave module has been installed and is working normally. If the slave module fails, the square wave signal sent from B4 disappears, and the master module sends the slave fault information to the host computer after receiving the information. The module running in the master state will exchange synchronization signals with the slave module through the A6 and A7 ports, so that the input/output channel sequence and time of the slave module will be synchronized with the master module, so that the sampling value or output value difference between redundant modules Minimized, greatly reducing disturbances due to large differences in input/output values when fast switching occurs.

参照图1中所示的A、B两冗余配置的模板,本实施例的工作过程,如图4中所示:With reference to the templates of A and B two redundant configurations shown in Figure 1, the working process of this embodiment is as shown in Figure 4:

步骤1:启动和延时,两模板启动后经过几个连续的延时时间,等待各个端口信号稳定。Step 1: Start and delay. After the two modules start, after several consecutive delay times, wait for the signal of each port to stabilize.

当两个冗余模板同时启动,冗余模板进入初始运行状态后,各自模板初始化、自检、互检,先完成的模板进入主用状态,这里以A模板先进入主用为例,通过主用状态A2端口向另一个模板发送固定频率信号,另一B模板通过B3端口接收到该信号口后,将进入从用状态。此时,处于主用状态的A模板通过A4端口进入接收信号的状态。When two redundant templates are started at the same time and the redundant templates enter the initial running state, each template is initialized, self-inspected, and mutually checked. Use the state A2 port to send a fixed frequency signal to another module, and the other B module will enter the slave state after receiving the signal port through the B3 port. At this time, the A template in the active state enters the state of receiving signals through the A4 port.

步骤2:冗余模板接口和地址检查,检查冗余模板A、B之间的接口和地址是否正确。如果地址正确则转入步骤4进入主用模板检查,如果不正确则转入步骤3。Step 2: Check the interface and address of the redundant template, check whether the interface and address between redundant templates A and B are correct. If the address is correct, go to step 4 to check the main template; if not, go to step 3.

步骤3:停止模板运行,初始化检查出错,停止模板A、B的运行并发出本地报警。Step 3: Stop the operation of the template, if there is an error in the initialization check, stop the operation of templates A and B and issue a local alarm.

步骤4:判断主用模板是否存在,如果存在则转入步骤5进行从模板的申请,否则转入步骤10进行主用模板的申请。Step 4: Determine whether the master template exists, if so, go to step 5 to apply for the slave template, otherwise go to step 10 to apply for the master template.

步骤5:从用模板申请,向B模板的CPU发出本地模板进入从用的中断申请信号。Step 5: Apply for the slave module, and send an interrupt request signal for the local module to enter the slave module to the CPU of module B.

步骤6:模板是否进入从用状态,B模板从用申请得到响应后,使B模板转入步骤8,即进入从用状态;否则,如果申请没有得到响应,则转入步骤7,检测冗余主用是否存在。Step 6: Whether the template enters the slave state, after template B receives a response from the slave application, make the B template transfer to step 8, that is, enter the slave state; otherwise, if the application does not receive a response, then transfer to step 7 to detect redundancy Whether the primary user exists.

步骤7:冗余主用是否存在,如果B模板还未进入从用状态,此时进一步判断对应的A模板的主用状态信号是否存在或消失,如果存在则转入步骤10,使B模板进入主用模板申请流程。Step 7: Whether the redundant master exists, if the B module has not entered the slave state, then further judge whether the corresponding A module's master status signal exists or disappears, and if it exists, go to step 10 to make the B module enter Main template application process.

步骤8:从用模板状态:B模板得到从用模板申请响应后,进入从用状态。Step 8: Slave template state: After B template gets the response of the slave template application, it enters the slave state.

步骤9:监视冗余模板主用是否存在,通过处于从用状态的B模板的B3端口监视主用模板信号,如果主用信号消失,则转入步骤10,即从用模板进入主用模板申请。Step 9: Monitor whether the master of the redundant module exists, and monitor the signal of the master module through the B3 port of the B module in the slave state. If the master signal disappears, go to step 10, that is, the slave module enters the master module to apply .

步骤10:主用模板申请,如果没有主用模板或原A模板的主用信号消失,由B模板向CPU发出进入主用的中断申请信号。Step 10: Apply for the master module. If there is no master module or the master signal of the original A module disappears, the B module sends an interrupt application signal to the CPU to enter the master.

步骤11:模板是否进入主用状态,B模板主用申请得到响应后,进入主用状态,如果没有相应,则转入步骤12,检测冗余主用即A模板是否已经恢复。Step 11: Whether the template enters the active state. After the main application of the B template is responded, it enters the active state. If there is no response, go to step 12 to check whether the redundant active use, that is, the A template, has been restored.

步骤12:冗余主用恢复,如果B模板还未进入主用状态,对应A模板的主用状态信号恢复,则再转入步骤5,使B模板进入从用模板申请流程。Step 12: Restoration of redundant primary use. If template B has not yet entered the active state and the corresponding active status signal of template A is restored, then go to step 5 to make template B enter the slave template application process.

步骤13,主用模板状态,B模板的主用申请得到响应后,进入主用状态。Step 13, the active template state. After the active application of the B template is responded, it enters the active state.

步骤14,监视冗余模板主用状态,进入主用状态的B模板监视A模板信号,如果A模板的信号重新出现,作为主用B模板重新进入从用模板申请流程。Step 14, monitor the active status of the redundant template, and the B template that enters the active state monitors the signal of the A template, and if the signal of the A template reappears, re-enter the slave template application process as the master B template.

本实用新型由于采用固定频率信号作为冗余设备之间的连接信号,增加了冗余切换控制信号的可靠性,因此不管什么原因引起主用模板的CPU故障(例如:复位、晶振停振、掉电、程序跑飞、控制口线故障等),都可立即完成冗余切换控制。而且,在启动时可以实现模板地址的正确识别,通过主、从用模板上电竞争确定主用从用,冗余模板之间通过串行数据通道实现采样同步及诊断信息传送,还可接收上位机的切换操作命令进行切换,进一步增加了冗余切换控制的操作性。此外,由于两冗余模板工作在冗余状态时,拔起主用模板时,从用模板检测不到方波信号则立即切入主用状态,两冗余模板工作在冗余状态时,拔起从用模板时主用模板应不受影响,同样的已有模板工作在主用状态时,插入从用模板主用模板不受干扰,因此可以实现主用、从用模板的带电插拔。Because the utility model adopts the fixed frequency signal as the connection signal between redundant devices, the reliability of the redundant switching control signal is increased, so no matter what causes the CPU failure of the main template (for example: reset, crystal vibration stop, drop Power failure, program runaway, control port line failure, etc.), the redundant switching control can be completed immediately. Moreover, the correct identification of the template address can be realized at startup, and the master and slave can be determined through electrical competition between the master and slave templates. The sampling synchronization and diagnosis information transmission can be realized through the serial data channel between the redundant modules, and the host can also receive The switching operation command of the computer is used to switch, which further increases the operability of the redundant switching control. In addition, when the two redundant modules are working in the redundant state, when the main module is pulled out, the slave module will immediately switch to the active state if the square wave signal is not detected. When the two redundant modules are working in the redundant state, the The main template should not be affected when the slave template is used. When the same existing template is working in the master state, the master template inserted into the slave template will not be disturbed, so the live plugging and unplugging of the master and slave templates can be realized.

以上对本实用新型所提供的冗余切换控制电路进行了详细介绍,本文中应用了具体个例对本实用新型的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本实用新型的方法及其核心思想;同时,对于本领域的一般技术人员,依据本实用新型的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本实用新型的限制。The redundant switching control circuit provided by the utility model has been introduced in detail above, and the principle and implementation of the utility model have been explained by using specific examples in this paper. The description of the above embodiments is only used to help understand the utility model. method and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the utility model, there will be changes in the specific implementation and application scope. In summary, the content of this specification should not be understood as Limitations on the Invention.

Claims (6)

1. 一种冗余切换控制电路,包括对称的两个模板,其特征在于:每个模板分别包括CPU和切换控制电路,处于主用状态的所述切换控制电路的发出固定频率信号的信号端口,与处于从用状态的切换控制电路的接收状态信号的信号端口相连。1. A redundant switching control circuit, comprising two symmetrical templates, is characterized in that: each template comprises CPU and switching control circuit respectively, and the signal port of the said switching control circuit in active state sends fixed frequency signal , connected to the signal port of the switching control circuit in the slave state for receiving the state signal. 2. 根据权利要求1所述的冗余切换控制电路,其特征在于:所述切换控制电路进一步包括发送接口模块和接收接口模块,还包括2. The redundant switching control circuit according to claim 1, characterized in that: the switching control circuit further includes a sending interface module and a receiving interface module, and also includes 频率信号输出控制模块,分别与所述CPU和发送接口模块相连;A frequency signal output control module is connected to the CPU and the sending interface module respectively; 状态控制模块,连接在所述频率信号输出控制模块和频率信号检测模块之间;A state control module, connected between the frequency signal output control module and the frequency signal detection module; 频率信号检测模块,还分别与所述接收接口模块和频率信号检测定时器相连;The frequency signal detection module is also connected to the receiving interface module and the frequency signal detection timer respectively; 信号切换命令模块,连接在所述CPU和所述状态控制模块之间;A signal switching command module, connected between the CPU and the state control module; 频率信号检测定时器,与所述频率信号检测模块相连。The frequency signal detection timer is connected with the frequency signal detection module. 3. 根据权利要求2所述的冗余切换控制电路,其特征在于:还包括连接在所述状态控制模块和CPU之间的状态比较模块。3. The redundant switching control circuit according to claim 2, further comprising a state comparison module connected between the state control module and the CPU. 4. 根据权利要求2所述的冗余切换控制电路,其特征在于:还包括与所述状态控制模块相连状态转换延迟定时器。4. The redundant switching control circuit according to claim 2, further comprising a state transition delay timer connected to the state control module. 5. 根据权利要求2所述的冗余切换控制电路,其特征在于:还包括与所述状态控制模块相连的双向接口模块。5. The redundant switching control circuit according to claim 2, further comprising a bidirectional interface module connected to the state control module. 6. 根据权利要求1~5中任一项所述的冗余切换控制电路,其特征在于:所述CPU包括串行数据输出端口和串行数据输入端口,处于主用状态的CPU的串行数据输出端口与处于从用状态的CPU的串行数据输入端口相连。6. The redundant switching control circuit according to any one of claims 1 to 5, wherein the CPU includes a serial data output port and a serial data input port, and the serial port of the CPU in the active state The data output port is connected with the serial data input port of the CPU in slave state.
CNU2007201252683U 2007-09-18 2007-09-18 Redundant switching control circuit Expired - Lifetime CN201130309Y (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNU2007201252683U CN201130309Y (en) 2007-09-18 2007-09-18 Redundant switching control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNU2007201252683U CN201130309Y (en) 2007-09-18 2007-09-18 Redundant switching control circuit

Publications (1)

Publication Number Publication Date
CN201130309Y true CN201130309Y (en) 2008-10-08

Family

ID=40018172

Family Applications (1)

Application Number Title Priority Date Filing Date
CNU2007201252683U Expired - Lifetime CN201130309Y (en) 2007-09-18 2007-09-18 Redundant switching control circuit

Country Status (1)

Country Link
CN (1) CN201130309Y (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436409A (en) * 2011-11-04 2012-05-02 青岛海信网络科技股份有限公司 Redundancy management and switching method of dual-computer redundancy system
CN104714406A (en) * 2014-12-31 2015-06-17 重庆川仪自动化股份有限公司 Redundancy switching method of input and output module
CN104808482A (en) * 2015-03-06 2015-07-29 南车株洲电力机车有限公司 Failure redundancy treatment method and system
WO2017214931A1 (en) * 2016-06-16 2017-12-21 Honeywell International Inc. Hardware assist mechanisms for alive detection of redundant devices
CN108319256A (en) * 2018-02-08 2018-07-24 华自科技股份有限公司 Controller redundancy switching method, device, computer equipment and storage medium
CN115167326A (en) * 2022-08-25 2022-10-11 中国核动力研究设计院 Hard logic basic function circuit for nuclear power plant safety level DCS

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436409A (en) * 2011-11-04 2012-05-02 青岛海信网络科技股份有限公司 Redundancy management and switching method of dual-computer redundancy system
CN102436409B (en) * 2011-11-04 2013-09-11 青岛海信网络科技股份有限公司 Redundancy management and switching method of dual-computer redundancy system
CN104714406A (en) * 2014-12-31 2015-06-17 重庆川仪自动化股份有限公司 Redundancy switching method of input and output module
CN104714406B (en) * 2014-12-31 2017-06-09 重庆川仪自动化股份有限公司 Input/output module redundancy switching method
CN104808482A (en) * 2015-03-06 2015-07-29 南车株洲电力机车有限公司 Failure redundancy treatment method and system
CN104808482B (en) * 2015-03-06 2017-03-08 南车株洲电力机车有限公司 The method and system that a kind of fault redundance is processed
WO2017214931A1 (en) * 2016-06-16 2017-12-21 Honeywell International Inc. Hardware assist mechanisms for alive detection of redundant devices
CN108319256A (en) * 2018-02-08 2018-07-24 华自科技股份有限公司 Controller redundancy switching method, device, computer equipment and storage medium
CN108319256B (en) * 2018-02-08 2020-03-20 华自科技股份有限公司 Controller redundancy switching method and device, computer equipment and storage medium
CN115167326A (en) * 2022-08-25 2022-10-11 中国核动力研究设计院 Hard logic basic function circuit for nuclear power plant safety level DCS

Similar Documents

Publication Publication Date Title
CN101131570B (en) Redundancy switch-over control method and control circuit thereof
CN201130309Y (en) Redundant switching control circuit
CN101271332B (en) Compact integrated redundancy controller and control method thereof
CN201909961U (en) Redundancy control system
CN202004776U (en) Redundant Hot Switching System
CN101378267A (en) Primary and secondary switching device, and switching method using the same
CN201604665U (en) Communication interface equipment of train control center
CN107634855A (en) A kind of double hot standby method of embedded system
CN102724092A (en) Profibus-DP communication protocol redundancy master station
CN100573382C (en) Based on I 2The communication system of C and communication means
CN101247412B (en) Device and method for dual-channel detection of physical layer/medium access control layer status
CN105335328B (en) A kind of removing method, system and the electronic equipment of backboard I2C bus deadlock
CN115328706A (en) Comprehensive control method and system for dual-CPU redundant architecture
KR100928187B1 (en) Fault-safe structure of dual processor control unit
US8737419B2 (en) Network concentrator and method of controlling the same
CN117111525A (en) Multi-CPU-based trusted redundant control system and control method
CN201846346U (en) Dual-redundancy heat switching system of controller area network (CAN) bus
CN101397020B (en) Intelligent acquisition drive equipment
CN114253616B (en) AMD platform-based server mainboard and boot control method and system thereof
CN104200148B (en) A kind of smart card redundancy switching method based on autonomous domestic redundant server
CN210270871U (en) Redundant fault-tolerant computer serial port gating device
CN119917165A (en) A civil aircraft flight control electronic system and its instruction validity conversion method
CN1972142B (en) Communication equipment single-board main-standby switchover device and implementation method
CN101281510A (en) A kind of dual I2C bus setting method and dual I2C bus system
CN217739765U (en) Control circuit and redundant backup system

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: CHONGQING CHUANYI AUTOMATION CO., LTD.

Free format text: FORMER OWNER: CHONGQING SICHUAN INSTRUMENT COMPLEX CO.,LTD.

Effective date: 20090522

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20090522

Address after: No. 1, people's village, Beibei District, Chongqing, China: 400700

Patentee after: Chongqing Sichuan Instrument Complex Co., Ltd.

Address before: No. 61, Mount Huangshan Avenue, North New District, Chongqing: 401121

Patentee before: Chongqing Sichuan Instrument Complex Co., Ltd.

CX01 Expiry of patent term

Granted publication date: 20081008

CX01 Expiry of patent term