[go: up one dir, main page]

CN113656145B - Script scheduling calculation method for AGC control device of hydropower station - Google Patents

Script scheduling calculation method for AGC control device of hydropower station Download PDF

Info

Publication number
CN113656145B
CN113656145B CN202110946144.6A CN202110946144A CN113656145B CN 113656145 B CN113656145 B CN 113656145B CN 202110946144 A CN202110946144 A CN 202110946144A CN 113656145 B CN113656145 B CN 113656145B
Authority
CN
China
Prior art keywords
script
calculation
scripts
control device
agc control
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.)
Active
Application number
CN202110946144.6A
Other languages
Chinese (zh)
Other versions
CN113656145A (en
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.)
Nanjing Nari Water Conservancy And Hydropower Technology Co ltd
NARI Group Corp
China Three Gorges Construction Engineering Co Ltd
Original Assignee
Nanjing Nari Water Conservancy And Hydropower Technology Co ltd
NARI Group Corp
China Three Gorges Construction Engineering 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 Nanjing Nari Water Conservancy And Hydropower Technology Co ltd, NARI Group Corp, China Three Gorges Construction Engineering Co Ltd filed Critical Nanjing Nari Water Conservancy And Hydropower Technology Co ltd
Priority to CN202110946144.6A priority Critical patent/CN113656145B/en
Publication of CN113656145A publication Critical patent/CN113656145A/en
Application granted granted Critical
Publication of CN113656145B publication Critical patent/CN113656145B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • G06F9/45508Runtime interpretation or emulation, e g. emulator loops, bytecode interpretation
    • G06F9/45512Command shells
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/544Buffers; Shared memory; Pipes
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/545Gui

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Supply And Distribution Of Alternating Current (AREA)

Abstract

The invention discloses a hydropower station AGC control device script scheduling calculation method, which comprises the following steps: scheduling calculation is carried out on the script according to the script calculation strategy; judging whether the calculation result changes, if not, ending the calculation of the current script and scanning the next script; if yes, judging whether the current script has an associated script, if not, ending the calculation of the current script, and scanning the next script; if yes, all associated scripts of the current script are brought into the steps until all scripts in the script file and associated script scheduling calculation are completed. The invention can improve the response speed and the expandability of the AGC control device, improve the adjustment speed, the accuracy and the reliability of the hydropower AGC, and meet the requirements of a power grid on the hydropower frequency modulation and peak regulation capacity.

Description

一种水电站AGC控制装置脚本调度计算方法A script dispatch calculation method for AGC control device of hydropower station

技术领域Technical Field

本发明涉及一种水电站AGC控制装置脚本调度计算方法,属于水电站自动控制技术领域。The invention relates to a script dispatching calculation method for an AGC control device of a hydropower station, belonging to the technical field of automatic control of hydropower stations.

背景技术Background technique

随着我国智能电网的建设及大规模风光等具有波动性和间歇性特征的新能源大规模接入电网,电网的调频调峰、消纳压力巨大,对水电提出了更严格的调频调峰速率要求,提高水电AGC调节速率、精度及准确性对于提高电网灵活性、保证电网安全稳定高效运行具有重要意义。With the construction of smart grid in my country and the large-scale access of new energy sources with volatility and intermittent characteristics such as wind and solar power to the grid, the grid is under tremendous pressure to regulate frequency, peak and absorb power. This has put more stringent requirements on the frequency and peak rate of hydropower. Improving the regulation rate, precision and accuracy of hydropower AGC is of great significance to improving the flexibility of the grid and ensuring the safe, stable and efficient operation of the grid.

传统水电站AGC软件一般运行在计算机监控系统服务器上,由数据采集模块、预处理模块、开停机模块、负荷分配模块、输出处理模块等组成,通过循环定时执行的方式读入计算机监控系统实时数据及电网负荷调度指令,考虑水电站及机组的运行限制条件,在保证水电站安全运行的前提下,以经济运行为原则,确定水电站机组运行台数、运行机组的组合和机组间的负荷分配,满足电网对水电站出力要求。Traditional hydropower station AGC software generally runs on a computer monitoring system server. It consists of a data acquisition module, a preprocessing module, a start-stop module, a load distribution module, an output processing module, etc. It reads real-time data from the computer monitoring system and grid load dispatching instructions through a cyclic timing execution method, considers the operating restrictions of the hydropower station and the units, and determines the number of operating units in the hydropower station, the combination of operating units, and the load distribution between units on the principle of economic operation, while ensuring the safe operation of the hydropower station, so as to meet the grid's output requirements for the hydropower station.

但是,传统AGC软件与水电站监控系统软件和通讯方式耦合度高、现场实施繁琐,采用循环定时执行的方式,程序执行效率低,响应速率慢,不能满足电网对水电机组快速调频调峰响应的要求;为了解决上述问题,本申请提出了一种水电站AGC控制装置脚本调度计算方法。However, traditional AGC software is highly coupled with the hydropower station monitoring system software and communication methods, and its on-site implementation is cumbersome. It adopts a cyclic timing execution method, with low program execution efficiency and slow response rate, and cannot meet the grid's requirements for rapid frequency and peak regulation of hydropower units. In order to solve the above problems, this application proposes a script scheduling calculation method for an AGC control device in a hydropower station.

发明内容Summary of the invention

本发明的目的在于克服现有技术中的不足,提供一种水电站AGC控制装置脚本调度计算方法,能够提高AGC控制装置的响应速率和可扩展性,提高水电AGC调节速率、精度及可靠性,满足电网对水电调频调峰能力的要求。The purpose of the present invention is to overcome the deficiencies in the prior art and provide a script scheduling calculation method for an AGC control device of a hydropower station, which can improve the response rate and scalability of the AGC control device, improve the hydropower AGC regulation rate, accuracy and reliability, and meet the requirements of the power grid for the frequency and peak regulation capabilities of hydropower.

为达到上述目的,本发明是采用下述技术方案实现的:To achieve the above object, the present invention is implemented by adopting the following technical solutions:

本发明提供了一种水电站AGC控制装置脚本调度计算方法,包括:The present invention provides a script scheduling calculation method for an AGC control device of a hydropower station, comprising:

根据脚本计算策略对脚本进行调度计算;Schedule the script according to the script calculation strategy;

判断计算结果是否发生变化,若否,则结束当前脚本的计算,并扫查下一脚本;Determine whether the calculation result has changed. If not, end the calculation of the current script and scan the next script;

若是,则判断当前脚本是否有关联的脚本,若否,则结束当前脚本的计算,并扫描下一脚本;If yes, determine whether the current script has any associated scripts. If not, terminate the calculation of the current script and scan the next script.

若是,则将当前脚本所有关联的脚本带入上述步骤,直至脚本文件中所有的脚本与关联的脚本调度计算完成。If yes, all the scripts associated with the current script are brought into the above steps until all the scripts in the script file and the associated script scheduling calculations are completed.

优选的,所述脚本文件基于AGC控制装置的UI界面进行可视化编辑生成,将编辑好的脚本文件下载至AGC控制装置,所述可视化编辑包括脚本输入、脚本检查和保存编译。Preferably, the script file is generated by visual editing based on the UI interface of the AGC control device, and the edited script file is downloaded to the AGC control device. The visual editing includes script input, script checking, and saving and compiling.

优选的,所述AGC控制装置上电启动时,对下载的脚本文件进行预装载并将所有脚本读入共享内存中,并基于每个脚本的计算逻辑获取对应的脚本计算策略。Preferably, when the AGC control device is powered on and started, the downloaded script files are preloaded and all scripts are read into the shared memory, and the corresponding script calculation strategy is obtained based on the calculation logic of each script.

优选的,所述脚本计算的逻辑包括定时执行和触发执行,所述定时执行包括设定定时执行循环周期,所述触发执行包括设定触发源。Preferably, the logic of the script calculation includes timed execution and triggered execution, the timed execution includes setting a timed execution cycle, and the triggered execution includes setting a trigger source.

优选的,所述脚本计算策略包括:Preferably, the script calculation strategy includes:

定时执行脚本将按设定的定时执行循环周期来循环触发脚本文件的调度计算;触发执行脚本根据触发源的状态是否改变来决定是否触发脚本文件的调度计算。The scheduled execution script will cyclically trigger the scheduling calculation of the script file according to the set scheduled execution cycle; the triggered execution script decides whether to trigger the scheduling calculation of the script file based on whether the state of the trigger source changes.

优选的,所述判断当前脚本是否有关联的脚本包括根据引用关系知识库查找当前脚本关联的脚本。Preferably, the determining whether the current script has an associated script includes searching for a script associated with the current script based on a reference relationship knowledge base.

优选的,所述引用关系知识库的获取包括对读入共享内存中所有脚本进行引用关系分析,得到脚本之间的引用关系,并基于引用关系生成引用关系知识库。Preferably, the acquisition of the reference relationship knowledge base includes performing reference relationship analysis on all scripts read into the shared memory to obtain reference relationships between the scripts, and generating the reference relationship knowledge base based on the reference relationships.

优选的,所述对读入共享内存中所有脚本进行引用关系分析包括:Preferably, the reference relationship analysis of all scripts read into the shared memory includes:

解析所有脚本,获取脚本名、脚本输入参数和脚本输出参数;Parse all scripts to obtain script names, script input parameters, and script output parameters;

将脚本名和脚本输入参数作为键和值存入一个哈希表mapin中,将哈希表mapin作为输入参数数据集{K0=V0,K1=V1,…,Km=Vm,…,Kn=Vn},其中,Km表示脚本名,Vm是一个List[x1,x2,xm,…,xn]表示脚本输入参数集合,xm表示脚本输入参数;Store the script name and script input parameters as keys and values in a hash table mapin, and use the hash table mapin as the input parameter data set {K 0 =V 0 , K 1 =V 1 , …, K m =V m , …, K n =V n }, where K m represents the script name, V m is a List [x1, x2, xm, …, xn] representing the script input parameter set, and xm represents the script input parameter;

将脚本名和脚本输出参数作为键和值存入一个哈希表mapout中,将哈希表mapout作为输出参数数据集{K0=W0,K1=W1,…,Km=Wm,…,Kn=Wn},其中,Km表示脚本名,Wm是一个List[y1,y2,ym,…,yn]表示脚本输出参数集合,ym表示脚本输出参数;Store the script name and script output parameters as keys and values in a hash table mapout, and use the hash table mapout as the output parameter data set {K 0 =W 0 , K 1 =W 1 , …, K m =W m , …, K n =W n }, where K m represents the script name, W m is a List [y1, y2, ym, …, yn] representing the script output parameter set, and ym represents the script output parameter;

分析输入参数数据集和输出参数数据集得到所有脚本的引用关系,将引用关系形成哈希表maprelation,将哈希表maprelation作为引用关系知识库{K0=Z0,K1=Z1,…,Km=Zm,…,Kn=Zn},其中,Km表示脚本名,Zm是一个List[z1,z2,zm,…,zn]表示引用的所有脚本的脚本名集合,zm表示关联脚本的脚本名。The input parameter data set and the output parameter data set are analyzed to obtain the reference relations of all scripts, and the reference relations are formed into a hash table maprelation, and the hash table maprelation is used as the reference relation knowledge base { K0 = Z0 , K1 = Z1 , ..., Km = Zm , ..., Kn = Zn }, where Km represents the script name, Zm is a List [z1, z2, zm, ..., zn] representing the script name set of all referenced scripts, and zm represents the script name of the associated script.

优选的,所述分析输入参数数据集和输出参数数据集得到所有脚本的引用关系包括:若输出参数数据集中的任一脚本输出参数为输入参数数据集中的任一脚本输入参数,则所述脚本输入参数所对应的脚本为所述脚本输出参数所对应的脚本关联的脚本。Preferably, the analysis of the input parameter data set and the output parameter data set to obtain the reference relationship of all scripts includes: if any script output parameter in the output parameter data set is any script input parameter in the input parameter data set, then the script corresponding to the script input parameter is the script associated with the script corresponding to the script output parameter.

与现有技术相比,本发明所达到的有益效果:Compared with the prior art, the present invention has the following beneficial effects:

本发明提供的一种水电站AGC控制装置脚本调度计算方法,通过采用脚本触发执行与定时执行相结合的脚本调度机制,提高AGC控制装置的响应速率和可扩展性,提高水电AGC调节速率、精度及可靠性,满足电网对水电调频调峰能力的要求。The present invention provides a script scheduling calculation method for an AGC control device of a hydropower station. By adopting a script scheduling mechanism combining script trigger execution with timed execution, the response rate and scalability of the AGC control device are improved, the hydropower AGC regulation rate, accuracy and reliability are improved, and the requirements of the power grid for the frequency and peak regulation capabilities of hydropower are met.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是本发明实施例提供的一种水电站AGC控制装置脚本调度计算方法的流程示意图;1 is a schematic flow chart of a script scheduling calculation method for an AGC control device of a hydropower station provided by an embodiment of the present invention;

图2是本发明实施例提供的触发执行脚本的调度计算流程示意图。FIG. 2 is a schematic diagram of a scheduling calculation flow for triggering the execution of a script provided in an embodiment of the present invention.

具体实施方式Detailed ways

下面结合附图对本发明作进一步描述。以下实施例仅用于更加清楚地说明本发明的技术方案,而不能以此来限制本发明的保护范围。The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.

相关技术术语:Related technical terms:

AGC:自动发电控制,Automatic Generation Control是指按预定条件和要求,以迅速、经济的方式自动控制水电厂有功功率来满足系统需要的技术。AGC: Automatic Generation Control, Automatic Generation Control refers to the technology of automatically controlling the active power of a hydropower plant to meet system needs in a rapid and economical manner according to predetermined conditions and requirements.

脚本:Script,是使用一种特定的描述性语言,依据一定的格式编写的可执行文件。Script: A script is an executable file written in a specific descriptive language and in a certain format.

实施例一:Embodiment 1:

如图1所示,本发明提供了一种水电站AGC控制装置脚本调度计算方法,包括以下步骤:As shown in FIG1 , the present invention provides a script scheduling calculation method for an AGC control device of a hydropower station, comprising the following steps:

AGC控制装置内置的脚本计算调度程序根据脚本计算策略对脚本进行调度计算;The script calculation scheduling program built into the AGC control device schedules and calculates the script according to the script calculation strategy;

脚本计算调度程序判断计算结果是否发生变化,若否,则结束当前脚本的计算,并扫查下一脚本;The script calculation scheduler determines whether the calculation result has changed. If not, the calculation of the current script is terminated and the next script is scanned;

若是,则脚本计算调度程序判断当前脚本是否有关联的脚本,若否,则结束当前脚本的计算,并扫描下一脚本;If so, the script calculation scheduler determines whether the current script has an associated script. If not, the calculation of the current script ends and the next script is scanned;

若是,则将当前脚本所有关联的脚本带入上述步骤,直至脚本文件中所有的脚本与关联的脚本调度计算完成。If yes, all the scripts associated with the current script are brought into the above steps until all the scripts in the script file and the associated script scheduling calculations are completed.

本实施例中的脚本文件基于AGC控制装置的UI界面进行可视化编辑生成,将编辑好的脚本文件下载至AGC控制装置,可视化编辑包括脚本输入、脚本检查和保存编译。AGC控制装置上电启动时,对下载的脚本文件进行预装载并将所有脚本读入共享内存中,并基于每个脚本的计算逻辑获取对应的脚本计算策略。The script file in this embodiment is generated by visual editing based on the UI interface of the AGC control device, and the edited script file is downloaded to the AGC control device. The visual editing includes script input, script checking, and saving and compiling. When the AGC control device is powered on, the downloaded script file is preloaded and all scripts are read into the shared memory, and the corresponding script calculation strategy is obtained based on the calculation logic of each script.

其中,脚本计算的逻辑包括定时执行和触发执行,定时执行包括设定定时执行循环周期,触发执行包括设定触发源。The logic of script calculation includes timed execution and triggered execution. Timed execution includes setting the timed execution cycle, and triggered execution includes setting the trigger source.

其中,脚本计算策略包括:定时执行脚本将按设定的定时执行循环周期来循环触发脚本文件的调度计算;触发执行脚本根据触发源的状态是否改变来决定是否触发脚本文件的调度计算。The script calculation strategy includes: the scheduled execution script will cyclically trigger the scheduling calculation of the script file according to the set scheduled execution cycle; the triggered execution script determines whether to trigger the scheduling calculation of the script file according to whether the state of the trigger source changes.

上述步骤中,判断当前脚本是否有关联的脚本包括根据引用关系知识库查找当前脚本关联的脚本。In the above steps, determining whether the current script has an associated script includes searching for a script associated with the current script according to a reference relationship knowledge base.

其中,引用关系知识库的获取包括对读入共享内存中所有脚本进行引用关系分析,得到脚本之间的引用关系,并基于引用关系生成引用关系知识库。The acquisition of the reference relationship knowledge base includes performing reference relationship analysis on all scripts read into the shared memory, obtaining the reference relationship between the scripts, and generating the reference relationship knowledge base based on the reference relationship.

对读入共享内存中所有脚本进行引用关系分析包括:Reference relationship analysis of all scripts read into shared memory includes:

解析所有脚本,获取脚本名、脚本输入参数和脚本输出参数;Parse all scripts to obtain script names, script input parameters, and script output parameters;

将脚本名和脚本输入参数作为键和值存入一个哈希表mapin中,将哈希表mapin作为输入参数数据集{K0=V0,K1=V1,…,Km=Vm,…,Kn=Vn},其中,Km表示脚本名,Vm是一个List[x1,x2,xm,…,xn]表示脚本输入参数集合,xm表示脚本输入参数;Store the script name and script input parameters as keys and values in a hash table mapin, and use the hash table mapin as the input parameter data set {K 0 =V 0 , K 1 =V 1 , …, K m =V m , …, K n =V n }, where K m represents the script name, V m is a List [x1, x2, xm, …, xn] representing the script input parameter set, and xm represents the script input parameter;

将脚本名和脚本输出参数作为键和值存入一个哈希表mapout中,将哈希表mapout作为输出参数数据集{K0=W0,K1=W1,…,Km=Wm,…,Kn=Wn},其中,Km表示脚本名,Wm是一个List[y1,y2,ym,…,yn]表示脚本输出参数集合,ym表示脚本输出参数;Store the script name and script output parameters as keys and values in a hash table mapout, and use the hash table mapout as the output parameter data set {K 0 =W 0 , K 1 =W 1 , …, K m =W m , …, K n =W n }, where K m represents the script name, W m is a List [y1, y2, ym, …, yn] representing the script output parameter set, and ym represents the script output parameter;

分析输入参数数据集和输出参数数据集得到所有脚本的引用关系,将引用关系形成哈希表maprelation,将哈希表maprelation作为引用关系知识库{K0=Z0,K1=Z1,…,Km=Zm,…,Kn=Zn},其中,Km表示脚本名,Zm是一个List[z1,z2,zm,…,zn]表示引用的所有脚本的脚本名集合,zm表示关联脚本的脚本名。The input parameter data set and the output parameter data set are analyzed to obtain the reference relations of all scripts, and the reference relations are formed into a hash table maprelation, and the hash table maprelation is used as the reference relation knowledge base { K0 = Z0 , K1 = Z1 , ..., Km = Zm , ..., Kn = Zn }, where Km represents the script name, Zm is a List [z1, z2, zm, ..., zn] representing the script name set of all referenced scripts, and zm represents the script name of the associated script.

其中,分析输入参数数据集和输出参数数据集得到所有脚本的引用关系包括:若输出参数数据集中的任一脚本输出参数为输入参数数据集中的任一脚本输入参数,则脚本输入参数所对应的脚本为脚本输出参数所对应的脚本关联的脚本。Among them, analyzing the input parameter data set and the output parameter data set to obtain the reference relationship of all scripts includes: if any script output parameter in the output parameter data set is any script input parameter in the input parameter data set, then the script corresponding to the script input parameter is the script associated with the script corresponding to the script output parameter.

如图2所示,以触发执行脚本为例:As shown in Figure 2, take triggering the execution of a script as an example:

调用本地的静态库文件libagc.a提供的数据接口,获得实时数据进行计算并设置到共享内存中;Call the data interface provided by the local static library file libagc.a to obtain real-time data for calculation and set it to shared memory;

实时扫查当前脚本触发源的状态,如果触发源满足触发条件(触发源状态发生改变),则立刻进行对应脚本的执行计算,如果不满足,则扫查一下脚本;Scan the status of the current script trigger source in real time. If the trigger source meets the trigger condition (the trigger source status changes), the corresponding script will be executed immediately. If not, scan the script.

在将计算的结果存入共享内存前先进行结果判断,若计算结果判断为有变化则继续下一步,否则执行计算结束;Before storing the calculation result into the shared memory, the result is judged first. If the calculation result is judged to have changed, the next step is continued, otherwise the calculation is terminated.

通过脚本引用关系知识库获取到会被执行脚本结果影响到的关联脚本,判断是否有关联脚本,若有,根据当前脚本计算结果依次调用关联脚本引入数据进行执行计算,直至当前执行脚本之后没有关联脚本或计算结果无变化。The associated scripts that will be affected by the results of the script execution are obtained through the script reference relationship knowledge base, and it is determined whether there are associated scripts. If so, the associated scripts are called in sequence according to the calculation results of the current script to introduce data for execution calculation until there are no associated scripts after the current execution script or the calculation results do not change.

其中,不论是实时数据触发还是脚本计算结果触发,当前脚本在收到变化时也要注意识别有效变化,在编辑时确定对触发点误动的排除,规定死区或可以生效的变化范围,如果没编辑默认任意变化均可触发。Among them, no matter it is triggered by real-time data or script calculation results, the current script should also pay attention to identifying valid changes when receiving changes, determine the exclusion of false trigger points during editing, and specify the dead zone or the range of changes that can take effect. If not edited, any change can be triggered by default.

以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明技术原理的前提下,还可以做出若干改进和变形,这些改进和变形也应视为本发明的保护范围。The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims (6)

1. A hydropower station AGC control device script scheduling calculation method is characterized by comprising the following steps:
When the AGC control device is powered on and started, preloading the downloaded script files, reading all scripts into a shared memory, and acquiring a corresponding script calculation strategy based on calculation logic of each script;
Scheduling calculation is carried out on the script according to the script calculation strategy;
Judging whether the calculation result changes, if not, ending the calculation of the current script and scanning the next script;
If yes, judging whether the current script has an associated script, if not, ending the calculation of the current script, and scanning the next script;
if yes, carrying all associated scripts of the current script into the steps until all scripts in the script file and associated script scheduling calculation are completed;
wherein the computing logic of the script comprises: a timed execution including setting a timed execution cycle period and a trigger execution including setting a trigger source;
The script calculation strategy comprises the following steps: the timing execution script circularly triggers the scheduling calculation of the script file according to the set timing execution cycle period; the trigger execution script decides whether to trigger the dispatch calculation of the script file according to whether the state of the trigger source is changed.
2. The hydropower station AGC control device script scheduling calculation method according to claim 1, wherein the script file is generated based on a UI interface of the AGC control device by visual editing, the edited script file is downloaded to the AGC control device, and the visual editing comprises script input, script checking and save compiling.
3. The method of claim 1, wherein determining whether the current script has an associated script comprises searching for a script associated with the current script based on a knowledge base of reference relationships.
4. The hydropower station AGC control device script scheduling calculation method according to claim 3, wherein the obtaining of the reference relation knowledge base includes analyzing the reference relation of all scripts read into the shared memory to obtain the reference relation among the scripts, and generating the reference relation knowledge base based on the reference relation.
5. The method for calculating script scheduling of AGC control device of a hydropower station according to claim 4, wherein the analyzing the reference relation of all scripts read into the shared memory comprises:
analyzing all scripts to obtain script names, script input parameters and script output parameters;
The script name and script input parameters are stored as keys and values in a hash table mapin, and hash table mapin is used as the input parameter dataset Wherein/>Representing the name of the script,/>Is one/>Representing script input parameter set,/>Representing script input parameters;
The script name and script output parameters are stored as keys and values in a hash table mapout, and hash table mapout is used as the output parameter dataset Wherein/>The name of the script is indicated and,Is one/>Representing script output parameter set,/>Representing script output parameters;
Analyzing the input parameter data set and the output parameter data set to obtain the reference relation of all scripts, forming the reference relation into a hash table maprelation, and taking the hash table maprelation as a reference relation knowledge base Wherein/>Representing the name of the script,/>Is oneScript name set representing all scripts referenced,/>Representing the script name of the associated script.
6. The method for calculating script scheduling of AGC control device of a hydropower station according to claim 5, wherein analyzing the input parameter data set and the output parameter data set to obtain the reference relation of all scripts comprises: if any script output parameter in the output parameter data set is any script input parameter in the input parameter data set, the script corresponding to the script input parameter is the script associated with the script corresponding to the script output parameter.
CN202110946144.6A 2021-08-18 2021-08-18 Script scheduling calculation method for AGC control device of hydropower station Active CN113656145B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110946144.6A CN113656145B (en) 2021-08-18 2021-08-18 Script scheduling calculation method for AGC control device of hydropower station

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110946144.6A CN113656145B (en) 2021-08-18 2021-08-18 Script scheduling calculation method for AGC control device of hydropower station

Publications (2)

Publication Number Publication Date
CN113656145A CN113656145A (en) 2021-11-16
CN113656145B true CN113656145B (en) 2024-05-31

Family

ID=78492182

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110946144.6A Active CN113656145B (en) 2021-08-18 2021-08-18 Script scheduling calculation method for AGC control device of hydropower station

Country Status (1)

Country Link
CN (1) CN113656145B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200613984A (en) * 2004-10-26 2006-05-01 Inventec Corp Method for automatically controlling console programs
WO2013170597A1 (en) * 2012-05-15 2013-11-21 国网电力科学研究院 Hydraulic power station surge shaft agc control method
CN105446200A (en) * 2015-12-31 2016-03-30 浙江中控软件技术有限公司 Automatic control method and device
CN110347409A (en) * 2019-07-12 2019-10-18 威创集团股份有限公司 Autocontrol method, client and server
US10452441B1 (en) * 2018-10-15 2019-10-22 Accenture Global Solutions Limited Determining an allocation of computing resources for a job
CN110377569A (en) * 2019-06-19 2019-10-25 中国平安人寿保险股份有限公司 Log monitoring method, device, computer equipment and storage medium
US10713435B1 (en) * 2019-05-14 2020-07-14 Fmr Llc Automated analysis, categorization, and behavior prediction of computer scripts using rules-based pattern matching
CN111668857A (en) * 2020-04-30 2020-09-15 中国电力科学研究院有限公司 Method and system for primary frequency regulation of generator monitoring system in hydropower station
CN111934326A (en) * 2020-06-30 2020-11-13 中国电力科学研究院有限公司 Method and system for coordinately controlling high voltage ride through of wind generating set
CN112102055A (en) * 2020-09-09 2020-12-18 深圳乐信软件技术有限公司 Data real-time account checking method and device, server and storage medium
CN112099410A (en) * 2020-09-17 2020-12-18 深圳市道通科技股份有限公司 Software automation control system and method
CN112817998A (en) * 2021-02-25 2021-05-18 国能大渡河枕头坝发电有限公司 Method and system for automatically comparing and synchronizing data of hydropower station

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7689990B2 (en) * 2005-03-25 2010-03-30 International Business Machines Corporation Method, system and program for managing executable tasks
DE102005034168A1 (en) * 2005-07-21 2007-02-01 Siemens Ag Method for operating and monitoring a control device, corresponding HMI device, control device and machine with such a control device and uses of the method and data storage media
US9160171B2 (en) * 2012-06-05 2015-10-13 Alstom Technology Ltd. Pre-processing of data for automatic generation control

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200613984A (en) * 2004-10-26 2006-05-01 Inventec Corp Method for automatically controlling console programs
WO2013170597A1 (en) * 2012-05-15 2013-11-21 国网电力科学研究院 Hydraulic power station surge shaft agc control method
CN105446200A (en) * 2015-12-31 2016-03-30 浙江中控软件技术有限公司 Automatic control method and device
US10452441B1 (en) * 2018-10-15 2019-10-22 Accenture Global Solutions Limited Determining an allocation of computing resources for a job
US10713435B1 (en) * 2019-05-14 2020-07-14 Fmr Llc Automated analysis, categorization, and behavior prediction of computer scripts using rules-based pattern matching
CN110377569A (en) * 2019-06-19 2019-10-25 中国平安人寿保险股份有限公司 Log monitoring method, device, computer equipment and storage medium
CN110347409A (en) * 2019-07-12 2019-10-18 威创集团股份有限公司 Autocontrol method, client and server
CN111668857A (en) * 2020-04-30 2020-09-15 中国电力科学研究院有限公司 Method and system for primary frequency regulation of generator monitoring system in hydropower station
CN111934326A (en) * 2020-06-30 2020-11-13 中国电力科学研究院有限公司 Method and system for coordinately controlling high voltage ride through of wind generating set
CN112102055A (en) * 2020-09-09 2020-12-18 深圳乐信软件技术有限公司 Data real-time account checking method and device, server and storage medium
CN112099410A (en) * 2020-09-17 2020-12-18 深圳市道通科技股份有限公司 Software automation control system and method
CN112817998A (en) * 2021-02-25 2021-05-18 国能大渡河枕头坝发电有限公司 Method and system for automatically comparing and synchronizing data of hydropower station

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Experiences Integrating and Scaling a Performance Test Bed Generator with an Open Source CASE Tool;Yuhong Cai 等;《IEEE》;全文 *
Shell 脚本在云服务器管理中的应用;刘佳 等;《网络与通信》;全文 *
基于大数据平台的节能减排监控系统 分布式计算框架研究;王其祥 等;《应用与研究》;全文 *

Also Published As

Publication number Publication date
CN113656145A (en) 2021-11-16

Similar Documents

Publication Publication Date Title
CN111585344B (en) Substation intelligent checking method and device based on total station IED simulation
CN113052389A (en) Distributed photovoltaic power station ultra-short-term power prediction method and system based on multiple tasks
CN110544959B (en) Grid automatic power generation control parameter adjustment method, device and system
CN102867069A (en) Method and system for executing database scripts based on SQL (structured query language)
CN118131834B (en) Sand micro-water storage moisturizing device and method
CN114625654A (en) Test method and related equipment thereof
CN114722035A (en) A system and method for supplementary acquisition of meter reading data based on byte bitmap
CN119129840A (en) Wind and solar energy random output prediction method and system based on scenario generation and reduction
CN113656145B (en) Script scheduling calculation method for AGC control device of hydropower station
CN118523312B (en) Active distributed resource optimization scheduling method based on virtual power plant
CN116974994B (en) High-efficiency file collaboration system based on clusters
CN116341163B (en) A thermal hydraulic calculation method based on nuclear power simulation platform
CN118916956A (en) Method, device, equipment and storage medium for checking building model rationality in real time
CN113705862B (en) Ultra-short-term new energy prediction data correction method in electric power spot market environment
CN115759360B (en) Two-stage optimization planning method, system and medium for wind-solar-hydrogen storage coupled system
CN117878958A (en) Night reactive compensation analysis method and system for water-light complementary photovoltaic power station
CN113822470B (en) Output data generation method and system taking into account the uncertainty of new energy station output
CN115981610A (en) Comprehensive operation platform of photovoltaic energy storage system based on Lua script
CN111431218B (en) Method for automatically generating AVC (automatic voltage control) regulation and control interaction time of wind power plant
CN111078769A (en) Metadata capturing method and system
Xu et al. Fault diagnosis and disposal platform for power grid automation system based on RPA
CN118363769A (en) Online migration method and system of historical measurement data based on message middleware
CN116992100A (en) A multi-version graphic future model display method and system
HengJun et al. Wireless remote water meter design of automatic meter reading system
CN119726666A (en) A method, system, device and storage medium for multi-period coordinated optimization scheduling of energy storage in power system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant