Communication Mapping Method, Device, Equipment and Storage Medium for Device Configuration

By generating model point item data corresponding to the target configuration model and generating global variable data, users can directly use the global variable name to program, solving the programming errors and configuration modification difficulties caused by invisible variable information in the configuration software, and improving ease of use and efficiency.

CN114356322BActive Publication Date: 2025-08-05KYLAND TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111506792.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-10
Publication Date
2025-08-05
Estimated Expiration
2041-12-10

AI Technical Summary

Technical Problem

In the configuration software, users cannot directly see variable information, resulting in frequent programming errors and the address needs to be changed again when modifying the configuration, which is extremely poor in ease of use and efficiency.

Method used

Generate model point item data corresponding to the target configuration model, record communication points, and generate global variable data based on these data. Users perform global programming operations through global variables to directly use global variable names for programming.

Benefits of technology

It improves the ease of use and call efficiency of communication point variables in the model system, solves the problem that users cannot directly see variable information, and reduces programming errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114356322B_ABST
    Figure CN114356322B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a communication mapping method, apparatus, device and storage medium for device configuration. The method includes: in response to a user's model configuration operation for at least one target configuration model, generating model point item data corresponding to each target configuration model; wherein each model point item data is used to record the communication point of each target configuration model; generating global variable data based on all model point item data; wherein the global variable data is used to record the target global variables that have a mapping relationship with each communication point; feeding back the global variable data to the user so that the user can perform global programming operations through the target global variables. The embodiment of the present invention can realize programming directly using the variable name of the global variable, and automatically complete the communication data mapping, thereby improving the usability and calling efficiency of the variables corresponding to each communication point in the model system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of computer technology, and in particular to a communication mapping method, apparatus, device, and storage medium for device configuration. Background Art

[0002] In configuration software, or other software used to build model systems, when users program the system to process data in any communication model point variable, they cannot directly view the variable information and must query the variable address and program using the variable address. For example, in configuration software, users must determine the I / Q area address of an IO (Input / Output) variable to use the address to represent the IO variable for programming, thereby processing the data in the IO variable.

[0003] However, the variable calling method in the above-mentioned prior art results in the user being unable to directly see the variable information during programming, which is prone to errors, and the address needs to be changed again when the configuration is modified, which has extremely poor usability and efficiency. Summary of the Invention

[0004] The embodiments of the present invention provide a communication mapping method, apparatus, device and storage medium for device configuration, so as to realize programming directly using the variable names of global variables and automatically complete communication data mapping, thereby improving the usability and calling efficiency of the variables corresponding to each communication point in the model system.

[0005] In a first aspect, an embodiment of the present invention provides a communication mapping method for device configuration, comprising:

[0006] In response to a user's model configuration operation for at least one target configuration model, generating model point item data corresponding to each target configuration model; wherein each model point item data is used to record the communication point position of each target configuration model;

[0007] Generate global variable data based on all the model point item data; wherein the global variable data is used to record the target global variables that have a mapping relationship with each of the communication points;

[0008] The global variable data is fed back to the user, so that the user can perform a global programming operation through the target global variable.

[0009] In a second aspect, an embodiment of the present invention further provides a communication mapping apparatus for device configuration, comprising:

[0010] A model point item generation module, configured to generate model point item data corresponding to each target configuration model in response to a user's model configuration operation for at least one target configuration model; wherein each model point item data is used to record a communication point position of each target configuration model;

[0011] A global variable generation module, configured to generate global variable data based on all the model point item data; wherein the global variable data is used to record target global variables that have a mapping relationship with each of the communication points;

[0012] The global variable feedback module is used to feed back the global variable data to the user, so that the user can perform global programming operations through the target global variable.

[0013] In a third aspect, an embodiment of the present invention further provides a computer device, comprising:

[0014] one or more processors;

[0015] a storage device for storing one or more programs;

[0016] When the one or more programs are executed by the one or more processors, the one or more processors implement the communication mapping method for device configuration provided by any embodiment of the present invention.

[0017] In a fourth aspect, an embodiment of the present invention further provides a computer storage medium storing a computer program, which, when executed by a processor, implements the communication mapping method for device configuration provided by any embodiment of the present invention.

[0018] The embodiment of the present invention generates model point item data corresponding to each target configuration model in response to the user's model configuration operation to record the communication points in each target configuration model, and generates global variable data based on all the model point item data to record the target global variables that have a mapping relationship with each communication point, thereby feeding back the global variable data to the user so that the user can perform global programming operations through the target global variables. This solves the problem in the prior art that the user can only program through the variable address, which makes it impossible to directly see the variable information during programming, easily leads to errors, and requires the address to be changed again when the configuration is modified. It realizes programming directly using the variable name of the global variable and automatically completes the communication data mapping, thereby improving the usability and calling efficiency of the variables corresponding to each communication point in the model system. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 This is a flowchart of a communication mapping method for device configuration provided in Example 1 of the present invention.

[0020] Figure 2 This is a flow chart of a communication mapping method for device configuration provided in the second embodiment of the present invention.

[0021] Figure 3 This is a screenshot of an interface for performing a model selection operation in a graphical configuration software provided in the second embodiment of the present invention.

[0022] Figure 4 This is a screenshot of an interface for performing communication point configuration operations in graphical configuration software provided in the second embodiment of the present invention.

[0023] Figure 5 This is a screenshot of the presentation interface of model point item data provided in the second embodiment of the present invention.

[0024] Figure 6 This is a screenshot of a presentation interface for global variable data provided in the second embodiment of the present invention.

[0025] Figure 7 This is a structural diagram of a communication mapping apparatus for device configuration provided by Embodiment 3 of the present invention.

[0026] Figure 8 A schematic diagram of the structure of a computer device provided in Example 4 of the present invention. DETAILED DESCRIPTION

[0027] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention.

[0028] It should also be noted that, for ease of description, only the part relevant to the present invention, rather than all of the content, is shown in the accompanying drawings. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processing or methods depicted as flow charts. Although flow charts describe various operations (or steps) as sequential processing, many operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of various operations can be rearranged. When its operation is completed, the processing can be terminated, but can also have additional steps not included in the accompanying drawings. The processing can correspond to methods, functions, procedures, subroutines, subprograms, etc.

[0029] Example 1

[0030] Figure 1This is a flow chart of a device configuration communication mapping method provided by the first embodiment of the present invention. This embodiment is applicable to the case of generating a global variable having a communication mapping relationship with each communication point. This method can be executed by the device configuration communication mapping device provided by the embodiment of the present invention. The device can be implemented by software and / or hardware and can generally be integrated into a computer device. Figure 1 As shown, the method includes the following operations:

[0031] S110. In response to a user's model configuration operation for at least one target configuration model, generate model point item data corresponding to each target configuration model; wherein each model point item data is used to record a communication point position of each target configuration model.

[0032] Specifically, the target configuration model may be a model used to implement the communication function of a data acquisition device. A model configuration operation may be an operation to configure communication points in the target configuration model to configure the communication function of the target configuration model. Any model point item data may be used to record the corresponding communication point of the target configuration model. The communication point may be the communication point in the target configuration model used to collect data.

[0033] Accordingly, the user can add at least one target configuration model to the constructed model system, and can perform model configuration operations on each target configuration model according to the needs of the system's communication functions, so as to configure the required communication points in each target configuration model and realize the configuration of the communication functions of each target configuration model. In response to the user's model configuration operation on any target configuration model, all communication points in the target configuration model can be determined, and then model point item data corresponding to the target configuration model can be generated based on all communication points, so as to record all communication points of the target configuration model in the model point item data. Furthermore, a model point item data can be generated for each target configuration model in the system.

[0034] S120. Generate global variable data based on all the model point item data; wherein the global variable data is used to record target global variables that have a mapping relationship with each of the communication points.

[0035] Specifically, the global variable data can record the target global variables that correspond to all communication points in the system. The target global variable can be a variable used globally in system programming, and can realize communication mapping between the corresponding communication points.

[0036] Correspondingly, the model point item data corresponds one-to-one with the target configuration model in the system, so all model point item data can record all communication points of all target configuration models in the system. Therefore, global variable data can be generated based on all model point item data, so that the target global variables in the global variable data correspond one-to-one with each communication point recorded in each model point item data. Then, any target global variable can uniquely represent a communication point, and the mapping relationship between each communication point and each target global variable can be determined, so that the actual collected data of the communication point can be mapped to the corresponding target global variable used in system programming.

[0037] S130: Feedback the global variable data to the user, so that the user can perform a global programming operation through the target global variable.

[0038] The global programming operation may be an operation of programming the system using a target global variable in a global scope.

[0039] Accordingly, the generated global variable data can be fed back to the user so that the user can obtain all the target global variables therein. Each target global variable has a mapping relationship with each communication point configured by the user in the target configuration model. Therefore, when programming the system, the user can obtain the target global variable with a mapping relationship with any communication point called as needed in the global variable data and directly use the target global variable for programming. Then, according to this mapping relationship, the actual collected data of the communication point can be passed to the corresponding target global variable during the process of running the program obtained by the global programming operation, realizing the communication mapping between the communication point and the target global variable.

[0040] An embodiment of the present invention provides a communication mapping method for device configuration, which generates model point item data corresponding to each target configuration model in response to a user's model configuration operation to record the communication points in each target configuration model, and generates global variable data based on all the model point item data to record the target global variables that have a mapping relationship with each communication point, thereby feeding back the global variable data to the user so that the user can perform global programming operations through the target global variables. This solves the problem in the prior art that the user can only program through the variable address, which makes it impossible to directly see the variable information during programming, easily causes errors, and requires the address to be changed again when the configuration is modified. This realizes programming directly using the variable name of the global variable, and automatically completes the communication data mapping, thereby improving the usability and calling efficiency of the variables corresponding to each communication point in the model system.

[0041] Example 2

[0042] Figure 2A flowchart of a communication mapping method for device configuration provided in the second embodiment of the present invention. This embodiment of the present invention is specific based on the above embodiment. In this embodiment of the present invention, an optional implementation method for generating model point item data corresponding to each target configuration model in response to a user's model configuration operation on the target configuration model is provided.

[0043] like Figure 2 As shown, the method of the embodiment of the present invention may specifically include:

[0044] S210. In response to a user's model configuration operation for at least one target configuration model, generate model point item data corresponding to each target configuration model; wherein each model point item data is used to record a communication point position of each target configuration model.

[0045] In an optional embodiment of the present invention, S210 may specifically include:

[0046] S211 . In response to the user's model selection operation for at least one of the target configuration models, create at least one point item of data to be written corresponding to each of the target configuration models.

[0047] The model selection operation may be an operation of adding a target configuration model in the built system by the user. The point item data to be written may be data of communication points in the target configuration model to be recorded.

[0048] Accordingly, when building a model system, users can add at least one target configuration model to the system through a model selection operation based on the system's functional needs. In response to a user's model selection operation for any target configuration model, data items to be written corresponding to that target configuration model are created. The data items to be written can be any data to which data can be written via write access, and the corresponding communication points of the target configuration model can be recorded in the data via write access.

[0049] Optionally, the target configuration model may be a remote IO (Input / Output) device model, the model selection operation may be an operation in which the user selects, drags, and places the target configuration model in a graphical configuration software, and the point item data to be written corresponding to any target configuration model may be a spreadsheet file that can write and store data.

[0050] For example, Figure 3 This is a screenshot of an interface for performing a model selection operation in a graphical configuration software provided by an embodiment of the present invention. Figure 3As shown, the user has built a model system in a visual graphical configuration software. The system includes a server model and a bus model connected to the server model. The user can select the required remote IO device model in the component library on the left through the model selection operation, and attach the remote IO device model to the bus model by dragging and dropping. This allows the addition of a remote IO device model to the system. The remote IO device model can be pre-written and have specific communication function attributes. Communication points can be configured for it. A data-writable spreadsheet file corresponding to the remote device model can be created to record the communication points configured therein.

[0051] S212. In response to the user's communication point configuration operation for each target configuration model, a communication point variable is generated in each of the point item data to be written to obtain the model point item data.

[0052] The communication point configuration operation may be an operation in which a user configures a communication point in a target configuration model, and the communication point variable may be a variable used to represent a communication point.

[0053] Accordingly, after the user adds at least one target configuration model to the system, the user can further perform communication point configuration operations on each target configuration model, and can configure one or more communication points in each target configuration model so that the communication points in each target configuration model can achieve the communication function required by the target configuration model, thereby realizing the system function. In response to the user's communication point configuration operation on any target configuration model, a communication point variable can be generated in the point item data to be written corresponding to the target configuration model. Specifically, the user can generate a communication point variable for each communication point configured in the target configuration model through the communication point configuration operation, so that all the communication points in the target configuration model are recorded in the model point item data.

[0054] Optionally, the target configuration model can be a remote IO device model, and the communication points configured by the user in the target configuration model through the communication point configuration operation can be the acquisition points of the IO card. The communication point configuration operation can be an operation in which the user selects, drags and places the required IO card model in the remote IO device model in the graphical configuration software according to the properties of the remote IO device model and the communication function requirements, so as to configure the IO card in the remote IO device model.

[0055] For example, Figure 4 This is a screenshot of an interface for performing communication point configuration operations in a graphical configuration software provided by an embodiment of the present invention. Figure 4As shown, the user can obtain the interface for configuring the IO card for the remote IO device model in the system through a preset specific operation, and then can select the required IO card from the multiple IO cards matching the remote IO device model provided on the left side of the interface, and drag and drop it to a specific position on the interface to configure it in the remote IO device, so that the communication point variable corresponding to the collection point of the IO card can be generated in the point item data to be written corresponding to the remote IO device.

[0056] In an optional embodiment of the present invention, after generating the communication point variables in each of the point item data to be written, the method may further include: generating variable configuration data of each of the communication point variables according to the point configuration data of each of the communication points.

[0057] The variable configuration data includes: variable channel data, variable address data, variable name data, variable data type data, variable access type data, variable point type data and variable point item data.

[0058] Specifically, point configuration data may be data describing the properties of a communication point. Variable configuration data may be data describing the properties of a communication point variable. Variable channel data may be data describing the number of acquisition channels for a communication point variable. Variable address data may be data describing the communication address of a communication point variable. Variable name data may be data uniquely identifying each communication point variable. Variable data type data may be data describing the type of data stored in a communication point variable. Variable access type may be data describing the type of access that a communication point variable can accept. Variable point type data may be data describing the type of communication point to which the communication point variable corresponds. Variable point item data may be data describing the point item configured in the communication point to which the communication point variable corresponds.

[0059] Correspondingly, each communication point configured in the target configuration model may have point configuration data to describe the attributes of the communication point. Specifically, the point configuration data may include data describing the preset attributes of the communication point, and may also include data describing the attributes determined by the user when configuring the communication point, which is not limited here. Therefore, the variable configuration data of the corresponding communication point variable can be determined based on the point configuration data of any communication point, and the communication point variable described by the variable configuration data can match the attributes of the actual collected data of the communication point. Specifically, the variable channel data, variable address data, variable name data, variable data type data, variable access type data, variable point type data and variable point item data of the communication point variable can be determined based on the point configuration data, and the generated variable configuration data can be written into the point item data to be written to record the communication point corresponding to the communication point variable.

[0060] For example, Table 1 is a table of IO card acquisition configuration data provided by an embodiment of the present invention. As shown in Table 1, based on the communication protocol and acquisition points configured in the system for the IO card, the determined IO card configuration data may include Name, Type, Description, Channel Count, Access Type, and Card Type.

[0061] Table 1

[0062] Property Value Name IOCard1 Type KYDI-1601 Description DI, Channel-16 Channel Count 16 Access Type Read Card Type DI

[0063] Accordingly, Figure 5 This is a screenshot of the presentation interface of a model point item data provided by an embodiment of the present invention. Figure 5 As shown in the figure, the model point item data can be a point item table file, which is used to present the communication point variables stored therein in the form of a tabular file. Each row corresponds to a communication point variable and is used to record the communication point variable and its variable configuration data. The variable configuration data determined based on the IO card configuration data includes the Channel, Address, Variable Name, Data Type, Access, IO Card Type, and Upload Item of each variable shown in some data columns in the figure.

[0064] S220. Generate global variable data based on all the model point item data; wherein the global variable data is used to record target global variables that have a mapping relationship with each of the communication points.

[0065] In an optional embodiment of the present invention, generating global variable data based on all the model point item data may include: in response to the creation operation of the point item data to be written, creating variable data to be written associated with all the point item data to be written; in response to the generation operation of each of the communication point variables, generating each of the target global variables having a mapping relationship with each of the communication point variables in the variable data to be written, to obtain the global variable data.

[0066] The variable data to be written may be data of all target global variables that have a mapping relationship with each communication point in the system and are to be recorded therein.

[0067] Correspondingly, the creation operation of the point item data to be written can indicate that the user has added a target configuration model to the system through the model selection operation, and that global variable data for recording each communication point of each target configuration model needs to be generated. In response to the creation operation of the point item data to be written, variable data to be written can be created, and the variable data to be written can be associated with all point item data to be written corresponding to different target configuration models in the same system. Furthermore, in response to the generation of any communication point variable in any point item data to be written, a target global variable corresponding to the communication point variable can be generated in the variable data to be written, so that the target global variable in the variable data to be written corresponds one-to-one with all communication point variables in all point item data to be written, and has a mapping relationship.

[0068] Optionally, the variable data to be written may be a data-writable spreadsheet file generated in a resource file, and the global variable data may be a spreadsheet file in a resource file obtained by writing each target global variable into the variable data to be written.

[0069] In an optional embodiment of the present invention, in response to the generation of each of the communication point variables, each of the target global variables having a mapping relationship with each of the communication point variables is generated in the variable data to be written, which may include: in response to the generation operation of any of the communication point variables, generating any of the target global variables in the variable data to be written; determining the variable identification data of the target global variable based on the point identification data of the communication point variable to establish a mapping relationship between the communication point variable and the target global variable.

[0070] The point identification data may be data that uniquely identifies each communication point variable, and the variable identification data may be data that uniquely identifies each target global variable.

[0071] Correspondingly, any communication point variable generated in the point item data to be written can generate a target global variable in its associated variable data to be written, and the point identification data of the communication point variable can be obtained, and the variable identification data of the target global variable can be determined based on the point identification data. Then, the mapping relationship between the communication point variable and the target global variable can be established based on the correspondence between the point identification data and the variable identification data, thereby realizing the mapping relationship between each target global variable in the global variable data and each communication point variable in the model point item data.

[0072] Optionally, the point identification data of the communication point variable may be a communication point variable ID (Identifier), and the variable identification data determined based on the point identification data may be the same variable ID, so there is a mapping relationship between the communication point variable and the target global variable with the same variable ID.

[0073] In an optional embodiment of the present invention, after generating each target global variable having a mapping relationship with each communication point variable in the variable data to be written, it can also include: generating global configuration data of each target global variable according to the variable configuration data of each communication point variable.

[0074] The global configuration data includes: global name data, global data type data, global access type data, global address data and global point item data.

[0075] Specifically, global configuration data may be data describing the attributes of a target global variable. Global name data may be data uniquely identifying each target global variable. Global data type data may be data describing the type of data stored in the target global variable. Global access type data may be data describing the acceptable access types for the target global variable. Global address data may be data describing the communication address corresponding to the target global variable. Global point item data may be data describing the point items configured in the communication point corresponding to the target global variable.

[0076] Correspondingly, based on the mapping relationship between each communication point variable and each target global variable, the global configuration data of the target global variable having a mapping relationship therewith can be determined according to the variable configuration data of any communication point variable, so as to determine the properties of the target global variable through the global configuration data.

[0077] Specifically, the global name data of the target global variable can be determined based on the variable name data of the communication point variable. Optionally, the global name data can be determined based on the corresponding variable name data combined with the global variable suffix; the global data type data of the target global variable can be determined based on the variable data type data of the communication point variable. Optionally, the global data type data can be determined based on the corresponding variable data type data combined with the data structure suffix; the global access type data of the target global variable can be determined based on the variable access type data of the communication point variable; the global address data of the target global variable can be determined based on the variable address data of the communication point variable; and the global point item data of the target global variable can be determined based on the variable point item data of the communication point variable.

[0078] Therefore, the attributes of the target global variable determined according to the global configuration data can match the attributes of the communication point variable with which it has a mapping relationship. Furthermore, the attributes of the communication point variable can match the attributes of the actual collected data of its corresponding communication point. Then, each target global variable can have a one-to-one correspondence with each communication point, and the actual collected data of each communication point can be passed to each target global variable to realize communication mapping.

[0079] For example, Figure 6 This is a screenshot of a presentation interface for global variable data provided by an embodiment of the present invention. Figure 6 As shown, the global variable data can be an IO variable table in the resource file, which is used to present the target global variables stored therein in the form of a tabular file. Each row corresponds to a target global variable and is used to record the target global variable and its global configuration data. The global configuration data determined based on the variable configuration data includes the Name, Data Type, Access, Slave Address (slave device communication address), and Upload Item of each variable as described in some columns in the figure.

[0080] S230: Feedback the global variable data to the user, so that the user can perform a global programming operation through the target global variable.

[0081] In an optional embodiment of the present invention, after feeding back the global variable data to the user so that the user can perform global programming operations through the target global variables, it can also include: in response to the user's programming submission operation, performing content compilation processing on the global variable data to generate target base type data; sending the target base type data to the operation control end so that the operation control end can perform communication mapping processing on each target global variable according to the global variable data.

[0082] The programming submission operation can be an operation in which a user confirms the completion of program writing. The content compilation process can be an operation in which data is compiled into a preset format. The target base type data can be data in a specific base unit obtained by converting data through the content compilation process. The operation control terminal can be a device that runs the user-written program to control related equipment. The communication mapping process can be an operation in which the actual collected data of each communication point is transferred to each target global variable.

[0083] Accordingly, after the user completes programming for the constructed model system using the target global variables, the programming submission operation can be executed. Then, in response to the user's programming submission operation, the global variable data can be compiled and processed. The target base type data obtained can describe the content of the global variable data with data of a specific base unit, for example, it can include each target global variable and the global configuration data of each target global variable. Furthermore, the target base type data can be sent to the operation control terminal. The operation control terminal can determine the one-to-one correspondence between the target global variable and the communication point according to the content described in the target base type data during operation, and perform communication mapping processing on each target global variable accordingly, so as to transfer the actual collected data of each communication point to each target global variable, thereby realizing the function of the program written by the user using the target global variable.

[0084] Optionally, the target base type data may be binary data, and the operation control terminal may be a PLC (Programmable Logic Controller).

[0085] For example, the contents of the IO variable table can be compiled into a corresponding binary file. This binary file describes the IO card configuration information and is then transmitted to the RTE (Run-Time Environment). During runtime, the RTE, based on the description in the binary file, matches the IO card acquisition configuration information configured in Table 1 with the global variables in the IO variable table, thereby completing the mapping of the user-configured acquisition information to the global variables used by the RTE. During PLC programming, the user can directly view the IO variable table and program using the variable names in the IO variable table without knowing the variable addresses. The user first configures acquisition point information for each remote IO device on the PLC programming software interface. The PLC programming software generates a point item table for each remote IO device based on the user-configured acquisition point information. Based on all the point item tables, the global IO variable table used during programming is then generated in the resource file. The user uses the IO variable table during PLC programming. After the user completes programming, the PLC programming software compiles the contents of the IO variable table into a corresponding binary file and sends it to the PLC controller. The PLC controller manages the remote IO devices and their related information based on the IO variable table.

[0086] An embodiment of the present invention provides a communication mapping method for device configuration, which generates model point item data corresponding to each target configuration model in response to a user's model configuration operation to record the communication points in each target configuration model, and generates global variable data based on all the model point item data to record the target global variables that have a mapping relationship with each communication point, thereby feeding back the global variable data to the user so that the user can perform global programming operations through the target global variables. This solves the problem in the prior art that the user can only program through the variable address, which makes it impossible to directly see the variable information during programming, easily causes errors, and requires the address to be changed again when the configuration is modified. This realizes programming directly using the variable name of the global variable, and automatically completes the communication data mapping, thereby improving the usability and calling efficiency of the variables corresponding to each communication point in the model system.

[0087] Example 3

[0088] Figure 7 A schematic diagram of a communication mapping device for device configuration provided in the third embodiment of the present invention is shown in FIG. Figure 7As shown, the device includes: a model point item generation module 310, a global variable generation module 320 and a global variable feedback module 330.

[0089] Among them, the model point item generation module 310 is used to generate model point item data corresponding to each target configuration model in response to the user's model configuration operation for at least one target configuration model; wherein each model point item data is used to record the communication point position of each target configuration model.

[0090] The global variable generation module 320 is used to generate global variable data based on all the model point item data; wherein the global variable data is used to record the target global variables that have a mapping relationship with each of the communication points.

[0091] The global variable feedback module 330 is configured to feed back the global variable data to the user, so that the user can perform global programming operations through the target global variable.

[0092] In an optional implementation of an embodiment of the present invention, the model point item generation module 310 may include: a point item data to be written creation submodule, which is used to create at least one point item data to be written corresponding to each target configuration model in response to the user's model selection operation for at least one target configuration model; a communication point variable generation submodule, which is used to generate communication point variables in each point item data to be written in response to the user's communication point configuration operation for each target configuration model, to obtain the model point item data.

[0093] In an optional implementation of an embodiment of the present invention, the model point item generation module 310 may further include: a variable configuration data generation submodule, used to generate variable configuration data of each communication point variable based on the point configuration data of each communication point; wherein the variable configuration data includes: variable channel data, variable address data, variable name data, variable data type data, variable access type data, variable point type data and variable point item data.

[0094] In an optional implementation of an embodiment of the present invention, the global variable generation module 320 may include: a variable data to be written creation submodule, used to create variable data to be written associated with all the point item data to be written in response to the creation operation of the point item data to be written; a target global variable generation submodule, used to generate each target global variable having a mapping relationship with each communication point variable in the variable data to be written in response to the generation operation of each communication point variable, to obtain the global variable data.

[0095] In an optional implementation manner of an embodiment of the present invention, the target global variable generation submodule can be specifically used to: generate any of the target global variables in the variable data to be written in response to the generation operation of any of the communication point variables; determine the variable identification data of the target global variable based on the point identification data of the communication point variable to establish a mapping relationship between the communication point variable and the target global variable.

[0096] In an optional implementation of an embodiment of the present invention, the global variable generation module 320 may further include: a global configuration data generation submodule, used to generate global configuration data of each target global variable based on the variable configuration data of each communication point variable; wherein, the global configuration data includes: global name data, global data type data, global access type data, global address data and global point item data.

[0097] In an optional implementation of an embodiment of the present invention, the device may further include: a communication mapping processing module, which is used to perform content compilation processing on the global variable data in response to the user's programming submission operation to generate target base type data; and send the target base type data to the operation control end so that the operation control end performs communication mapping processing on each target global variable according to the global variable data.

[0098] The above-mentioned apparatus can execute the communication mapping method of device configuration provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the method.

[0099] An embodiment of the present invention provides a communication mapping device for equipment configuration, which generates model point item data corresponding to each target configuration model in response to a user's model configuration operation to record the communication points in each target configuration model, and generates global variable data based on all the model point item data to record the target global variables that have a mapping relationship with each communication point, thereby feeding back the global variable data to the user so that the user can perform global programming operations through the target global variables. This solves the problem in the prior art that the user can only program through the variable address, which makes it impossible to directly see the variable information during programming, easily causes errors, and requires the address to be changed again when the configuration is modified. This realizes programming directly using the variable name of the global variable, and automatically completes the communication data mapping, thereby improving the usability and calling efficiency of the variables corresponding to each communication point in the model system.

[0100] Example 4

[0101] Figure 8 A schematic diagram of the structure of a computer device provided in Example 4 of the present invention. Figure 8A block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention is shown. Figure 8 The computer device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0102] like Figure 8 As shown, the computer device 12 is implemented as a general-purpose computing device. Components of the computer device 12 may include, but are not limited to, one or more processors 16, a memory 28, and a bus 18 that connects various system components (including the memory 28 and the processor 16).

[0103] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. Examples of these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0104] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.

[0105] The memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be configured to read and write non-removable, non-volatile magnetic media ( Figure 8 Not shown, often called a "hard drive"). Although Figure 8 Not shown, a magnetic disk drive for reading and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of various embodiments of the present invention.

[0106] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may include an implementation of a network environment. Program modules 42 generally implement the functions and / or methods of the embodiments described herein.

[0107] The computer device 12 may also communicate with one or more external devices 14 (e.g., a keyboard, a pointing device, a display 24, etc.), one or more devices that enable a user to interact with the computer device 12, and / or any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the computer device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with the other modules of the computer device 12 via the bus 18. It should be understood that although Figure 8 Not shown, other hardware and / or software modules may be used in conjunction with computer device 12, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0108] The processor 16 executes various functional applications and data processing by running the program stored in the memory 28, thereby realizing the communication mapping method for device configuration provided by the embodiment of the present invention: in response to the user's model configuration operation for at least one target configuration model, generating model point item data corresponding to each of the target configuration models; wherein each of the model point item data is respectively used to record the communication point position of each of the target configuration models; generating global variable data based on all the model point item data; wherein the global variable data is used to record the target global variables that have a mapping relationship with each of the communication points; and feeding back the global variable data to the user so that the user can perform global programming operations through the target global variables.

[0109] Example 5

[0110] Embodiment 5 of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the communication mapping method for device configuration provided by the embodiment of the present invention is implemented: in response to a user's model configuration operation for at least one target configuration model, model point item data corresponding to each of the target configuration models is generated; wherein each of the model point item data is used to record the communication point position of each of the target configuration models; global variable data is generated based on all of the model point item data; wherein the global variable data is used to record the target global variables that have a mapping relationship with each of the communication points; and the global variable data is fed back to the user so that the user can perform global programming operations through the target global variables.

[0111] Any combination of one or more computer-readable media can be used. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example, but not limited to, a system, device or component of electricity, magnetism, light, electromagnetic, infrared, or semiconductors, or any combination thereof. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by an instruction execution system, device or device or used in combination with it.

[0112] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0113] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0114] Computer program code for performing the operations of the present invention may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or computer device. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0115] Note that the above are only preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments, and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments and may include many other equivalent embodiments without departing from the concept of the present invention. The scope of the present invention is determined by the scope of the appended claims.

Claims

1. A communication mapping method for device configuration, characterized in that: include: In response to a user's model configuration operation for at least one target configuration model, model point item data corresponding to each target configuration model is generated; wherein each model point item data is used to record the communication point position of each target configuration model; the model configuration operation is an operation of configuring the communication point position in the target configuration model to configure the communication function of the target configuration model; In response to a creation operation of the point item data to be written, variable data to be written associated with all of the point item data to be written is created; in response to a generation operation of each of the communication point variables, target global variables having a mapping relationship with each of the communication point variables are generated in the variable data to be written, thereby obtaining global variable data; wherein the global variable data is used to record target global variables having a mapping relationship with each of the communication points; any target global variable uniquely represents a communication point, and a mapping relationship between each communication point and each target global variable is determined; The global variable data is fed back to the user, so that the user can perform a global programming operation through the target global variable; wherein the global programming operation is an operation of programming the system using the target global variable in a global scope.

2. The method according to claim 1, characterized in that The step of generating model point item data corresponding to each target configuration model in response to a user's model configuration operation on at least one target configuration model comprises: In response to a model selection operation by the user for at least one of the target configuration models, creating at least one point item of data to be written corresponding to each of the target configuration models; In response to the user's communication point configuration operation for each target configuration model, a communication point variable is generated in each point item data to be written to obtain the model point item data.

3. The method according to claim 2, characterized in that After generating the communication point variables in each of the point item data to be written, the method further includes: Generating variable configuration data of each communication point variable according to the point configuration data of each communication point; The variable configuration data includes: variable channel data, variable address data, variable name data, variable data type data, variable access type data, variable point type data and variable point item data.

4. The method according to claim 1, wherein In response to the generation of each of the communication point variables, generating each of the target global variables having a mapping relationship with each of the communication point variables in the variable data to be written, including: In response to the generation operation of any of the communication point variables, generating any of the target global variables in the variable data to be written; The variable identification data of the target global variable is determined according to the point identification data of the communication point variable, so as to establish a mapping relationship between the communication point variable and the target global variable.

5. The method according to claim 1, characterized in that After generating the target global variables having a mapping relationship with the communication point variables in the variable data to be written, the method further includes: Generate global configuration data of each target global variable according to the variable configuration data of each communication point variable; The global configuration data includes: global name data, global data type data, global access type data, global address data and global point item data.

6. The method according to claim 1, characterized in that After feeding back the global variable data to the user so that the user performs a global programming operation through the target global variable, the method further includes: In response to the user's programming submission operation, compiling the global variable data to generate target base type data; The target base type data is sent to the operation control end, so that the operation control end performs communication mapping processing on each target global variable according to the global variable data.

7. A communication mapping device for device configuration, characterized in that: include: A model point item generation module, configured to generate, in response to a user's model configuration operation for at least one target configuration model, model point item data corresponding to each target configuration model; wherein each model point item data is used to record a communication point position of each target configuration model; the model configuration operation is an operation of configuring a communication point position in the target configuration model to configure the communication function of the target configuration model; A global variable generation module is used to generate global variable data based on all the model point item data; wherein the global variable data is used to record target global variables that have a mapping relationship with each of the communication points; any target global variable uniquely represents a communication point, and the mapping relationship between each communication point and each target global variable is determined; A global variable feedback module, configured to feed back the global variable data to the user, so that the user can perform a global programming operation through the target global variable; wherein the global programming operation is an operation of programming the system using the target global variable in a global scope; The global variable generation module includes: a submodule for creating variable data to be written; The variable data to be written creation submodule is used to create the variable data to be written associated with all the point item data to be written in response to the creation operation of the point item data to be written; the target global variable generation submodule is used to generate each target global variable having a mapping relationship with each communication point variable in the variable data to be written in response to the generation operation of each communication point variable, and obtain the global variable data.

8. A computer device, characterized in that: The computer device comprises: one or more processors; a storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the communication mapping method for device configuration as described in any one of claims 1 to 6.

9. A computer storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the communication mapping method for device configuration according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Computer-aided test method for network communication of reactor protection system

    CN109639520A

  • Custom generation method and device of model component, equipment and medium

    CN112860247A

  • Complex data type data mapping method and device, equipment and storage medium

    CN113449224A