CN103457352A - BCD gear information collection method for intelligent substation - Google Patents
BCD gear information collection method for intelligent substation Download PDFInfo
- Publication number
- CN103457352A CN103457352A CN2013103447050A CN201310344705A CN103457352A CN 103457352 A CN103457352 A CN 103457352A CN 2013103447050 A CN2013103447050 A CN 2013103447050A CN 201310344705 A CN201310344705 A CN 201310344705A CN 103457352 A CN103457352 A CN 103457352A
- Authority
- CN
- China
- Prior art keywords
- time
- binary
- coded decimal
- bcd
- state
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 241000272814 Anser sp. Species 0.000 claims abstract description 19
- 238000006073 displacement reaction Methods 0.000 claims description 11
- 238000012790 confirmation Methods 0.000 claims description 8
- 206010044565 Tremor Diseases 0.000 claims 14
- 230000005540 biological transmission Effects 0.000 abstract description 5
- 239000000203 mixture Substances 0.000 abstract description 5
- 230000011664 signaling Effects 0.000 description 4
- 230000015572 biosynthetic process Effects 0.000 description 3
- 238000003786 synthesis reaction Methods 0.000 description 3
- 230000004913 activation Effects 0.000 description 1
- 230000002411 adverse Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 238000011065 in-situ storage Methods 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E60/00—Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y04—INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
- Y04S—SYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
- Y04S10/00—Systems supporting electrical power generation, transmission or distribution
- Y04S10/16—Electric power substations
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y04—INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
- Y04S—SYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
- Y04S10/00—Systems supporting electrical power generation, transmission or distribution
- Y04S10/40—Display of information, e.g. of data or controls
Landscapes
- Remote Monitoring And Control Of Power-Distribution Networks (AREA)
Abstract
Description
技术领域technical field
本发明涉及一种智能变电站用BCD码档位信息采集装置及采集方法。The invention relates to a BCD code stall information collection device and a collection method for an intelligent substation.
背景技术Background technique
在电力系统的运行中,断路器的闭合或开断、隔离开关的位置状态、继电保护和自动装置的工作情况都以闭合和断开这两种遥信状态来表示。按国际电工委员会IEC标准:以“0”表示断开状态,以“1”表示闭合状态。在一次设备侧,这种遥信状态通常以空触点的形式提供给二次设备,而且为了防止触点接触不良等原因造成差错,在触点回路中均加有直流220V或110V电压,并在接入二次装置时,引入光电隔离器件,以避免变电站中强电流冲击对二次装置造成损害。而在变压器中,又经常以多个空触点组合成BCD码的方式来提供相应的档位信息,如常见的以六个空触点为一组,其中两个空触点表示十位,余下四个表示个位,这样就可提供多达39个栏位信息。对于空触点开入的信号,因其投入或断开时均有短时的机械抖动,通常都要求对其进行必要的消抖处理(典型值为10ms),以防止信号的抖动对正常供电造成的不利影响。In the operation of the power system, the closing or opening of the circuit breaker, the position status of the isolating switch, the working conditions of the relay protection and the automatic device are all represented by the two remote signaling states of closing and opening. According to the IEC standard of the International Electrotechnical Commission: "0" means the open state, and "1" means the closed state. On the primary equipment side, this remote signaling state is usually provided to the secondary equipment in the form of an empty contact, and in order to prevent errors caused by poor contact and other reasons, a DC 220V or 110V voltage is added to the contact circuit, and When connecting to the secondary device, a photoelectric isolation device is introduced to avoid damage to the secondary device caused by the strong current impact in the substation. In the transformer, the corresponding gear position information is often provided by combining multiple empty contacts into BCD codes. For example, six empty contacts are commonly used as a group, and two of the empty contacts represent tens. The remaining four represent units, so that up to 39 fields of information can be provided. For the signal input by the empty contact, because there is a short-term mechanical jitter when it is turned on or off, it is usually required to perform necessary debounce processing (typically 10ms) to prevent the jitter of the signal from affecting the normal power supply. adverse effects caused.
另外,在目前的智能变电站中,过程层装置普便采用GOOSE报文来将采集到的一次设备状态信息上送到以太网,从而传输给上层装置(在本申请中指间隔层和站控层装置,以下同)。如图1所示,按IEC61850标准,GOOSE报文在事件状态稳定时,按较长的时间间隔重复发送,在事件状态发生变化时,将进入突发状态,即在较短的时间间隔内,连续发送多帧,然后再回到稳定状态时的发送方式。In addition, in the current smart substation, the process layer device generally uses the GOOSE message to send the collected equipment status information to the Ethernet, and then transmits it to the upper layer device (in this application, it refers to the interval layer and station control layer device) , the same below). As shown in Figure 1, according to the IEC61850 standard, when the event state is stable, the GOOSE message is sent repeatedly at a longer time interval, and when the event state changes, it will enter a burst state, that is, within a short time interval, Send multiple frames in a row and then return to the steady state sending mode.
鉴于这种情况,对于由多个空触点组合而成的BCD码档位信息,在过程层装置中,通常有如下两种方法对其档位信息进行处理:In view of this situation, for the BCD code gear position information composed of multiple empty contacts, in the process layer device, there are usually the following two methods to process the gear position information:
方法一:BCD码档位信息的远方合成。具体如下:将每个空触点视做独立的一个遥信状态,当其发生变化时,经一定的消抖时间确认后,按开关状态将其编码成GOOSE报文的BOOL类型进行发送,其中取值为“Ture”时对应空触点的闭合状态,取值为“False”时对应空触点的断开状态。具体的档位信息,由上层装置对收到的GOOSE报文进行解码,并提取出每个空触点的遥信状态,按对应的权值生成BCD码档位信息。Method 1: remote synthesis of BCD code gear information. The details are as follows: Each empty contact is regarded as an independent remote signaling state. When it changes, after a certain debounce time is confirmed, it is encoded into the BOOL type of the GOOSE message according to the switch state and sent. When the value is "True", it corresponds to the closed state of the empty contact, and when the value is "False", it corresponds to the open state of the empty contact. For specific gear information, the upper device decodes the received GOOSE message, extracts the remote signaling status of each empty contact, and generates BCD code gear information according to the corresponding weight.
方法二:BCD码档位信息的就地合成。具体如下:由过程层装置检测到任一空触点状态发生变化,经消抖确认后,即合成新的BCD码档位,再编码成GOOSE报文中的整形或短整形数据,并按照事件变化时的状态进行报文的突发传送。Method 2: In-situ synthesis of BCD code stall information. The details are as follows: The process layer device detects any change in the status of any empty contact, and after debounce confirmation, it synthesizes a new BCD code position, and then encodes it into the integer or short integer data in the GOOSE message, and changes according to the event The burst transmission of messages is performed according to the state of the time.
在方法一中,将BCD码档位信息的合成工作交由上层装置负责,这将一定程度上增大上层装置的CPU负荷,而且在一个档位信息中的多个空触点短时间内非同步变位时,对于机械触点,同时合上时,一般可相差几个ms。如图2,空触点“BCD-0-1”和“BCD-1-2”分别在t1和t2时刻发生变位,经消抖时间后,分别在t3和t4时刻其变化状态得以确认。按照GOOSE报文发送机制,这将导致过程层装置在t3和t4时刻均会激活GOOSE报文的突发状态,对于由六个空触点组成的BCD码档位,最严重时将在消抖时间内,产生六次GOOSE报文突发,不仅增加了网络流量,而且使上层装置在提取BCD码档位信息时,在较短的时间间隔内(t2-t1,小于消抖时间),提取出不同的档位信息,从而必须执行一定的延时确认机制,否则将可能引起保护策略的不断切换,这就增加了上层装置的复杂性;在方法二中,虽然不需要在上层装置处合成BCD码档位信息,但当出现如图2所示现象时,同样会导致上层装置在短时间内收到不同的档位信息。因此,这两种方法都增加了不必要的网络流量以及上层装置的负担,有必要对其进行改进。In the first method, the composition of the BCD code gear information is assigned to the upper-layer device, which will increase the CPU load of the upper-layer device to a certain extent, and the multiple empty contacts in one gear information will be unreasonable in a short period of time. During synchronous displacement, for mechanical contacts, when they are closed at the same time, there is generally a difference of several ms. As shown in Figure 2, the empty contacts "BCD-0-1" and "BCD-1-2" are displaced at t1 and t2 respectively, and after debounce time, they change at t3 and t4 respectively The status is confirmed. According to the GOOSE message transmission mechanism, this will cause the process layer device to activate the burst state of the GOOSE message at time t3 and t4 . For the BCD code position composed of six empty contacts, the worst case will be at During the debounce time, six GOOSE message bursts are generated, which not only increases the network traffic, but also enables the upper device to extract the BCD code gear information within a short time interval (t 2 -t 1 , less than the debounce Time), different gear information is extracted, so a certain delay confirmation mechanism must be implemented, otherwise it may cause continuous switching of protection strategies, which increases the complexity of the upper device; in method 2, although it is not necessary to The upper device synthesizes BCD code gear position information, but when the phenomenon shown in Figure 2 occurs, it will also cause the upper device to receive different gear information in a short time. Therefore, both of these two methods increase unnecessary network traffic and the burden on the upper device, and it is necessary to improve them.
发明内容Contents of the invention
本发明的目的是提供一种智能变电站用BCD码档位信息采集方法,用以解决现有BCD码档位信息采集方法导致的报文频繁上送和网络中档位信息不稳定的问题。The purpose of the present invention is to provide a BCD code stall information collection method for intelligent substations, which is used to solve the problems of frequent sending of messages and unstable stall information in the network caused by the existing BCD code stall information collection method.
为实现上述目的,本发明提供一种智能变电站用BCD码档位信息采集方法,步骤如下:In order to achieve the above object, the present invention provides a method for collecting BCD code stall information for smart substations, the steps are as follows:
(1)实时采集参与BCD码组成的各空触点信号;(1) Real-time collection of each empty contact signal that participates in the BCD code composition;
(2)在设定的时间T内,每当有一个以上空触点信号的状态发生改变时,则更新T的起始时刻,以最后一个状态发生改变的空触点信号的状态变化时刻为对应的BCD码值的开始变位时刻t;(2) Within the set time T, whenever more than one state of the empty contact signal changes, the starting time of T is updated, and the state change time of the last state of the empty contact signal is The start shift time t of the corresponding BCD code value;
(3)以所述BCD码值的开始变位时刻t为消抖开始时刻延迟一个消抖时间Tx,并在消抖时间Tx结束后确认所述各空触点信号状态,以确定BCD码值。(3) Delay a debounce time Tx with the start time t of the BCD code value as the debounce start time, and confirm the signal status of each empty contact after the debounce time Tx ends to determine the BCD code value .
在确定所述BCD码值后,将BCD码档位信息通过GOOSE报文发送。After the BCD code value is determined, the BCD code gear position information is sent through the GOOSE message.
步骤(1)中,以扫描的方式实时采集所述各空触点信号,且每次采集时均记录当前BCD码值,扫描周期TS<T。In step (1), the empty contact signals are collected in real time by means of scanning, and the current BCD code value is recorded for each collection, and the scanning period T S <T.
步骤(2)中,在时间T内,通过比较相邻两次采集的BCD码值是否变化,判断是否有空触点发生变位,每次变位发生,则重置所述开始变位时刻t。In step (2), within the time T, by comparing whether the BCD code values of two adjacent collections have changed, it is judged whether there is a displacement of the empty contact point, and each time the displacement occurs, the time at which the displacement starts is reset t.
步骤(2)中的设定时间T为一个滑动时间窗,其起始时刻随每个空触点信号状态变化的起始时刻而更新。The set time T in step (2) is a sliding time window, and its starting time is updated with the starting time of each empty contact signal state change.
在操作系统中,设置一个查询任务和一个消抖任务,消抖任务中设置一个消抖队列和一个待消抖队列,操作系统每隔一个查询周期查询一次各空触点信号的状态,并根据上个查询周期中空触点信号的状态来判断此次查询时空触点信号的状态是否改变,并以此来判断是否更新此次查询时的BCD码值,直到所有空触点信号状态都不再变化时,将此次查询时更新的BCD码值送入待消抖队列准备消抖,并在消抖任务时间片到来时,将相应的BCD码值送入消抖队列并根据其开始变位时刻对其进行消抖,在消抖过程中,如果发现为抖动信号,则退出消抖;否则,在消抖结束后,激发GOOSE报文,发送相应的BCD码档位信息。In the operating system, set a query task and a debounce task, set a debounce queue and a debounce queue in the debounce task, the operating system checks the status of each empty contact signal every other query cycle, and according to The state of the empty contact signal in the last query cycle is used to judge whether the state of the space-time contact signal has changed in this query, and to judge whether to update the BCD code value at the time of this query, until all the empty contact signal states are no longer When changing, the BCD code value updated during this query is sent to the debounce queue to prepare for debounce, and when the debounce task time slice arrives, the corresponding BCD code value is sent to the debounce queue and starts changing according to it Debounce it at all times. During the debounce process, if it is found to be a jitter signal, exit the debounce; otherwise, after the end of debounce, activate the GOOSE message and send the corresponding BCD code gear information.
本发明达到的有益效果:本发明在BCD码档位信息的采集过程中,当CPU查询到t1时刻有空触点信号的状态发生改变时,便更新BCD码值,同时将该BCD码信号送入待消抖队列准备消抖,当t2(小于消抖时间Tx)时刻有另外一个组成BCD码的空触点信号状态发生改变时,重新更新BCD码值,并将t2时刻作为新的消抖开始时间,这样当组成它的多个空触点信号短时间内均发生变化时,能够以该组变化触点中最后一个进入稳定状态的变位发生时间为该档位值的开始变位时间,然后再由采集装置对其BCD码值就地合成,并激活对应的GOOSE报文组进入突发状态,避免了不必要的网络报文传输并且有效减轻了上层装置的负担。The beneficial effects achieved by the present invention: in the process of collecting BCD code stall information, when the CPU inquires that the state of the empty contact signal changes at time t1 , the BCD code value is updated, and the BCD code signal is simultaneously Send it to the debounce queue to prepare for debounce. When the state of another empty contact signal that makes up the BCD code changes at time t 2 (less than the debounce time Tx), re-update the BCD code value and use time t 2 as the new The starting time of the debounce, so that when the multiple empty contact signals that make up it change in a short period of time, the shift occurrence time of the last one in the group of changing contacts that enters a stable state can be used as the start of the gear value The bit change time, and then the acquisition device synthesizes its BCD code value on the spot, and activates the corresponding GOOSE message group to enter the burst state, avoiding unnecessary network message transmission and effectively reducing the burden on the upper device.
附图说明Description of drawings
图1是GOOSE报文事件传输机制;Figure 1 is the GOOSE message event transmission mechanism;
图2是空触点信号开入消抖过程;Figure 2 is the debounce process of the open contact signal opening;
图3是应用本发明方法的一个采集装置结构图;Fig. 3 is a structural diagram of a collection device applying the method of the present invention;
图4是本发明一个查询周期内BCD码值的确定过程;Fig. 4 is the determination process of BCD code value in a query period of the present invention;
图5是本发明CPU查询模块工作流程图;Fig. 5 is the working flow chart of CPU inquiry module of the present invention;
图6是本发明CPU消抖模块工作流程图。Fig. 6 is a working flow chart of the CPU debounce module of the present invention.
具体实施方式Detailed ways
下面结合附图对本发明做进一步详细的说明。The present invention will be described in further detail below in conjunction with the accompanying drawings.
如图3,是应用本发明采集方法的一个装置,包括CPU、FPGA芯片和网络芯片,FPGA的各个输入端口分别对应连接一个空触点,用于采集各空触点状态,各空触点与FPGA芯片的输入端口之间还设有光耦器件,BCD-1-2和BCD-1-1为BCD码的十位,BCD-0-1、BCD-0-2、BCD-0-4和BCD-0-8为BCD码的个位,各空触点状态代表的权值如表1所示,例如,BCD-0-1对应的空触点代表BCD码的个位,其权值为1,即:000001,BCD-1-2对应的空触点代表BCD码的十位,其权值为20,即:100000。As shown in Figure 3, it is a device applying the collection method of the present invention, including CPU, FPGA chip and network chip, and each input port of FPGA is respectively connected to an empty contact for collecting the state of each empty contact, each empty contact and There is also an optocoupler device between the input ports of the FPGA chip, BCD-1-2 and BCD-1-1 are the ten digits of the BCD code, BCD-0-1, BCD-0-2, BCD-0-4 and BCD-0-8 is the unit digit of the BCD code, and the weights represented by each empty contact state are shown in Table 1. For example, the empty contact corresponding to BCD-0-1 represents the unit digit of the BCD code, and its weight is 1, namely: 000001, the empty contact corresponding to BCD-1-2 represents the ten digit of the BCD code, and its weight is 20, namely: 100000.
表1Table 1
为满足装置对输入信号不大于1ms的开入分辨率的要求,由FPGA对输入信号进行实时采集,并存入相应的寄存器。该装置采集的输入信号包括普通输入信号,即:不参与组成BCD码的空触点信号,比如刀闸分位,刀闸合位等,其仅以单独的“0”、“1”状态提供给保护和测控装置,还包括由空触点状态组成的BCD码信号。In order to meet the requirements of the device for the input resolution of the input signal not greater than 1ms, the FPGA collects the input signal in real time and stores it in the corresponding register. The input signals collected by the device include ordinary input signals, namely: empty contact signals that do not participate in the composition of BCD codes, such as knife switch position, knife switch close position, etc., which are only provided in the state of "0" and "1". For protection and measurement and control devices, it also includes BCD code signals composed of empty contact states.
本发明方法的具体步骤如下:The concrete steps of the inventive method are as follows:
(1)实时采集参与BCD码组成的各空触点信号;(1) Real-time collection of each empty contact signal that participates in the BCD code composition;
(2)在设定的时间T内,每当有一个以上空触点信号的状态发生改变时,则更新T的起始时刻,以最后一个状态发生改变的空触点信号的状态变化时刻为对应的BCD码值的开始变位时刻t;(2) Within the set time T, whenever there is more than one state change of the empty contact signal, the starting time of T is updated, and the state change time of the last state change of the empty contact signal is The start shift time t of the corresponding BCD code value;
(3)以所述BCD码值的开始变位时刻t为消抖开始时刻延迟一个消抖时间Tx,并在消抖时间Tx结束后确认所述各空触点信号状态,以确定BCD码值。(3) delaying a debounce time Tx with the start displacement time t of the BCD code value as the debounce start time, and confirming the state of each empty contact signal after the debounce time Tx ends, to determine the BCD code value .
如图4所示,t1、t3、t5、t7、t9、t11为各空触点的状态变化时刻,最后一个空触点BCD-1-2变化时刻t11才是对应的BCD码值的开始变位时刻,以t11为开始时刻经过一个消抖时间后,在t12时刻才确定当前时刻的BCD码值。As shown in Figure 4, t1, t3, t5, t7, t9, and t11 are the state change moments of each empty contact, and the change time t11 of the last empty contact BCD-1-2 is the beginning change of the corresponding BCD code value. At the bit time, the BCD code value at the current moment is determined at t12 after a debounce time starting at t11.
本实施例中,CPU设有一个查询模块,每隔0.25ms即通过总线读取一次FPGA的寄存器,从而获取各空触点的当前状态。在CPU中,针对所有的输入信号,建立一个状态数据库来进行管理,其中,对于普通输入信号,数据库中每一项均对应一个空触点信号,并可记录该空触点的状态和状态变化时间,初始化时为0,记录的是空触点的开断状态;对于BCD码信号,组成BCD码的多个空触点信号才对应数据库中的一项,其对应的数据库项记录的是具体的BCD码值,该BCD码值对应的数据库项和普通输入信号对应的数据库项除了状态值所反映的信息不同外,其余特性均保持一致,因此,可将其视为一个虚拟的空触点开入项。In this embodiment, the CPU is provided with a query module, which reads the registers of the FPGA through the bus every 0.25 ms, so as to obtain the current status of each empty contact. In the CPU, a state database is established for all input signals for management. For common input signals, each item in the database corresponds to an empty contact signal, and the state and state change of the empty contact can be recorded. Time, it is 0 at the time of initialization, and it records the on-off state of the empty contact; for BCD code signals, multiple empty contact signals that make up the BCD code correspond to one item in the database, and the corresponding database item records the specific The BCD code value of the BCD code value, the database item corresponding to the BCD code value and the database item corresponding to the ordinary input signal are all consistent except for the information reflected by the state value, so it can be regarded as a virtual empty contact open entry.
CPU中还设有一个消抖模块用以实现ms级的消抖任务,CPU每隔1ms调用一次消抖模块,并且为了有效的进行消抖处理,消抖模块中还设置了待消抖队列和消抖队列,其中,待消抖队列用于存储CPU查询模块检测到的输入信号状态变化信息,如空触点编号、状态变化时间、变化值等,消抖队列用于存储正处于消抖状态的输入信号信息,如空触点编号、消抖开始时间、需消抖时间以及投入消抖时的状态值等。There is also a debounce module in the CPU to implement ms-level debounce tasks. The CPU calls the debounce module every 1ms. Debounce queue, among them, the debounce queue is used to store the state change information of the input signal detected by the CPU query module, such as the empty contact number, state change time, change value, etc., and the debounce queue is used to store the debounce state The input signal information, such as the number of empty contacts, the start time of debounce, the time required for debounce, and the status value when debounce is turned on, etc.
因此,本发明通过CPU中查询模块和消抖模块的配合来完成具体的BCD码档位值的采集、合成、消抖确认、数据库更新和GOOSE突发状态的激活,实现减轻网络流量和上层装置负担的目的。Therefore, the present invention completes the collection, synthesis, debounce confirmation, database update and activation of the GOOSE burst state of the specific BCD code gear value through the cooperation of the query module and the debounce module in the CPU, thereby reducing network traffic and upper device purpose of burden.
如图5,在查询模块中,对于普通输入信号,当CPU查询到当前时间有信号状态和上次查询时的状态不一致时,即将该信号的状态值和本次查询时间送入待消抖队列,等待消抖任务的时间片到来时,再进行处理;对于BCD码档位信息,当发现该档位所包含的空触点当前状态和上次查询时不一致时,并不直接将其送入待消抖队列,而是首先根据上次查询时的BCD码值来更新当前的BCD码值,等本次查询中所有空触点的状态都确认完毕,也就生成了当前时刻的BCD码值,然后再将其和上次查询时生成的BCD码值进行比较,如两者不一致,才将其码值作为状态值和本次查询时间一起送入待消抖队列,等待消抖处理。As shown in Figure 5, in the query module, for ordinary input signals, when the CPU inquires that there is a signal state at the current time that is inconsistent with the state at the time of the last query, it will send the state value of the signal and the time of this query to the queue to be debounced , wait for the time slice of the debounce task to arrive, and then process it; for the BCD code gear information, when it is found that the current state of the empty contact contained in the gear is inconsistent with the last query, it is not directly sent to the Waiting for the debounce queue, but first update the current BCD code value according to the BCD code value at the time of the last query, and when the status of all empty contacts in this query is confirmed, the BCD code value at the current moment is generated , and then compare it with the BCD code value generated during the last query. If the two are inconsistent, the code value will be sent as a status value together with the time of this query to the queue to be debounced, waiting for debounce processing.
如图6,在消抖模块中,首先对待消抖队列进行遍历,对于其中的每一项待消抖信号,均需从待消抖队列中清除,然后再判断其是否已处于消抖状态,这可通过查询其是否已在消抖队列中进行判断,如已在消抖队列中,则说明当前时刻信号正处于抖动状态,需要进一步判断普通输入信号或BCD码信号是否和数据库中对应项的状态值一致,其中空触点比较的为开、断状态值,而BCD码档信号则比较其BCD码值,如果一致,则说明信号状态未发生有效变动,退出消抖,如果不一致,则需以最新的状态变化时间为消抖开始时间重新消抖,这时只需要更新其在消抖队列中的消抖开始时间即可。如不在消抖队列中,则将其清除出待清抖队列后,直接作为新的消抖项送入消抖队列中,以便开始消抖过程。As shown in Figure 6, in the debounce module, the queue to be debounced is first traversed, and each signal to be debounced needs to be cleared from the queue to be debounced, and then it is judged whether it is in the debounced state, This can be judged by checking whether it is already in the debounce queue. If it is already in the debounce queue, it means that the signal is in a state of jitter at the current moment. It is necessary to further judge whether the normal input signal or BCD code signal is consistent with the corresponding item in the database. The state values are consistent, and the empty contact compares the on and off state values, while the BCD code signal compares its BCD code value. If they are consistent, it means that the signal state has not changed effectively, and exit the debounce. If they are inconsistent, you need to Use the latest state change time as the debounce start time to debounce again. At this time, it is only necessary to update the debounce start time in the debounce queue. If it is not in the debounce queue, it will be cleared out of the debounce queue, and directly sent into the debounce queue as a new debounce item, so as to start the debounce process.
一旦对待消抖队列的遍历完毕,就开始进入消抖队列的遍历过程。对其中的每一项消抖信号,需要根据系统当前时间和消抖开始时间的差值,确认其是否已完成消抖,如果已经完成,则将其从消抖队列中清除,并更新数据库中对应项的状态变化时间和状态值,同时,激活对应项的GOOSE事件变化标志,发送输入信号的状态,对于BCD码信号,则直接上送BCD码值,对于普通输入信号,则上送其“0”、“1”状态值。其中,状态变化时间应为消抖开始时间,而不是消抖结束的当前时间,从而保证在随后发出的GOOSE报文中,时间信息能够真实反映该项目所对应空触点的状态变化时间,满足系统对单一硬开入1ms分辨率的要求。如尚未完成,则等待下次调用时继续以上消抖处理过程。Once the traversal of the queue to be debounced is completed, the traversal process of the debounced queue begins. For each debounce signal, it is necessary to confirm whether it has completed debounce according to the difference between the current system time and the debounce start time. If it has been completed, it will be cleared from the debounce queue and updated in the database. The state change time and state value of the corresponding item. At the same time, activate the GOOSE event change flag of the corresponding item to send the state of the input signal. For the BCD code signal, directly send the BCD code value; 0", "1" status value. Among them, the state change time should be the start time of debounce, not the current time when debounce ends, so as to ensure that in the subsequent GOOSE message, the time information can truly reflect the state change time of the empty contact corresponding to the project, satisfying The system requires 1ms resolution for a single hard switch. If it has not been completed, wait for the next call to continue the above debounce processing.
通过以上处理,假如出现图2所示情况,例如:在t1时刻,空触点“BCD-0-1”投入,BCD码档位值更新为1(其余各位假定为断开状态,BCD码档位值初始化为0),因此,将检测出BCD码档位值发生变化,将其对应的虚拟空触点项送入待消抖队列,当消抖模块运行时,将其从待消抖队列中取出,以t1为消抖开始时间开始消抖过程;在t2时刻,空触点“BCD-1-2”投入,BCD码档位值更新为21,因此,又将该虚拟空触点项送入待消抖队列,当系统再次对消抖模块调度时,发现其已经在消抖队列中,则将其消抖开始时间由t1更新为t2重新开始消抖,这就保证了系统仅在空触点“BCD-1-2”的消抖确认时间结束时,即t4时刻,产生一次数据库更新,并激活一次GOOSE报文突发状态,报文中变位时间置为t2,从而使网络中的报文相对稳定,同时无需上层装置对具体档位信息进行延时确认,减轻了上层装置的负担,使其无需进行档位信息的延时确认。如果空触点“BCD-1-2”在t2时刻仅是一个抖动,它在t4之前的某一时刻t5又回到原位,则以t5时刻为消抖开始时刻,到“t5+消抖时间”后再将t1时刻时的码值发送出去,从而相当于在过程层装置上对档位信息做了延时确认。Through the above processing, if the situation shown in Figure 2 occurs, for example: at time t1 , the empty contact "BCD-0-1" is switched on, and the BCD code gear value is updated to 1 (the rest of the bits are assumed to be disconnected, and the BCD code The gear value is initialized to 0), therefore, the change of the BCD code gear value will be detected, and the corresponding virtual empty contact item will be sent to the debounce queue. When the debounce module is running, it will be removed from the debounce queue. Take it out from the queue, and start the debounce process with t 1 as the debounce start time; at t 2 , the empty contact "BCD-1-2" is put in, and the BCD code gear value is updated to 21, so the virtual empty The contact item is sent to the queue to be debounced. When the system schedules the debounce module again, it is found that it is already in the debounce queue, and the debounce start time is updated from t 1 to t 2 to start debounce again. It is ensured that the system only generates a database update and activates a GOOSE message burst state at the end of the debounce confirmation time of the empty contact "BCD-1-2", that is, at time t4 . is t 2 , so that the messages in the network are relatively stable, and at the same time, there is no need for the upper-layer device to delay confirmation of the specific gear information, which reduces the burden on the upper-layer device and makes it unnecessary to delay the confirmation of the gear information. If the empty contact "BCD-1-2" is only a jitter at the time t2, and it returns to its original position at a certain time t5 before t4 , then take the time t5 as the starting time of debounce, until "t 5 + debounce time", and then send the code value at time t1 , which is equivalent to delaying confirmation of the gear position information on the process layer device.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310344705.0A CN103457352B (en) | 2013-08-08 | 2013-08-08 | BCD gear information collection method for intelligent substation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310344705.0A CN103457352B (en) | 2013-08-08 | 2013-08-08 | BCD gear information collection method for intelligent substation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103457352A true CN103457352A (en) | 2013-12-18 |
CN103457352B CN103457352B (en) | 2015-06-24 |
Family
ID=49739436
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310344705.0A Expired - Fee Related CN103457352B (en) | 2013-08-08 | 2013-08-08 | BCD gear information collection method for intelligent substation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103457352B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105743056A (en) * | 2016-04-05 | 2016-07-06 | 华自科技股份有限公司 | Protection constant value switching method, device and system of relay protection device |
CN107547303A (en) * | 2017-07-06 | 2018-01-05 | 中国南方电网有限责任公司 | The method for supporting the IED equipment processing NodesTable of PRP or HSR agreements |
CN109471750A (en) * | 2018-11-07 | 2019-03-15 | 紫光测控有限公司 | A kind of SOE disappears fluttering method and the system of trembling that disappears |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1395350A (en) * | 2002-08-06 | 2003-02-05 | 国电南瑞科技股份有限公司 | Method for quickly-blanking flutter-identifying dislocation of switch quantity |
CN103258420A (en) * | 2013-05-08 | 2013-08-21 | 国家电网公司 | Frequent movement remote signaling processing method of electric system |
-
2013
- 2013-08-08 CN CN201310344705.0A patent/CN103457352B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1395350A (en) * | 2002-08-06 | 2003-02-05 | 国电南瑞科技股份有限公司 | Method for quickly-blanking flutter-identifying dislocation of switch quantity |
CN103258420A (en) * | 2013-05-08 | 2013-08-21 | 国家电网公司 | Frequent movement remote signaling processing method of electric system |
Non-Patent Citations (2)
Title |
---|
任百群: "工程服务新员工必读(主变档位采集技术要点)", 《百度文库》, 25 February 2011 (2011-02-25) * |
欧阳永坚等: "变电站自动化系统遥信去抖方法分析", 《电网技术》, vol. 30, 31 October 2006 (2006-10-31), pages 1 - 4 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105743056A (en) * | 2016-04-05 | 2016-07-06 | 华自科技股份有限公司 | Protection constant value switching method, device and system of relay protection device |
CN107547303A (en) * | 2017-07-06 | 2018-01-05 | 中国南方电网有限责任公司 | The method for supporting the IED equipment processing NodesTable of PRP or HSR agreements |
CN107547303B (en) * | 2017-07-06 | 2021-07-09 | 中国南方电网有限责任公司 | Method for processing NodesTable by IED equipment supporting PRP or HSR protocol |
CN109471750A (en) * | 2018-11-07 | 2019-03-15 | 紫光测控有限公司 | A kind of SOE disappears fluttering method and the system of trembling that disappears |
CN109471750B (en) * | 2018-11-07 | 2022-03-22 | 清能华控科技有限公司 | SOE jitter elimination method and system |
Also Published As
Publication number | Publication date |
---|---|
CN103457352B (en) | 2015-06-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103326963B (en) | Process layer of digitalization transformer substation DEU data exchange unit | |
CN100553241C (en) | Conversation inceptive protocol gateway master-slave conversion system and method thereof | |
CN103067206A (en) | Internet of things across-machine room distributed type full automatic hot standby server switching system | |
CN106451763A (en) | A station-level bus network system of intelligent substation without global synchronization system | |
CN102355056A (en) | Method for improving closing reliability of remote-terminal-unit-architecture-based substation | |
CN107612148B (en) | Distribution network overhead line fault self-healing method and system | |
CN103457352B (en) | BCD gear information collection method for intelligent substation | |
CN104993596A (en) | A distribution network automation remote terminal unit based on embedded multiple ARM processors | |
CN113258547B (en) | Chip-level relay protection device and system | |
CN101707402A (en) | Power system on-off amount remote monitoring module and monitoring method thereof | |
CN103209137A (en) | Configurable high-accuracy control system of time interval frame release Ethernet interface | |
CN111682508A (en) | Differential protection and rapid self-healing method suitable for regional power distribution network | |
CN104202131A (en) | Method for improving transmission real-time of sample data in electric power distribution network system | |
CN101645611B (en) | Self-adaptive re-sampling method for digital relay protection device | |
CN103683502A (en) | Drive control method and drive control device for switch circuit of process level device of intelligent substation | |
CN203589833U (en) | Backup power automatic switching device | |
CN101741145B (en) | Traditional switch intelligent interface device for digitized transformer substation | |
CN103441880A (en) | Method for preventing data from being lost for system having data access with IEC61859 intelligent device during switching of main system and standby system | |
CN101304181B (en) | Double-network control method for transformer substation case mechanism based on facing all-purpose object | |
EP3232646B1 (en) | Apparatus for relaying data transmission in scada system | |
CN103997123B (en) | A smart substation circuit breaker remote control system and method based on sniffing idle state | |
CN110505648A (en) | A kind of anti-lost line method of wireless device | |
CN202475024U (en) | Digital protection device according with IEC61850 standard | |
CN106451376B (en) | A kind of method and device of GOOSE message publication | |
KR101156097B1 (en) | Master redundancy method in Ethernet powerlink |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150624 Termination date: 20190808 |
|
CF01 | Termination of patent right due to non-payment of annual fee |