The invention discloses a method for adopting timing cycle operation can be adjusted by the main synchronization method, system data including: definition of main system parameters set S, t, cycle time synchronization tolerance time C and cycle number n; every department of the Department of each cycle set S array CRC, CRC will send each other; this the Department sends out the data for the LCRC receiving data for RCRC; each department of the Department and the other department are preserved recently C cycles of CRC data; comparing the data lines LCRC and RCRC in each department of each cycle, the arbitrary line LCRC any RCRC data and a data synchronization system that the same main preparation the Department of LCRC; any one RCRC data and a different data, consider that the main preparation department are not synchronized; standby synchronization of each original operation and processing; the main line is not synchronized, making system to stop operation and processing, the main line waiting for synchronous data The main system sends the synchronous data of the system and sends it to the backup system to complete the original operation and processing. The invention has low requirement for hardware performance and communication bandwidth.
【技术实现步骤摘要】
可调节主备系数据同步方法
本专利技术涉及工业自动化控制领域,特别是涉及一种采用定时周期运行的可调节主备系数据同步方法。
技术介绍
工业自动化控制领域现有的主备系数据同步方法主要有两种:第一种:绝对时钟同步,该算法能够实现时钟级的同步,但是对硬件性能和通讯带宽要求很高;第二种:每周期同步,该算法要求每个控制周期,主系都要发送同步数据给备系,以实现主备系的同步,这对通讯带宽和可靠性要求很高。在现有工业自动化控制领域比如铁路信号控制系统,高炉控制系统等对主备系的同步要求处于100ms级,因此采用绝对时钟同步或者每周期同步的方式,总的实现成本会较高,而其数据同步效果并没有质的改变。
技术实现思路
本专利技术要解决的技术问题是提供一种相对现有主备系数据同步方法对硬件性能和通信带宽要求较低采用定时周期运行的可调节主备系数据同步方法。为解决上述技术问题,本专利技术采用定时周期运行的可调节主备系数据同步方法,包括:主备系数据同步是指主备系控制系统中,一系列内部状态和参数都完全一致的状况,这一系列内部状态和参数可以由具体的控制系统来确认。1)将主备系内部状态和参数定义为集合S,周期时间 ...
【技术保护点】
一种采用定时周期运行的可调节主备系数据同步方法,其特征是,包括:1)将主备系内部状态和参数定义为集合S,周期时间定义为t毫秒,主备系不同步的容忍时间为c个周期,周期号为n;2)每个周期内每系都计算得到一个本系集合S的数组CRC,CRC定义为CRC(S,n),并将该数组CRC的数据发送到对方系,本系发送出数组CRC的数据为LCRC,本系接收对方系数组CRC的数据为RCRC;CRC:循环冗余校验;3)每一系均保存本系及对方系最近c个周期数组CRC的数据,如果某个周期没有收到对方系数组RCRC的数据,则认为该周期数组RCRC的数据无效,跳过该周期数组RCRC的数据;则,本系的最近 ...
【技术特征摘要】
1.一种采用定时周期运行的可调节主备系数据同步方法,其特征是,包括:1)将主备系内部状态和参数定义为集合S,周期时间定义为t毫秒,主备系不同步的容忍时间为c个周期,周期号为n;2)每个周期内每系都计算得到一个本系集合S的数组CRC,CRC定义为CRC(S,n),并将该数组CRC的数据发送到对方系,本系发送出数组CRC的数据为LCRC,本系接收对方系数组CRC的数据为RCRC;CRC:循环冗余校验;3)每一系均保存本系及对方系最近c个周期数组CRC的数据,如果某个周期没有收到对方系数组RCRC的数据,则认为该周期数组RCRC的数据无效,跳过该周期数组RCRC的数据;则,本系的最近c个周期的CRC数据为LCRC:LCRC(S,n-c+1)~LCRC(S,n),对方系最近c个周期的CRC数据为RCRC:RCRC(S,n-c+1)~RCRC(S,n);4)每个周期每系对其本系中的数组LCRC和数组RCRC中的数据进行比较,如果本系数组LCRC中任意一个数据和数组RCRC中任意一个数据相同,认为主备系同步;本系数组LCRC的任意一个...
【专利技术属性】
技术研发人员:秦怀阳,李广斌,
申请(专利权)人:上海富欣智能交通控制有限公司,
类型:发明
国别省市:上海,31
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。