Search

CN-121979046-A - FPGA-based intelligent IO scanning control method, system, medium and device

CN121979046ACN 121979046 ACN121979046 ACN 121979046ACN-121979046-A

Abstract

The invention discloses an intelligent IO scanning control method, system, medium and equipment based on FPGA, wherein the method comprises the steps of monitoring a scanning state enabling bit through a scanning state monitoring module; when the data is in an enabling state, the initializing module initializes the data, refreshes the data to an initial determining state to obtain initialized data, performs filtering processing to obtain the filtered data, stores the filtered data based on a registered enabling signal, meanwhile, the scanning period control module intervenes, updates the scanning state of the system based on period enabling to perform a new turn of turn-on and turn-off scanning process, detects the initialized data in the DO data channel, and when the effective data is detected, outputs the data to the DO driving control module through controlling the enabling signal, and the DO driving control module receives the turn-on instruction and inputs the command to the DO driving interlocking module to execute corresponding driving operation. The method has flexible and configurable scanning period, fast scanning frequency and strong anti-interference capability, and greatly reduces the running load of the processor.

Inventors

  • SHI XIONGFENG
  • HUO YINLONG
  • CHEN CONGJING
  • Zang jia
  • HUANG JIAJUN
  • WU HONGJIE
  • JIANG RUI

Assignees

  • 南京国电南自电网自动化有限公司

Dates

Publication Date
20260505
Application Date
20260122

Claims (10)

  1. 1. An intelligent IO scanning control method based on an FPGA is characterized by comprising an FPGA intelligent IO controller which is respectively in communication connection with a protection host system and an intelligent IO executor, wherein the method is executed by the FPGA intelligent IO controller and comprises the following steps: Monitoring a scanning state enabling bit through a scanning state monitoring module; when the scanning state enabling bit is in the enabling state, the initialization module initializes the data, refreshes the data into an initial determination state, and obtains initialized data; Filtering the initialized data to obtain filtered data, and storing the filtered data based on a register enabling signal; Meanwhile, a scanning period control module intervenes, and a new turn-in and turn-out scanning process is performed based on period enabling updating system scanning state; and detecting initialized data in the DO data channel, and outputting the data to the DO drive control module through a control enabling signal when effective data is detected, wherein the DO drive control module receives an opening instruction and inputs the opening instruction to the DO drive interlocking module to execute corresponding driving operation.
  2. 2. The FPGA-based intelligent IO scanning control method of claim 1, wherein the initialization module includes DO data initialization for ensuring a steady state of DO data to avoid malfunction.
  3. 3. The intelligent IO scanning control method based on the FPGA of claim 1, wherein the filtering data is obtained by filtering interference of a DI data filtering module on the DI data, and a delay voting mechanism is adopted in the process, and the method specifically comprises the following steps: Monitoring DI data, starting a delay timer when the DI data starts to change, continuously sampling the DI data in a timing time, and judging that the DI data is interfered and the DO state is not updated if the DI data monitored in the timing period is turned to be in an original state and does not change; if the DI data monitored in the timing period is turned over and changed, the delay timing is finished, and when the timing time overflows, the DO data is refreshed.
  4. 4. The intelligent IO scanning control method based on the FPGA of claim 1, wherein the filtered data is input to a DI data storage control module for register control.
  5. 5. The intelligent IO scanning control method based on the FPGA according to claim 1, wherein the scanning period control module comprises a period counter, the period size is controlled through the range of the configured period counter, and the maximum scanning precision is 。
  6. 6. The FPGA-based intelligent IO scanning control method of claim 1, wherein initialized data in the DO data channel is detected by data remainder calculation, and when valid data exists, a DO output control enable signal is output to the on-off drive control module; And the DO driving control module latches and outputs data of the enabling channel through the DFF trigger in the DO driving control module, so as to improve the reliability of DO data output and avoid interference output to a system.
  7. 7. The intelligent IO scanning control method based on the FPGA according to claim 1, wherein the DI data and the DO data are interacted through the intelligent IO message and can be flexibly expanded.
  8. 8. An intelligent IO scanning control system based on an FPGA is characterized by comprising an FPGA intelligent IO controller which is respectively in communication connection with a protection host system and an intelligent IO executor, and comprising: the scanning enabling monitoring module is used for monitoring the scanning state enabling bit through the scanning state monitoring module; The scanning enabling initialization module is used for initializing data when the scanning state enabling bit is in an enabling state, refreshing the data into an initial determination state and obtaining initialized data; The data input control module is used for carrying out filtering processing on the initialized data to obtain filtering data and storing the filtering data based on a register enabling signal; the scanning period control module is used for updating the scanning state of the system based on period enabling through intervention of the scanning period control module, and carrying out a new turn of scanning process of entering and exiting; The DO driving control module receives the opening instruction and inputs the opening instruction to the DO driving interlocking module to execute corresponding driving operation when effective data are detected.
  9. 9. A computer readable storage medium having stored thereon a computer program/instruction, which when executed by a processor, implements the steps of the FPGA-based intelligent IO scanning control method of any of claims 1 to 7.
  10. 10. A computer apparatus/device/system comprising: A memory for storing computer programs/instructions; A processor for executing the computer program/instructions to implement the steps of the FPGA-based intelligent IO scanning control method of any one of claims 1 to 7.

Description

FPGA-based intelligent IO scanning control method, system, medium and device Technical Field The invention relates to an intelligent IO scanning control method, system, medium and equipment based on an FPGA, and belongs to the field of relay protection control. Background With the development of novel power systems in China, the construction of intelligent substations is more and more concerned. Relay protection is used as a key of intelligent substation operation, and the relay protection has diversified functions of information acquisition, feedback, intelligent control and the like while providing safety protection for the substation. The I/O plug-in is a part of the relay protection device, comprises an intelligent opening board and an intelligent opening board, and realizes the relay protection function by controlling the opening/opening plug-in. All the switching operations have extremely high reliability requirements. The traditional on/off control is usually controlled by a microprocessor, the response speed of the control is low, the system scheduling resources are occupied, the anti-interference capability is insufficient, the system is easy to not move, and the disastrous results are caused. Therefore, an IO scan control method capable of performing fast scan and having high anti-interference capability is needed to meet the needs of various applications of the system. Disclosure of Invention The invention aims to provide an intelligent IO scanning control method, system, medium and equipment based on FPGA, wherein the intelligent IO scanning control system is used for scanning, the IO scanning resolution can reach 100Khz, the system response speed can reach nanosecond level, the computing resource of a processor is greatly reduced, the anti-interference capability of the system is improved through a digital filtering technology, and the intelligent IO scanning control method, the system and the medium can be rapidly adapted to various application requirements. In order to achieve the above purpose, the invention is realized by adopting the following technical scheme. In a first aspect, the present invention provides an intelligent IO scanning control method based on an FPGA, including an FPGA intelligent IO controller in communication connection with a protection host system and an intelligent IO executor, respectively, where the method is executed by the FPGA intelligent IO controller, and includes: Monitoring a scanning state enabling bit through a scanning state monitoring module; when the scanning state enabling bit is in the enabling state, the initialization module initializes the data, refreshes the data into an initial determination state, and obtains initialized data; Filtering the initialized data to obtain filtered data, and storing the filtered data based on a register enabling signal; Meanwhile, a scanning period control module intervenes, and a new turn-in and turn-out scanning process is performed based on period enabling updating system scanning state; and detecting initialized data in the DO data channel, and outputting the data to the DO drive control module through a control enabling signal when effective data is detected, wherein the DO drive control module receives an opening instruction and inputs the opening instruction to the DO drive interlocking module to execute corresponding driving operation. The intelligent IO scanning controller based on the FPGA is used for analyzing the data and generating DO data, and finally executing the DO data through internal logic control, and in the uplink data link, the acquired DI data are placed into the intelligent IO scanning controller based on the FPGA for scanning, and the intelligent IO scanning controller based on the FPGA processes the data by using a filtering mechanism based on time delay voting, so that interference signals are effectively filtered, stable DI data after filtering are obtained, and the stable DI data are uniformly sent to the protection host system. Further, the intelligent IO scanning controller based on the FPGA monitors the scanning enabling state of the system in real time, when the scanning enabling state is monitored, the controller firstly enters a scanning initialization state, refreshes all IO ports into an initial determination state, and is used for eliminating interference generated during switching states so as to prevent misoperation of a rear-end executor, and after initialization is completed, the controller triggers an on-off process in parallel: for the start-in control process, data are input into a DI data filtering module for filtering, stable input of DI data is ensured through jitter elimination treatment, and filtered data are output to a DI data storage control module through a register enabling signal after interference is filtered; For the start-up control process, whether the acquired data has refreshing change with the data stored before is monitored in real time, if the data is c