Control equipment operation method, control platform equipment, controller and computer equipment

By processing and converting the device configuration parameters in the configuration configuration into configuration files, the problem of inefficient download of compiled controller projects is solved, and the flexibility of project editing and data processing efficiency is improved.

CN119781339AActive Publication Date: 2025-04-08SHENZHEN INOVANCE TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411890396.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-20
Publication Date
2025-04-08
Estimated Expiration
2044-12-20

AI Technical Summary

Technical Problem

During the project download process of compiled controllers, configuration configuration information occupies a lot of space, resulting in low project download efficiency, and configuration information needs to be converted into programs through the compiler interface, increasing the coupling degree of various components in the project and reducing the flexibility of project editing.

Method used

Avoid over-coupling with the program by processing and converting the device configuration parameters in the configuration configuration into a configuration file. Compile program information and framework configuration into binary executables, while device configuration parameters are downloaded separately as configuration files for independent management and parsing.

Benefits of technology

It improves the flexibility of project editing, reduces the amount of data and repeated compilation operations during project download, solves the problem of large space-consuming configuration information, improves data processing efficiency and saves space.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119781339A_ABST
    Figure CN119781339A_ABST
Patent Text Reader

Abstract

The invention relates to a method for controlling equipment operation, control platform equipment, a controller and computer equipment. The method is applied to a control platform device and comprises the steps that program information and configuration in a project are obtained, and the configuration comprises frame configuration and first device configuration parameters; converting the first equipment configuration parameter into a first configuration file; compiling the program information and the framework configuration through a compiler so as to convert the program information and the framework configuration into a first binary executable file; the first binary executable file is downloaded to the controller, and / or the first configuration file is downloaded to the controller, and the first binary executable file and the first configuration file are used for controlling equipment operation. By adopting the method, the flexibility of project editing can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of industrial automation equipment, and in particular to a method for controlling the operation of equipment, a control platform device, a controller and a computer device. Background Art

[0002] With the accelerated development of the domestic industrial manufacturing industry, a large number of intelligent equipment production lines have emerged in the new energy, wind power, mobile phone and other industries. In the development of equipment related to intelligent equipment production lines, the controller is in the position of "core brain", and the market competition is fierce. Various controller manufacturers continue to optimize product functions, improve performance, and reduce the difficulty of users to increase user dependence in order to seize market share. In the controller product architecture, the Integrated Development Environment (IDE) is a user-oriented engineering editing entrance with functions such as program writing, configuration, and project download, which is used to develop customized intelligent equipment production lines. Among them, the program is associated with the production line control logic, and the configuration involves the production line hardware equipment, and the hardware equipment is usually not easy to change.

[0003] When debugging a project, for a compiled controller, the project must be downloaded in full or modified online. Since the configuration must be pushed into the compiler together with the program for compilation and then downloaded into the controller, each time the project is downloaded, the configuration information that is not easy to change will occupy a large space in the project data, and the configuration information must be converted into a program through the compiler interface, which increases the coupling between the components in the project and reduces the flexibility of project editing. Summary of the invention

[0004] Based on this, it is necessary to provide a method for controlling the operation of a device, a control platform device, a controller and a computer device to address the above technical problems.

[0005] In a first aspect, the present application provides a method for controlling the operation of a device, which is applied to a control platform device, and the method comprises:

[0006] Acquire program information and configuration in the project, wherein the configuration includes: framework configuration and first device configuration parameters;

[0007] Converting the first device configuration parameter into a first configuration file;

[0008] Compiling the program information and the framework configuration through a compiler to convert them into a first binary executable file;

[0009] The first binary executable file is downloaded to the controller, and / or the first configuration file is downloaded to the controller, wherein the first binary executable file and the first configuration file are used to control the operation of the device.

[0010] In a second aspect, the present application provides a method for controlling the operation of a device, which is applied to a controller, comprising:

[0011] Obtaining a first binary executable file downloaded from the control platform device, and / or a first configuration file downloaded;

[0012] Based on the first binary executable file and / or the first configuration file, control the operation of the device;

[0013] The first binary executable file is compiled based on program information in the project and framework configuration in the configuration configuration, and the first configuration file is converted based on first device configuration parameters in the configuration configuration.

[0014] In a third aspect, the present application further provides a control platform device, including:

[0015] An acquisition module, used to acquire program information and configuration in the project, wherein the configuration includes: framework configuration and first device configuration parameters;

[0016] A conversion module, used to convert the first device configuration parameter into a first configuration file;

[0017] A compiling module, used for compiling the program information and the framework configuration through a compiler to convert them into a first binary executable file;

[0018] A download module is used to download the first binary executable file to the controller, and / or download the first configuration file to the controller, wherein the first binary executable file and the first configuration file are used to control the operation of the device.

[0019] In a fourth aspect, the present application further provides a controller, comprising:

[0020] A download module, used to obtain a first binary executable file downloaded from the control platform device, and / or a first configuration file downloaded;

[0021] A control module, configured to control the operation of a device based on the first binary executable file and / or the first configuration file;

[0022] The first binary executable file is compiled based on program information in the project and framework configuration in the configuration configuration, and the first configuration file is converted based on first device configuration parameters in the configuration configuration.

[0023] In a fifth aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method described in the first aspect or the second aspect is implemented.

[0024] In a sixth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method described in the first aspect or the second aspect is implemented.

[0025] In a seventh aspect, the present application further provides a computer program product, including a computer program, which, when executed by a processor, implements the method described in the first aspect or the second aspect.

[0026] The above method for controlling the operation of the device can obtain the program information and configuration configuration in the project, and the configuration configuration includes: framework configuration and first device configuration parameters; converting the first device configuration parameters into a first configuration file; compiling the program information and framework configuration through a compiler to convert them into a first binary executable file; downloading the first binary executable file to the controller, and / or downloading the first configuration file to the controller, the first binary executable file and the first configuration file are used to control the operation of the device. This solution improves the flexibility of project editing by processing the device configuration parameters in the configuration configuration separately to avoid excessive coupling with the program. It changes the situation in the prior art where the components are highly coupled and the flexibility is limited due to the compilation and downloading of the configuration configuration and the program together.

[0027] Furthermore, the above method converts the device configuration parameters in the configuration configuration into configuration files separately, improves data processing efficiency and saves space, reduces the amount of data and repeated compilation operations during project downloading, and solves the problem of large space occupied by configuration information in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0029] Figure 1 This is a schematic diagram of the basic principle of controlling the operation of equipment through the CodeSys platform;

[0030] Figure 2A A schematic diagram of a method for controlling the operation of a device Figure 1 ;

[0031] Figure 2BA second flow chart of a method for controlling the operation of a device;

[0032] Figure 2C A schematic diagram of a method for controlling the operation of a device Figure 3 ;

[0033] Figure 3 This is a schematic diagram of the basic principle of controlling the operation of the device through the CodeSys platform in the embodiment of the present application;

[0034] Figure 4 A second flow chart of a method for controlling the operation of a device based on a PLC project;

[0035] Figure 5 A structural block diagram of a control platform device in an embodiment;

[0036] Figure 6 is a structural block diagram of a controller in one embodiment;

[0037] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0039] The domestic industrial manufacturing industry is developing rapidly, and a large number of intelligent equipment production lines are emerging in industries such as new energy, wind power, and mobile phones. In the development of equipment related to intelligent equipment production lines, the controller is in the position of "core brain". The market competition is fierce. Various controller manufacturers continue to optimize product functions, improve performance, and reduce the difficulty of users to increase user dependence in order to seize market share. In the controller product architecture, IDE is a user-oriented engineering editing portal with functions such as program writing, configuration, and project download. It is used to develop customized intelligent equipment production lines, where the program is associated with the production line control logic, and the configuration involves the production line hardware equipment, and the hardware equipment is usually not easy to change.

[0040] When debugging a project, for a compiled controller, the project must be downloaded in full or modified online. Since the configuration must be pushed into the compiler together with the program for compilation and then downloaded into the controller, each time the project is downloaded, the configuration information that is not easy to change will occupy a large space in the project data, resulting in low efficiency in project downloads. In addition, the configuration information must be converted into a program through the compiler interface, which not only affects IDE performance, but also increases the coupling degree of the components in the project, reducing the flexibility of project editing.

[0041] In order to solve the above technical problems, the embodiment of the present application provides a method for controlling the operation of a device, which can avoid excessive coupling with the program by processing the configuration-related content separately, thereby improving the flexibility of engineering editing. This changes the situation in the prior art where the configuration and program are compiled and downloaded together, resulting in high component coupling and limited flexibility. In addition, the above method converts the device configuration parameters in the configuration configuration into configuration files separately, improves data processing efficiency and saves space, reduces the amount of data and repeated compilation operations during project download, and solves the problem of large space occupied by configuration information in the prior art.

[0042] CodeSys is a powerful industrial automation programming platform, widely used in programming controllers and other equipment. It provides users with a unified development environment for creating and managing automation projects.

[0043] The data in a project mainly includes program information and configuration. Program information includes several program nodes, which mainly include program organization unit (POU), global variable list (GVL), DUT (Data Unit Type) and other member device nodes. Configuration includes several device nodes, which mainly include device function block (FB) instance and device configuration parameters.

[0044] For example, Figure 1 The following is a schematic diagram of the basic principle of controlling the operation of equipment through the CodeSys platform. Figure 1 As shown, the operation process mainly includes the following processes:

[0045] 1. Project compilation

[0046] Before downloading the project in the CodeSys platform from the IDE to the controller, the project needs to be converted into a binary executable file through the compiler. This process is called project compilation. Before compiling, the compiler needs to obtain all program information in the project. The configuration in the project cannot be directly involved in the compilation. The configuration needs to be converted into a program before it can participate in the compilation.

[0047] 2. Device compilation

[0048] The process of converting the configuration into a program that the compiler can recognize before compiling the project is called device compilation. Among them, the FB instance in the configuration is itself a special POU and does not need to be processed separately; and the device configuration parameters in the configuration will be converted into GVL, DUT, and POU in a pre-agreed format. Figure 1As shown, after the configuration is converted into a program, all programs can be passed to the compiler for compilation.

[0049] 3. Equipment operation

[0050] After the binary executable file is downloaded into the controller, the controller runs the binary executable file. Among them, the FB instance includes functions such as device initialization, bus cycle, and stop, and the main function of the GVL, DUT, and POU after the device configuration parameters are converted is to provide data sources for device initialization.

[0051] In an embodiment of the present application, a new configuration distribution method is provided based on the CodeSys platform: on the one hand, the framework configuration of the device is downloaded to the controller by compilation, and on the other hand, the configuration parameters of the device are downloaded to the controller by interpretation, and the controller parses the configuration by itself, thereby realizing the separation between the program and the device.

[0052] In some embodiments, the controller may be a programmable logic controller (PLC).

[0053] The method for controlling the operation of a device provided in the embodiment of the present application can be implemented through the interaction between a control platform device and a controller, wherein the control platform device can be a computer device configured with a CodeSys platform. The above method can be implemented through the interaction between the CodeSys platform in the control platform device and the controller.

[0054] For example, Figure 2A FIG. 1 is a flow chart of a method for controlling the operation of a device. Figure 1 The method is applied to control platform equipment and may include but is not limited to the following steps:

[0055] 21. The control platform equipment obtains the program information and configuration configuration in the project.

[0056] The above configuration includes: framework configuration and first device configuration parameters.

[0057] Among them, the above configuration configuration includes: framework configuration and first device configuration parameters. The framework configuration can be understood as the setting of the overall architecture of the device, and the framework configuration includes the FB instance of each device in the project. Among them, function block (FB) refers to a type of program component, and the FB instance is a specific call to the FB. For the device, the main function of the FB instance is to implement the driver of the device communication protocol. The controller can control the operation and communication of the device through the FB instance of the device. Optionally, the framework configuration can also include information such as the connection relationship between devices in the project.

[0058] The above-mentioned first device configuration parameter is related to the setting of specific parameters of the device. This step is the basis for a series of subsequent processing operations and clarifies the scope of data to be processed.

[0059] The above program information covers multiple program nodes, such as program organization unit (POU), global variable list (GVL), data unit (DUT) and other members, which play an important role in the logical control of subsequent equipment operation.

[0060] In some embodiments, the program information and configurations may be configured by a user, or may be determined by related information configured in a historically existing project.

[0061] In some embodiments, the above-mentioned program information and configuration may be obtained by modifying part of the information through user configuration based on the relevant information configured in the historically existing project.

[0062] Among them, the above-mentioned framework configuration is usually not easily changed, while the above-mentioned first device configuration parameters are device operation parameters that can be edited by the user. In the embodiment of the present application, the first device configuration parameters edited by the user can be removed separately, and do not participate in the process of device compilation and project compilation, but the above-mentioned framework configuration is involved in the process of device compilation and project compilation. Therefore, the first device configuration parameters will not exist in the subsequently generated binary executable file. For this part of the content, this part of the parameters can be sent to the controller by forming a configuration file and downloading it separately.

[0063] In some embodiments, some parameters (first device configuration parameters) may be selected from the device operation parameters to not participate in the device compilation and project compilation process. The selected parameters may be the part edited by the user this time, while the unselected part of the device operation parameters may still participate in the device compilation and project compilation process.

[0064] 22. The control platform device converts the first device configuration parameter into a first configuration file.

[0065] The format of the first configuration file may be a JavaScript Object Notation (JSON) format, or an eXtensible Markup Language (XML) format, etc.

[0066] The first device configuration parameters obtained above are converted into a first configuration file in JSON format or XML format. The reason for such conversion is that by converting it into a configuration file, it can better adapt to the entire control process, facilitate the smooth implementation of subsequent downloading to the controller and other operations, and is a key link in preprocessing data to standardize it.

[0067] 23. The control platform device compiles the program information and the framework configuration through a compiler to convert them into a first binary executable file.

[0068] 24. The control platform device downloads the first binary executable file to the controller, and / or downloads the first configuration file to the controller.

[0069] The first binary executable file and the first configuration file are used to control the operation of the device.

[0070] Among them, the program information and framework configuration are compiled by the compiler to convert them into the first binary executable file. The compilation process is to convert the previously organized program-related content and device framework configuration that meet certain logic and format requirements into a binary executable file format that the controller can directly recognize and execute according to the rules and algorithms followed by the compiler. In this way, these files can be downloaded to the controller later to drive the device to run according to the established logic.

[0071] Compared with the above-mentioned first device configuration parameters, the above-mentioned framework configuration and program information are data with a lower possibility of modification. These data are compiled together, and the first device configuration parameters are converted into the first configuration file separately. In this way, these two parts of data can be decoupled in the subsequent download process, thereby improving flexibility.

[0072] In the method shown in FIG. 2A above, the control platform device first processes the first device configuration parameter in the configuration configuration separately and converts it into a first configuration file in a specific format (such as JSON or XML), thereby avoiding excessive coupling with the program information and framework configuration, effectively improving the flexibility of project editing, and reducing the mutual constraints between components. Secondly, the framework configuration and program information are compiled together into a first binary executable file, and the first device configuration parameter is converted and downloaded separately, which reduces the amount of data when the project is downloaded, solves the problem of large space occupied by configuration information in the prior art, improves data processing efficiency and saves space, and reduces repeated compilation operations. Furthermore, this new configuration configuration distribution method realizes the separation between the program and the device, so that the controller can parse the configuration configuration by itself, which helps to optimize the entire control device operation process, improve the adaptability and scalability of the system, and provide strong support for efficient and stable operation in the field of industrial automation control.

[0073] For example, Figure 2B The figure shows a flow chart of a method for controlling the operation of a device. The method is applied to a controller, including but not limited to the following steps:

[0074] 25. The controller obtains a first binary executable file downloaded from the control platform device, and / or a first configuration file downloaded.

[0075] In an embodiment of the present application, in one case, the controller obtains the first binary executable file but does not obtain the first configuration file; in another case, the controller does not obtain the first binary executable file but obtains the first configuration file; in yet another case, the controller obtains both the first binary executable file and the first configuration file.

[0076] 26. The controller controls the operation of the device based on the first binary executable file and / or the first configuration file.

[0077] The first binary executable file is compiled based on the program information in the project and the framework configuration in the configuration configuration, and the first configuration file is converted based on the first device configuration parameter in the configuration configuration.

[0078] In the above step 26, the control of the device operation is implemented based on the first binary executable file and / or the first configuration file that have been downloaded to the controller. Specifically, if it is based on the joint control of the two, it is necessary to parse the configuration file first, obtain the first device configuration parameters and save them in the memory, and then call these parameters from the memory to coordinate the control of the device operation when the binary executable file is run. If it is based on the control of the binary executable file alone, the parameters related to the framework configuration in the file will be called from the device configuration parameters historically stored in the memory to control the operation; and when it is based on the control of the configuration file alone, the configuration file is also parsed first to obtain the parameters and save them in the memory, and then the corresponding binary executable file stored historically is obtained, and then the parameters are called from the memory to control the operation.

[0079] In the method shown in FIG. 2B above, the controller realizes flexible control of the operation of the device. By acquiring different combinations of the first binary executable file and the first configuration file, the controller can select the control method according to the actual situation. It can be operated based on the binary executable file using the historical storage parameters alone, or it can be operated based on parsing the configuration file and acquiring the historical binary file alone. It can also combine the two, first parse the configuration file to obtain the parameters and store them in the memory, and then call the memory parameters for collaborative control when running the binary executable file, which effectively improves the adaptability and autonomy of the controller to the control of the device operation in different data acquisition scenarios, and enhances the reliability and flexibility of the entire control system.

[0080] For example, Figure 2C FIG. 1 is a flow chart of a method for controlling the operation of a device. Figure 1 The method may include, but is not limited to, the following steps:

[0081] 201. The control platform equipment obtains the program information and configuration configuration in the project.

[0082] 202. The control platform device converts the first device configuration parameter into a first configuration file.

[0083] 203. The control platform device compiles the program information and the framework configuration through a compiler to convert them into a first binary executable file.

[0084] 204. The control platform device downloads the first binary executable file to the controller, and / or downloads the first configuration file to the controller.

[0085] For the description of the above steps 201 to 204, reference may be made to the above description of steps 21 to 24, and the contents described above will not be repeated here.

[0086] In some embodiments, the first binary executable file can be downloaded to the controller by receiving user instructions through the CodeSys platform via online communication. The first configuration file can be downloaded to the controller using user instructions, or the download process of the first configuration file can be automatically triggered after the first binary executable file is downloaded.

[0087] In some embodiments, the control platform device may download the first binary executable file to the controller and / or download the first configuration file to the controller in response to a download instruction from the user.

[0088] In some embodiments, the control platform device downloads a first binary executable file to the controller, and / or downloads a first configuration file to the controller, including: downloading the first binary executable file to the controller in response to a first download instruction from a user, and after triggering the download of the first binary executable file to the controller, triggering the download of the first configuration file to the controller.

[0089] Among them, the user can issue a first download command through the command control of the control platform device. After receiving the command, the control platform device starts the download process of the first binary executable file to the controller. After the file is successfully downloaded and triggers a specific signal, the system automatically starts the download task of the first configuration file, and transmits the two types of files to the controller in order to ensure that the device control-related data is complete and in place.

[0090] The above process optimizes the file download order, deploys the core executable files first and then supplements the configuration information, reduces the device waiting time, improves the startup efficiency, and reduces the risk of compatibility and configuration errors caused by disordered file order, thereby enhancing the stability and reliability of device operation.

[0091] In some embodiments, the control platform device downloads the first binary executable file to the controller, and / or downloads the first configuration file to the controller may include: downloading the first binary executable file to the controller in response to a first download instruction from the user; downloading the first configuration file to the controller in response to a second download instruction from the user.

[0092] Among them, the user can issue the first download instruction and the second download instruction respectively through the command control of the control platform device. When the control platform device receives the first download instruction, it transfers the first binary executable file to the controller; after receiving the second download instruction, it transfers the first configuration file to the controller, thereby realizing independent and orderly control of the two file download processes to adapt to different scenario requirements.

[0093] This method gives users great flexibility in file downloading, and can independently decide the download timing and order based on actual conditions. It is suitable for complex and changeable engineering debugging and equipment configuration scenarios, and improves users' refined management level of equipment control and system adaptability.

[0094] In some embodiments, the control platform device may also parse a second configuration file of the project uploaded by the controller to obtain second device configuration parameters; and generate first device configuration parameters based on the second device configuration parameters.

[0095] The controller obtains a first binary executable file downloaded from the control platform device, and / or a first configuration file downloaded.

[0096] The control platform device receives the second configuration file of the project uploaded by the controller, extracts the second device configuration parameters therein using a parsing algorithm, and then generates the first device configuration parameters based on these parameters according to the established conversion rules and logic, thereby providing accurate configuration data for subsequent device operation control.

[0097] In the above process, by using existing configuration files to generate new parameters, the workload and error probability of manual reconfiguration are reduced, the efficiency and accuracy of parameter generation are improved, the value of data is fully tapped, dynamic optimization and intelligent management of equipment configuration parameters are achieved, and the system's adaptability to different engineering scenarios is enhanced.

[0098] like Figure 3 As shown in FIG. 1 , it is a schematic diagram of the basic principle of controlling the operation of the device through the CodeSys platform in the embodiment of the present application. Figure 3 As shown, the device configuration parameters and the framework configuration in the configuration configuration can be processed separately, wherein the device configuration parameters are converted into a configuration file as shown in the above step 202, and the framework configuration is transmitted to the compiler together with the program information for compilation processing to obtain a binary executable file.

[0099] like Figure 3 As shown in , configuration files and binary program files can be downloaded to the controller through different paths.

[0100] 205. The controller controls the operation of the device based on the first binary executable file and / or the first configuration file.

[0101] For the description of step 205, reference may be made to the relevant description of step 25 and step 26 in the above embodiment, and the contents described above will not be repeated here.

[0102] In some embodiments, based on the first binary executable file and the first configuration file, controlling the operation of the device may include but is not limited to: parsing the first configuration file to obtain first device configuration parameters; saving the parsed first device configuration parameters in the memory; running the first binary executable file and calling the first device configuration parameters from the memory to control the operation of the device.

[0103] In the above implementation process, when the device operation is to be controlled based on the first binary executable file and the first configuration file, the first configuration file is first parsed to extract the first device configuration parameters, and then these parameters are stored in the memory. Then the operation of the first binary executable file is started. During the operation, the previously saved first device configuration parameters are read from the memory, and these parameters are used to collaboratively complete the control operation of the device operation, so that the device operates according to the predetermined logic and configuration. This implementation method ensures that the required configuration parameters can be accurately obtained and used when the device is running. By storing the parsed parameters in the memory and then calling them by the executable file, the data reading efficiency is improved, the device operation failures caused by parameter acquisition delays or errors are reduced, the stability and accuracy of the device operation are enhanced, and the entire control system is guaranteed to operate in an orderly manner according to the design requirements.

[0104] In some embodiments, controlling device operation based on the first binary executable file may include: running the first binary executable file, and calling device configuration parameters related to the framework configuration in the first binary executable file from the device configuration parameters historically stored in the memory to control device operation.

[0105] In the above implementation process, when the device is controlled to run based on the first binary executable file, the file is directly run. At this time, the system will search the existing historical storage device configuration parameters in the memory to find those device configuration parameters associated with the framework configuration in the current first binary executable file, and then use these matching parameters to drive the device to run, so that the device can still run based on historical valid parameters in the absence of new configuration files. This implementation method can use the historical data in the memory to maintain the basic operation of the device when there is no new configuration file available, thereby improving the device's adaptability to different data acquisition situations. It reduces the possibility of device downtime due to missing configuration files, enhances the continuity and reliability of device operation, and also reflects the system's effective use of historical data, saving time and resources for re-acquiring configuration parameters to a certain extent.

[0106] In some embodiments, controlling device operation based on a first configuration file includes: parsing the first configuration file to obtain first device configuration parameters; saving the parsed first device configuration parameters in a memory; obtaining a binary executable file corresponding to a historically stored project, and calling the first device configuration parameters from the memory to control device operation.

[0107] In the above implementation process, when the device operation is controlled based on the first configuration file, the first configuration file is first parsed to obtain the first device configuration parameters and store them in the memory. Then, the system will search for the historical binary executable file corresponding to the project in the storage device. After finding it, when running the historical binary executable file, the previously saved first device configuration parameters are called from the memory to control the operation of the device, so that the device can run with the help of historical executable files and new configuration parameters under certain circumstances. This implementation process provides a flexible control method for device operation by integrating historical executable files with new configuration parameters. It not only makes full use of existing executable file resources, but also enables the device to adapt to new configuration requirements, improves the operation adaptability and operability of the device in complex data environments, and reduces the risk of the device failing to operate due to the missing or updated part of the file.

[0108] In some embodiments, before the controller obtains the downloaded first binary executable file, and / or, before the downloaded first configuration file, in the method provided in the embodiments of the present application, the controller may also upload a second configuration file of the project to the control platform device, and the second device configuration parameters included in the second configuration file are used to generate the first device configuration parameters.

[0109] Correspondingly, after the control platform device receives the second configuration file of the project uploaded by the controller, the first device configuration parameters mentioned above can be generated based on the second device configuration parameters in the second configuration file.

[0110] In the above implementation process, before the controller obtains the first binary executable file and / or the first configuration file, the controller will actively upload the second configuration file of the project to the control platform device. The second device configuration parameters contained in this file will be received by the control platform device and used for subsequent specific processing procedures, that is, the first device configuration parameters are generated based on these parameters, laying the foundation for the parameter preparation of subsequent device operation control, and realizing information interaction and data flow between the device side and the control platform side at the parameter level. This upload operation promotes information sharing and collaborative work between the device and the control platform. By uploading configuration parameters, a data source is provided for the control platform to generate more accurate device operation control parameters, which helps to improve the management ability and optimization level of the entire control system for device configuration, so that the device operation parameters can better adapt to different engineering requirements and environmental changes, and enhance the overall adaptability and flexibility of the system.

[0111] The generation of the first device configuration parameter based on the second device configuration parameter may include but is not limited to any of the following situations:

[0112] Using the second device configuration parameter as the first device configuration parameter;

[0113] Based on the second device configuration parameters, the first device configuration parameters are modified by user configuration to generate the first device configuration parameters.

[0114] In the above method for controlling the operation of the device, firstly, by processing the device configuration parameters and the framework configuration in the configuration configuration separately, the first device configuration parameters are converted into the first configuration file, and the framework configuration is compiled into the first binary executable file together with the program information. This decoupling method greatly improves the flexibility in the download process, avoids the problem of excessive component coupling caused by processing the configuration configuration and the program together, makes the project editing more flexible, reduces the inefficiency caused by the configuration information occupying a large amount of space when downloading the project, improves the data processing efficiency and saves space, and reduces the amount of data and repeated compilation operations when downloading the project. Secondly, in terms of controlling the operation of the device, whether it is based on the first binary executable file alone, the first configuration file alone, or the two are controlled together, there is a corresponding reasonable process design, which can make full use of the historical parameters in the memory or the parameters obtained by parsing the configuration file to work with the binary executable file, effectively improve the adaptability and reliability of the entire control system, and can cope with different operation scenario requirements, and through the information interaction between the controller and the control platform device, such as the controller uploading the second configuration file for generating the first device configuration parameters, the scalability of the system and the relevance of the data are further enhanced, making the entire control process more perfect and intelligent.

[0115] For example, the entire process of controlling the operation of the above-mentioned equipment is carried out around the controller PLC project. Whether it is the processing of configuration, file compilation and downloading, or the subsequent operation of controlling the operation of equipment based on different files, it is all based on the foundation of PLC project. The following introduces a specific operation method of a control device operation method.

[0116] like Figure 4 FIG. 1 is a flow chart of a method for controlling the operation of a device based on a PLC project. The method may include but is not limited to the following steps:

[0117] 40. Create or open a PLC project.

[0118] The above-mentioned PLC project may be a project for implementing equipment control based on PLC.

[0119] 41. Add a bus device and open the editing interface of this bus device. Find the editing option "Configuration independent of program download" and check the value of this option.

[0120] Add a bus device to the existing project and enter its editing interface. Check the option "Configuration is independent of program download". The key to this operation is to separate the device configuration from the program download process so that the two can be processed separately, which improves the flexibility of project configuration and avoids the inconvenience and restrictions that may be caused by the tight coupling of the two. For example, it can reduce unnecessary association effects when updating configuration or program later.

[0121] In the above step 41, by checking the "Configuration is independent of program download" option, the decoupling method of converting the first device configuration parameters into the first configuration file, and compiling and processing the framework configuration and program information separately in the previously described embodiment is realized, avoiding excessive coupling between configuration and program and improving the flexibility of project configuration.

[0122] 42. Add one or more sub-devices under the bus device node and configure the parameters of these device nodes.

[0123] Adding sub-devices under the bus device node and configuring their parameters is a step to refine the hardware architecture of the entire PLC system and set parameters. The parameter configuration of these sub-devices will directly affect their operating behavior in the PLC control system and their ability to work with other devices, and is an important part of building a complete and functionally accurate PLC control network.

[0124] In the previously described embodiments, whether it involves the relevant settings of each program node in the program information (such as program organization unit, global variable list, etc.) or the clarification of device configuration parameters in the configuration configuration, it is all for the purpose of accurately controlling the operation of the device. On the basis of the previously described embodiments, the parameters of the sub-device nodes are also added and configured, which is a detailed supplement to the entire control system. The accurate configuration of these sub-device parameters will affect the specific performance of the subsequent control operation based on the binary executable file and the configuration file, and is a necessary operation to improve the entire control logic chain so that it can accurately realize the coordinated work of the equipment and the expected control function.

[0125] 43. In the compiled PLC, the parameter configuration of the device node is divided into two parts, namely the FB instance of the device and the device configuration parameters.

[0126] For compiled PLCs, the parameter configuration of device nodes is classified. Among them, FB instances are the core modules for device function implementation, and device configuration parameters provide specific operating environment settings for these functional modules. This classification helps to perform targeted operations on different types of device information more clearly in the subsequent processing process, such as processing them separately when downloading or updating, improving efficiency and accuracy.

[0127] The classification method of the above step 43 corresponds to the relevant content of the framework configuration including FB instances and device configuration parameters in the configuration configuration in the previously described embodiment. As a key module for realizing device functions, FB instances are of great significance in processing, downloading and controlling operations at different stages. It is clearly stated here that such classification is also done in the compiled PLC, so that different types of parameter information can be processed in a similar way in the subsequent PLC project. For example, in the links of downloading into the PLC, parsing and running calls, targeted operations can be performed like the previous overall solution to ensure that the equipment runs accurately according to the established logic, which reflects the consistency and coherence of the overall control method in different application scenarios (such as for compiled PLC here).

[0128] 44. Monitor user input type.

[0129] If the user chooses to perform "offline upload", the process goes to step 45. If the user chooses to perform "online login", the process goes to step 48. If the user chooses to perform "offline download", the process goes to step 418.

[0130] Begin monitoring the user input type. This step is a branching point in the entire process. According to different user operation choices (offline upload, online login or offline download), the process is directed to different subsequent processing paths to meet the user's operational needs for PLC projects in different scenarios, reflecting the interactivity and flexibility of the system.

[0131] In many of the embodiments described above, the corresponding file download, parameter generation and other operations are performed according to different instructions and selections of the user, which reflects the responsiveness and flexibility of the entire control system to user operations. This step 44 monitors the user input type, which is also based on the same concept. By judging whether the user chooses "offline upload", "online login" or "offline download", the subsequent different processing flows are guided to ensure that the system can flexibly adapt to various operation scenarios according to the different needs of the user in actual use.

[0132] 45. Create an interactive interface to provide users with an entry to upload device configuration files in PLC.

[0133] When the user selects "Offline Upload", an interactive interface is created to receive the device configuration file in the PLC uploaded by the user. This interface provides the user with an entry to interact with the system, allowing the user to extract the device configuration data in the PLC into the current engineering environment for further analysis, modification or other operations, facilitating the transfer and use of data.

[0134] In the embodiment described above, the controller uploads the second configuration file of the project to the control platform device for generating relevant parameters. Here, step 45 provides a specific implementation method, which provides the user with an entry for uploading the device configuration file from the PLC, thereby realizing the uploading of the device-side configuration file.

[0135] 46. ​​Upload configuration files from PLC via communication service.

[0136] Uploading the configuration file from the PLC through the communication service utilizes a specific communication protocol and service mechanism to ensure that the configuration file in the PLC can be accurately transferred to the current operating environment. This is a key technical link in realizing the offline upload function and ensures the effective acquisition of data.

[0137] In the above-described embodiment, the controller uploads the second configuration file of the project to the control platform device for generating relevant parameters. Here, step 46 provides a specific uploading method: uploading the configuration file by using the communication service in the PLC.

[0138] 47. Parse the uploaded configuration files and use these data to create device nodes in the project.

[0139] After executing the above step 47, the above step 42 may be executed.

[0140] Parse the uploaded configuration file and create the device nodes in the project based on the parsed data. This step converts the original configuration file data into device node information that can be directly used and managed in the project, so that the device configuration in the PLC can be reflected and applied in the current project, providing a complete device information foundation for subsequent program writing, debugging and other operations.

[0141] The above step 47 is a specific implementation method of parsing the configuration file and performing related operations (such as generating parameters, controlling device operation, etc.) using the parsed data in multiple embodiments. By parsing the uploaded configuration file, the device-related information contained therein is extracted and converted into device nodes that can be directly managed and used in the project, so that the actual configuration situation in the PLC can be reflected at the project level.

[0142] 48. Package the program containing the FB instance and download it into the PLC.

[0143] When the user selects "Online Login", the program containing the FB instance is packaged and downloaded into the PLC. This step is to transfer the core part of the written program (FB instance) to the PLC device, so that the PLC has the ability to run specific functions. It is an important step to make the PLC work according to the predetermined logic, just like installing a "brain" for the robot.

[0144] Here, step 48 packages and downloads the program including the FB instance into the PLC, which is to transfer the compiled core program part to the PLC device so that the PLC has the ability to execute the corresponding function, that is, downloading the binary executable file to the controller in the previously described embodiment.

[0145] 49. The current program is a complete download.

[0146] The fact that the current program is a complete download means that the current program includes the complete content of the program including the FB instance. When the current program is an incomplete download, it may mean that the current program only includes the part that is different from the program in the last download process.

[0147] When the current program is an incomplete download, it means that the user has only selected the above-mentioned difference part to download. At this time, it will not automatically determine whether to download the offline configuration file. Subsequently, the download of the offline configuration file and other steps can be triggered based on the instructions entered by the user.

[0148] 410. The user chooses to download the offline configuration file.

[0149] When the user selects "Online Login", the program containing the FB instance is packaged and downloaded into the PLC. This step is to transfer the core part of the written program (FB instance) to the PLC device, so that the PLC has the ability to run specific functions. It is an important step to make the PLC work according to the predetermined logic.

[0150] The above step 410 is consistent with the idea of ​​determining the file download status according to the user instruction in the previously described embodiment, which reflects that the system is user-oriented. The user chooses to download the offline configuration file here, which will trigger the subsequent corresponding operations such as generating and downloading the configuration file, similar to the previously described determination of the download status of the first binary executable file and the first configuration file according to different download instructions of the user, which is to meet the user's personalized needs for device configuration and control in different scenarios.

[0151] 411. Generate a configuration file based on the device configuration parameters and download it into the PLC.

[0152] If the user chooses to download the offline configuration file, a configuration file is generated based on the device configuration parameters and downloaded into the PLC. This step converts the device configuration parameters into a configuration file and transmits it to the PLC, providing the PLC with specific parameter settings required for operation, ensuring that the device can accurately perform tasks based on these parameters during operation, and is an important step in improving the PLC operating environment.

[0153] The above step 411 is similar to converting the first device configuration parameters into a first configuration file and downloading the first configuration file to the controller.

[0154] 412. The system component in the PLC parses the configuration parameter file and converts the file content into memory data, waiting to be called when the program is running.

[0155] The system components in the PLC parse the configuration parameter file and convert the file content into memory data, waiting to be called when the program is running. This operation processes the downloaded configuration file internally, converts it into a data form that the PLC can quickly access and use, and stores it in the memory so that the required parameter information can be provided at any time during the program running, improving the efficiency of obtaining configuration data when the program is running.

[0156] The above step 412 is equivalent to the specific implementation method of the controller parsing the configuration file and storing the parameters into the memory for calling the relevant content in the embodiment described above.

[0157] 413. Determine whether the current PLC is running.

[0158] If yes, go to step 417 , if no, go to step 414 .

[0159] Determine whether the current PLC is running. This determination is to determine the PLC status when performing parameter updates or other operations. Different statuses will be handled in different ways to avoid unnecessary interference or errors to the running PLC system and ensure the stability and reliability of the system.

[0160] 414. When starting the PLC, it is detected that the bus device parameters in the current program have been separated.

[0161] If the PLC is not running, start the PLC and detect that the bus device parameters in the current program have been separated. This step confirms the previous parameter separation settings when the PLC starts, prepares for the subsequent correct loading of the bus device operating parameters, and ensures that the PLC can start and initialize according to the expected configuration and separation principles.

[0162] Confirming the separation of bus device parameters at PLC startup is an important step to ensure that the PLC can be correctly initialized and started according to the previously set decoupling principle. Only by ensuring that the state of parameter separation is as expected can the corresponding configuration parameters be loaded smoothly, allowing the PLC to operate normally and achieve coordinated control between devices.

[0163] 415. PLC loads the device configuration parameters of the bus device from the memory data.

[0164] The PLC loads the device configuration parameters of the bus device from the memory data. This step enables the PLC to obtain the correct device configuration parameters of the bus device after startup, thereby ensuring that the bus device can operate normally and communicate and work together with other devices.

[0165] The above step 415 is similar to the method of the controller calling relevant configuration parameters from the memory in the previously described embodiment, both of which are to enable the PLC to obtain accurate device configuration parameters (such as the first configuration parameters) during operation, thereby ensuring that the bus device can operate normally according to these parameters and communicate and work collaboratively with other devices.

[0166] 416.PLC operates normally.

[0167] The normal operation of PLC indicates that the entire parameter download and related preparation work have been successfully completed. PLC can run stably according to the set program and configuration parameters and achieve the expected control functions, marking the successful completion of a complete configuration and startup process.

[0168] In step 416 , the PLC can stably operate according to the set program and configuration parameters, which is the same as the previous embodiments in which the controller ultimately controls the operation of the device.

[0169] 417. The relevant bus in PLC is suspended and the device configuration parameters are updated through memory data.

[0170] If the PLC is running, the relevant bus operation is suspended and the device configuration parameters are updated through the memory data. This operation updates the device configuration parameters without stopping the entire PLC operation, reflecting the system's dynamic adjustment capability, and can flexibly modify the device configuration parameters of the bus device as needed during operation to adapt to different control requirements.

[0171] After executing step 417, the above step 416 may be continued to be executed.

[0172] In the above step 417, parameters can be flexibly updated for different equipment operating states. When the PLC is running, the equipment configuration parameters are updated by pausing the operation of the relevant bus, which reflects the system's ability to dynamically adjust the configuration during operation, and can modify parameters in time according to changes in actual control requirements, while minimizing the impact on the entire PLC operation, ensuring that the equipment can operate accurately at different stages and under different requirements.

[0173] 418. Create an interactive interface to provide users with an entry for downloading device configuration files in the IDE.

[0174] When the user selects "Offline Download", an interactive interface is created to provide the user with an entry to download the device configuration file in the IDE. This step is similar to offline upload, providing the user with a way to transfer the device configuration file in the IDE to the PLC system, making it convenient for the user to update the configuration of the PLC device in an offline state.

[0175] This step 418 is to facilitate users to operate device configuration files in different scenarios and realize the flow of device configuration data in different environments (such as between IDE and PLC system). By creating this interactive interface, users can download device configuration files in IDE to PLC for configuration update in offline state.

[0176] 419. Filter out devices that some users do not need to download.

[0177] After executing the above step 419, the above step 411 may be continued to be fed back.

[0178] Filter out devices that some users do not need to download. This step can filter out devices that do not need to be downloaded according to user needs or preset rules, reduce unnecessary download data volume, improve download efficiency, and avoid configuration interference with irrelevant devices in the PLC system, making the download process more accurate and efficient.

[0179] The above-mentioned method for controlling the operation of the device improves the flexibility of project editing. By processing the configuration-related content separately, it avoids excessive coupling with the program, and changes the situation in the prior art where the component coupling is high and the flexibility is limited due to the compilation and download of the configuration and the program together; it improves data processing efficiency and saves space, converts the configuration into a configuration file separately, reduces the amount of data and repeated compilation operations when downloading the project, and solves the problem of large space occupied by configuration information in the prior art; optimizes the user experience and the competitiveness of the controller product, improves the operating process, reduces the difficulty of users to get started, and helps the product stand out in the market competition; it also facilitates the management of hardware equipment-related configurations, and brings many benefits to the development and debugging of intelligent equipment production lines, especially in line with the relevant needs of new energy, wind power, mobile phones and other industries.

[0180] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0181] Based on the same inventive concept, the embodiment of the present application also provides a device for controlling the operation of a device for implementing the method for controlling the operation of a device involved above. The implementation solution provided by the device for solving the problem is similar to the implementation solution recorded in the above method, so the specific limitations in the embodiments of one or more devices for controlling the operation of a device provided below can refer to the limitations of the method for controlling the operation of a device above, and will not be repeated here.

[0182] In an exemplary embodiment, Figure 5 As shown, a structural block diagram of a control platform device is provided, including:

[0183] The acquisition module 501 is used to acquire program information and configuration in the project, wherein the configuration includes: framework configuration and first device configuration parameters;

[0184] A conversion module 502, configured to convert the first device configuration parameter into a first configuration file;

[0185] A compiling module 503, used for compiling the program information and the framework configuration through a compiler to convert them into a first binary executable file;

[0186] The download module 504 is used to download the first binary executable file to the controller, and / or download the first configuration file to the controller, wherein the first binary executable file and the first configuration file are used to control the operation of the device.

[0187] In some embodiments, the download module 504 is specifically used to:

[0188] In response to a first download instruction from a user, the first binary executable file is downloaded to the controller, and after the first binary executable file is triggered to be downloaded to the controller, the first configuration file is triggered to be downloaded to the controller.

[0189] In some embodiments, the download module 504 is specifically used to:

[0190] The downloading of the first binary executable file to the controller, and / or the downloading of the first configuration file to the controller, comprises:

[0191] In response to a first download instruction from a user, downloading the first binary executable file to the controller;

[0192] and / or,

[0193] In response to a second download instruction from a user, the first configuration file is downloaded to the controller.

[0194] In some embodiments, the control platform device may further include a generating module 505 for:

[0195] Parsing a second configuration file of the project uploaded by the controller to obtain second device configuration parameters;

[0196] Based on the second device configuration parameters, the first device configuration parameters are generated.

[0197] In an exemplary embodiment, Figure 6 As shown, a controller is provided, comprising:

[0198] The download module 601 is used to obtain a first binary executable file downloaded from the control platform device, and / or a first configuration file downloaded;

[0199] A control module 602, configured to control device operation based on the first binary executable file and / or the first configuration file;

[0200] The first binary executable file is compiled based on program information in the project and framework configuration in the configuration configuration, and the first configuration file is converted based on first device configuration parameters in the configuration configuration.

[0201] In some embodiments, the control module 602 is specifically configured to:

[0202] Parsing the configuration file to obtain the first device configuration parameters;

[0203] The first device configuration parameter obtained by parsing is stored in a memory;

[0204] The first binary executable file is run, and the first device configuration parameter is called from the memory to control the operation of the device.

[0205] In some embodiments, the control module 602 is specifically configured to:

[0206] The first binary executable file is run, and device configuration parameters related to the framework configuration in the first binary executable file are called from the device configuration parameters historically stored in the memory to control the operation of the device.

[0207] In some embodiments, the control module 602 is specifically configured to:

[0208] Parsing the configuration file to obtain the first device configuration parameters;

[0209] The first device configuration parameter obtained by parsing is stored in a memory;

[0210] The binary executable file corresponding to the project stored historically is obtained, and the first device configuration parameter is called from the memory to control the operation of the device.

[0211] In some embodiments, the controller further includes an upload module 603 for uploading a second configuration file of the project to the control platform device, and the second device configuration parameters included in the second configuration file are used to generate the first device configuration parameters.

[0212] Each module in the above-mentioned device for controlling the operation of the device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0213] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 7As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for controlling the operation of the device is implemented.

[0214] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0215] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps shown in the above method embodiment are implemented.

[0216] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps shown in the above method embodiment are implemented.

[0217] In one embodiment, a computer program product is provided, including a computer program, which implements the steps shown in the above method embodiment when executed by a processor.

[0218] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0219] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0220] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for controlling the operation of a device, characterized in that: Applied to a control platform device, the method comprises: Acquire program information and configuration in the project, wherein the configuration includes: framework configuration and first device configuration parameters; Converting the first device configuration parameter into a first configuration file; Compiling the program information and the framework configuration through a compiler to convert them into a first binary executable file; The first binary executable file is downloaded to the controller, and / or the first configuration file is downloaded to the controller, wherein the first binary executable file and the first configuration file are used to control the operation of the device.

2. The method according to claim 1, characterized in that: The downloading of the first binary executable file to the controller, and / or the downloading of the first configuration file to the controller, comprises: In response to a first download instruction from a user, the first binary executable file is downloaded to the controller, and after the first binary executable file is triggered to be downloaded to the controller, the first configuration file is triggered to be downloaded to the controller.

3. The method according to claim 1, characterized in that The downloading of the first binary executable file to the controller, and / or the downloading of the first configuration file to the controller, comprises: In response to a first download instruction from a user, downloading the first binary executable file to the controller; and / or, In response to a second download instruction from a user, the first configuration file is downloaded to the controller.

4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Parsing a second configuration file of the project uploaded by the controller to obtain second device configuration parameters; Based on the second device configuration parameters, the first device configuration parameters are generated.

5. A method for controlling the operation of a device, characterized in that: Applicable to controllers, including: Obtaining a first binary executable file downloaded from the control platform device, and / or a first configuration file downloaded; Controlling device operation based on the first binary executable file and / or the first configuration file; The first binary executable file is compiled based on program information in the project and framework configuration in the configuration configuration, and the first configuration file is converted based on first device configuration parameters in the configuration configuration.

6. The method according to claim 5, characterized in that The controlling the operation of the device based on the first binary executable file and the first configuration file includes: Parsing the first configuration file to obtain the first device configuration parameters; The first device configuration parameter obtained by parsing is stored in a memory; The first binary executable file is run, and the first device configuration parameter is called from the memory to control the operation of the device.

7. The method according to claim 5, characterized in that The controlling the operation of the device based on the first binary executable file includes: The first binary executable file is run, and device configuration parameters related to the framework configuration in the first binary executable file are called from the device configuration parameters historically stored in the memory to control the operation of the device.

8. The method according to claim 5, characterized in that Based on the first configuration file, controlling the operation of the device includes: Parsing the first configuration file to obtain the first device configuration parameters; The first device configuration parameter obtained by parsing is stored in a memory; The binary executable file corresponding to the project stored historically is obtained, and the first device configuration parameter is called from the memory to control the operation of the device.

9. The method according to any one of claims 5 to 8, characterized in that: Before obtaining the downloaded first binary executable file and / or the downloaded first configuration file, the method further includes: A second configuration file of the project is uploaded to the control platform device, and second device configuration parameters included in the second configuration file are used to generate the first device configuration parameters.

10. A control platform device, characterized in that: include: An acquisition module, used to acquire program information and configuration in the project, wherein the configuration includes: framework configuration and first device configuration parameters; A conversion module, used to convert the first device configuration parameter into a first configuration file; A compiling module, used for compiling the program information and the framework configuration through a compiler to convert them into a first binary executable file; A download module is used to download the first binary executable file to the controller, and / or download the first configuration file to the controller, wherein the first binary executable file and the first configuration file are used to control the operation of the device.

11. A controller, characterized in that: include: A download module, used to obtain a first binary executable file downloaded from the control platform device, and / or a first configuration file downloaded; A control module, configured to control the operation of a device based on the first binary executable file and / or the first configuration file; The first binary executable file is compiled based on program information in the project and framework configuration in the configuration configuration, and the first configuration file is converted based on first device configuration parameters in the configuration configuration.

12. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.

Citation Information

Patent Citations

  • Source code debugging method and device, server and storage medium

    CN112052007A

  • Integrated compiling and downloading method for different system architecture controllers

    CN117573132A

  • IO equipment control method and device, equipment and storage medium

    CN117743214A

  • Task execution method and device, computer equipment, storage medium and program product

    CN118760502A

  • On-line compiling and packaging method based on Buildroot

    CN119025157A