CN106776329A - The adjustment method and commissioning device of energy accumulation current converter - Google Patents
The adjustment method and commissioning device of energy accumulation current converter Download PDFInfo
- Publication number
- CN106776329A CN106776329A CN201611208933.5A CN201611208933A CN106776329A CN 106776329 A CN106776329 A CN 106776329A CN 201611208933 A CN201611208933 A CN 201611208933A CN 106776329 A CN106776329 A CN 106776329A
- Authority
- CN
- China
- Prior art keywords
- parameter
- address
- controller
- host computer
- value
- 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 95
- 238000009825 accumulation Methods 0.000 title claims 18
- 238000004146 energy storage Methods 0.000 claims abstract description 136
- 230000008569 process Effects 0.000 claims description 31
- 230000004044 response Effects 0.000 claims description 23
- 230000005540 biological transmission Effects 0.000 claims description 20
- 125000004122 cyclic group Chemical group 0.000 claims description 9
- 238000012544 monitoring process Methods 0.000 claims description 4
- 238000012360 testing method Methods 0.000 claims description 4
- 238000012546 transfer Methods 0.000 claims description 3
- 241000208340 Araliaceae Species 0.000 claims 2
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 claims 2
- 235000003140 Panax quinquefolius Nutrition 0.000 claims 2
- 235000008434 ginseng Nutrition 0.000 claims 2
- 238000004891 communication Methods 0.000 description 21
- 238000010586 diagram Methods 0.000 description 5
- 230000002093 peripheral effect Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 3
- 238000013500 data storage Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000005070 sampling Methods 0.000 description 2
- 238000004088 simulation Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000013524 data verification Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000013024 troubleshooting Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/362—Debugging of software
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Programmable Controllers (AREA)
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
本发明提供一种储能变流器的调试方法和调试设备,该调试方法包括:A)在上位机中生成读取第一参数的读取指令并将所述读取指令发送到储能变流器的控制器;B)控制器接收由上位机发送的读取指令,根据所述读取指令中包括的第一参数的地址获取所述第一参数的值,创建包括所述第一参数的地址和所述第一参数的值的数据包,将所述数据包发送到所述上位机;C)所述上位机接收所述控制器发送的数据包,根据所述第一参数的地址确定所述第一参数的名称,将所述第一参数的名称和所述第一参数的值进行显示。根据本发明的储能变流器的调试方法和调试设备,通过在上位机中对控制器中运行的程序的参数进行显示来进行调试,不会对控制系统的运行时序产生影响。
The present invention provides a debugging method and debugging equipment for an energy storage converter. The debugging method includes: A) generating a reading instruction for reading the first parameter in a host computer and sending the reading instruction to the energy storage converter The controller of the streamer; B) the controller receives the read instruction sent by the host computer, obtains the value of the first parameter according to the address of the first parameter included in the read instruction, and creates a address and the data packet of the value of the first parameter, and send the data packet to the host computer; C) the host computer receives the data packet sent by the controller, according to the address of the first parameter Determine the name of the first parameter, and display the name of the first parameter and the value of the first parameter. According to the debugging method and debugging equipment of the energy storage converter of the present invention, the debugging is carried out by displaying the parameters of the program running in the controller in the host computer, without affecting the running sequence of the control system.
Description
技术领域technical field
本发明涉及储能变流器,更具体地讲,涉及储能变流器的调试方法和调试设备。The invention relates to an energy storage converter, and more specifically, to a debugging method and debugging equipment for an energy storage converter.
背景技术Background technique
随着科学技术的发展,新能源技术正在扮演着越来越重要的作用,储能技术在能源系统中的应用也越来越为人们所重视。而储能变流器在储能装置中作为能量控制系统的核心也日益得到发展,这就对储能变流器在开发测试阶段能够方便的调试,并且在产品生命周期内故障排查也要能方便调试而提出了一定要求。With the development of science and technology, new energy technology is playing an increasingly important role, and the application of energy storage technology in energy systems has attracted more and more attention. The energy storage converter as the core of the energy control system in the energy storage device is also increasingly developed, which makes it easy to debug the energy storage converter during the development and testing phase, and also facilitate troubleshooting during the product life cycle. Certain requirements are put forward for the convenience of debugging.
当前储能变流器的控制器软件调试的标准调试手段为联合测试行动小组(JointTest Action Group,JTAG),JTAG是一种国际标准测试协议,一般情况下使用JTAG接口可以方便地进行变量内存查看,断点设置,单步跟踪等调试操作,是非常有力的调试手段。The current standard debugging method for controller software debugging of energy storage converters is the Joint Test Action Group (JTAG). JTAG is an international standard testing protocol. Generally, the JTAG interface can be used to conveniently check the variable memory , Breakpoint setting, single-step tracking and other debugging operations are very powerful debugging methods.
但是在储能变流器运行时进行调试,一般需要查看相关算法中间变量值,外设采样值以及输出给外设装置的寄存器值。由于储能变流器控制软件的实时性要求,不能在运行时打断软件运行,否则就会打乱软件与外设的运行时序或者错过外设的实时采样数据。而JTAG接口的仿真调试需要使用仿真器连接目标系统,调试时获取目标系统信息时会打断软件与外设的运行时序。However, for debugging when the energy storage converter is running, it is generally necessary to check the intermediate variable values of the relevant algorithms, the peripheral sampling values and the register values output to the peripheral devices. Due to the real-time requirements of the control software of the energy storage converter, the software cannot be interrupted during operation, otherwise the running sequence of the software and peripherals will be disturbed or the real-time sampling data of the peripherals will be missed. The simulation debugging of the JTAG interface requires the use of an emulator to connect to the target system, and the running sequence of the software and peripherals will be interrupted when the target system information is obtained during debugging.
因此,现有技术的储能变流器的调试方式会对控制系统的运行时序产生影响。Therefore, the debugging method of the energy storage converter in the prior art will affect the running sequence of the control system.
发明内容Contents of the invention
本发明的目的在于提供一种储能变流器的调试方法和调试设备,以解决现有技术的调试方式会对控制系统的运行时序产生影响的技术问题。The object of the present invention is to provide a debugging method and debugging equipment for an energy storage converter, so as to solve the technical problem that the debugging method in the prior art will affect the running sequence of the control system.
本发明的一方面提供一种在上位机中执行的储能变流器的调试方法,所述调试方法包括:A)生成读取第一参数的读取指令并将所述读取指令发送到储能变流器的控制器,其中,所述第一参数为所述控制器中运行的控制程序中用于指示储能变流器的调试过程中监控的参数的全局变量,所述读取指令包括所述第一参数的地址,所述第一参数的地址指示所述第一参数在所述控制器中的存储地址;B)接收所述控制器响应于所述读取指令而发送的数据包,其中,所述数据包包括第一参数的地址和第一参数的值;C)根据所述第一参数的地址确定所述第一参数的名称;D)将所述第一参数的名称和所述第一参数的值进行显示。One aspect of the present invention provides a debugging method for an energy storage converter executed in a host computer, the debugging method comprising: A) generating a read instruction for reading the first parameter and sending the read instruction to The controller of the energy storage converter, wherein the first parameter is a global variable used to indicate the parameters monitored during the debugging process of the energy storage converter in the control program running in the controller, and the reading The instruction includes the address of the first parameter, and the address of the first parameter indicates the storage address of the first parameter in the controller; B) receiving the address sent by the controller in response to the read instruction A data packet, wherein the data packet includes the address of the first parameter and the value of the first parameter; C) determining the name of the first parameter according to the address of the first parameter; D) converting the address of the first parameter The name and value of the first parameter are displayed.
可选地,所述调试方法还包括:E)生成将第二参数的值修改为预定值的写入指令并将所述写入指令发送到所述控制器,其中,所述写入指令包括所述第二参数的地址和所述预定值,所述第二参数为所述控制器中运行的控制程序中用于指示储能变流器的调试过程中待修改的参数的全局变量,所述第二参数的地址指示所述第二参数在所述控制器中的存储地址。Optionally, the debugging method further includes: E) generating a write instruction for modifying the value of the second parameter to a predetermined value and sending the write instruction to the controller, wherein the write instruction includes The address of the second parameter and the predetermined value, the second parameter is a global variable used to indicate the parameter to be modified during the debugging process of the energy storage converter in the control program running in the controller, so The address of the second parameter indicates the storage address of the second parameter in the controller.
可选地,步骤C)包括:通过调用正则表达式搜索引擎在地址分配列表中搜索与所述第一参数的地址对应的参数名称,并将搜索到的参数名称作为所述第一参数的名称。Optionally, step C) includes: searching the address assignment list for a parameter name corresponding to the address of the first parameter by calling a regular expression search engine, and using the searched parameter name as the name of the first parameter .
可选地,所述数据包中还包括16位循环冗余校验码。Optionally, the data packet further includes a 16-bit cyclic redundancy check code.
可选地,所述上位机通过以下任一接口与所述控制器进行数据传输:以太网接口、控制器局域网接口和串行接口。Optionally, the host computer performs data transmission with the controller through any of the following interfaces: Ethernet interface, controller local area network interface and serial interface.
可选地,所述上位机通过以太网接口,经由高级精简指令集处理器与所述控制器共享的随机存取存储器空间,与所述控制器进行数据传输。Optionally, the host computer performs data transmission with the controller through an Ethernet interface, via a random access memory space shared by the advanced RISC processor and the controller.
可选地,在步骤A)中,响应于所述第一参数的名称被输入,通过调用正则表达式搜索引擎在地址分配列表中搜索与所述第一参数的名称对应的参数地址,并将搜索到的参数地址作为所述第一参数的地址;在步骤E)中,响应于所述第二参数的名称被输入,通过调用正则表达式搜索引擎在地址分配列表中搜索与所述第二参数的名称对应的参数地址,并将搜索到的参数地址作为所述第二参数的地址。Optionally, in step A), in response to the name of the first parameter being input, a parameter address corresponding to the name of the first parameter is searched in the address allocation list by calling a regular expression search engine, and The searched parameter address is used as the address of the first parameter; in step E), in response to the name of the second parameter being input, the search engine is searched in the address assignment list by invoking a regular expression that matches the second parameter. The name of the parameter corresponds to the parameter address, and the searched parameter address is used as the address of the second parameter.
根据本发明的另一方面提供一种在储能变流器的控制器中执行的调试方法,所述调试方法包括:A)接收由上位机发送的读取指令,并根据所述读取指令中包括的第一参数的地址获取所述第一参数的值,其中,所述第一参数为所述控制器中运行的控制程序中用于指示储能变流器的调试过程中监控的参数的全局变量,所述第一参数的地址指示所述第一参数在所述控制器中的存储地址;B)创建包括所述第一参数的地址和所述第一参数的值的数据包,并将所述数据包发送到所述上位机。According to another aspect of the present invention, there is provided a debugging method executed in a controller of an energy storage converter, the debugging method comprising: A) receiving a reading instruction sent by a host computer, and according to the reading instruction The address of the first parameter included in obtains the value of the first parameter, wherein the first parameter is a parameter used to instruct the monitoring of the energy storage converter during the debugging process in the control program running in the controller global variable, the address of the first parameter indicates the storage address of the first parameter in the controller; B) creating a data packet comprising the address of the first parameter and the value of the first parameter, and send the data packet to the host computer.
可选地,所述调试方法还包括:C)接收由上位机发送的将第二参数的值修改为预定值的写入指令,并根据所述写入指令中包括的所述第二参数的地址将所述第二参数的值修改为所述预定值,其中,所述第二参数为所述控制器中运行的控制程序中用于指示储能变流器的调试过程中待修改的参数的全局变量,所述第二参数的地址指示所述第二参数在控制器中的存储地址。Optionally, the debugging method further includes: C) receiving a write instruction sent by the host computer to modify the value of the second parameter to a predetermined value, and according to the value of the second parameter included in the write instruction, The address modifies the value of the second parameter to the predetermined value, wherein the second parameter is a parameter to be modified during the commissioning process of the energy storage converter in the control program running in the controller global variable, the address of the second parameter indicates the storage address of the second parameter in the controller.
可选地,所述控制器通过以下任一接口与所述上位机进行数据传输:以太网接口、控制器局域网接口和串行接口。Optionally, the controller performs data transmission with the host computer through any of the following interfaces: Ethernet interface, controller local area network interface and serial interface.
可选地,所述数据包中还包括16位循环冗余校验码。Optionally, the data packet further includes a 16-bit cyclic redundancy check code.
根据本发明的另一方面提供一种储能变流器的调试方法,所述调试方法包括:A)在上位机中生成读取第一参数的读取指令并将所述读取指令发送到储能变流器的控制器,其中,所述第一参数为所述控制器中运行的控制程序中用于指示储能变流器的调试过程中监控的参数的全局变量,所述读取指令包括第一参数的地址,所述第一参数的地址指示所述第一参数在所述控制器中的存储地址;B)所述控制器接收由上位机发送的读取指令,根据所述读取指令中包括的第一参数的地址获取所述第一参数的值,创建包括所述第一参数的地址和所述第一参数的值的数据包,将所述数据包发送到所述上位机;C)所述上位机接收所述控制器发送的数据包,根据所述第一参数的地址确定所述第一参数的名称,将所述第一参数的名称和所述第一参数的值进行显示。According to another aspect of the present invention, there is provided a debugging method for an energy storage converter, the debugging method comprising: A) generating a reading instruction for reading the first parameter in the host computer and sending the reading instruction to The controller of the energy storage converter, wherein the first parameter is a global variable used to indicate the parameters monitored during the debugging process of the energy storage converter in the control program running in the controller, and the reading The instruction includes the address of the first parameter, and the address of the first parameter indicates the storage address of the first parameter in the controller; B) the controller receives the read instruction sent by the host computer, according to the Read the address of the first parameter included in the instruction to obtain the value of the first parameter, create a data packet including the address of the first parameter and the value of the first parameter, and send the data packet to the Host computer; C) the host computer receives the data packet sent by the controller, determines the name of the first parameter according to the address of the first parameter, and uses the name of the first parameter and the first parameter value is displayed.
可选地,所述调试方法还包括:D)在上位机中生成将第二参数的值修改为预定值的写入指令,并将所述写入指令发送到所述控制器,其中,所述写入指令包括所述第二参数的地址和所述预定值,所述第二参数为所述控制器中运行的控制程序中用于指示储能变流器的调试过程中待修改的参数的全局变量,所述第二参数的地址指示所述第二参数在所述控制器中的存储地址;E)所述控制器接收由上位机发送的写入指令,并根据所述写入指令中包括的第二参数的地址将第二参数的值修改为所述预定值。Optionally, the debugging method further includes: D) generating a write instruction for modifying the value of the second parameter to a predetermined value in the host computer, and sending the write instruction to the controller, wherein the The write instruction includes the address of the second parameter and the predetermined value, and the second parameter is a parameter to be modified during the debugging process of the energy storage converter in the control program running in the controller global variable, the address of the second parameter indicates the storage address of the second parameter in the controller; E) the controller receives the write instruction sent by the host computer, and according to the write instruction The address of the second parameter included in modifies the value of the second parameter to the predetermined value.
根据本发明的另一方面提供一种设置在上位机中的储能变流器的调试设备,所述调试设备包括:读取指令发送单元,生成读取第一参数的读取指令并将所述读取指令发送到储能变流器的控制器,其中,所述第一参数为所述控制器中运行的控制程序中用于指示储能变流器的调试过程中监控的参数的全局变量,所述读取指令包括所述第一参数的地址,所述第一参数的地址指示所述第一参数在所述控制器中的存储地址;数据包接收单元,接收所述控制器响应于所述读取指令而发送的数据包,其中,所述数据包包括第一参数的地址和第一参数的值,名称确定单元,根据所述第一参数的地址确定所述第一参数的名称;显示单元,将所述第一参数的名称和所述第一参数的值进行显示。According to another aspect of the present invention, there is provided a debugging device for an energy storage converter installed in a host computer, the debugging device includes: a reading instruction sending unit that generates a reading instruction for reading the first parameter and sends the The above read instruction is sent to the controller of the energy storage converter, wherein the first parameter is a global parameter used to indicate the parameters monitored during the debugging process of the energy storage converter in the control program running in the controller Variable, the read instruction includes the address of the first parameter, the address of the first parameter indicates the storage address of the first parameter in the controller; the data packet receiving unit receives the controller response A data packet sent based on the read instruction, wherein the data packet includes the address of the first parameter and the value of the first parameter, and the name determination unit determines the address of the first parameter according to the address of the first parameter name; a display unit, for displaying the name of the first parameter and the value of the first parameter.
可选地,所述调试设备还包括:写入指令发送单元,生成将第二参数的值修改为预定值的写入指令并将所述写入指令发送到所述控制器,其中,所述写入指令包括所述第二参数的地址和所述预定值,所述第二参数为所述控制器中运行的控制程序中用于指示储能变流器的调试过程中待修改的参数的全局变量,所述第二参数的地址指示所述第二参数在所述控制器中的存储地址。Optionally, the debugging device further includes: a write instruction sending unit, which generates a write instruction for modifying the value of the second parameter to a predetermined value and sends the write instruction to the controller, wherein the The write instruction includes the address of the second parameter and the predetermined value, and the second parameter is a parameter used to indicate the parameter to be modified during the debugging process of the energy storage converter in the control program running in the controller For a global variable, the address of the second parameter indicates the storage address of the second parameter in the controller.
可选地,名称确定单元通过调用正则表达式搜索引擎在地址分配列表中搜索与所述第一参数的地址对应的参数名称,并将搜索到的参数名称作为所述第一参数的名称。Optionally, the name determination unit searches the address allocation list for a parameter name corresponding to the address of the first parameter by calling a regular expression search engine, and uses the searched parameter name as the name of the first parameter.
可选地,所述上位机通过以下任一接口与所述控制器进行数据传输:以太网接口、控制器局域网接口和串行接口。Optionally, the host computer performs data transmission with the controller through any of the following interfaces: Ethernet interface, controller local area network interface and serial interface.
可选地,所述上位机通过以太网接口,经由高级精简指令集处理器与所述控制器共享的随机存取存储器空间,与所述控制器进行数据传输。Optionally, the host computer performs data transmission with the controller through an Ethernet interface, via a random access memory space shared by the advanced RISC processor and the controller.
可选地,读取指令发送单元响应于所述第一参数的名称被输入,通过调用正则表达式搜索引擎在地址分配列表中搜索与所述第一参数的名称对应的参数地址,并将搜索到的参数地址作为所述第一参数的地址;写入指令发送单元响应于所述第二参数的名称被输入,通过调用正则表达式搜索引擎在地址分配列表中搜索与所述第二参数的名称对应的参数地址,并将搜索到的参数地址作为所述第二参数的地址。Optionally, in response to the name of the first parameter being input, the read instruction sending unit searches the address allocation list for the parameter address corresponding to the name of the first parameter by calling a regular expression search engine, and searches The address of the parameter to be used as the address of the first parameter; the write instruction sending unit is input in response to the name of the second parameter, and searches for the address assignment list corresponding to the second parameter by invoking a regular expression search engine The parameter address corresponding to the name, and use the searched parameter address as the address of the second parameter.
根据本发明的另一方面提供一种设置在储能变流器中的调试设备,所述调试设备包括:读取指令接收单元,接收由上位机发送的读取指令,并根据所述读取指令中包括的第一参数的地址获取所述第一参数的值,其中,所述第一参数为所述储能变流器的控制器中运行的控制程序中用于指示储能变流器的调试过程中监控的参数的全局变量,所述第一参数的地址指示所述第一参数在所述控制器中的存储地址;数据包发送单元,创建包括所述第一参数的地址和所述第一参数的值的数据包,并将所述数据包发送到所述上位机。According to another aspect of the present invention, there is provided a debugging device installed in the energy storage converter, the debugging device includes: a reading instruction receiving unit, which receives the reading instruction sent by the host computer, and according to the reading The address of the first parameter included in the instruction obtains the value of the first parameter, wherein the first parameter is used in the control program running in the controller of the energy storage converter to indicate that the energy storage converter The global variable of the parameter monitored in the debugging process, the address of the first parameter indicates the storage address of the first parameter in the controller; the data packet sending unit creates the address including the first parameter and the address of the first parameter A data packet of the value of the first parameter is generated, and the data packet is sent to the host computer.
可选地,所述调试设备还包括:写入指令接收单元,接收由上位机发送的将第二参数的值修改为预定值的写入指令,并根据所述写入指令中包括的所述第二参数的地址将所述第二参数的值修改为所述预定值,其中,所述第二参数为所述控制器中运行的控制程序中用于指示储能变流器的调试过程中待修改的参数的全局变量,所述第二参数的地址指示所述第二参数在控制器中的存储地址。Optionally, the debugging device further includes: a write command receiving unit, which receives a write command sent by the host computer to modify the value of the second parameter to a predetermined value, and according to the write command included in the write command The address of the second parameter modifies the value of the second parameter to the predetermined value, wherein the second parameter is used in the control program running in the controller to indicate that the energy storage converter is being debugged The global variable of the parameter to be modified, the address of the second parameter indicates the storage address of the second parameter in the controller.
可选地,所述控制器通过以下任一接口与所述上位机进行数据传输:以太网接口、控制器局域网接口和串行接口。Optionally, the controller performs data transmission with the host computer through any of the following interfaces: Ethernet interface, controller local area network interface and serial interface.
根据本发明的示例性实施例的储能变流器的调试方法和调试设备通过在上位机中对控制器中运行的程序的参数进行显示来进行调试,不会对控制系统的运行时序产生影响。此外,根据本发明的示例性实施例的储能变流器的调试方法和调试设备还可通过上位机对控制器中的控制程序的参数的值进行修改。According to the debugging method and debugging equipment of the energy storage converter according to the exemplary embodiment of the present invention, the debugging is carried out by displaying the parameters of the program running in the controller in the host computer, which will not affect the running sequence of the control system . In addition, the debugging method and debugging equipment of the energy storage converter according to the exemplary embodiment of the present invention can also modify the values of the parameters of the control program in the controller through the host computer.
将在接下来的描述中部分阐述本发明另外的方面和/或优点,还有一部分通过描述将是清楚的,或者可以经过本发明的实施而得知。Additional aspects and/or advantages of the present invention will be set forth in part in the following description, and some will be clear from the description, or can be learned through practice of the present invention.
附图说明Description of drawings
通过下面结合附图进行的详细描述,本发明的上述和其它目的、特点和优点将会变得更加清楚,其中:The above-mentioned and other objects, features and advantages of the present invention will become more clear through the following detailed description in conjunction with the accompanying drawings, wherein:
图1是示出根据本发明的示例性实施例的储能变流器的调试方法的流程图;Fig. 1 is a flow chart showing a debugging method of an energy storage converter according to an exemplary embodiment of the present invention;
图2是示出根据本发明的示例性实施例的在上位机中执行的储能变流器的调试方法的流程图;Fig. 2 is a flow chart showing a debugging method of an energy storage converter executed in a host computer according to an exemplary embodiment of the present invention;
图3是示出根据本发明的示例性实施例的在储能变流器的控制器中执行的调试方法的流程图;Fig. 3 is a flowchart illustrating a debugging method executed in a controller of an energy storage converter according to an exemplary embodiment of the present invention;
图4是示出根据本发明的示例性实施例的设置在上位机中的储能变流器的调试设备的结构框图;Fig. 4 is a structural block diagram showing a debugging device for an energy storage converter provided in a host computer according to an exemplary embodiment of the present invention;
图5是示出根据本发明的示例性实施例的设置在储能变流器的控制器中的调试设备的结构框图;Fig. 5 is a structural block diagram showing a debugging device provided in a controller of an energy storage converter according to an exemplary embodiment of the present invention;
图6是示出根据本发明的示例性实施例的数据包的格式。FIG. 6 is a diagram illustrating the format of a data packet according to an exemplary embodiment of the present invention.
具体实施方式detailed description
下面参照附图详细描述本发明的实施例。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
图1是示出根据本发明示例性实施例的储能变流器的调试方法的流程图。Fig. 1 is a flow chart showing a debugging method of an energy storage converter according to an exemplary embodiment of the present invention.
参照图1,在步骤S10,在上位机中生成读取第一参数的读取指令并将读取指令发送到储能变流器的控制器。第一参数为控制器中运行的控制程序中用于指示储能变流器的调试过程中监控的参数的全局变量。作为示例,储能变流器的调试过程中监控的参数可以是:储能变流器的直流侧的电压、直流侧的电流或交流侧的每一相的电流等。Referring to FIG. 1 , in step S10 , a read instruction for reading the first parameter is generated in the host computer and sent to the controller of the energy storage converter. The first parameter is a global variable used in the control program running in the controller to indicate the parameters monitored during the commissioning process of the energy storage converter. As an example, the parameters monitored during the commissioning of the energy storage converter may be: the voltage of the DC side of the energy storage converter, the current of the DC side, or the current of each phase of the AC side.
储能变流器的控制器中运行的控制程序是用于控制储能变流器的运行的程序。储能变流器的控制器可以是数字信号处理器或其他控制器。读取指令包括第一参数的地址,第一参数的地址指示第一参数在储能变流器的控制器中的存储地址。The control program running in the controller of the energy storage converter is a program for controlling the operation of the energy storage converter. The controller of the energy storage converter can be a digital signal processor or other controllers. The read instruction includes the address of the first parameter, and the address of the first parameter indicates the storage address of the first parameter in the controller of the energy storage converter.
这里,可在上位机中周期性地自动生成读取第一参数的读取指令并将生成的读取指令发送到储能变流器的控制器,第一参数可以预先指定。这里,可通过指定第一参数的地址或者名称来指定第一参数。对于通过指定第一参数名称来指定第一参数的情况,可在生成读取指令之前,通过调用正则表达式搜索引擎在地址分配列表中搜索与第一参数的名称对应的参数地址,并将搜索到的参数地址作为第一参数的地址。地址分配列表被预先存储在上位机中。可以理解,还可以采用其他的搜索方式来搜索第一参数的地址。Here, a reading instruction for reading the first parameter may be automatically generated periodically in the host computer and sent to the controller of the energy storage converter, and the first parameter may be specified in advance. Here, the first parameter may be specified by specifying an address or a name of the first parameter. For the case of specifying the first parameter by specifying the name of the first parameter, before generating the read instruction, the parameter address corresponding to the name of the first parameter can be searched in the address allocation list by calling the regular expression search engine, and the search The parameter address to is used as the address of the first parameter. The address allocation list is pre-stored in the host computer. It can be understood that other search methods may also be used to search for the address of the first parameter.
另外,也可以在上位机中响应于用户的相关操作来生成读取第一参数的读取指令并将生成的读取指令发送到储能变流器的控制器。第一参数可根据用户的相关操作来指定。例如,可通过接收用户输入的第一参数的名称来指定第一参数。这里,可响应于第一参数的名称被输入,通过调用正则表达式搜索引擎在地址分配列表中搜索与所述第一参数的名称对应的参数地址,并将搜索到的参数地址作为第一参数的地址。可以理解,这里还可以采用其他的搜索方式来搜索第一参数的地址。In addition, a reading instruction for reading the first parameter may also be generated in the host computer in response to relevant operations of the user, and the generated reading instruction may be sent to the controller of the energy storage converter. The first parameter may be specified according to a user's relevant operation. For example, the first parameter may be specified by receiving a user-input name of the first parameter. Here, in response to the name of the first parameter being input, the address allocation list is searched for a parameter address corresponding to the name of the first parameter by calling a regular expression search engine, and the searched parameter address is used as the first parameter the address of. It can be understood that other search methods may also be used here to search for the address of the first parameter.
上位机与储能变流器的控制器之间可采用各种通信方式来进行数据传输,例如:以太网通信、控制器局域网通信和串行通信等。相应地,上位机与储能变流器的控制器之间可通过各种通信接口来进行数据传输,例如:以太网接口、控制器局域网口和串行接口。Various communication methods can be used for data transmission between the upper computer and the controller of the energy storage converter, such as Ethernet communication, controller area network communication and serial communication. Correspondingly, data transmission can be performed between the upper computer and the controller of the energy storage converter through various communication interfaces, such as Ethernet interface, controller LAN interface and serial interface.
在上述各种通信方式中,优选以太网通信,这是由于以太网通信的速度较快,可满足控制器的数据刷新的速度要求。使用以太网通信接口传输调试信息,可加快调试系统的响应速度。对于采用以太网通信的情况,上位机与储能变流器的控制器之间可经由高级精简指令集处理器(ARM)与储能变流器的控制器共享的随机存取存储器(RAM)空间来进行数据传输。具体说来,当上位机向储能变流器的控制器发送数据时,上位机通过以太网接口将数据发送到以太网,以太网将数据传输到ARM控制器的以太网接口,ARM控制器再将数据存储到共享的RAM空间,然后将数据传输到储能变流器的控制器的相应模块;当储能变流器的控制器向上位机发送数据时,储能变流器的控制器将数据存储到共享的RAM空间,ARM控制器通过以太网接口将数据发送到以太网,以太网将数据传输到上位机的以太网接口。Among the above-mentioned various communication methods, Ethernet communication is preferred, because the speed of Ethernet communication is relatively fast, which can meet the speed requirement of the controller for data refresh. Using the Ethernet communication interface to transmit debugging information can speed up the response speed of the debugging system. For the case of using Ethernet communication, the random access memory (RAM) shared between the host computer and the controller of the energy storage converter can be shared with the controller of the energy storage converter via the Advanced Reduced Instruction Set Processor (ARM) space for data transfer. Specifically, when the upper computer sends data to the controller of the energy storage converter, the upper computer sends the data to the Ethernet through the Ethernet interface, and the Ethernet transmits the data to the Ethernet interface of the ARM controller, and the ARM controller Then store the data in the shared RAM space, and then transmit the data to the corresponding modules of the controller of the energy storage converter; when the controller of the energy storage converter sends data to the upper computer, the control of the energy storage converter The controller stores the data in the shared RAM space, the ARM controller sends the data to the Ethernet through the Ethernet interface, and the Ethernet transmits the data to the Ethernet interface of the upper computer.
在上位机与储能变流器的控制器之间传输的数据包包括读写标记、包长度、参数地址和参数值。优选地,在上位机与储能变流器的控制器之间传输的数据包还可包括各种校验码,例如,数据包中包括16位循环冗余校验码。校验码由发送端计算确定并添加到数据包中,接收端接收到数据包时,可根据校验码来对接收的数据包进行验证,避免数据传输错误影响调试数据的正确性,提高调试的可靠性。图6示出根据本发明示例性实施例的数据包的格式。如图6所示,在上位机与储能变流器的控制器之间传输的数据包包括读写标记、包长度、参数地址、参数值和校验码,数据包的长度为12个字节,其中,读写标记和包长度的长度都为1个字节,参数地址和参数值的长度都为4个字节,校验码的长度为2个字节。The data packets transmitted between the host computer and the controller of the energy storage converter include read and write marks, packet length, parameter address and parameter value. Preferably, the data packets transmitted between the host computer and the controller of the energy storage converter may also include various check codes, for example, the data packets include 16-bit cyclic redundancy check codes. The check code is calculated and determined by the sending end and added to the data packet. When the receiving end receives the data packet, it can verify the received data packet according to the check code to avoid data transmission errors from affecting the correctness of the debugging data and improve debugging reliability. FIG. 6 shows the format of a data packet according to an exemplary embodiment of the present invention. As shown in Figure 6, the data packet transmitted between the host computer and the controller of the energy storage converter includes read and write marks, packet length, parameter address, parameter value and check code, and the length of the data packet is 12 characters section, wherein the length of the read-write flag and the length of the packet are both 1 byte, the length of the parameter address and the parameter value are both 4 bytes, and the length of the check code is 2 bytes.
在步骤S20,储能变流器的控制器接收由上位机发送的读取指令,并根据读取指令中包括的第一参数的地址获取第一参数的值,创建包括第一参数的地址和第一参数的值的数据包,将数据包发送到上位机。这里,储能变流器的控制器可根据第一参数的地址从存储器中获取第一参数的值。如上所述,根据本发明的示例性实施例,数据包中还可包括16位循环冗余校验码。In step S20, the controller of the energy storage converter receives the read instruction sent by the host computer, and obtains the value of the first parameter according to the address of the first parameter included in the read instruction, and creates the address and The data packet of the value of the first parameter, and send the data packet to the host computer. Here, the controller of the energy storage converter can acquire the value of the first parameter from the memory according to the address of the first parameter. As mentioned above, according to an exemplary embodiment of the present invention, the data packet may further include a 16-bit cyclic redundancy check code.
在步骤S30,上位机接收储能变流器的控制器发送的数据包,根据第一参数的地址确定第一参数的名称,将第一参数的名称和第一参数的值进行显示。这里,可通过调用正则表达式搜索引擎在地址分配列表中搜索与第一参数的地址对应的参数名称,并将搜索到的参数名称作为第一参数的名称。使用正则表达式搜索引擎搜索全局变量地址分配列表文件,能够提高搜索效率与准确度。可以理解,这里还可以采用其他的搜索方式来搜索第一参数的名称。In step S30, the host computer receives the data packet sent by the controller of the energy storage converter, determines the name of the first parameter according to the address of the first parameter, and displays the name and value of the first parameter. Here, the parameter name corresponding to the address of the first parameter may be searched in the address allocation list by calling a regular expression search engine, and the searched parameter name may be used as the name of the first parameter. Using the regular expression search engine to search the global variable address allocation list file can improve the search efficiency and accuracy. It can be understood that other search methods may also be used here to search for the name of the first parameter.
这里,可在上位机中采用各种形式来显示第一参数的名称和第一参数的值,例如,可以采用图表的形式来显示第一参数的名称和第一参数的值。Here, the name of the first parameter and the value of the first parameter can be displayed in various forms in the host computer, for example, the name of the first parameter and the value of the first parameter can be displayed in the form of a graph.
这样,调试人员就可以在上位机中查看各个参数的值,并根据各个参数的值来对控制程序进行调试以及对参数的值进行调整。In this way, the debugger can check the value of each parameter in the upper computer, and debug the control program and adjust the value of the parameter according to the value of each parameter.
根据本发明的另一示例性实施例中,所述调试方法还可通过上位机对储能变流器的控制器中运行的控制程序的参数的值进行修改。具体地讲,可在上位机中生成将第二参数的值修改为预定值的写入指令,并将写入指令发送到储能变流器的控制器。写入指令包括第二参数的地址和预定值,第二参数为储能变流器的控制器中运行的控制程序中用于指示储能变流器的调试过程中待修改的参数的全局变量。作为示例,储能变流器的调试过程中修改的参数可以是上述控制程序中的某个比例积分器的比例系数或者某个比例积分器积分系数等。According to another exemplary embodiment of the present invention, the debugging method can also modify the values of the parameters of the control program running in the controller of the energy storage converter through the host computer. Specifically, a write instruction for modifying the value of the second parameter to a predetermined value may be generated in the host computer, and sent to the controller of the energy storage converter. The write instruction includes the address and predetermined value of the second parameter, and the second parameter is a global variable used to indicate parameters to be modified during the debugging process of the energy storage converter in the control program running in the controller of the energy storage converter . As an example, the parameter modified during the debugging process of the energy storage converter may be the proportional coefficient of a certain proportional integrator or the integral coefficient of a certain proportional integrator in the above control program.
第二参数的地址指示第二参数在储能变流器的控制器中的存储地址。之后,储能变流器的控制器接收由上位机发送的写入指令,并根据写入指令中包括的第二参数的地址将第二参数的值修改为预定值。The address of the second parameter indicates the storage address of the second parameter in the controller of the energy storage converter. Afterwards, the controller of the energy storage converter receives the write instruction sent by the host computer, and modifies the value of the second parameter to a predetermined value according to the address of the second parameter included in the write instruction.
这里,可在上位机中响应于用户的相关操作来生成将第二参数的值修改为预定值的写入指令并将生成的写入指令发送到储能变流器的控制器。第二参数可根据用户的相关操作来指定。例如,可通过接收用户输入的第二参数的名称指定第二参数。这里,可响应于第二参数的名称被输入,通过调用正则表达式搜索引擎在地址分配列表中搜索与第二参数的名称对应的参数地址,并将搜索到的参数地址作为第二参数的地址。地址分配列表被预先存储在上位机中。可以理解,这里还可以采用其他的搜索方式来搜索第二参数的地址。Here, a write instruction for modifying the value of the second parameter to a predetermined value may be generated in the host computer in response to relevant operations of the user, and the generated write instruction may be sent to the controller of the energy storage converter. The second parameter can be specified according to the relevant operation of the user. For example, the second parameter may be specified by receiving a user-input name of the second parameter. Here, in response to the name of the second parameter being input, the address allocation list is searched for a parameter address corresponding to the name of the second parameter by calling a regular expression search engine, and the searched parameter address is used as the address of the second parameter . The address allocation list is pre-stored in the host computer. It can be understood that other search methods may also be used here to search for the address of the second parameter.
图2是示出根据本发明的示例性实施例的在上位机中执行的储能变流器的调试方法的流程图。Fig. 2 is a flow chart showing a debugging method of an energy storage converter executed in a host computer according to an exemplary embodiment of the present invention.
参照图2,在步骤S201,生成读取第一参数的读取指令并将读取指令发送到储能变流器的控制器。第一参数为储能变流器的控制器中运行的控制程序中用于指示储能变流器的调试过程中监控的参数的全局变量,读取指令包括第一参数的地址,第一参数的地址指示第一参数在储能变流器的控制器中的存储地址。Referring to Fig. 2, in step S201, a read instruction for reading a first parameter is generated and sent to the controller of the energy storage converter. The first parameter is a global variable used to indicate the parameters monitored during the debugging process of the energy storage converter in the control program running in the controller of the energy storage converter. The read command includes the address of the first parameter, and the first parameter The address of indicates the storage address of the first parameter in the controller of the energy storage converter.
在步骤S202,接收储能变流器的控制器响应于读取指令而发送的数据包,其中,数据包包括第一参数的地址和第一参数的值。In step S202, a data packet sent by the controller of the energy storage converter in response to the read instruction is received, wherein the data packet includes the address of the first parameter and the value of the first parameter.
在步骤S203,根据第一参数的地址确定第一参数的名称。In step S203, the name of the first parameter is determined according to the address of the first parameter.
在步骤S204,将第一参数的名称和第一参数的值进行显示。In step S204, the name of the first parameter and the value of the first parameter are displayed.
根据本发明的另一示例性实施例,所述调试方法还可包括以下步骤(未示出):生成将第二参数的值修改为预定值的写入指令并将写入指令发送到储能变流器的控制器,其中,写入指令包括第二参数的地址和预定值,第二参数为储能变流器的控制器中运行的控制程序中用于指示储能变流器的调试过程中待修改的参数的全局变量,第二参数的地址指示第二参数在储能变流器的控制器中的存储地址。According to another exemplary embodiment of the present invention, the debugging method may further include the following steps (not shown): generating a write instruction for modifying the value of the second parameter to a predetermined value and sending the write instruction to the energy storage The controller of the converter, wherein the write instruction includes the address and predetermined value of the second parameter, and the second parameter is used to instruct the debugging of the energy storage converter in the control program running in the controller of the energy storage converter The global variable of the parameter to be modified in the process, the address of the second parameter indicates the storage address of the second parameter in the controller of the energy storage converter.
图3是示出根据本发明的示例性实施例的在储能变流器的控制器中执行的调试方法的流程图。Fig. 3 is a flowchart showing a debugging method performed in a controller of an energy storage converter according to an exemplary embodiment of the present invention.
在步骤S301,接收由上位机发送的读取指令,并根据读取指令中包括的第一参数的地址获取第一参数的值,其中,第一参数为储能变流器的控制器中运行的控制程序中用于指示储能变流器的调试过程中监控的参数的全局变量,第一参数的地址指示第一参数在储能变流器的控制器中的存储地址。In step S301, the read instruction sent by the host computer is received, and the value of the first parameter is obtained according to the address of the first parameter included in the read instruction, wherein the first parameter is the energy storage converter running in the controller In the control program of the global variable used to indicate the parameters monitored during the commissioning process of the energy storage converter, the address of the first parameter indicates the storage address of the first parameter in the controller of the energy storage converter.
在步骤S302,创建包括第一参数的地址和第一参数的值的数据包,并将数据包发送到上位机。In step S302, create a data packet including the address of the first parameter and the value of the first parameter, and send the data packet to the host computer.
根据本发明的另一示例性实施例,所述调试方法还可包括以下步骤(未示出):接收由上位机发送的将第二参数的值修改为预定值的写入指令,并根据写入指令中包括的第二参数的地址将第二参数的值修改为预定值,其中,第二参数为储能变流器的控制器中运行的控制程序中用于指示储能变流器的调试过程中待修改的参数的全局变量,第二参数的地址指示第二参数在储能变流器的中的存储地址。According to another exemplary embodiment of the present invention, the debugging method may also include the following steps (not shown): receiving a write instruction sent by the host computer to modify the value of the second parameter to a predetermined value, and according to the written Enter the address of the second parameter included in the instruction to modify the value of the second parameter to a predetermined value, wherein the second parameter is used to indicate the energy storage converter in the control program running in the controller of the energy storage converter The global variable of the parameter to be modified in the debugging process, the address of the second parameter indicates the storage address of the second parameter in the energy storage converter.
图4是示出根据本发明的示例性实施例的设置在上位机中的储能变流器的调试设备的结构框图。根据本发明的示例性实施例的设置在上位机中的储能变流器的调试设备包括:读取指令发送单元401、数据包接收单元402、名称确定单元403和显示单元404。Fig. 4 is a structural block diagram showing a debugging device for an energy storage converter provided in a host computer according to an exemplary embodiment of the present invention. According to an exemplary embodiment of the present invention, a debugging device for an energy storage converter set in a host computer includes: a reading instruction sending unit 401 , a data packet receiving unit 402 , a name determining unit 403 and a display unit 404 .
读取指令发送单元401生成读取第一参数的读取指令并将读取指令发送到储能变流器的控制器。第一参数为控制器中运行的控制程序中用于指示储能变流器的调试过程中监控的参数的全局变量。作为示例,储能变流器的调试过程中监控的参数可以是:储能变流器的直流侧的电压、直流侧的电流或交流侧的每一相的电流等。读取指令包括第一参数的地址,第一参数的地址指示第一参数在储能变流器的控制器中的存储地址。储能变流器的控制器中运行的控制程序是用于控制储能变流器的运行的程序。储能变流器的控制器可以是数字信号处理器或其他控制器。The read instruction sending unit 401 generates a read instruction for reading the first parameter and sends the read instruction to the controller of the energy storage converter. The first parameter is a global variable used in the control program running in the controller to indicate the parameters monitored during the commissioning process of the energy storage converter. As an example, the parameters monitored during the commissioning of the energy storage converter may be: the voltage of the DC side of the energy storage converter, the current of the DC side, or the current of each phase of the AC side. The read instruction includes the address of the first parameter, and the address of the first parameter indicates the storage address of the first parameter in the controller of the energy storage converter. The control program running in the controller of the energy storage converter is a program for controlling the operation of the energy storage converter. The controller of the energy storage converter can be a digital signal processor or other controllers.
读取指令发送单元401可周期性地自动生成读取第一参数的读取指令并将生成的读取指令发送到储能变流器的控制器,第一参数可以预先指定。这里,可通过指定第一参数的地址或者名称来指定第一参数。对于通过指定第一参数名称来指定第一参数的情况,可在生成读取指令之前,通过调用正则表达式搜索引擎在地址分配列表中搜索与第一参数的名称对应的参数地址,并将搜索到的参数地址作为第一参数的地址。地址分配列表被预先存储在上位机中。可以理解,还可以采用其他的搜索方式来搜索第一参数的地址。The reading instruction sending unit 401 can periodically automatically generate a reading instruction for reading the first parameter and send the generated reading instruction to the controller of the energy storage converter, and the first parameter can be specified in advance. Here, the first parameter may be specified by specifying an address or a name of the first parameter. For the case of specifying the first parameter by specifying the name of the first parameter, before generating the read instruction, the parameter address corresponding to the name of the first parameter can be searched in the address allocation list by calling the regular expression search engine, and the search The parameter address to is used as the address of the first parameter. The address allocation list is pre-stored in the host computer. It can be understood that other search methods may also be used to search for the address of the first parameter.
另外,读取指令发送单元401还可以响应于用户的相关操作来生成读取第一参数的读取指令并将生成的读取指令发送到储能变流器的控制器。第一参数可根据用户的相关操作来指定。例如,可通过接收用户输入的第一参数的名称来指定第一参数。这里,可响应于第一参数的名称被输入,通过调用正则表达式搜索引擎在地址分配列表中搜索与第一参数的名称对应的参数地址,并将搜索到的参数地址作为第一参数的地址。可以理解,这里还可以采用其他的搜索方式来搜索第一参数的地址。In addition, the read instruction sending unit 401 may also generate a read instruction to read the first parameter in response to a relevant operation of the user and send the generated read instruction to the controller of the energy storage converter. The first parameter may be specified according to a user's relevant operation. For example, the first parameter may be specified by receiving a user-input name of the first parameter. Here, in response to the name of the first parameter being input, the address allocation list is searched for a parameter address corresponding to the name of the first parameter by calling a regular expression search engine, and the searched parameter address is used as the address of the first parameter . It can be understood that other search methods may also be used here to search for the address of the first parameter.
上位机与储能变流器的控制器之间可采用各种通信方式来进行数据传输,例如:以太网通信、控制器局域网通信和串行通信等。相应地,上位机与储能变流器的控制器之间可通过各种通信接口来进行数据传输,例如:以太网接口、控制器局域网口和串行接口。Various communication methods can be used for data transmission between the upper computer and the controller of the energy storage converter, such as Ethernet communication, controller area network communication and serial communication. Correspondingly, data transmission can be performed between the upper computer and the controller of the energy storage converter through various communication interfaces, such as Ethernet interface, controller LAN interface and serial interface.
在上述各种通信方式中,优选以太网通信,这是由于以太网通信的速度较快,可满足控制器的数据刷新的速度要求。对于采用以太网通信的情况,上位机与储能变流器的控制器之间可经由高级精简指令集处理器(ARM)与储能变流器的控制器共享的随机存取存储器(RAM)空间来进行数据传输。具体说来,当上位机向储能变流器的控制器发送数据时,上位机通过以太网接口将数据发送到以太网,以太网将数据传输到ARM控制器的以太网接口,ARM控制器再将数据存储到共享的RAM空间,然后将数据传输到储能变流器的控制器的相应模块;当储能变流器的控制器向上位机发送数据时,储能变流器的控制器将数据存储到共享的RAM空间,ARM控制器通过以太网接口将数据发送到以太网,以太网将数据传输到上位机的以太网接口。Among the above-mentioned various communication methods, Ethernet communication is preferred, because the speed of Ethernet communication is relatively fast, which can meet the speed requirement of the controller for data refresh. For the case of using Ethernet communication, the random access memory (RAM) shared between the host computer and the controller of the energy storage converter can be shared with the controller of the energy storage converter via the Advanced Reduced Instruction Set Processor (ARM) space for data transfer. Specifically, when the upper computer sends data to the controller of the energy storage converter, the upper computer sends the data to the Ethernet through the Ethernet interface, and the Ethernet transmits the data to the Ethernet interface of the ARM controller, and the ARM controller Then store the data in the shared RAM space, and then transmit the data to the corresponding modules of the controller of the energy storage converter; when the controller of the energy storage converter sends data to the upper computer, the control of the energy storage converter The controller stores the data in the shared RAM space, the ARM controller sends the data to the Ethernet through the Ethernet interface, and the Ethernet transmits the data to the Ethernet interface of the upper computer.
在上位机与储能变流器的控制器之间传输的数据包包括读写标记、包长度、参数地址和参数值。优选地,在上位机与储能变流器的控制器之间传输的数据包还可包括各种校验码,例如,数据包中还包括16位循环冗余校验码。该校验码由发送端计算确定并添加到数据包中,接收端接收到数据包时,可根据校验码来对接收的数据包进行验证,避免数据传输错误影响调试数据的正确性,提高调试的可靠性。The data packets transmitted between the host computer and the controller of the energy storage converter include read and write marks, packet length, parameter address and parameter value. Preferably, the data packet transmitted between the host computer and the controller of the energy storage converter may also include various check codes, for example, the data packet further includes a 16-bit cyclic redundancy check code. The check code is calculated and determined by the sending end and added to the data packet. When the receiving end receives the data packet, it can verify the received data packet according to the check code to avoid data transmission errors affecting the correctness of the debugging data and improve Debug reliability.
数据包接收单元402接收储能变流器的控制器响应于读取指令而发送的数据包,其中,数据包包括第一参数的地址和第一参数的值。数据包中还可包括16位循环冗余校验码。The data packet receiving unit 402 receives the data packet sent by the controller of the energy storage converter in response to the read instruction, wherein the data packet includes the address of the first parameter and the value of the first parameter. A 16-bit cyclic redundancy check code may also be included in the data packet.
名称确定单元403根据第一参数的地址确定第一参数的名称。如上所述,可通过调用正则表达式搜索引擎在地址分配列表中搜索与第一参数的地址对应的参数名称,并将搜索到的参数名称作为第一参数的名称。可以理解,这里还可以采用其他的搜索方式来搜索第一参数的名称。The name determining unit 403 determines the name of the first parameter according to the address of the first parameter. As mentioned above, the parameter name corresponding to the address of the first parameter can be searched in the address allocation list by calling the regular expression search engine, and the searched parameter name can be used as the name of the first parameter. It can be understood that other search methods may also be used here to search for the name of the first parameter.
显示单元404将第一参数的名称和第一参数的值进行显示。The display unit 404 displays the name of the first parameter and the value of the first parameter.
根据本发明的另一示例性实施例,所述调试设备还可包括写入指令发送单元(未示出)。写入指令发送单元生成将第二参数的值修改为预定值的写入指令并将写入指令发送到储能变流器的控制器,其中,写入指令包括第二参数的地址和预定值,第二参数为储能变流器的控制器中运行的控制程序中用于指示储能变流器的调试过程中待修改的参数的全局变量。作为示例,储能变流器的调试过程中修改的参数可以是上述控制程序中的某个比例积分器的比例系数或者某个比例积分器积分系数等。,第二参数的地址指示第二参数在储能变流器的控制器中的存储地址。According to another exemplary embodiment of the present invention, the debugging device may further include a write instruction sending unit (not shown). The write instruction sending unit generates a write instruction for modifying the value of the second parameter to a predetermined value and sends the write instruction to the controller of the energy storage converter, wherein the write instruction includes the address of the second parameter and the predetermined value , the second parameter is a global variable used to indicate the parameters to be modified during the debugging process of the energy storage converter in the control program running in the controller of the energy storage converter. As an example, the parameter modified during the debugging process of the energy storage converter may be the proportional coefficient of a certain proportional integrator or the integral coefficient of a certain proportional integrator in the above control program. , the address of the second parameter indicates the storage address of the second parameter in the controller of the energy storage converter.
如上所述,可在上位机中响应于用户的相关操作来生成将第二参数的值修改为预定值的写入指令并将生成的写入指令发送到储能变流器的控制器。第二参数可根据用户的相关操作来指定。例如,可通过接收用户输入的第二参数的名称指定第二参数。这里,可响应于第二参数的名称被输入,通过调用正则表达式搜索引擎在地址分配列表中搜索与第二参数的名称对应的参数地址,并将搜索到的参数地址作为第二参数的地址。地址分配列表被预先存储在上位机中。可以理解,这里还可以采用其他的搜索方式来搜索第二参数的地址。As mentioned above, the host computer can generate a write instruction for modifying the value of the second parameter to a predetermined value in response to the relevant operation of the user, and send the generated write instruction to the controller of the energy storage converter. The second parameter can be specified according to the relevant operation of the user. For example, the second parameter may be specified by receiving a user-input name of the second parameter. Here, in response to the name of the second parameter being input, the address allocation list is searched for a parameter address corresponding to the name of the second parameter by calling a regular expression search engine, and the searched parameter address is used as the address of the second parameter . The address allocation list is pre-stored in the host computer. It can be understood that other search methods may also be used here to search for the address of the second parameter.
图5是示出根据本发明的示例性实施例的设置在储能变流器的控制器中的调试设备的结构框图。根据本发明的示例性实施例的设置在储能变流器的控制器中的调试设备包括读取指令接收单元501和数据包发送单元502。Fig. 5 is a structural block diagram showing a debugging device provided in a controller of an energy storage converter according to an exemplary embodiment of the present invention. The debugging device provided in the controller of the energy storage converter according to the exemplary embodiment of the present invention includes a read instruction receiving unit 501 and a data packet sending unit 502 .
读取指令接收单元501接收由上位机发送的读取指令,并根据读取指令中包括的第一参数的地址获取第一参数的值,其中,第一参数为储能变流器的控制器中运行的控制程序中用于指示储能变流器的调试过程中监控的参数的全局变量,第一参数的地址指示第一参数在储能变流器的控制器中的存储地址。The read instruction receiving unit 501 receives the read instruction sent by the host computer, and obtains the value of the first parameter according to the address of the first parameter included in the read instruction, wherein the first parameter is the controller of the energy storage converter The global variable used to indicate the parameters monitored during the debugging process of the energy storage converter in the control program running in the system, and the address of the first parameter indicates the storage address of the first parameter in the controller of the energy storage converter.
数据包发送单元502创建包括第一参数的地址和第一参数的值的数据包,并将数据包发送到上位机。如上所述,数据包中还可包括16位循环冗余校验码。The data packet sending unit 502 creates a data packet including the address of the first parameter and the value of the first parameter, and sends the data packet to the host computer. As mentioned above, a 16-bit cyclic redundancy check code may also be included in the data packet.
根据本发明的另一示例性实施例,所述调试设备还可包括写入指令接收单元(未示出)。写入指令接收单元接收由上位机发送的将第二参数的值修改为预定值的写入指令,并根据写入指令中包括的第二参数的地址将第二参数的值修改为预定值,其中,第二参数为储能变流器的控制器中运行的控制程序中用于指示储能变流器的调试过程中待修改的参数的全局变量,第二参数的地址指示第二参数在储能变流器的控制器中的存储地址。According to another exemplary embodiment of the present invention, the debugging device may further include a write instruction receiving unit (not shown). The write instruction receiving unit receives the write instruction sent by the host computer to modify the value of the second parameter to a predetermined value, and modifies the value of the second parameter to a predetermined value according to the address of the second parameter included in the write instruction, Wherein, the second parameter is a global variable used to indicate the parameter to be modified during the debugging process of the energy storage converter in the control program running in the controller of the energy storage converter, and the address of the second parameter indicates that the second parameter is in Storage address in the controller of the energy storage converter.
根据本发明的示例性实施例的储能变流器的调试方法和调试设备,通过在上位机中对控制器中运行的程序的参数进行显示来进行调试,不会对控制系统的运行时序产生影响。此外,根据本发明的示例性实施例的储能变流器的调试方法和调试设备还可通过上位机对控制器中的控制程序的参数的值进行修改。According to the debugging method and debugging equipment of the energy storage converter in the exemplary embodiment of the present invention, the debugging is carried out by displaying the parameters of the program running in the controller in the host computer, and the running sequence of the control system will not be affected. influences. In addition, the debugging method and debugging equipment of the energy storage converter according to the exemplary embodiment of the present invention can also modify the values of the parameters of the control program in the controller through the host computer.
本发明的示例性实施例实现了在储能变流器调试过程中需要进行的实时数据监控与状态量修改,使用以太网通讯使得系统数据刷新或写入周期小于100us,满足调试储能变流器控制系统的数据刷新速率要求。而本调试方法仅使用了储能变流器系统已有的硬件设备和通讯手段,不需要配备其他附加设备(不需要增加专用的调试仿真硬件设备),降低了调试系统成本。同时满足了监控过程中控制系统软件运行时序与逻辑不被打断的要求。数据校验机制的存在也避免了调试过程中数据显示的错误和下传数据传输错误导致的非预期控制。The exemplary embodiment of the present invention realizes the real-time data monitoring and state quantity modification required during the debugging process of the energy storage converter, and uses Ethernet communication to make the system data refresh or write cycle less than 100us, which meets the requirements for debugging the energy storage converter The data refresh rate requirements of the controller control system. However, this debugging method only uses the existing hardware equipment and communication means of the energy storage converter system, and does not need to be equipped with other additional equipment (no need to add special debugging and simulation hardware equipment), which reduces the cost of the debugging system. At the same time, it meets the requirement that the running sequence and logic of the control system software are not interrupted during the monitoring process. The existence of the data verification mechanism also avoids unexpected control caused by data display errors and download data transmission errors during the debugging process.
此外,应该理解,根据本发明的储能变流器的调试方法也可实现为计算机可读记录介质上的计算机可读代码。计算机可读记录介质是可存储其后可由计算机系统读出的数据的任意数据存储装置。计算机可读记录介质的示例包括:只读存储器(ROM)、随机存取存储器(RAM)、CD-ROM、磁带、软盘、光数据存储装置和载波(诸如经有线或无线传输路径通过互联网的数据传输)。计算机可读记录介质也可分布于连接网络的计算机系统,从而计算机可读代码以分布式存储和执行。此外,完成本发明的功能程序、代码和代码段可容易地被与本发明相关的领域的普通程序员在本发明的范围之内解释。In addition, it should be understood that the debugging method of the energy storage converter according to the present invention can also be implemented as computer-readable codes on a computer-readable recording medium. The computer readable recording medium is any data storage device that can store data which can be thereafter read by a computer system. Examples of the computer-readable recording medium include: read-only memory (ROM), random-access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage devices, and carrier waves (such as data transmitted through the Internet via wired or wireless transmission paths). transmission). The computer readable recording medium can also be distributed over network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion. In addition, functional programs, codes, and code segments that implement the present invention can be easily interpreted by ordinary programmers in the fields related to the present invention within the scope of the present invention.
此外,根据本发明的示例性实施例的储能变流器的调试设备中的各个单元可完全由硬件来实现,例如现场可编程门阵列(FPGA)或专用集成电路(ASIC);还可以由硬件和软件相结合的方式来实现;也可以完全通过计算机程序来以软件方式实现。In addition, each unit in the debugging equipment of the energy storage converter according to the exemplary embodiment of the present invention can be completely implemented by hardware, such as a field programmable gate array (FPGA) or an application specific integrated circuit (ASIC); it can also be implemented by It can be realized by a combination of hardware and software; it can also be realized by software completely through computer programs.
尽管已经参照其示例性实施例具体显示和描述了本发明,但是本领域的技术人员应该理解,在不脱离权利要求所限定的本发明的精神和范围的情况下,可以对其进行形式和细节上的各种改变。While the invention has been particularly shown and described with reference to exemplary embodiments thereof, it will be understood by those skilled in the art that changes may be made in form and detail without departing from the spirit and scope of the invention as defined by the claims. various changes.
Claims (22)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611208933.5A CN106776329B (en) | 2016-12-23 | 2016-12-23 | Debugging method and debugging equipment of energy storage converter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611208933.5A CN106776329B (en) | 2016-12-23 | 2016-12-23 | Debugging method and debugging equipment of energy storage converter |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106776329A true CN106776329A (en) | 2017-05-31 |
CN106776329B CN106776329B (en) | 2019-06-18 |
Family
ID=58919229
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611208933.5A Active CN106776329B (en) | 2016-12-23 | 2016-12-23 | Debugging method and debugging equipment of energy storage converter |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106776329B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107844385A (en) * | 2017-11-08 | 2018-03-27 | 北京潘达互娱科技有限公司 | A kind of variable read-write method and device based on shared drive |
CN109672509A (en) * | 2019-01-18 | 2019-04-23 | 北京工业大学 | Communication means and communication system in shield machine cabin |
CN110297148A (en) * | 2019-08-05 | 2019-10-01 | 江苏凌创电气自动化股份有限公司 | A kind of test macro for PCS energy storage |
CN111025057A (en) * | 2019-12-06 | 2020-04-17 | 平高集团有限公司 | An energy storage PCS test platform |
CN114756445A (en) * | 2021-01-08 | 2022-07-15 | 昆山安通新能源科技有限公司 | Product debugging method and device and charging pile debugging method and device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040008050A1 (en) * | 1998-11-13 | 2004-01-15 | Mehdi Hatamian | Dynamic register with IDDQ testing capability |
CN203365573U (en) * | 2013-06-28 | 2013-12-25 | 张双全 | Electric power parameter monitoring device for intelligent electrical network |
-
2016
- 2016-12-23 CN CN201611208933.5A patent/CN106776329B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040008050A1 (en) * | 1998-11-13 | 2004-01-15 | Mehdi Hatamian | Dynamic register with IDDQ testing capability |
CN203365573U (en) * | 2013-06-28 | 2013-12-25 | 张双全 | Electric power parameter monitoring device for intelligent electrical network |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107844385A (en) * | 2017-11-08 | 2018-03-27 | 北京潘达互娱科技有限公司 | A kind of variable read-write method and device based on shared drive |
CN107844385B (en) * | 2017-11-08 | 2021-04-23 | 北京龙之心科技有限公司 | A method and device for reading and writing variables based on shared memory |
CN109672509A (en) * | 2019-01-18 | 2019-04-23 | 北京工业大学 | Communication means and communication system in shield machine cabin |
CN110297148A (en) * | 2019-08-05 | 2019-10-01 | 江苏凌创电气自动化股份有限公司 | A kind of test macro for PCS energy storage |
CN111025057A (en) * | 2019-12-06 | 2020-04-17 | 平高集团有限公司 | An energy storage PCS test platform |
CN114756445A (en) * | 2021-01-08 | 2022-07-15 | 昆山安通新能源科技有限公司 | Product debugging method and device and charging pile debugging method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106776329B (en) | 2019-06-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106776329A (en) | The adjustment method and commissioning device of energy accumulation current converter | |
CN106030546B (en) | The method of computer program | |
CN102801587B (en) | Large-scale network-oriented virtualized monitoring system and dynamic monitoring method thereof | |
CN108733552B (en) | A FPGA remote debugging system and remote debugging method | |
US9720810B2 (en) | Device cloud monitoring and stability | |
US7926040B2 (en) | Method and system for timing code execution in a korn shell script | |
JP2023525393A (en) | Method and apparatus for updating gateway resources and IOT control platform | |
CN103152327B (en) | A kind of method, client and system configuring compression/de-compression plug-in unit | |
CN106294094A (en) | The method of testing of game server, client, server and system | |
US10067860B2 (en) | Defining test bed requirements | |
CN103580942B (en) | A kind of simulative serial port method of testing and device | |
WO2017066125A1 (en) | Test simulation for software defined networking environments | |
CN113722020A (en) | Interface calling method, device and computer readable storage medium | |
CN104836713A (en) | Measurement and calibration method for vehicle electronic controller, device and system | |
US20150234724A1 (en) | Method and apparatus for correlating input and output messages of system under test | |
CN114428728A (en) | Cyber-physical test protocol processing system and method | |
CN110674083A (en) | Workflow migration method, apparatus, device, and computer-readable storage medium | |
CN114896168A (en) | Rapid debugging system, method and memory for automatic driving algorithm development | |
CN110780630B (en) | A protocol library docking execution system and working method suitable for the Internet of Things | |
CN103415085B (en) | A kind of automatic generation method of general MAC protocol processor | |
CN113010358A (en) | LTPB (Low temperature pluggable) bus detection device applied to avionics system and method for testing flow description language of LTPB bus detection device | |
US9678852B2 (en) | Tracing the operations of a data processing apparatus using trace data source identifiers to respond to flush requests | |
CN105846973B (en) | A kind of protocol testing method and device of embedded software | |
KR101415270B1 (en) | Network system monitoring application installed on computing device | |
KR100918840B1 (en) | Method and Apparatus for Testing Target Sensor Node to compose Sensor Network |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20230423 Address after: Building 1, No. 8 Boxing 1st Road, Beijing Economic and Technological Development Zone, Daxing District, Beijing, 100176 (Yizhuang Cluster, High end Industrial Zone, Beijing Pilot Free Trade Zone) Patentee after: Beijing Jinfeng Zero Carbon Energy Co.,Ltd. Address before: 100176 No. 8 Boxing Road, Daxing District, Beijing Economic and Technological Development Zone Patentee before: BEIJING ETECHWIN ELECTRIC Co.,Ltd. |
|
TR01 | Transfer of patent right |