Controller online parameter configuration method and system, program burning method and device
Patent Information
- Application Number
- CN202211176912.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-26
- Publication Date
- 2026-09-29
- Estimated Expiration
- 2042-09-26
AI Technical Summary
[0004]根据上述现有技术,即使用户只想修改一个BOOL类型参数、启用或关闭某个功能,也需要重新编译整个程序,生成HEX文件,选择编译的HEX文件,这样做不仅耗费时间,也容易出错,而且对于原始程序的修改,对于普通用户来说比较难以实现
[0052]本发明提供一种控制器在线参数配置方法及系统、程序烧录方法及装置,其中控制器参数配置方法是根据所述数据读取指令读取控制器程序中的参数信息;其中,所述参数信息存储在所述控制器内的指定存储地址;当需要对参数或者功能进行修改时,根据修改指令对所述参数信息进行修改;将修改后的所述参数信息写入控制器内的所述指定存储地址,其中修改后的所述参数信息覆盖原有的所述参数信息。这样做的好处是不需要重新编译整个程序,用户直接编辑参数信息即可,无需对程序进行重构,因此可使得开发周期及维护周期缩短,用户更容易上手,且不需进行大量的、重复性高的修改维护工作,可节省开发资源。
Smart Images

Figure CN115586912B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of controller programming technology, and more specifically, to a controller online parameter configuration method and system, and a program programming method and apparatus. Background Technology
[0002] A microcontroller is an integrated circuit chip. It uses large-scale integrated circuits to connect various electronic components to form circuits with different functions, integrating them onto a single silicon chip to form a small but complete microcomputer system, which is widely used in the field of industrial control.
[0003] As a type of controller, a microcontroller is used to fulfill control requirements. First, the program is written on a host computer. Then, the host computer uses a programmer to burn the program file into the controller. The controller executes the burned program file to complete automatic control. However, when the control requirements change, and one of the control parameters needs to be modified, the parameter in the original program file must be modified, and then the entire control program file must be burned again.
[0004] Based on the aforementioned existing technology, even if a user only wants to modify a BOOL type parameter or enable or disable a certain function, the entire program needs to be recompiled, a HEX file generated, and the compiled HEX file selected. This is not only time-consuming and prone to errors, but also makes it difficult for ordinary users to modify the original program. Summary of the Invention
[0005] The problem this invention aims to solve is how to enable ordinary users to modify the control parameters of a microcontroller in a simple and easy-to-understand way.
[0006] To address the above problems, this invention provides a method for configuring controller parameters online, comprising:
[0007] Obtain data read instructions;
[0008] The parameter information in the controller program is read according to the data reading instruction; wherein the parameter information is stored at a specified storage address within the controller;
[0009] Obtain a modification instruction for the parameter information, and modify the parameter information according to the modification instruction;
[0010] The modified parameter information is written to the designated storage address in the controller, wherein the modified parameter information overwrites the original parameter information.
[0011] Furthermore, the data reading instruction includes a start flag code, a command code, a parameter data indicator code, and a check code, wherein the parameter data indicator code is the data storage address, and the check code is used to indicate the addition of the read parameter data;
[0012] The step of reading parameter information from the controller program according to the data reading instruction includes:
[0013] Parse the data read command and identify the parameter data indicator code;
[0014] Based on the parameter data indicator code, retrieve the program storage address of the control program and read the parameter data at the corresponding address.
[0015] Furthermore, after reading the parameter information in the controller program according to the data reading instruction, the process further includes:
[0016] Verify the accuracy of the parameter information;
[0017] The verification of the accuracy of the parameter information specifically includes:
[0018] Obtain the preset limit value corresponding to the read parameter data;
[0019] The read parameter data are added together, and the obtained preset limit values are added together;
[0020] Determine whether the sum of the parameter data exceeds the sum of the preset limit values;
[0021] If the sum of the parameter data is less than or equal to the sum of the preset limit values, then the read parameter information is determined to be accurate.
[0022] If the sum of the parameter data is greater than the sum of the preset limit values, the read parameter information is determined to be invalid, the read parameter information is cleared, and the judgment is made again.
[0023] Furthermore, writing the modified parameter information to the designated storage address within the controller includes:
[0024] By comparing the parameter information before and after modification, the modified parameter data can be identified.
[0025] Based on the identified parameter data, a corresponding parameter data indicator code is added to the parameter data;
[0026] The modified parameter data is written into the controller according to the parameter data indicator code; the address to which it is written is the address indicated by the parameter data indicator code.
[0027] Accordingly, the present invention also provides an online parameter configuration system for a controller, including a data reading module, an editing interface, and a data writing module;
[0028] The editing interface is used to obtain data reading instructions;
[0029] The data reading module is used to read parameter information from the controller program according to the data reading instruction; wherein the parameter information is stored at a specified storage address within the controller;
[0030] The data reading module is also used to verify the accuracy of the parameter information;
[0031] The editing interface is also used to obtain modification instructions for the parameter information and modify the parameter information according to the modification instructions;
[0032] The data writing module is used to write the modified parameter information into the specified storage address in the controller, wherein the modified parameter information overwrites the original parameter information.
[0033] Furthermore, the data reading instruction includes a start flag code, a command code, a parameter data indicator code, and a check code, wherein the parameter data indicator code is the data storage address, and the check code is used to indicate the addition of the read parameter data;
[0034] The data reading module includes:
[0035] The identification unit is used to parse the data reading instruction and identify the parameter data indicator code;
[0036] The reading unit is configured to retrieve the program storage address of the controller based on the parameter data indicator code, and read the parameter data corresponding to the data storage address.
[0037] Furthermore, the data writing module includes:
[0038] The comparison unit is used to compare the parameter information before and after modification to identify the modified parameter data;
[0039] The labeling unit is used to add a corresponding parameter data indicator code to the identified parameter data;
[0040] The writing unit is used to write the modified parameter data into the controller according to the parameter data indicator code; the address to be written is the address indicated by the parameter data indicator code.
[0041] On the other hand, the present invention also provides a method for online programming of a controller, comprising:
[0042] The specified storage address in the controller is designated as the parameter data storage address;
[0043] The written program file is burned into the controller, wherein the parameter data in the program file is saved to the parameter data storage address;
[0044] When it is necessary to rewrite the parameter data in the program of the controller, the above-mentioned online parameter configuration method of the controller is executed to update the parameter data online.
[0045] Furthermore, before saving the parameter data in the program file to the parameter data storage address, the controller online program burning method further includes:
[0046] Perform MD5 verification on the parameter data.
[0047] In addition, the present invention also provides an online program burning device for a controller, comprising: a host computer and a programmer;
[0048] The host computer is used to specify a designated storage address in the controller as the parameter data storage address;
[0049] The programmer is used to burn the written program file into the controller; the controller saves the parameter data in the program file to the parameter data storage address;
[0050] The host computer is also used to execute the above-mentioned online parameter configuration method for the controller when it is necessary to rewrite the parameter data in the program of the controller, and to update the parameter data online.
[0051] Compared with the prior art, the present invention has the following beneficial effects:
[0052] This invention provides a method and system for online parameter configuration of a controller, as well as a method and apparatus for program burning. The controller parameter configuration method reads parameter information from the controller program according to a data reading instruction; the parameter information is stored at a designated storage address within the controller; when modifications to parameters or functions are required, the parameter information is modified according to a modification instruction; the modified parameter information is written to the designated storage address within the controller, overwriting the original parameter information. The advantage of this approach is that it eliminates the need to recompile the entire program; users can directly edit the parameter information without refactoring the program. This shortens the development and maintenance cycles, makes the system easier for users to learn, and reduces the need for extensive and repetitive modification and maintenance work, thus saving development resources. Attached Figure Description
[0053] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0054] Figure 1 A flowchart of the controller online parameter configuration method in an embodiment of the present invention is shown;
[0055] Figure 2 An example diagram of the editing interface in an embodiment of the present invention is shown;
[0056] Figure 3 This diagram illustrates the location of parameter data storage within the controller in an embodiment of the present invention.
[0057] Figure 4 A schematic diagram of the programming process in an embodiment of the present invention is shown. Detailed Implementation
[0058] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0059] Figure 1 A flowchart of a controller online parameter configuration method according to an embodiment of the present invention is shown. The controller online parameter configuration method includes:
[0060] Step 100: Obtain the data read instruction. The data read instruction includes a start flag code, a command code, a parameter data indicator code, and a check code. The parameter data indicator code is the data storage address, and the check code indicates the addition of the read parameter data. The data read instruction is triggered by the user through inputting data or clicking the read button on the host computer's editing interface.
[0061] Step 200: Read parameter information from the controller program according to the data read instruction; wherein the parameter information is stored at a specified storage address within the controller. The data read instruction explicitly specifies which one or more data items are being read. When the data read instruction is executed, the corresponding data storage address is located, and the data at the corresponding location is read. Of course, when reading data, all parameter data are read and displayed in the editing interface, such as... Figure 2As shown, this method is only suitable for situations with a small amount of parameter data. When there is a large amount of parameter data, reading all of it is not only time-consuming, but also makes it inconvenient for users to read and view the large amount of data displayed in the editing interface. Therefore, a parameter selection function can be set in the editing interface. When data needs to be read, users only need to select the data to be modified in the editing interface, such as... Figure 2 As shown, this method reads only the necessary data, making searching and displaying faster and simpler, resulting in a better user experience.
[0062] Step 300: Obtain the modification instruction for the parameter information, and modify the parameter information according to the modification instruction. The modification instruction is also the user's action of modifying the data displayed through the editing interface. Entering new parameter data in the editing interface to replace the read parameter data can be considered as executing the modification instruction.
[0063] Step 400: Write the modified parameter information to the designated storage address within the controller, where the modified parameter information overwrites the original parameter information. After the user completes the modifications, click "Write Settings" (i.e., burn the data into the microcontroller) to complete the data update and replacement.
[0064] The controller program reads parameter information according to the data reading instruction; the parameter information is stored at a designated storage address within the controller; when modifications to parameters or functions are required, the parameter information is modified according to the modification instruction; the modified parameter information is written to the designated storage address within the controller, overwriting the original parameter information. The advantage of this approach is that the entire program does not need to be recompiled; users can directly edit the parameter information without refactoring the program. This shortens the development and maintenance cycles, makes it easier for users to learn, and avoids extensive, repetitive modification and maintenance work, saving development resources.
[0065] This invention differs from existing common controller download programs. Common controller download programs download the entire program. Even if a user only wants to modify a BOOL type parameter or enable / disable a function, the entire program needs to be recompiled, a HEX file generated, and the compiled HEX file selected. This process is not only time-consuming and error-prone, but also difficult for ordinary users to implement. The controller parameter configuration method described in this invention writes the parameter information sent from the serial port to a specified storage address. The advantage of this approach is that it eliminates the need to recompile the entire program, generate a HEX file, and reselect a HEX file. The user simply enters the parameter data in the editing interface and clicks "Write Settings."
[0066] In one embodiment of the present invention, step 200, reading parameter information from the controller program according to the data reading instruction, includes:
[0067] Step 201: Parse the data reading instruction and identify the parameter data indicator code;
[0068] Step 202: Based on the parameter data indicator code, retrieve the program storage address of the control program and read the parameter data at the corresponding address. Since the parameter information is stored at a specified storage address, only the data at the corresponding location needs to be read, and data can be read selectively.
[0069] Specifically, the host computer reads parameters from a specified address in the microcontroller to the interface via a serial port. The host computer must first specify a fixed base address in the APP (user program area), such as 0x8008000. The program in the microcontroller then retrieves all data in the range 0x8008000-0x8008400 based on 0x8008000. Figure 3 As shown.
[0070] In one embodiment of the present invention, after step 200, the controller online parameter configuration method further includes:
[0071] Verify the accuracy of the parameter information. Since data reading is not always guaranteed to be completely correct, it is necessary to verify the parameter information after reading. This is typically done using a CRC checksum (checkSum) to ensure data accuracy.
[0072] The verification of the accuracy of the parameter information specifically includes:
[0073] Obtain the preset limit value corresponding to the read parameter data;
[0074] The read parameter data are added together, and the obtained preset limit values are added together;
[0075] Determine whether the sum of the parameter data exceeds the sum of the preset limit values;
[0076] If the sum of the parameter data is less than or equal to the sum of the preset limit values, then the read parameter information is determined to be accurate.
[0077] If the sum of the parameter data is greater than the sum of the preset limit values, the read parameter information is determined to be invalid, the read parameter information is cleared, and the judgment is made again.
[0078] Specifically, the read settings are implemented via serial communication. First, the host computer sends a read command followed by four bytes, which together form two 16-bit addresses, 0x8000 and 0x8400. These are then ANDed to form the base address of the APP area, 0x8008000. The microcontroller reads 1KB of data from 0x8008000 to 0x8008400 based on 0x8008000, stores it in an array, and sends it to the host computer via serial port. The host computer program parses the data and uses a CRC (Cyclic Redundancy Check) checksum to ensure data accuracy. The host computer verifies the validity of the data; for example, the maximum value of the large port can only be a 3-digit positive integer, and the anti-scissor sensitivity can only be between 0 and 255. Data exceeding these values is considered invalid, and the host computer clears the data and rereads it. The serial communication protocol definition is shown in Table 1.
[0079] Table 1 Serial Communication Protocol Definitions
[0080]
[0081] It should be noted that, in addition to the baud rates shown in Table 1, other baud rates can be used for communication in the serial port protocol definition, and no restrictions are imposed here.
[0082] In one embodiment of the present invention, step 400, writing the modified parameter information to the designated storage address in the controller, includes:
[0083] Step 401: Compare the parameter information before and after modification to identify the modified parameter data. When the user modifies parameter data in the editing interface, the host computer records / identifies the parameter data in the modified parameter box.
[0084] Step 402: Based on the identified parameter data, add a corresponding parameter data indicator code to the parameter data. After the data is modified, the host computer automatically adds a parameter data indicator code to the modified parameter data, indicating that the data will be stored at a specified address in the controller during subsequent write operations.
[0085] Step 403: Write the modified parameter data into the controller according to the parameter data indicator code; the address to which the data is written is the address indicated by the parameter data indicator code.
[0086] Specifically, users can burn the parameters they set in the interface into the microcontroller by clicking "Write Settings" in the editing interface. The host computer writes the parameters / functions set in the interface to a specified address on the microcontroller via serial port. The host computer must first specify a fixed address in the application, such as 0x8008000. The bootloader program in the microcontroller receives the data and writes it to the specified application address while performing MD5 verification, thus completing the data writing process.
[0087] Accordingly, in one embodiment of the present invention, a controller online parameter configuration system is also provided to support the execution of the above-mentioned online parameter configuration method. The controller online parameter configuration system includes a data reading module, an editing interface, and a data writing module.
[0088] The editing interface is used to obtain data reading instructions;
[0089] The data reading module is used to read parameter information from the controller program according to the data reading instruction; wherein the parameter information is stored at a specified storage address within the controller; the data reading instruction includes a start flag code, a command code, a parameter data indicator code, and a check code, wherein the parameter data indicator code is the data storage address, and the check code is used to indicate that the read parameter data is added together;
[0090] The data reading module is also used to verify the accuracy of the parameter information;
[0091] The editing interface is also used to obtain modification instructions for the parameter information and modify the parameter information according to the modification instructions;
[0092] The data writing module is used to write the modified parameter information into the specified storage address in the controller, wherein the modified parameter information overwrites the original parameter information.
[0093] In one embodiment of the present invention, the data reading module includes:
[0094] The identification unit is used to parse the data reading instruction and identify the parameter data indicator code;
[0095] The reading unit is configured to retrieve the program storage address of the controller based on the parameter data indicator code, and read the parameter data corresponding to the data storage address.
[0096] In one embodiment of the present invention, the data writing module includes:
[0097] The comparison unit is used to compare the parameter information before and after modification to identify the modified parameter data;
[0098] The labeling unit is used to add a corresponding parameter data indicator code to the identified parameter data;
[0099] The writing unit is used to write the modified parameter data into the controller according to the parameter data indicator code; the address to be written is the address indicated by the parameter data indicator code.
[0100] Specifically, the writing settings are implemented via serial communication. First, the host computer sends a program upgrade command. Then, the microcontroller resets, and the MSP & PSP stack pointers start executing the BootLoader program from 0x8000000. The BootLoader program begins the program upgrade; the three bytes following the command together form a 16-bit address 0x8000 and a byte of data. These are then ANDed to form the base address of the APP area at 0x8008000. The microcontroller's BootLoader program writes one byte of data to 0x8008000. After the program is written, the MSP & PSP stack pointers start executing from 0x8004000APP, thus completing the programming process.
[0101] In one embodiment of the present invention, a method for online programming of a controller includes:
[0102] The specified storage address in the controller is designated as the parameter data storage address;
[0103] The written program file is burned into the controller, and the parameter data in the program file is saved to the parameter data storage address. The host computer must first specify a fixed address in the APP, such as 0x8008000, and the BootLoader program in the microcontroller receives the data.
[0104] When it is necessary to rewrite the parameter data in the program of the controller, the above-mentioned online parameter configuration method of the controller is executed to update the parameter data online.
[0105] In one embodiment of the present invention, before saving the parameter data in the program file to the parameter data storage address, the online program burning method further includes: performing MD5 verification on the parameter data.
[0106] Specifically, the host computer must first specify a fixed address in the APP, such as 0x8008000. The BootLoader program in the microcontroller receives the data and writes it to the specified APP address while performing MD5 verification, thus completing the data writing.
[0107] In one embodiment of the present invention, the method for programming a microcontroller (controller) is as follows:
[0108] Step 1: Connect the programming device to any microcontroller via a serial port;
[0109] Step 2: The programming device reads the file to be programmed. If the file is read successfully, the programming device loads the data of the file to be programmed into memory and executes Step 3. If the file is read unsuccessfully, execute Step 8.
[0110] Step 3: The programming device controls the directly connected microcontroller to enter boot mode. If the directly connected microcontroller successfully enters boot mode, proceed to step 4. If the directly connected microcontroller fails to enter boot mode, proceed to step 8.
[0111] Step 4: The programming device performs a connectivity test on the directly connected microcontroller. If the test is successful, proceed to step 5; if the test fails, proceed to step 8.
[0112] Step 5: The programming device writes a frame of data to the directly connected microcontroller. If the writing is successful, proceed to step 6; if the writing fails, proceed to step 8.
[0113] Step 6: The programming device determines whether all the data to be programmed has been programmed. If not, proceed to step 5; if yes, proceed to step 7.
[0114] Step 7: Burning successful.
[0115] Step 8: Exit the burning process.
[0116] To support the smooth execution of the above-described programming method, in one embodiment of the present invention, the controller online programming device includes: a host computer and a programmer; wherein the host computer can be a computer, smartphone, or other device. The host computer includes the aforementioned controller online parameter configuration system. Additionally, in another embodiment of the present invention, the host computer may also include a program generation tool and an application program. The program generation tool or application program includes the aforementioned controller online parameter configuration system.
[0117] The host computer is used to specify a designated storage address in the controller as the parameter data storage address;
[0118] The programmer is used to burn the written program file into the controller; the controller saves the parameter data in the program file to the parameter data storage address;
[0119] The host computer is also used to execute the above-mentioned online parameter configuration method for the controller when it is necessary to rewrite the parameter data in the program of the controller, and to update the parameter data online.
[0120] Specifically, before performing the burning process, the computer needs to be connected to the controller via a programmer. For example... Figure 4 As shown, the specific steps for burning the program are as follows:
[0121] 1. First, use a program generation tool to create a program with the extension .GP_TECH from the .HEX file.
[0122] 2. Using the host computer application, select the burning program with the .GP_TECH extension and click Start Download (see...). Figure 2 The program is downloaded to the microcontroller (controller) using a programmer.
[0123] 3. Clicking "Write Settings" will download the configured functions / parameters to the microcontroller. This step is the initial step of writing the initial data into the controller.
[0124] 4. You can click "Read Settings" to read the functions / parameters from the microcontroller into the user interface. This step is performed when you need to modify the control parameters in the program.
[0125] 4.1 Click "Read Settings" to read the functions / parameters from the microcontroller into the user interface. The programmer first reads data from the controller and sends it back to the computer, where it is displayed in the editing interface.
[0126] 4.2 By clicking "Write Settings", the parameters set by the user in the interface are burned into the microcontroller.
[0127] The host computer application of this invention provides an editing interface. When modifications to functions / parameters are needed, users only need to directly edit the functions / parameters set in the preset operation menu using the interface, without needing to refactor the program. Therefore, the system or device of this invention can shorten the development and maintenance cycles, making it easier for users to get started, and eliminating the need for a large amount of repetitive modification and maintenance work, thus saving development resources. This system is not limited to any particular microcontroller or controller on the market; it is compatible with most controllers.
[0128] Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for configuring online parameters of a controller, characterized in that, include: Obtain a data read instruction; the data read instruction includes a start flag code, a command code, a parameter data indicator code, and a check code, wherein the parameter data indicator code is the data storage address, and the check code is used to indicate the addition of the read parameter data; The parameter information in the controller program is read according to the data read instruction; wherein the parameter information is stored at a specified storage address within the controller; the step of reading the parameter information in the controller program according to the data read instruction includes: Parse the data read command and identify the parameter data indicator code; Based on the parameter data indicator code, retrieve the program storage address of the controller and read the parameter data corresponding to the data storage address; Obtain a modification instruction for the parameter information, and modify the parameter information according to the modification instruction; The modified parameter information is written to the designated storage address within the controller, wherein the modified parameter information overwrites the original parameter information. Writing the modified parameter information to the designated storage address within the controller includes: By comparing the parameter information before and after modification, the modified parameter data can be identified. Based on the identified parameter data, a corresponding parameter data indicator code is added to the parameter data; The modified parameter data is written into the controller according to the parameter data indicator code; the address to which it is written is the address indicated by the parameter data indicator code.
2. The controller online parameter configuration method according to claim 1, characterized in that, After reading the parameter information in the controller program according to the data reading instruction, the process further includes: Verify the accuracy of the parameter information; The verification of the accuracy of the parameter information specifically includes: Obtain the preset limit value corresponding to the read parameter data; The read parameter data are added together, and the obtained preset limit values are added together; Determine whether the sum of the parameter data exceeds the sum of the preset limit values; If the sum of the parameter data is less than or equal to the sum of the preset limit values, then the read parameter information is determined to be accurate. If the sum of the parameter data is greater than the sum of the preset limit values, the read parameter information is determined to be invalid, the read parameter information is cleared, and the judgment is made again.
3. A controller online parameter configuration system, characterized in that, The controller online parameter configuration system, as described in any one of claims 1 to 2, includes a data reading module, an editing interface, and a data writing module. The editing interface is used to obtain data reading instructions; The data reading module is used to read parameter information from the controller program according to the data reading instruction; wherein the parameter information is stored at a specified storage address within the controller; The data reading module is also used to verify the accuracy of the parameter information; The editing interface is also used to obtain modification instructions for the parameter information and modify the parameter information according to the modification instructions; The data writing module is used to write the modified parameter information into the specified storage address in the controller, wherein the modified parameter information overwrites the original parameter information.
4. The controller online parameter configuration system according to claim 3, characterized in that, The data reading instruction includes a start flag code, a command code, a parameter data indicator code, and a check code, wherein the parameter data indicator code is the data storage address, and the check code is used to indicate the addition of the read parameter data; The data reading module includes: The identification unit is used to parse the data reading instruction and identify the parameter data indicator code; The reading unit is used to retrieve the program storage address of the controller according to the parameter data indicator code, and read the parameter data corresponding to the data storage address.
5. The controller online parameter configuration system according to claim 4, characterized in that, The data writing module includes: The comparison unit is used to compare the parameter information before and after modification to identify the modified parameter data; The labeling unit is used to add a corresponding parameter data indicator code to the identified parameter data; The writing unit is used to write the modified parameter data into the controller according to the parameter data indicator code; the address to be written is the address indicated by the parameter data indicator code.
6. A method for online programming of a controller, characterized in that, include: The specified storage address in the controller is designated as the parameter data storage address; The written program file is burned into the controller, wherein the parameter data in the program file is saved to the parameter data storage address; When it is necessary to rewrite the parameter data in the program of the controller, the online parameter configuration method of the controller as described in any one of claims 1-2 is executed to update the parameter data online.
7. The controller online program burning method according to claim 6, characterized in that, Before saving the parameter data in the program file to the parameter data storage address, the method further includes: Perform MD5 verification on the parameter data.
8. A controller online programming device, characterized in that, include: Host computer and programmer; The host computer is used to specify a designated storage address in the controller as the parameter data storage address; The programmer is used to burn the written program file into the controller; the controller saves the parameter data in the program file to the parameter data storage address; The host computer is also used to execute the controller online parameter configuration method as described in any one of claims 1-2 to update the parameter data online when it is necessary to rewrite the parameter data in the program of the controller.
Citation Information
Patent Citations
Parameter processing method, device and system
CN113312091A